text
stringlengths
27
775k
import csv from pathlib import Path from typing import Dict, List, Text, Tuple import itertools import pytest import numpy as np from rasa.core.evaluation.marker_stats import ( EventMetaData, MarkerStatistics, compute_statistics, ) def test_compute_statistics_on_empty_set(): result = compute_statist...
--- -api-id: T:Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadStatus -api-type: winrt enumeration --- <!-- Enumeration syntax. public enum OfflineMapPackageStartDownloadStatus : int { DeniedWithoutCapability = 3 InvalidCredentials = 2 Success = 0 UnknownError = 1 } --> # Windows.Ser...
package org.infuser interface Provider<T> { fun provide(module: Module): T } fun <T> instance(value: T): Provider<T> = object : Provider<T> { override fun provide(module: Module): T = value } fun <T> singleton(constructor: Module.() -> T): Provider<T> = object : Provider<T> { private val NOT_INITIALIZED ...
/* gtk_support.c * GTK Support functions * * Yersinia * By David Barroso <tomac@wasahero.org> and Alfredo Andres <slay@wasahero.org> * Copyright 2005 Alfredo Andres and David Barroso * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
<?php use frontend\service\UrlService; use frontend\service\StaticService; //Yii::$app->getView()->registerJs('/js/role/set.js', \frontend\assets\AppAsset::className()); StaticService::includeAppJsStatic('/js/role/set.js', \frontend\assets\AppAsset::className()) ?> <div class="row"> <div class="col-lg-12"> ...
mkdir data cd data wget https://nlp.stanford.edu/projects/snli/snli_1.0.zip unzip snli_1.0.zip cd .. python preprocess-snli.py cd data mkdir quora cd quora wget http://qim.ec.quoracdn.net/quora_duplicate_questions.tsv cd .. cd .. python preprocess-quora.py cd data wget https://www.nyu.edu/projects/bowman/multinli/multi...
package org.firezenk.kartographer.pages.page1 import android.content.Context import android.view.View import android.widget.FrameLayout import kotlinx.android.synthetic.main.page_view.view.* import org.firezenk.kartographer.R import org.firezenk.kartographer.SampleApplication import org.firezenk.kartographer.animation...
package com.thirdwavelist.coficiando.settings.presentation import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.thirdwavelist.coficiando.core.di.qualifiers.FeedbackLink import com.thirdwavelist.coficiando.core.di.qualifiers.PrivacyPolicyLink import...
module.exports = { // bar: require('./bar') // menu: require('./menu') }
require 'net/https' require 'uri' module Bosh::Dev class DownloadAdapter def initialize(logger) @logger = logger end def download(uri, write_path) @logger.info("Downloading #{uri} to #{write_path}") FileUtils.mkdir_p(File.dirname(write_path)) download_file(URI(uri), write_path) ...
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'bson/version' Gem::Specification.new do |s| s.name = 'bson' s.version = BSON::VERSION s.authors = ['Tyler Brock', 'Durran Jordan', 'Brandon Black', 'Emily Stolfo', 'Gary Mu...
package stack_queue func simplifyPath(path string) string { tmp := make([]byte, 0) res := stack{ nums: make([]byte, 0), } newPath := make([]byte, 0) for i := 0; i < len(path); i++ { newPath = append(newPath, path[i]) } newPath = append(newPath, '/') path = string(newPath) for i := 0; i < len(path); i++ { ...
package io.altoo.akka.serialization.kryo.testkit import java.io.{ByteArrayInputStream, ByteArrayOutputStream} import com.esotericsoftware.kryo.Kryo import com.esotericsoftware.kryo.io.{Input, Output} import com.esotericsoftware.kryo.util.MapReferenceResolver import io.altoo.akka.serialization.kryo.serializer.scala.Su...
<?php final class DifferentialRevisionPackageOwnerHeraldField extends DifferentialRevisionHeraldField { const FIELDCONST = 'differential.revision.package.owners'; public function getHeraldFieldName() { return pht('Affected package owners'); } public function getFieldGroupKey() { return HeraldRelat...
//! simple actor framework use std::future::Future; use std::marker::PhantomData; use tokio::sync::mpsc; use tokio::task::JoinHandle; use crate::core::AsyncSystem; use crate::tokio::TokioSystem; /// address of actor pub type Addr<T> = mpsc::UnboundedSender<T>; /// Message box for actors pub type MailBox<T> = mpsc:...
2020年12月16日03时数据 Status: 200 1.在上海的张韶涵和在吉林的张韶涵 微博热度:277765 2.杭州狂犬病脑死亡女生父亲发声 微博热度:219652 3.王菲的有机生活 微博热度:211417 4.丁真说想来北京看升国旗 微博热度:186711 5.有翡湖北影视开播 微博热度:178401 6.年轻人情绪衰竭的征兆 微博热度:141430 7.杜华朋友圈道歉 微博热度:139364 8.四川逐步取消现场宰杀销售活禽 微博热度:92215 9.希拉里称应该废除选举人团制度 微博热度:75111 10.嫪毐戏份多 微博热度:72775 11.张丹峰 洪欣 微博热度:6...
# Governance Security TAG is a [CNCF Technical Advisory Group](https://github.com/cncf/toc/tree/main/tags). * [Charter](charter.md) - mission and scope * [Roles](roles.md) - the work of the group is facilitated by Chairs, Technical Leads, and active group members * [Process](process.md) - how projects are proposed ...
// See LICENSE.txt for license details. package fringe.test import chisel3.iotesters.PeekPokeTester import fringe.templates.math.PRNG import org.scalatest.Assertions._ class PRNGTests(c: PRNG) extends PeekPokeTester(c) { step(1) reset(1) val numShifts = 10000 var numbers = List[BigInt]() for (i <- 0 until n...
import 'dart:convert'; import 'package:auto_ide/src/common/common.dart'; import 'package:auto_ide/src/home_page.dart'; import 'package:auto_ide/src/provider/provider.dart'; import 'package:auto_ide/src/storage/kv_storage.dart'; import 'package:file_selector/file_selector.dart'; import 'package:flutter/cupertino.dart';...
USE `sss`; SELECT s.`name`, COUNT(`product_id`) AS `product_count`, ROUND(AVG(p.`price`), 2) AS `avg` FROM `stores` AS s LEFT JOIN `products_stores` AS ps ON s.`id` = ps.`store_id` LEFT JOIN `products` AS p ON ps.`product_id` = p.`id` GROUP BY s.`id` ORDER BY product_count DESC...
<div class="panel panel-custom"> <div class="panel-heading"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <h4 class="modal-title">Paying <strong><?= display_money($invoice_i...
/* global describe, it */ import assert from 'power-assert' import SimpleDOMTransmitter from '@/simple-dom-transmitter' describe('SimpleDOMTransmitter', () => { describe('element is null', () => { it('throws ElementUndefined', () => { assert.throws( () => SimpleDOMTransmitter.init({ src: null }),...
<?php class Pertemuan7 extends CI_Controller { // set pertama x muncul public function index() { $this->load->view('view_pertemuan7'); } public function cetak() { $this->form_validation->set_rules('nama', 'nama Pertemuan7', 'trim|required|min_length[4]', [ 'required' => 'Nama harus di isi', ...
# Chapter 3 https://pwa.xgqfrms.xyz > This chapter covers the following: - The basics of HTTP caching - The basics of caching using Service Workers - Precaching during Service Worker installation - Intercept and cache - A performance comparison: before and after caching - Diving deeper into Service Worker caching #...
// Libraries import React, { useState, useEffect, useCallback, useMemo } from 'react' import PropTypes from 'prop-types' import { useForm } from 'react-hook-form' import { object } from 'yup' import get from 'lodash/get' import isEmpty from 'lodash/isEmpty' import map from 'lodash/map' import merge from 'lodash/merge' ...
package org.mulesoft.als.common.edits.codeaction import org.mulesoft.als.common.edits.AbstractWorkspaceEdit import org.mulesoft.lsp.feature.codeactions.CodeAction import org.mulesoft.lsp.feature.codeactions.CodeActionKind.CodeActionKind case class AbstractCodeAction(title: String, kind: ...
class Almanac < Weatherzone::Resource attributes :month_num, :month_name, :date_start, :date_end elements :almanac_period, :as => :almanac_periods, :class => AlmanacPeriod def mtd @mtd ||= almanac_periods.detect { |ap| ap.code == "MTD" } end def ytd @ytd ||= almanac_periods.detect { |ap| ap.cod...
using Gurobi env = Gurobi.Env() JuDGE_MP_Solver = optimizer_with_attributes(() -> Gurobi.Optimizer(env), "OutputFlag" => 0, "Method" => 2, "Crossover" => 0, "MIPGap" => 0.0) JuDGE_SP_Solver = optimizer_with_attributes(() -> Gurobi.Optimizer(env), "OutputFlag" ...
SELECT Name AS Game, CASE WHEN DATEPART(Hour, Start) BETWEEN 0 AND 11 THEN 'Morning' WHEN DATEPART(Hour, Start) BETWEEN 12 AND 17 THEN 'Afternoon' WHEN DATEPART(Hour, Start) BETWEEN 18 AND 24 THEN 'Evening' END AS [Part of the Day], CASE WHEN Duration IS NULL THEN 'Extra Long' WHEN CAST(Duration AS int)...
<?php namespace AppBundle\Command; use AppBundle\Command\BaseCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class MyCollectCommand extends BaseCommand { protected $config_params = ['name' => "spidertest", 'd...
package payment import ( "bytes" "encoding/json" "fmt" "net/http" "strconv" "github.com/s4mu3lb/africastalking-go/util" ) // Service is a service type Service struct { Username string APIKey string Env string } // NewService creates a new Service func NewService(username, apiKey, env string) Service...
import { DeviceGL } from '../webgl' import { OffsetStateGL } from '../webgl/states' import { OffsetStateParams } from './OffsetState' describe('glib/graphics/OffsetState', () => { let device: DeviceGL let stateA: OffsetStateGL let stateB: OffsetStateGL let stateC: OffsetStateGL let paramsA: OffsetStateParam...
(ns advent2020.puzzles (:require [clojure.string :as str] [clojure.set :as cs] [clojure.java.io :refer [resource]] [clojure.edn :as edn])) (defn find-two-twenty [input] (time (let [smallNumbers (filter #(<= % 1010) input)] (filter int? (map (fn [small] ...
//---------------------------------------------- // File: RoomWanderer.cs // Authors: Daghan Demirci, Ömer Akyol,Yunus Emre Yaman // Copyright © 2014 Inspire13 //---------------------------------------------- using UnityEngine; using System.Collections; public class RoomWanderer : MonoBehaviour { #region Fields ...
import React from "react"; import { IFormProps, FormHandler } from ".."; export interface IFormViewAutoProps<T> { title?: string; defaultLocked?: boolean; maxNodes?: number; minNodes?: number; FormElement?: (props: IFormProps<T>) => JSX.Element; formHandlerRef: React.MutableRefObject<FormHandler...
# markx Markx is a markdown parser built with Rust # Usage ```rust use markx::html::mark2html; fn main(){ let input = fs::read_to_string("tests/test4.md").unwrap(); let html = mark2html(&input); println!("{:?}", html) } ```
module AffiliatesHelper # def number_people_affiliate(id) # ra = Record.where affiliate_id: id # end # def fin_affiliate(id) # end end
package com.example.android.sunshine.app; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Geo { @SerializedName("lat") @Expose private String lat; @SerializedName("lng") @Expose private String lng; /** * * @return ...
require 'spec_helper' describe RSpecCandy::Helpers::Rails::PreventStorage do describe ActiveRecord::Base do describe '#prevent_storage' do context 'when attempting to save the record afterwards' do it 'should run validations' do klass = Model.disposable_copy do validate :v...
<?php chdir('..'); include 'common.inc'; require_once('video/avi2frames.inc.php'); require_once('archive.inc'); set_time_limit(1200); ignore_user_abort(true); header ("Content-type: text/plain"); if (ValidateTestId($id)) { $start = microtime(true); RestoreTest($id); ReprocessVideo($id); // If the test was alre...
// SPDX-FileCopyrightText: 2021 Sveriges Television AB // // SPDX-License-Identifier: Apache-2.0 package se.svt.oss.android.streaming.cache /** * Defer construction of containing element until needed. * * Note that this class is not thread-safe! */ class SingleElementCache<K, V>(private val provider: suspend (K) ...
/** * This file implements random number generation using a PCG-XSH-RR generator. Some elements of this file are based * on the pcg-c-basic library (https://github.com/imneme/pcg-c-basic), which is also distributed under the Apache 2.0 * license. More specifically, the file these elements are modelled after contai...
@extends('master') @section('content') <h1> Slips </h1> <hr/> <table class="table table-striped table-responsive"> <thead> <tr> <th>Name</th> <th>Map</th> <th>Houses</th> </tr> </thead> <tbody> @foreach ($slips as $slip) <tr> <td> <a href= "{{ action('S...
package main import . "LeetCode-GoSol/Utils" func plusOne(head *ListNode) *ListNode { next := carry(head) if next { newHead := ListNode{1, head} return &newHead } else { return head } } func carry(head *ListNode) bool { if head == nil { return true } next := carry(head.Next) curVal := head.Val if ne...
# -preview=dtorfields is now enabled by default This preview ensures that partially constructed objects are properly destroyed when an exception is thrown inside of an constructor. It was introduced in 2.075 and is now enabled by default. Note that code may fail to compile if a constructor with strict attributes may ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Bookshop.Views.Shared { public static class Messages { /// <summary> /// Prints the successfull login message. /// </summary> pu...
//! # The Anarchist's Workshop //! //! This is a a bunch of code put together in order to run things at workshops. //! //! As in, places where people work. Workshops. //! //! The end goal is to have some Free Open-Source Software which can be installed //! relatively easily on a computer, and be helpful from the start ...
#include "E32.h" extern Mirror* m3(); Mirror* m4() { static Mirror m4 = Mirror(m3()); return &m4; }
package com.twitter.util import java.util.concurrent.atomic.AtomicReference import org.junit.runner.RunWith import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class ActivityTest extends FunSuite { test("Activity#flatMap") { val v = Var(Activity.Pending: Activity....
import 'package:pixelegram/domain/model/tdapi.dart'; abstract class ITelegramService { User? get me; List<User> get users; List<Chat> get chats; void start(); String? getLocalFile(int? fileId); String? getAnimationGif(int? fileId); Future getChats(); Future checkAuthenticationCode(String code); Futu...
--- title: Design Pattern -- Creational Abstract Factory --- # Abstract Factory Abstract Factory a new layer of grouping a family of related objects. ## Requirements and Accesstance criteria * Similar as builder, but use factory which is returned by abs factory ## Code and UT https://github.com/LipingMao/go-desi...
import styled, { css } from 'styled-components'; const cardTypeVariations = { income: css` color: var(--color-card-income); @media only screen and (max-width: 1000px) { color: var(--color-card-primary); background: var(--color-card-income); } `, outcome: css` color: var(--color-card-...
# Ecommerse-FrontEnd #### ASP.NET Core Web App ECommerse with Manager/Client Projects #### Ecommerse Client con docker hub repo90/frontend con variables de entorno | Variable de entorno | BaseUrl | | ------ | ------ | | RecomendationService | http://localhost:5007/ | | CurrencyService | http://localhost:5004/ | | Pr...
import unittest import numpy as np import torch import torch.nn as nn from modules import LinearModule, SoftMaxModule, CrossEntropyModule from modules import ELUModule from custom_layernorm import CustomLayerNormAutograd, CustomLayerNormManualFunction, CustomLayerNormManualModule from gradient_check import eval_numeri...
import importlib import torch from option import args if __name__ == "__main__": args.model_name = 'EDSR' args.angRes_in = 5 args.scale_factor = 4 device = torch.device(args.device) if 'cuda' in args.device: torch.cuda.set_device(device) MODEL_PATH = args.model_name MODEL = impor...
package com.paypal.dione.hdfs.index.sequence import org.apache.hadoop.conf.Configuration import org.apache.hadoop.fs.Path import org.apache.hadoop.io.SequenceFile.Writer import org.apache.hadoop.io.{SequenceFile, Text, Writable} import org.junit.jupiter.api.Assertions._ import org.junit.jupiter.api.{Assertions, Test} ...
# == Schema Information # # Table name: products # # barcode :string # control_stock :boolean default(FALSE) # created_at :datetime # depth :decimal(10, 6) default(0.0), not null # description_translations :hstore...
<!-- id: 29387253 link: http://tumblr.atmos.org/post/29387253/do-the-test-these-are-always-fun slug: do-the-test-these-are-always-fun date: Thu Mar 20 2008 07:33:14 GMT-0700 (PDT) publish: 2008-03-020 tags: title: Do the test, these are always fun. :) --> Do the test, these are always fun. :) =====================...
/* * Licensed to the University of California, Berkeley under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may no...
unit IPAddrFilter; interface uses Windows, Messages, SysUtils, Classes, WinSock; var g_ConnectOfIPLock: TRTLCriticalSection; g_NewIDOfIPLock: TRTLCriticalSection; g_ConnectOfIPList: TList; g_NewIDOfIPList: TList; g_BlockIPList: TStringList; g_TempBlockIPList: TStringList; g_BlockIPAreaList: TStringLi...
#!perl use strict; use warnings; use Test::More; use HTTP::Cookies (); use HTTP::Date (); use HTTP::Request (); use HTTP::Response (); my $expiry_string = HTTP::Date::time2str( time + 86_400 ); my $jar = HTTP::Cookies->new; { local $TODO = 'Unexpected cookies stored'; my $res = HTTP::Response->new( 200, '...
org 100h A EQU 2 B EQU 4 C EQU 3 D EQU 1 MOV AX,A ADD AX,B ADD AX,C ADD AX,D MOV AX,BX ret
ALTER TABLE sessions DROP CONSTRAINT con_finish_reason_not_null_for_finished; ALTER TABLE sessions DROP COLUMN finish_reason; DROP TYPE dial_error;
using DotNetAppSqlDb.Utils; using Microsoft.IdentityModel.Clients.ActiveDirectory; using Microsoft.IdentityModel.Protocols; using Microsoft.Owin; using Microsoft.Owin.Security; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Notifications; using Microsoft.Owin.Security.OpenIdConnect; using Owin; u...
module HJScript.DOM.NamedNodeMap where import HJScript.Lang import HJScript.DOM.NodeTypes (AttributeNode) ---------------------------------------------------- -- the NamedNodeMap object type ---------------------------------------------------- data NamedNodeMap = NamedNodeMap deriving Show instance IsClass NamedNod...
require 'eldr' require 'slim' require_relative '../lib/eldr/rendering' class App < Eldr::App include Eldr::Rendering set :views_dir, File.join(__dir__, 'views') get '/cats' do render 'cats.slim' end get '/no-template' do render 'template.slim' end end run App
import scala.collection.mutable object Zad3_3 extends App { implicit class ListA[T](val list: List[T]) { // T = element kolekcji def processList[Res, Mid, Ret] // wynik [przekształcenia,cząstkowy,końcowy] (f1: (T, Res) => Mid) // rezultat cząstkowy na podstawie elementu kolekcji oraz jego wartości przek...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
import { Meteor } from 'meteor/meteor'; import Config from '../config'; import requery from './actions/requery'; import RedisPipe, { Events } from '../constants'; import { hasSortFields } from './lib/fieldsExist'; /** * @param observableCollection * @param doc */ const handleInsert = (observableCollection, doc) =...
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from src.data.make_dataset import load_dataset from src.models.utils import save_model from tensorflow.keras.layers import (Bidirectional, Concatenate, Dense, Dropout, Embedding, Input) from tensorflow.keras...
#pragma once #include "stdafx.h" LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); INT_PTR CALLBACK TimeInputProc(HWND, UINT, WPARAM, LPARAM); INT_PTR CALLBACK HelpDlgProc(HWND, UINT, WPARAM, LPARAM); void MoveHelpDialog(HWND hWnd, HWND hDlg);
#!/usr/bin/env bash # Waiting for postgresql. echo ">>> Waiting for postgresql" ./wait-for-it.sh postgresql:5432 celery worker --app=pontoon.base.celeryapp --loglevel=info --without-gossip --without-mingle --without-heartbeat
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. package model import ( "fmt" "io" "strconv" "time" ) // Data to select a node and add a event. type EventAddInput struct { // Skydive Gremlin query to select in which node add the events GremlinQuery string `json:"GremlinQuery"` // Identifier of e...
/** * Gets the repositories of the user from Github */ import { call, put, select, takeLatest } from 'redux-saga/effects'; import { GET_BLOCKS_REQUEST, GET_INFO_REQUEST } from './constants'; import { getBlocksSuccess, getInfoSuccess, getBlockInfoSuccess, getTxnsSuccess } from './actions'; import request fro...
require 'rubygems' require 'minitest/autorun' require 'hoe' class TestHoePublish < Minitest::Test def setup @hoe = Hoe.spec 'blah' do self.version = '1.0' developer 'author', '' license 'MIT' end end def test_make_rdoc_cmd expected = %W[ #{Gem.bin_wrapper "rdoc"} ...
# webcs Library for WebGL2-Compute ## Demo http://zhenghuadai.github.io/webCS.html ## Practise http://blog.biosuefi.com/webCS.html#practise ## Tutorials ### Enable WebGL 2.0 Compute in Chrome chrome://flags/#enable-webgl2-compute-context ### Use in browser <script src='http://zhenghuadai.github.io/js/webcs.js...
<?php /** * Spiral Framework. * * @license MIT * @author Anton Titov (Wolfy-J) */ declare(strict_types=1); namespace Spiral\Router; use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Server...
# NBI config API NBI config API allows remote system to fetch Managed Object's configuration, eigther last of specified revision ## Get Last Config ``` GET /api/nbi/config/(int:object_id) ``` Get last configuration for Managed Object with id `object_id` <!-- prettier-ignore --> !!! example "Example Request" ```...
@extends('admin.layouts.header') @section('contents') <body> <div class="reg-w3"> <div class="w3layouts-main"> <h2>Register Now</h2> <form action="/admin/register" method="post"> <input type="text" class="ggg" name="name" placeholder="FULL NAME" required=""> <...
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import { Avatar, Box, Button, Paper, Tab, Tabs, Typography, } from '@material-ui/core' import { useQuery, gql } from '@apollo/client' import { useParams } from 'react-router' import { UserReviewItem as UserReviewItem } from '....
#include <stdio.h> #include <string.h> int main() { char fName[] = "/home/cfrank/FOM/Testfile.jpeg"; char *pos; printf("Full path: %s\n", fName); pos = strrchr(fName, '.'); if (pos != NULL) { printf("File Type: %s\n", pos+1); } pos[0] = '\0'; pos = strrchr(fName, '/'); if (pos != NULL) { printf("File...
import * as React from "react"; import { List, map } from "../../../Data/List"; import { fromJust, isJust, isNothing, Just, Maybe, Nothing, orN } from "../../../Data/Maybe"; import { elems, OrderedMap } from "../../../Data/OrderedMap"; import { OrderedSet, toggle } from "../../../Data/OrderedSet"; import { Record } fro...
#pragma once #include <iostream> #include <vector> #include <memory> #include "PizzaIngredientFactory/Ingredients.h" /* Simple Pizza interface. */ class Pizza { public: ~Pizza() { if (!m_Pepperoni) delete m_Pepperoni; if (!m_Cheese) delete m_Cheese; ...
module AlertParser module Parser autoload :Base, 'alert_parser/parser/base' autoload :Cash, 'alert_parser/parser/cash' autoload :Consolidation, 'alert_parser/parser/consolidation' autoload :DebtDanger, 'alert_parser/parser/debt_danger' autoload :DebtNet, 'alert_parser/parser/debt_net' autoload...
SUBROUTINE XIPFL C C THE PURPOSE OF XIOFL IS TO GENERATE THE INPUT AND OUTPUT FILE C SECTIONS FOR AN OSCAR ENTRY. C EXTERNAL ANDF,ORF INTEGER DMPCNT,DMPPNT,BCDCNT,DMAP,OSPRC,OSBOT,OSPNT, 1 OSCAR(1),OS(5),ANDF,ORF COMMON /XGPIC / ICOLD,ISLSH,IEQU...
using Godot; using Scripts; public class Monster : KinematicBody2D { [Signal] delegate void TakeDamage(int dmg); private float moveSpeed = -600f * 0.1f; private Vector2 movement; public bool moveLeft; [Export] private int _health { get; set; } public int Health { get => _health; set => _health...
# frozen_string_literal: true require "spec_helper" RSpec.xdescribe Nochmal::Adapters::ActiveStorage do let(:user) { instance_double("User") } let(:blob) { instance_double("Blob") } let(:avatar) { instance_double("Avatar") } let(:avatar_association) { instance_double("AvatarAssociation") } let(:location) {...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require_once('Model.php'); class CityModel extends Model { CONST TABLE_NAME = 'tb_cities'; CONST RELATIONS = [ 'state' => [ 'tb_name' => 'tb_states', 'key' => 'id', 'model' => 'StateModel', ...
/** * */ package here; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; /** * @author debmalyajash * */ public class GayleLegacy { /** * @param args */ public static void main(String[] args) { BufferedReader ...
package game.entity import core.engine.entity.Entity import core.render.Mesh import core.engine.entity.Clickable import core.engine.entity.DynamicEntity class Cube extends DynamicEntity with Mesh { val meshName = "cube_w_n3" val rotationSpeed = 0.01f / 16.0f def nextFrame(elapsedMs: Long) = { ...
var completion = require('./lib/completion'); var history = require('./lib/history'); var createREPL = require('./lib/repl'); var getDB = require('./lib/db'); var locate = require('./lib/location'); var cache = require('./lib/cache'); var cli = require('./lib/cli'); module.exports = function(args) { // // find wh...
/* 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/. */ /* * mutex.c * * This file implements a mutual-exclusion locking facility for Modules * using the NSS Cryptoki...
<?php namespace MezzoLabs\Mezzo\Modules\General\Options; use Illuminate\Support\Collection; use MezzoLabs\Mezzo\Core\Schema\InputTypes\InputType; use MezzoLabs\Mezzo\Core\Schema\InputTypes\TextInput; use MezzoLabs\Mezzo\Exceptions\MezzoException; class OptionField { /** * @var string */ protected...
CREATE TABLE users ( id int(30) NOT NULL auto_increment, `user` varchar(32) collate latin1_general_ci NOT NULL, pass varchar(32) collate latin1_general_ci NOT NULL, email varchar(255) collate latin1_general_ci NOT NULL, activated int(1) NOT NULL default '0', lastlogin int(30) NOT NULL, lasthost varchar(25...
<?php /** * @author Jefferson González * @license MIT */ namespace Peg\Lib\Signals; /** * Signal management that can be implemented at a per object basic. */ class Signal { /** * @var array */ private $listeners; /** * Default constructor */ public function __construct() ...
import * as React from "react"; import Header from "../Atoms/Header"; import { Statistics } from "../../reduxState/characters/types"; interface Props { selectedClass: string; setClass: (classTitle: string, ability: string, moves: string[], stats: Statistics) => void; stats: Statistics; } const CharacterClass: R...
# Error Boundaries Kamlesh Chandnani [twitter/@\_kamlesh\_](https://twitter.com/_kamlesh_) ## Presentation [Link](http://bit.ly/react-error-boundaries)
# Enhanced-VIT resnet18 Epoch 19: train_acc: 97.6060, train_loss: 0.0671, test_acc: 86.5600, test_loss: 0.5877 01:25 resnet50 Epoch 19: train_acc: 96.8880, train_loss: 0.0854, test_acc: 86.9300, test_loss: 0.4893 03:45 vit Epoch 19: train_acc: 33.8380, train_loss: 1.7674, test_acc: 33.9300, test_loss: 1.7633 02:0...
# This is a troll indeed ffs *facepalm* # Ported from xtra-telegram by @heyworld import asyncio from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import ChannelParticipantsAdmins #from userbot.utils import admin_cmd from userbot.events import geezbot_cmd from userbot import CUSTOM_CMD as...
<?php /** * Copyright (c) 2004, 2015 Martin Takáč * @author Martin Takáč (martin@takac.name) */ namespace Taco\Console; /** * <table> * <tr> * <th></th> * <th></th> * <th></th> * </tr> * <tr> * <td></td> * <td></td> * <td></td> * </tr> * </table> */ class TableData...