text stringlengths 184 4.48M |
|---|
import type { Preset } from "unocss";
import { camelCase, kebabCase } from "./utils";
import { easing } from "./easing";
import type { EasePresetOptions } from "./types";
/**
* Creates a preset that maps easing function names to transition timing functions.
* 创建一个预设,将缓动函数名称映射到过渡时间函数。
*
* @param {EasePresetOptions}... |
<!DOCTYPE html>
<html>
<head>
<title>VACSEN: A Visualization Approach for Noise Awareness in Quantum Computing</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="mai... |
"""Test the Advent of Code Runner User object"""
# System libraries
from datetime import datetime
# Pytest libraries
import pytest
# Advent of Code Runner libraries
from aoc_runner.exceptions import AocValueError, DeadTokenError
from aoc_runner.user import User
class Timeout(BaseException):
"""Simulate a timeo... |
import React from "react";
import { motion, AnimatePresence } from "framer-motion";
import menu from "../assets/HambMenu.svg";
import logoMob from "../assets/LogoMob.svg";
import { useState } from "react";
import { CircleClose } from "./Icons/Close";
const Navbar = () => {
const [isOpen, setIsOpen] = useState(true);... |
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Admin Pane... |
<?php
namespace App\User\Domain\Models;
use Illuminate\Database\Eloquent\Model;
class UserAddress extends Model
{
protected $guarded = [
'id'
];
protected $table = 'user_addresses';
protected $casts = [
'is_primary' => 'boolean'
];
public function user()
{
return $this->belongsTo('App\... |
import { main_url } from "../../constants";
import { useQuery } from "react-query";
import axios from "axios";
export const useFetch = (url: string, queryKey: string, token?: string) => {
const {
data,
dataUpdatedAt,
error,
errorUpdatedAt,
failureCount,
isError,
isFetched,
isFetchedAf... |
import React, {useContext, useEffect, useState} from "react";
import PropTypes from "prop-types";
import tagMetadata from "components/settings/tags/tag.metadata";
import adminTagsActions from "../../settings/tags/admin-tags-actions";
import Model from "../../../core/data_model/model";
import LoadingDialog from "../stat... |
from typing import List
from typing import Optional
import arrow
import re
from abc import ABC
from abc import abstractmethod
from discord import ChannelType
from discord import Message
from discord.ext import commands
from langchain.chat_models.openai import ChatOpenAI
from langchain.schema import ChatMessage
from l... |
import React from 'react';
import { IconButton, IconButtonProps } from '@mui/material';
import { Icon } from '../Icon';
export type CloseButtonProps = IconButtonProps & {
/** Hidden label for the button to present to screen readers.
*
* Defaults to `Close`
*/
label?: string;
};
export function CloseBut... |
import { AuthBindings } from "@refinedev/core";
import axios from "axios";
import { toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
const API_URL = import.meta.env.VITE_API_URL + "/api/UserAuth";
export const TOKEN_KEY = import.meta.env.VITE_TOKEN_KEY + "";
export const authProvider... |
package lexer
import (
"fmt"
"regexp"
)
type regexPattern struct {
regex *regexp.Regexp
handler regexHandler
}
type Lexer struct {
patterns []regexPattern
Tokens []Token
source string
pos int
lineMap [][2]int // used for tracking error locations
}
func Tokenize(source string) *Lexer {
lex := c... |
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="shortcut icon" href="../img/icons8-draw-32.png" type="image/x-icon">
</head>
<body>
<header>
<h1>
Curso de dibujo
... |
#include <gtest/gtest.h>
#include <iostream>
#include <set>
#define private public
#include "common/spin_mutex.h"
#include "common/string_utils.h"
#include "common/split.h"
namespace shardora {
namespace common {
namespace test {
class TestSpinMutex : public testing::Test {
public:
static void SetUpTestCase()... |
# Upgrade portal
The Upgrade Portal is recommended as the easiest way to upgrade an existing ANTv1 balance to ANTv2 if the wallet can be connected to a dapp.
First, navigate to [upgrade.aragon.org](https://upgrade.aragon.org/#/):

### Connect a... |
// import axios from "axios";
// import { useRouter } from "next/navigation";
// import { useCallback, useMemo } from "react";
// import { toast } from "react-hot-toast";
// import { SafeUser } from "@/app/types";
// import useLoginModal from "./useLoginModal";
// interface IUseFavorite {
// listingId: string;
// ... |
import { useSearchParams } from "react-router-dom";
import { Card } from "../components"
import { useFetch } from "../hooks/useFetch";
import { useTitle } from "../hooks/useTitle";
export const Search = ({api}) => {
const [searchParams] = useSearchParams();
const queryTerm = searchParams.get("q");
const {data : ... |
/* global tinymce, wpCookies, autosaveL10n, switchEditors */
// Back-compat
window.autosave = function() {
return true;
};
(function($, window) {
function autosave() {
var initialCompareString,
lastTriggerSave = 0,
$document = $(document);
/**
* Returns... |
import { AfterViewInit, Component, ElementRef, Inject, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material/dialog";
import { Course } from "../model/course";
import { FormBuilder, Validators, FormGroup } from "@angular/forms";
import * as moment ... |
#ifndef ANIMATEDELEMENT_H
#define ANIMATEDELEMENT_H
#include <vector>
enum ELEMENT_TYPE
{
LONG4,
CORNER3,
SMALL2,
CUBE,
PYRAMID,
EMPTY
};
enum ELEMENT_ROTATION
{
UP,
RIGHT,
DOWN,
LEFT,
COUNT
};
struct Position
{
int x;
int y;
Position() :x(0), y(0){}
Position(int _x,... |
<mat-toolbar>
<h1 class="mat-h1">Student Form</h1>
</mat-toolbar>
<mat-spinner *ngIf="isLoading"></mat-spinner>
<form [formGroup]="applicationForm" (ngSubmit)="onSubmit()" *ngIf="!isLoading">
<mat-card class="form-card">
<mat-card-content>
<div class="row">
<div class="col">
<mat-form-fi... |
import { DataTypes, Sequelize } from "sequelize";
import { Model, Table } from "sequelize-typescript";
import { ProductModel } from "./product.model";
import { ClientModel } from "./client.model";
@Table
class OrderModel extends Model {
declare id: string;
declare status: string;
declare total: number;
declare... |
package com.apuestas.RetoApuestas.infraestructure.entrypoints;
import com.apuestas.RetoApuestas.domain.models.VentaRecarga;
import com.apuestas.RetoApuestas.domain.usecases.ventaderecarga.VentaRecargaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;... |
<template>
<!-- 如果要疊用toast就以toast-container包覆並定位 -->
<!-- 因為要確保它不會被認何物件檔住所以給它一個z-index:1500 -->
<div
class="toast-container position-fixed pe-3 top-0 end-0"
style="z-index: 1500"
>
<!-- 放入toast模版 並加入迴圈-->
<div
v-for="(msg, key) in messages"
:key="key"
class="toast show"
r... |
<?php
/**
* SqualoMail
*
* NOTICE OF LICENSE
*
* This source file is subject to the Commercial License
* you can't distribute, modify or sell this code
*
* DISCLAIMER
*
* Do not edit or add to this file
* If you need help please contact leo@prestachamps.com
*
* @author Squalomail
* @copyright Squalomai... |
from typing import Any
import numpy as np
from gym import spaces
from habitat.core.registry import registry
from habitat.core.simulator import Sensor, SensorTypes
@registry.register_sensor
class StepIDSensor(Sensor):
cls_uuid: str = "step_id"
curr_ep_id: str = ""
_elapsed_steps: int = 0
def _get_uui... |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Equipments;
/**
* EquipmentsSearch represents the model behind the search form of `app\models\Equipments`.
*/
class EquipmentsSearch extends Equipments
{
public $equipmentsSearch;
/**
* {@inheritdo... |
import React from "react";
import ReactDOM from "react-dom";
/*
! Desestructuración!
const Hello = (props) => {
const { name, age } = props
ES IGUAL A
const Hello = ({ name, age }) => {
Para desestructurar el código y que quede más limpio y organizado,
podemos pasar directamente las propiedades a la función cóm... |
import _, { get, map, keys, split, toString, trim } from 'lodash';
import i18n from '@/locale';
import { LabelListItem, ComponentSchema, OptionsItem } from './interface';
import { isOrCondition, parseExpression } from './experssion-parser';
import { validateYaml } from './yaml-parse';
import { schemaType } from './inde... |
import React, { useEffect, useState } from "react";
import { format } from "date-fns";
import Service from "./Service";
import BookingModal from "./BookingModal";
import { useQuery } from "react-query";
import Loading from "../Shared/Loading/Loading";
const AvailableAppoinment = ({ date }) => {
const [treatment, set... |
import { Socket } from 'socket.io-client';
import { InjectableService } from 'src/common/decorators/common.decorator';
import { io } from 'socket.io-client';
import { Event } from 'src/app/event/entities/event.entity';
import { Logger } from '@nestjs/common';
import { isWorkerMode } from 'src/config/app.config';
import... |
<template>
<div class="student-evaluate-class">
<div class="crumbs">
<el-breadcrumb separator="/">
<el-breadcrumb-item>
<i class="el-icon-fa fa-edit"></i> 学生评课
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="container">
<div class="table">
<el-... |
---
title: Book Review of the Phoenix Project
date: '2022-06-14'
description: 'A short review of perhaps the only fun fiction book on IT and DevOps'
featured: false
---
The Phoenix Project: A Novel About IT, DevOps, and Helping Your Business Win is a bestselling business novel by Gene Kim, Kevin Behr, and George Spaff... |
#ifndef CLIMB_H
#define CLIMB_H 1
const int holdPower = 40; // Climb motor power when holding at the top
const int upPower = 255; // Climb motor power when ascending
const int downPower = -255; // Climb motor power when descending
const long holdTime = 10000; // Time to hold before descending
const long c... |
"use strict";
namespace core {
export class User {
private _displayName :string;
private _emailAddress : string;
private _username : string;
private _password : string;
constructor(displayName: string = "", emailAddress: string = "",
username : string... |
{% extends 'base.html' %}
{% block content %}
<main class="home">
<section class="hero-section text-center">
<div class="container container--narrow">
<div class="hero-section__box">
<h2>CONNECT WITH <span>DEVELOPERS</span></h2>
<h2>FROM AROUND THE WORLD</h2>
... |
=== Paging
:Notice: 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 ma... |
#include "Application.h"
#include "Renderer3D.h"
#include "SDL_opengl.h"
#include <gl/GL.h>
#include <gl/GLU.h>
#include "Math/float4x4.h"
#include "mmgr/mmgr.h"
Renderer3D::Renderer3D(bool startEnabled) : Module(true)
{
name = "renderer";
}
// Destructor
Renderer3D::~Renderer3D()
{}
// Called before render is av... |
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import cs3500.marblesolitaire.model.hw02.EnglishSolitaireModel;
import cs3500.marblesolitaire.model.hw02.MarbleSolitaireModel;
import cs3500.marblesolitaire.model.hw04.EuropeanSolitaireModel;
import cs3500.marblesolitaire.model.hw04.TriangleS... |
import os
import pandas as pd
import pingouin as pg
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import pyreadr
import yaml
from matplotlib.backends.backend_pdf import PdfPages
from na_py_tools.defaults import RESULTS_DIR, SETTINGS_DIR
from na_py_tools.utils import p2star
# Params
save_pdf ... |
import React, { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import { Link, useNavigate } from "react-router-dom";
import { BiArrowBack } from "react-icons/bi";
import { MdSearch } from "react-icons/md";
import axios from "axios";
import Loader from "../Loader";
export default functio... |
'\" t
.TH mkdirs 3 "1998-01-10" LOCAL
.SH NAME
mkdirs \- create directories in a path
.\"_
.SH "SYNOPSIS"
.\"_
.so tmac.att
.\"_
.LP
.BI "int mkdirs(const char *" "path" ,
.BI "mode_t " "mode" );
.\"_
.SH DESCRIPTION
.IX "mkdirs" "" "\fLmkdirs\fP \(em create directories in a path"
.B mkdirs(\|)
creates all the missing ... |
/**
* @file ExecFlat.hpp
* @author Samsung R&D Poland - Mobile Security Group (srpol.mb.sec@samsung.com)
* @brief ExecFlat library created to provide an easy API for running KFLAT recipes.
*
*/
#ifndef EXECFLAT_HDR
#define EXECFLAT_HDR
#include <sched.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <cstd... |
import React, { useState, useEffect } from 'react';
import { StyleSheet, Text, View, Image, ScrollView, TouchableOpacity, Alert } from 'react-native';
import { Share } from "react-native";
import * as Linking from 'expo-linking';
export default function DetailPage({ navigation, route }) {
//초기 컴포넌트의 상태값을 설정
//... |
package com.example.notebook.feature_note.presentation.add_edit_note.ui
import android.graphics.Bitmap
import android.net.Uri
import android.util.Log
import androidx.compose.runtime.*
import androidx.compose.ui.graphics.toArgb
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androi... |
<?php
/**
* A response with an ArrayObject interface to key=>value data
*
* @author Paul Annesley
* @package Pheanstalk
* @licence http://www.opensource.org/licenses/mit-license.php
*/
class Pheanstalk_Response_ArrayResponse
extends ArrayObject
implements Pheanstalk_Response
{
private $_name;
/*... |
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Switch } from './LangSwitcher.styled';
export const LangSwitcher = () => {
const { i18n } = useTranslation();
const [language, setLanguage] = useState('s');
const handleLanguageToggle = () => {
const newLan... |
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:jemina_capital/data/constants/api_routes.dart';
import 'package:jemina_capital/data/constants/theme_colors.dart';
import 'package:jemina_capital/models/report.dart';
class BackdropAndTitle extends StatelessWidget {
... |
#include "Radium/Basic/SourceLoc.h"
#include "Radium/Basic/SourceManager.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
namespace Radium {
auto SourceManager::getCodeCompletionLoc() const -> SourceLoc {
return getLocForBufferStart(code_completion_buffer_id_)
.getAdvancedLoc(c... |
#General Imports
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import matplotlib.pyplot as plt
from IPython.display import clear_output
import numpy as np
import os
import threading
from torchvision.datasets import ImageFolder
from torc... |
/**
* @file Wave_VAO.h
* @brief 一個面的VAO
*/
#ifndef WAVE_VAO_H
#define WAVE_VAO_H
#include "VAO_Interface.h"
/**
* @brief 繪製sin wave時使用的VAO
* @details 其實只是一個平面,要搭配Shader來轉成sin wave
*/
class Wave_VAO : public VAO_Interface {
private:
/// 頂點座標的VBO
GLuint m_vbo_position;
/// EBO
GLuint m_ebo;
/... |
// ignore_for_file: prefer_const_constructors, sized_box_for_whitespace
import 'package:flutter/material.dart';
import 'package:player_connect/home_dir/connect_dir/provider/connect_provider.dart';
import 'package:player_connect/shared/constant/app_strings.dart';
import 'package:player_connect/shared/constant/colors.da... |
import { AbstractMongoDbRepository } from '@app/common';
import { User } from './schemas/user.schema';
import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { InjectConnection, InjectModel } from '@nestjs/mongoose';
import { Connection, Model } from 'mongoose';
import { PageOptionsDto } from '@... |
import React, { useEffect } from "react";
import "./App.css";
import Header from "./Header";
import Home from "./Home";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import Checkout from "./Checkout";
import Login from "./Login";
import { auth } from "./firebase";
import { useStateValue } f... |
'use client'
import { useState } from "react";
import { Button } from "@/components/ui/button";
import { useUser } from "@clerk/nextjs";
import { getFirestore, doc, getDoc, updateDoc } from 'firebase/firestore';
import firebaseConfig from "@/lib/firebaseConfig";
import { initializeApp } from 'firebase/app';
const app... |
import "@mantine/core/styles.css";
import '@mantine/dates/styles.css';
import '@mantine/notifications/styles.css';
import { cssBundleHref } from "@remix-run/css-bundle";
import type { LinksFunction, MetaFunction } from "@remix-run/node";
import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
... |
<?php /** @noinspection PhpUnused */
namespace Kitmap\command\util\money;
use CortexPE\Commando\args\IntegerArgument;
use CortexPE\Commando\args\TargetPlayerArgument;
use CortexPE\Commando\BaseCommand;
use Kitmap\Main;
use Kitmap\Session;
use Kitmap\Util;
use pocketmine\command\CommandSender;
use pocketmine\permissio... |
import React, { useState, useEffect } from "react";
import styled from "styled-components";
import { toast, ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import CountryFlag from "react-country-flag";
import axios from "axios";
import Select from "react-select";
const PaymentMo... |
package app
import (
"fmt"
"go.uber.org/config"
"go.uber.org/fx"
)
type Config struct {
Name string `yaml:"name"`
}
type ResultConfig struct {
fx.Out
Provider config.Provider
Config Config
}
func NewConfig() (ResultConfig, error) {
loader, err := config.NewYAML(config.File("config.yml"))
if err != nil... |
from typing import List, Optional
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
import torch
from haystack.nodes.base import BaseComponent
from haystack.modeling.utils import initialize_device_settings
from haystack.schema import Document
class EntailmentChecker(BaseComponent... |
import { useState, useEffect, useCallback } from "react";
import { useParams } from "react-router-dom";
import BlogService from "../../../services/BlogService";
import { CommentWithChildren, CommentWithId } from "../../../interfaces/blog";
import CommentItem from "../Comment";
import "./styles.scss";
import NewComment... |
/**
* 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... |
\documentclass[12pt]{article}
% Layout.
\usepackage[top=1.2in, bottom=0.9in, left=1in, right=1in, headheight=1in, headsep=6pt]{geometry}
% Fonts.
\usepackage{mathptmx}
\usepackage[scaled=1.0]{helvet}
\renewcommand{\emph}[1]{\textsf{\textbf{#1}}}
% Misc packages.
\usepackage{amsmath,amssymb,latexsym}
\usepackage{grap... |
<template>
<div
class="input-container"
:type="type"
@blur="() => this.openDropdown(false)"
>
<div class="icon-container" :icon="icon" v-if="icon">
<i></i>
</div>
<input
:id="id"
:name="name"
:type="type"
:value="getValueSelectOption"
:readonly="readonly"
... |
package com.spring.basic.step02_dataTransfer;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class Dat... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import * as path from 'path';
import { expect } from 'chai';
import { execCmd, TestSessi... |
import { IsEmail, IsNotEmpty, Length, Matches } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export const message =
'password must contain at least one number, one capital letter and one little letter';
export class CreateUserDto {
@IsEmail()
@ApiProperty({
description: 'Email of u... |
package com.cryallen.leetcode.easy.array;
/***
* 209. 长度最小的子数组
* @author Allen
* @DATE 2021-5-26
***/
public class Medium_209_Minimum_Size_SubArray_Sum {
/**
* 209. 长度最小的子数组
*
* <p>
* 地址:https://leetcode-cn.com/problems/minimum-size-subarray-sum/
* </p>
*
* <p>
* 给定一个含有 n 个正整数的数组和一个正整数 target 。
... |
<template lang="pug">
#HomePage
.content
v-tabs.tab-group(v-model="tab" grow)
v-tab(v-for="item in items" :key="item") {{item}}
InputGroup(
:items="items"
:tab="tab"
@on-submit="CreateChip"
)
v-chip(
v-for="(item,index) in chips"
class="ma-2"... |
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('bst-subpage:server');
var http = require('http');
var publicIp = require('public-ip');
/**
* Get port from environment and store in Express.
*/
var port = normalizePort(process.env.PORT || '3000');
app.s... |
import React, { useState, useMemo } from 'react';
import { useSelector } from 'react-redux';
import { Spin, Alert } from 'antd';
import sort from '../../utilites/sortingTickets';
import transfer from '../../utilites/transferTickets';
import Ticket from '../ticket';
import styles from './tickets-list.module.scss';
co... |
const plays = {
"hamlet": { "name": "Hamlet", "type": "tragedy" },
"as-like": { "name": "As You Like It", "type": "comedy" },
"othello": { "name": "Othello", "type": "tragedy" }
}
module.exports = function statement(invoice, plays) {
const statementData = {};
statementData.customer = invoice.customer;
state... |
#' VaR for default risky bond portfolio
#'
#' Generates Monte Carlo VaR for default risky bond portfolio in Chapter 6.4
#'
#' @param r Spot (interest) rate, assumed to be flat
#' @param rf Risk-free rate
#' @param coupon Coupon rate
#' @param sigma Variance
#' @param amount.invested Amount Invested
#' @param recovery... |
### R Lab 02 - R introduction
### Qin Li 20230924
#-----------------------------------#
### 1. basic data types
# '=' / '<-': assign values to variables
# character 字符型
a = "a"
a <- "a"
name = "Ross"
class(name)
# numeric variable 数值型
id = 1 # integer
height = 1.70
class(height)
# logic 逻辑型
test = TRUE
test2 = FAL... |
#[derive(Debug)]
pub enum OpMode {
Implied,
Immediate,
Absolute,
AbsoluteX,
AbsoluteY,
Indirect,
IndirectX,
IndirectY,
ZeroPage,
ZeroPageX,
ZeroPageY,
Accumulator,
Relative,
}
pub struct Opcode {
pub mnemonic: &'static str,
pub code: u8,
pub mode: OpMode,
pub bytes: u... |
package com.xing.uni.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xing.uni.entity.Order;
import com.xing.uni.entity.OrderDetail;
import com.xing.uni.entity.R;
import com.xing.uni.properties.WeixinpayPropert... |
<!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>Application For Permission</title>
<script src="https://cdn.freecodecamp.org/testable-projects-f... |
# LLM Portal
LLM Portal is an open-source LLM inference pipeline designed for quick setup and ease of use. This project streamlines the deployment process of large language models with various user focused features like translation, speech to text in any language, Retreival Argument Generation support for using own dat... |
using Microsoft.Extensions.Logging;
using Inchoqate.Logging;
using OpenTK.Graphics.OpenGL4;
namespace Inchoqate.GUI.Model
{
public class VertexArrayModel : IDisposable
{
private static readonly ILogger _logger = FileLoggerFactory.CreateLogger<VertexArrayModel>();
public readonly int Handle;
... |
import { useState } from "react";
import reactLogo from "./assets/react.svg";
import Home from "./components/Home/Home";
import "./App.css";
import Header from "./components/Header/Header";
import Sidebar from "./components/Sidebar/Sidebar";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import VideoP... |
#include "main.h"
/**
* _strdup - function returns a pointer to a new string
* @str: character to be used
* Return: Returns NULL if str = NULL
*
*/
char *_strdup(char *str)
{
int i;
char *copy;
int count = 0;
if (str == NULL)
return (NULL);
for (i = 0; str[i] != '\0'; i++)
count++;
copy = (char *)mallo... |
package com.example.firebase;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Patterns;
import android.view.View;
import android.widget.Button;
import android.widget.EditTex... |
import React, { useState, useRef, useEffect } from 'react';
import { View, Text, StyleSheet, Button, Alert, ScrollView } from 'react-native';
import { Ionicons } from '@expo/vector-icons'
import NumberContainer from '../components/NumberContainer';
import Card from '../components/Card';
import MainButton from '../comp... |
<?php
namespace App\Providers;
use App\Http\Kernel;
use Carbon\CarbonInterval;
use Faker\Factory;
use Faker\Generator;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvide... |
//
// NewSoporteAdminView.swift
// CetacApp
//
// Created by Equipo 1 on 18/10/21.
//
import SwiftUI
struct NewSoporteAdminView: View {
@Binding var isPresented: Bool
@State var nombre: String = ""
@State var correo: String = ""
@State var isAlert = false
@State var alertTitle = ""
@St... |
<?php
namespace App\Listeners;
use App\Mail\VerificationEmail;
use Illuminate\Auth\Events\Registered;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Mail;
class SendVerificationMail implements ShouldQueue
{
/**
* Create the event listener.
*
* @return void... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateArticleHasTagsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('article_... |
import copy
import locale
import os
from os.path import abspath, dirname, join
from pelican.settings import (DEFAULT_CONFIG, DEFAULT_THEME,
_printf_s_to_format_field,
configure_settings,
handle_deprecated_settings, read_settings... |
const Tour = require('../models/tourModel');
const APIfunctionality = require('../utils/APIfunctionality');
const catchAsync = require('../utils/catchAsync');
const AppError = require('../utils/appError');
const { deleteOne } = require('./handlerFactory');
const topToursMiddleware = (req, res, next) => {
req.query.... |
/*
Given two integers dividend and divisor, divide two integers without using multiplication,
division, and mod operator.
The integer division should truncate toward zero, which means losing its fractional part.
For example, 8.345 would be truncated to 8, and -2.7335 would be truncated to -2.
Return the quotient afte... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
---
'$title': AMP Boilerplate Code
$order: 9
formats:
- websites
- stories
teaser:
text: head > style[amp-boilerplate] und noscript > style[amp-boilerplate]
---
<!--
This file is imported from https://github.com/ampproject/amphtml/blob/main/docs/spec/amp-boilerplate.md.
Please do not change this file.
If you hav... |
import {
Body,
Controller,
Post,
Req,
UnauthorizedException,
UseGuards,
} from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { Request } from 'express';
import { UserDto } from 'src/user/dto/user.dto';
import { UserService } from 'src/user/user.service';
import { AuthServ... |
using System.Data;
using System.Threading.Tasks.Dataflow;
public class Task133
{
static void RotateMatrices(IEnumerable<IEnumerable<Matrix>> collections,
float degrees)
{
var schedulerPair = new ConcurrentExclusiveSchedulerPair(
TaskScheduler.Default, maxConcurrencyLevel: 8);
T... |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/03/a/RAM8.hdl
/**
* Memory of 8 registers, each 16 bit-wide. Out holds the value
* stored at the memory location specified by address. If load==1, then
* the i... |
import axios from 'axios';
import React, {useEffect, useState} from 'react';
import {Link, useNavigate, useParams} from 'react-router-dom';
function ArmorUpdate(){
const [name, setName]=useState("");
const [description, setDescription]=useState("");
const [defense, setDefense]=useState(0);
const [price... |
/**
* @jest-environment jsdom
*/
import { fireEvent, render, screen } from "@testing-library/react";
import { CounterApp } from "../src/CounterApp";
const initialValue = 100;
describe('Pruebas en Counter App', ()=> {
test('Debe hacer match con el snapshot', ()=> {
const { container } = render(< CounterApp... |
#!/usr/bin/env python
# This file is part of Xpra.
# Copyright (C) 2011-2017 Antoine Martin <antoine@devloop.org.uk>
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.
import os
import sys
import unittest
import tempfile
import uuid
import h... |
class User < ApplicationRecord
validates :username, :session_token, presence: true, uniqueness: true
validates :password_digest, presence: true
validates :password, length: {minimum: 6}, allow_nil: true
attr_reader :password
before_validation :ensure_session_token
def self.find_by_credent... |
#include "gradient_volume.h"
#include <algorithm>
#include <exception>
#include <glm/geometric.hpp>
#include <glm/vector_relational.hpp>
#include <gsl/span>
namespace volume {
// Compute the maximum magnitude from all gradient voxels
static float computeMaxMagnitude(gsl::span<const GradientVoxel> data)
{
return s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.