text
stringlengths
3
1.05M
// Taken from here: https://groups.google.com/forum/#!topic/blockly/djhO2jUb0Xs // I really tried to get the license conditions from authors, but no luck :( // Many thanks to Florian Pechwitz <florian.Pechwitz@itizzimo.com> for the code Blockly.System.blocks['logic_switch_case'] = '<block type="logic_switch_case">...
############################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License"). You may not # ...
# coding=utf-8 import re from django.core.exceptions import ObjectDoesNotExist, ValidationError import requests import six from countries_plus.models import Country DATA_HEADERS_ORDERED = [ 'ISO', 'ISO3', 'ISO-Numeric', 'fips', 'Country', 'Capital', 'Area(in sq km)', 'Population', 'Continent', 'tld', 'Curren...
VAL.filename = '//mx340hs/data/anfinrud_1906/Archive/S.SRcurrentAI.VAL.txt'
class BuildServer(object): def __init__(self, name, settings): self.name = name self.settings = settings self.build_settings = settings.get('build_settings', {}) self.can_bootstrap = settings['can_bootstrap'] self.release = settings.get('release', None) def apply_build_settings(self, manifest_data): i...
# Followed https://kivy.org/docs/guide/basic.html#quickstart import kivy from kivy.app import App from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from kivy.config import Config from kivy.uix.textinput import TextInput kivy.require('1.10.0') Config.set('graphics', 'window_state', 'maximized...
require('./bootstrap'); window.Vue = require('vue'); window.VueRouter = require('vue-router').default; window.VueAxios = require('vue-axios').default; window.Axios = require('axios').default; window.Datatable = require('vue2-datatable-component'); let AppLayout = require('./components/App.vue'); ...
require("dotenv").config({ path: process.env.NODE_ENV === "test" ? ".env.test" : ".env" }); const express = require("express"); const bodyParser = require("body-parser"); class AppController { constructor() { this.express = express(); require("./database"); this.middlewares(); this.routes(); } ...
from typing import List from PySide6.QtWidgets import QWidget, QVBoxLayout, QFormLayout, QGroupBox, QLineEdit from common.Config import Config from common.ReactiveProperty import ReactiveProperty from common.LogHolder import LogHolder from .qt_util import new_label from .RequireAppRestartLabel import RequireAppRestartL...
class Receiver: def __init__(self, x=-1, y=-1, z=-1): self.x = x self.y = y self.z = z class Source: def __init__(self, x=-1, y=-1, z=-1): self.x = x self.y = y self.z = z class Observation: def __init__(self, sources=None, receivers=None): self.so...
// // HotKey.h // PTHotKey.framework // #import <PTHotKey/PTHotKey.h> #import <PTHotKey/PTHotKeyCenter.h> #import <PTHotKey/PTKeyCodeTranslator.h> #import <PTHotKey/PTKeyCombo.h> #import <PTHotKey/PTHotKey+ShortcutRecorder.h>
from torch.nn import init import torch.nn.functional as F from model.layers.espnet_utils import * import math import torch import torch.nn as nn import torch.quantization import warnings warnings.filterwarnings( action='ignore', category=DeprecationWarning, module=r'.*' ) warnings.filterwarnings( acti...
var msg = window.document.getElementById('msg') var img = window.document.getElementById('imagem') var data = new Date() var hora = data.getHours() msg.innerHTML = `Agora são ${hora} horas.` if (hora >= 0 && hora < 12) { img.src = 'imagens/dia.png' document.body.style.background = '#6e8be9' } else if (...
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask_login import LoginManager from flask_mail import Mail from blueprints.config import Config db = SQLAlchemy() # db.create_all() bcrypt = Bcrypt() login_manager = LoginManager() login_manager.login_view = 'users.l...
/* $OpenBSD: getbsize.c,v 1.11 2015/08/31 02:53:57 guenther Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are...
from __future__ import unicode_literals import threading import weakref from functools import wraps import six from psycopg2cffi._impl import consts from psycopg2cffi._impl import encodings as _enc from psycopg2cffi._impl import exceptions from psycopg2cffi._impl.libpq import libpq, ffi from psycopg2cffi._impl import...
'use strict'; const EditingTest = require('./editing_test'); const Assert = require('assert'); class NoOpTest extends EditingTest { constructor (options) { super(options); this.dontWantExistingStream = true; } get description () { return 'should do nothing and return an empty response when the user indicat...
var searchData= [ ['height',['height',['../struct_g_l_f_wvidmode.html#ac65942a5f6981695517437a9d571d03c',1,'GLFWvidmode']]] ];
from ievv_opensource.utils.ievvbuildstatic.options_mixin import OptionsMixin from ievv_opensource.utils.logmixin import LogMixin from ievv_opensource.utils.shellcommandmixin import ShellCommandMixin class AbstractInstaller(LogMixin, ShellCommandMixin, OptionsMixin): """ Base class for installers. Each in...
'use strict'; exports.BattleItems = { "abomasite": { id: "abomasite", name: "Abomasite", spritenum: 575, megaStone: "Abomasnow-Mega", megaEvolves: "Abomasnow", onTakeItem: function (item, source) { if (item.megaEvolves === source.baseTemplate.baseSpecies) return false; return true; }, num: 674, ...
from PIL import Image from PIL import ImageDraw from PIL import ImageFont # author: Prateek Rokadiya # Example usage # img = resizeByWidth(img, w, p) # where, w = wanted width, p = padding (decreases more width) def resizeByWidth(img, toWidth, padding = 20): new_width = toWidth - padding new_height = new_wid...
/* * Copyright (c) 2010 WiYun Inc. * Author: luma(stubma@gmail.com) * * For all entities this program is free software; you can redistribute * it and/or modify it under the terms of the 'WiEngine' license with * the additional provision that 'WiEngine' must be credited in a manner * that can be be observe...
// components/shopVipModal/shopVipModal.js var app = getApp(); Component({ properties: { shopVipModal: { type: Object, value: { showModal: false, isUp: true } } }, data: { shopVipModal: { showModal: false, isUp: false }, cdnUrl: app.getCdnUrl() ...
/** * Password Template Script * ------------------------------------------------------------------------------ * A file that contains scripts highly couple code to the Password template. * * @namespace password */ import $ from 'jquery'; const selectors = { recoverPasswordForm: '#RecoverPassword', hideReco...
// Copyright 2005, Stephen Cleary // See the accompanying file "ntutils.chm" for licence information #ifndef NTUTILS_TOOLHELP_H #define NTUTILS_TOOLHELP_H #include <boost/iterator/iterator_facade.hpp> #include "ntutils/tlhelp32_dll.h" namespace ntutils { class tool_help_process_iterator: public boost::iterator_fac...
var autoprefixer = require('autoprefixer'); // eslint-disable-line no-var const webpack = require('webpack'); const envObj = Object.keys(process.env) .reduce((r, k) => Object.assign({}, r, { [k]: JSON.stringify(process.env[k]), }), {}); module.exports = { postcss: [ autoprefixer({ browsers: ['last 2 ve...
''' Copyright 2020 Ryan (Mohammad) Solgi 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, dist...
var textWrapper = document.querySelector('.ml11 .letters'); textWrapper.innerHTML = textWrapper.textContent.replace(/([^\x00-\x80]|\w)/g, "<span class='letter'>$&</span>"); anime.timeline({loop: false}) .add({ targets: '.ml11 .line', translateX: [0, document.querySelector('.ml11 .letters').getBoundingClientR...
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-12-22 14:51 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('markets', '0059_image_cropping'), ] operations = [ migrations.RemoveField( ...
import pandas as pd df = pd.read_csv('data/kc_house_data.csv') # Para verificar o dataset #print(df.head()) # Para verificar os tipos das variáveis das colunas #print(df.dtypes) # Primeiras Perguntas dos CEO # 1- Quantas casas estão disponíveis para comprar? print("\nQuantidade de casas disponíveis para compra: {}...
var L = {}, nop = function () {}, window = { requestAnimationFrame: nop, cancelAnimationFrame: nop }; module.exports = L;
// // Demo14ViewController.h // HXPhotoPickerExample // // Created by 洪欣 on 2020/5/22. // Copyright © 2020 洪欣. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface Demo14ViewController : UIViewController @end NS_ASSUME_NONNULL_END
function run(){ if (Bangle.isCharging()) return; var now = new Date(); var h = now.getHours(); if(h >= activityreminder.startHour && h < activityreminder.endHour){ var health = Bangle.getHealthStatus("day"); stepsArray.unshift(health.steps); stepsArray = stepsArray.slice(0, activ...
#!/usr/bin/env python # # Copyright (c) 2015 Intel Corporation. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of works must retain the original copyright notice, this # list of conditions and t...
/* Copyright (c) 2007 Stefan Kurtz <kurtz@zbh.uni-hamburg.de> Copyright (c) 2009 Sascha Steinbiss <steinbiss@zbh.uni-hamburg.de> Copyright (c) 2007-2009 Center for Bioinformatics, University of Hamburg Permission to use, copy, modify, and distribute this software for any purpose with or without fee...
/** * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Galician language. */ /**#@+ @type String @example */ /*...
/* * File: _coder_find_P_mex.h * * MATLAB Coder version : 4.1 * C/C++ source code generated on : 03-Apr-2019 16:45:30 */ #ifndef _CODER_FIND_P_MEX_H #define _CODER_FIND_P_MEX_H /* Include Files */ #include <math.h> #include <stdlib.h> #include <string.h> #include "tmwtypes.h" #include "mex.h" #includ...
import React, { Component, Fragment } from 'react'; import withStyles from '@material-ui/core/styles/withStyles'; import PropTypes from 'prop-types'; import MyButton from '../../util/MyButton'; // MUI Stuff import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle...
const VideoStream = require('./VideoStream'); const rp = require('request-promise'); const moment = require('moment'); class QuanminStream extends VideoStream { constructor (plat = 'quanmin') { super(plat); } async getStreamAddr (plat, roomId, url) { try { const res = await rp({ uri: `htt...
/** * Auto-generated action file for "Box 2.0" API. * * Generated at: 2019-05-07T14:39:47.644Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / box-com-content-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under...
define( [ 'jquery', 'ko', 'mage/storage', 'Magento_Checkout/js/model/error-processor', 'Magento_Checkout/js/model/full-screen-loader', 'Magento_Checkout/js/model/quote', 'Magento_Checkout/js/model/url-builder', ], function ($, ko, storage, errorProcess...
import React, { useEffect } from 'react'; import { fade, makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import IconButton from '@material-ui/core/IconButton'; import Typography from '@material-ui/core/Typography'; import Inpu...
# # Extension for Sphinx to add new directive 'autoimage' which works as subclass # of the internal Image directive. # Author: Pedro Kroger # see http://pedrokroger.net/using-sphinx-write-technical-books/ # Code snippet from https://gist.github.com/kroger/3856821 with some # modifications for OpenSlides. # import os ...
from typing import List from flask import abort, request, session from flask_restx import Namespace, Resource from CTFd.api.v1.helpers.request import validate_args from CTFd.api.v1.helpers.schemas import sqlalchemy_to_pydantic from CTFd.api.v1.schemas import ( APIDetailedSuccessResponse, PaginatedAPIListSucce...
// [AsmJit] // Complete x86/x64 JIT and Remote Assembler for C++. // // [License] // Zlib - See LICENSE.md file in the package. // [Guard] #ifndef _ASMJIT_BASE_CPUINFO_H #define _ASMJIT_BASE_CPUINFO_H // [Dependencies - AsmJit] #include "../base/globals.h" // [Api-Begin] #include "../apibegin.h" namespace asmjit { ...
# Assessment 3B Question 1 # Timothy Williams, tsw0050@arastudent.ac.nz def get_demerit_points(driving_speed, speed_limit, light_trailer = False, school_zone = False, holiday_period = False): ''' Function works out the demerit point penalty for a driving speed in a particular speed zone ''' # all speed...
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // REQUIRES: riscv-registered-target // RUN: %clang_cc1 -triple riscv64 -target-feature +experimental-v -disable-O0-optnone -emit-llvm %s -o - | opt -S -mem2reg | FileCheck --check-prefix=CHECK-RV64 %s #include <riscv_vector.h> // CHECK-RV6...
# # Command Line Application to ease with # Crash database maintenance # import os import sys import sqlite3 as sqlite import cmd class CrashDBCmd(cmd.Cmd): """ Simple command line processor example. Shelling out is implemented. """ # These properties control the # graphical appearence l...
/** @addtogroup flash_file * */ /* * This file is part of the libopencm3 project. * * Copyright (C) 2014 Ken Sarkies <ksarkies@internode.on.net> * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Sof...
/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ function webpackJsonpCallback(data) { /******/ var chunkIds = data[0]; /******/ var moreModules = data[1]; /******/ /******/ /******/ // add "moreModules" to the modules object, /******/ // then f...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef blocksizecalculator_h #define blocksizecalculator_h #include <iostream> ...
///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Versio...
class Convert: def __init__(self, temp=0): self.set_temperature(temp) @property def get_temerature(self): return self.__temperature def set_temperature(self, value): if not isinstance(value, float): raise ValueError("Must be float") self.__temperature = valu...
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Laghos(MakefilePackage): """Laghos (LAGrangian High-Order Solver) is a CEED miniapp that s...
from flask_migrate import Migrate from inventory_control.ext.db import db migrate = Migrate(db=db) def init_app(app): migrate.init_app(app=app)
"""Module providing abstract Node2Vec implementation.""" from typing import Optional, Dict, Any, Union from ensmallen import Graph import numpy as np import pandas as pd from ensmallen import models from embiggen.utils.abstract_models import AbstractEmbeddingModel, EmbeddingResult class SPINE(AbstractEmbeddingModel)...
import React, { Component } from 'react'; import { Box, Button, Heading, Layer, Text } from 'grommet'; import doc from 'grommet/components/Layer/doc'; import Page from '../components/Page'; import Doc from '../components/Doc'; const desc = doc(Layer).toJSON(); export default class LayerDoc extends Component { sta...
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,d){a instanceof String&&(a=String(a));for(var b=a.length,e=0;e<b;e++){var f=a[e];if(c.call(d,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUN...
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('entry_1', views.entry_1, name='entry_1'), path('entry_2', views.entry_2, name='entry_2'), path('entry_3', views.entry_3, name='entry_3'), path('entry_4', views.entry_4, name='entry_4'), ...
# MIT License # Copyright (c) 2021 nanato12 # 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, publi...
import React from 'react' import { StyleSheet, Text, View, Switch, } from 'react-native' import {ListRow} from 'teaset' import ScrollPage from "../../components/ScrollPage"; import styleUtil from "../../common/styleUtil"; import JPushModule from 'jpush-react-native'; import request from "../../common/request"; imp...
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env("DJANGO_SECRET_KEY") # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED...
"""Utility functions. Functions --------- - decompose_sparse - reconstruct_sparse """ from typing import Dict from numpy import ndarray from scipy.sparse import csc_matrix def decompose_sparse(matrix: ndarray, name: str) -> Dict[str, ndarray]: """Decompose a matrix to sparse components. Convert a matrix ...
from flask import request, jsonify from flask_login import current_user from app import app from app.module.candidate.model import CandidateModel from app.module.voter.model import VoterModel, VoterBallotModel from app.helper.utils import msg_out, DataModel from sqlalchemy import or_, and_, not_ from datetime import da...
#include "ccv.h" int main(int argc, char** argv) { ccv_dense_matrix_t* x = NULL; // ccv_dense_matrix_new(681, 1021, CCV_8U | CCV_C3, NULL, NULL); ccv_unserialize(argv[1], &x, CCV_SERIAL_ANY_FILE); if (argc < 3) { int i, j; printf("P3\n%d %d\n255\n", x->cols, x->rows); for (i = 0; i < x->rows; i++) { for...
from mypy.plugin import Plugin from mypy.types import CallableType class MyPlugin(Plugin): def get_function_hook(self, fullname): if fullname == 'm.decorator1': return decorator_call_hook if fullname == 'm._decorated': # This is a dummy name generated by the plugin ...
""" 使用 requests 和 xpath $ pip install requests $ pip install lxml 如果安装出错可以尝试更换国内源 $ pip install -i https://pypi.doubanio.com/simple lxml """ import requests from lxml import etree # 1. 设置headers中的User-Agent, 发送请求, 获取响应 headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (K...
""" :py:mod:`katana.bug` contains tools for capturing debugging information for bug reporting purposes. The currently available entry point is :py:func:`~katana.bug.capture_environment`. This function can be invoked from the command-line by running (with the Katana library installed): .. code-block:: sh python -m...
import tempfile import os import shutil import subprocess as sp def make_example(name, src, dst): print("Making '{}'' example...".format(name)) # convert and copy the README to the static location sp.call([ "pandoc", "--from", "markdown", "--to", "rst", "-o", os.path.join(...
import numpy as np import nibabel as nb import os import sys import nighresjava from ..io import load_volume, save_volume from ..utils import _output_dir_4saving, _fname_4saving, \ _check_topology_lut_dir, _check_available_memory def lcpca_denoising(image_list, phase_list=None, ...
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function(){var a=function(b,c){var d=1,e=2,f=4,g=8,h=/^\s*(\d+)((px)|\%)?\s*$/i,i=/(^\s*(\d+)((px)|\%)?\s*$)|^$/i,j=/^\d+px$/,k=function(){var C=this.getValue(),D=this.getD...
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-16 12:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flis_horison_scanning', '0005_auto_20170314_1629'), ] operations = [ migrati...
#ifndef XSM_MACHINE_H #define XSM_MACHINE_H #include <setjmp.h> #include "debug.h" #include "disk.h" #include "exception.h" #include "memory.h" #include "registers.h" #include "tokenize.h" #include "types.h" #define XSM_ADDR_DREF 0 #define XSM_ADDR_NODREF 1 #define PRIVILEGE_USER 0 #define PRIVILEGE_KERNEL 1 #def...
/*module.exports = {};*/
from __future__ import print_function import itertools, pkg_resources, sys from distutils.version import LooseVersion if LooseVersion(pkg_resources.get_distribution("chainer").version) >= LooseVersion('7.0.0') and \ sys.version_info.major == 2: print('''Please install chainer <= 7.0.0: sudo pip install chai...
# Created by MechAviv # Dice Master Damage Skin | (2437274) if sm.addDamageSkin(2437274): sm.chat("'Dice Master Damage Skin' Damage Skin has been added to your account's damage skin collection.") sm.consumeItem()
from django.db import migrations class Migration(migrations.Migration): dependencies = [("users", "0004_auto_20150708_2005")] operations = [ migrations.AlterModelOptions( name="user", options={ "verbose_name": "User", "verbose_name_plural": "Us...
from pathlib import Path import shelve DB_NAME = str(Path(__file__).parent / 'db') def get(command): kwargs = {} with shelve.open(DB_NAME) as db: ckwargs = db[command] return ckwargs def update(command, kwargs): with shelve.open(DB_NAME) as db: if db.get(command) is None: ...
asyncTest("Emit a command", function() { // given Backbone.CQRS.hub.init(); var process = function(cmd) { // then equals(cmd.commandName, 'myCommand', 'get cmdName from attr'); equals(cmd.payload.project, 'Backbone.CQRS', 'get value from payload'); // teardown ...
from helper import greeting print("I am changing this file for a different branch!") myMsg = "Hello! This is a change!" greeting(myMsg)
const currentPage = location.pathname; const menuItems = document.querySelectorAll("header .links a"); for (item of menuItems) { if(currentPage.includes(item.getAttribute("href"))) { item.classList.add("active"); }; }; function paginate(selectedPage, totalPages) { let pages = [], ...
/** * @license Copyright 2018 The Lighthouse 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 applica...
var callbackArguments = []; var argument1 = function (value, key) { callbackArguments.push(arguments) ctrlLocals[key] = tplAndVars[resolveIter++]; }; var argument2 = ""; var argument3 = function (newRow) { callbackArguments.push(arguments) cloneTest.push(newRow); list1Model.push(newRow); }; var ...
from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions import dsz if ('nameserverlookup' not in cmd_definitions): dsznameserverlookupitem = OpsClass('hostinfo', {'info': OpsField('info', dsz.TYPE_STRING)}, DszObject, single=False) nameserverlookupcommand = OpsClass('nameserv...
# -*- coding: utf-8 -*- """ pygments.lexers.php ~~~~~~~~~~~~~~~~~~~ Lexers for PHP and related languages. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, bygroups, default, us...
import React from "react"; import ReactDOM from "react-dom"; import App from "./App"; import * as serviceWorker from "./serviceWorker"; import { Provider } from "react-redux"; import store from "./store"; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById("root") ); // I...
import numpy as np from exptools2.core import Trial from psychopy.visual import TextStim import os opj = os.path.join class pRFTrial(Trial): def __init__(self, session, trial_nr, phase_durations, phase_names, parameters, timing, position, orientation, stimulus, verbose=True): """ Initializes a pRFTrial ob...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 Greenplum, Inc. // // @filename: // CMDProviderTest.h // // @doc: // Tests the metadata provider. //--------------------------------------------------------------------------- #ifndef GPOPT_CMDP...
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Copyright (c) 2018-2021 The EMRALS Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test emralsd shutdown.""" from test_framework.test_fra...
from typing import Optional, Tuple from deap.tools import ParetoFront as DeapParetoFront from fedot.core.visualisation.opt_viz import PipelineEvolutionVisualiser class ParetoFront(DeapParetoFront): def __init__(self, objective_names: Optional[Tuple[str]] = None, *args, **kwargs): self.objective_names = ...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:44:33 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/AssistantServices.framework/AssistantServices * classdump-dyld is licensed under GPLv3, Copyright © 2...
var searchData= [ ['renderer_0',['Renderer',['../classtnah_1_1_physics_1_1_physics_engine.html#a129495a0ea9ef176949dae66920acf7f',1,'tnah::Physics::PhysicsEngine']]], ['scene_1',['Scene',['../classtnah_1_1_physics_1_1_physics_engine.html#a431824fa13953476155f1a89f0579a71',1,'tnah::Physics::PhysicsEngine']]] ];
/* * jQuery UI Slider Access * By: Trent Richardson [http://trentrichardson.com] * Version 0.2 * Last Modified: 12/12/2011 * * Copyright 2011 Trent Richardson * Dual licensed under the MIT and GPL licenses. * http://trentrichardson.com/Impromptu/GPL-LICENSE.txt * http://trentrichardson.com/Impromptu/MIT-LICENSE.txt * *...
/*! * Backbone.Notifier 3D Module v0.0.2 * Copyright 2012, Eyal Weiss * Backbone.Notifier 3D Module be freely distributed under the MIT license. */ (function(Notifier, $){ Notifier.regModule({ name: '3d', enabled: false, extend: { defaults: { '3d': true } }, events: { 'beforeAnimateInMsgEl'...
// @link https://schemas.truecrimedaily.com/json-schema/tcd/ovp/request/get-video-history-response/1-0-0.json# import Fb from '@gdbots/pbj/FieldBuilder'; import GdbotsPbjxResponseV1Mixin from '@gdbots/schemas/gdbots/pbjx/mixin/response/ResponseV1Mixin'; import Message from '@gdbots/pbj/Message'; import Schema from '@gd...
/* eslint-disable */ // Settings.js: // This is the sitewide information that is used throughout the entire // build of the site. This goes from SEO to headings and also into the // core Gatsby config files as well. import * as Config from '../../../site-config'; export const Settings = { SiteTitle: Config.siteTit...
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import functools import logging import time from betterboto import client as betterboto_client from . import constants logger = logging.getLogger(__file__) def get_or_create_portfolio(description, provid...
#ifndef RZ_DES_H #define RZ_DES_H #define DES_KEY_SIZE 8 #define DES_BLOCK_SIZE 8 #ifdef __cplusplus extern "C" { #endif typedef struct des_context_t { ut32 round_key_lo[16]; // round key low ut32 round_key_hi[16]; // round key hi int round; } RDESContext; RZ_API void rz_des_permute_key(ut32 *keylo, ut32 *keyh...
module.exports = { name: "observationSubmissions", schema: { entityId: "ObjectId", observationId: "ObjectId", createdBy: String, status: String, evidencesStatus: Array, evidences: Object, criteria: Array, themes: Array, answers: Object, entityExternalId: String, entityInf...
/* * Contains all configuration bits for the target MPU (PIC18F25K80). Generated from the MPLAB X IDE Configuration tool * * File: config.h * Author: pojd * * Created on October 28, 2015, 5:59 PM */ #ifndef CONFIG_H #define CONFIG_H #ifdef __cplusplus extern "C" { #endif // PIC18F25K80 Configuration Bit ...