text stringlengths 184 4.48M |
|---|
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>칸의 병합</title>
<style>
table {
width: 100%;
border-collapse: collapse;
... |
import random
from django.http import JsonResponse
from django.shortcuts import render, get_object_or_404
from .models import Subject, Question, Answer, Topic
from .forms import TextAnswerForm, MultipleChoiceAnswerForm
def subject_list(request):
subjects = Subject.objects.all()
return render(request, 'quiz/sub... |
import {
ArticleRangeType,
PartTitleType,
TOCChapterType,
TOCPartType,
} from "@/types/law";
import { LawArticleRange } from "./article-range";
import { LawTOCChapter } from "./toc-chapter";
import { Fragment } from "react";
import { getType } from "@/lib/law/law";
import { getTextNode } from "./text-node";
/*... |
// Copyright (c) 2013-2023 Snowplow Analytics Ltd. All rights reserved.
//
// This program is licensed to you under the Apache License Version 2.0,
// and you may not use this file except in compliance with the Apache License
// Version 2.0. You may obtain a copy of the Apache License Version 2.0 at
// http://www.... |
"""
Email utilities file
"""
import smtplib
from email.message import EmailMessage
def generate_email(email_text: str, email_address: str) -> EmailMessage:
"""
Create an email
:param email_text: content of the email
:param email_address: address to send and receive the notification
:return: Email... |
<script lang="ts">
import { invalidate } from "$app/navigation";
import Button from "$cmp/core/buttons/Button.svelte";
import IconButton from "$cmp/core/buttons/IconButton.svelte";
import Input from "$cmp/core/inputs/Input.svelte";
import { pushModal } from "$cmp/core/modals/modalStore";
import ... |
<template>
<div class="container">
<form action="" method="POST" name="formulario">
<div class="form-group">
<div class="col-md-6 offset-md-3">
<select
ref="textmessage"
type="text"
class="form-control shadow-sm mb-4 bg-body rounded"
>
... |
import DocLink from '@site/src/components/DocLink'
Colliders are nodes which have multiple parents in a causal graph. Colliders are interesting because they can cause counterintuitive behavior in the distribution $P(A,B,C)$. Conditioning on a collider can introduce statistical association between its parents.
This ef... |
---
description: Batched orchestration for cypress-cloud
---
# Batched Orchestration
### Batched Orchestration
This package uses its own orchestration and reporting protocol that is independent of cypress native implementation. This approach provides several benefits, including more control, flexibility and the abil... |
import { Component, OnInit, ViewChild, TemplateRef } from '@angular/core';
import { MatTableDataSource } from '@angular/material/table';
import { Bookmark } from 'src/app/shared/models/bookmark.model';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import {... |
// gcc structpoint.c -o structpoint.out
// ./structpoint.out
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "structpoint.h"
int main () {
srand(time(NULL));
struct Point p1;
struct Point *pt1 = &p1;
pt1->x = float_rand(0,1.0);
pt1->y = float_rand(0,1.0);
printf("Nokta 1: (x,y) (%f,%f)... |
---
title: "[Updated] Seamlessly Combining IPhone Videos and Images"
date: 2024-05-31T07:40:56.982Z
updated: 2024-06-01T07:40:56.982Z
tags:
- screen-recording
- ai video
- ai audio
- ai auto
categories:
- ai
- screen
description: "This Article Describes [Updated] Seamlessly Combining IPhone Videos and Ima... |
A/B测试+辛普森悖论,对照组实验组的选取;埋点的设置,尤其注意页面访问统计和用户浏览行为的相关指标;留存率的不同时段的分析
1.辛普森悖论 参考:http://www.woshipm.com/pmd/370128.html
辛普森悖论(Simpson’s Paradox)是英国统计学家E.H.辛普森(E.H.Simpson)于1951年提出的悖论,
即在某个条件下的两组数据,分别讨论时都会满足某种性质,可是一旦合并考虑,却可能导致相反的结论。
2.A/B测试
(1)A/B测试定义:
A/B测试是一种用来比较两个样本不同的测试方法,其他的测试方法有:同期群测试,市场细分,多样本测试。
在互联网领域,A/B测试一般用来反映... |
import { useDispatch, useSelector } from "react-redux";
import CDN_URL from "../utils/constants";
import { addItem, decrementQuantity, incrementQuantity, updateQuantity } from "../utils/cartSlice";
const ItemList = ({ items, resInfo }) => {
const dispatch = useDispatch();
const cartItems = useSelector((store) => s... |
package com.hao.common.domain.dto;
import com.hao.common.domain.other.Code;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author Hao
* @program: nengyuyue
* @description: 返回结果类
* @date 2023-11-09 12:42:10
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class... |
import {createLogic} from "redux-logic";
import PracticeActions from "./actions";
import PracticeService from "./service";
import {getId, getPermissionsInfo} from "./getters";
import actions from "../../layout/actions";
import {DialogType, fetchingTypes, PermissionsInfoFields, PracticeFields} from "./enum";
import {Rus... |
import React, { HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
type Variants = {
base: string;
default: string;
primary: string;
danger: string;
warning: string;
success: string;
};
const variants: Variants = {
base: "inline-flex items-center rounded-md bg-gray-50 px-2 py-1 tex... |
package semplest.other;
import org.joda.time.DateTime;
import org.joda.time.DateTimeConstants;
import org.joda.time.Interval;
/**
* Takes a datetime in and drops all minutes, seconds, and milliseconds to make the
* datetime midinite. Because we only care about the date not the time.
*
* @author zacharyshaw
*/
... |
class BasicCalculator:
def sum(self, numlist: list):
_sum = 0
for num in numlist:
_sum += num
return _sum
# need to add `self` parameter first in instance method
class ComplexCalculator(BasicCalculator):
def power(self, base, exponent):
return base **... |
import React, { Suspense, lazy } from "react";
// React Router Dom
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
// Context
import { DashboardProvider } from "../pages/dashboard/context/DashboardContext";
// Pages
const AsyncPageNotFound = lazy(() => import("../common/router/PageNotFound... |
export interface WikiApiArticle {
parse?: Parse;
}
export interface Parse {
title?: Title;
pageid?: number;
revid?: number;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
redirects?: any[];
text?: Text;
langlinks?: Langlink[];
categories?: Category[];
links?: Link[];
templates?: L... |
import * as sinon from 'sinon';
import * as chai from 'chai';
// @ts-ignore
import chaiHttp = require('chai-http');
import { app } from '../app';
import Match from '../database/models/Match';
import { matchesMock, updatableMatchMock } from './mocks/match';
import { teamsMock } from './mocks/team';
import Messages from... |
import { ChangeEvent } from 'react';
import clsx from 'clsx';
import { CheckboxTextItem } from '@/components';
type Props = {
select: string | null;
list: { name: string }[];
handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
};
export function TextButtons({ list, select, handleChange }: Props) {
... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Linq;
using System.Runtime.CompilerServi... |
package gr.cti.eslate.scripting.logo;
import java.awt.*;
import java.util.*;
import virtuoso.logo.*;
import gr.cti.eslate.scripting.*;
import gr.cti.eslate.set.*;
import gr.cti.eslate.base.*;
/**
* This class describes the Logo primitives implemented by the set
* component.
*
* @author Kriton Kyrimis
* @ver... |
---> NÓS ESTAMOS RENDERIZANDO NOSSO
TEMPLATE
DE
'shop.pug',
MAS ATÉ AGORA
NÃO ESTAMOS RENDERIZANDO
QUALQUER CONTEÚDO DINÂMICO COM ESSE TEMPLATE...
--> ISSO, ENTRETANTO, É TODA A IDEIA POR TRÁS DESTE MÓDULO,
FAZER O OUTPUT DE CONTEÚDO DINÂMICO USANDO
TEMPLATING ENGINES...
--... |
import { useState, useEffect, FormEvent, ChangeEvent, InvalidEvent } from 'react'
import { Comment } from './Comment';
import { Avatar } from './Avatar';
import { format, formatDistanceToNow } from 'date-fns';
import enUS from 'date-fns/locale/en-US';
import styles from './Post.module.css';
interface Author {
name: ... |
import React from 'react';
import {View, Text, ScrollView, TouchableOpacity, Image,FlatList} from 'react-native';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import { useNavigation } from '@react-navigation/native';
const Stories = () => {
const navigation = useNavigation();
const storyInf... |
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from model_state import State, Base
"""
State class representing a state in the database.
Attributes:
id (int): An auto-generated, unique integer identifier.
name (str): The name of the state, up to 128 characters.
... |
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import classname from 'classnames';
import moment from 'moment';
import 'moment/locale/id';
import { H3, TextBody, Links } from 'components/atoms';
import './styles.scss';
class CardNews exten... |
import { IEmailBlock } from '@novu/shared';
import { useMantineTheme, Group, Container, Card } from '@mantine/core';
import { Dropzone } from '@mantine/dropzone';
import React, { useEffect, useState } from 'react';
import { Upload } from '../../../design-system/icons';
import { colors, Text } from '../../../design-syst... |
import Foundation
import RxSwift
class CryptoDetailRepositoryDefault: CryptoDetailRepository {
private let urlString = "https://min-api.cryptocompare.com/data/pricemultifull"
private let session = URLSession.shared
func getCryptoInfo(with currencyType: String) -> Single<CryptoModel> {
Sin... |
import type { Metadata } from "next";
import "./globals.css";
import { cn } from "@/lib/utils";
import { fontGothan } from '@/lib/fonts'
import { QueryClientProvider } from "@tanstack/react-query";
import { queryClient } from "@/lib/react-query";
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
impor... |
import { ctx } from "@app/index.js"
import { RegistryEntry } from "@app/registry.js"
import { usernamePrompt } from "@app/setup.js"
import fs from "fs"
import path from "path"
export type AppConfig = {
user: RegistryEntry
}
function getConfigPath() {
if (!process.env.IPFSHARE_HOME) throw new Error("IPFSHARE_H... |
package main
import (
"errors"
"fmt"
)
func test() {
//使用defer + recover 来捕获和处理异常
defer func() {
err := recover() //内置函数,可以捕获到异常
if err != nil { //说明捕获到异常
fmt.Println("err=", err)
//这里可以将错误信息发送给管理员
fmt.Println("发送邮件给管理员")
}
}()
num1 := 10
num2 := 0
res := num1 / num2
fmt.Println(res)
}
// 函数... |
# Three Sum
Given an integer array nums , return all the triplets ` [nums[i], nums[j], nums[k]] ` such that ` i != j `, ` i != k `, and ` j != k `, and ` nums[i] + nums[j] + nums[k] == 0 `.
Notice that the solution set must not contain duplicate triplets.
**Example 1:**
```text
Input: nums = [-1,0,1,2,-1,-4]
Output... |
# Тестовое задание для "500na700"
### Используемые технологии:

float4x4 u_projection;
float4x4 u_view;
float4x4 u_world;
float4x4 u_textureMtx[1];
float4 u_fogSettings; // [Enable, Start, End, Density]
float4 u_mainTextureSize;
bool u_useVtxColor = false;
CONST_BUFFER_END
CONST_BUFFER_BEGIN(PShaderConstants... |
import React from 'react'
import cx from 'classnames'
import { graphql } from 'gatsby'
import Container from '@Components/Grid/Container'
import Row from '@Components/Grid/Row'
import ColorPaletteSquare from '@Components/ColorPaletteSquare'
import * as style from './colorPalette.module.scss'
import { H4 } from '@Compon... |
import { IsString, IsEmail, IsNumber, IsPositive, IsBoolean, IsDateString, IsDate, IsNotEmpty, Min } from 'class-validator';
export class CreateUserDto {
@IsString()
@IsNotEmpty({ message: 'First name must not be empty' })
firstName: string;
@IsString()
lastName: string;
@IsString()
@IsNotEmpty({ messa... |
# Seed Data
# Landlords
landlord1 = Landlord.create!(
username: 'landlord1',
email: 'landlord1@example.com',
password: 'password123',
bio: 'Experienced landlord with multiple properties.',
phone_number: '1234567890',
image: 'url_to_landlord_image1'
)
landlord2 = Landlord.create!(
username: 'landlord2',
... |
# EP2 - Doubly Linked List
## Problem Statement
Design a doubly linked list that supports the following operations:
- `int get(int index)` retrieves the element at position `index` in `O(n)`.
- `void insert(int value, int index)` inserts the element `value` at position `index` in `O(n)`.
- `void delete(int index)` r... |
<form method="post" action="{{route('admin.admins.store')}}" id="form_add_option">
@csrf
<div class="form-row mb-4">
<div class="form-group col-md-6">
<label for="name">@lang('form.label.name')</label>
<input name="name" type="text" maxlength="50" class="form-control @error('nam... |
import React from 'react';
import styled from 'styled-components';
import { GridTemplate } from '@components/drawers/ticket-information/index.stories';
import { AppointmentInfoDumb } from '@components/drawers/ticket-information/components/appointment-info/index.dumb';
import { AppointmentEntity } from '@domain/types/en... |
package data;
import controllers.*;
public class DataInitializer {
public static void inicializarData() {
// ########### Inicialización de data #################
// Creacion de carrera
CarreraController.getInstance().crearCarrera("Ingenieria Informatica", 350);
// Creacion de m... |
import { useNavigate } from "react-router-dom";
import { sidebarNavigationItems } from "../../constants";
import { MediaState, NavigationItem } from "../../types";
import { useMediaStore } from "../../store/mediaStore";
import { removeItemFromLocalStorage } from "../../helpers";
type SidebarProps = {
isOpen: boolea... |
from google.cloud import vision_v1
from google.cloud import storage
import cv2
import numpy as np
import math
# Initialize the Google Cloud client for Vision.
client_vision = vision_v1.ImageAnnotatorClient()
# Replace with your GCP project ID, bucket name, and image file name.
project_id = "YOUR_PROJECT_ID"
bucket_na... |
require ('../config/db.js')
const brcypt = require('bcryptjs')
const nodemailer = require("nodemailer");
const {google} = require('googleapis')
const {USER, DOCTOR} = require('../model/usermodel.js')
require('dotenv').config({path : '../.env'})
exports.registerUser = async(req, res) => {
const {name, email, passwo... |
#ifndef MAIN_H
#define MAIN_H
#include <unistd.h>
/* _putchar - writes the character c to stdout
* @c: The character to print
*
* Return: On success 1.
* On error, -1 is returned, and errno is set appropriately.
*/
int _putchar(char c);
/**
* _isupper - Checks if a character is uppercase
* @c: The character t... |
# Contributing to [Project]
Thank you for your interest in contributing to Nerdcator :tada:!
Nerdcator is a basic app that allows travelers to find nearby sites of special interest to scientists and nerds such as geological/botanical features, offbeat museums, graves of our scientific heroes, locations of historic/s... |
from nicegui import ui
from nicegui import run
from nicegui import events
import mne
import numpy as np
import matplotlib.pyplot as plt
from mne import Epochs, pick_types, events_from_annotations
from mne.channels import make_standard_montage
from mne.io import concatenate_raws, read_raw_edf
from mne.datasets import ee... |
import React from "react";
import { Link, useLocation } from "react-router-dom";
import ContactUsPage from "./Contact";
import Card from "./Card";
import Cardhome from "./Cardhome";
import NoData from "./NoData";
const Navbar = () => {
return (
<div className="container my-5">
<ul className="nav nav-tabs" ... |
# ALBEF
> 文章标题:[Align before Fuse: Vision and Language Representation Learning with Momentum Distillation](https://arxiv.org/abs/2107.07651) [
{
Schema::create('user', function (Bluepr... |
import request from 'supertest';
import mongoose from 'mongoose';
import { app } from '../../app';
import auth, { getNewValidUser } from '../../test/helpers/auth';
import { createTicket } from '../../test/helpers/ticket';
import { createOrder } from '../../test/helpers/order';
import { OrderStatus, Subjects } from '@ra... |
from abstract_factory import Button, Checkbox, GuiFactory
# factories
class WindowsFactory(GuiFactory):
def create_button(self):
return WindowsButton()
def create_checkbox(self):
return WindowsCheckbox()
class MacFactory(GuiFactory):
def create_button(self):
return MacButton()... |
<!DOCTYPE html>
<html lang="pt-br">
<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>Matchup</title>
<img id="logo" src="./img/logo.png">
<!-- Link d... |
import * as React from "react";
import Fill from "./Fill";
import Manager, { Component, SlotFillContext } from "./Manager";
export interface Props {
/**
* The name of the component. Use a symbol if you want to be 100% sue the Slot
* will only be filled by a component you create
*/
name: string |... |
<script lang="ts">
import { defineComponent } from 'vue'
import UserState from '@/components/UserState.vue'
import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
import { i18nRoute } from '@/i18n/translation'
export default defineComponent({
components: {
userState: UserState,
languageSwitcher: La... |
<script type="text/javascript">
function ajax(opts){
var xmlhttp = new XMLHttpRequest();
var dataStr = '';
for(var key in opts.data){
dataStr += key + '=' opts.data[key] + '&'
}
dataStr = dataStr.substr(0,dataStr.length-1);
if(opts.type.toLowerCase()==='post'){
xmlhttp.open(opts.... |
import { AppBar, AppBarProps, styled } from '@mui/material';
import { drawerWidth } from '@/core/theme/constants';
import { theme } from '@/core/theme/theme';
interface StyledAppBarProps extends AppBarProps {
open: boolean;
}
export const StyledAppBar = styled(AppBar, {
shouldForwardProp: (prop) => prop !== 'open'... |
package com.codegym.task.task19.task1903;
/*
Adapting multiple interfaces
*/
import java.util.HashMap;
import java.util.Map;
public class Solution {
public static Map<String, String> countries = new HashMap<>();
static {
countries.put("UA", "Ukraine");
countries.put("US", "United States");... |
import {readFileSync} from "fs";
const RE = {
ore: /^Each ore robot costs (\d*) ore$/g,
clay: /^Each clay robot costs (\d*) ore/g,
obsidian: /^Each obsidian robot costs (\d*) ore and (\d*) clay$/g,
geode: /^Each geode robot costs (\d*) ore and (\d*) obsidian/g,
};
const ROBOTS = ["ore", "clay", "obsidian", "ge... |
// import { useState } from 'react';
import './App.css';
import {Header, Footer} from './components/index.js';
import {About, Home, NotFound, ProductDetail, ProductId, Products, Profile, Reviews, Login, Register} from './routes/index.js'
import AppLayout from './layouts/AppLayout.js';
// import DarkThemeContext from '.... |
import 'package:flutter/material.dart';
import 'package:siskom_tv_dosen/cubit/manage_cubit.dart';
import 'package:siskom_tv_dosen/pages/login_page.dart';
import 'package:siskom_tv_dosen/theme.dart';
import 'package:siskom_tv_dosen/widgets/custom_form.dart';
import 'package:siskom_tv_dosen/widgets/identity_tile.dart';
i... |
import React,{Component} from 'react';
import {Table} from 'react-bootstrap';
import {Button,ButtonToolbar} from 'react-bootstrap';
import {AddNewWorker} from './AddNewWorker.js';
import {EditWorker} from './EditWorker.js'
import { TestWorker } from './TestWorker.js';
export class WorkerSetup extends Component{
... |
import { Splide, SplideSlide, SplideTrack } from '@splidejs/react-splide';
import { BiCaretRight } from 'react-icons/bi';
import '@splidejs/react-splide/css';
import '../../../styles/Carousel.module.css';
import Link from 'next/link';
const Carousel = () => {
return (
<div className="px-2 pt-4 md:px-6">
<S... |
import re
import pytest
import pandas as pd
from pandas import (
DataFrame,
Index,
Series,
Timestamp,
date_range,
)
import pandas._testing as tm
class TestDatetimeIndex:
def test_get_loc_naive_dti_aware_str_deprecated(self):
# GH#46903
ts = Timestamp("20130101")._value
... |
<!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>Document</title>
<style>
body{
max-width: 800px;
margin: 0 auto;
... |
import React, { useState, useEffect } from "react";
import {
View,
Text,
StyleSheet,
Image,
TextInput,
TouchableOpacity,
Alert,
KeyboardAvoidingView,
Platform,
ScrollView,
Keyboard
} from "react-native";
import { useAuth } from "../context/AuthContext"; // Make sure the path is correct
import { us... |
Sub StockTicker()
'--------------------------------------------------------------------------------------
' CREATE A WORKSHEET LOOP TO WORK ON ALL WORKSHEETS
' NOTE THE STATEMENT IS "FOR EACH"
'The "ws.activate" command is needed for the script to go from sheet to she... |
import type { FC, PropsWithChildren } from "react";
import cx from "classnames";
import styles from "./ContentContainer.module.scss";
interface Props {
padding?: "normal" | "small";
widthPx?: number;
heightPx?: number;
onClick?: () => void;
}
export const ContentContainer: FC<PropsWithChildren<Props>> = ({
... |
<script lang="ts">
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
import Button from './Button.svelte';
import { Editor } from '@tiptap/core';
import StarterKit from '@tiptap/starter-kit';
export let content = '';
let editor: Editor | undefined;
let element: HTMLElement | undefined;
cons... |
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CameraLensDistortionAlgo.h"
#include "LensFile.h"
#include "CameraLensDistortionAlgoCheckerboard.generated.h"
struct FGeometry;
struct FPointerEvent;
class ACameraCalibrationCheckerboard;
class FCameraCalibrationStepsController;
class ULens... |
```
*-
* Free/Libre Near Field Communication (NFC) library
*
* Libnfc historical contributors:
* Copyright (C) 2009 Roel Verdult
* Copyright (C) 2009-2015 Romuald Conty
* Copyright (C) 2010-2012 Romain Tartière
* Copyright (C) 2010-2013 Philippe Teuwen
* Copyright (C) 2012-2013 Ludovic Rousseau
* Additional contri... |
import { useEffect, useState } from "react";
import { NavLink, Link } from "react-router-dom";
import { Card } from "../Card";
import { CatalogNav } from "../CatalogNav";
import { Preloader } from "../Preloader";
export function Catalog() {
const [catalog, setCatalog] = useState([]);
const [loading, setLoading] = ... |
<script setup>
import {useVerwaltungsStore} from '@/stores/PraktikumsverwaltungStore.js'
import {onBeforeMount, ref, watch} from "vue";
import Checkbox from "@/components/Checkbox.vue";
import TabellenZeilenElement from "@/components/TabellenZeilenElement.vue";
import Dropdown from "@/components/Dropdown.vue";
import {... |
Introduction
I remember thinking about breaking into data science as if it were yesterday. I had just started my semester abroad in Shanghai and attended several talks and guest lectures about data science and machine learning. However, I had never coded before (except for some basic SQL) and did not really know where... |
package fr.legrain.bdg.client.preferences;
import org.eclipse.jface.preference.*;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import fr.legrain.bdg.client.Activator;
/**
* This class represents a preference page that
* is contributed to the Preferences dialog. By
* subclassi... |
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</h:head>
<h:body>
<ui:com... |
// Importing required modules
import React, { Fragment, useRef, useState } from "react";
import { Link } from "react-router-dom";
// Importing MUI assets
import { Stack } from "@mui/material";
// Importing react icons
import { BiArrowBack, BiPaperclip, BiSolidPaperPlane } from "react-icons/bi";
// Importing custom c... |
<script setup lang="ts">
import SegmentList from '@/src/components/SegmentList.vue';
import CloseableDialog from '@/src/components/CloseableDialog.vue';
import SaveSegmentGroupDialog from '@/src/components/SaveSegmentGroupDialog.vue';
import { useCurrentImage } from '@/src/composables/useCurrentImage';
import { useData... |
package api
import (
"errors"
"fmt"
"github.com/gin-gonic/gin"
"github.com/ppoonk/AirGo/global"
"github.com/ppoonk/AirGo/model"
"github.com/ppoonk/AirGo/service"
"github.com/ppoonk/AirGo/utils/other_plugin"
"github.com/ppoonk/AirGo/utils/response"
"gorm.io/gorm"
"strconv"
"time"
)
// 获取全部订单,分页获取
func GetAl... |
(function() {
try {
// inspired by Eli Grey's shim @ http://eligrey.com/blog/post/textcontent-in-ie8
// heavily modified to better match the spec:
// http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-textContent
if (Object.defineProperty && Object.getOwnProperty... |
<html lang="en"
xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<title>Pathfinder</title>
<th:block th:replace="~{fragments/head.html}"/>
</head>
<body>
<div class="wrapper">
<!-- Navigation -->
<th:block th:replace="~{fragments/header... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc2629 PUBLIC '' 'http://xml.resource.org/public/rfc/bibxml/reference.RFC.2629.xml'>
<!ENTITY RFC1035 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.1035.xml">
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/p... |
import 'package:flutter/material.dart';
import 'package:imt_tp/home_page.dart';
import 'package:imt_tp/second_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContex... |
@extends('app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
@if (count($errors) > 0)
<div class="alert alert-danger">
<stro... |
/******************************************************************************
*
* Copyright 2019 Google, Inc.
*
* 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.ap... |
import EyeIcon from "./icons/eye.svg?component";
import HomeIcon from "./icons/home.svg?component";
import BillIcon from "./icons/bill.svg?component";
import CardIcon from "./icons/card.svg?component";
import MailIcon from "./icons/mail.svg?component";
import BellIcon from "./icons/bell.svg?component";
import SendIcon ... |
package com.gojodev.spring_mvc.controller;
import com.gojodev.spring_mvc.model.User;
import com.gojodev.spring_mvc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bi... |
<script lang="ts" setup>
import type { User } from '~/models/user';
interface SuggestedListProps {
label: string;
labelEmpty?: string;
items: User[];
}
const props = defineProps<SuggestedListProps>();
const isEmpty = computed(() => {
return !props.items || props.items.length === 0;
});
</script>
<template>
... |
package org.alg.advanced.graph.undirected.util;
import org.alg.advanced.graph.undirected.represent.Graph;
/**
* Util class for graph to computer operation like degree, maxDegree,
* averageDegree, etc
*/
public final class GraphUtil {
private GraphUtil() {
throw new IllegalAccessError();
}
/**... |
#pragma once
#include "PCH.h"
#include "Math.h"
#include "Elements.h"
inline float MinutesToAngle(float minutes)
{
return (fmod(minutes, 60.0f) / 60.0f) * 360;
}
inline float MinutesToAngleRads(float minutes)
{
return (fmod(minutes, 60.0f) / 60.0f) * PI2;
}
inline float HoursToAngle(float hours)
{
return (fmod(ho... |
package storage
import (
"context"
"time"
"github.com/jackc/pgx/v5/pgtype"
)
type Point struct {
ID int `json:"id"`
Coordinates Coordinates `json:"coordinates"`
Address string `json:"address"`
Description string `json:"description"`
OpenTime time.Duration `json:"open... |
package carshare.service;
import carshare.controller.dto.UserDetailsDTO;
import carshare.database.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsS... |
Feature: PurgoMalum Functional Tests
A short summary of the feature
@profanity @SmokeTests
Scenario: Verify PurgoMalum containsprofanity api status
Given I send the get request to the 'containsprofanity' api
Then the status code should be success
@xml @SmokeTests
Scenario: Verify PurgoMalum xml api status
Given ... |
# Test accessing glTexCoordIn without redeclaration but with constant indices.
#
# From the ARB_geometry_shader4 spec (section ):
# "Indices used to subscript gl_TexCoord must either be an integral constant
# expressions, or this array must be re-declared by the shader with a size."
[require]
GL >= 2.0
GLSL >= 1.10
GL_... |
import { render, fireEvent } from '@testing-library/react'
import { it, vi } from 'vitest'
import { ProgressBar } from '.'
describe('Component: ProgressBar', () => {
beforeEach(() => {
vi.resetAllMocks()
})
it('renders with right timer', () => {
const timer = { time: 0, start: () => null, reset: () => n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.