text stringlengths 184 4.48M |
|---|
// Distant Lands 2022.
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace DistantLands.Cozy.Data
{
[System.Serializable]
[CreateAssetMenu(menuName = "Distant Lands/Cozy/FX/Event FX", order = 361)]
public class EventFX : FXProfile
{
public CozyEventModule events;
... |
package top.sharehome.demo03flow;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.Flow;
import java.util.concurrent.SubmissionPublisher;
/**
* Flow示例代码
* 这里演示的是Reactive Streams规范的示例代码,它存在于Java9+版本JUC包下Flow类中。
* 这个类似于Kafka或者RabbitMQ这样的消息队列,在这个规范中有四个组件:
* 1、发... |
# Copyright 2023 Synnax Labs, Inc.
#
# Use of this software is governed by the Business Source License included in the file
# licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with the Business Source
# License, use of this software will be governed by the Apache License, Version 2.... |
import React from 'react'
import { Form, Row, Col, ListGroup, Image, Button, Card } from 'react-bootstrap'
import { FaTrash } from 'react-icons/fa'
import { useDispatch, useSelector } from 'react-redux';
import { Link, useNavigate } from 'react-router-dom';
import Message from '../components/Message';
import { addToCar... |
import React from "react";
import styled from "styled-components";
const Start = styled.div`
width: 15rem;
margin: auto;
padding-top: 10rem;
`
const Button = styled.button`
background-color: black;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-s... |
import 'dart:io';
import 'package:dartz/dartz.dart';
import 'package:dio/dio.dart';
import 'package:template_clean_architecture/core/error/failure.dart';
import 'package:template_clean_architecture/core/resource/constant/api_list.dart';
import 'package:template_clean_architecture/features/auth/data/data.dart';
import ... |
import React from 'react';
import Matter from 'matter-js';
import { Image } from 'react-native';
import { array, object, string } from 'prop-types';
const airplane = require('../assets/airplane.png');
const Plane = (props) => {
const width = props.size[0];
const height = props.size[1];
const x = props.body.posi... |
from pathlib import Path
from typing import TYPE_CHECKING, Any, Union, cast
from tarina import lang
from nonebot.internal.driver import Request
from nonebot.adapters import Bot, Event, Message
from ..export import Target, MessageExporter, SerializeFailed, export
from ..segment import At, File, Text, AtAll, Audio, Emo... |
<template>
<div>
<!--Stats cards-->
<div class="row">
<div class="col-md-6 col-xl-4" v-for="stats in statsCards" :key="stats.title">
<stats-card>
<div class="icon-big text-center" :class="`icon-${stats.type}`" slot="header">
<i :class="stats.icon"></i>
</div>
... |
import PropTypes from 'prop-types';
import React, { useState, useEffect } from 'react';
import { getAllProducts, getAllSales, getSellersUsers } from '../axios';
import DeliveryContext from './DeliveryContext';
function DeliveryProvider({ children }) {
const [itemsInCart, setItemsInCart] = useState([]);
const [prod... |
package xyz.wagyourtail.jsmacros.client.api.event.impl.world;
import net.minecraft.client.gui.hud.ClientBossBar;
import xyz.wagyourtail.doclet.DocletEnumType;
import xyz.wagyourtail.doclet.DocletReplaceReturn;
import xyz.wagyourtail.jsmacros.client.api.helpers.world.entity.BossBarHelper;
import xyz.wagyourtail.jsmacro... |
//
// WorkingWithDataPlayground.swift
// Navigation
//
// Created by Mauro Grillo on 03/02/2024.
//
import SwiftUI
// MARK: Programmatic navigation with NavigationStack
struct WorkingWithDataPlayground: View {
@State private var path = [Int]()
var body: some View {
NavigationStack(path: $path) {
... |
public class BackupCampaignMember{
/*
<apex:page standardController="Campaign" extensions="CampaignMemberRelatedListController">
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" />
<apex:includeScript value="//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.17.8/j... |
import { DayEntry } from 'src/app/model-classes/nutrition-log/day-entry';
import { NutritionLog } from 'src/app/model-classes/nutrition-log/nutrition-log';
import { TestHelpers } from 'src/app/services/general/testHelpers';
import { AngularFirestore } from '@angular/fire/firestore';
import { AuthenticationService } fro... |
package com.example.roomempresas.list
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View... |
//
// LockControlItem.swift
// BetterKia-iOS
//
// Created by Joschua Haß on 19.02.23.
//
import SwiftUI
struct LockControlItem: View {
@ObservedObject var vehicleManager: VehicleManager
@State var isBusy = false;
var body: some View {
Button {
if (vehicleManager.isVehicleLocke... |
/****************************************************************************
**
** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (developer.feedback@nokia.com)
**
** This file is part of the HbWidgets module of the UI Extensions for Mobile.... |
import {
AfterViewInit,
Component,
ElementRef,
EventEmitter,
Input,
OnChanges,
OnDestroy,
Output,
ViewChild,
} from '@angular/core';
import {
MemberFilterTile,
type MemberFilterTileProps,
ComponentAdapter,
createElement,
} from '@sisense/sdk-ui-preact';
import { SisenseContextService } from '.... |
/*
* StkAnalystenschaetzung.java
*
* Created on 13.07.2006 07:06:22
*
* Copyright (c) MARKET MAKER Software AG. All Rights Reserved.
*/
package de.marketmaker.istar.merger.web.easytrade.block;
import de.marketmaker.istar.domain.data.HistoricEstimates;
import de.marketmaker.istar.domain.instrument.Quote;
import d... |
import { randomBytes } from 'crypto';
const capitalLetters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const capitalLettersLength = capitalLetters.length;
const numbers = '0123456789';
const numbersLength = numbers.length;
/**
* Generates a random name in the format "ADA DAD ADA" where:
* A: is alphabetic character A-Z
* ... |
// db.ts
import Dexie, { type Table } from 'dexie';
import { indexedDB, IDBKeyRange } from "fake-indexeddb";
export interface Match {
matchNum: number;
competition: number;
teams: Array<number>;
students: Array<number>;
studentAssignments: Record<number, Assignment>;
quantitativeData: Record<number, Quant... |
from time import sleep
from selenium.webdriver.remote.webelement import WebElement
class elements_list_not_empty(object):
def __init__(self, locator: tuple, pooling_timeout=0):
self.locator = locator
self.pooling_timeout = pooling_timeout / 1000
def __call__(self, driver):
sleep(self... |
import React from "react";
import "./experience.css";
import ExperienceContent from "./ExperienceContent";
const experience = [
{
title: "Frontend Development",
skills: [
"HTML",
"CSS/SASS",
"Javascript",
"TypeScript",
"React",
"Wordpress",
],
},
{
title: "Back... |
#include <cs50.h>
#include <stdio.h>
int get_cents(void);
int calculate_quarters(int cents);
int calculate_dimes(int cents);
int calculate_nickels(int cents);
int calculate_pennies(int cents);
int main(void)
{
// Ask how many cents the customer is owed
int cents = get_cents();
// Calculate the number of... |
import { useContext, useEffect, useState } from 'react';
import {SocketContext} from '../../Context/SocketContext'
import { Card, CardContent } from '@mui/material';
import { useNavigate, useLocation } from 'react-router-dom';
import BidHistoryTable from "../content/AuctionRoomBidTable";
import ChatBox from "../content... |
package dao;
import business.User;
import java.security.NoSuchAlgorithmException;
/**
* @author playerzer0-ui
*/
public interface UserDaoInterface {
/**
* register a user to the database
* @param username the username
* @param email the email
* @param password the password
* @param ad... |
import { Link } from "react-router-dom";
import { useEffect, useState } from "react"; //for hooking
import axios from "axios"; // used in fetching http request to the server
import StudentSideBar from "../../student/StudentSideBar";
import { Container } from "../../../componentcss/styledcss/Container.styled";
//import ... |
#include "userManager.h"
#include "user.h"
#include <QTextStream>
#include <QSqlQuery>
#include <QDebug>
#include <QSqlError>
#include <QCoreApplication>
#include <QDir>
#include <QSql>
#include <QSqlDatabase>
using namespace std;
UserManager::~UserManager()
{
qDeleteAll(m_users);
m_users.clear();
}
UserManag... |
import { fetchComments, addComment, editPost, deleteComment } from '../api/axios'
import { SendOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons'
import React, { useState, useEffect } from 'react'
import { Button, Input, Space } from 'antd'
import { useUser } from '../UserContext'
import { Link } from 'r... |
use super::Resource;
use crate::{
any::FruityAny,
introspect::{IntrospectFields, IntrospectMethods},
script_value::{ScriptValue, TryFromScriptValue, TryIntoScriptValue},
sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard},
FruityError, FruityResult,
};
use fruity_game_engine_macro::typescript;
us... |
use std::ffi::OsStr;
#[derive(Debug, Clone)]
pub enum MimeType {
Jshp,
Html,
Css,
Txt,
Xml,
Jpeg,
Gif,
Webp,
Png,
Svg,
Icon,
OctetStream,
Js,
Json,
}
impl MimeType {
pub fn to_content_type_string(&self) -> String {
match self {
// TODO ... |
using H3LibraryProject.API.DTOs;
using H3LibraryProject.Repositories.Database;
using H3LibraryProject.Repositories.Repositories;
using H3LibraryProject.Services.Services;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespa... |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { AllUsersComponent } from './containers/all-users/all-users.component';
import { CreateUserComponent } from './containers/create-user/create-user.component';
import { EditUserComponent } from './containers/edit-user/edit-u... |
import React from 'react'
import Typography from '@mui/material/Typography'
import { Avatar, List } from '@mui/material'
import { CalendarMonth, LocationCity, Person } from '@mui/icons-material'
import {
AvatarItem,
TextItem
} from '../../../../atoms/Home/ProjectsContainer/Card'
interface ListAboutProjectProps {
... |
package com.Security.SpringSecurity.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWe... |
<html>
<head>
<title>Sapphire</title>
</head>
<body>
<div id="container"></div>
<script src="https://visjs.github.io/vis-network/standalone/umd/vis-network.min.js"></script>
<script type="text/javascript">
var ws;
var visNodes = null
var visEdges = null
var previousData = null;
if (window.Web... |
import React, { useContext } from 'react'
import { ProductContext } from '../context/ProductContext';
import { Button, Card, Container } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import { useParams } from 'react-router-dom';
import { useCart } from 'react-use-cart';
import { ToastC... |
const { ShareDoesntValidError, ShareCreatedSuccessfully, ShareUpdatedSuccessfully } = require('../messages/messages')
const container = require('../../src/container');
class ShareController {
constructor() {
this.ShareRepository = container.resolve('ShareRepository');
}
async getShareByName(req, ... |
---
title: "Running GBRS"
teaching: 60
exercises: 60
---
:::::::::::::::::::::::::::::::::::::: questions
- How do I run GBRS on my FASTQ files at JAX?
- How do I run GBRS on my FASTQ files at another institution?
::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::: objectives
- ... |
import { useMemo } from 'react';
import { useForm } from 'react-hook-form';
import { useLocation } from 'react-router-dom';
import NavLink from '@components/NavLink';
import Sidebar from '@components/Sidebar';
import { scale } from '@scripts/helpers';
import { useFieldCSS } from '@scripts/hooks/useFieldCSS';
interfa... |
import "../App.css";
import { useState, useRef } from "react";
import { Button, Form } from "react-bootstrap";
import axios from "axios";
import { LeafletContainer } from "../maps/formMap/leaflet-container";
import { LeafletMap } from "../maps/formMap/leaflet-map";
import { LeafletContainer1 } from "../maps/formMap/for... |
from django.shortcuts import get_object_or_404, render, redirect
from django.contrib import messages
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
from .forms import UserUpdateForm, ProfileUpdateForm, RegisterForm
def register(request):
if request.method ==... |
import {
useFonts,
Poppins_900Black,
Poppins_400Regular,
Poppins_500Medium,
Poppins_700Bold,
Poppins_600SemiBold,
} from "@expo-google-fonts/poppins";
import SignIn from "@modules/Authentication/SignIn";
import SignUp from "@modules/Authentication/SignUp";
import Welcome from "@modules/Authentic... |
package com.mall.common.utils;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.ObjectMapper;
public class FuyouResult {
// 定义jackson对象
private static final ObjectMapper MAPPER = new ObjectMapper();
// 响应业务状态
private Integer status;
//... |
<script>
import { onMount, createEventDispatcher } from "svelte";
import { createTimer } from "./stores.js";
import { jiggleJS as jiggle, scaleJS as scale, scaleCSS } from "./utils.js";
const dispatch = createEventDispatcher();
export let delay = 5;
export let countdown = 20;
let isDelay;
let isCoun... |
import 'package:adf_provider/provider/produto_model.dart';
import 'package:adf_provider/provider/produto_widget.dart';
import 'package:adf_provider/provider/user_model.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class ProviderPage extends StatelessWidget {
const ProviderPa... |
{
type NetworkErrorState = {
result: 'fail';
reason: 'offline' | 'down' | 'timeout';
};
type SuccessState = {
result: 'success';
};
type ResultState = SuccessState | NetworkErrorState;
class NetworkClient {
tryConnect(): ResultState {
return {
result: 'fa... |
package jpabook.jpashop.repository.order.query;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Entity가 아닌 화면이나 API용으로 DTO들을 가져올 때 (화면에 FIT하게)
*
*... |
'''
Clasa care incapsuleaza implementarea modelului de ACP
'''
import numpy as np
def standardise(x):
'''
x - data table, expect numpy.ndarray
'''
means = np.mean(x, axis=0)
stds = np.std(x, axis=0)
Xstd = (x - means) / stds
return Xstd
class PCA:
# constructorul primeste o matrice X ... |
import Foundation
protocol NetworkManagerProtocol {
func fetchProducts(completion: @escaping (Result<[Product], Error>) -> Void)
}
class StoreClient: NetworkManagerProtocol {
static let shared = StoreClient()
private init() {}
private let apiUrl = "https://fakestoreapi.com/products"
... |
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
final phoneProvider = StateProvider<String>((ref) => '');
class PhoneTextField extends ConsumerWidget {
final _labelFont = const TextStyle(
fontSize: 12,
color: Color.fromARGB(255, 145, 146, 150),
heig... |
* Vuex Store
*
* The store of the application.
*
* http://vuex.vuejs.org/en/index.html
*/
import Vuex from 'vuex';
import createLogger from 'vuex/dist/logger';
// Modules
import account from './modules/account';
import auth from './modules/auth';
import navigation from './modules/navigation';
const debug = pr... |
import { FastifyInstance } from 'fastify'
import { z } from 'zod'
import { randomUUID } from 'crypto'
import { checkSessionIdExists } from '../middlewares/check-session-id-exists'
import { knex } from '../database'
export async function mealsRoutes(app: FastifyInstance) {
app.get(
'/',
{
preHandler: [c... |
use anyhow;
use cpal::{
traits::{DeviceTrait, HostTrait, StreamTrait},
FromSample, SizedSample,
};
use ljud::*;
// see the `full` folder for the params
const ELEVATION: &str = "-20";
const AZIMUTH: &str = "270";
// const AZIMUTH: &str = "090";
// const AZIMUTH: &str = "000";
fn main() -> anyhow::Result<()> {
... |
import { Injectable } from '@angular/core';
import { FormControl, Validators } from '@angular/forms';
import { PLLodashService } from '../pl-lodash/pl-lodash.service';
function _isModelEmpty(model: any) {
let emptyVal: boolean = !model || (Array.isArray(model) && !model.length);
// File model is an object - n... |
from collections import OrderedDict
import os
from django.utils._os import safe_join
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from django.core.files.storage import FileSystemStorage
from django.contrib.sta... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
import "../Base.sol";
import "../rewards/ERC20.sol";
import "../rewards/ERC1155.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC1155.sol"... |
# TFT helper
## Description
This project is designed to automate certain actions within a game environment. It utilizes image recognition through Google Tesseract OCR to read text from the game screen and perform actions based on predefined conditions. The script can start and stop gameplay, find matches, accept matc... |
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# 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 appli... |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
* gtimer.c
* Copyright (C) 2013 Jente Hidskes <jthidskes@outlook.com>
*
* gtimeutils 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 F... |
# -*- coding: utf-8 -*-
import scrapy
import datetime
import time
import scrapy
import re
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from yqc_tianjin_spider.items import YqcTianjinSpiderItem
keys = ['创新',
'创业',
'改革',
'促进',
'发展',
... |
https://leetcode.com/problems/apples-oranges/
# Write your MySQL query statement below
/**
One Table: Sales
(sale_date, fruit) is the primary key for Sales table.
Sales table contains the sales of "apples" and "oranges" sold each day.
PROBLEM: report the difference between the number of apples and oranges sold each ... |
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title th:text="${post.title}">Document</title>
<link rel="icon" href="/assets/icon.png">
<link rel="stylesheet" href="/css/style... |
use helpers::C;
use sov_bank::{get_token_address, Bank, BankConfig, CallMessage, Coins, TotalSupplyResponse};
use sov_modules_api::default_context::DefaultContext;
use sov_modules_api::utils::generate_address;
use sov_modules_api::{Address, Context, Error, Module, WorkingSet};
use sov_prover_storage_manager::{new_orpha... |
require("dotenv").config();
const { Sequelize, Op } = require("sequelize");
const fs = require("fs");
const path = require("path");
const { DB_USER, DB_PASSWORD, DB_HOST } = process.env;
const sequelize = new Sequelize(
`postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}/edarkostore`,
{
logging: false, // set to ... |
--문제 설명
--다음은 어느 한 서점에서 판매중인 도서들의 도서 정보(BOOK), 판매 정보(BOOK_SALES) 테이블입니다.
--
--BOOK 테이블은 각 도서의 정보를 담은 테이블로 아래와 같은 구조로 되어있습니다.
--
--Column name Type Nullable Description
--BOOK_ID INTEGER FALSE 도서 ID
--CATEGORY VARCHAR(N) FALSE 카테고리 (경제, 인문, 소설, 생활, 기술)
--AUTHOR_ID INTEGER FALSE 저자 ID
--PRICE INTEGER FALSE 판매가 (원)
--PUBL... |
import 'package:tpt_frontend/feature/setting/widgets/edit_profile_widget.dart';
import 'package:tpt_frontend/feature/setting/widgets/profile_picture_reset_password_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_iconly/flutter_iconly.dart';
import 'package:get/get.dart';
import 'package:tp... |
# 🔑 Liveness, Readiness, Resource Limits, Env. Variables
## Liveness Probes
Bazen container’ların içerisinde çalışan uygulamalar, tam anlamıyla doğru çalışmayabilir. Çalışan uygulama çökmemiş, kapanmamış ama aynı zamanda tam işlevini yerine getirmiyorsa kubelet bunu tespit edemiyor.
Liveness, sayesinde container’a ... |
#include "main.h"
/**
* print_triangle - prints a triangle
* @size: takes a value
*
* Description: a function that prints a triangle
* followed by a new line.
* Return: 0 always success
*/
void print_triangle(int size)
{
int i;
int j;
if (size <= 0)
{
_putchar('\n');
}
for (i = 0; i < size; i++)
{
... |
import { Injectable } from '@angular/core';
import { BehaviorSubject, Subject } from 'rxjs';
import { CartItem } from '../common/cart-item';
@Injectable({
providedIn: 'root'
})
export class CartService {
cartItems: CartItem[];
/* Subject is a sublacc of Observable.
We can use Subject to publish event in our ... |
import { createApp } from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import axios from "axios";
axios.interceptors.request.use(
(config) => {
// Exclude login route from setting Authorization header
if (config.url !== `${p... |
.TH haveged 8 "February 10, 2014" "version 1.9" "SYSTEM ADMINISTRATION COMMANDS"
.SH NAME
haveged \- Generate random numbers and feed linux random device.
.SH SYNOPSIS
.B haveged [options]
.SH DESCRIPTION
.B haveged
generates an unpredictable stream of random numbers harvested from the indirect
effects of hardware eve... |
import React, { useState } from 'react'
import './EditProfil.css';
import { IMG_BASE } from '../../App';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPen, faX } from '@fortawesome/free-solid-svg-icons';
import { useTranslation } from 'react-i18next';
import { useCookies } from 'react-coo... |
/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2023 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the files rela... |
class NFA:
def __init__(self, states, alphabet, transitions, start_state, accept_states):
self.states = states
self.alphabet = alphabet
self.transitions = transitions
self.start_state = start_state
self.accept_states = accept_states
def process_input(self, input_string):... |
import {matchDetailData} from './../mockup/data';
import {base} from './../util/base';
let table = {
props: ['players'],
template: `
<table class="table">
<thead>
<tr class="table-head">
<th>玩家头像</th>
<th>英雄</th>
<... |
package pure_test
import (
"context"
"errors"
"reflect"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/redpanda-data/benthos/v4/internal/component/testutil"
"github.com/redpanda-data/benthos/v4/internal/manager/mock"
"github.com/redpanda-data/benthos/v4/inte... |
// Name: archive.h
// Purpose: interface of wxArchive* classes
// Author: wxWidgets team
// Licence: wxWindows licence
/**
@class wxArchiveInputStream
This is an abstract base class which serves as a common interface to
archive input streams such as wxZipInputStream.
wxArchiveIn... |
//
// Copyright (c) 2013-2015 Antti Karhu.
//
// 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, copy, modify, merge, p... |
/***************************************************************************
*
* Copyright Kai Özer, 2003-2018
*
* This file is part of MI-SUGAR.
*
* MI-SUGAR 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 Foun... |
/*
* This file is part of the ScaleGraph project (http://scalegraph.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.c :+: :+: :+: ... |
package com.msc.cache;
/**
* This class acts as a wrapper for any Cacheable java object being placed on a Cache.
* It is the class responsible for controling the statistics of each entity, for proper analisys
* of clean up, notification and loading mechanisms of the CacheManager.
*
* @author <a href="mailto:mscal... |
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.10;
import "../interfaces/components/IUserDepositManager.1.sol";
import "../libraries/LibSanitize.sol";
import "../state/river/BalanceToDeposit.sol";
/// @title User Deposit Manager (v1)
/// @author Kiln
/// @notice This contract handles the inbound transfers ... |
use winit::event_loop::{ControlFlow, EventLoop};
use winit::window::{Window, WindowBuilder};
use cgmath::*;
use wgpu::{Device, Queue, Surface, SurfaceConfiguration};
use winit::dpi::PhysicalSize;
use winit::event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent};
use winit::platform::unix::EventLoopExt... |
package com.androiddevs.shoppinglisttestingyt.ui
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.androiddevs.shoppinglisttestingyt.data.local.ShoppingItem
... |
package org.frameworkset.elasticsearch.imp;
/**
* Copyright 2020 bboss
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* ... |
<?php
namespace App\Http\Requests\Auth\Sessions;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\ValidationException;
class Store extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array... |
package md.utm.isa.ruleengine.statement;
import com.bpodgursky.jbool_expressions.*;
import com.bpodgursky.jbool_expressions.parsers.ExprParser;
import com.bpodgursky.jbool_expressions.rules.RuleSet;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
public class St... |
import Foundation
import Combine
protocol ListCitiesNavigationHandler {
func listModelDidRequestToPresentCityWeatherInfo(
_ model: ListCitiesModel,
cityModel: CityModel?,
lon: Double?,
lat: Double?
)
}
final class ListCitiesModel {
private let navigationHandl... |
package com.challenge.api.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPT... |
import React from 'react';
import './ReviewItem.css';
import { faCoffee,faTrashAlt } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
const ReviewItem = ({product,handleRemoveButton}) => {
const{id,name,price,quantity,shipping,img} = product;
return (
... |
---
title: "DNA methylation measurement"
subtitle: "Multi-resolution analysis"
author: "Piero Palacios Bernuy"
format: html
editor: visual
---
## Loading data
```{r}
library(minfi)
library(IlluminaHumanMethylation450kmanifest)
library(IlluminaHumanMethylation450kanno.ilmn12.hg19)
library(tidyverse)
library(TxDb.Hsapi... |
import { custom } from 'assets/iconsets'
import { createVuetify } from 'vuetify'
import { aliases, mdi } from 'vuetify/iconsets/mdi'
export default defineNuxtPlugin((NuxtApp) => {
const vuetify = createVuetify({
ssr: true,
icons: {
defaultSet: 'mdi',
aliases,
sets: {
mdi,
c... |
//
// iTermRule.m
// iTerm
//
// Created by George Nachman on 6/24/14.
//
//
#import "iTermRule.h"
#import "NSStringITerm.h"
@interface iTermRule()
@property(nonatomic, copy) NSString *username;
@property(nonatomic, copy) NSString *hostname;
@property(nonatomic, copy) NSString *path;
@property(nonatomic, readwrite... |
'use client';
import { MagnifyingGlassIcon } from '@heroicons/react/24/outline';
import { useSearchParams, usePathname, useRouter } from 'next/navigation';
import { useDebouncedCallback } from 'use-debounce';
export default function Search({ placeholder }: { placeholder: string }) {
const searchParams = useSearchPa... |
//
// ListRowView.swift
// Todo
//
// Created by krishna on 05/06/24.
//
import SwiftUI
struct ListRowView: View {
@Binding var task: Task
var body: some View {
HStack{
Image(systemName: task.isDone ? "checkmark.circle.fill" : "checkmark.circle")
.foregroundColor(task.is... |
const allQuestions = [
{
question: "¿Cuál es el piloto con más campeonatos de Fórmula 1?",
options: ["Lewis Hamilton", "Michael Schumacher", "Juan Manuel Fangio"],
answer: "Michael Schumacher",
},
{
question: "¿Qué equipo ha ganado más campeonatos de constructores?",
options: ["Ferrari", "Merc... |
package helloworld.lin.com.databasetest.ZhangFourteen;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
i... |
import 'package:flutter/material.dart';
import 'package:great_places_new/providers/grate_places.dart';
import 'package:great_places_new/screens/places_list_screen.dart';
import 'package:great_places_new/utils/app_routes.dart';
import 'package:provider/provider.dart';
import '../screens/place_form_screen.dart';
void ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.