text stringlengths 3 1.05M |
|---|
"""cinema URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkFontConfigInterface_DEFINED
#define SkFontConfigInterface_DEFINED
#include "include/core/SkFontStyle.h"
#include "include/core/SkRefCnt.h"
#include "include/core/Sk... |
#! /usr/bin/python
import os
import time
import sys
import glob
import math
import itertools
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cross_validation import KFold
from tools.neural_network import start_training_kfCV,write_matrix_to_file
help_s = '''
A script to aggregate the models to perfor... |
/*
eslint
no-confusing-arrow: 0
*/
import React from 'react';
import { Shaders, Node, GLSL, connectSize } from 'gl-react';
import { directionForPass } from './blurMulti';
const shaders = Shaders.create({
blurV1D: {
frag: GLSL`precision highp float;
varying vec2 uv;
uniform sampler2D t, map;
uniform ... |
var searchData=
[
['transmission',['Transmission',['../class_network_coding_1_1_transmission.html#a0088c71d39d15bcbdeab5be97ca9c521',1,'NetworkCoding::Transmission']]],
['transmissionblock',['TransmissionBlock',['../class_network_coding_1_1_transmission_block.html#a9f50cd755cd56a1f707986286ddbfd0e',1,'NetworkCoding... |
describe('JS Editor', () => {
beforeAll(async () => {
await page.goto('http://127.0.0.1:9000/pages/js/array-concat.html');
});
it('renders expected output after clicking Run', async () => {
const expectedOutput = '> Array ["a", "b", "c", "d", "e", "f"]';
let outputContent;
... |
/*! For license information please see react-bootstrap.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(re... |
from lexos.helpers.general_functions import get_encoding, \
generate_d3_object, merge_list, load_stastic, matrix_to_dict, \
dict_to_matrix, html_escape, apply_function_exclude_tags, decode_bytes
class TestGeneralFunctions:
def test_get_encoding(self):
assert get_encoding(b"asdf") == "ascii"
d... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const utils = require("./utils");
var FileChangeState;
(function (FileChangeState) {
FileChangeState[FileChangeState["New"] = 0] = "New";
FileChangeState[FileChangeState["Equal"] = 1] = "Equal";
FileCh... |
/*********************************************************************************
* Copyright (c) 2010-2011, Elliott Cooper-Balis
* Paul Rosenfeld
* Bruce Jacob
* University of Maryland
* dramninjas [at] g... |
"""Whiscy Data files"""
import os
class Residue:
"""Represents a residue"""
def __init__(self, nr, code, score):
self.nr = nr
self.code = code
self.score = score
def __str__(self):
return "{}.{}: {}".format(self.code, self.nr, self.score)
class Distance:
"""Represe... |
# -*- coding: utf-8 -*-
from itertools import chain
from logging_utils._compat import iteritems, map
class SimpleContextStack(object):
def __init__(self):
self._stack = []
def push(self, context):
self._stack.append(context)
return self
def pop(self):
self._stack.pop()
... |
import numpy as np
import gc
from multiprocessing.pool import ThreadPool
from scipy.linalg import pinv
from scipy.sparse import csr_matrix
from scipy.sparse import lil_matrix
from .util import _checkState, _thresholding, _save, _load
from .distributed import *
from pyspark import keyword_only, SparkContext
from pys... |
import io
from typing import List, Optional, Set, Tuple
from src.types.blockchain_format.sized_bytes import bytes32
from src.util.hash import std_hash
from clvm import run_program as default_run_program, SExp
from clvm.casts import int_from_bytes
from clvm.operators import OPERATOR_LOOKUP
from clvm.serialize import s... |
#include <tree_sitter/parser.h>
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#define LANGUAGE_VERSION 9
#define STATE_COUNT 102
#define SYMBOL_COUNT 47
#define ALIAS_COUNT 1
#define TOKEN_COUNT 28
#define EXTERNAL_TOKEN_CO... |
//getUsers
exports.getUsers = (req, res) =>{
res.status(200).json({
ststus:'success',
message:"Api development is pending"
});
}
//get user
exports.getUser = (req, res) =>{
res.status(200).json({
ststus:'success',
message:"Api development is pending"
});
}
//createUser
... |
var searchData=
[
['log_5ffree_5fheap_128',['log_free_heap',['../class_bluetooth_a2_d_p_common.html#a791432e5c800e75fb11b858071cff651',1,'BluetoothA2DPCommon']]]
];
|
import time
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
import adafruit_pyportal
import adafruit_minimqtt.adafruit_minimqtt as MQTT
pyportal = adafruit_pyportal.PyPortal()
### WiFi ###
# Get wifi details and more from a secrets.p... |
from django.contrib.auth.models import Permission
from django.urls import reverse
from django.utils.http import urlencode
from django.utils.translation import gettext
from django.utils.translation import gettext_lazy as _
from draftjs_exporter.dom import DOM
import wagtail.admin.rich_text.editors.draftail.features as ... |
import torch
from torch.autograd import Function
from .._ext import roi_align_3d
# TODO use save_for_backward instead
class RoIAlignFunction_3d(Function):
def __init__(self, aligned_slices, aligned_height, aligned_width, spatial_scale, sampling_ratio):
self.aligned_slices = int(aligned_slices)
sel... |
const Connection = require('./connection.js');
// const { inherits } = require('util');
const { promiseCallback } = require('./helper');
class PoolConnection extends Connection {
constructor(_connection) {
super(null, _connection);
this.connection = _connection;
// Connection.call(this, null, _connection);
}
... |
# 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 may not u... |
# 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 may... |
from rest_framework import serializers
from profiles_api import models
class HelloSerializer(serializers.Serializer):
"""Serilizers a name field for testing our ApiView"""
name = serializers.CharField(max_length=10)
class UserProfileSerializer(serializers.ModelSerializer):
"""Serializes a user profile ob... |
import React, { useState } from "react";
import { Menu, Icon } from "antd";
const { SubMenu } = Menu;
const ExportTabSwitcher = ({ changeTab }) => {
const [current, setCurrent] = useState("json");
const handleClick = (e) => {
changeTab(e.key);
setCurrent(e.key);
};
return (
<Menu onClick={handle... |
import os
import pandas as pd
import numpy as np
import sdi_utils.gensolution as gs
import sdi_utils.set_logging as slog
import sdi_utils.tprogress as tp
import sdi_utils.textfield_parser as tfp
try:
api
except NameError:
class api:
class config:
## Meta data
tags = {'python3... |
(function () {
var server = require("./server");
var App = exports.App = function App() {
};
App.prototype.start = function () {
server.initialize();
};
})();
|
"use strict";var KTDatatablesAdvancedFooterCalllback={init:function(){$("#kt_table_1").DataTable({responsive:!0,pageLength:5,lengthMenu:[[2,5,10,15,-1],[2,5,10,15,"All"]],footerCallback:function(t,e,n,a,r){var o=this.api(),l=function(t){return"string"==typeof t?1*t.replace(/[\$,]/g,""):"number"==typeof t?t:0},u=o.colum... |
var $collectionHolder;var $addTagLink=$('<a href="#" class="add_tag_link">Add a tag</a>');var $newLinkLi=$("<li></li>").append($addTagLink);$(document).ready(function(){alert("helllo");$collectionHolder=$("ul.tags");$collectionHolder.find("li").each(function(){addTagFormDeleteLink($(this))});$collectionHolder.append($n... |
import os
import platform
import subprocess
import sys
import sysconfig
import warnings
from contextlib import contextmanager
from subprocess import CalledProcessError
from poetry.config import Config
from poetry.locations import CACHE_DIR
from poetry.utils._compat import Path
from poetry.utils._compat import decode
... |
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <board.h>
#include <vtd.h>
#include <pci.h>
#ifndef CONFIG_ACPI_PARSE_ENABLED
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
Or use acrn-config tool to gener... |
const CustomError = require("../extensions/custom-error");
module.exports = class DepthCalculator {
calculateDepth(arr) {
if (arr.length === 0) return 1;
if (Array.isArray(arr)) return 1 + Math.max(...arr.map(i => this.calculateDepth(i)));
else return 0;
}
}; |
#ifndef RATE_TRACKER_H
#define RATE_TRACKER_H
#include "socketaddress.h"
#include "fasthash.h"
struct RateTracker
{
uint64_t count; // how many packets since firstEntryTime
time_t firstEntryTime; // what time the first entry came in at
time_t lastEntryTime; // what time the last entry came in at (may not... |
module.exports = function(grunt) {
//Checks the dependencies associated with Grunt and autoloads
//& requires ALL of them in this Gruntfile
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
// Project configuration.
grunt.initConfig({
// Sass configuration
sass: {
opti... |
"""
Test xapp 2 that works with 1
"""
# ==================================================================================
# Copyright (c) 2020 Nokia
# Copyright (c) 2020 AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in... |
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yandex/cloud/iam/v1/key.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refl... |
// requestAnimationFrame polyfill
(function () {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendo... |
'use strict'
const common = require('./webpack.common')
const webpack = require('webpack')
const merge = require('webpack-merge')
const config = {
mode: 'development',
devtool: 'source-map',
}
const mainConfig = merge({}, common.main, config)
const askPassConfig = merge({}, common.askPass, config)
const cliConf... |
###########################
#
# #288 An enormous factorial - Project Euler
# https://projecteuler.net/problem=288
#
# Code by Kevin Marciniak
#
###########################
|
//http://www.seeedstudio.com/wiki/GROVE_System
//http://www.seeedstudio.com/depot/index.php?main_page=advanced_search_result&search_in_description=1&keyword=grovefamily
//support starter bundle example http://www.seeedstudio.com/wiki/GROVE_-_Starter_Kit_V1.1b
/**
* Visual Blocks Language
*
* Copyright 2018 SEANLAB.
... |
const nodeExternals = require('webpack-node-externals');
exports.webpack = config => Object.assign(config, {
target: 'electron-renderer',
externals: [nodeExternals()],
});
exports.exportPathMap = () => ({
'/': { page: '/' },
});
|
function updatePlaceholderDiv() {
let placeholderAnchorElement = document.getElementById("placeholder");
placeholderAnchorElement.href = getUrlForVulnerabilityLevel() + "?returnTo=/";
placeholderAnchorElement.innerText = "Click here";
}
updatePlaceholderDiv();
|
import React, { useState } from 'react';
import LuigiClient from '@luigi-project/client';
import { instancesTabUtils } from '@kyma-project/react-components';
import {
Tab,
Tabs,
Spinner,
Tooltip,
useGetList,
useMicrofrontendContext,
} from 'react-shared';
import { Identifier } from 'fundamental-react';
im... |
# Regulator = leader
# Suppliers = fixed prices
# Customers = followers
# General
import time
import copy
import numpy as np
# CPLEX
import cplex
from cplex.exceptions import CplexSolverError
# Project
import update_bounds
import choice_preprocess
import nested_logit
# Data
import data_inte... |
module.exports =
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/inversify/lib/annotation/decorator_utils.js":
/*!******************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***!
\**********... |
/*highligh the navigation tag*/
$(function(){
var $myNav = $("#footer ul a ");
$myNav.each(function(){
var links = $(this).attr("href");
var myUrl = document.URL;
if(myUrl.indexOf(links) != -1){
$(this).children("li").css({"background-color":"#850005","background-image":'url()'});
}
});
document.addEve... |
#!/usr/bin/env python
"""Clean up images folder for reveal presentation"""
#rom optparse import OptionParser
import argparse
import sys
import os
import glob
import shutil
import future
__author__ = "Margriet Palm"
__copyright__ = "Copyright 2018"
__credits__ = "Margriet Palm"
__license__ = "MIT"
__version__ = "0.1"
... |
// Karma configuration
// Generated on Wed Oct 14 2015 12:50:33 GMT-0400 (EDT)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... |
class Character:
def __init__(self):
pass
|
import numpy as np
#import matplotlib.pyplot as plt
import shapely.geometry
from scipy.ndimage.morphology import binary_dilation
from scipy.ndimage import label
from multiprocessing import Pool
def voxels_to_polygon(image_stack, pixel_size, center=(0.5, 0.5)):
"""Take a stack of images and produce a stack of shap... |
/**
* @file OverrideRawPlugin
* @author Jim Bulkowski <jim.b@paperelectron.com>
* @project pom-plugin-builder
* @license MIT {@link http://opensource.org/licenses/MIT}
*/
"use strict";
const tap = require('tap')
const IRP = require('../../../lib/Validator/Types/InstallerRawPlugin')
const validplugin = {
moduleN... |
"""
A trainer class to handle training and testing of models.
"""
import torch
from torch import nn
from stanfordnlp.models.common.trainer import Trainer as BaseTrainer
from stanfordnlp.models.common import utils, loss
from stanfordnlp.models.pos.model import Tagger
from stanfordnlp.models.pos.vocab import MultiVocab... |
import React from 'react';
import { routerRedux, Route, Switch } from 'dva/router';
import { LocaleProvider, Spin } from 'antd';
import enUS from 'antd/lib/locale-provider/en_US';
import dynamic from 'dva/dynamic';
import { getRouterData } from './common/router';
import Authorized from './utils/Authorized';
import styl... |
module.exports = {
testEnvironment: "node",
preset: "ts-jest/presets/js-with-ts",
transform: {
"^.+\\.(ts|js)x?$": "ts-jest"
},
transformIgnorePatterns: [
"node_modules[/\\\\](?!(node-fetch|fetch-blob)[\\\\/])"
],
testRegex: "(/tests/)(.*?)(Tests?)(\\.[jt]s)$",
testPathI... |
e, f, c = map(int, input().split())
gap1 = f-e
gap2 = c-f
if gap1 > gap2:
print(gap1 - 1)
else:
print(gap2 - 1) |
# -*- coding: utf-8 -*-
"""
This module is used for testing the functions within the pyhpeimc.plat.alarms module.
"""
from unittest import TestCase
from nose.plugins.skip import SkipTest
from pyarubaoss.auth import *
from pyarubaoss.ports import *
from test_machine import *
# TODO Remarked out failing tests
class... |
/*
* linux/arch/arm/mach-at91/board-sam9260ek.c
*
* Copyright (C) 2005 SAN People
* Copyright (C) 2006 Atmel
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the L... |
// @flow
import React from 'react';
import { translate, translateToHTML } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
from './AbstractUserMediaPermissionsOverlay';
import FilmstripOnlyOverlayFrame from './Filmst... |
import React, { Component } from 'react'
import { NavLink } from "react-router-dom";
import "./Navbar.css";
class index extends Component {
render() {
return (
<nav className="nav">
<div className="container">
<div className="logo">
<NavLink active t... |
# -*- coding: utf-8 -*-
import click
import logging
from pathlib import Path
from dotenv import find_dotenv, load_dotenv
import pandas as pd
import numpy as np
import os
def split_vals(a,n): return a[:n].copy(), a[n:].copy()
def generate_train_test_data(df, target_column, split_ratio=None, split_date=None):
if s... |
import $ from 'jquery';
import TweenMax from 'gsap';
import InputDate from './InputDate';
import InputGeoCoord from './InputGeoCoord';
import InputSelect from './InputSelect';
import InputSlider from './InputSlider';
import InputButton from './InputButton';
export const PLANET_SCALE_ID = 'planetScale';
export const S... |
//========================== Open Steamworks ================================
//
// This file is part of the Open Steamworks project. All individuals associated
// with this project do not claim ownership of the contents
//
// The code, comments, and all related files, projects, resources,
// redistributables ... |
#if !defined(CTR_STDIO_H)
#define CTR_STDIO_H
#include <glib.h> /* GIOCondition and gpointer */
#include <stdint.h> /* int64_t */
gboolean stdio_cb(int fd, GIOCondition condition, gpointer user_data);
void drain_stdio();
#endif // CTR_STDIO_H
|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { __decorate } from "tslib";
import { Injectable, InjectionToken } from '@angular/core';
/**
* `HttpHandler` ... |
import React, {useState, useEffect} from "react";
// import classNames from "classnames"; reactstrap components
import {
Card,
CardHeader,
CardBody,
Row,
Col,
Button,
ButtonGroup,
Form,
FormGroup
} from "reactstrap";
import notify from "../../../services/notify.js"
// import classNa... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MonthPicker = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descri... |
#
# 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 may not us... |
import { connect } from 'react-redux'
import { toggleTodo } from '../actions'
import TodoList from '../components/TodoList'
const getVisibleTodos = (todos, filter) => {
switch (filter) {
case 'SHOW_ALL':
return todos
case 'SHOW_COMPLETED':
return todos.filter(t => t.completed)
case 'SHOW_AC... |
#pragma once
#include "../../shapes/shape.h"
#include "../four_tuple/four_tuple.h"
#include "../intersection/intersection.h"
#include "../ray/ray.h"
namespace data_structures
{
class intersection_computations
{
public:
static intersection_computations prepare(const intersection & i, const ray & r);
float getT() co... |
# ##########################################################
# FILENAME: FlowlineRasterize.py
# VERSION: 1.0
# SINCE: 2016-05-02
# AUTHOR: Xing Zheng - zhengxing@utexas.edu
# Description:This program is designed for converting
# NHD flowline features to a source raster that is
# ... |
$('body').append(
'<div id="qunit"></div>' +
'<div id="qunit-fixture">' +
'<div id="testElement"><h1>Test</h1></div>' +
'</div>'
); |
# Import Salt Testing libs
from salttesting import skipIf, TestCase
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
try:
from mock import MagicMock, patch
has_mock = True
except ImportError:
has_mock = False
if has_mock:
import salt.states.rvm as rvm
rvm.__salt__ = {}... |
/*
* Copyright 2010-2013 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
module.exports = [
{
id: "GykTLqODQuU",
title: "Formulário Animado com JS puro e CSS Animation | Mayk Brito",
duration: "57min",
price: "Free",
featured: true
},
{
id: "vqrjFnq3-uo",
title: "Criando Player de Áudio com Javascript | Mayk Brito",
duration: "1h 45min",
... |
from pypushwoosh.client import PushwooshClient
from pypushwoosh.command import CreateMessageForApplicationCommand
from pypushwoosh.notification import Notification
AUTH_TOKEN = 'AUTH_TOKEN'
APPLICATION_CODE = 'APP-CODE'
if __name__ == '__main__':
notification = Notification()
notification.content = 'Hello wor... |
"""
SENet for ImageNet-1K, implemented in Keras.
Original paper: 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507.
"""
__all__ = ['senet', 'senet16', 'senet28', 'senet40', 'senet52', 'senet103', 'senet154']
import os
import math
from keras import layers as nn
from keras.models import Model
... |
/*
* DbFile.h
*
* Created on: Jan 7, 2011
* Author: DS\one55379
*
* (C) COPYRIGHT JDSU 2011. ALL RIGHTS RESERVED. NO PART OF THIS
* PROGRAM MAY BE PHOTOCOPIED REPRODUCED OR TRANSLATED TO
* ANOTHER PROGRAM LANGUAGE WITHOUT THE PRIOR WRITTEN CONSENT OF
* JDSU.
*
* DbFile encapsulates the files... |
/**
* @file videojs-http-streaming.js
*
* The main file for the HLS project.
* License: https://github.com/videojs/videojs-http-streaming/blob/master/LICENSE
*/
import document from 'global/document';
import window from 'global/window';
import PlaylistLoader from './playlist-loader';
import Playlist from './playli... |
"""Plot the contours of the vorticity field at the final time step."""
from matplotlib import pyplot
import numpy
import pathlib
import petibmpy
# Set parameters and directory.
show_figure = True # display the Matplotlib figure
save_figure = True # save the Matplotlib figure as PNG
simudir = pathlib.Path(__file__... |
import api from "../util.mjs";
/**
* @alias frontend
*/
class Frontend {
/**
* The frontend object is passed to the setup functions of each plugin,
* and exposes the APIs necessary to augment heedy's UI.
* @example
* function setup(frontend) {
* frontend.addRoute({
* path: "/myplugin/myr... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, August 24, 2019 at 9:45:04 PM Mountain Standard Time
* Operating System: Version 12.4 (Build 16M568)
* Image Source: /System/Library/Frameworks/Photos.framework/Photos
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
... |
import { EMBER_NATIVE_DECORATOR_SUPPORT } from '@ember/canary-features';
import { Component } from '@ember/-internals/glimmer';
import { Object as EmberObject } from '@ember/-internals/runtime';
import { moduleFor, RenderingTestCase, strip } from 'internal-test-helpers';
import { action } from '../index';
if (EMBER_N... |
import glob
import os
import re
import sys
from binascii import a2b_hex
from tornado.httpclient import AsyncHTTPClient
from kubernetes import client
from jupyterhub.utils import url_path_join
# Make sure that modules placed in the same directory as the jupyterhub config are added to the pythonpath
configuration_dire... |
//https://github.com/abpframework/abp/blob/589615d3f609bf6e8b634b60e81387d364e27d72/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnit.cs
const codeUnitLength = 5
/**
* Creates code for given numbers.
* Example: if numbers are 4,2 then returns "00004.00002";
* @param {Array} numbers
* @re... |
function UploadSideBarDetails() {
let appname = $.cookie("appname");
let database = firebase.database();
let Menu_textcolor = document.getElementById("Menu_textcolor").value;
let Menu_usercolor = document.getElementById("Menu_usercolor").value;
let Menu_bgcolor = document.getElementById("Menu_bgcolor").value;... |
export const loadState = () => {
try {
const serializedState = localStorage.getItem('state');
if (serializedState === null) {
return undefined;
}
return JSON.parse(serializedState);
} catch (err) {
return undefined;
}
};
export const saveState = (state) => {
try {
const serialize... |
from typing import Optional
from app.domain.named_entity import NamedEntity
from app.service.storage.crud import StorageCrud
class Segment(NamedEntity):
description: Optional[str] = ""
eventType: Optional[str] = None
condition: str
enabled: bool = True
def get_id(self) -> str:
return sel... |
class Animals:
animalType = 'Mammals'
class Pet(Animals):
color = 'white'
class Dog(Pet):
@staticmethod
def bark():
print ('Bow Bow!')
d = Dog()
d.bark() |
"""
################################################################################
# Copyright (c) 2003, Pfizer
# Copyright (c) 2001, Cayce Ullman.
# Copyright (c) 2001, Brian Matthews.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... |
import io
import os
import zipfile
import tarfile
import torch.utils.data
from .example import Example
from ..utils import download_from_url
from logger_setup import define_logger
logger = define_logger('data_squad.torchtext.data.dataset')
class Dataset(torch.utils.data.Dataset):
"""Defines a dataset composed ... |
#!/usr/bin/env python
"""
subtask_pick.py - Version 0.0.2 2015-09-20
Command the gripper to grasp a target object and move it to a new location, all
while avoiding simulated obstacles.
Copyright 2014 by Patrick Goebel <patrick@pirobot.org, www.pirobot.org>
Copyright 2015 by YS Pyo <passionvirus@g... |
module.exports = {
plugins: [
`gatsby-plugin-sass`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-offline`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images/`,
},... |
// Size of the map block is 30x30 units
const blockSize = 30;
const gamerStep = 1;
const gamerWidth = 11;
const gamerHeight = 13;
const screenWidthInBlocks = 10;//10
const screenHeightInBlocks = 7;//7
const dialogFontSize = blockSize / 7;
const screenWidthInUnits = screenWidthInBlocks * blockSize;
const screenHeightI... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
} else if (typeof exports !== "undefined") {
factory();
} else {
var mod = {
exports: {}
};
factory();
global.undefined = mod.exports;
}
})(this, function () {
"use strict";
});
/... |
/*
Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License. You may
obtain a copy of the License at
https://imagemagick.org/script/license.php
Unless required ... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
import React from 'react';
import MainQuestion from './MainQuestion';
import './index.css';
import Sidebar from '../Sidebar/Sidebar';
export default function index() {
return (
<div className="question-view">
<div className="question-view-container">
<Sidebar/>
<... |
/*
* Copyright (c) 2016 CartoDB. All rights reserved.
* Copying and using this code is allowed only according
* to license terms, as given in https://cartodb.com/terms/
*/
#ifndef _CARTO_MAPNIKVT_FONTSET_H_
#define _CARTO_MAPNIKVT_FONTSET_H_
#include <string>
#include <vector>
namespace carto { namespace mvt {
... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
var searchData=
[
['ignoreallverticesonlevel',['IgnoreAllVerticesOnLevel',['../class_qwt_raster_data.html#ac0053b66315fde6f0a9a69c40d7c5dccafd2f6337e825201a247408f033713c92',1,'QwtRasterData']]],
['ignorefooter',['IgnoreFooter',['../class_qwt_plot_layout.html#ad0d2d60e86a4c69ec105524041d5221da132d4fc728c0826a269a14... |