text stringlengths 3 1.05M |
|---|
import json
import unittest
import requests
from gunpla_api.db_connector import DbConnector
from gunpla_api.app import create_app
# python -m unittest gunpla_api.tests.integration.test_private_routes.TestPrivateRoutes
class TestPrivateRoutes(unittest.TestCase):
def setUp(self):
self.db = DbConnector()
... |
import toJson from 'enzyme-to-json';
import { KeyboardDatePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
import { ThemeProvider } from '@material-ui/styles';
import { mount } from 'enzyme';
import { DateTime } from 'luxon';
import { act } from 'react-dom/test-utils';
import DatePicker from './DatePicke... |
const vscode = require('vscode');
const path = require('path');
const url = require('url');
const open = require('open');
const fetch = require('node-fetch');
const constants = require('../constants');
let extensionContext;
let extensionPath;
let webViewPanel;
function initialize(context) {
extensionContext = co... |
import random
import _jsonnet, json
import logging
import hashlib
import os
from copy import deepcopy
import pandas as pd
from tqdm import tqdm
import math
from LeapOfThought.resources.teachai_kb import TeachAIKB
from LeapOfThought.common.general import num2words1, bc
from LeapOfThought.common.data_utils import unifor... |
// transducers-js 0.4.175
// http://github.com/cognitect-labs/transducers-js
//
// Copyright 2014-2015 Cognitect. 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
//
... |
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
/**
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2016
* @license Apache-2.0
*
* Modified by Raka-loah@github for zh-CN i18n
*/
// Styles
import "./stylesheets/index.js";
// Libs
import "arrive";
import "snackbarjs";
import "bootstrap-material-design/js/index";
import "bootstrap-colorpick... |
module.exports = function (grunt) {
require('matchdep').filterAll('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
copy: {
js: {
expand: true,
cwd: 'src/js',
src: 'snackbar.js',
dest: 'dist/',
},
},
jshint: {
files: ['Gruntfile.js', 'src/js/*... |
/**
* 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.
*
* @flow
*/
import * as React from 'react';
import styles from './ChartNode.css';
type Props = {|
color: string,
height: num... |
# textbox widget focus
import tkinter as tk
from tkinter import ttk #ttk = themed tk
win = tk.Tk() # win is short for windows #constructor
win.title("Python GUI with label textbox widgets")
aLabel = ttk.Label(win, text="A Label")
aLabel.grid(column=0, row=0)
def clickMe(): #function to change label on click
actio... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
# 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... |
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_lang_NoSuchFieldError__
#define __java_lang_NoSuchFieldError__
#pragma interface
#include <java/lang/IncompatibleClassChangeError.h>
class java::lang::NoSuchFieldError : public ::java::lang::IncompatibleClassChangeError
{
public:
NoSu... |
import pytest
import unittest
from modules.sfp_dronebl import sfp_dronebl
from sflib import SpiderFoot
@pytest.mark.usefixtures
class TestModuleDronebl(unittest.TestCase):
def test_opts(self):
module = sfp_dronebl()
self.assertEqual(len(module.opts), len(module.optdescs))
def test_setup(sel... |
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... |
def run_once(func):
"""
A decorator that allow a function to run only once.
"""
def wrapper(*args, **kwargs):
if not wrapper.has_run:
wrapper.has_run = True
return func(*args, **kwargs)
wrapper.has_run = False
return wrapper
|
//bard_tyr.c - Bard of tyr reward for Nereid Riddle Quest. Circe 1/22/04
#include <std.h>
#include "../../nereid.h"
inherit RALLYLIGHT;
void create(){
::create();
// set_name("tyr instrument");
set_id(({"tabor","electrum tabor","instrument"}));
set_obvious_short("An electrum tabor");
set_short("%^... |
# -*- coding: utf-8 -*-
"""
Log-Euclidean Bin and Delta model for the axis-angle representation
"""
import torch
from torch import nn
from torch.autograd import Variable
from torch.utils.data import DataLoader
from dataGenerators import TestImages, my_collate
from binDeltaGenerators import GBDGenerator
from axisAngle... |
/*
Copyright 2018 <Pierre Constantineau>
3-Clause BSD License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow... |
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://... |
from typing import Any, List, Optional, Union
from airflow.exceptions import AirflowException
from airflow.hooks.base import BaseHook
from impala.dbapi import connect
from krbcontext import krbcontext
import os
from contextlib import closing
class SparkThriftJdbcHook(BaseHook):
def __init__(
self,
... |
/*[
shrd.c
LOCAL CHAR SccsID[]="@(#)shrd.c 1.6 09/02/94";
SHRD CPU functions.
-------------------
]*/
#include <insignia.h>
#include <host_def.h>
#include <xt.h>
#include <c_main.h>
#include <c_addr.h>
#include <c_bsic.h>
#include <c_prot.h>
#include <c_seg.h>
#include <c_stack.h>
#include ... |
# 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 ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The production x >>>= y is the same as x = x >>> y
es5id: 11.13.2_A4.8_T2.4
description: >
Type(x) is different from Type(y) and both types vary between
Number (primit... |
import random
# THE SIMULATED BINARY CROSSOVER for Real-Coded GA
def cross_sbx(num_obj, X_pool, X_hi, X_lo, cxi, pop_size, num_params, seed):
# The method "cross_sbx" requires the following parameters:
# X : The mating population pool from selection
# cxi : The Crossover Index ~20
# X_hi : M... |
import sublime
import sublime_plugin
from .clients import start_window_config
from .configurations import ConfigManager, is_supported_syntax
from .handlers import LanguageHandler
from .logging import debug
from .rpc import Client
from .sessions import Session
from .settings import settings, client_configs
from .types i... |
# coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
from pants_test.pants_run_integration_test import PantsRunIntegrationTest
class NodeTes... |
/* Copyright (c) Mark J. Kilgard, 1994. */
/*
* (c) Copyright 1993, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the co... |
import networkx as nx
G = nx.Graph()
with open('day12_input.txt') as file:
# Build graph
for line in file:
name = line.split()[0]
G.add_node(name)
if '<->' in line.split():
for i in range(2, len(line.split())):
adjacent = line.split()[i].strip(',')
... |
Template.afObjectField_bootstrap3.helpers({
quickFieldsAtts: function () {
return _.pick(this, 'name', 'id-prefix');
}
});
|
/**
* @file segment-loader.js
*/
import Playlist from './playlist';
import videojs from 'video.js';
import Config from './config';
import window from 'global/window';
import { initSegmentId, segmentKeyId } from './bin-utils';
import { mediaSegmentRequest, REQUEST_ERRORS } from './media-segment-request';
import Transm... |
import re
from typing import NamedTuple
import numpy as np
EVENT_TAG = '<event>'
INIT_TAG = '<init>'
INIT_END_TAG = '</init>'
FILE_END_TAG = '</LesHouchesEvents>'
class Parameters(NamedTuple):
id_a : int # IDBMUP(1)
id_b : int # IDBMUP(2)
energy_a : float # EBMUP(1)
energy_b : float # EBMUP(2)
pdf... |
"""empty message
Revision ID: a54b85ff33ca
Revises: 03796eba455d
Create Date: 2017-09-21 18:09:44.447986
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a54b85ff33ca'
down_revision = '03796eba455d'
branch_labels = None
depends_on = None
def upgrade():
# ... |
# -*- encoding:utf-8 -*-
"""Autogenerated file, do not edit. Submit translations on Transifex."""
MESSAGES = {
"%d min remaining to read": "quedan %d minutos de lectura",
"(active)": "(activo)",
"Also available in:": "También disponible en:",
"Archive": "Archivo",
"Atom feed": "Canal Atom",
"Au... |
#!/usr/bin/python3
'''
CGI script to generate a video given a Zoneminder Event ID, Start Frame and End Frame.
URL format is http://HOST/cgi/gen-vid.py?event=EVENT_ID&start_frame=SF&end_frame=EF
Copyright 2018 Lindo St. Angel
'''
import cgi, cgitb, os, datetime, json
import mysql.connector as mysqldb
from subprocess ... |
def chop(lst):
l = len(lst)
if l == 0: return
elif l == 1: del lst[0]
else:
del lst[0]
del lst[l-2] #l-2 because we have already deleted an element, so the length has decreased by 1
def middle(lst):
new_lst = lst[:]
l = len(new_lst)
if l == 0: return
elif l =... |
from . import calco
|
import React, {Component} from 'react';
import {connect} from 'react-redux';
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import { getProductList } from "./actions/products.action";
// Components
import Header from './components/header'
import SideBar from './components/sidebar';
import C... |
from decimal import Decimal
import pandas as pd
from scipy.stats import norm
def instrument_data(s: float, days: int, vol: Decimal):
|
/* Microcontroller Library
* Copyright (c) 2015-2016 Nuvoton
*
* 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... |
import sys
sys.path.append('.')
import time
import argparse
from trlib.policies.qfunction import ZeroQ
from trlib.policies.valuebased import EpsilonGreedy
from trlib.environments.environment_data import PendulumData
from trlib.algorithms.algorithm_handler import FQI_SSEP_Handler
from trlib.utilities.persistnces_creator... |
(function(app){
angular.module(app.applicationModuleName).directive('ngTranslateLanguageSelect', function (LocaleService) { 'use strict';
return {
restrict: 'A',
replace: true,
template: ''+
'<div class="language-select" ng-if="visible">'+
'<label>'+
'{{"directives.language-s... |
import os
import pickle
import time
from collections import defaultdict
from datetime import datetime
from typing import Dict, List, Union
import numpy as np
from dlex.utils import logger, table2str
class TrainingProgress:
last_save = 0
last_log = 0
last_eval = 0
current_epoch = 0
epoch_num_sampl... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import json
#-------------------------------------------------------------------------
# Функции:
def get_json_dict (search_string, search_dir = None):
"""Поиск json по имени файла.
Обход каталогов рекурсивный, поэтому каталог указывать не обязател... |
"""
WSGI config for stable_matching project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... |
const test = require('ava')
const streamfeatures = require('../stream-features')
const xml = require('@xmpp/xml')
test.skip('selectFeature', t => {
const features = []
features.push({
priority: 1000,
run: () => {},
match: el => el.getChild('bind')
})
features.push({
priority: 2000,
run: () ... |
from __future__ import annotations
from dataclasses import dataclass
from abc import ABC, abstractmethod
from typing import Callable
@dataclass
class Coordinate:
x: int
y: int
move: dict[str, Coordinate] = {
'west': lambda coord: Coordinate(coord.x - 1, coord.y),
'north west': lambda coord: Coordina... |
// eslint-disable-next-line no-unused-vars
const Express = require("express");
const {
Helper: {
checkPayload,
checkId,
checkOrderItems,
checkShippingData,
checkStatus,
},
Db: { paginate: Paginate },
Constants: { PENDING, ADMIN, USER },
ErrorCodes,
ErrorMessage,
CustomException,
Logg... |
$(document).ready(function () {
$('#loading').show();
$('#quote_section').hide();
satoshi_refresh();
$('#refresh_button').click(function () {
$('#refresh_button').html('Please wait...');
$('#refresh_button').prop('disabled', true);
console.log('click')
satoshi_refresh()... |
import socket
import urlparse
import yaml
import os
from copy import deepcopy
from libcloud.compute.providers import get_driver
from mock import patch, Mock, DEFAULT
from pytest import raises, mark
from teuthology.config import config
from teuthology.exceptions import MaxWhileTries
from teuthology.provision import cl... |
import yaml
import argparse
import numpy as np
import pandas as pd
def read_params(config_path):
"""
read parameters from the params.yaml file
input: params.yaml location
output: parameters as dictionary
"""
with open(config_path) as yaml_file:
config = yaml.safe_load(yaml_file)
re... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdint.h>
#include"include/queue.h"
int allocate_pool_brk(struct queue_info *queue) {
queue->pool.head = (struct queue_node *)malloc(sizeof(struct queue_node) * QUEUE_SIZE);
if (!queue->pool.head) return 0;
queue->pool.next = queue->pool.head;
qu... |
/*
* Example plugin template
*/
jsPsych.plugins["box-search-eye"] = (function() {
var plugin = {};
plugin.info = {
name: "box-search-eye",
parameters: {
n: {
type: jsPsych.plugins.parameterType.INT, // INT, IMAGE, KEYCODE, STRING, FUNCTION, FLOAT
default_value: 10
},
i... |
import numpy as np
import unittest
from classifier.mediator.components.threshold import Threshold
class TestThreshold(unittest.TestCase):
def test_functionality(self):
x_data = [[0.1, 0.2, 0.3], [0.2, 0.3, 0.4], [0.3, 0.4, 0.5], [0.4, 0.5, 0.6]]
y_data = [0, 0, 0, 1]
threshold = Threshold(x_data, y_data)
... |
import sys
import os
import cv2,csv
import numpy as np
import matplotlib.pyplot as plt
from faceDetector import FaceDetection
class ImageExtractor:
#members
videofile = 0;
frames = [];
labels = [];
vids = [];
videonames = [];
labellist = [];
vid = 0;
framecount = 0;
fps = 0;
duration = 0;
framecountNew ... |
from __future__ import absolute_import, division, print_function
import cctbx.array_family.flex as flex# import dependency
import sys
import boost.python
ext = boost.python.import_ext("iotbx_ccp4_map_ext")
from iotbx_ccp4_map_ext import *
import iotbx_ccp4_map_ext as ext
class utils : # These routines are used by cc... |
import React, {useEffect, useState} from 'react';
import {
initializeBlock,
useBase,
useLoadable,
useGlobalConfig,
useWatchable,
useViewport,
Box,
useRecords,
useRecordById,
useSettingsButton,
Heading,
ViewportConstraint,
} from '@airtable/blocks/ui';
import {cursor, session} from "@airtable/blocks";
impor... |
/**
* jQuery ligerUI 1.1.9
*
* http://ligerui.com
*
* Author daomi 2012 [ gd_star@163.com ]
*
*/
(function ($)
{
//ligerui 继承方法
Function.prototype.ligerExtend = function (parent, overrides)
{
if (typeof parent != 'function') return this;
//保存对父类的引用
this.base ... |
/**
* Copyright 2021 SpinQ Technology Co., Ltd.
*
* 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 l... |
var searchData=
[
['listen',['listen',['../classcex_1_1_server.html#aa7ff9ad1d08635997f32b3d09e2b5981',1,'cex::Server::listen(bool block=true)'],['../classcex_1_1_server.html#a62864c3ceeb3faeece6645c4b5904459',1,'cex::Server::listen(std::string address, int port, bool block=true)']]],
['lock',['lock',['../classcex_... |
/*
* Copyright (C) 2016 - 2021 Steven Agyekum, s-8@posteo.mx
* Copyright (C) 2009 - 2012 Robin Seggelmann, seggelmann@fh-muenster.de,
* Michael Tuexen, tuexen@fh-muenster.de
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... |
#!/usr/bin/python3
# -*- encoding="UTF-8" -*-
import sys
sys.path.append("../..")
from Models.CtrlSource.CtrlSourceClass import cccs
from Functions.addNode import addNode
from Functions.string2num import string2num
import parameters
def parseCCCS_F(stringCCCS = ''):
CCCSList = stringCCCS.split()
if len(CCCSList)... |
# -*- coding: UTF-8 -*-
import cv2 as cv # cv2 영상처리 cv라이브러리
import argparse # 2.7버전 optparse 대체 하기위해 추가됨 api 수정이 필요한 기능 지원 인자 구분?
import numpy as np # numpy 별명 np사용 다차원 배열 사용을 위해
import time # time() 함수, strftime() 함수 , lovaltime() 함수 사용 시간관련 함수
import os
import socket
from imutils import paths
from utils import ... |
'use strict';
let doc = {
"_id": '55128442e603d7e01ab1688c',
"code": "DASHBOARD",
"domain": "localhost",
"locked": true,
"port": 4000,
"protocol": "http",
"deployer": {
"type": "manual",
"selected": "manual",
"manual": {
"nodes": "127.0.0.1",
}
},
"description": "SOAJS Console Environment",
"dbs": ... |
# Copyright (c) 2011 Tencent Inc.
# All rights reserved.
#
# Author: Huan Yu <huanyu@tencent.com>
# Feng Chen <phongchen@tencent.com>
# Yi Wang <yiwang@tencent.com>
# Chong Peng <michaelpeng@tencent.com>
# Date: October 20, 2011
"""
This is the dependencies expander module which accepts the... |
const connection = require('../database/connection');
module.exports = {
async index(request, response){
const { page = 1 } = request.query;
const [count] = await connection('incidents').count()
const incidents = await connection('incidents')
.join('ongs', 'ongs.id', '=', 'incide... |
import logging
from typing import Sequence
from lxml import html
from recipes.site_listers.base import StructuredSiteLister
LOGGER = logging.getLogger(__name__)
class HeadBangersKitchenLister(StructuredSiteLister):
""" """
start_url = "https://headbangerskitchen.com/category/keto-recipes/"
def get_l... |
from runtime.steppers.prescriber import (
PrescriberConfig,
_sst_from_reference,
)
from runtime.factories import get_prescriber
from pace.util.testing import DummyComm
import pace.util
import numpy as np
import xarray as xr
import cftime
import pytest
NXY = 8
NTILE = 6
TIME_COORD = [cftime.DatetimeJulian(2016,... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['it']={"editor":"Rich Text Editor","editorPanel":"Pannello Rich Text Editor","common":{"editorHelp":"Premi ALT 0 per aiuto","browseServer":"Cerca sul server","url... |
"""
@author: acfromspace
"""
def dec_to_bin(number):
if number < 2:
return str(number)
else:
return dec_to_bin(number // 2) + dec_to_bin(number % 2)
number = int(input("Input a decimal number: "))
print("dec_to_bin():", dec_to_bin(number))
"""
INPUT:
21
FUNCTION:
21
21 // 2 = 10
10 // ... |
NODEMON = {
vars: {
socket: null,
paused: false,
updateHandler: function(data) {
console.log(data);
}
},
connect: function() {
var self = this;
var vars = this.vars;
if(vars.socket != null) {
console.log('Already connected.');
return;
}
console.log('Connecting...');
vars.s... |
(function() {
"use strict";
/**
* Easy selector helper function
*/
const select = (el, all = false) => {
el = el.trim()
if (all) {
return [...document.querySelectorAll(el)]
} else {
return document.querySelector(el)
}
}
/**
* Easy event listener functio... |
from pyhdfs import HdfsClient
from flask import current_app
from pathlib import Path
import threading
from model.IOTask import UploadTask
from model.File import File, Folder, SavePosition
import os
import hashlib
import ctypes
hdfs_client = HdfsClient(current_app.config['HADOOP_MASTER'], user_name=current_app.confi... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# #########################################################################
# Copyright (c) 2019, UChicago Argonne, LLC. All rights reserved. #
# #
# Copyright 2019. UChicago Argonne, LLC. This... |
import { html, Component } from '../../deps/react.js'
import { StyleSheet, css } from '../../deps/aphrodite.js'
import { Link } from '../../deps/react-router-dom.js'
import { connect } from '../../deps/react-redux.js'
// import { send } from '../../deps/emailjs-com';
import { bindActionCreators } from '../../deps/redu... |
const {products} = require('../../stripe/inventory');
const setup = require('../../stripe/setup');
/**
* Retrieve all products.
* @returns {object}
*/
module.exports = async () => {
const productList = await products.list();
// Check if products exist on Stripe Account.
if (products.exist(productList)) {
... |
import { take, put, fork, select, call } from 'redux-saga/effects'
import { submitMode, changeMode, match, nextMode, updateSetting, updateText, visit } from './actions'
import { getMode } from '../util/index'
function* changeModeSaga() {
while (true) {
const { payload } = yield take(`${submitMode}`)
sendDa... |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://v3.bootcss.com/customize/?id=919afe66397560e71fb5e74324ecacaf)
* Config saved to config.json ... |
# Author: Mainak Jas <mainak@neuro.hut.fi>
#
# License: BSD (3-clause)
import time
import os
import threading
import subprocess
import warnings
import os.path as op
from nose.tools import assert_true, assert_equal
import mne
from mne.utils import requires_neuromag2ft, run_tests_if_main
from mne.realtime import Field... |
import 'd2l-outcomes-level-of-achievements/d2l-outcomes-level-of-achievements.js';
|
#
# 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... |
#ifndef _ROS_tf2_msgs_LookupTransformActionResult_h
#define _ROS_tf2_msgs_LookupTransformActionResult_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "ArduinoIncludes.h"
#include "std_msgs/Header.h"
#include "actionlib_msgs/GoalStatus.h"
#include "tf2_msgs/LookupTransformRes... |
class Lancamento {
constructor(nome = 'Genérico', valor = 0) {
this.nome = nome
this.valor = valor
}
}
class CicloFinanceiro {
constructor(mes, ano) {
this.mes = mes
this.ano = ano
this.lancamentos = []
}
addLancamentos(...lacamentos) { // spread syntax
... |
#!/usr/bin/env python
# encoding: utf-8
'''
@author: wujiyang
@contact: wujiyang@hust.edu.cn
@file: __init__.py.py
@time: 2019/1/4 15:24
@desc:
''' |
src = []
component = aos_component('tfs', src)
component.add_global_includes('include')
component.add_cflags( '-Wall')
component.add_cflags( '-Werror')
component.add_cflags( '-Os')
host_arch = component.get_arch()
component.add_prebuilt_libs('lib/'+host_arch+'/libtfs.a')
component.add_prebuilt_libs('lib/'+h... |
/**
* Copyright 2016 The AMP HTML 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 require... |
# Give this app a custom verbose name to avoid confusion
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class StatsAppConfig(AppConfig):
name = 'danceschool.stats'
verbose_name = _('Stats Functions')
|
import base64, logging, time
from collections import defaultdict
from . import constants, visual_search_results
class DVAQuery(object):
def __init__(self, query_id=None, context=None):
self.query_json = {}
self.query_request = None
self.context = context
self.results = None
... |
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import { reducer as toastr } from 'react-redux-toastr';
import { reducer as auth } from './auth';
import { reducer as teams } from './teams';
import { reducer as projects } from './projects';
import { reducer as members } ... |
#pragma once
#ifndef BOOL_H_QLG6S5XZ
#define BOOL_H_QLG6S5XZ
#include "rpc/detail/constant.h"
namespace rpc {
namespace detail {
template<bool B>
using bool_ = constant<bool, B>;
using true_ = bool_<true>;
using false_ = bool_<false>;
}
}
#endif /* end of include guard: BOOL_H_QLG6S5XZ */
|
# Lint as: python3
# Copyright 2018, The TensorFlow Federated 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 ... |
// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requ... |
# Copyright (c) 2011 Florian Mounier
# Copyright (c) 2012, 2014-2015 Tycho Andersen
# Copyright (c) 2013 Mattias Svala
# Copyright (c) 2013 Craig Barnes
# Copyright (c) 2014 ramnes
# Copyright (c) 2014 Sean Vig
# Copyright (c) 2014 Adi Sieker
# Copyright (c) 2014 Chris Wesseling
#
# Permission is hereby granted, free o... |
module.exports = {
purge: [],
target: 'relaxed',
prefix: '',
important: false,
separator: ':',
theme: {
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
},
colors: {
transparent: 'transparent',
current: 'currentColor',
black: '#000',
white: '#fff',
gray: {
10... |
const express = require('express');
const router = express.Router();
const gravatar = require('gravatar');
const bcrypt = require('bcryptjs');
const auth = require('../../middleware/auth');
const jwt = require('jsonwebtoken');
const config = require('config');
const { check, validationResult } = require('express-valida... |
from __future__ import division, absolute_import, print_function
import sys
import numpy as np
from numpy.core.test_rational import rational
from numpy.testing import (
TestCase, run_module_suite, assert_, assert_equal, assert_raises,
dec
)
def assert_dtype_equal(a, b):
assert_equal(a, b)
assert_equa... |
const patchStudentStatus = require ('../../repositories/student/patch');
module.exports = (req, res) => {
patchStudentStatus (req.params.user_id, (err, result, fields) => {
// check if db error exists
if (err)
return res.send (500, {status: false, message: 'Database Error', data: {erro... |
#!/usr/bin/env python
#
# Copyright 2007 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... |
// general config for all charts
var config = {
presetColorScheme: 'ishihara',
timePeriod: '30m'
}
// exchange, currency pair, html element id
var charts = [
['coinbase-pro', 'btcusd', 'one'],
['coinbase-pro', 'ethusd', 'two'],
['coinbase-pro', 'fetusd', 'three'],
['coinbase-pro', 'shibusd', 'f... |
from glob import glob
import numpy as np
from flowbias.utils.data_loading import load_sample
#sample_interface_pathA = "/data/vimb01/evaluations/A_onThings_interface/*"
#sample_interface_pathA = "/data/dataB/meta/correlations/A_onThings_interface_sub/*"
sample_interface_pathA = "/data/dataA/model_interfaces/A_things/*... |