text
stringlengths
184
4.48M
/** * Desktop number plugin to lxpanel * * Copyright (c) 2008 LxDE Developers, see the file AUTHORS for details. * * 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 2 of the ...
#!/usr/bin/python3 '''This module contains unit tests for the class City ''' import unittest from models.base_model import BaseModel from models.city import City from models.state import State class TestCity(unittest.TestCase): ''' Tests the class City ''' def setUp(self): ''' Set up ''' se...
<?php /** * acm : Algae Culture Management (https://github.com/singularfactory/ACM) * Copyright 2012, Singular Factory <info@singularfactory.com> * * This file is part of ACM * * ACM is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * ...
import React, { useState } from 'react'; import { Button, Modal, Box, Input, Typography } from '@mui/material'; import { ref, uploadBytes, getDownloadURL, listAll, list, } from "firebase/storage"; import { storage } from "../../chat/firebase/index"; import { v4 } from "uuid"; import api from '../../api' impor...
import React, { Component } from "react" import { FormControl, FormLabel, FormErrorMessage, Input, Button, Heading, } from '@chakra-ui/react' import axios from 'axios' import toast, { Toaster } from 'react-hot-toast' class RegisterParticipantForm extends Component { constructor() { ...
import React, { useState, useEffect } from 'react'; const GasPriceTracker = () => { const [gasPrices, setGasPrices] = useState({ safeGasPrice: null, proposedGasPrice: null, fastGasPrice: null, }); const fetchGasPrices = () => { const apiKey = 'IV8ZDP33SVEDUJEBV429FUCMXNBS1TZSJZ'; const apiUr...
const {response, request} = require('express'); const {Producto} = require('../models'); const productosGet = async (req = request, res = response) => { const {limit = 5, desde = 0} = req.query; const query = {estado: true}; const [total, productos] = await Promise.all([ Producto.countDocuments(que...
/* * Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
import { RefObject, useEffect } from "react"; export const useClickOutside = (ref: RefObject<HTMLElement>, callback: () => void) => { useEffect(() => { const handleClick = (e: MouseEvent) => { if (ref.current && !ref.current.contains(e.target as HTMLElement)) { callback(); } }; // de...
import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import LocizeBackend from 'i18next-locize-backend'; const LOCIZE_PROJECT_ID = process.env.LOCIZE_PROJECT_ID; const LOCIZE_API_KEY = process.env.LOCIZE_API_KEY; export const in...
// ********* Imports *******************************************/ require("dotenv").config(); // Load environment variables from .env file const sessionSecret = process.env.SESSION_SECRET; const express = require("express"); const session = require("express-session"); const path = require("path"); // gives access to t...
import 'package:dartz/dartz.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_frontend/domain/core/value_objects.dart'; import 'package:flutter_frontend/domain/event/event.dart'; import 'package:flutter_frontend/presentation/pages/core/widgets/Post/u...
import {Card, CardContent, CardActions, Typography, Button} from "@mui/material" import {useDispatch, useSelector} from "react-redux" import { setSelectedPokemon } from "../redux/pokemonSlice"; const PokemonInfo = () => { const selectedPokemon = useSelector((state)=> state.pokemon.selectedPokemon) ; const di...
--- title: Marker Interface category: Structural language: es tag: - Decoupling --- ## Propósito Utilización de interfaces vacías como marcadores para distinguir objetos con un tratamiento especial. ## Diagrama de clases ![alt text](./etc/MarkerDiagram.png "Marker Interface") ## Aplicabilidad Utilice el patrón de i...
create or replace PROCEDURE SP_HOSPITAL_ACTUALIZAR --Definicion de los parametros de entrada (sp_idHospital IN Hospital.idHospital%TYPE, sp_idSede IN Hospital.idSede%TYPE, sp_idDistrito IN Hospital.idDistrito%TYPE, sp_idGerente IN Hospital.idGerente%TYPE, sp_idCondicion IN...
class FindAccountModel { int? _subId; int? _custId; String? _typeOfService; String? _plan; String? _serviceNumber; bool? _active; int? _idType; String? _idNumber; String? _name; String? _phone; String? _account; String? _address; String? _provinceName; String? _districtName; String? _preci...
--- uid: mvc/overview/older-versions-1/security/authenticating-users-with-forms-authentication-vb title: Ověřování uživatelů pomocí ověřování pomocí formulářů (VB) | Dokumenty společnosti Microsoft author: rick-anderson description: Přečtěte si, jak používat atribut [Authorize] k ochraně určitých stránek heslem v aplik...
package Algorithms; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.*; /** * Created by Omeprazole on 2017/6/21. */ public class primeMST implements MST { private boolean[] marked; private Edge[] edgeTo; private double[] distTo; private TreeMap<Integ...
import atexit import base64 import getopt import os import signal import sys from datetime import datetime import torch from faster_whisper import WhisperModel from flask import Flask, jsonify, request from werkzeug.utils import secure_filename app = Flask(__name__) app.config['UPLOAD_FOLDER'] = 'uploads' # Set the u...
import { ILoadTransactionsRepository, ILoadClientByIdRepository, } from "@/data/protocols"; import { DbLoadTransactions } from "@/data/usecases"; import { ITransactionModel } from "@/domain/models"; import { mockTransaction } from "@/tests/domain/mocks/mock.transaction"; function makeLoadTransactionsRepository(): ...
package com.epam.hibernate.service; import com.epam.hibernate.dto.trainee.request.TraineeRegisterRequest; import com.epam.hibernate.dto.trainee.request.TraineeTrainingsRequest; import com.epam.hibernate.dto.trainee.request.UpdateTraineeRequest; import com.epam.hibernate.dto.trainee.request.UpdateTrainersListRequest; i...
import { FastifyReply, FastifyRequest } from 'fastify' import { z } from 'zod' import { makeEditPostUseCase } from '../factories/make-edit-post' import { NotAllowedError } from '../../application/errors/not-allowed.error' import { EntityNotFoundError } from '../../application/errors/entity-not-found.error' const editP...
/* * Copyright 2013-2021 Signal Messenger, LLC * SPDX-License-Identifier: AGPL-3.0-only */ package org.whispersystems.textsecuregcm.s3; import com.google.common.annotations.VisibleForTesting; import java.io.IOException; import java.io.InputStream; import java.time.Duration; import java.util.concurrent.ScheduledExe...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Loader\Configurator; use Symfony\Component\Ro...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Grid Template for Bootstrap</title> <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <scr...
class Solution: def mincostTickets(self, days: List[int], costs: List[int]) -> int: """ days is an array that has the days of the year that you want to travel on. costs has the prices for a 1 day pass, 7 day pass, and a 30 day pass, respectively. each pass lets you travel for that ma...
package main import ( "container/heap" "fmt" "os" "github.com/iSkytran/2023adventofcode/utilities" ) // List of directions that can be added to coordinates. var directions = []utilities.Coordinates{ {Row: -1, Col: 0}, {Row: 1, Col: 0}, {Row: 0, Col: -1}, {Row: 0, Col: 1}, } // A state while exploring the gr...
import UIKit class PokemonDetailViewController: UIViewController { @IBOutlet weak var gradientView: GradientView! @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var pokemonImageViewWidthContraint: NSLayoutConstraint! @IBOutlet weak var pokemonImageViewHeigthContraint: NSLayou...
package com.dkit.oop.sd2.Server.DTOs; import java.sql.Date; public class Student { private int id; private String firstName; private String lastName; private Date birthDate; private String studentEmail; private String studentPhone; private String address; private int graduationYear; ...
<template> <!-- <lightning-card title="Meeting Rooms"> <ul> <template for:each={meetingRoomsInfo} for:item="room"> <li key={room.roomName} style="padding: 10px"> // show-room-info , passing true value from parent to child component <c-meet...
// // CharacterCell.swift // Rick&Morty // // Created by Dani on 2/11/22. // import UIKit import AlamofireImage protocol CharacterCellDelegate { func showPermissionAlert() func showShareMenu(activityController: UIActivityViewController) func showToast(text: String) } class CharacterCell: UICollectionV...
/* |-------------------------------------------------------------------------- | Routes |-------------------------------------------------------------------------- | | This file is dedicated for defining HTTP routes. A single file is enough | for majority of projects, however you can define routes in different | files ...
import { Formik } from "formik"; import configureStore from "redux-mock-store"; import ResourcePoolSelect from "./ResourcePoolSelect"; import type { RootState } from "app/store/root/types"; import { resourcePool as resourcePoolFactory, resourcePoolState as resourcePoolStateFactory, rootState as rootStateFactory...
import { CreateCarsRepositoryProps } from '@modules/cars/dtos/CarsInterfaceDTO' import { CarRepositoryProps } from '../InterfaceCarRepository' import { Car } from '@modules/cars/infra/typeorm/entities/Car' export class CarsRepositoryInMemory implements CarRepositoryProps { car: Car[] = [] async create({ brand,...
'use strict'; const { Model } = require('sequelize'); module.exports = (sequelize, DataTypes) => { class Editor extends Model { /** * Helper method for defining associations. * This method is not a part of Sequelize lifecycle. * The `models/index` file will call this method automatically. */...
<template> <view class="recharge_popup_page"> <view class="px-4"> <view class="recharge_popup_title"> <text>{{ $t("user.wallet.deposit.title") }}</text> </view> <view class="recharge_list"> <scroll-view scroll-y class="scroll"> <u-skeleton :loading="loading"...
import math from random import random class Matrix: def __init__(self, rows, cols, initial_value=None): assert rows > 0, "rows cannot be less than or equal to 0" assert cols > 0, "cols cannot be less than or equal to 0" self.rows = rows self.cols = cols self.stride = cols ...
import 'package:cercenatorul3000/Theme/colors.dart'; import 'package:cercenatorul3000/Widgets/custom_button.dart'; import 'package:flutter/material.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; class AlegeOrasul extends StatefulWidget { final String projectId; AlegeOrasul({required this.projectId}...
import React, { useState, useEffect } from 'react'; import { Grid, TextField, Button, Avatar, FormControl, Select, MenuItem, InputLabel } from '@material-ui/core'; import { customerDetails, updateCustomerDetails } from '../../api/customer'; import { caretakerDetails, updateCaretakerDetails } from '../../api/caretaker';...
from tkinter import font from turtle import color from urllib.request import proxy_bypass from sklearn.model_selection import RepeatedStratifiedKFold, GridSearchCV, train_test_split import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from xgboost import XGBClassifier from sklear...
<!DOCTYPE html> <html> <head> <title>Sign in</title> <link rel="stylesheet" href="kloudone.css"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="http...
import { Box, Typography, useTheme, TextField } from "@mui/material"; import DashboardBox from "@/components/DashboardBox"; import PlaceCenter from "@/components/PlaceCenter"; import FlexBetween from "@/components/FlexBetween"; import { useEffect, useState } from "react"; import Columns from "@/components/Columns"; ...
import type { Equal, Expect } from './test-utils' type PersonInfo = { name: 'Tom' age: 30 married: false addr: { home: '123456' phone: '13111111111' } hobbies: ['sing', 'dance'] } type ExpectedResult = { name: string age: number married: boolean addr: { ...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
import React from "react"; import { useState, useEffect } from "react"; function Expenses() { const [dailyTotal, setDailyTotal] = useState<number>(0); const [percentage, setPercentage] = useState<number>(0); const [myBalance, setMyBalance] = useState<number>(0); const [days] = useState<string[]>([ "Sun", ...
import {Schema} from "prosemirror-model"; export const schema = new Schema({ nodes: { doc: { content: '(block | test)+', }, paragraph: { content: 'inline*', group: 'block', parseDOM: [{tag: "p"}], toDOM() { return ['p', 0] } }, heading: { attrs: {level: {defaul...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>哈希表实现</title> </head> <body> <script> // 封装哈希表类 function HashTable () { // 属性 this.storage = ...
// Copyright (C) 2015 Michael Biggs. See the COPYING file at the top-level // directory of this distribution and at http://shok.io/code/copyright.html #ifndef _statik_test_Test_h_ #define _statik_test_Test_h_ #include "STLog.h" #include "statik/Batch.h" #include <boost/lexical_cast.hpp> #include <string> namespa...
import LockOutlinedIcon from '@mui/icons-material/LockOutlined'; import Avatar from '@mui/material/Avatar'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Container from '@mui/material/Container'; import Link from '@mui/material/Link'; import TextField from '@mui/material/TextFie...
package com.cootek.presentation.sdk.utils; import android.util.Log; import com.cootek.presentation.service.PresentationSystem; import java.util.HashSet; public class BackgroundThreadManager { private static final String TAG = "BackgroundThreadManager"; private static BackgroundThreadManager sIns = new Backgro...
import React, { memo, useEffect, useMemo, useRef, useState } from 'react'; import styles from './DynamicBlur.module.scss'; import { debounce } from '#src/utils/common'; import Fade from '#components/Animation/Fade/Fade'; import Image from '#components/Image/Image'; import type { ImageData } from '#types/playlist'; t...
import { useState } from "react"; const Spotify = { GetToken() { const [accessToken, setAccessToken] = useState(""); const [expiresIn, setExpiresIn] = useState(0); const initiateAuth = () => { let clientId = process.env.REACT_APP_NOT_SECRET_CODE; const redirectUri = "https://evdmjammmingapp.netlify.app/"...
/********************************************************************************** * $URL: https://source.etudes.org/svn/apps/coursemap/trunk/coursemap-impl/impl/src/java/org/etudes/coursemap/impl/CourseMapMapImpl.java $ * $Id: CourseMapMapImpl.java 9692 2014-12-26 21:57:29Z ggolden $ ******************************...
package bank.online.security; import java.nio.charset.StandardCharsets; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.AuthenticationManag...
import React, { createContext, useState } from "react"; export const AuthContext = createContext<{ isLoggedIn: boolean; user?: { id: number; username: string; profilePicture?: string; }; setIsLoggedIn: (value: boolean) => void; setUser: ( value: { id: number; username: string; profilePicture?...
# SHCの情報の認証と基準 SHCのフォーマットは発行元が認証可能な[JWS](https://datatracker.ietf.org/doc/html/rfc7515) を実装しています。 使用の方法は、図での説明が[SHC生成過程](https://www.dxhealth.jp/blogs/%E5%AE%9F%E8%A3%85%E4%BE%8B/SHC%E7%94%9F%E6%88%90%E9%81%8E%E7%A8%8B) で表示されていますが、そのうちのデコードの部分を 下記に示していきます。 ## ペイロードとヘッダ QRCodeをデコードすると、中身はshc://のプロトコルの様な記入から始まります。 ...
--- title: "5 Tactics to Spot - and Survive - a Devious Mimic in Phasmophobia!" ShowToc: true date: "2023-04-28" author: "Anne Kidd" --- ***** # 5 Tactics to Spot - and Survive - a Devious Mimic in Phasmophobia! Phasmophobia is a unique and thrilling video game that places players in the shoes of ghost hunters tasked...
package com.lisboaworks.algafood.core.email; import lombok.Builder; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; import org.springframework.validation.annotation.Validated; import javax.validati...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local React = require(ReplicatedStorage.Packages.React) local ReactRoblox = require(ReplicatedStorage.Packages.ReactRoblox) local RoactSpring = require(ReplicatedStorage.Packages.RoactSpring) local e = React.createElement local function createUpdater(ini...
/* eslint-disable no-unused-vars */ /* eslint-disable comma-dangle */ // ** React Imports // ** Third Party Components import { User, X } from 'react-feather' import { useState } from 'react' // ** Reactstrap Imports import { Modal, Input, Label, Button, ModalHeader, ModalBody, InputGroup, InputGroupTex...
#include "binary_trees.h" /** * heap_to_sorted_array - Converts a Binary Max Heap to a sorted array-integer. * * @heap: A pointer to the root node of the heap to convert. * @size: An address to store the size of the array. * * Return: Sorted in descending order */ int *heap_to_sorted_array(heap_t *heap, size_t ...
## Introdução Essa página tem como objetivo verificar os artefatos da Primeira Entrega do [grupo 8](https://requisitos-de-software.github.io/2024.1-Consumidor.gov/). ## Metodologia Nessa página sobre a entrega 2 é possível se observar a verificação de todos os artefatos dessa mesma entrega sendo ele [Rich Picture](...
import { Table, Model, Column, ForeignKey, HasOne, HasMany, Default, BelongsTo, UpdatedAt, CreatedAt, Scopes, DataType } from 'sequelize-typescript' import { Optional } from 'sequelize' import User from './user.model' import GroupRoster from './group-roster.model' import GroupMessage from './gr...
import 'package:flutter/material.dart'; import 'package:metal_collector/bottom-navigation-custom-widget.dart'; import 'package:metal_collector/models/item-collection.dart'; import 'package:metal_collector/services/artist-service.dart'; import 'package:metal_collector/services/firebase-services/artist-firebase-services....
import { Controller, Get, Post, Body, Param, Delete, Inject } from "@nestjs/common"; import { CreateProjectDto } from "./dto/create-project.dto"; import { CreateProjectUseCase } from "./use-cases/create-project.use-case"; import { ListProjectsUseCase } from "./use-cases/list-projects.use-case"; import { GetProjectUseCa...
@*//----------------------------------------------------------------------- // Copyright 2019 Sitecore Corporation A/S // 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 // ...
<div class="register-container"> <form [formGroup]="form" class="register-form" (ngSubmit)="register()"> <div class="mb-3"> <h2 class="mb-2">Sign Up</h2> <p>Already have an account? <a href="/login" class="ml-1">Sing In</a></p> </div> <div class="field mb-1"> ...
fn main() { let mut user1 = User { email: String::from("someone@example.com"), username: String::from("someusername123"), active: true, sign_in_count: 1, }; user1.email = String::from("anotheremail@example.com"); let user2 = User { email: String::from("another@e...
import { useEffect, useState} from 'react'; import { Link } from 'react-router-dom'; export default function Blog() { const [articles, setArticles] = useState([]); const [loading, setLoading] = useState(true); /* Fetch the api */ useEffect(function () { document.title = 'Blog'; async ...
; AutoHotkey script that enables you to use GPT3 in any input field on your computer ; -- Configuration -- #SingleInstance ; Allow only one instance of this script to be running. ; This is the hotkey used to autocomplete prompts HOTKEY_AUTOCOMPLETE = #o ; Win+o ; This is the hotkey used to edit prompts HOTKEY_INST...
class Queues { Queue<Integer> q1 = new LinkedList<Integer>(); Queue<Integer> q2 = new LinkedList<Integer>(); //Function to push an element into stack using two queues. void push(int a) { q2.add(a); while(!q1.isEmpty()){ q2.add(q1.remove()); } while(!q2.isEmpty...
--- title: manifest.json description: Referensi API untuk berkas manifest.json. --- # manifest.json Tambahkan atau hasilkan berkas `manifest.(json|webmanifest)` yang sesuai dengan [Spesifikasi Manifest Web](https://developer.mozilla.org/docs/Web/Manifest) di **root** direktori `app` untuk memberikan informasi tentang...
# 第十二章:Spark SQL 在大规模应用程序架构中的应用 在本书中,我们从 Spark SQL 及其组件的基础知识开始,以及它在 Spark 应用程序中的作用。随后,我们提出了一系列关于其在各种类型应用程序中的使用的章节。作为 Spark SQL 的核心,DataFrame/Dataset API 和 Catalyst 优化器在所有基于 Spark 技术栈的应用程序中发挥关键作用,这并不奇怪。这些应用程序包括大规模机器学习、大规模图形和深度学习应用程序。此外,我们提出了基于 Spark SQL 的结构化流应用程序,这些应用程序作为连续应用程序在复杂环境中运行。在本章中,我们将探讨在现实世界应用程序中利用 Spark 模块和 ...
package datasources_test import ( "fmt" "testing" acc "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance" "github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/acceptance/helpers/random" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-pl...
import React, { memo } from "react"; import { OpaqueColorValue, StyleSheet, TouchableOpacityProps, } from "react-native"; import { appRadius } from "../../utils"; import WrapIcon from "../WrapIcon"; import { AppText } from "../texts"; import ButtonWrapper from "./ButtonWrapper"; interface IIconWithLabelButton { ...
import { useGraphQLHandler } from "~tests/helpers/useGraphQLHandler"; import { createIdentity } from "~tests/helpers/identity"; describe("get locked entry lock record", () => { const { lockEntryMutation, getLockedEntryLockRecordQuery: creatorGetLockedEntryLockRecordQuery } = useGraphQLHandler()...
<template> <label v-if="label" class="mb-2 block">{{ label }}</label> <select v-model="proxySelected" :disabled="disabled" class="h-9 w-full rounded bg-gray-150 border border-gray-300 py-1.5 px-3 text-sm focus:ring focus:ring-blue-200 outline-0 focus:bg-white focus:border-blue-300"> ...
import { useSelector } from "react-redux"; import avatar from "../../images/avatarold.jpg"; import insta from "../../images/insta.png"; import face from "../../images/face.png"; import github from "../../images/github.png"; import In from "../../images/in.png"; import CV from "../../Files/CV-Aren-Qochinyan.pdf"; imp...
import React from 'react'; import { Formik, Form, Field, ErrorMessage } from 'formik'; import * as Yup from 'yup'; import Swal from 'sweetalert2'; import'./App.css' const AddUserForm = ({ addUser }) => { const validationSchema = Yup.object().shape({ name: Yup.string().required('Name is required').min(6, 'Name mus...
/** * @fileoverview Prevents jsx context provider values from taking values that * will cause needless rerenders. * @author Dylan Oshima */ 'use strict'; const docsUrl = require('../util/docsUrl'); // ------------------------------------------------------------------------------ // Helpers // -----...
@extends('layouts.app') @section('content')<div class="content-header mt-5"> <div class="container-fluid text-center lead"><svg class="bi bi-person-circle" width="3em" height="3em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M13.468 12.37C12.758 11.226 11.195 10 8 10s-4.75...
<section class="container mt-2"> <div class="row d-flex align-items-center flex-wrap"> <!-- Inicio placeholder titulo--> <p *ngIf="placeholder" class="fs-1 col-md-auto pe-0 me-3 text-center"> Loading... </p> <!-- Fim placeholder titulo--> <!-- Inicio placeholder card--> <div *ngIf="pl...
import pytest from tests._internal.mocks import DashCallbacksUtilMock from pluto._internal.domain.model.expense import Expense class TestDashCallbacksUtil: def test_can_generate_last_twelve_months_list(self): month_year_fmt = DashCallbacksUtilMock.month_year_fmt expected_list = ['5/2023', '4/2023...
<template> <div class="holder" id="app"> <div class="field __big"> <div class="table __long"> <div class="round"> <p class="title">Rounds:</p> <p class="values">{{ round }}</p> </div> <div class="victories"> <p class="title">Victories:</p> <p ...
<!DOCTYPE html> <html lang=""> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <title>Starter Template for Bootstrap 3.3.7</title> <link rel="shortcut icon" href=""> <li...
import { Backdrop, Badge, BottomNavigation, BottomNavigationAction, CircularProgress, Paper } from '@mui/material' import React from 'react' import { useSelector } from 'react-redux'; import { useRouter } from '@happysanta/router' import { PAGE_MAIN, PAGE_PROPERTY, PAGE_BANK, PAGE_PROFILE } from '../routers'; import ax...
import { Link } from "react-router-dom"; import { FaBars, FaCartPlus } from "react-icons/fa"; import { useEffect, useState } from "react"; import Cookies from "js-cookie"; import { doc, collection, getDocs, getDoc } from "firebase/firestore"; import fireDB from "../fireConfig"; function Header() { const token = Cook...
import pandas as pd import re import nltk import sklearn from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords from sklearn.pipeline import Pipeline from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer from sklearn.linear_m...
import React, {Component} from 'react' import { Text, View,Dimensions,StyleSheet } from 'react-native' import {Constants,MapView,Location,Permissions} from "expo"; const window = Dimensions.get('window'); const {width,height}=window; export default class MapScreen extends React.Component { constructor(props) { ...
# Functions to output and edit C values for age-structured groups # 1) get_param_C_age() # 2) edit_param_C_age() # 1) get_param_C_age ------------------------------------------------------- get_param_C_age = function(bio.prm, write.output = F, output.dir, out.name ){ bio.lines = readLines(bio.prm) bio.lines....
<!DOCTYPE html> <html lang="en"> <head> <base href="/static-site-file-based-routing/"> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <style> body { margin: 0; ...
import { useEffect, useState } from "react"; const Category = () => { const [categories, setCategories] = useState([]); useEffect(() => { fetch("category.json") .then((res) => res.json()) .then((data) => setCategories(data)); }, []); return ( <> <div className="flex flex-col items-cen...
package jeecg.kxcomm.controller.contactm; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import jeecg.kxcomm.entity.contactm.TbContractEntity; import jeecg.kxcomm.entity.contactm.TbInventoryEntity; import jeecg.kxcomm.entity.contactm.TbOrderEntity; ...
import { useEffect, useState } from 'react' import { HashRouter, Route, Routes } from 'react-router-dom' import './App.css' import PokemonDetail from './components/PokemonDetail' import Pokemons from './components/Pokemons' import ProtectedRoutes from './components/ProtectedRoutes' import UserInput from './components/U...
// Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd. // SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later #ifndef PLUGINSITEM_H #define PLUGINSITEM_H #include "dockitem.h" #include "pluginsiteminterface.h" class QGSettings; class Plugins...
'use client'; import { Image } from '$components/image'; import { useHeaderFilled } from '$hooks/use-header-filled'; import { Box, Flex, Heading, Icon, SimpleGrid, Text } from '@chakra-ui/react'; import { useCallback, useState } from 'react'; import { PiCalendarBlank, PiMagnifyingGlassPlusFill } from 'react-icons/pi';...
/* * SonarQube * Copyright (C) 2009-2021 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 Software Foundation; either * version 3 of the License, o...
import SwiftUI struct PopupNoticeWindowView: View { var title: String var message: String var buttonText: String @Binding var show: Bool var body: some View { GeometryReader { geo in ZStack { if show { // PopUp background color ...
import React, { useEffect, useState } from "react"; import { useTheme } from "../../Context/ThemeContext"; import styles from "./Content.module.css"; function Content() { const { theme } = useTheme(); const [photos, setPhotos] = useState([]); useEffect(() => { fetch("https://jsonplaceholder.typicode.com/pho...
# frozen_string_literal: true module Gitlab module ErrorTracking module Processor class GrpcErrorProcessor < ::Raven::Processor DEBUG_ERROR_STRING_REGEX = RE2('(.*) debug_error_string:(.*)') def process(payload) return payload if ::Feature.enabled?(:sentry_processors_before_send,...