text
stringlengths
3
1.05M
####-Changed-#### # noqa # DistributedAnchorBaseBeam has been moved to anchor_tabular_distributed.py ################# import copy import logging from collections import defaultdict, namedtuple ####-Changed-#### # noqa # -from functools import partial ################# from typing import Callable, Dict, List, Optional,...
# -*- coding:utf-8 -*- import os, re from os.path import exists from re import findall from re import search from configparser import RawConfigParser from shutil import copyfile from traceback import format_exc #############################################################################################################...
"""Auto-generated file, do not edit by hand. 676 metadata""" from ..phonemetadata import NumberFormat PHONE_ALT_FORMAT_676 = [NumberFormat(pattern='(\\d{2})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['[5-8]'])]
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.desk.doctype.global_search_settings.global_search_settings import update_global_search_doctypes def ins...
#!/usr/bin/env python3 import os import sys import subprocess import random import shutil import signal import verify class timeout: def __init__(self, seconds=1, error_message='Timeout'): self.seconds = seconds self.error_message = error_message def handle_timeout(self, signum, frame): ...
/** @file Implementation of EFI TLS Protocol Interfaces. Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "TlsImpl.h" EFI_TLS_PROTOCOL mTlsProtocol = { TlsSetSessionData, TlsGetSessionData, TlsBuildResponsePacket, TlsPro...
# panel is a dict containing all of the data structures that define a panel # Amplicons: genomic range # Exons: genomic range # Transcripts: genomic range # Depth: # Variants_Disease: genomic range # Variants_Gene: genomic range # Variants_Mutation: genomic range # Filenames: dict of all files in the panel di...
import re import time from datetime import date, timedelta from itertools import combinations_with_replacement from redis import Redis import newspaper from newspaper import Article import nltk from nltk.corpus import stopwords from nltk.tag import pos_tag # from nltk.stem.snowball import SnowballStemmer from nltk.ste...
'use babel'; import AtomNodejsSnippetsView from './atom-nodejs-snippets-view'; import { CompositeDisposable } from 'atom'; export default { atomNodejsSnippetsView: null, modalPanel: null, subscriptions: null, activate(state) { this.atomNodejsSnippetsView = new AtomNodejsSnippetsView(state.atomNodejsSnip...
#ifndef PLASMA_CLOUD_H__ #define PLASMA_CLOUD_H__ #include <Arduino.h> #include "ili9341_t3n.h" #include "MathUtil.h" #include "BaseAnimation.h" const float PLASMA_CLOUD_SPEED = 0.02; const uint_fast16_t PLASMA_CLOUD_MARGIN = 25; const uint_fast8_t PLASMA_CLOUD_LINE_WIDTH = 8; const uint_fast8_t PLASMA_CLOUD_STEP_Y...
/** * @license AngularJS v1.4.11 * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; var $resourceMinErr = angular.$$minErr('$resource'); // Helper functions and regex to lookup a dotted path on an object // stopping at undefined/null. The path...
var d = document, $d = $(d), w = window, $w = $(w), wWidth = $w.width(), wHeight = $w.height(), particles = $('.particles'), particleCount = 0, sizes = [ 15, 20, 25, 35, 45 ], colors = [ '#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#0...
from flask import url_for from flask_testing import TestCase from flask_security.utils import encrypt_password as ep from app import app, db, user_datastore class BaseTestCase(TestCase): """A base test case for flask-tracking.""" def create_app(self): app.config.from_object('config.TestingConfig') ...
from .item_views import ( ItemList, ItemCreate, ItemDelete, ItemUpdate, ItemDetails ) from .comment_views import ( CommentList, CommentCreate, CommentDelete, CommentUpdate )
"""Utilities for emitting C code.""" from collections import OrderedDict from typing import List, Set, Dict, Optional, Callable, Union from mypyc.common import ( REG_PREFIX, ATTR_PREFIX, STATIC_PREFIX, TYPE_PREFIX, NATIVE_PREFIX, FAST_ISINSTANCE_MAX_SUBCLASSES, ) from mypyc.ir.ops import Environment, BasicBlo...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-hot-top-index"],{"0a6e":function(t,e,i){"use strict";var a;i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticC...
import json import requests import pprint import james_stein as js import numpy as np def main(): stock_data = np.load("stock_data.npy") t_stock_data = np.transpose(stock_data) r = np.subtract(np.asarray(t_stock_data[len(t_stock_data) - 1], dtype = float),np.asarray(t_stock_data[0], dtype = float)) (M...
/* * Copyright (c) 2015 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DEVICE_H_ #define ZEPHYR_INCLUDE_DEVICE_H_ /** * @brief Device Driver APIs * @defgroup io_interfaces Device Driver APIs * @{ * @} */ /** * @brief Miscellaneous Drivers APIs * @defgroup misc_interfac...
console.log(process.platform); //in WSL Ubuntu this will advised linux and within the regular environment the process.platform is win //Was Able to integrate Docker WSL2, zsh.
load('api_aws.js'); load('api_config.js'); load('api_gpio.js'); load('api_mqtt.js'); load('api_timer.js'); load('api_sys.js'); load('api_pwm.js'); let PIEZO_PIN = 15; let NOTE = { A4: 440, Bb4: 466, B4: 494, E4: 330, G4: 392, C5: 523, CS5: 554, D5: 587, DS5: 622, E5: 659, ...
from functools import wraps import glob import os import sys import threading import uuid try: from redis import Redis from redis.client import pairs_to_dict from redis.client import zset_score_pairs from redis.exceptions import ConnectionError from redis.exceptions import TimeoutError except Impor...
import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { refType } from '@material-ui/utils'; import InputBase from '../InputBase'; import withStyles from '../styles/withStyles'; export const styles = (theme) => { const light = theme.palette.mode === 'light'; const bott...
/** * EasyUI for jQuery 1.8.8 * * Copyright (c) 2009-2019 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"pagination");...
function tabu() { var n = document.getElementById('num').valueAsNumber if (n == "undefined") { window.alert('Por favor digite um número') } else { tab.innerHTML = '' for (var c = 0; c <= 10; c++) { let item = document.createElement('option') item.text = `${n}...
#This file sorts the data given in "busy_day.in. #Description of output variables (defined according to the Hashcode instructions "File Format"): # - grid_row, int, number of rows in the grid # - grid_col, int, number of columns in the grid # - n_drones, int, D number of drones available # - max_turns, int, maximum l...
from __future__ import division import numpy as np import pandas as pd from six.moves.urllib.parse import urlparse, parse_qs from toolz import flip, identity from toolz.curried import merge_with, operator as op from zipline.data.bundles.core import _make_bundle_core from zipline.data.bundles import yahoo_equities fro...
"""Inventory models""" from app.utils.validators import validate_integer class Resource: """Base class for resources""" def __init__(self, name, manufacturer, total, allocated): """ Args: name (str): display name of resource manufacturer (str): resource manufacturer...
# 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 ...
import sqlite3 import argparse import os import pandas as pd parser = argparse.ArgumentParser() parser.add_argument("--mmpdb", help="a mmpdb sql database as input", type=str) parser.add_argument("--output_file", help="a name of output file", type=str) args = parser.parse_args() ######################################...
module.exports = { verbose: false, plugins: { local: { browsers: ['firefox'] } } };
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{3544:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return l}));r(6),r(7);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t...
!function(e){function n(n){for(var r,c,s=n[0],i=n[1],u=n[2],f=0,d=[];f<s.length;f++)c=s[f],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&d.push(o[c][0]),o[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(p&&p(n);d.length;)d.shift()();return a.push.apply(a,u||[]),t()}function t(){for(var e,n...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """Helpers for flocker shell commands.""" import sys from twisted.internet import task from twisted.python import usage from zope.interface import Interface from .. import __version__ __all__ = [ 'flocker_standard_options', 'ICommandLineScript'...
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.reduce es5id: 15.4.4.21-10-5 description: > Array.prototype.reduce reduces the array in ascending order of indices(initialvalue present) ---*/ ...
# April 15, 2019 # Tanmay Tanna # Ensure that the input fasta file has no newlines within the features. Use the following command if there are any: # awk '/^>/ {printf("\n%s\n",$0);next; } { printf("%s",$0);} END {printf("\n");}' < file.fa > out.fa from __future__ import division from collections import Counter imp...
import fs from "fs"; import { getRootPackage } from "lasso-package-root"; import { CachedInputFileSystem } from "enhanced-resolve"; let config; const globalThis = typeof window === "undefined" ? global : window; const MARKO_CONFIG_KEY = Symbol("Default Marko Compiler Config"); if (globalThis[MARKO_CONFIG_KEY]) { co...
import collections import math import os import random import sys import tarfile import time import json import zipfile from PIL import Image from collections import namedtuple from matplotlib import pyplot as plt import tensorflow as tf from tensorflow import nn from tensorflow import keras import numpy as np from IPy...
import argparse import numpy as np from keras.models import Model from keras.models import Sequential from keras.layers import Input from keras.layers import Dense from keras.layers import Dropout from keras.layers import Conv2D from keras.layers import MaxPooling2D from keras.layers import Flatten from keras.layers im...
/**************************************************************/ /* ********************************************************** */ /* * * */ /* * DFG PARSER POSITION * */ /* * ...
/* zutil.c -- target dependent utility functions for the compression library * Copyright (C) 1995-2005 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h */ /* @(#) $Id$ */ #include "zutil.h" #ifndef NO_DUMMY_DECL struct internal_state {int dummy;}; /* for buggy compil...
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{363:function(t,e,s){"use strict";s.r(e);var n=s(41),l=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"hello-config"}},[e("a",{staticClass:"hea...
#ifdef HAVE_CONFIG_H #include "../../../ext_config.h" #endif #include <php.h> #include "../../../php_ext.h" #include "../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/fcall.h" #include "kernel/operators.h" ...
var factory = function ( id /** id这是id**/, name ) { //这是t1 //这是t1第二行 var t1 = new Date(); var t2 = new Date();//这是t2 /**这是t3**/ var t3 = new Date(); /**这是t3**/ /** * 这是第一个block注释 * */ var f1 = function () { }; /** * 这是第二个block注释 * ...
const router = require("express").Router(); const verifyToken = require("../auth/verifyToken"); const UserModel = require("../models/user.model"); const Listing = require("../models/listing.model"); const jsonxml = require("jsontoxml"); //Handler that returns all user data in JSON or XML format router.get("/allusers/:...
from cloudwanderer.cloud_wanderer_resource import URN, CloudWandererResource, SecondaryAttribute from .helpers import get_default_mocker from .mocks import add_infra, generate_mock_session, generate_urn class StorageWriteTestMixin: ec2_instances = None vpcs = None @classmethod def setUpClass(cls): ...
const backtrack = (n, ans = [], str = '', left = 0, right = 0) => { if (str.length === 2 * n) { ans.push(str); return; } if (left < n) { backtrack(n, ans, `${str}(`, left + 1, right); } if (right < left) { backtrack(n, ans, `${str})`, left, right + 1); } }; const generateParenthesis = (n)...
#ifndef S2PATH_H #define S2PATH_H #include <stdint.h> #include "HS2Sensors.h" #include "HS2Coordinates.h" namespace rcr { namespace robots { namespace scribbler2 { class Scribbler2; class S2Path { private: Scribbler2 &s2; public: S2Path( Scribbler2& s2_ ); ~S2Path(); HS2Sensors beginPath( int speed...
import qrcode from 'qrcode-generator'; var version = "0.4.0"; // function prepareCallback(callback) { return typeof callback === "function" ? callback : function () {}; } function simpleHttpRequest(_ref) { var method = _ref.method, url = _ref.url, onSuccess = _ref.onSuccess, onFailure =...
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import torch import torch.nn as nn from torch.nn.functional import softplus # Takes pixel intensities of the attention window to parameters (mean, # standard deviation) of the distribution over the latent code, # z_what. class En...
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> from xData import ancestry as ancestryModule from .. import suite as suiteModule class decayConstant( ancestryModule.ancest...
import {PropTypes} from 'react'; import {connect} from 'react-redux'; import PlayerScoreView from './player-score.view'; import {incrementPlayerScore, decrementPlayerScore} from '../score/score.actions'; const ownPropsTypes = { playerId: PropTypes.number.isRequired }; const mapStateToProps = (state, ownProps) => {...
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; type Props = { size?: string | 'small' | 'medium' | 'large', color?: string, rtl?: boolean, title?: string }; /* eslint-disable prettier/prettier */ export default function IconPhotoCamera(props: Props) { const iconProps = { rtl:...
/* * Frame buffer driver for the Carmine GPU. * * The driver configures the GPU as follows * - FB0 is display 0 with unique memory area * - FB1 is display 1 with unique memory area * - both display use 32 bit colors */ #include <linux/delay.h> #include <linux/errno.h> #include <linux/fb.h> #include <linux/interr...
# JupyterHub configuration # ## If you update this file, do not forget to delete the `jupyterhub_data` volume before restarting the jupyterhub service: ## ## docker volume rm jupyterhub_jupyterhub_data ## ## or, if you changed the COMPOSE_PROJECT_NAME to <name>: ## ## docker volume rm <name>_jupyterhub_data ## ...
""" Models which defines a company """ import uuid from django.apps import apps from django.core.validators import RegexValidator from django.db import models from PIL import Image from django.core.exceptions import ValidationError def _upload_company_avatar(entity, filename): """ Helper function for Company...
""" Django settings for django_blog project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import ...
import isCommand from './is-command'; describe('a command', () => { test('is a string', () => { const command = null; expect(isCommand(command)).not.toBeTruthy(); }); test('can not be a URL', () => { const command = 'http://google.com'; expect(isCommand(command)).not.toBeTruthy(); }); test(...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { text } from '@storybook/addon-knobs'; import VideoPlayer from './VideoPlayer'; const sampleProps = { theme: 'dark', url: 'https://www.youtube.com/watch?v=Ci3PoUjtBOE', height: '500px', }; storiesOf('Startup info', module).add('Vid...
import os import sys sys.path.append('soccer') import json import requests import unittest import mock from mock_response import MockResponse from soccer.exceptions import APIErrorException from soccer.request_handler import RequestHandler from soccer.writers import get_writer from soccer.leagueids import LEAGUE_IDS ...
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 from datadog_api_client.v2.model_uti...
#pragma once // Copyright 2015 Stellar Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "bucket/LedgerCmp.h" #include "crypto/Hex.h" #include "overlay/StellarXD...
""" ****************** COPYRIGHT AND CONFIDENTIALITY INFORMATION ****************** Copyright (c) 2018 [Thomson Licensing] All Rights Reserved This program contains proprietary information which is a trade secret/business \ secret of [Thomson Licensing] and is protected, even if unpublished, under \ applicable Co...
import sys import configparser import psycopg2 from sql_queries import create_table_queries, drop_table_queries def drop_tables(cur, conn): """ Drops each table using the queries in `drop_table_queries` list. """ for query in drop_table_queries: try: cur.execute(query) ...
#!/usr/bin/env python # # Copyright 2016 Google Inc. 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 requir...
def buckaroo_cell(package): cell = native.read_config('buckaroo', package, '').strip() if cell == '': fail('Buckaroo does not have "' + package + '" installed. ') return cell def buckaroo_deps(): raw = native.read_config('buckaroo', 'dependencies', '').split(' ') return [ x.strip() for x in raw if len...
// pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys. // The pbrt source code is licensed under the Apache License, Version 2.0. // SPDX: Apache-2.0 #ifndef PBRT_MEDIA_H #define PBRT_MEDIA_H #include <pbrt/pbrt.h> #include <pbrt/base/medium.h> #include <pbrt/interaction.h> #include <pbrt/pa...
from django.apps import AppConfig class IndexConfig(AppConfig): name = 'index'
import { UIRow, UIText } from './libs/ui.js'; function SidebarGeometryGeometry( editor ) { var strings = editor.strings; var signals = editor.signals; var container = new UIRow(); // vertices var verticesRow = new UIRow(); var vertices = new UIText(); verticesRow.add( new UIText( strings.getKey( 'sidebar/...
'use strict' const { $jsonld, extension, findRule, toRule, url: urlFn, video } = require('@metascraper/helpers') const pReflect = require('p-reflect') const { chain } = require('lodash') const cheerio = require('cheerio') const got = require('got') const toUrl = toRule(urlFn) const toVideo = toRule(video...
// import $ from 'jquery'; // // wp.customize('blogname', (value) => { // value.bind(to => $('.brand').text(to)); // });
jQuery.base64 = ( function( $ ) { var _PADCHAR = "=", _ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", _VERSION = "1.0"; function _getbyte64( s, i ) { // This is oddly fast, except on Chrome/V8. // Minimal or no improvement in performance by using a // object wit...
from Bio.Blast import NCBIXML import pprint class bestBlastHit: def __init__(self, blast_results): self.records = NCBIXML.parse(open(blast_results, "r")) def getBestHit(self): top_hit_id = '' top_hsp = None top_hit_score = 0 query_len = 0 query_id = '' a...
({"gotoButtonTitle":"Idi na određenu stranicu","prevTip":"Prethodna stranica","pageCountIndication":" (${0} stranica)","pageStepLabelTemplate":"Strana ${0}","descTemplate":"${2} - ${3} od ${1} ${0}","lastTip":"Zadnja stranica","nextTip":"Sljedeća stranica","pageSizeLabelTemplate":"${0} stavki po stranici","dialogCancel...
# This sample tests type annotations for instance variables. class ClassC(object): def __init__(self): self.inst_var1 = 3 @property def prop1(self): return 1 @prop1.setter def prop1(self, val): pass def foo(self): # This should generate an error because the a...
# -*- coding: utf-8 -*- from django.conf.urls import url from . import views app_name = 'notifications' urlpatterns = [ url(r'^$', views.AllNotificationsList.as_view(), name='all'), url(r'^unread/$', views.UnreadNotificationsList.as_view(), name='unread'), url(r'^mark-all-as-read/$', views.ma...
let { Presence } = require('@adiwajshing/baileys') let handler = async (m, { conn, args }) => { await conn.updatePresence(m.chat, Presence.composing) let list = Object.entries(global.db.data.users) if(!args || !args[0]) { var lim = 100000 } else { var lim = parseInt(args[0]) } list.slice(0, list.length).map(...
import React, { Component } from 'react'; import { StyleSheet, View, Text, Image, ActivityIndicator, } from 'react-native'; export default class Cinemas extends Component { static navigationOptions = { title: '影院', header: null }; render() { return ( <View> <Text>影院页</Text...
/** * 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...
$(document).ready(function () { getAllCAs(); }); function getAllCAs() { var caInfo = {}; caInfo["fcn"] = "casAmount"; caInfo["channelName"] = "b2csm-honeypots"; $.ajax({ type: "POST", contentType: "application/json", url: "/b2csm/dashboard", data: JSON.stringify(caIn...
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################## import math, random, torch import warnings import torch.nn as nn import torch.nn.functional as F from copy import deepcopy from ..cell_operations import OPS # This m...
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Classes that deal...
from past.utils import old_div import random from utils import malmoutils # Task parameters: NUM_GOALS = 20 GOAL_TYPE = "apple" GOAL_REWARD = 100 ARENA_WIDTH = 60 ARENA_BREADTH = 60 MOB_TYPE = "Endermite" # Change for fun, but note that spawning conditions have to be correct - eg spiders will require darker condition...
'use strict' /** @type {typeof import('@adonisjs/lucid/src/Lucid/Model')} */ const Model = use('Model') class Autor extends Model { livro() { return this.belongsToMany('App/Models/Livro').withTimestamps(); } } module.exports = Autor
import os, inspect import yaml import json import datetime from os.path import join, abspath from multiprocessing import cpu_count import threading import subprocess def read_yaml(directory, filename): with open(join(directory, "", filename)) as file: docs = yaml.full_load(file) return docs def writ...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela, Riccardo Rossi, ...
#ifndef Alchemy_GameLayer #define Alchemy_GameLayer #include "../Common.h" #include "../Object/Monster.h" #include "StageManagement.h" class MixPanel; class Field; class PEIcon; class PEPopUpManager; class GameLayer : public Layer { public: bool init(int stage); static Scene* scene(int stage); ...
from time import sleep def Program(): print("Welcome to the prime number check program!") sleep(0.3) number = int(input("Please input an integer to be checked.")) factor = 2 while True: remainder = number % factor print("Factor:", factor, "|| Remainder:", remainder) if remai...
/*! formstone v0.7.9 [number.js] 2015-07-24 | MIT License | formstone.it */ !function(a,b){"use strict";function c(){s=b.$body}function d(a){var b=parseFloat(this.attr("min")),c=parseFloat(this.attr("max"));a.min=b||0===b?b:!1,a.max=c||0===c?c:!1,a.step=parseFloat(this.attr("step"))||1,a.timer=null,a.digits=l(a.step),...
module.exports = { queryString: [ '#codeforgood', '#nonprofit', '#opensource' ], queryStringSubQuery: [ '', '', '' ], resultType: [ 'mixed' ], responseString: [ 'Hi @screenName thanks for the follow! !CR', '@screenName t...
# 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...
/* * ROUND.h * * Copyright (c) 2019 hikyuu.org * * Created on: 2019-4-14 * Author: fasiondog */ #pragma once #ifndef INDICATOR_CRT_ROUND_H_ #define INDICATOR_CRT_ROUND_H_ #include "CVAL.h" namespace hku { /** * 四舍五入 * @ingroup Indicator */ Indicator HKU_API ROUND(int ndigits = 2); Indicator ROUND(p...
var searchData= [ ['senddata_117',['SendData',['../a00108.html#a1ffdfe149b64c57da5976bea33752304',1,'TM14::Networking::TcpClient']]], ['senddatato_118',['SendDataTo',['../a00112.html#a2fac745be9adb948d65f59e1859e3290',1,'TM14.Networking.TcpServer.SendDataTo(System.Net.Sockets.TcpClient client, Packet data)'],['../a...
from __future__ import division from past.utils import old_div import os import numpy as np import pytest from .conftest import get_test_datasets_directory from threeML.io.file_utils import within_directory from threeML.utils.time_interval import TimeIntervalSet from threeML.utils.time_series.event_list import EventLi...
import { connect } from 'unistore/preact'; import { Link } from 'wouter-preact'; import style from './style'; import { useEffect, useState } from 'preact/hooks'; import Api from '../../api'; const Share = connect('handle')(({ handle }) => { const [product, setProduct] = useState({}); useEffect(() => { Api.getPro...
import os import logging from importlib import import_module class EventPlugin: def __init__(self): self.messages = [] self.reactions = [] self.guild = [] self.member = [] self.private_channels = [] self.client = [] self.relationships = [] self.group...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import <objc/NSObject.h> #import "CRCarPlayDNDService-Protocol.h" #import "NSXPCListenerDelegate-Protocol.h" @class CARAutomaticDNDStatus, NSStr...
//https://www.cnblogs.com/onepixel/p/5281796.html 100 - '2a' ; // NaN '100' / '20a'; // NaN '20a' * 5 ; // NaN undefined - 1; // NaN, Number(undefined) == NaN [] * 20 ; // 0, Number([]) == 0 null - 5; // -5, Number(null) == 0
export default { '1_person_reacted': '1人がリアクション', '1_user': '1人', 'error-action-not-allowed': '{{action}}の権限がありません。', 'error-application-not-found': 'アプリケーションがありません。', 'error-archived-duplicate-name': 'アーカイブ名が重複しています: {{room_name}}', 'error-avatar-invalid-url': '画像のURLが正しくありません: {{url}}', 'error-avatar-url-h...
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:2d.composite.image.source-atop // Description: // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test(""); var t_pass = t.done.bind(t); var t_fa...