text
stringlengths
3
1.05M
module.exports = { roots: ['./src/components/__tests__/'], setupFiles: ["<rootDir>/src/setupTests.js"] }
from settings.settings import interaction_setting as it from settings.logs import * from system.screen_text import thoughts_processing from tools.interaction import speak try : from termcolor import colored, cprint except Exception as e: logger.info(str(e)) def get_audio_text(): cprint("(Write someth...
/*! * froala_editor v2.6.2 (https://www.froala.com/wysiwyg-editor) * License https://froala.com/wysiwyg-editor/terms/ * Copyright 2014-2017 Froala Labs */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory)...
#!/usr/bin/env python3 """A basic greedy algorithim to solve the multidimensional 0–1 knapsack problem Author(s) --------- Daniel Gisolfi <Daniel.Gisolfi1@marist.edu> """ class GreedyAlgorithm: """Basic Greedy Algorithim Attributes ---------- knapsacks : List[list] all knapsacks in a l...
# Various stuff from the book # diy 1 movies = ["The Holy Grail", "The Life of Brian", "The Meaning of Life"] for i in range(3): movies.insert(1 + i*2, 1975 + i*4) print(movies) # diy 2 try: data = open('sketch.txt') for each_line in data: try: (role, line_spoken) = each_line.split('...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__dest_char_alloca_cpy_06.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__dest.label.xml Template File: sources-sink-06.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set data pointer to the...
define({ "showLegend": "Mostrar legenda", "controlPopupMenuTitle": "Selecionar as ações que serão exibidas no menu de contexto da camada", "zoomto": "Efectuar zoom para", "transparency": "Transparência", "controlPopup": "Ativar / Desativar janela pop-up", "moveUpAndDown": "Mover para cima / Mover para...
import './src/styles.scss'; export const onClientEntry = () => {};
"use strict"; //1. Pick a penguin from Wikipedia's List of Fictional Penguins (https://en.wikipedia.org/wiki/List_of_fictional_penguins) and create an object named myPenguin with properties that represent the information listed in each column on that Wikipedia page (for example: the character's name, origin, and author...
default_app_config = 'kitsune.notifications.apps.NotificationsConfig'
import pytest from skspatial.objects import Line, Plane @pytest.mark.parametrize("class_spatial", [Line, Plane]) @pytest.mark.parametrize( "point, vector, dim_expected", [([0, 0], [1, 0], 2), ([0, 0, 0], [1, 0, 0], 3), ([0, 0, 0, 0], [1, 0, 0, 0], 4)] ) def test_dimension(class_spatial, point, vector, dim_expect...
import React from 'react' // import { Link } from 'gatsby' import PropTypes from 'prop-types' import Navi from './navi' import './header.scss' const Header = ({ siteBrand }) => ( <header> <Navi brandName={ siteBrand } /> </header> ) Header.propTypes = { siteBrand: PropTypes.string, } Header.defaultProps ...
script = registerScript({ name: "PointerESP", authors: ["AquaVit", "MyScarlet"], version: "2.1" }); script.import("Core.lib"); script.import("utils/RenderUtils.js"); var TeamsModule = LiquidBounce.moduleManager.getModule("Teams"); /** * @param {number} cx center X pos * @param {number} cy center Y pos ...
import { CREATE_TRANSACTION, CREATE_TRANSACTION_SUCCESS, CREATE_TRANSACTION_ERROR, } from './constants' const createTransaction = (payload): Object => ({ type: CREATE_TRANSACTION, payload }) const createTransactionSuccess = (): Object => ({ type: CREATE_TRANSACTION_SUCCESS }) const createTransactionError = (erro...
import { ADD_COUNTER, ADD_TO_CART } from './mutations-types' export default { //常量使用[],好处是定义常量的地方改了,其他地方就都改了 [ADD_COUNTER](state, payload) { //如果已经有衣服数量加1 payload.count += 1 }, [ADD_TO_CART](state, payload) { //要写在push的前面,等于加了属性在加入到cartList,写在下面就等于没加上 payload.checked = false //如果没有衣服就添加到car...
import pytest from presidio_anonymizer.entities import AnonymizerConfig, InvalidParamException @pytest.mark.parametrize( # fmt: off "class_name", [ "hash", "mask", "redact", "replace" ], # fmt: on ) def test_given_json_then_anonymizer_config_is_created_properly(class_name): json = { ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built require({cache:{"url:themes/LaunchpadTheme/widgets/AnchorBarController/GroupItems.html":'\x3cdiv\x3e\r\n ...
//cnc.h class gcitem { }; typedef boost::shared_ptr< gcitem > sp_gcitem_t; typedef std::vector< sp_gcitem_t > vect_sp_gcitem_t; typedef std::vector< sp_gcitem_t >::iterator vect_sp_gcitem_it_t; //straight rapid move class gc0 : public gcitem { bg_point a; }; typedef boost::shared_ptr< gc0 > sp_gc0; //straight f...
"""Utilities and tools for tracking runs with Weights & Biases.""" import logging import os import sys from contextlib import contextmanager from pathlib import Path import pkg_resources as pkg import yaml from tqdm import tqdm import torch FILE = Path(__file__).resolve() ROOT = FILE.parents[4] # YOLOv5 root direct...
/*========================================================================= Program: ShapeWorks: Particle-based Shape Correspondence & Visualization Module: $RCSfile: extract_centers.h,v $ Date: $Date: 2011/03/24 01:17:36 $ Version: $Revision: 1.2 $ Author: $Author: wmartin $ Copyrigh...
from typing import TYPE_CHECKING from typing import List from .empty_constraint import EmptyConstraint from .version_constraint import VersionConstraint from .version_union import VersionUnion if TYPE_CHECKING: from poetry.core.semver.version import Version class VersionRange(VersionConstraint): def __init...
#!/usr/bin/env python3 # # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R union_test_py import unittest import k2 import torch class TestUnion(unittest.TestCase): def ...
import React from "react"; import ReactDOM from "react-dom"; import { Provider } from "react-redux"; import { App } from "./components/App/App"; import { store } from "./store/store"; ReactDOM.render( <React.StrictMode> <Provider store={store}> <App /> </Provider> </React.StrictMode>, document.get...
var mongoose = require("mongoose"); var schema = null; var createSchema = function() { var test = { accountName: String, password:String }; schema = new mongoose.Schema(test); }; var createIndex = function() { }; var init = function() { createSchema(); createIndex(); mongoose.model("...
# 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. import argparse import importlib import pathlib import time from egg.nest.common import sweep if __name__ == '__main__': from egg.nest.w...
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "ms-SG", likelySubtags: { ms: "ms-Latn-MY" }, identity: { language: "ms", territory: "SG" }, territory: "SG", numbers: { symbols: { decimal: ".", group: ",", ...
var Container = require('../display/Container'), CONST = require('../const'); /** * The ParticleContainer class is a really fast version of the Container built solely for speed, * so use when you need a lot of sprites or particles. The tradeoff of the ParticleContainer is that advanced * functionality will not ...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:48:56 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/AirPortAssistant.framework/AirPortAssistant * classdump-dyld is licensed under GPLv3, Copyright © 201...
import { CHANGE_SEARCH_FIELD, REQUEST_ROBOTS_PENDING, REQUEST_ROBOTS_FAILED, REQUEST_ROBOTS_SUCCESS } from './constants.js'; const initialStateSearch = { searchField: '' } export const searchRobots = (state = initialStateSearch, action = {}) => { switch (action.type) { case CHANGE_SEARCH_FIELD: ...
with open("input.in", "r") as in_file: data = in_file.read().strip() width = 25 height = 6 size = width * height layers = [data[i:i + size] for i in range(0, len(data), size)] # task 1 layer = min(layers, key=lambda l: l.count("0")) print("Task 1 =", layer.count("1") * layer.count("2")) # task 2 print("\nTask...
/* eslint-disable cypress/no-unnecessary-waiting */ /* eslint-disable cypress/no-assigning-return-values */ require("cy-verify-downloads").addCustomCommand(); require("cypress-file-upload"); const { addMatchImageSnapshotCommand, } = require("cypress-image-snapshot/command"); const pages = require("../locators/Pages...
CKEDITOR.plugins.setLang("devtools","pt-br",{devTools:{title:"Informação do Elemento",dialogName:"Nome da janela de diálogo",tabName:"Nome da aba",elementId:"ID do elemento",elementType:"Tipo do elemento"}});
#ifndef OTOINFOAREA_H #define OTOINFOAREA_H #include <QGridLayout> #include <QWidget> #include "../Modules/ImageLabel.h" #include "../VoiceTabs/ImageTab.h" #include "../VoiceTabs/PrefixMapTab.h" #include "../VoiceTabs/TextBoxTab.h" #include "Containers/TabWidget.h" #include "Controls/Group/LineControl.h" #include "Vo...
export const ic_carpenter_twotone = {"viewBox":"0 0 24 24","children":[{"name":"rect","attribs":{"fill":"none","height":"24","width":"24"},"children":[]},{"name":"path","attribs":{"d":"M5.71,5.62L7,4.33l8.49,8.49l-2.81,2.81L5.71,5.62z","opacity":".3"},"children":[]},{"name":"path","attribs":{"d":"M19.73,14.23L7,1.5L3.1...
from mopro.config import config config.load_yaml('tests/test_config.yaml') def test_create_run(): from mopro.database import ( database, initialize_database, setup_database, CorsikaRun, CorsikaSettings, ) initialize_database() setup_database() with databa...
const db = require("./db_config"); const ObjectsToCsv = require("objects-to-csv"); async function createCSV(dataArray, dateFrom, dateTo, chunk) { const fileName = "LOG"; const csv = new ObjectsToCsv(dataArray); // Save to file: await csv.toDisk( `result/data-processing/${fileName}(${dateFrom} - ${dateTo})...
// Copyright 2017-2021 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 a...
# -*- coding: utf-8 -*- from django.conf import settings from django.conf.urls.defaults import * from django.views.generic.simple import redirect_to from helpers import here urlpatterns = patterns('yourworld.ywot.views', ### Web page: # Main url(r'^home/$', 'home', name='home'), # Accounts (r...
// @flow export const SAVE_WORKLOG_REQUEST = 'worklogs/SAVE_WORKLOG_REQUEST'; export const DELETE_WORKLOG_REQUEST = 'worklogs/DELETE_WORKLOG_REQUEST';
from tests.utils import W3CTestCase class TestBlockInInlineInsert016Ref(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'block-in-inline-insert-016-ref'))
/*! * Masonry PACKAGED v3.3.0 * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */ !function(a){'use strict';function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})...
// Copyright 2010 Todd Ditchendorf // // 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...
/** |-------------------------------------------------- | main process |-------------------------------------------------- */ const path = require('path') const shell = require('shelljs') module.exports = function (dir) { const fr = path.join(dir, 'components/*'), to = path.join(dir, 'rn/UFDesign/dist/compo...
from matplotlib import pyplot as plt def show_plots(history): """Show training and validation error performances Args: history (Keras fit history): Return value of the keras fit method """ fig, (ax1, ax2) = plt.subplots(2, sharex=True,figsize=(10,10)) plt.xlabel("Epochs") ax1.set_title...
# This code generates images of size 256 x 256 px that contains either an open or closed contour. # This contour consists of curved lines that were generated by radial frequency distortions. # author: Christina Funke import numpy as np import os from PIL import Image from pathlib import Path def radial_frequency_lin...
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
import numpy as np from mla.base import BaseEstimator from mla.neuralnet.activations import softmax class NaiveBayesClassifier(BaseEstimator): """Gaussian Naive Bayes.""" # Binary problem. n_classes = 2 def fit(self, X, y=None): self._setup_input(X, y) # Check target labels as...
# @lint-avoid-pyflakes2 # @lint-avoid-python-3-compatibility-imports import asyncio import functools import logging from io import BytesIO import struct import warnings from .TServer import TServer, TServerEventHandler, TConnectionContext from thrift.Thrift import TProcessor from thrift.transport.TTransport import TM...
"use strict"; const Collection = require("../util/Collection"); const GuildChannel = require("./GuildChannel"); const Message = require("./Message"); /** * Represents a guild text channel * @extends GuildChannel * @prop {String} id The ID of the channel * @prop {String} mention A string that mentions the channel * @p...
/** * \file QryWznmTblATitle.h * API code for job QryWznmTblATitle (declarations) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 5 Dec 2020 */ // IP header --- ABOVE #ifndef QRYWZNMTBLATITLE_H #define QRYWZNMTBLATITLE_H #include "ApiWznm_blk...
import fs from 'fs'; import mkdirp from 'mkdirp'; export const prepareCatalogs = async directory => { if (fs.existsSync(directory)) { return Promise.resolve(); } await mkdirp(directory); await console.log(`${directory} has been added!`); await fs.writeFileSync(`${directory}/.gitkeep`, ''); };
"""Base class used for things that "play" from the config files, such as WidgetPlayer, SlidePlayer, etc.""" import abc from functools import partial from typing import List from mpf.core.machine import MachineController from mpf.core.mode import Mode from mpf.core.logging import LogMixin from mpf.exceptions.config_fil...
// noinspection JSCheckFunctionSignatures require("dotenv").config(); const cors = require("cors"); const morgan = require("morgan"); const express = require("express"); const mongoose = require("mongoose"); const apiRouter = require("./routes"); const PORT = process.env.PORT || "3000"; const DB_HOST = process.env....
// Aleth: Ethereum C++ client, tools and libraries. // Copyright 2014-2019 Aleth Authors. // Licensed under the GNU General Public License, Version 3. #pragma once #include <libdevcore/Common.h> #include <libethcore/Precompiled.h> #include "Common.h" #include "EVMSchedule.h" namespace dev { namespace eth { class ...
#!/usr/bin/env python '''This collects filesystem capacity info using the 'df' command. Tuples of filesystem name and percentage are stored in a list. A simple report is printed. Filesystems over 95% capacity are highlighted. Note that this does not parse filesystem names after the first space, so names with spaces in...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
import { deletePost } from '../actions/postActions'; import React, { Component } from 'react'; import { connect } from 'react-redux'; class Post extends Component { handleClick = () => { this.props.deletePost(this.props.post.id); this.props.history.push('/'); }; render() { console...
// eslint-disable-next-line import { UserLayout, BasicLayout, BlankLayout } from '@/layouts' // import { bxAnaalyse } from '@/core/icons' const RouteView = { name: 'RouteView', render: h => h('router-view') } export const asyncRouterMap = [ { path: '/', name: 'index', component: BasicLayout, meta...
from base64 import b64decode from binascii import hexlify, unhexlify from functools import reduce from Crypto.Cipher import AES def get_ciphertext(): ciphertext = [] with open("7.txt", 'r') as ct_file: ciphertext = ct_file.readlines() # Reduce multiple lines to a single string with \n chars remov...
function burggerMenuFunction() { var x = document.getElementById('myLinks'); if (x.style.display === 'block') { x.style.display = 'none'; } else { x.style.display = 'block'; } } $(document).ready(function () { $('#filltre').on('change', function () { var elems = this.value == 'all' ? $('.bookSec'...
######### # Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
category_output = { 'Ad': 9, 'Al': 14, 'Co': 8, 'Cr': 11, 'Da': 5, 'Hu': 14, 'Ra': 12, 'Ro': 6, 'Sa': 4, 'Sl': 12, 'Tr': 7, } def categories(format_json, input_json): output = [] for key in sorted(input_json['story']['categories']): if input_json['story']['c...
import pygame import time import random pygame.init() white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0) green = (0, 155, 0) display_width = 800 display_height = 600 gameDisplay = pygame.display.set_mode((display_width, display_height)) pygame.display.set_caption('') clock = pygame.time.Clock() block_si...
import os from . import folder_visualizer class RootDoesNotExist(Exception): """Exception for when the FolderStore has not root registered""" pass class KillerFolder(folder_visualizer.Folder): """Subclass of Folder with extended function""" def __init__(self, name: str, path: str, **kwargs): ...
/* * orientc.h * * Created on: 22 Jul 2015 * Author: tglman */ #ifndef SRC_ORIENTC_H_ #define SRC_ORIENTC_H_ #include "orientc_reader.h" #include "orientc_writer.h" #endif /* SRC_ORIENTC_H_ */
/********************************************************************************** * Copyright (c) 2008-2015 The Khronos Group Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Material...
# -*- coding: utf-8 -*- """Tests for the redirect.py script.""" # # (C) Pywikibot team, 2017-2020 # # Distributed under the terms of the MIT license. # from contextlib import suppress import pywikibot from pywikibot import Page, i18n from scripts.redirect import RedirectRobot from tests import Mock, patch, unittest ...
# Generated by Django 2.0 on 2018-06-19 21:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0016_auto_20180619_2153'), ] operations = [ migrations.AlterField( model_name='profile', nam...
/* Copyright 2017 Mozilla Foundation * * 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...
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory);}else{factory(jQuery);}}(function($){$.ui=$.ui||{};$.extend($.ui,{version:"1.11.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:...
'use strict'; var DateXform = require('../../../../../lib/xlsx/xform/simple/date-xform'); var testXformHelper = require('./../test-xform-helper'); var expectations = [ { title: 'date', create: function() { return new DateXform({tag: 'date', attr: 'val'}); }, preparedModel: new Date('2016-07-13T00:00:00Z...
import asyncio import dataclasses import logging from time import time from typing import Dict, List, Optional, Tuple, Callable import pytest import flax.server.ws_connection as ws from flax.full_node.mempool import Mempool from flax.full_node.full_node_api import FullNodeAPI from flax.protocols import full_node_pr...
"""Support for the Netatmo camera lights.""" import logging import pyatmo from homeassistant.components.light import LightEntity from homeassistant.core import callback from homeassistant.exceptions import PlatformNotReady from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import ( ...
/* * tictoc.c * * Created on: May 29, 2009 * Author: abachrac */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <glib.h> #include <sys/time.h> #include "tictoc.h" //simple, quick and dirty profiling tool... static int64_t _timestamp_now() { struct timeval tv; ...
# -*- coding: utf-8 -*- from flask.ext.wtf import Form, RecaptchaField from wtforms import StringField, SubmitField, TextField, PasswordField, SelectField, TextAreaField, BooleanField, ValidationError from wtforms.validators import DataRequired, Length, EqualTo, Email from flask.ext.login import current_user from mod...
// SPDX-License-Identifier: GPL-2.0+ // // Copyright (C) 2016-2017 Socionext Inc. // Author: Masahiro Yamada <yamada.masahiro@socionext.com> #include <linux/kernel.h> #include <linux/init.h> #include <linux/mod_devicetable.h> #include <linux/pinctrl/pinctrl.h> #include <linux/platform_device.h> #include "pinctrl-un...
/* !@ MIT License Copyright (c) 2020 Skylicht Technology CO., LTD 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...
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.000764,"12":0,"13":0,"14":0.000764,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0.000764,"32":0,"33":0.001528,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0.001528,"41":0,"42":0...
!(function (e, a) { module.exports = a(require('number-intl')) })(this, function (e) { return e.addLocaleData({ "locale": "pt-MO", "number": { "nu": [ "latn" ], "patterns": { "decimal": { "pos": "{number}", "ne": "{minus}{...
import utility as util import utility.remote_connector as rc import config.config_reader as cr import plan_encoder.jmeter_encoder as jmeter_encoder class post_processor(object): """description of class""" def __init__(self, cfg, cur_run_row): self.cfg = cfg self.temp_connector = rc.remote_con...
# 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 ...
from os.path import basename, join, exists from glob import glob root_dir = '/home/wolf/alexeyp/' text_files = root_dir + 'ocr_datasets/Hebrew/Dataset/Orig/lines/Texts/*.txt' images_dir = root_dir + 'ocr_datasets/Hebrew/Dataset/Orig/lines/cropped' out_file = root_dir + 'ocr_datasets/Hebrew/Dataset/Orig/lines/dataset.t...
from __future__ import absolute_import import os.path from dddp.views import MeteorView import tests class MeteorTodos(MeteorView): """Meteor Todos.""" json_path = os.path.join( os.path.dirname(tests.__file__), 'build', 'bundle', 'star.json' )
/****************************************************************** * * mUPnP for C++ * * Copyright (C) Satoshi Konno 2002 * * This is licensed under BSD-style license, see file COPYING. * ******************************************************************/ #ifndef _MUPNP_SOAPREQUEST_H_ #define _MUPNP_SOAPREQUE...
# Copyright (c) 2020, Michael Boyle # See LICENSE file for details: <https://github.com/moble/spherical_functions/blob/master/LICENSE> ### NOTE: The functions in this file are intended purely for inclusion in the Grid class. In ### particular, they assume that the first argument, `self` is an instance of Grid. They ...
var searchData= [ ['ungetc_496',['ungetc',['../class_stdio_stream.html#ac00e0dd906c2e857ece53794c6c92786',1,'StdioStream']]], ['ungetc_5fbuf_5fsize_497',['UNGETC_BUF_SIZE',['../_stdio_stream_8h.html#a785dd413c0d7b05f95df82d3453ecacd',1,'StdioStream.h']]], ['unsetf_498',['unsetf',['../classios__base.html#a3bf7d054...
import * as React from 'react'; import CheckboxInput from '../inputs/CheckboxInput.js'; import SearchInput from '../inputs/SearchInput.js'; export default class MulticheckInput extends React.Component { constructor(props) { super(props); this.state = { searchTerms: '', act...
import userEvent from '../' import {setup} from './helpers/utils' // Note, use the setup function at the bottom of the file... // but don't hurt yourself trying to read it 😅 // keep in mind that we do not handle modifier interactions. This is primarily // because modifiers behave differently on different operating s...
/* --------------------------------------------------------------------------- Copyright (c) 2002, Dr Brian Gladman, Worcester, UK. All rights reserved. LICENSE TERMS The free distribution and use of this software in both source and binary form is allowed (with or without changes) provided that: 1. distrib...
var lives = 3; function make_healthpack_groups() { healthpack_group = game.add.group(); healthpack_group.enableBody = true; } function placeHealthpack(x, y){ var healthpack = game.add.sprite(x, y, "healthpack"); healthpack.scale.setTo(0.2, 0.2); // CHANGE THIS WHEN HAVE ACTUAL SPRITE healthpack_...
def succ(Z): return Z + 1 def pred(Z): if Z >= 1: return Z - 1 else: return 0 # macro resta acotada def resta(X,Y): Z=0; while Z!=Y: X=pred(X) Z=succ(Z) return X """ PW-E4-g): Construir un PW que compute f(X,Y)=sum_i=1..X(Y mod i). Empleando macros: suma, r...
// Generated by Haxe 4.2.2 #ifndef INCLUDED_lime_app_Event #define INCLUDED_lime_app_Event #ifndef HXCPP_H #include <hxcpp.h> #endif HX_DECLARE_CLASS2(lime,app,Event) namespace lime{ namespace app{ class HXCPP_CLASS_ATTRIBUTES Event_obj : public ::hx::Object { public: typedef ::hx::Object super; typedef Event...
/** * 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. */ // RUN: %hermes -O %s | %FileCheck --match-full-lines %s // RUN: %hermes -O -emit-binary -out %t.hbc %s && %hermes %t.hbc | %FileC...
/*jshint node: true*/ var fs = require('fs'); var vm = require('vm'); var assert = require('assert'); var browserify = require('browserify'); var requireify = require('../index'); var modulePath = __dirname + '/module.js'; var exported = __dirname + '/compiled.js'; var b = browserify(); b.transform(requireify); b...
'use strict'; exports.addon = function (renderer) { renderer.selector = function (parentSelectors, selector) { var parents = parentSelectors.split(','); var result = []; var selectors = selector.split(','); var len1 = parents.length; var len2 = selectors.length; var ...
from load_data.ILoadSupervised import ILoadSupervised from load_data.loader.util_emotions import DiscreteEmotion import os #this code: import load_data.loader.emotion_eeg.individual_clasiff as indiv __all__ = ["LoadEEGIndividualEmotions",] class LoadEEGIndividualEmotions(ILoadSupervised): def __init__(self, chan...
/** * 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 strict * @format * @emails oncall+relay */ 'use strict'; const ASTConvert = require('./ASTConvert'); const nullthrows...
from datetime import datetime # Livraria para a data e hora do sistema # Zona das Funções def menu(): print('0 - Sair') print('1 - Nova Entrada') print('2 - Destritos mais concorridos') print('3 - Periodos do dia mais concorridos') def inicializacao(sep, dado): if sep not in dado: da, do...
const { injectBabelPlugin } = require('react-app-rewired'); const rewireLess = require('react-app-rewire-less'); module.exports = function override(config, env) { config = injectBabelPlugin(['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }], config); config = rewireLess.withLoaderO...
import json import numpy as np from collections import defaultdict from itertools import chain import networkx as nx import os import random import socket def count_parameters(model): return sum(p.numel() for p in model.parameters() if p.requires_grad) def safe_decode(tokenizer, token_ids): token_ids = [x f...