text
stringlengths
184
4.48M
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using Microsoft.Extensions.Logging; [RankColumn] [MemoryDiagnoser] [GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)] public partial class ExecutionTimeBenchmark { private ILogger _logger = null!; private ConfigurationExample _configuratio...
from flask import Flask, render_template, redirect, request, url_for from flask import session, make_response, g import json # Create an instance of the Flask class app = Flask(__name__, template_folder='templates/main') # Associate the config with the app app.config.from_object('config.DevelopmentConfig') # Please ...
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; import { fetchUsers } from "../talk/talkAPI"; import { fetchAddNewUser, NewUserParams } from "./usersAPI"; export interface User { id: number; username: string; } export interface UserState { status: "idle" | "loading" | "failed"; list: User[];...
import unittest def suma(a, b): return a + b class TestSuma(unittest.TestCase): # Heredamos de unittest.TestCase para poder hacer las pruebas def test_suma(self): # Creamos un método que empiece por test para que sea detectado self.assertEqual(suma(5, 7), 12) # Comprobamos que 5 + 7 = 12 self.assertEqual...
package org.usfirst.frc.team449.robot.subsystem.interfaces.flywheel.commands; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import edu.wpi.f...
import { useState } from "react"; import { Link, NavLink } from "react-router-dom"; import { IoMenu } from "react-icons/io5"; const Header = () => { const [menuOpen, setMenuOpen] = useState(false); const toggleMenu = () => { setMenuOpen(!menuOpen); }; return ( <header> <na...
// ChatComponent.js import React, { useState } from 'react'; import axios from 'axios'; const ChatComponent = () => { const [input, setInput] = useState(''); const [messages, setMessages] = useState([]); const handleInputChange = (e) => { setInput(e.target.value); }; const handleSendMessage = async () => { // Make a...
#ifndef SENIOR_H #define SENIOR_H #include "Leitor.h" /** * @brief Classe que representa um leitor senior na biblioteca * * Esta classe herda de Leitor e adiciona funcionalidades específicas para leitores senior, * incluindo o limite de empréstimos e o desconto na multa */ class Senior : public Leitor { public:...
import 'package:bloc_test/bloc_test.dart'; import 'package:collection_repository/collection_repository.dart'; import 'package:ez_badminton_admin_app/player_management/player_filter/player_filter.dart'; import 'package:ez_badminton_admin_app/predicate_filter/common_predicate_producers/agegroup_predicate_producer.dart'; ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Student Registration Form</title> <style> body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; b...
import React, { useState } from 'react'; import { Drawer, DrawerBody, DrawerHeader, DrawerOverlay, DrawerContent, DrawerCloseButton, Checkbox } from '@chakra-ui/react'; import { useProducts } from '@contexts/products-provider'; import { FilterButton } from './styles'; import { CategoriesList } from '../...
import uuid from django.test import TestCase, Client from django.urls import reverse from app.models import User, Recipe, Favorite, ShopList class TestAuthorizedUsers(TestCase): fixtures = ['db_test.json', ] def setUp(self): """создание тестового клиента""" self.client = Client() se...
import { ComponentPropsWithoutRef } from "react"; import { classNames } from "utils/helpers"; import { ButtonSpinner } from "./Loaders/ButtonSpinner"; export interface SubmitButtonProps extends Omit<ComponentPropsWithoutRef<"button">, "type" | "disabled"> { // formState: FormState<T>; text: string; submittingT...
package com.gomo.app.quest.unit.usecase; import static org.mockito.Mockito.*; import java.util.List; import java.util.UUID; import org.jetbrains.annotations.NotNull; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Inje...
import { useState } from "react" import Popup from "reactjs-popup" import { useAppDispatch, useAppSelector } from "../../../hooks" import { addUser, changeTitle, removeGroup, removeUser, } from "../../../redux/slices/groups" import { IGroup, IUser } from "../../../types" import styles from "../Group.module.css"...
<div class="modal fade" id="tambah-produk" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> @if ($errors->any()) <div class="container alert alert-danger"> <ul class="list-unstyled"> @foreach ($errors->...
Dictionaries And Identity Operators Dictionaries A dictionary is a mutable data type that stores mappings of unique keys to values. Here's a dictionary that stores elements and their atomic numbers. elements = {"hydrogen": 1, "helium": 2, "carbon": 6} In general, dictionaries look like key-value pairs, separated by co...
import { useState } from 'react'; import { X } from 'lucide-react'; interface Props { isOpen: boolean; onClose: () => void; onSubmit: (data: { name: string; type: 'text' | 'voice' }) => void; } export default function CreateChannelModal({ isOpen, onClose, onSubmit }: Props) { const [name, setName] = useState(...
import { BrowserRouter as Router, Routes, Route, Link} from 'react-router-dom' import Home from './pages/Home'; import CreatePost from './pages/CreatePost'; import Login from './pages/Login'; import { useState } from 'react'; import { signOut } from 'firebase/auth' import { auth } from './config/firebase'; import PostP...
package com.example.taxiToolBackend; import com.example.taxiToolBackend.data.AdminSettings; import com.example.taxiToolBackend.repository.AdminSettings_Repository; import com.example.taxiToolBackend.tripServices.GraphHopperService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org...
const MissingParameterError = require('../../../src/error/missingParameterError') const { nockMock, CMFuturesClient } = require('../../testUtils/testSetup') const { mockResponse } = require('../../testUtils/mockData') describe('#getPremiumIndexKlines', () => { describe('throw MissingParameterError', () => { it('...
import heapq import sys input = lambda :sys.stdin.readline().rstrip() N = int(input()) # 도시의 개수 1<= N <= 1,000 M = int(input()) # 버스의 개수 1 <= M <= 100,000 graph = [[] for _ in range(N + 1)] for _ in range(M): a, b, c = map(int, input().split()) graph[a].append((b, c)) start, end = map(int, input().spli...
// ignore_for_file: public_member_api_docs, sort_constructors_first import 'dart:convert'; class VideoModel { final String? uid; final String? videoUrl; final String? videoThumbnailUrl; final String? title; final String? description; final String? category; final String? remainderDate; final String? re...
import { __decorate } from "tslib"; import { Enumerable } from '@d-fischer/shared-utils'; import { DataObject, rawDataSymbol, rtfm } from '@twurple/common'; /** * An EventSub event representing a creator goal starting in a channel. */ let EventSubChannelGoalProgressEvent = class EventSubChannelGoalProgressEvent exten...
// Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. // In one shift operation: // Element at grid[i][j] moves to grid[i][j + 1]. // Element at grid[i][n - 1] moves to grid[i + 1][0]. // Element at grid[m - 1][n - 1] moves to grid[0][0]. // Return the 2D grid after applying shift ope...
// This file is part of msgpu project. // Copyright (C) 2021 Mateusz Stadnik // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
# Load necessary libraries again after reinstallation library(readxl) library(dplyr) library(ggplot2) library(sf) library(ggmap) # Read the data from the Excel file ant_data <- ant_univariate_data # Calculate the mean longitude and latitude for each site site_means <- ant_data %>% group_by(Sites) %>% summarise(mea...
import {create} from "zustand"; import type {provider as Provider} from "web3-core"; import {Web3Connection} from "@taikai/dappkit"; type UseDappkit = { setProvider(p: Provider): Promise<void>, disconnect(): void, provider: Provider|null, connection: Web3Connection|null, chainId?: number, address?: string ...
import { Component } from './component.ts'; import { Route } from './route.ts'; export class Router { private _currentRoute: Route | null | undefined = null; private _rootQuery: string | null = null; static __instance: Router; public routes: Route[] = []; public history: History | null = null; public ...
import 'reflect-metadata'; import 'dotenv/config'; import { createConnection } from 'typeorm'; import express from 'express'; import { ApolloServer } from 'apollo-server-express'; import { buildSchema } from 'type-graphql'; import TransactionResolver from './resolvers/Transaction'; import UserResolver from './resolvers...
package it.pagopa.swclient.mil.paymentnotice; import static io.restassured.RestAssured.given; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; ...
directive @isLogged on QUERY | FIELD_DEFINITION | MUTATION type User { id: Int! firstName: String! lastName: String! email: String! roleIds: [Role] actionIds: [Action] } type Role { id: Int! name: String! } type Action { id: String! desc: String! } type AuthUser { token: ...
import { DoubleLinkedList } from "./doubleLinkedList"; describe("testing linked list implementation", () => { let doubleLinkedList: DoubleLinkedList; beforeEach(() => { doubleLinkedList = new DoubleLinkedList(); }); test("pushing front double linked list", () => { doubleLinkedList.pushFront(2); d...
package com.likebookapp.service; import com.likebookapp.model.entity.Mood; import com.likebookapp.model.entity.MoodEnum; import com.likebookapp.repository.MoodRepository; import org.modelmapper.ModelMapper; import org.springframework.stereotype.Service; import java.util.Arrays; import java.util.Optional; @Service p...
import React from "react"; import Modal from "react-bootstrap/Modal"; import Form from "react-bootstrap/Form"; import PlayButton from "./PlayButtom"; import { useState } from "react"; import { useNavigate } from "react-router-dom"; export function ModalLoguin({ showLoguin, handleCloseLoguin }) { const loguin = useNa...
//SingleArrowHeadTool import { fabric } from "fabric" import FabricTool, { ConfigureCanvasProps } from "./fabrictool" class DoubleArrowHeadTool extends FabricTool { isMouseDown: boolean = false strokeWidth: number = 10 // yy2: number = 0 // yy1: number = 0 // xx2: number = 0 // xx1: number = 0 strokeColo...
<ol class="flex items-center whitespace-nowrap" aria-label="Breadcrumb"> <li class="inline-flex items-center"> <a class=" flex items-center text-sm text-gray-500 hover:text-blue-600 focus:outline-none focus:text-blue-600 dark:focus:text-blue-500 " href="/" > Home </...
import { Component, OnInit } from '@angular/core'; import { Store } from '@ngrx/store'; import { AppState } from 'src/app/store/app.reducer'; import { SelectDate, SelectGroupId, FetchSchedule, } from 'src/app/store/lessons/lessons.actions'; import { Group } from 'src/app/types/group.model'; @Component({ select...
--Lab 3-1 SELECT c.CustomerID, c.TerritoryID, FirstName, LastName, COUNT(o.SalesOrderid) [Total Orders], CASE WHEN COUNT(o.SalesOrderID) = 0 THEN 'No Order' WHEN COUNT(o.SalesOrderID) = 1 THEN 'One Time' WHEN COUNT(o.SalesOrderID) BETWEEN 2 AND 5 THEN 'Regular' WHEN COUNT(o.SalesOrderID...
from rest_framework.permissions import AllowAny from rest_framework import viewsets from .serializers import UserSerializer from .models import User from core.abstract.viewsets import AbstractViewSet class UserViewset(AbstractViewSet): http_method_names= ('get', 'patch') permission_classes= (AllowAny,) ...
import java.util.ArrayList; import java.util.List; interface Command{ void execute(); } class Light{ private boolean isOn = false; public void turnOn(){ this.isOn = true; System.out.println("Light truned ON"); } public void turnOff(){ this.isOn = false; System.o...
--- title: MacBook Video Editing Download and Set Up Videoleap in Minutes for 2024 date: 2024-05-19T10:32:25.682Z updated: 2024-05-20T10:32:25.682Z tags: - video editing software - video editing categories: - ai - video description: This Article Describes MacBook Video Editing Download and Set Up Videoleap in...
package com.harian.closer.share.location.presentation.message import androidx.core.view.WindowCompat import androidx.fragment.app.viewModels import androidx.navigation.fragment.navArgs import com.harian.closer.share.location.platform.BaseFragment import com.harian.closer.share.location.platform.SharedPrefs import com....
import React from 'react' import logo from '@/assets/react.svg' import { useForm } from "react-hook-form" import { registerUserService } from '@/services/userServices' import { useNavigate } from 'react-router-dom' import '@/styles/form.css' const SignUp = () => { //se usa usenavigate para redireccionar a alguna rut...
import React, { useState } from "react"; import { createSearchParams, useNavigate } from "react-router-dom"; import CheckoutLocation from "./CheckoutLocation"; import { toast } from "react-toastify"; const CheckoutDetails = ({ id, provider, totalSize }) => { let searchParam = { id: id }; console.log(provider); ...
from abc import ABC, abstractmethod from typing import List, OrderedDict, Tuple class StrategyServer(ABC): def __init__(self, name: str, initial_impute: str): self.name = name self.initial_impute = initial_impute @abstractmethod def aggregate_parameters( self, local_model_par...
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router' import Home from '@/views/home.vue' const routes: Array<RouteRecordRaw> = [ { path: '/', redirect: '/home' }, { path: '/home', name: 'Home', component: Home }, { path: '/element', name: 'ElementPlus', ...
package com.malek.review.controllers; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.DeleteM...
import { Component, forwardRef, Input, OnInit } from '@angular/core'; import { ContainerElement, ImageElement, LinkElement, ListElement, ListUnitElement, PageElement, SectionElement, SelectElement, CheckboxElement, TextElement, MultiListElement } from '../page.model'; import { ControlValueAccessor...
import {BaseEntity, Column, Entity, OneToMany, PrimaryGeneratedColumn, Unique} from "typeorm"; import * as bcrypt from 'bcrypt'; import {Logger} from "@nestjs/common"; import {Folder} from "../folders/folder.entity"; @Entity() @Unique(['email']) export class User extends BaseEntity { private readonly logger = new ...
import React, { useState, useEffect } from 'react'; import axios from 'axios'; import { useParams } from 'react-router-dom'; const JsonRenderer = ({ tenderID }) => { const [data, setData] = useState({}); const [openBlocks, setOpenBlocks] = useState({}); const [id, setId] = useState(tenderID); useEffec...
package frc.robot.classes; import java.util.function.Consumer; import java.util.function.Supplier; import com.pathplanner.lib.PathPlanner; import com.pathplanner.lib.PathPlannerTrajectory; import com.pathplanner.lib.commands.PPSwerveControllerCommand; import edu.wpi.first.math.controller.PIDController; import edu.wp...
import { useState } from "react"; const HookOne = () =>{ let city = ['Banglore', 'Mumbai']; const[a, b] = city; // array de-structure console.log(useState()); // [ undefined, f()] let [x, y]= useState(1000); // [ 1000, f()] let [message, updateMessage] = useState(""); const one = ()=>{ ...
import torch import torch.nn as nn from base import BaseModel class Genomic_Feature_Extractor(BaseModel): def __init__(self, genomic_dim=20, genomic_embedding_dim=8): super().__init__() self.genomic_dim = genomic_dim self.genomic_embedding_dim = genomic_embedding_dim self.genomic_...
/** * Modules, services, and components used by all apps. */ import {CommonModule} from '@angular/common'; import {NgModule, ModuleWithProviders} from '@angular/core'; import {RouterModule} from '@angular/router'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {NgbModule} from '@ng-bootstrap/...
/* * Copyright 2013 Jonatan Jönsson * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writin...
/* * * Copyright (C) 2010 Colibria AS * * 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 License, or (at your option) any later version. * * This program is dis...
<ion-header> <ion-toolbar mode="ios"> <ion-buttons slot="start"> <ion-back-button text="Atras" defaultHref="/" ></ion-back-button> </ion-buttons> <ion-title> Checkout </ion-title> </ion-toolbar> </ion-header> <ion-content [fullscreen]="true"> <ion-grid class="io...
<!-- 搜索表单 --> <template> <a-form :label-col=" styleResponsive ? { xl: 7, lg: 5, md: 7, sm: 4 } : { flex: '90px' } " :wrapper-col=" styleResponsive ? { xl: 17, lg: 19, md: 17, sm: 20 } : { flex: '1' } " > <a-row :gutter="8"> <a-col v-bind=" styleResponsive ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; // You are given 20 tokens to start with and you will beat the level if you somehow manage to get your hands on any additional tokens. Preferably a very large amount of tokens. contract Token { mapping(address => uint) balances; uint public totalSupply; ...
import BankAccount from "./account/bankAccountInteface"; import Actions from "./actions"; class BankAccountCommand { private account: BankAccount; private action: Actions; private amount: number; private succeeded: boolean; constructor(account: BankAccount, action: Actions, amount: number) { this.accoun...
{ "cells": [ { "cell_type": "markdown", "id": "starting-eugene", "metadata": {}, "source": [ "Before you turn this problem in, make sure everything runs as expected. First, **restart the kernel** (in the menubar, select Kernel$\\rightarrow$Restart) and then **run all cells** (in the menubar, select Ce...
import { FormControl, InputAdornment, InputLabel, Input, Box, Stack, Checkbox, FormControlLabel, Typography, } from '@mui/material'; import { MailOutline as MailOutlineIcon } from '@mui/icons-material'; import { useForm, SubmitHandler } from 'react-hook-form'; import { useCallback } from 'react'; im...
import axios from "axios"; import { useRef, useState } from "react"; import { BsFillCheckCircleFill } from "react-icons/bs"; import { Link, useNavigate, useParams } from "react-router-dom"; import toast, { Toaster } from "react-hot-toast" const VerificationCodePage = () => { const [verified, setVerified] = useStat...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; interface IERC20 { function decimals() external view returns (uint8); function symbol() external view returns (string memory); function name() external view returns (string memory); function totalSupply() external view returns (uint256); ...
import React, { ReactNode, ReactElement } from "react"; export const WideButtonImage: React.FC<{ src: string, alt?: string, className?: string }> = ({ src, alt, className }) => { return ( <div className="w-16 aspect-square flex items-center justify-center rounded-md"> <img src={src} alt={alt} className={`...
import torch import random # other ref.: https://github.com/hitcszx/ALFs/blob/master/dataset.py def sym_label_nosie(noise_rate, labels, num_classes): """ https://github.com/filipe-research/tutorial_noisylabels/blob/main/codes/tutorial_sibgrapi20.ipynb """ noise_label = [] idx = list(range(len(labe...
import { MaterialCommunityIcons } from '@expo/vector-icons'; import React, { useState } from 'react' import { Image, Linking } from 'react-native'; import { TouchableOpacity } from 'react-native'; import { Modal, StyleSheet, View as DefaultView } from 'react-native' import { useDispatch, useSelector } from 'react-redux...
import express from 'express' import mongoose from 'mongoose' import supertest from 'supertest' import { Profile } from '../../src/db/models/profiles' import createServer from '../../src/__tests__/create-server' import getToken from '../../src/__tests__/get-oauth-token' import { adminOauth, userOauth } from './seed/see...
from django.db import models # Create your models here. class User(models.Model): user_no = models.IntegerField(default=0) # Field to store the user number image_encoding = models.BinaryField(null=True,blank=True) image = models.ImageField(upload_to='user_images/',null=True,blank=True) def save(self,...
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:url_launcher/url_launcher.dart'; import 'models/location_model.dart'; import 'package:flutter/material.dart'; import 'dart:convert'; import 'package:http/http.dart' as http; class FindSupportPage extends StatefulWidget { @override FindSupportPa...
/* eslint @typescript-eslint/ban-ts-comment: "off", no-global-assign: "off" */ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import returnFetchJson from "../src"; describe("returnFetch", () => { const globalFetch = fetch; let fetchMocked: ReturnType<typeof vi.fn>; beforeEach(() => { ...
package types import ( "database/sql/driver" "github.com/google/uuid" ) // SqlUuid -> type to use as binary uuid in BBDD type SqlUuid uuid.UUID // StringToSqlUuid -> parse string to MYTYPE func StringToSqlUuid(s string) (SqlUuid, error) { id, err := uuid.Parse(s) return SqlUuid(id), err } // New -> Creates a n...
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information regarding copyright ownership. * The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not * ...
const axios = require('axios'); module.exports = { config: { name: "google", aliases: ["gsearch", "g"], version: "2.0", author: "XyryllPanget", role: 0, shortDescription: { en: "Searches Google for a given query." }, longDescription: { en: "This command searches Google for a given query and returns the top ...
import 'package:auto_size_text/auto_size_text.dart'; import 'package:email_validator/email_validator.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; import 'package:get/get.dart'; import 'package:google_fonts/google_fonts.dart'; import '../../../components/customButton.dart'; imp...
import express, { Request, Response } from 'express' import connectDatabase from './utils/connectDatabase' import cors from 'cors' import morgan from 'morgan' import path from 'path' import { AuthRouter, UserRouter } from './routes' const bodyParser = require('body-parser') require('dotenv').config() const app = exp...
import 'package:ioasys_app/constants/constants_url_api.dart'; import 'package:ioasys_app/domain/model/enterprise/enterprise_model.dart'; import 'package:ioasys_app/domain/model/enterprise/enterprise_type_model.dart'; import 'package:ioasys_app/domain/use_case/get_enterprise_use_case.dart'; import 'package:ioasys_app/pr...
<!DOCTYPE html> <html lang="en"> <head><!-- pop up box using :target - MDN --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="zIK-TEMP/2-css-temp/normalize.css" rel="stylesheet" type="text/css"> <link href="zIK-TEMP/2-css-temp/pik-css-temp.css"...
import Foundation public class WebhookRequest { /// Creates a new webhook or updates an existing webhook /// /// BEHAVIOR: CREATE OR UPDATE /// If the label is already in use by a webhook in the system, this will re-create the webhook, replacing what is in the database with the new settings you pa...
// Copyright 2017 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package azurecli_test import ( "os/exec" "strings" "github.com/juju/errors" jc "github.com/juju/testing/checkers" gc "gopkg.in/check.v1" "github.com/juju/juju/provider/azure/internal/azurecli" ) type azSuite struct{}...
import React, {useEffect, useState} from "react"; import {ethers} from 'ethers'; import { contractABI,contractAddress } from "../utils/constants"; export const TransactionContext = React.createContext(); const { ethereum } = window; const getEthereumContract = () => { const provider = new ethers.providers.Web3Pro...
from torch.utils.data import DataLoader from gyraudio.audio_separation.data.mixed import MixedAudioDataset from typing import Optional, List from gyraudio.audio_separation.properties import ( DATA_PATH, AUGMENTATION, SNR_FILTER, SHUFFLE, BATCH_SIZE, TRAIN, VALID, TEST, AUG_TRIM ) from gyraudio import root_dir RAW_A...
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core'; import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog'; import { ChooseServiceDialogData } from 'src/app/core/_dialog-data/choose-service-dialog-data'; import { ICashier } from 'src/app...
// id:311325355 // runtime:4 ms // memory:6.6 MB // title:Add Strings // translatedTitle:字符串相加 // questionId:415 // time:2022-05-09 19:32:38 /// 9646516 #include <bits/stdc++.h> using namespace std; using ll = long long; const int INF = 0x3F3F3F3F; const int maxn = 2e5 + 555; const int MOD = 1e9 + 7; template <typena...
// Programmer: <Lincoln Steber> // Student ID: <LGS6BV> // Section: <303> // Date: <9/8/2021> // File: hw1.cpp // Purpose: Calculate the cost to heal the Codemon. #include <iostream> using namespace std; int main(){ int region = 9; //Declaration of every variable that is used in the code char insurance; floa...
import { Component, Inject, OnInit } from '@angular/core'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { MatSelectChange } from '@angular/material/select'; import { Driver } from 'src/app/pages/drivers/m...
<form action="<?php $_SERVER['PHP_SELF'];?>" method="post"> <p>INPUT TEXT1 : <input type="text" required name="text1" id="text1" /></p> <p>INPUT TEXT1 : <input type="text" required name="text2" id="text2" /></p> <p><input type="submit" id="sumbit" name="submit" value="COMPARE"/></p> </form> <?php /* * To change this ...
# Discord API - The base URL for Discord's API is `https://discord.com/api`. - It has multiple versions ranging from `v3` to `v10`. The version number is added as `/v{version_number}` after the base URL. - It has a consistent error message format for API error responses. ```json { "code": 50035, "errors"...
#!/usr/bin/python3 """ Defines Rectangle class """ class Rectangle: """A class that defines a rectangle.""" def __init__(self, width=0, height=0): """Initialize a rectangle. Args: width (int): The width of the rectangle. height (int): The height of the rectangle. ...
import { getAyoba } from './init'; const androidInstance = { startPayment: () => {} }; function setNavigatorUserAgent(ua: string) { Object.defineProperty(navigator, 'userAgent', { value: ua, writable: true }); } function setWindowAyobaAndroid() { Object.defineProperty(window, 'Android', { value: androidInstance }...
#%% ## This script trains an LSTM according ## to the method described in ## A. Wright, E.-P. Damskägg, and V. Välimäki, ‘Real-time black-box modelling with recurrent neural networks’, in 22nd international conference on digital audio effects (DAFx-19), 2019, pp. 1–8. import data import models import loss import util...
<template> <DataFeedDetails @feed-name="setFeedName" @network="setNetwork" @feed-value="setFeedValue" @feed-date="setFeedDate" /> </template> <script> export default { data() { return { currentFeedName: '', lastResultValue: '', lastResultDate: '', selectedNetwork: '', ...
Tema: Algoritmos, o que é? Onde praticar? Imagem: Se você quer ser um desenvolvedor de sucesso, então desenvolver sua lógica de programação é certamente o primeiro passo que você deve dar. E para desenvolver a lógica de programação é importantíssimo o uso de algoritmos. Algoritmos Independente se você entrou r...
// Copyright CERN and copyright holders of ALICE O2. This software is // distributed under the terms of the GNU General Public License v3 (GPL // Version 3), copied verbatim in the file "COPYING". // // See http://alice-o2.web.cern.ch/license for full licensing information. // // In applying this license CERN does not ...
// // Views.h // altaVisualizer // // Created by Jakob Bak on 19/03/16. // // #ifndef Views_h #define Views_h #include <stdio.h> #include "ofUtils.h" #include "ofTrueTypeFont.h" #include "ofGraphics.h" enum plot2D_type { PLOT2D_SCATTER = 0, PLOT2D_LINE = 1 }; enum plot3D_type { PLOT3D_SCATTER = 0,...
<?php namespace App\Http\Livewire; use Livewire\Component; use App\Models\Visita; use App\Models\Visitante; use App\Models\Periodo; class ListaVisitasJuridica extends Component { //definimos unas variables frontend public $id_visita, $id_visitante, $id_periodo, $nombre, $a_paterno, $a_materno, $dni, ...
import os import time import numpy as np import torch from datasets import load_dataset, load_from_disk from transformers import AutoModelForCausalLM, AutoTokenizer from torch.nn.functional import pad from torch.utils.data import DataLoader from typing import Optional, Dict, Sequence import io #import utils import copy...
import { CommonModule } from '@angular/common'; import { AccountSummaryDto } from './../../core/api-client/generated/varico-api-client/models/index'; import { Component, Inject, OnInit, signal } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { MAT_DIALOG_DATA, MatDialogModule, ...
package io.github.yanggx98.immersive.tooltip; import io.github.yanggx98.immersive.tooltip.api.ItemBorderColorProvider; import io.github.yanggx98.immersive.tooltip.api.ItemDisplayNameProvider; import io.github.yanggx98.immersive.tooltip.api.ItemRarityNameProvider; import net.minecraft.item.ItemStack; import net.minecra...