text stringlengths 3 1.05M |
|---|
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#include "taisei.h"
#include "nonspells.h"
#include "../hina.h"
#i... |
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
function _getPrototypeOf(o) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ ||... |
/*!
\file COGLGraphicsContext.h
\date 22.09.2018
\authors Kasimov Ildar
*/
#pragma once
#include <core/IGraphicsContext.h>
#include <core/Event.h>
namespace TDEngine2
{
class IOGLContextFactory;
class IEventManager;
class IRenderTarget;
/// A pointer to function that creates GL context based on platform
t... |
"""
TensorFlow implementation of the Swin Transformer
Based on the implementation by Rishigami
Source: https://github.com/rishigami/Swin-Transformer-TF
Paper: Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Link: https://arxiv.org/abs/2103.14030
Official implementation: https://github.com/micr... |
from distutils.core import setup
setup(
name = 'lcpy',
packages = ['lendingclub', 'lendingclub.models'],
version = '0.1',
description = 'Unofficial Python Library for LendingClub API',
author = 'Adrian Teng-Amnuay',
author_email = 'pumpadrian@gmail.com',
url = 'https://github.com/Porkbutts/lendingclub-pyt... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# The MIT License (MIT)
# Copyright (c) 2017 Juan Cabral
# 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 withou... |
'use strict'
const fs = require('fs')
const path = require('path')
const Sequelize = require('sequelize')
const basename = path.basename(__filename)
const config = require('../../config/database') // Caminho da configuração da database
const db = {}
const sequelize = new Sequelize(
config.database,
config.usernam... |
# Copyright (C) 2009-2013 Sebastian Rahlf <basti at redtoad dot de>
#
# This program is release under the BSD License. You can find the full text of
# the license in the LICENSE file.
from lxml import etree, objectify
from amazonproduct.contrib.cart import Cart, Item
from amazonproduct.errors import AWSError
... |
import { defaultAction } from '../actions';
import { DEFAULT_ACTION } from '../constants';
describe('BookDetailsPage actions', () => {
describe('Default Action', () => {
it('has a type of DEFAULT_ACTION', () => {
const expected = {
type: DEFAULT_ACTION,
};
expect(defaultAction()).toEqua... |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-10-05 17:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('push', '0007_auto_20161006_0058'),
]
operations = [
migrations.AlterField(
... |
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[295],{85513:function(e){e.exports=function(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in... |
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ ! function(n) {
"function" == typeof define && define.amd ? define(["jquery"], n) : "object" == typeof module && module.exports ? module.exports = function(e, t) {
return void 0 === t && (t = "undefined" != typeof window ? req... |
define([], function() {
return {
// general labels
"PropertyPaneDescription": "Web part configuration",
"RefreshInterval": "Refresh interval (in minutes)",
// Followed Sites Webpart
"NrOfFollowedItemsLabel": "Number of followed sites to retrieve",
"SortOrderFollowedI... |
/*
* @Author: your name
* @Date: 2020-01-08 18:31:03
* @LastEditTime: 2020-01-08 18:56:21
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: \xianxiapai-admin\src\lang\index.js
*/
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import Cookies from 'js-cookie'
import elementEnLocale... |
$(window).load(function(){var a={location:["mapsconfig-seattle","mapsdata-seattle"]};configMap(a.location)}); |
import pytest
from base.webdriverfactory import WebDriverFactory
from pages.home.login_page import LoginPage
@pytest.yield_fixture()
def setUp():
print("Running method level setUp")
yield
print("Running method level tearDown")
@pytest.yield_fixture(scope="class")
def oneTimeSetUp(request, browser):
p... |
#ifndef TIME_INTERVAL_COUNTER_H
#define TIME_INTERVAL_COUNTER_H
#include "Hardware.h"
#include <stdint.h>
#include <stdbool.h>
typedef struct {
/**
* タイマを0からスタートさせる.
*/
void (*startTimer)(void);
/**
* キャプチャを開始して,1回のみキャプチャする.
*/
void (*startCapturing)(void);
/**
* キャプチャした値を返す.
* キャプチャしていない場合は0を返す.
... |
//WARNING: This Font Require X-GLCD Lib.
// You can not use it with MikroE GLCD Lib.
//Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
//MikroElektronika 2011
//http://www.mikroe.com
//GLCD FontName : Segoe_UI_Semibold19x21
//GLCD FontSize : 19 x 21
const char Segoe_UI_Semibold_19x21_fontArray ... |
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2011 The PHP Group |
+---------... |
import { ROLE_MAP, } from 'api/config'
import { map, } from 'lodash'
const role_options = map(ROLE_MAP, (s, k) => {
return { name: k, value: s, }
})
const roleOpts = (store, { vueInstance }) => new Promise(resolve => {
const opts = map(ROLE_MAP, (v, k) => ({ id: v, text: vueInstance.$t(`MEMBER.ROLE_${k}`), }))
r... |
from unittest import TestCase
import os,sys,inspect
current_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
import feladatok
class TestFelvettDiakokAtlaga(TestCase):
def test_feladat01(self):
adat="70,... |
import {structuredPatch} from './create.js';
import {parsePatch} from './parse.js';
import {arrayEqual, arrayStartsWith} from '../util/array.js';
export function calcLineCount(hunk) {
const {oldLines, newLines} = calcOldNewLineCount(hunk.lines);
if (oldLines !== undefined) {
hunk.oldLines = oldLines;
} els... |
"""
.. module: lemur.certificate.service
:platform: Unix
:copyright: (c) 2018 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
"""
import re
import time
from collections import defaultdict
from itertools import group... |
"""
pygments.lexers.julia
~~~~~~~~~~~~~~~~~~~~~
Lexers for the Julia language.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, \
words, include
from... |
import random
# What is a class? Template or blueprint for an object.
# What is an object? Instance of a class, created based on it's structure.
class sudoku:
# Member Variables
# - Variables that a class has access to.
# - Sometimes referred to as properties.
# size of the board
SIZE = 9... |
import sys, csv, os
class Record(object):
"""Represents a row"""
class Case(Record):
"""Represents a case from Force"""
class Table(object):
"""list of objects"""
def __init__(self):
self.records = []
def __len__(self):
return len(self.records)
def ReadFile(self, data_dir,... |
function trasactionWithCeledon(state, opts){
console.log(opts.org)
// opts: {
// from:,
// to: ,
// amount: ,
// feePortion,
// org
// }
const { from, to } = opts;
const addressLength = 66;
if(from.length < addressLength || to.length < addressLength) {
return {... |
/* Copyright 2017-present Samsung Electronics Co., Ltd. and other 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/licenses/LICENSE-2.0
*
* U... |
#!/usr/bin/python3
"""
The first known prime found to exceed one million digits was discovered in 1999, and is a Mersenne prime of the form (2^6972593)−1; it contains exactly 2,098,960 digits. Subsequently other Mersenne primes, of the form (2^p)−1, have been found which contain more digits.
However, in 2004 ther... |
from pycharts.charts.pie_chart import PieChart
from pycharts.charts.stacked_bar_chart import StackedBarChart
from highcharts_plotter import HighChartsPlotter
data = [
['Firefox', 45.0],
['IE', 26.8],
['Chrome', 12.8],
['Safari', ... |
import logging
import click
from stactools.ghcnd import stac
from stactools.ghcnd.constants import YEARS_URL
logger = logging.getLogger(__name__)
def create_ghcnd_command(cli):
"""Creates the stactools-ghcnd command line utility."""
@cli.group(
"ghcnd",
short_help=("Commands for working wit... |
// @tags: [
// assumes_superuser_permissions,
// does_not_support_stepdowns,
// ]
// Tests that using setParameter to update the parameter 'automationServiceDescriptor' causes a
// field with that name to be echoed back in hello. See SERVER-18399 for more details.
(function() {
// Run hello, and if it contains a... |
const fs = require('fs');
const { Image, FaceDetector, PointDetector } = require('..');
const fdModel = 'models/SeetaFaceDetector2.0.ats';
const faModel = 'models/SeetaPointDetector2.0.pts5.ats';
const images = [];
function walk(path) {
fs.readdirSync(path).forEach(file => {
const newPath = path + '/' + file;
... |
import React from 'react';
import { Route } from 'react-router-dom'
import ListBooks from './ListBooks'
import Search from './Search'
import './App.css'
function BooksApp(props) {
return (
<div className="app">
<Route path='/search' render={({ history }) => (
<div>
<S... |
import { LocalizeHtml } from '../../utils/i18n'
import './popup.scss'
// Localize the popup page
LocalizeHtml()
|
# MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 use, copy, ... |
""" formats.py
This module handles binary formats, and conversion to/from objects.
# FormatRegistry Class (singleton)
The `FormatsRegistry` class acts as a global container for registered formats,
and provides a place to register and discover formats.
Formats may be discovered by:
* metadata
* file extensio... |
from .utils import *
class DoubletInfo:
"""
Holds information about doublet for a given spacepoint when it is considered as the middle spacepoint.
Output of the doubletCounting step write there
"""
def __init__(self, nbSpacepoints):
# number of inner doublet (other spacepoint has a smalle... |
# coding=utf-8
"""
The E-commerce Store Products API endpoint
Documentation: http://developer.mailchimp.com/documentation/mailchimp/reference/ecommerce/stores/products/
Schema: https://api.mailchimp.com/schema/3.0/Ecommerce/Stores/Products/Instance.json
"""
from __future__ import unicode_literals
from mailchimp3.base... |
import numpy as np
import json
from keras.utils.data_utils import get_file
from keras import backend as K
CLASS_INDEX = None
CLASS_INDEX_PATH = 'https://s3.amazonaws.com/deep-learning-models/image-models/imagenet_class_index.json'
def preprocess_input(x, dim_ordering='default'):
if dim_ordering == 'default':
... |
# Copyright 2019 Attila Oláh
#
# 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 writing,... |
import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name="size",
parent_name="icicle.marker.colorbar.title.font",
**kwargs,
):
super(SizeValidator, self).__init__(
plotly_name=plot... |
from sleekxmpp.exceptions import IqError
from sleekxmpp.exceptions import IqTimeout
from config import ROOM_JID
from ConformanceUtils import init_test_one_bot
from ConformanceUtils import print_test_description
from JoinMUCBot import JoinTestMUCBot
class EchoBot(JoinTestMUCBot):
def __init__(self, jid, password... |
/* Copyright (C) 2016-2018 Alibaba Group Holding Limited
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 ... |
from ipywidgets import interact, fixed
from IPython.display import clear_output, display, HTML
import ipywidgets as ipw
import numpy as np
import warnings
import io
import os
from markdown import markdown
import pyarrow as pa
import pandas as pd
import altair as alt
from .description import drg, table_text
from . impor... |
/*
* $Id: get.c 1102 2008-02-27 03:38:31Z jiez $
*
* Copyright (C) 2003 ETC s.r.o.
*
* 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 License, or (at your option... |
"""
TRAINS - Artificial Intelligence Version Control
https://github.com/allegroai/trains
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from six import exec_
from pathlib2 import Path
here = Path(__file__).resolve().parent
# Get the long description from the README file
lo... |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'restuff_31572.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... |
import re
from typing import Dict
from typing import Match
from typing import Optional
from typing import Set
from typing import Union
class NameRemovedError(Exception):
def __init__(self, name: str):
super().__init__(
f"{repr(name)} does not exist anymore. Remove references to it."
)... |
//===--- MetadataReader.h - Abstract access to remote metadata --*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
import api from './api-client';
const serviceUrl = 'api/v1/auction';
export async function fetchAuctions () {
const options = {
url: serviceUrl,
};
const { data } = await api.get(options);
return data;
}
export async function fetchAuctionById (id) {
const options = {
url: `${serviceUrl}/${id}`,... |
import numpy as np
from yt.testing import \
fake_random_ds, \
assert_almost_equal
from yt.utilities.math_utils import euclidean_dist, periodic_dist
def setup():
from yt.config import ytcfg
ytcfg["yt","__withintesting"] = "True"
def test_periodicity():
# First test the simple case were we find the... |
import os
from itertools import zip_longest
from pathlib import Path
from gopro_overlay import geo
from gopro_overlay.dimensions import Dimension
from gopro_overlay.ffmpeg import MetaMeta
from gopro_overlay.font import load_font
from gopro_overlay.framemeta import framemeta_from_datafile
from gopro_overlay.geo import ... |
// Copyright (c) 2019 The PIVX developers
// Copyright (c) 2020 The Nyerium developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef CONTACTDROPDOWNROW_H
#define CONTACTDROPDOWNROW_H
#include <QWidget>
namespace Ui {... |
// @flow weak
import React from "react"
import { styled } from "@material-ui/core/styles"
import * as colors from "@material-ui/core/colors"
const Container = styled("div")({})
const Stat = styled("div")({
display: "inline-flex",
flexDirection: "column",
margin: 16
})
const Label = styled("div")({
fontSize: 1... |
var KeyboardVisual;
KeyboardVisual = function(kb, options, userOptions){
this.kb = kb;
this.toShowOption = userOptions.show;;
if(this.toShowOption != 'newer')
this.createContainer(options, userOptions);
}
KeyboardVisual.prototype.createContainer = function(options, userOptions){
this.container = $('<div i... |
import React, {PropTypes} from "react";
import {View, Text} from "react-native";
import fonts from '../../utils/fonts';
import EStyleSheet from 'react-native-extended-stylesheet';
export default class PageParagraph extends React.Component {
static propTypes = {
paragraph: PropTypes.shape({
titl... |
import dataclasses
import warnings
from dataclasses import dataclass
from typing import List
from blspy import AugSchemeMPL, G2Element
from chia.consensus.default_constants import DEFAULT_CONSTANTS
from chia.types.blockchain_format.coin import Coin
from chia.types.blockchain_format.sized_bytes import bytes32
from ch... |
# Copyright (c) 2020 PaddlePaddle 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 appli... |
# Copyright 2012 OpenStack Foundation
# 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... |
/*****************************************************************************
* Zoltan Library for Parallel Applications *
* Copyright (c) 2000,2001,2002, Sandia National Laboratories. *
* For more info, see the README file in the top-level Zoltan directory. *
***... |
/* printenv.c - Print environment variables.
*
* Copyright 2012 Georgi Chorbadzhiyski <georgi@unixsol.org>
USE_PRINTENV(NEWTOY(printenv, "0(null)", TOYFLAG_BIN))
config PRINTENV
bool "printenv"
default y
help
usage: printenv [-0] [env_var...]
Print environment variables.
-0 Use \0 as delimiter i... |
from flask import flash, redirect, render_template, url_for
from flask_login import login_required, login_user, logout_user
from . import auth
from forms import LoginForm, RegistrationForm
from .. import db
from ..models import Employee
@auth.route('/register', methods=['GET', 'POST'])
def register():
form = Regis... |
/*
* Copyright (c) 2018-2020 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
import React from 'react';
import ReactDOM from 'react-dom';
import AppleCarousel from './AppleCarousel/test';
ReactDOM.render(<AppleCarousel />, document.getElementById("root")); |
#coing:utf-8
from tree import createTree,result
class BaseDecisionTree():
def __init__(self,dataSet,labels):
newDataSet = []
for dataList in dataSet:
newDataList = []
for data in dataList:
newDataList.append(str(data))
newDataSet.append(newDataList)
newLabels = [ str(label) for label in labels]
... |
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import fu... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014 clowwindy
#
# 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
# ... |
/*
function rand(randMin,randMax) {
return Math.floor(Math.random() * (randMax - randMin + 1)) + randMin;
}
*/
/*
function d2h(d) {
var hexString = d.toString(16);
while (hexString.length < 6) {
hexString = '0' + hexString;
}
return '#' + hexString;
}
*/
/*
function d2rgb(r,g,b){
ret... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Excel表单解析器基类
ExcelSheetParser
"""
import os
class ExcelSheetParser:
def __init__(self, nslist, dt_mapping, default_ns):
self.ns = ""
self.nslist = nslist
self.dt_mapping = dt_mapping
self.default_ns = default_ns
... |
var VisualizerConfig = {
logo: {
img: 'images/logo.png',
text: 'Cubes Visualizer'
},
splashScreen: true,
cubesUrl: window.location.href.substring(0, window.location.href.indexOf('visualizer')),
defaultCubesUrl: window.location.href.substring(0, window.location.href.indexOf('visualizer')),
debug: fal... |
/*
* 由ZCY01二次修改:脚本默认不运行
* 由 X1a0He 修复
* 如需运行请自行添加环境变量:JD_TRY,值填 true 即可运行
* 脚本兼容: Node.js
* X1a0He留
* 由于没有兼容Qx,原脚本已失效,建议原脚本的兼容Qx注释删了
* 脚本是否耗时只看args_xh.maxLength的大小
* 上一作者说了每天最多300个商店,总上限为500个,jd_unsubscribe.js我已更新为批量取关版
* 请提前取关至少250个商店确保京东试用脚本正常运行
*
* @Address: https://github.com/X1a0He/jd_scripts_fixed/blob... |
#!/usr/bin/env python3
# Copyright (c) 2021, NVIDIA CORPORATION. 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
#
# Un... |
import React from 'react';
import PropTypes from 'prop-types';
import { OverviewTable } from './OverviewTable';
import { FilterTableData } from '../../utils/FilterTableData';
import { createTableData } from './process-overview-score';
import {
ApplicationCtxConsumer,
CustomCircleLoader,
MaturityScoreCtxConsumer
... |
# encoding: utf-8
"""
An example of using the naive alignment code. There are two functions
for naive alignment. naiveWordAlignment and naivePhoneAlignment. They
operate at the word and phone levels respectively.
Naive alignment is naive because it gives all phones the same length.
Word duration is then driven by t... |
import argparse
import os
from util import util
import torch
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.initialized = False
def initialize(self):
self.parser.add_argument('--d... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
# this file contains useful functions for
# getting information about permissions, groups and users
import sqlalchemy.orm.exc as orm_exceptions
from database.Models import User, Group
from database.flaskAlchemyInit import HTTPRequestError
def get_user_direct_permissions(db_session, user):
try:
user = Use... |
# Copyright (c) 2017 Presslabs SRL
#
# 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 writ... |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) David Arnold (XOE Solutions).
# Author David Arnold (XOE Solutions), dar@xoe.solutions
# Co-Authors Juan Pablo Aries (devCO), jpa@devco.co
# Hector Ivan Valencia Muñoz (TIX SAS)
# ... |
# Generated by Django 2.1.3 on 2018-12-10 12:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0002_auto_20181203_1109'),
]
operations = [
migrations.RenameField(
model_name='subsection',
old_name='imageResource... |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
/* Copyright 2015-present Samsung Electronics Co., Ltd. and other 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/licenses/LICENSE-2.0
*
* U... |
let pos = 0;
const pacArray = [
["PacMan1.png", "PacMan2.png"],
["PacMan3.png", "PacMan4.png"],
];
let direction = 0;
const pacMen = []; // This array holds all the pacmen
// This function returns an object with random values
function setToRandom(scale) {
return {
x: Math.random() * sca... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['leaflet'], factory);
} else if (typeof modules === 'object' && module.exports) {
// define a Common JS module that relies on 'leaflet'
module.exports = factory(require('leaflet'));
... |
/*
* Copyright 2019 Xilinx, Inc.
*
* 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... |
/**************************************************************************************
Copyright 2015 Applied Research Associates, Inc.
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.ap... |
var o = "foo bar baz٪☃🍣";
var m = "foobar"; for(var i = 0; i != 11; ++i) m+=m;
var m1 = m + m, m2 = m1 + m1, m3 = m2 + m2, m4 = m3 + m3;
var M1 = m + "𝑹" + m, M2 = M1 + "𝐀" + M1, M3 = M2 + "𝓜" + M2, M4 = M3 + "𝙖" + M3;
var bits = [
[ "Wikipedia", 300286872, 1 ],
[ "foo bar baz", 398066679, 1 ],
[ "foo bar baz٪... |
import os
from collections import defaultdict
import random
import pandas as pd
from bokeh.core.property.dataspec import value
from bokeh.io.export import export_svg, export_png
from bokeh.models import ColumnDataSource, HoverTool, Label
from bokeh.plotting import figure
from selenium import webdriver
from sklearn.clu... |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... |
from flask import Blueprint
from root.modules.sources.dao.sources_dao_impl import getFilesByProject, uploadFile, previewSource,gen_sys_preview,editColumnNames,genRawPreview,initiateSysPreview
#from root.modules.projects.dao.new_project_dao import newprojectfn
from root.config.db_config import SQLDatabase #import... |
from ..broker import Broker
class SpmInterfacesHubLocatorGridBroker(Broker):
controller = "spm_interfaces_hub_locator_grids"
def index(self, **kwargs):
"""Lists the available spm interfaces hub locator grids. Any of the inputs listed may be be used to narrow the list; other inputs will b... |
/* eslint no-case-declarations: 0 */
import isEqual from 'lodash.isequal'
import devMessage from './devMessage'
import { cachePeriodAgo } from './cachePeriod'
import {
FETCH, FETCH_SUCCESS, FETCH_ERROR,
FETCH_ONE, FETCH_ONE_SUCCESS, FETCH_ONE_ERROR,
CREATE, CREATE_SUCCESS, CREATE_ERROR,
UPDATE, UPDATE_SUCCESS,... |
# coding=utf-8
print('你好')
|
import csv
import math as m
import numpy as np
open_time_slots = {
'breakfast':range(800,1200),
'lunch':range(1200,1600),
'dinner':range(1800,2200)
}
def get_visitors():
with open('visitor-locations-times.csv', 'r') as csvfile:
visitors = csv.DictReader(csvfile, delimiter=',')
for visi... |
import torch
import math
import cv2 as cv
import random
def stack_tensors(x):
if isinstance(x, list) and isinstance(x[0], torch.Tensor):
return torch.stack(x)
return x
def sample_target(im, target_bb, search_area_factor, output_sz=None):
""" Extracts a square crop centered at target_bb box, of a... |
"""aboutTa 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... |
/**
* FreeRDP: A Remote Desktop Protocol client.
* Virtual Channel Manager
*
* Copyright 2009-2011 Jay Sorg
*
* 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... |
from setuptools import setup
PLUGIN_NAME = "papermill"
microlib_name = f"flytekitplugins-{PLUGIN_NAME}"
plugin_requires = [
"flytekit>=0.16.0b0,<1.0.0",
"papermill>=1.2.0",
"nbconvert>=6.0.7",
"ipykernel>=5.0.0",
]
__version__ = "0.0.0+develop"
setup(
name=microlib_name,
version=__version__... |