text stringlengths 3 1.05M |
|---|
'use strict';
import mongoose from "mongoose";
const Schema = mongoose.Schema,
Types = mongoose.Schema.Types;
const Message = new Schema({
name: Types.String,
description: Types.String,
campaignUses: Types.Number,
contentUses: Types.Number
});
export default Message; |
# Within Blender, this script imports OBJ frames from the VOF2OBJ Python library and renders them.
# This is the main script loaded by Blender's Python API to render a single frame containing streamlines of droplet DNS data produced by Michael or Pablo.
print("Blender python script")
import bpy
import os
import sys
# ... |
const Util = require('./Util')
const Vol = require('./Vol')
// 卷積層
var ConvLayer = module.exports = function(opt) {
var opt = opt || {};
// required
this.out_depth = opt.filters;
this.sx = opt.sx; // filter size. Should be odd if possible, it's cleaner.
this.in_depth = opt.in_depth;
this.in_sx = opt.in_sx;... |
/* Lzma2Enc.h -- LZMA2 Encoder
2017-07-27 : Igor Pavlov : Public domain */
#ifndef __LZMA2_ENC_H
#define __LZMA2_ENC_H
#include "LzmaEnc.h"
EXTERN_C_BEGIN
#define LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO 0
#define LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID ((UInt64)(Int64)-1)
typedef struct
{
CLzmaEncProps lzmaP... |
/**
* select
* @param state
* @return {function(*): *}
*/
export default state => iterator => iterator(state);
|
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
spyder.plugins.variableexplorer.widgets
===============================
Variable Explorer related widgets
"""
|
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value)... |
import json
import unittest
import tensorboard_plugin_torch_profiler.profiler.trace as trace
from tensorboard_plugin_torch_profiler.profiler.data import RunProfileData
SCHEMA_VERSION = 1
WORKER_NAME = "worker0"
def parse_json_trace(json_content):
trace_json = json.loads(json_content)
profile = RunProfileDat... |
// flow-typed signature: ac90b75cb7061b7c8715afbe0018c1a9
// flow-typed version: <<STUB>>/babel-plugin-transform-flow-strip-types_v^6.22.0/flow_v0.71.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-flow-strip-types'
*
* Fill this stub out by replacing all the `any` types.
*
* Onc... |
"""
Meshing: Make a 3D prism mesh with depth-varying density
"""
from fatiando import logger, gridder, mesher
from fatiando.vis import myv
log = logger.get()
log.info(logger.header())
log.info(__doc__)
shape = (10, 20, 10)
nz, ny, nx = shape
mesh = mesher.PrismMesh((0, 100, 0, 200, 0, 50), shape)
def fill(i):
k =... |
import {
EDIT
} from './constants';
export const edit = response => dispatch => {
return dispatch({type: EDIT, data: response })
};
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['vi']={"wsc":{"btnIgnore":"Bỏ qua","btnIgnoreAll":"Bỏ qua tất cả","btnReplace":"Thay thế","btnReplaceAll":"Thay thế tất cả","btnUndo":"Phục hồi lại","changeTo":... |
import os
import datetime
import numpy as np
def train_test_split(
data,
num_train=None,
num_val=None,
split_file=None,
stratify_partitions=False,
num_per_partition=False,
log=None,
):
"""
Splits the dataset into train/validation/test splits, writes split to
an npz file and ret... |
import express from 'express';
const app = module.exports = express();
app.get('/', function(req, res) {
res.send("ok", {'Content-Type': 'text/html'}, 200);
});
// Only start listening on 8080 when this file is run directly i.e.: node app.js
if (!module.parent) {
app.listen(8080);
}
|
#### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Tangible()
result.template = "object/tangible/furniture/modern/shared_searchable_squill_lair_01.iff"
result.attri... |
import unittest
from compile_hex import *
from constants import *
class CompileHexTests(unittest.TestCase):
def test_hex_to_script(self):
self.assertEqual(compile_hex('aa206fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d619000000000087'),
'OP_HASH256 6fe28c0ab6f1b372c1a6a246ae63f74f931e... |
'''
'''
# 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");... |
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
const runJest = require('../runJest');
test('config as JSON', () => {
const result = r... |
import os
import shutil
import sys
import tempfile
from functools import partial
import pytest
from mock import patch
from pip._vendor import pkg_resources
from pip._vendor.packaging.markers import Marker
from pip._vendor.packaging.requirements import Requirement
from pip._internal.commands import create_command
from... |
from ..classes.api import Api
import re
class ServersController(object):
def __init__(self):
self.api = Api()
def server_show(self, server_id):
return self.api.get("/v2/servers/%s" % server_id)
def installed_kernels(self, server_id):
found = []
vulns = self.api.get("/v1/s... |
"""Auto-generated file, do not edit by hand. MC metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_MC = PhoneMetadata(id='MC', country_code=377, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:(?:[349]|6\\d)\\d\\d|870)\\d{5}', pos... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../.... |
//
// LVAppDelegate.h
// LvMessageModule
//
// Created by krisouljz on 03/31/2020.
// Copyright (c) 2020 krisouljz. All rights reserved.
//
@import UIKit;
@interface LVAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
/* Copyright (c) 2016 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 applicable law or... |
!function(e){function t(t){for(var n,i,a=t[0],c=t[1],l=t[2],s=0,p=[];s<a.length;s++)i=a[s],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(t);p.length;)p.shift()();return u.push.apply(u,l||[]),r()}function r(){for(var e,t... |
# NOTICE
# This software was produced for the U.S. Government under contract FA8702-21-C-0001,
# and is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007)
# ©2021 The MITRE Corporation. All Rights Reserved.
'''
This module manages ontology class constraints.
'''
import rdflib
from rdflib.namesp... |
/*模块化写法 这里是目录生成页面的抽象函数
*/
require.config({
paths:{
"jquery" : "lib/jquery"
}
});
define(['jquery'],function($){
function get_graph_list() {
/*
获得服务名和主机名
*/
this.m1 = function(obj_url){
var dataAllGraphHost={};
$.ajax({
url:obj_url,
method:"get",
... |
import pytest
import os
from test.support.configure_test import app
from project.config import (
get_env_db_url,
TestingConfig,
DevelopmentConfig,
ProductionConfig,
)
@pytest.mark.skipif(
"TRAVIS" in os.environ and os.environ["TRAVIS"] == "True",
reason="Skipping this test on Travis CI.",
)
d... |
/*
* This header is generated by classdump-dyld 1.0
* on Saturday, June 1, 2019 at 6:42:55 PM Mountain Standard Time
* Operating System: Version 12.1.1 (Build 16C5050a)
* Image Source: /System/Library/PrivateFrameworks/WirelessDiagnostics.framework/WirelessDiagnostics
* classdump-dyld is licensed under GPLv3, Copyright... |
from .field import Field
class StringField(Field):
supported_strategies = ('value', 'ordered_choice', 'random_choice')
supported_types = ('string',)
def __init__(self, name, typ, strategy='value', arguments=[]):
super(StringField, self).__init__(name, typ, strategy, arguments)
def __str__(s... |
#!/usr/bin/env python3
"""Check snakemake's slave cluster jobs for a certain run
"""
# FIXME rewrite
# Have job class with jobid and stdout, stderr logs as attribute
#--- standard library imports
#
import sys
import os
import argparse
import logging
import glob
import subprocess
#--- third-party imports
#/
#--- pro... |
#
# License: https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode
# © 2020 https://github.com/Oops19
#
#
from typing import Union
import services
from high_heels.enums.constants import Oops19Constants
from high_heels.utilities.helper_standalone import O19Helper
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.observeOn = void 0;
var executeSchedule_1 = require("../util/executeSchedule");
var lift_1 = require("../util/lift");
var OperatorSubscriber_1 = require("./OperatorSubscriber");
function observeOn(scheduler, delay) {
if (delay === ... |
#
# Copyright 2017 Carsten Friedrich (Carsten.Friedrich@gmail.com). All rights reserved
#
# Based on https://github.com/awjuliani/DeepRL-Agents/blob/master/Double-Dueling-DQN.ipynb
#
import numpy as np
import random
import tensorflow as tf
from TFSessionManager import TFSessionManager as TFSN
from Board import Board,... |
#ifndef QTIPCSERVER_H
#define QTIPCSERVER_H
// Define lftccoin-Qt message queue name
#define BITCOINURI_QUEUE_NAME "lftccoinURI"
void ipcScanRelay(int argc, char *argv[]);
void ipcInit(int argc, char *argv[]);
#endif // QTIPCSERVER_H
|
import classNames from 'classnames'
import Image from 'next/image'
import useInfoBox from '../../hooks/useInfoBox'
import useMapLayer from '../../hooks/useMapLayer'
import MapLocationButton from './MapLocationButton'
import MeasuringToolButton from './MeasuringToolButton'
const MapControls = () => {
const { showInfo... |
# coding: utf-8
"""
Memsource REST API
Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis... |
#ifndef STK_JCREV_H
#define STK_JCREV_H
#include "Effect.h"
#include "Delay.h"
namespace stk {
/***************************************************/
/*! \class JCRev
\brief John Chowning's reverberator class.
This class takes a monophonic input signal and produces a stereo
output signal. It is derived ... |
//
// machinesDb.h
// iVending
//
// Created by Manuel Pino on 4/18/15.
// Copyright (c) 2015 student. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Machines.h"
#import "Business.h"
#import "sqlDB.h"
@interface MachinesDb : NSObject
@property (strong, nonatomic) Machines *vendingMachine;
- ... |
"""Invoke a node and store/returns its outputs."""
import tempfile
from typing import Any, Mapping, NamedTuple, Union
from dagger.dag import Node
from dagger.runtime.local.dag import invoke_node
from dagger.runtime.local.output import deserialized_outputs
class ReturnDeserializedOutputs:
"""Indicates that the ou... |
"""Backing implementation for InstallRequirement's various constructors
The idea here is that these formed a major chunk of InstallRequirement's size
so, moving them and support code dedicated to them outside of that class
helps creates for better understandability for the rest of the code.
These are meant to be used... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{name:"E... |
/* 用户数据仓库 */
import axios from 'axios'
axios.defaults.baseURL = 'http://192.168.1.34:82/api';
const state = {
// 注册返回数据
register_info: '',
// 验证码图片
validate_src: '',
// 登录返回信息
login_info: ''
}
const getters = {
}
const mutations = {
/* 为注册信息赋值 */
register(state, result) {
state.register_info = result
},... |
#!/usr/bin/env python
# encoding: utf-8
"""
StoryboardAutoGenStrings.py
Created by linyu on 2015-02-13.
Modified by DarkAngel on 2016-12-02.
Copyright (c) 2016 DarkAngel. All rights reserved.
"""
import imp
import sys
import os
import glob
import string
import re
import time
imp.reload(sys)
sys.setdefaulten... |
import base64
import re
from datetime import datetime
from recurly import recurly_logging as logging
import ssl
from defusedxml import ElementTree
from xml.etree import ElementTree as ElementTreeBuilder
import iso8601
import six
import recurly
import recurly.errors
from recurly.link_header import parse_link_value
fro... |
from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
# Creating the app configurations
app.config.from_object(config_options[config_name])
# Initializing flask extensions
bootst... |
import pandas as pd
import matplotlib.pyplot as plt
from common import *
plt.style.use('seaborn-colorblind')
for_spread = pd.read_csv(f"{DATA_DIR}/2022-04-02_FoR_data.csv",
index_col=0)
# Strip FoR ID number
for_spread.index = for_spread.index.str[3:]
ax = (for_spread.sort_values('Fie... |
class Book:
def __init__(self, content: str):
self.content = content
class Formatter:
def format(self, book: Book) -> str:
return book.content
class Printer:
def get_book(self, book: Book, formatter: Formatter):
formatted_book = formatter.format(book)
return formatted_boo... |
# coding: utf-8
"""
Hydrogen Integration API
The Hydrogen Integration API # noqa: E501
OpenAPI spec version: 1.3.1
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import integration... |
from __future__ import annotations
import platform
import sys
import os
import os.path as osp
import time
import shutil
import timeit
from typing import Union, Mapping, TypeVar, cast
import pytest
from watchdog.events import FileCreatedEvent, FileDeletedEvent, DirDeletedEvent
from dropbox import files
from maestral.... |
from django.conf import settings
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib import admin
admin.autodiscover()
import logging
try:
from local_urls import *
urlpatterns = ARISTOTLE_PATTERNS
except ImportError:
urlpatterns = pat... |
//
// VPHAppDelegate.h
// vPhoto
//
// Created by Danis Tazetdinov on 18.12.13.
// Copyright (c) 2013 Danis Tazetdinov. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface VPHAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
var searchData=
[
['quickcpplib_5fannotate_5fignore_5freads_5fbegin',['QUICKCPPLIB_ANNOTATE_IGNORE_READS_BEGIN',['../config_8hpp.html#a9129cc1c84ce1a417b394f1cf0fba65f',1,'config.hpp']]],
['quickcpplib_5fannotate_5fignore_5freads_5fend',['QUICKCPPLIB_ANNOTATE_IGNORE_READS_END',['../config_8hpp.html#a12735231132816d... |
import requests
from ratelimit import limits, sleep_and_retry
MINUTE = 60
@sleep_and_retry
@limits(calls=60, period=MINUTE)
def get_submissions(url, field_list = "", subreddit_list = "", before = "", after = ""):
payload = {'fields' : field_list, 'subreddit' : subreddit_list,
'after' : after, 'be... |
import React from 'react';
import { Tabs } from 'antd';
import { HomeOutlined } from '@ant-design/icons';
import TeacherForm from './TeacherForm';
// This component is where the "Student Form" & "Teacher Form" components are rendered.
const { TabPane } = Tabs;
const TeacherRegForm = () => {
return (
<div classN... |
/* eslint-disable no-console */
const { exec } = require("child_process");
const fs = require("fs");
const logFilePath = "./dev-scripts/webpack-dev-server.log";
const errorLogFilePath = "./dev-scripts/webpack-dev-server-error.log";
const interval = 100;
console.log("Launching dev server.");
// Poll webpack-dev-serve... |
from PySide import QtGui, QtCore
from AttributeWidgetImpl import AttributeWidget
class LineWidget(AttributeWidget):
def __init__(self, attribute, parentWidget=None, addNotificationListener = True):
super(LineWidget, self).__init__(attribute, parentWidget=parentWidget, addNotificationListener = addNotific... |
import pytest
from aries_cloudcontroller import AcaPyClient, TAAAccept, TAAInfo, TAARecord, TAAResult
from fastapi import HTTPException
from mockito import when
from app.facades.acapy_ledger import accept_taa, get_did_endpoint, get_taa
from app.tests.util.event_loop import get
@pytest.mark.asyncio
async def test_err... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'horizontalrule', 'ca', {
toolbar: 'Insereix línia horitzontal'
} );
|
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/TeX/Size1/Regular/Main.js
*
* Copyright (c) 2009-2012 Design Science, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... |
/* Add this file in charpicker.html before main.js to generate translation xml from default charpickerdata. */
var getTagName = function (dirtyTagName) {
var tagName = dirtyTagName.split(' ').join('_');
tagName = tagName.replace('&', 'and');
return tagName;
};
var makeXmlEntryWithEnglishMessage = function... |
import {output, createElement} from './_utils.js'
import {video, record, userMediaError} from './_media.js'
const userMediaSuccess = (stream) => {
output(video(stream))
record(stream, (chunks) => output(createElement('video', {
src: URL.createObjectURL(new Blob(chunks, {'type': 'video/webm'})),
controls: ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_
#define ASH_DRAG_DROP_DRAG_DROP_TRACKER_H_
#include <memory>
#include "ash/ash_export.h"
#include "base/b... |
/*
Template: Payyed HTML Template
Written by: Harnish Design - (http://www.harnishdesign.net)
*/
(function ($) {
"use strict";
// Preloader
$(window).on('load', function () {
$('[data-loader="circle-side"]').fadeOut(); // will first fade out the loading animation
$('#preloader').delay(333).fadeOut('slow'); // ... |
function x() {
try {
var __estrace_context = __estrace.enter('x', 'file://no-return.js:1', arguments);
} finally {
__estrace.exit('x', 'file://no-return.js:1', __estrace_context);
}
}
|
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:14:13 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/VFX.framew... |
const rev = require('gulp-rev');
module.exports = function() {
var config = this.config,
gulp = this.gulp
;
gulp.task('fingerprint-css', function() {
return gulp
.src(config.css.deploy)
// fingerprint the deployed CSS files
.pipe(rev())
// move to output directory
.pipe(gulp.dest(config.css.d... |
// @flow
import Svg, { G, Polyline } from "react-native-svg";
import React from "react";
export default () => (
<Svg width={24} height={24} viewBox="0 0 24 24">
<G
id="1"
stroke="none"
strokeWidth="1"
fill="none"
fillRule="evenodd"
opacity="0.88"
strokeLinecap="round"
... |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2019 Event-driven Perception for Robotics
Authors: Sim Bamford
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 3 of the License, or (at your... |
import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { withRouter } from 'react-router-dom';
class SearchBar extends Component {
handleFormSubmit = function({query}) {
console.log('trying to handle submit for query:', query);
// navigate to a new route
this.pr... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import withWidth from '@material-ui/core/withWidth';
import CircularProgress from '@material-ui/core/CircularProgress';
import... |
// Copyright (c) 2014-2017, The Monero Project
// Copyright (c) 2017-2018, Karbo developers
// Copyright (c) 2018-2022, The Deocoin Group.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//... |
/*
* linux/arch/arm/mach-omap2/irq.c
*
* Interrupt handler for OMAP2 boards.
*
* Copyright (C) 2005 Nokia Corporation
* Author: Paul Mundt <paul.mundt@nokia.com>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archiv... |
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import { graphql } from 'gatsby'
import { PhotoSwipe } from 'react-photoswipe'
import Image from './Image'
import _kebabCase from 'lodash/kebabCase'
import './Gallery.css'
import 'react-photoswipe/lib/photoswipe.css'
export const q... |
from biothings.www.settings import BiothingESWebSettings
class MyGeneWebSettings(BiothingESWebSettings):
# Add app-specific settings functions here
pass
|
#define _LARGEFILE64_SOURCE /* required for GLIBC to enable stat64 and friends */
#include <sys/types.h>
#include <regex.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <sys/socket.h>
#inclu... |
'use strict';
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
... |
import numpy as np
import copy
import pandas as pd
import matplotlib.pyplot as plt
import sys
import warnings
import time
if not sys.warnoptions:
warnings.simplefilter("ignore")
class WhileLoopError(Exception):
pass
class WindyGridworld:
def __init__(self):
self.states_ = None
self.reward... |
//Import React
import React from 'react';
import './App.css';
//import { BrowserRouter as Router, Route } from "react-router-dom";
import 'bootstrap/dist/css/bootstrap.min.css';
import Particles from "react-particles-js";
import Navbar from "./components/Navbar";
import Header from "./components/Header";
import AboutMe... |
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
/* Unicode character classification and properties.
Copyright (C) 2002, 2005-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as publi... |
#
# Copyright 2019 XEBIALABS
#
# 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, modify, merge, publish, distribute, subli... |
# -*- encoding:utf-8 -*-
from __future__ import unicode_literals
MESSAGES = {
"%d min remaining to read": "% min recordar per a llegir",
"(active)": "",
"Also available in:": "També disponibles en:",
"Archive": "Arxiu",
"Authors": "",
"Categories": "Categories",
"Comments": "Comentaris",
... |
#!/usr/bin/env python
"""
This script will retrieve a list of dictionaries (one for each user) from the Tool Shed defined
by the --from_tool_shed parameter, which should be a base Tool Shed URL. It will retrieve the
username from each dictionary and create a new user with that username in the Tool Shed defined
by the ... |
/*
* Copyright (c) 2011 Otchy
* This source file is subject to the MIT license.
* https://www.otchy.net
*/
(function(func) {
if (document.readyState == 'complete') {
func();
return;
}
var wait = document.createElement('div');
wait.style.margin = 0;
wait.style.padding = '5px';
wait.style.borde... |
from project.cat import Cat
from project.dog import Dog
from project.kitten import Kitten
from project.tomcat import Tomcat
if __name__ == '__main__':
dog = Dog("Rocky", 3, "Male")
print(dog.make_sound())
print(dog)
tomcat = Tomcat("Tom", 6)
print(tomcat.make_sound())
print(tomcat)
kitten ... |
from fielder import FieldClass
from typing import Iterable, List, Dict
from bench.triggers import TriggerBase, NeverTrigger
from bench.models import ModelBase
from bench.losses import LossBase
from bench.hooks import HookBase
from bench.datasets import DatasetBase
import torch
class RunBase(FieldClass):
def go(se... |
import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import Button from '../Button';
import { bemClass } from '../helpers/bem';
import './ShowMore.scss';
class ShowMore extends React.Component {
constructor(props) {
super(props);
this.state = {
open: pro... |
import { bindable, customElement, noView } from 'aurelia-templating';
import { inject } from 'aurelia-dependency-injection';
import { computedFrom } from 'aurelia-framework';
import { AttributeManager } from '../common/attributeManager';
import { getBooleanFromAttributeValue } from '../common/attributes';
import {... |
print('test11')
|
/* Bosnian i18n for the jQuery UI date picker plugin. */
/* Written by Kenan Konjo. */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([
"jquery",
"../datepicker"
], factory );
} else {
// Browser globals
factory( jQuery );
}
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListFacesCommand = void 0;
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
const smithy_client_1 = require("@aws-sdk/smithy-client");
class ListFacesCommand ex... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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 app... |
#! /usr/bin/env python3
from setuptools import setup
from dictorm.dictorm import __version__, __doc__ as ddoc
config = {
'name': 'dictorm',
'version': str(__version__),
'author': 'rolobio',
'author_email': 'rolobio+dictorm@rolobio.com',
'description': ddoc,
'license': 'Apache2',
'keywords':... |
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... |
import { h } from 'vue'
export default {
name: "ArrowSquareUpRightDuotone",
vendor: "Ph",
type: "",
tags: ["arrow","square","up","right","duotone"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-... |
/*
* atsc3_mmt_reconstitution_from_media_sample.c
*
* Created on: Mar 8, 2019
* Author: jjustman
*
*
*
* TODO:
*
A/331: 8.1.2.3 Synchronization:
The synchronization of MPUs shall be done by using timestamps referencing UTC
delivered by ATSC 3.0 PHY layer.
The MPU_timestamp_descriptor as defined in... |
require("dotenv").config();
const Sequelize = require('sequelize');
const connection = require("../config/db.config");
const AddressModel = require('../models/address.model')(connection, Sequelize);
const UserAddressModel = require('../models/userAddress.model')(connection, Sequelize);
const listValues = async () => a... |
/*
* Copyright 2010, Google 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... |
import React from "react";
import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";
const UilInfoCircle = props => {
const { color, size, ...otherProps } = props;
return (
<Svg
width={size}
height={size}
viewBox="0 0 24 24"
fill={color}
{...otherProps}
... |
from os.path import isfile, isdir
from os import makedirs
from hashlib import md5
from requests import get
from gzip import open as unzip
def download():
'''
Downloads the database
'''
# Get the data in the database file from the site and save it in memory
dburl = "http://geolite.maxmi... |