text stringlengths 27 775k |
|---|
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
package mocks
import (
api "github.com/hashicorp/vault/api"
mock "github.com/stretchr/testify/mock"
)
// VaultAPIWrapper is an autogenerated mock type for the VaultAPIWrapper type
type VaultAPIWrapper struct {
mock.Mock
}
// GetPlugin provides a mock functio... |
@using Microsoft.AspNet.Mvc.Rendering
<div class="navbar navbar-inverse">
<div class="navbar-text navbar-right nav">
<span>
You are not logged in,
</span>
<a class="navbar-btn btn btn-warning marginRight" href="Auth/Login">Log in</a>
</div>
</div> |
using NNlib: conv
@generated sub2(::Type{Val{N}}) where N = :(Val{$(N-2)})
expand(N, i::Tuple) = i
expand(N, i::Integer) = ntuple(_ -> i, N)
"""
Conv(size, in=>out)
Conv(size, in=>out, relu)
Standard convolutional layer. `size` should be a tuple like `(2, 2)`.
`in` and `out` specify the number of input and ... |
library accounting_repository;
export 'package:accounting_api/accounting_api.dart' show Accounting;
export 'src/accounting_repository.dart';
|
package de.whitefrog.frogr.model
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonInclude
import de.whitefrog.frogr.exception.FrogrException
import java.io.Serializable
import java.util.*
import javax.xml.bind.an... |
namespace Avalonia.Build.Tasks
{
public enum BuildEngineErrorCode
{
InvalidXAML = 1,
DuplicateXClass = 2,
LegacyResmScheme = 3,
}
}
|
ApiAuthor
=========
Web API documentation generator. Use IApiExplorer and XML comments to author your API.
|
// @flow
import React, { PureComponent } from 'react';
class CustomFontSelect extends React.Component<{
customFonts: {id: string, name: string}[],
current: string,
setCharset: (name: string) => void
}> {
handleSelectChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
e.preventDefault();
this.prop... |
class FormatAny < Format
def initialize(time=nil)
raise ArgumentError unless time.nil? or time.is_a?(Date)
@formats = Format.all_format_classes.map{|f| f.new(time)}
end
def format_pretty_name
"Any format"
end
def banned?(card)
@formats.any?{|fmt| fmt.banned?(card)}
end
def restricted?(c... |
use byteorder::{BigEndian, ByteOrder};
use std::ops::Range;
use std::marker::PhantomData;
use crate::message::{Id, Timestamp};
use rcommon::bytes::Buf;
macro_rules! fields {
($name:ident: $ty:tt = $pos:expr; $($rest:tt)*) => {
pub const $name: Field<$ty> = Field {
pos: $pos,
len: $... |
import codecs
def read_key_section(f):
lines = []
for i, line in enumerate(f):
if len(line) < 3: continue
lines.append(line)
if i == 7: break
return lines
def parse_lines(lines):
'''
Parse the keys part of a layout subset
'''
def parse_line(line):
keys = [(line[i : i + 5].strip()) for i in range(1, 86,... |
require 'open-uri'
class PowerGeneratorsController < ApplicationController
def index
@power_generators = PowerGenerator.all
@simple = params['simple_search']
@advanced = params['advanced_search']
@price_filter = params[:price_filter]
@kwp_filter = params[:kwp_filter]
@structure_types = PowerG... |
import type { PropertyDefinition } from '../adapters/types'
import type { BuildContext } from '../compiler'
import type { UDTTypeMap } from '../coreference'
//------------------------------------------------------------------------------
export type TypescriptType = string
//-----------------------------------------... |
import 'package:json_annotation/json_annotation.dart';
part 'faq_model.g.dart';
@JsonSerializable()
class FaqModel {
FaqModel({this.question, this.answer});
factory FaqModel.fromDocument(json) => _$FaqModelFromJson(json);
String? question;
String? answer;
Map<String, dynamic> toMap() => _$FaqModelToJson(... |
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\User;
class UsersTest extends TestCase
{
use WithFaker, RefreshDatabase;
/**
* @test
*/
public function a_user_can_create_an_account()
... |
###############################################################################
# Elements of free modules
###############################################################################
from sage.misc.superseded import deprecation
deprecation(21141, "the module sage.modules.module_element is deprecated, import from s... |
/*
* BitmapFill.java
* Transform
*
* Copyright (c) 2001-2010 Flagstone Software Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must reta... |
# wechat-bot
一个自动回复的多功能微信bot
## 使用方法
安装依赖:
```bash
pip install -r requirements.txt
```
然后`python main.py`即可启动bot,微信扫描弹出的二维码使bot登录,然后即可在“文件传输助手”和bot对话。
可在“文件传输助手”输入如下几条命令交互:
+ function:获取所有命令
+ hitokoto:获取一言
+ weibohot:获取当前微博热搜
+ jwcbulletin:获取上海交大教务处网站通知
+ wallpaper:随机获取一张动漫壁纸
+ movie:从豆瓣获取正在上映的电影
## 测试截图
+ 一言&... |
DROP TABLE IF EXISTS `pages`;
CREATE TABLE `pages` (
`page_id` int(11) NOT NULL AUTO_INCREMENT,
`page` varchar(60) NOT NULL,
`file` varchar(255) NOT NULL,
PRIMARY KEY (`page_id`),
FULLTEXT KEY `page` (`page`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `users`;
CREATE TABLE ... |
<?php
namespace App\Services;
class CMSDataTypes
{
static $types = [
'string' => 'String',
'text' => 'Text',
'integer' => 'Integer'
];
} |
```
Description: Claim a ticket to show all of the Staff Members that the Ticket is already being managed by then user
Command: .claim
Usage: .claim
Permissions: Send Messages
Users: Admins
```
|
// Copyright 2014 Reynaldo Mola
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed t... |
package glob
import (
"fmt"
"testing"
)
func TestCompile(t *testing.T) {
cases := []struct {
x, y string
}{
{"abcd*", "abcd.*"},
{"haha??.really", "haha\\?\\?\\.really"},
{"**bang**", ".*bang.*"},
{"nice, dude", "nice\\,\\s+?dude"},
}
for i, test := range cases {
c := compiler{expr: []rune(test.x)}... |
@model IEnumerable<DisplayMonkey.Models.Panel>
@{
ViewBag.Title = Resources.Panels;
const string sep = "| ";
}
<h2>@ViewBag.Title</h2>
@using (Html.BeginForm("Index", "Panel", FormMethod.Get))
{
<fieldset><legend>@Resources.Search</legend><table>
<tr><td>@Resources.Canvas:</td><td><div class... |
import I18nUtil from "../helper/I18nUtil";
import TypeFactory from "./TypeFactory";
import ODataType from "sap/ui/model/odata/type/ODataType";
export enum EntityType {
All = "all",
CdsView = "C",
Table = "T",
View = "V"
}
export enum FieldType {
Normal = "normal",
Parameter = "param"
}
expor... |
---
description: "Learn more about: 32-Bit Windows Time/Date Formats"
title: "32-Bit Windows Time-Date Formats"
ms.date: "11/04/2016"
f1_keywords: ["vc.time"]
helpviewer_keywords: ["32-bit Windows"]
ms.assetid: ef1589db-84d7-4b24-8799-7c7a22cfe2bf
---
# 32-Bit Windows Time/Date Formats
The file time and the date are s... |
require File.join(SW::LASimporter::PLUGIN_DIR, 'options')
require File.join(SW::LASimporter::PLUGIN_DIR, 'thin_las')
require File.join(SW::LASimporter::PLUGIN_DIR, 'las_file\public_header')
require File.join(SW::LASimporter::PLUGIN_DIR, 'las_file\public_header_classes')
require File.join(SW::LASimporter::PLUGIN_D... |
--SELECT MAXIMUM AND MINIMUM PRICES OF ROOMS
SELECT MAX(r_price) AS MAX_PRICE, MIN(r_price) AS MIN_PRICE
FROM Rooms;
|
/*!
* Copyright 2020 Cognite AS
*/
import * as THREE from 'three';
/**
* @internal
* @module @cognite/reveal
*/
export default class RenderController {
private _needsRedraw: boolean;
private _camera: THREE.PerspectiveCamera | THREE.OrthographicCamera;
private _lastCameraPosition: THREE.Vector3;
private _... |
# frozen_string_literal: true
require 'spec_helper'
describe Minfraud::Components::Email do
describe 'validation' do
before do
Minfraud.configure { |c| c.enable_validation = 1 }
end
it 'raises an exception for an invalid email address' do
expect do
Minfraud::Components::Email.new(
... |
<?php
namespace Poppy\Framework\Support;
use Carbon\Carbon;
use Event;
use Gate;
use Illuminate\Support\ServiceProvider as ServiceProviderBase;
use Illuminate\Support\Str;
use Poppy\Framework\Classes\Traits\MigrationTrait;
use Poppy\Framework\Exceptions\ModuleNotFoundException;
/**
* PoppyServiceProvider
*/
abstra... |
/**
* 初始化装修详情对话框
*/
var RenovationInfoDlg = {
renovationInfoData : {}
};
/**
* 清除数据
*/
RenovationInfoDlg.clearData = function() {
this.renovationInfoData = {};
}
/**
* 设置对话框中的数据
*
* @param key 数据的名称
* @param val 数据的具体值
*/
RenovationInfoDlg.set = function(key, val) {
this.renovationInfoData[key] =... |
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
public clas... |
package com.santojon.api.subapi
import com.github.kittinunf.fuel.core.Method
import com.github.kittinunf.fuel.util.FuelRouting
/**
* An API data source
*
* <p>
* Used to populate data to database
* </p>
*/
internal sealed class GamesApi : FuelRouting {
class GamesList : GamesApi()
// Base path for ... |
#!/usr/bin/env bash
###############################################################
# => Path
###############################################################
export GOPATH="${HOME}/go"
# shellcheck disable=SC2034
path=(
"${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin"
"${HOMEBREW_PREFIX}/opt/findutils/libexec/gnub... |
(ns leiningen.new.re-view
(:require [leiningen.new.templates :refer [renderer name-to-path ->files]]
[leiningen.core.main :as main]))
(def render (renderer "re-view"))
(defn re-view
"Create a fresh re-view project with basic example page"
[name]
(let [data {:name name
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Diagnostics;
namespace BareE.DataAcess
{
[DebuggerDisplay("{Name}={Value}}")]
public class ParameterInformation
{
public String Name;
public Object Value { get; set; }
... |
package com.acme.bank.loan.service.repository;
import com.acme.bank.loan.domain.entity.ManageLoanEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.UUID;
@Repository
public interface ManageLoanRepository exte... |
package com.typeclassified.hmm.cssr.cli
import java.io.File
object Parser {
val cssr = "cssr"
val version = "v0.1.0"
// Required
val alphabet = "alphabet"
val data = "data"
// Optional
val lMax = "lMax"
val lMaxDefault = 5
val sig = "sig"
val sigDefault = 0.02
val deli... |
require 'test_helper'
class TimeSummaryControllerTest < ActionController::TestCase
setup do
login
end
test 'should get index' do
get :index
assert_response :success
end
test 'should get new' do
get :new, params: { date: Time.zone.today }
assert_response :success
end
test 'should ... |
import { browser } from 'webextension-polyfill-ts';
import IVaultState, { AssetType } from 'state/vault/types';
import { DAG_NETWORK, ETH_NETWORK } from 'constants/index';
import { KeyringNetwork } from '@stardust-collective/dag4-keyring';
import { KeyringWalletState } from '../helpers/keystoreToKeyringHelper';
export... |
package io.stoys.spark.excel
import io.stoys.scala.{IO, Reflection}
import io.stoys.spark.test.SparkExampleBase
import io.stoys.spark.test.datasets.Covid19Dataset
import io.stoys.spark.{Reshape, ReshapeConfig}
import org.apache.spark.sql.Dataset
import scala.reflect.runtime.universe.TypeTag
class Covid19ExcelExample... |
# Policy Gradient(PG)
## Code
[pg.py](./pg.py)
## Tensorboard

## Result

## Reproduce
Run [run_model.py](./run_model.py)
|
require 'minitest/autorun'
class RgbTest < Minitest::Test
def test_to_hex
assert_equal '#000000', to_hex(0, 0, 0)
assert_equal '#ffffff', to_hex(255, 255, 255)
assert_equal '#043c78', to_hex(4, 60, 120)
end
end
def to_hex(r, g, b)
[r, g, b].inject('#') do |hex, n|
hex + n.to_s(16).rjust(2, '0')
... |
{{--@section('script')--}}
{{--@if(session()->has('done'))--}}
{{--<script>--}}
{{--toastr.success('{{session('done')}}');--}}
{{--</script>--}}
{{--@endif--}}
{{--@if(session()->has('fail'))--}}
{{--<script>--}}
{{--toastr.error('{{session('fail')}}');--}}
... |
/*tslint:disable*/
export interface PushRegisterResponse {
id: string;
device_id: string;
platform: "android" | "ios";
firebase_token: string;
token_expired_at: string;
created_at: string;
} |
require 'rails_helper'
RSpec.describe do
describe '#import' do
let(:file_importer_class) {
Class.new do
def import_row(row); Student.where(local_id: row[:local_id]).first_or_create! end
def remote_file_name; '' end
end
}
let(:file_importer) { file_importer_class.new }
... |
final Map<String, String> enUs = {
"irancell_academy": "Irancell Academy",
"home": "Home"
};
|
#!/usr/bin/env python
import pandas as pd
from gcmap import GCMapper, Gradient
# define CSV colum names
CSV_COLS = ('dep_lat', 'dep_lon', 'arr_lat', 'arr_lon', 'nb_flights', 'CO2')
routes = pd.read_csv('data.csv', names=CSV_COLS,
na_values=['\\N'], sep=';', skiprows=1)
# create gradient to colo... |
package rustycage.impl.renderer;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import rustycage.ResolutionUnit;
import rustycage.SgText;
import ru... |
package marshal
const (
VolumeTypeHostPath = "host_path"
VolumeTypeEmptyDir = "empty_dir"
VolumeTypeGcePD = "gce_pd"
VolumeTypeAwsEBS = "aws_ebs"
VolumeTypeAzureDisk = "azure_disk"
VolumeTypeAzureFile = "azure_file"
VolumeTypeCephFS = "cephfs"
VolumeTypeCinder = "cinder"
... |
#!/bin/sh
if ! command -v stow > /dev/null 2>&1 ; then
echo "Install gnu stow"
exit 1
fi
for d in *; do
[ ! -d "$d" ] && continue
stow -S -t "$HOME" "$d"
done
|
object Versions {
const val coroutines = "1.5.0"
const val reactKotlin = "17.0.2-pre.205-kotlin-1.5.10"
const val reactRouterKotlin = "5.2.0-pre.205-kotlin-1.5.10"
const val styledKotlin = "5.3.0-pre.205-kotlin-1.5.10"
const val cssKotlin = "1.0.0-pre.205-kotlin-1.5.10"
const val react = "17.0.... |
/*
* Copyright (C) 2015 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... |
using Espl.Linkup.Domain.Profile.Passport;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace Espl.Linkup.Web.Controllers.Profile
{
public class PassportController : ApiController
{
static List<Passport> pasportL... |
import { Student } from './student'
import { Badge } from './badge'
export class BadgeRelation {
private _id: string;
private _value: number;
private _badgeId: number;
private _groupId: number;
private _studentId: number;
private _schoolId: number;
private _student: Student;
private _badge: Badge;... |
import ApiPermissionComponent from './api-permission.vue';
import ApiPermissionCompactComponent from './api-permission-compact.vue';
import ApiPermissionUpdate from './api-permission-update.vue';
const ApiPermission = {
install: function(Vue) {
Vue.component('jhi-api-permission', ApiPermissionComponent);
Vue... |
#! /bin/bash
# ${suffix}: "" or ".min"
# ${root}: path to root of the webclient
if [ ! -d awesome ]
then
git clone --depth 1 \
https://github.com/FortAwesome/Font-Awesome.git \
awesome
fi
cd awesome
git pull
ln --force --symbolic \
${root}/deps/awesome/css/font-awesome${suffix}.css \
${root}/css/font-aw... |
{% macro get_ml_names() %}
{{ return(['SVC','LIGHTGBM' ]) }}
{% endmacro %} |
export interface IMonument {
codeinseecommune: string;
commune: string;
type: string;
location: string[];
visited: boolean;
} |
import * as React from 'react';
export interface IHttpRequestMetricsProps {
requestMetrics: any;
wholeNumberFormat: string;
twoDigitAfterPointFormat: string;
}
export declare class HttpRequestMetrics extends React.Component<IHttpRequestMetricsProps> {
filterNaN: (input: any) => any;
render(): JSX.El... |
# frozen_string_literal: true
module FmRest
module Spyke
module Model
module Http
extend ::ActiveSupport::Concern
class_methods do
# Override Spyke's request method to keep a thread-local copy of the
# last request's metadata, so that we can access things like script
... |
package cdv.libs.spring.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.annotation.PostConstruct;
/**
* Con... |
namespace :db do
desc "Fill database with sample data"
task populate: :environment do
make_users
make_microposts
make_relationships
end
end
def make_users
admin = User.create!(name: "Anderson Evans",
email: "almostanderson@gmail.com",
password: "WalterWhite",
password_confirmation: "WalterWhite")
admi... |
!----------------------------------------------------------------------------
module nemsio_openclose
!
!$$$ documentation clock
!
! module: nemsio_openclose Open and close a nemsio file
! Programmer: J. Wang date: 2011-01-13
!
! abstract: this module provides subroutines to open or close a nemsio file. ... |
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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
*
* Unle... |
#!/bin/bash
#autor: leila andrade
#conversao de imagens
#VoS3 F0i H4sCkeAd4444 p3Lo D4rK X11
echo "iniciando conversao"
cd /home/aluno/Downloads/imagens-livros
for imagem in *.jpg
do
echo $imagem
img_sem_ext=$(ls $imagem | awk -F. '{print $1}')
echo img_sem_ext
convert $imagem $img_sem_ext.png
done
echo "converti... |
<?php
namespace Athena\Tests\Browser\Page\Element\Assertion;
use Athena\Browser\Page\Element\Assertion\ElementDoesNotExistAssertion;
use Athena\Browser\Page\Element\Find\ElementFinderInterface;
use Athena\Exception\ElementNotExpectedException;
use Athena\Exception\NoSuchElementException;
use Athena\Exception\StopChai... |
---
layout: project_single
title: "30+ Small yet amazingly cozy master bedroom retreats"
slug: "30-small-yet-amazingly-cozy-master-bedroom-retreats"
parent: "master-bedroom-furniture"
---
30+ Small yet amazingly cozy master bedroom retreats |
:<<!EOF!
#--------------------------------------------------------------------
DllRelyTest_bit=$1
DllRelyTest_dlllib=$2
DllRelyTest_debugRelease=$3
DllRelyTest_allSame=$4
"$CLOUD_REBUILD" DllRelyTest $DllRelyTest_bit $DllRelyTest_dlllib $DllRelyTest_debugRelease $DllRelyTest_allSame
!EOF!
#---------------------------... |
class ProductCategory < ApplicationRecord
has_many :products
def active_products
pp = self.products
return pp.select { | a | a.active }
end
def as_json(options={})
super(:methods => [:active_products])
end
end
|
@extends('layouts.app')
@section('content')
<div class="row">
<div class="col-sm-8 offset-sm-2">
<div class="col-sm-12">
@if(session()->get('success'))
<div class="alert alert-success">
{{ session()->get('success') }}
</div>
@endif
@if ($errors->any())
<div class="alert aler... |
#!/bin/bash
# Copyright 2018 The Bazel Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Jira.API.Types.User where
import Jira.API.Types.Avatar
import Control.Applicative
import Control.Lens
import Data.Aeson
data User = User { _userName :: String
, _userEmail ... |
part of platform;
class PlatformTextField
extends PlatformWidgetBase<TextField, CupertinoTextField> {
PlatformTextField({
this.controller,
this.focusNode,
this.keyboardType = TextInputType.text,
this.textInputAction = TextInputAction.done,
this.textCapitalization = TextCapitalization.sentence... |
package main
import (
"fmt"
"os"
"strings"
"text/template"
)
func toCamelCase(name string, initialUpper bool) string {
var parts []string
for _, part := range strings.Split(name, "_") {
parts = append(parts, strings.ToUpper(part[:1])+strings.ToLower(part[1:]))
}
if initialUpper {
return strings.Join(parts... |
#!/bin/bash
set -e
set -x
set -o pipefail
THINGPEDIA_CLI=node_modules/.bin/thingpedia
for release in "$@" ; do
if test -f "$release/manifest.tt" ; then
kind=$(basename "$release")
if test -f "$release/package.json" ; then
make "build/$release.zip"
${THINGPEDIA_CLI} upload-device --approve \
--zipfil... |
/*
* @lc app=leetcode id=909 lang=cpp
*
* [909] Snakes and Ladders
*/
// @lc code=start
class Solution {
public:
int r,c,n;
/* This requires knowing the coordinates get(s2) of square s2.
This is a small puzzle in itself: we know that the row changes every N squares,
and so is only based on quot = (... |
-----------------------------------------------------------------
-- Plan cache usage
-- rudi@babaluga.com, go ahead license
-----------------------------------------------------------------
SELECT
cacheobjtype,
CASE GROUPING(CASE WHEN usecounts = 1 THEN '1 time' ELSE 'many times' END)
WHEN 0 THEN CASE WHEN use... |
require 'test_helper'
class ApplicationHelperTest < ActionView::TestCase
test "fu;; title helper" do
assert_equal full_title, "Ruby on Rails RailsTutorial"
assert_equal full_title("Help"), "Help|Ruby on Rails RailsTutorial"
end
end |
import typing
from zenora.api.channel_api import ChannelAPI
from zenora.models.button import Button
from zenora.models.channel import Channel
from zenora.models.guild import Guild
from zenora.models.menu import Menu
from zenora.models.message import Message
from zenora.models.user import User
from zenora.request impor... |
# User Interface Requirements
The UI runs on a 1024x600 touchscreen. There are no external buttons or anything.
The UI requirements below come from several sources:
* Original mock-ups (the black-and-white mockups included
[here](https://www.ics.com/blog/ics-joins-respiraworks-on-ventilator-project))
* [ICS prototy... |
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart';
import 'package:money_man/ui/screens/account_screens/help_screens/basic_questions_screen.dart';
import 'package:money_man/ui/screens/account_screens/help_screens/send_question_screen.dart';
import 'pa... |
<?php
class PropertyPopulator {
public static function populateFromArray($object, $properties) {
foreach ($properties as $property => $value) {
$setter = (preg_match('/^is/', $property)) ? $property : 'set' . ucfirst($property);
$object->$setter($value);
}
}
}
|
create database vozila
go
use vozila
create table tip_vozila
(
idTipaVozila int primary key identity(1, 1),
naziv varchar(20) not null
)
insert into tip_vozila values ('Putnicko vozilo')
insert into tip_vozila values ('Motocikl')
insert into tip_vozila values ('Transportno vozilo')
create tabl... |
#!/usr/bin/perl
# Copyright (c) 2000-2003, 2006 MySQL AB, 2009 Sun Microsystems, Inc.
# Use is subject to license terms.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; version 2
# of ... |
program Aufgabe8;
uses
Forms,
UMain in 'UMain.pas' {frmMain},
UList in 'UList.pas',
UTypes in 'UTypes.pas',
UFile in 'UFile.pas',
UFileTools in 'UFileTools.pas';
{$R *.res}
begin
Application.Initialize;
Application.Title := 'John Player';
Application.CreateForm(TfrmMain, frmMain);
Application.Run... |
FactoryGirl.define do
factory :site do
sequence(:name) {|n| "daimon-news#{n}" }
sequence(:fqdn) {|n| "daimon-news-#{n}.example.com" }
opened true
public_participant_page_enabled true
hierarchical_categories_enabled true
end
end
|
import { createSlice, PayloadAction, Slice } from '@reduxjs/toolkit';
import { FacetOption, DisplayableFacet } from '@yext/answers-core';
import { SelectableFilter } from '../models/utils/selectableFilter';
import { FiltersState } from '../models/slices/filters';
import isEqual from 'lodash/isEqual';
import { areFilter... |
package noro.me.pixacloneandroid.model
import java.io.Serializable
enum class ResponseStatus {
Start,
Success,
Cached,
Failed
}
data class PixaResponse(
val total: Int,
val totalHits: Int,
val hits: ArrayList<PixaPhotoModel>?
)
data class PixaPhotoModel(
val id: Int... |
/*Función principal*/
fun main(args: Array<String>){
"Hola mundo".imprime()
3.isPrime()
println(4 multiply 4)
val fullNameList = mutableListOf("David","Ivàn","Morales","Campos")
fullNameList.swap(1,0)
fullNameList.toString()
var nums = mutableListOf<Int>(5,6,8,1,2,9,10,14)
println(... |
module NormalisedBraintree
class SaleResponse < SimpleDelegator
class NotChargedTransaction
def status
'validation_errors'
end
end
def transaction
super || NotChargedTransaction.new
end
end
end
|
<?php
namespace Tests\YooKassa\Model\PaymentData;
use YooKassa\Model\PaymentData\PaymentDataYooMoney;
use YooKassa\Model\PaymentMethodType;
class PaymentDataYooMoneyTest extends AbstractPaymentDataTest
{
/**
* @return PaymentDataYooMoney
*/
protected function getTestInstance()
{
return ... |
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'support'))
require 'anor-router'
require 'rubygems'
require 'bundler'
Bundler.setup :default, :test
# Require support files.
# Require third party depen... |
require 'spec_helper'
RSpec.describe Wordle::Model::FiveLetterWord do
it 'enables guessing 1 time and winning' do
allow(described_class).to receive(:random_word) {'skill'}
expect(subject.guesses.count).to eq(0)
expect(subject.guess_results.count).to eq(0)
expect(subject.status).to eq(:in_progres... |
package com.vaudibert.canidrive.domain.digestion
/**
* Represents the person drinking.
* The parameters such as weight and sex may change as the user adjusts the inputs.
*/
class PhysicalBody {
// TODO : find a more kotlin way to declare these constants
private val MALE = "MALE"
private val MALE_SEX_FA... |
module Backend (
-- recognize
) where
import Grammar ( Grammar )
-- recognize :: Grammar -> String -> Bool
-- recognize = error "TODO" |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <set>
#include <vector>
#include <string>
#include <map>
#include "SmartPointers.hpp"
#include "UblasIncludes.hpp"
#include "FileFinder.hpp"
#include "RelativeTo.cppwg.hpp"
namespace py = pybind11;
typedef RelativeTo RelativeTo;
PYBIND11_DECLARE_HOLDER... |
{-# LANGUAGE BangPatterns, ScopedTypeVariables, GADTs #-}
--
-- Copyright (c) 2009 Alex Mason - http://axman6.homeip.net/blog/
-- BSD licence - http://www.opensource.org/licenses/bsd-license.php
--
-- |AVars are a form of transactional variables. They internally use a tail
-- recursive function to carry the 'state' of... |
#include "../def.h"
#pragma strict_types
inherit MASTER_ROOM;
void create_object(void);
void create_object(void)
{
set_short("A road through the forest north of the village");
set_long("You are on a road through the forest. The huge oak trees " +
"stand close to the road, their branches reaching ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.