text
stringlengths
184
4.48M
package id.hangga import Const import kotlinx.coroutines.* import java.net.URI import java.net.http.HttpClient import java.net.http.HttpRequest import java.net.http.HttpResponse import java.nio.file.Files import java.nio.file.Path import java.nio.file.StandardOpenOption import java.util.* import kotlin.system.measureT...
import * as React from 'react'; import Popover from '@mui/material/Popover'; import Typography from '@mui/material/Typography'; import Button from '@mui/material/Button'; import {HitContext} from './context/hitState' import {useContext} from 'react'; export default function HitPopover({hit, setHit}){ const ha...
from decimal import Decimal from typing import List from spotipy import Spotify from wombeats.api_models import SpotipyTrackItem, SpotipyPlaylist from wombeats.models import SearchQuery, SearchResult import logging logger = logging.getLogger(__name__) class SpotifyAPIAccess: @classmethod def build(cls, clie...
import React from "react"; import ReactDOM from "react-dom/client"; import { extendTheme, ChakraProvider, ColorModeScript } from "@chakra-ui/react"; import { mode } from "@chakra-ui/theme-tools"; // Import mode function from Chakra UI import App from "./App.jsx"; import "./index.css"; import { BrowserRouter } from "rea...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" x...
import { BadRequestException, Injectable } from '@nestjs/common'; import { BasePaginationDto } from './dto/base-pagination.dto'; import { FindManyOptions, FindOptionsOrder, FindOptionsWhere, Repository, } from 'typeorm'; import { BaseModel } from './entity/base.entity'; import { FILTER_MAPPER } from './const/fi...
/******************************************************************************* * McXtrace instrument definition URL=http://www.mcxtrace.org * * Instrument: Simple_1shell * * %Identification * Written by: Erik B Knudsen <erkn@fysik.dtu.dk> & Desiree D. M. Ferreira <desiree@space.dtu.dk> (email) * Date: 12/12/2...
<?php namespace App\Domain\Payments\PlaceToPay; use App\Domain\Orders\Actions\UpdateOrderAction; use App\Domain\Orders\Enums\OrderStatus; use App\Domain\Orders\Models\Order; use App\Domain\Payments\Contracts\Payments; use App\Domain\Payments\Exceptions\PaymentException; use App\Domain\Users\Models\User; use App\Suppo...
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from rasa_sdk import Action from rasa_sdk.events import SlotSet import zomatopy from emailpy import send_email import json import pandas as pd from rasa_core_sdk.events import AllSlotsReset from rasa_core_sd...
import express from "express"; import expressWs from "express-ws"; import cors from "cors"; import * as uuid from "uuid"; const PORT = process.env.PORT || 3000; const channelmetrics = {}; const app = express(); const appWithWS = expressWs(app); app.use(cors()); app.use(express.static("static")); var wss = appWithWS....
import React, {useEffect, useState} from 'react'; import {View,Image, Text, ImageBackground, StyleSheet, Platform,ActivityIndicator} from 'react-native'; import { widthPercentageToDP as wp, heightPercentageToDP as hp, } from 'react-native-responsive-screen'; import Colors from '../CommonUtils/Colors'; import Images...
import React, {useEffect, useState} from "react"; import "./home.css"; import axios from "axios"; import CustomerRow from "../row/CustumerRow"; function Home() { const [users, setUsers] = useState([]); const [user, setUser] = useState([]); useEffect(() => { getUsers(); }, []); const...
// // RollView.swift // DiceRollr // // Created by Anthony Bath on 7/3/23. // import CoreHaptics import SwiftUI struct RollView: View { let DiceValues = [4, 6, 10, 12, 20, 100] @State private var die = [Dice]() @State private var isEditing = false @State private var engine: CHHapticEngine? ...
<!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>Modern Landing Page</title> <link rel="stylesheet" href="style.css"> </head> <body> <!-- navbar --> ...
package main import ( "context" "fmt" "net" _ "github.com/go-microservice-boilerplate/app/proxy/docs" "github.com/go-microservice-boilerplate/pkg/config" "github.com/go-microservice-boilerplate/pkg/helper" "github.com/go-microservice-boilerplate/pkg/log" "github.com/go-microservice-boilerplate/pkg/utils" "gi...
#ifndef SMARTCARD_CARD_H #define SMARTCARD_CARD_H /* smartcard/card.h This file is part of Kleopatra, the KDE keymanager Copyright (c) 2017 by Bundesamt für Sicherheit in der Informationstechnik Software engineering by Intevation GmbH Kleopatra is free software; you can redistribute it and/or modify ...
import Head from "next/head" import Image from "next/image" import { useState } from "react" import { SubmitHandler, useForm } from "react-hook-form"; import useAuth from "../hooks/useAuth"; import ExceptionHandler from "../utils/ExceptionHandler"; interface Inputs { email: string; password: string; } function Lo...
.\" 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; version 2. .\" .\" This program is distributed in the hope that it will be useful, but .\" WITHOUT ANY WARRANTY; without even the implied w...
"use client"; import { ShowsidebarProvider } from "@/lib/context/show-sidebar-context"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; import { ThemeProvider } from "next-themes"; import { useState } from "react"; const Pr...
package com.example.ejemplo.model; import java.time.LocalDateTime; import java.util.Objects; /** * Clase que representa una publicación en un foro. */ public class Post { private Long postId; // Clave Primaria private Forum forum; // Foro al que pertenece la publicación private User author; // Autor de ...
const mockedUsedNavigate = jest.fn(); jest.mock('react-router-dom', () => ({ ...jest.requireActual('react-router-dom'), useNavigate: () => mockedUsedNavigate, })); import { fireEvent, render, screen, cleanup } from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect'; import FrontCard from '....
//Template_Literals 1.Multiline Strings a) console.log("string text line 1\n" + "string text line 2"); b) console.log(`string text line 1 string text line 2`); 2.String interpolation const a = 20; const b = 4; a) console.log("Twentyfour is " + (a + b) + " and\nnot " + (2 * a + b) + "."); b) console.log(`Twentyfour is...
var express = require('express'); var router = express.Router(); let HAM = require('@harvardartmuseums/ham'); let applicationInfo = { title: 'Object Stories', description: 'Experimental templates for art' }; let ham = new HAM(process.env.HAM_APIKEY); /* GET home page. */ router.get('/', async function(req, res, ...
"""Conditional MNL model.""" import logging import numpy as np import pandas as pd import tensorflow as tf from .base_model import ChoiceModel class MNLCoefficients(object): """Base class to specify the structure of a cLogit.""" def __init__(self): """Instantiate a MNLCoefficients object.""" ...
"""Build openssl.""" from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING import sh from pythonforandroid.logger import shprint from pythonforandroid.recipe import Recipe from pythonforandroid.util import current_directory if TYPE_CHECKING: from typing import Any, ClassVa...
import { get, post, postFile } from "../http"; import utils from "../../utils/Utils"; import { BASE_PATH } from "../../constants"; import { utils as strings, general } from "../../constants/strings/fa"; class Entity { constructor() { this.errorMessage = ""; this.errorCode = 0; } async hand...
<script setup> import AppLayout from '@/Layouts/AppLayout.vue' </script> <template> <AppLayout title="Asignaciones"> <template #header> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> Asignaciones </h2> </template> <div class=...
## node.js获取参数res.query与res.params的区别 相同点:二者都可以获取get请求的参数 不同点:res.query与res.params获取的格式不同 - req.query也就是?id=参数,这样情况下,key和value都在请求的url中 - req.params也就是/,这样情况下,key在路由中,value是请求的url ```node.js req.query: router.get('/query', function (req, res, next) { console.log('get请求参数对象 :',req.query);//get请求对象:{q:'123',w:'...
import MiniCssExtractPlugin from 'mini-css-extract-plugin'; /** * css loader * * @public */ export const css = (app) => { const loader = `css-loader`; return app.build.makeLoader().setSrc(loader); }; /** * csv loader * * @public */ export const csv = (app) => { const loader = `csv-loader`; retur...
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <title>Comparison</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">...
import { SlashCommand } from "../../lib/structures/SlashCommand"; export default new SlashCommand({ name: "rockpaperscissors", description: "Rock, paper or scrissors?", userPerms: ["SEND_MESSAGES"], options: [ { name: "choice", description: "Choose rock, paper or scissors?", type: "STRING", required:...
import { useCallback, useEffect } from 'react'; import { useSubscriber } from '../../hooks/useSubscriber'; import { EventName, Game } from '../../models'; import { getGame } from '../../services/gameService'; import { formatPrice } from '../../utils/formatPrice'; import GuessButtons from '../GuessButtons'; import Loade...
/* * Copyright 2011 Witoslaw Koczewsi <wi@koczewski.de>, Artjom Kochtchi * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero * General Public License as published by the Free Software Foundation, either version 3 of the License, or * (at your option) any l...
import { NextApiRequest, NextApiResponse } from "next"; type method = "GET" | "POST" | "DELETE"; interface WithHandlerProps { methods: method[]; handler: (req: NextApiRequest, res: NextApiResponse) => void; } const withHandler = ({ methods, handler }: WithHandlerProps) => { return async (req: NextApiRequest, r...
import 'package:dartz/dartz.dart'; import 'package:meta/meta.dart'; import 'package:whixp/src/jid/jid.dart'; import 'package:whixp/src/log/log.dart'; import 'package:whixp/src/transport.dart'; import 'package:whixp/src/utils/utils.dart'; import 'package:xml/xml.dart' as xml; import 'package:xpath_selector_xml_parser...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <!-- css --> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlN...
import React from 'react' import PropTypes from 'prop-types' import UploadMultiImages from 'components/UploadMultiImages' import { FormFeedback, Input, Spinner, FormGroup, Row, Col, Label, Button } from 'reactstrap' import { STRING } from 'constants/Constant' UploadMultiImageTour.propTypes = { listImage: PropTypes.ar...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Creational.Prototype.Example2 { internal class Program { static void Main(string[] args) { // Create prototype object ICloneable originalPerson =...
import React from "react"; import { BrowserRouter, Routes, Route } from "react-router-dom"; import LoginPage from "./components/LoginPage/LoginPage"; import List from "./components/List/List"; import RouteGuard from "./components/RouteGuard/RouteGuard"; import AddEntityForm from "./components/AddEntityForm/AddEntityFo...
using DG.Tweening; using AwesomeTools.Inputs; using UnityEngine; using UsefulComponents; using AwesomeTools.Sound; using AwesomeTools; namespace Tomato { public class Worm : MonoBehaviour { public static int UncatchedWormCount; private const string crawlingSound = "Crawling"; private c...
import { NextFunction, Request, Response, Router } from 'express'; import validationMiddleware from '../../middleware/validation.middleware'; import HttpException from '../../utils/exceptions/http.exception'; import Controller from '../../utils/interfaces/controller.Interface'; import PostService from './post.service';...
package com.projects.eventsbook.service.order; import com.projects.eventsbook.DAO.BoughtTicketRepositoryJPA; import com.projects.eventsbook.DAO.EventRepositoryJPA; import com.projects.eventsbook.DAO.GroupRepositoryJpa; import com.projects.eventsbook.DAO.UserRepository; import com.projects.eventsbook.entity.*; import c...
package com.st00.afir.android_me.ui; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.GridView; import android.widget.Toast; import com....
<template> <div ref="rootElem" class="example-item"> <h3>{{ title }}</h3> <div class="case-items"> <slot /> </div> <HtmlPreviewer :source="source" /> </div> </template> <script lang="ts" setup> import { ref, onMounted, nextTick } from 'vue' const props = defineProps<{ title: string sou...
import PropTypes from 'prop-types' import Button from './Button' import {useLocation} from 'react-router-dom' const Header = (props) => { const location = useLocation() return ( <header className='header'> <h1>{props.title}</h1> {location.pathname === '/' && <Button ...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <!DOCTYPE html...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './home/home.component'; import { EvaluacionesComponent } from './evaluaciones/evaluaciones.component'; import { ContactoComponent } from './contacto/contacto.component'; import { TransaccionC...
import {Injectable} from '@angular/core'; import {HttpClient, HttpErrorResponse, HttpEventType} from "@angular/common/http"; import {audit, catchError, first, forkJoin, interval, map, Observable, Subject, Subscription, takeUntil} from "rxjs"; import { ApiFailure, Auth, Bucket, Chart, ChartDiscriminator, Cha...
// Example makes use of `wagmi` with `ether.js` on Ethereum --> `npm install wagmi ethers@^5` import { getDefaultProvider } from 'ethers'; import { FC, PropsWithChildren, createContext, useContext, useState, } from 'react'; import { WagmiConfig, configureChains, createClient, mainnet } from 'wagmi'; import { ...
use std::collections::HashMap; use crate::{ codegen::{CodegenError, CodegenResult}, parser::ast::{Block, BlockItem, DeclOrExpr, Expr, Statement, VarDecl, VarSize}, }; #[derive(Debug, PartialEq)] pub struct CodegenFunction { pub stack: FuncStack, pub op_stack_depth: usize, pub loops: Vec<Loop>, } ...
--- title: How To Create a Polaroid Collage for 2024 date: 2024-05-19T05:12:01.525Z updated: 2024-05-20T05:12:01.525Z tags: - ai - animation videos categories: - ai description: This Article Describes How To Create a Polaroid Collage for 2024 excerpt: This Article Describes How To Create a Polaroid Collage for ...
using System; using System.Collections.Generic; using System.Data; using Unit05.Game.Casting; using Unit05.Game.Services; namespace Unit05.Game.Scripting { /// <summary> /// <para>An update action that handles interactions between the actors.</para> /// <para> /// The responsibility of HandleCollision...
<?php /* +---------------------------------------------------------------------------+ | OpenX v${RELEASE_MAJOR_MINOR} | | =======${RELEASE_MAJOR_MINOR_DOUBLE_UNDERLINE} | | ...
/* * * Copyright 2024 gRPC authors. * * 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 agree...
import Image from "next/image"; import { FC, ReactNode } from "react"; export interface CommunityRowProps { pfp: string; serverName: string; completedBounties: number; raffleTicketsSold: number; totalPoints: number; } const CommunityRow: FC<CommunityRowProps> = ({ pfp, serverName, completedBounties, ...
package com.mrugendra.notificationtest.Network import android.util.Log import com.google.android.gms.tasks.OnCompleteListener import com.google.firebase.Timestamp import com.google.firebase.firestore.CollectionReference import com.google.firebase.firestore.FirebaseFirestore import com.google.firebase.firestore.Source ...
{% docs col_app_id %} Application ID e.g. `angry-birds` is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev. {% enddocs %} {% docs col_platform %} Platform e.g. `web`. {% enddocs %} {% docs col_etl_tstamp %} Timestamp event began ETL e.g. `2017...
/*********************************************************************** * This file is part of iDempiere ERP Open Source * * http://www.idempiere.org * * * * Copyright (C) Contributor...
import { styled } from "@stitches/react"; import { useRouter } from "next/router"; const BackButton = () => { const { back } = useRouter(); const handleOnClick = () => back(); return ( <Button id="back" onClick={handleOnClick}> 뒤로가기 </Button> ); }; const Button = styled("button", { padding: ...
/* * Copyright 2020 Solubris 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 applicable law or agreed t...
import React from 'react'; import {AnswerObject} from "../App" import {Wrapper, ButtonWrapper} from "./QuestionCard.styles" type props = { question: string; answers: string[]; callback: (e: React.MouseEvent<HTMLButtonElement>) => void; userAnswer: AnswerObject | undefined; questionNr: number; ...
import 'dart:convert'; import 'package:urbetrack/models/models.dart'; import 'package:http/http.dart' as http; import 'package:urbetrack/models/starship.dart'; class SwapiService { Future<CharacterResponse> getStarWarsCharactersData(nextPage) async { try { final response = await http.get(Uri.parse(nextPage...
stopwords=%w{the a by on far of are with just but and to the my I has some in} lines=File.readlines("text.txt") lines_count=lines.size text=lines.join # Count the characters character_count = text.length character_count_nospaces = text.gsub(/\s+/, '').length # Count the words, sentences, and paragraphs word_count = t...
import { useContract, useOwnedNFTs, ConnectWallet, useAddress, ThirdwebNftMedia } from "@thirdweb-dev/react"; import React, { useEffect, useState } from "react"; import Container from "../../components/Container/Container"; import { useRouter } from "next/router"; import styles from "../../styles/Buy.module.css"; impor...
# Contributing to Control Plane :+1::tada: First off, thanks for taking the time to contribute! :tada::+1: Control Plane use the Apache 2.0 licence and accepts contributions via GitHub pull requests. The following is a set of guidelines for contributing to a Control Plane project. We generally have stricter rules as...
# # This file is licensed under the Affero General Public License (AGPL) version 3. # # Copyright 2014-2016 OpenMarket Ltd # Copyright (C) 2023 New Vector, Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Fre...
#include "include/dataCollection.hpp" int main() { // Тестируем класс на параметризованный констурктор, сеттор и вывод в консоль size_t sizeOfDynamicArray1 = 3; size_t sizeOfDynamicArray2 = 2; std::string nameOfTestDataObject1 = "Object of DataCollection class"; DataCollection data(sizeOfDynamicArr...
# -*- coding: utf-8 -*- """ Utilities for the internetnl tool """ import getpass import logging import ssl import sys from pathlib import Path from urllib.parse import urlparse import keyring import pandas as pd import requests try: import requests_kerberos_proxy except ImportError: requests_kerberos_proxy = ...
<!DOCTYPE html> <html lang="en"> <head> <title>04 - Time Formatted with observed attributes</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width" /> <link rel="stylesheet" href="styles.css" /> <script> class TimeFormatted extends HTMLElement { connected...
package com.mnlin.linemenuview.dagger.module; import android.view.ViewGroup; import com.mnlin.linemenuview.base.BaseFragment; import com.mnlin.linemenuview.dagger.scope.PerFragment; import com.mnlin.linemenuview.base.BaseActivity; import dagger.Module; import dagger.Provides; /** * 功能----碎片实例提供器 * <p> * Created ...
package main import ( "context" "crypto/tls" "flag" "log/slog" "os" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/manager" // Import all Kubernetes client auth...
/* * OpenRDK : OpenSource Robot Development Kit * Copyright (C) 2007, 2008 Daniele Calisi, Andrea Censi (<first_name>.<last_name>@dis.uniroma1.it) * * 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 F...
import React, { useEffect, useState } from 'react' import { Button, Table, Popover, Modal, Tag ,Switch} from 'antd'; import axios from 'axios'; import { DeleteOutlined, EditOutlined, ExclamationCircleFilled } from '@ant-design/icons'; const { confirm } = Modal; export default function RightList() { const [dat...
import React from "react"; import { ArrowsExpand, CloudArrowDown, Collection, JournalArrowDown, PatchCheck, Percent, Person, ShieldCheck, Tree, } from "react-bootstrap-icons"; import bg from "../../images/about-bg.png"; const About = () => { const styles = { topDiv: "bg-gradient-to-r from...
<form [formGroup]="loginForm" (ngSubmit)="handleLogin()" class="rounded shadow w-75 mx-auto bg-main-light p-3 mt-4"> <div class="form-item mt-1"> <label for="email">Email</label> <input type="email" id="email" placeholder="abdalrhamanmahfouz@gmail.com" formControlName="email" class="form-control"> ...
package com.azx.gateway.config; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.oauth2.common.OAuth2AccessToken; import org.springframework.security.oauth2.provider.token.TokenStore; import org.springframework.stereotype.Component; import com.n...
// apiService.js import axios from 'axios'; const BASE_URL = process.env.REACT_APP_BASE_URL; export const getAllBlogs = async () => { try { const response = await axios.get(`${BASE_URL}/api/blogs`); return response.data; } catch (error) { console.error('Error fetching blogs:', error); throw error;...
#include "lists.h" /** * add_dnodeint_end -add a node at the start of list * @head: header of list * @n: number of node * Return: address of new node */ dlistint_t *add_dnodeint_end(dlistint_t **head, const int n) { dlistint_t *new, *headcopy; headcopy = *head; if (head == NULL) return (NULL); new = mall...
# Chapter 7: Indexing Vectors with [] # Boat sale: creating the data vectors boat.names <- c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j") boat.colors <- c("black", "green", "pink", "blue", "blue", "green", "green", "yellow", "black", "black") boat.ages <- c(143, 53, 356, 23, 647, 24, 532, 43, 6...
import React from "react"; import user from "./user.json"; import statisticalData from "./statistical-data.json"; import friends from "./friends.json"; import transactions from "./transactions.json"; import Profile from "./components/Profile"; import Statistics from "./components/Statistics"; import FriendList from "...
package board.inventoryservice; import board.inventoryservice.Repositories.ProductRepository; import board.inventoryservice.entities.Product; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; impo...
<?php /** * @package AkeebaReleaseSystem * @copyright Copyright (c)2010-2011 Nicholas K. Dionysopoulos * @license GNU General Public License version 3, or later * @version $Id$ */ defined('_JEXEC') or die('Restricted Access'); jimport('joomla.application.component.view'); class ArsViewBase extends JView { fun...
import { constType, nonNegativeIntegerType, RecordClass, recordClassType, recordType, RecordType, } from "paratype"; import { FlowOperation } from "./FlowOperation"; import { FlowOperationRegistry } from "../internal/class-registry"; import { TableOperation } from "./TableOperation"; impor...
/** * Copyright 2021 Rochester Institute of Technology (RIT). Developed with * government support under contract 70RCSA22C00000008 awarded by the United * States Department of Homeland Security for Cybersecurity and Infrastructure Security Agency. * * Permission is hereby granted, free of charge, to any person obtainin...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\Tag; use App\Models\Comment; use App\Models\State; use App\Models\Article; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { ...
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { MatIconModule } from '@angular/material/icon'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterTestingModule } from '@angular/router/testing'; import { SharedModule } from 'src/app/shared/shared.mo...
<?php namespace App\Http\Controllers; use App\Doctors; use App\Patients; use App\Polyclinics; use Illuminate\Http\Request; class PatientsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
import React from 'react'; import Select from '@material-ui/core/Select'; import InputLabel from '@material-ui/core/InputLabel'; export default function TextInput(props) { const [state, setState] = React.useState({ propValue: props.value, }); console.log(state.propValue) let custom_attr =...
/* * Copyright (c) 2023-2023 jwdeveloper jacekwoln@gmail.com * * 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, cop...
import { DataTypes,Model, Sequelize } from 'sequelize'; import db from '../infrastructure/sequelize'; interface PlayerAttributes { id: number; name: string; date: string; winPercentage: number; createdAt: Date; updatedAt: Date; } export interface PlayerInstance extends Model<PlayerAttributes>, PlayerAttributes ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memchr.c :+: :+: :+: ...
/* * onejit - JIT compiler in C++ * * Copyright (C) 2018-2021 Massimiliano Ghilardi * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * stmt1.hpp ...
import { Injectable } from "@angular/core"; import { HttpClient } from '@angular/common/http'; import { Recipe } from './models'; @Injectable() export class RecipesService { private AUTH_PATH: string = `http://localhost:8080`; private USER_ID: string = localStorage.getItem('intelli-user'); constructor(private ...
import { fireEvent, render } from '@testing-utils/library' import React from 'react' import { Button, Text } from 'react-native' import { act } from 'react-test-renderer' import { NotificationProvider, NotifyOptions, useNotification, } from '../notification' function TestComponent(options: NotifyOptions) { co...
use crate::{ cpu::{ operand::{go, step, IO8}, Cpu, }, peripherals::Peripherals, }; use std::sync::atomic::{AtomicU16, AtomicU8, Ordering::Relaxed}; #[allow(clippy::upper_case_acronyms)] #[allow(dead_code)] #[derive(Debug, Copy, Clone)] pub enum Indirect { BC, DE, HL, CFF, ...
--- title: "\"[New] 2024 Approved Harmonizing Your Spotify Queue with YouTube Music Catalogs\"" date: 2024-06-06T15:39:39.997Z updated: 2024-06-07T15:39:39.997Z tags: - ai video - ai youtube categories: - ai - youtube description: "\"This Article Describes [New] 2024 Approved: Harmonizing Your Spotify Queue wi...
--- title: "Gatekeeper" metaTitle: "Candy Machine Guards - Gatekeeper" description: "The Gatekeeper guard checks whether the minting wallet has a valid Gateway Token from a specified Gatekeeper Network." --- ## Overview The **Gatekeeper** guard checks whether the minting wallet has a valid **Gateway Token** from a sp...
<div align="center"> <img src="https://github.com/Mahmud0808/SheGuard/blob/master/banner.png" width="100%" alt="Banner"> </div> # ✨ SheGuard SheGuard stands as the quintessential companion for women, ensuring their safety in every circumstance. Through its user-friendly features, it empowers you to swiftly alert you...
/* * SPDX-License-Identifier: GPL-3.0-only * MuseScore-CLA-applies * * MuseScore * Music Composition & Notation * * Copyright (C) 2021 MuseScore BVBA and others * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * publi...
import numpy as np import pytorch_lightning as pl from sklearn.model_selection import train_test_split from sklearn.datasets import make_blobs import torch from torch.utils.data import DataLoader, TensorDataset from scipy.stats import multivariate_normal import matplotlib.pyplot as plt class BlobDataModule(pl.Lightni...