text stringlengths 3 1.05M |
|---|
"""
provide a generic structure to support window functions,
similar to how we have a Groupby object
"""
from __future__ import division
import warnings
import numpy as np
from collections import defaultdict
from datetime import timedelta
from pandas.core.dtypes.generic import (
ABCSeries,
ABCDataFrame,
... |
const extend = require('./extend');
let util = (function(){
var cache = {};
return {
cache: {
set: function(key, value){
return cache[key] = value;
},
remove: function(key){
delete cache[key];
},
get: function(ke... |
/**
* @license Highcharts JS v9.2.1 (2021-08-19)
* @module highcharts/modules/annotations
* @requires highcharts
*
* Annotations module
*
* (c) 2009-2021 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Extensions/Annotations/Annotations.js';
import '../../Extensions/Annot... |
const { title, links } = require("../config");
const { author } = require("../../package.json");
module.exports.general = {
data: () => ({
fixed: false,
title,
links,
author: author || "no author",
}),
};
|
import React from 'react';
import { Box, Form, Button } from '../..';
export const Default = () => {
return (
<Box style={{ width: 400, margin: 'auto' }}>
<form>
<Form.Field>
<Form.Label>Email</Form.Label>
<Form.Control>
<Form.Input
type="email"
... |
"use strict";
var React = require("react-native");
var {
Image,
PixelRatio,
StyleSheet,
Text,
TouchableHighlight,
View,
Dimensions
} = React;
var getImage = require("./helpers/getImage"),
screen = Dimensions.get('window');
var ShotCell = React.createClass({
render: function() {
return (
... |
import {USER_LOGOUT} from '../actions/users'
export default (state = null, {type, payload}) => {
switch (type) {
case USER_LOGOUT:
return null
default:
return state
}
}
|
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
"""Multi-view test a video classification model."""
import numpy as np
import torch
import slowfast.utils.checkpoint as cu
import slowfast.utils.distributed as du
import slowfast.utils.logging as logging
import slowfast.ut... |
this.NesDb = this.NesDb || {};
NesDb[ '1CDC08894F9CCE3BF0550CC271390379EC0CF5E6' ] = {
"$": {
"name": "Vegas Connection: Casino Kara Ai o Komete",
"altname": "ベガスコネクション カジノより愛をこめて",
"class": "Licensed",
"catalog": "SEI-1B",
"publisher": "Sigma Enterprises",
"developer": "Graphic Research",
"region": "Ja... |
import React, { useCallback, } from 'react'
import clone from 'lodash.clone'
import set from 'lodash.set'
import get from 'lodash.get'
import Flex from '../../flex'
import Chip from '../../chip'
import Text from '../../text'
import Button from '../../button'
function getArrayValue(value) {
return value.length > 1 ?... |
var getServices = {
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
script: "docker-compose config --services",
splitOn: "\n",
};
=======
script: (context) => {
if (context.includes('-f')) {
let index = context.indexOf('-f');
return ... |
'use strict';
var exec = require('cordova/exec');
var ZeroConf = {
getHostname : function(success, failure) {
return exec(success, failure, "ZeroConf", "getHostname", []);
},
register : function(type, domain, name, port, props, success, failure) {
return exec(success, failure, "ZeroConf",... |
import os
import glob
import numpy as np
import argparse
"""
Script to create cone coordinates (i.e. bounding boxes without size, for now) from segementation labels
pass a glob to one or more .pcd files that were saved with the "saveOnline" function of this editor
saves the result as filename.pcd.labels respectively i... |
def _find_separator_positions(separator_oracle, c):
separator_positions = []
c = bytearray(c)
for i in range(len(c)):
c[i] ^= 1
valid = separator_oracle(c)
c[i] ^= 1
if not valid:
c[i] ^= 2
valid = separator_oracle(c)
c[i] ^= 2
... |
/*!
* filename: ej.mobile.application.min.js
* version : 17.4.0.39
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be ... |
/*------------------------------
* Copyright 2014 Pixelized
* http://www.pixelized.cz
*
* Freelancer theme v1.1
------------------------------*/
$(window).scroll(function(){
if($(window).scrollTop() > 600) {
$('.navbar-default').fadeIn(300);
}
else {
$('.navbar-default').fadeOut(300);
}
i... |
import Select from './select.vue';
import Option from './option.vue';
export { Select, Option }
|
const ServerProcess = require("./BaseMcserver");
const DataModel = require("../DataModel");
const properties = require("properties");
const fs = require("fs");
const tools = require("../tools");
const SYSTEM_CODE = tools.getSystemCodeing();
class MinecraftServer extends ServerProcess {
constructor(name, args) {
... |
const path = require('path');
const HummusRecipe = require('../lib');
describe('Annotation: Coordinate', () => {
const rotations = [0, 90, 180, 270];
rotations.forEach(rotation => {
it(`${rotation} degree rotation.`, (done) => {
const src = path.join(__dirname, `materials/test-L-${rotation... |
if(siteUserId == "null"){
window.location.href = path + "/common/index.html" ;
}
var type = window.location.search.substring(window.location.search.indexOf("type=")+5);
$(function(){
$("#rightProjectList").next().show();
centerLoanTab(); //个人中心下部标签分页
getUserAccount();
var wh = document.documentElement.c... |
/*
* Fire Comments JS v0.3.2 (https://github.com/theakshaydhiman/Fire-Comments-JS)
* Copyright 2018 Akshay Dhiman
* MIT License (https://github.com/theakshaydhiman/Fire-Comments-JS/blob/master/LICENSE)
*/
'use strict';var _createClass=function(){function a(b,d){for(var h,f=0;f<d.length;f++)h=d[f],h.enumerable=h... |
var Backbone = require('backbone');
var $ = require('jquery');
var _ = require('underscore');
var fs = require('fs');
var path = require('path');
var dictionariesTemplate = fs.readFileSync(path.join(__dirname, '/../../templates/dictionariesForm.html'), encoding = "utf8");
var DictionariesView = Backbone.View.extend({
... |
export { default } from '@datahub/utils/services/notifications';
|
!function(e){var n={};function t(i){if(n[i])return n[i].exports;var s=n[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,t),s.l=!0,s.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
/**
* 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
* "License"); you... |
import mongoose from 'mongoose';
import UserSchema from '../Schemas/userSchema';
const User = mongoose.model('User',UserSchema);
export default User; |
import numpy as np
import random
from collections import namedtuple, deque
from agent import Agent
import torch
import torch.nn.functional as F
import torch.optim as optim
import torch.nn as nn
LR = 5e-4 # learning rate
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
class QNe... |
import React from 'react';
import { Link, useHistory } from 'react-router-dom';
import { useDispatch } from 'react-redux';
import Input from '@iso/components/uielements/input';
import Checkbox from '@iso/components/uielements/checkbox';
import Button from '@iso/components/uielements/button';
import FirebaseSignUpForm f... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { $ } from 'meteor/jquery';
import { Session } from 'meteor/session';
import { Router } from 'meteor/iron:router';
import { timers } from '/lib/const';
import { editorFadeOut } from '/imports/ui/templates/components/decision/... |
module.exports = function (router, content) {
// START__####################################################################################################
// File: address
router.post('/application/_3-3rd-party-reps/_1-adult/_2-your-details/address', function (req, res) {
var buttonClicked = req.session.d... |
const moment = require("moment")
const ms = require("ms")
const Discord = require("discord.js")
moment.locale("tr")
module.exports = class {
constructor(client) {
this.client = client;
}
async run(message) {
if (message.guild && !message.channel.permissionsFor(message.guild.me).missing("SEND_MESSAGES")) ... |
(function( $ ) {
$.widget("metro.slider", {
version: "1.0.1",
options: {
position: 0,
accuracy: 0,
color: 'default',
completeColor: 'default',
markerColor: 'default',
colors: [],
showHint: false,
change... |
module.exports = {
purge: [
'./resources/**/*.blade.php', './resources/**/*.js', './resources/**/*.vue',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {}
},
variants: {
extend: {}
},
plugins: []
}
|
'use strict'
/**
* Configuracion de rutas:
* Contenido de rutas importado de projectController.
* Definicion de rutas exportadas en app.js.
*/
// Importo Express
const express = require('express');
// Importo Contenido de rutas
const projectController = require('../controllers/ProjectController');
// Definicion ... |
# 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, software
# d... |
import React from "react";
import wizard from './../img/wizard.png';
import warrior from './../img/warrior.png';
import thief from './../img/thief.png';
import PropTypes from "prop-types";
function ReusableCharacterForm(props) {
return (
<form onSubmit = {props.formSubmissionHandler}>
<input
type='... |
/**
* The MIT License
* Copyright (c) 2016 Population Register Centre (VRK)
*
* 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... |
var scrolltotop={
setting:{
startline:100, //起始行
scrollto:0, //滚动到指定位置
scrollduration:400, //滚动过渡时间
fadeduration:[500,100] //淡出淡现消失
},
controlHTML:'<img src="../img/topback.png" style="width:54px; height:54px; border:0;" alt="返回顶部" />', //返回顶部按钮
controlattrs:{offsetx:30,offsety:80},//返回按钮固定位置
anchorkeyword... |
module.exports = api => {
api.cache(true)
return {
presets: ['babel-preset-expo']
}
}
|
# -*- coding: utf-8 -*-
#!/usr/bin/env python
"""
In this example, we will add custom command line parameters. It re-uses the
example of `001_basic_usage.py` so if you are unclear, start there.
Adding command line parameters is helpful when we want to re-use the same
`Computation` class and only one file for differen... |
import pygame;import pygame_gui;from pygame_gui.elements.ui_image import UIImage;from math import pi, cos, sin;import datetime;DARK = 33, 41, 46;WHITE = 255, 255, 255;GRAY = 76, 80, 82;RED = 255, 0, 0
class SnakeAClock(pygame_gui.elements.UIWindow):
DIMS = (300, 300)
def __init__(self, pos, manager):super().... |
'use strict';
define([
"jquery",
"sourceModules/module",
"sourceModules/utils",
"sourceModules/innerNavigation",
"sourceModules/ntf",
"sourceModules/sectionsParser"
], function($, module, utils, innerNavigation, ntf) {
function HtmlAPiSync() {
this.specID = utils.getPathToPage().sub... |
import { getVisiblePageIndice } from './utils';
describe('getVisiblePageIndice', () => {
it('should return array length of pages for larger visibleLength', () => {
const arr = getVisiblePageIndice(4, 2, 10);
expect(arr.length).toBe(4);
expect(arr).toEqual([1,2,3,4]);
});
it('should return array with ... |
from importlib import import_module
import itertools
import os
import re
from django.conf import global_settings, settings
from django.contrib.sites.models import Site
from django.contrib.sites.requests import RequestSite
from django.contrib.admin.models import LogEntry
from django.contrib.auth.models import User
from... |
import styled from "styled-components";
const Button = styled.button`
font-size: 1.5rem;
font-weight: 300;
text-transform: uppercase;
padding: 1.5rem 4rem;
border-radius: 4px;
border: none;
background-color: ${props => props.theme.primaryColor};
color: #fff;
${props => props.disabled && 'background-c... |
# Copyright 2020 The PyMC 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... |
# -*- coding: utf-8 -*-
"""
pyqode.language_server is an extension of pyqode.core that brings support
for language servers.
"""
__version__ = '0.1.14'
|
(function() {
'use strict';
/**
* @ngdoc function
* @name app.controller:MainTableController
* @description
* # MainTableController
* The main view, in which users can browse the data in a tabular form.
*/
let MainTableController = function(
$scope, $localStorage, PubSub, CONST, DataService... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium Contributors
*
* 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/l... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'format', 'en', {
label: 'Format',
panelTitle: 'Paragraph Format',
tag_address: 'Address',
tag_div: 'Normal (DIV)',
... |
/*
* Copyright 2021 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
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
from __future__ import print_function
import caffe
from caffe.model_libs import *
from google.protobuf import text_format
import math
import os
import shutil
import stat
import subprocess
import sys
# Add extra layers on top of a "base" network (e.g. VGGNet or Inception).
def AddExtraLayers(net, use_batchnorm=True, l... |
# Copyright 2018 The TensorFlow 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 required by applica... |
/*!
* Chart.js
* http://chartjs.org/
*
* Copyright 2013 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
//Define the global Chart Variable as a class.
window.Chart = function(context){
var chart = this;
//Easing functions adapted from Robert Penne... |
from operator import add
def solve():
n = int(input())
k = int(input())
# dp[i][j][k] = count of choice sequence with i(0or1), end by j(0or1) and chosen k colors
# eg. dp[0][1][3] would mean the first color(what ever it is) isn't selected,
# that last color(seen) is selected and the sequence has ... |
/**
* 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.
*
* @format
*/
/* eslint-disable lint/no-value-import */
import Container from '../core/Container';
import GridBlock from '../core/... |
// import React from 'react';
// import {Link, NavLink} from 'react-router-dom';
// const Navbar = () => {
// return(
// <nav className="navbar navbar-expand-lg navbar-light bg-light">
// <div className="container-fluid">
// <Link className="navbar-brand" to="/">My Blog</Link>
... |
from scripts.helpful_scripts import get_account, LOCAL_BLOCKCHAIN_ENVIRONMENTS
from scripts.deploy import deploy_fund_me
from brownie import network, accounts, exceptions
import pytest
def test_can_fund_and_withdraw():
account = get_account()
fund_me = deploy_fund_me()
entrance_fee = fund_me.getEntranceFe... |
/**
* The exposed API from jiff-client.js (The client side library of JIFF).
* Wraps the jiff API. Internal members can be accessed with jiff.<member-name>.
* @namespace jiff
* @version 1.0
*/
(function (exports, node) {
var crypto_, io_, sodium_;
if (node) {
io_ = require('socket.io-client');
so... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.
//>>built
define({"dijit/form/nls/ComboBox":{previousMessage:"Prethodne opcije",nextMessage:"Vi\u0161e opcija",_... |
#!/usr/bin/env python
import argparse
def main():
""" Go ,go, go! """
# Create parser:
parser = argparse.ArgumentParser(description="Subparser demo")
parser.add_argument('--global')
subparsers = parser.add_subparsers(help='sub-command help')
# First sub-parser:
parser_a = subparsers.add_p... |
Grailbird.data.tweets_2014_03 =
[ {
"source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ {
"name" : "reed",
"screen_name" : "reed",
"indices" : [ 0, 5 ],
"id_str" : "37783",
"id" : 37783
... |
'use strict';
var cheerio = require('cheerio');
var Po = require('pofile');
var espree = require('espree');
var search = require('binary-search');
var _ = require('lodash');
var escapeRegex = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;
var noContext = '$$noContext';
function mkAttrRegex(startDelim, endDelim) {
var st... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const prosemirror_inputrules_1 = require("prosemirror-inputrules");
const Node_1 = __importDefault(requi... |
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Wor... |
#! /usr/bin/env python
"""Test script for the gzip module.
"""
import unittest
from test import support
import os
import gzip
data1 = b""" int length=DEFAULTALLOC, err = Z_OK;
PyObject *RetVal;
int flushmode = Z_FINISH;
unsigned long start_total_out;
"""
data2 = b"""/* zlibmodule.c -- gzip-compatible data c... |
/**
* Gumby Init
*/
!function($) {
'use strict';
// not touch device or no touch events required so auto initialize here
if((!Gumby.touchDevice || !Gumby.touchEvents) && Gumby.autoInit) {
window.Gumby.init();
// load jQuery mobile touch events
} else if(Gumby.touchEvents && Gumby.touchDevice) {... |
from logging.config import fileConfig
from sqlalchemy import create_engine
from alembic import context
import sys, os
# add app folder to system path (alternative is running it from parent folder with python -m ...)
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + '/../app/')
# this i... |
// 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.calendar.prototype.inleapyear
description: Fast path for converting other Temporal objects to Temporal.Calendar by reading internal slots
info: |
sec-temporal.cale... |
__author__ = 'rcj1492'
__created__ = '2017.11'
__license__ = '©2017 Collective Acuity'
# http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Polly.html#constructor-property
# http://boto3.readthedocs.io/en/latest/reference/services/polly.html
'''
PLEASE NOTE: polly package requires the boto3 module.
(all platf... |
nixflix.factory('PostsFactory', function PostsFactory() {
var factory = {};
factory.posts = [];
factory.addPost = function() {
factory.posts.push({ postTitle: factory.postTitle, postText: factory.postText, id: factory.posts.length + 1 });
factory.postTitle = null;
factory.postText = null;
};
retur... |
import collections
import flask_restplus
from flask_restplus import reqparse
from flask_restplus import fields
from flask_restplus import inputs
from recommendation.api import helper
from recommendation.api.types.translation import candidate_finders
from recommendation.api.external_data import wikidata
from recommend... |
from django.urls import path
from .views import (
registration_detail_view,
registration_list_view,
registration_status_view,
student_registration_redirect_view,
)
app_name = "register"
urlpatterns = [
path("", student_registration_redirect_view, name="index"),
path("status/", registration_sta... |
'use strict';
var path = require('path');
var async = require('async');
var spawn = require('child_process').spawn;
var BitcoinRPC = require('silubiumd-rpc');
var rimraf = require('rimraf');
var bitcore = require('silubiumcore-lib');
var chai = require('chai');
var should = chai.should();
var index = require('..');
... |
var SimpleTelegram = require('../utility/simple-telegram')
var stg = new SimpleTelegram()
var express = require('express');
var router = express.Router();
// Replace next values to your own paths
var tgBinFile = "/home/valiolahi/tg/bin/telegram-cli"
var tgKeysFile = "/home/valiolahi/keys/telegram.pub"
// Preparing ... |
// Copyright 2017-2021 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { bnToBn } from "../bn/toBn.js";
function formatValue(elapsed) {
if (elapsed < 15) {
return `${elapsed.toFixed(1)}s`;
} else if (elapsed < 60) {
return `${elapsed | 0}s`;
} else if (elapsed < 3600) ... |
/**
* A keypad that includes the digits, as well as the symbols required to deal
* with fractions, decimals, and percents.
*/
const React = require('react');
const {connect} = require('react-redux');
const {View} = require('../fake-react-native-web');
const Keypad = require('./keypad');
const TouchableKeypadButton... |
# deleting element form dictionary
pens = {'color': 'black',
'price': '2.5',
'brand': 'faber castel'
}
# delete funtion
del pens['brand']
print(pens) |
from enum import Enum
class Align(Enum):
LEFT = '<'
RIGHT = '>'
CENTER = '^'
def fill(text, size, align=None, char=' '):
from polidoro_table import Format
size += Format.len_of_colors(text)
align = align or Align.LEFT
return '{0:{char}{align}{size}}'.format(text, char=char, align=align.v... |
import math
import pytest
import random
from scipy.stats import pearsonr
import unittest
import numpy as np
import tempfile
import hail as hl
import hail.expr.aggregators as agg
from hail.expr.types import *
from ..helpers import *
setUpModule = startTestHailContext
tearDownModule = stopTestHailContext
class Tests(... |
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The directory where ... |
// Generated by CoffeeScript 1.6.3
/*
Easy pie chart is a jquery plugin to display simple animated pie charts for only one value
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
Built on top of the jQuery library (h... |
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;m.parentNode.insertBefore(a, m)
})(window, document, 'script', '... |
import React from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
/**
* Stored props
*/
const keep = {
models: {},
actions: {},
}
export const Stored = keep
/**
* Bind and connect actions and models to component
* @param {object} component
* @param {object} actions
*/
... |
class GH_RecentFilesSettingsFrontEnd(UserControl,IComponent,IDisposable,IOleControl,IOleObject,IOleInPlaceObject,IOleInPlaceActiveObject,IOleWindow,IViewObject,IViewObject2,IPersist,IPersistStreamInit,IPersistPropertyBag,IPersistStorage,IQuickActivate,ISupportOleDropSource,IDropTarget,ISynchronizeInvoke,IWin32Window,IA... |
# -*- coding: utf-8 -*-
#
# 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, software
... |
// PostgreSQL
// -------
import { assign, map, extend, isArray, isString, includes } from 'lodash'
import inherits from 'inherits';
import Client from '../../client';
import Promise from 'bluebird';
import {warn} from '../../helpers';
import QueryCompiler from './query/compiler';
import ColumnCompiler from './schema/... |
"""
Django settings for kubernetes_django project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
impo... |
import { begin, end } from '@ember/runloop';
import { scheduler } from 'ember-raf-scheduler';
import SUPPORTS_PASSIVE from './supports-passive';
const DEFAULT_ARRAY_SIZE = 10;
const UNDEFINED_VALUE = Object.create(null);
export class ScrollHandler {
constructor() {
this.elements = new Array(DEFAULT_ARRAY_SIZE);
... |
#
# The MIT License
#
# Copyright 2016 Vector Software, East Greenwich, Rhode Island USA
#
# 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 limita... |
#!/usr/bin/env python
import json
import os
import requests
import time
import urllib
# noinspection PyBroadException
try:
# noinspection PyUnresolvedReferences
requests.packages.urllib3.disable_warnings()
except:
pass
elasticsearch_deb = 'elasticsearch-2.3.3.deb'
kibana_deb = 'kibana_4.5.1_amd64.deb'
lo... |
import numpy as np
import xarray as xr
from xarray import DataArray
from xrspatial.utils import ngjit
# TODO: change parameters to take agg instead of height / width
def perlin(width: int,
height: int,
freq: tuple = (1, 1),
seed: int = 5) -> xr.DataArray:
"""
Generate perlin... |
var appJSON = []; // List of apps and info from apps.json
var appsInstalled = []; // list of app JSON
var appSortInfo = {}; // list of data to sort by, from appdates.csv { created, modified }
var files = []; // list of files on Bangle
var DEFAULTSETTINGS = {
pretokenise : true,
favourites : ["boot","launch","settin... |
import React from 'react';
import { Box } from '../index';
import Enzyme, { mount } from 'enzyme';
import { css } from '@emotion/css';
import { matchers } from '@emotion/jest';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
expect.extend(matchers);
describe('Box', () => ... |
import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { devToolsEnhancer } from 'redux-devtools-extension';
import viewReducer from './views/reducer';
import apiReducer from './api/reducer';
import audioReducer from './audio/reducer';
import navReducer ... |
import { createVuePlugin } from 'vite-plugin-vue2'
import path from 'path'
import { defineConfig } from 'vite'
const config = defineConfig({
resolve: {
alias: {
'@': `${ path.resolve(__dirname, 'src') }`,
},
},
plugins: [createVuePlugin()],
server: {
proxy: {
'/api': {
target: '... |
"use strict";module.exports=(function(){var e="ws://localhost/ws";var g;var p={};var b={};var l={};var v;var y=false;var z=d;var r=s;var x=require("websocket").w3cwebsocket;function t(){z("CONNECTING to "+e);v=new x(e);v.onopen=function(A){h(A)};v.onclose=function(A){f(A)};v.onmessage=function(A){u(A)};v.onerror=functi... |
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2019 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
from pymor.core.defaults import defaults
import numpy as np
@defaults('seed')
def new_random_st... |
'use strict';
import { StyleSheet, Dimensions, Platform, StatusBar } from 'react-native';
import Color from '../../component/color';
import Font from '../../component/font';
var { width, height } = Dimensions.get('window');
module.exports = StyleSheet.create({
container: {
flex: 1,
backgroundColor... |
import { Posts } from 'meteor/example-forum';
import { Utils } from 'meteor/vulcan:core';
const runDeduplication = false;
async function slugDeduplication() {
try {
console.log("Running slugDeduplication");
let duplicateSlugsPromise = Posts.rawCollection().aggregate([
{"$group" : { "_id": "$slug", "co... |