text
stringlengths
27
775k
using UnityEngine; using UnityEditor; namespace Grid.Example { [CustomEditor(typeof(SimpleAI))] public class DebugSimpleAI : Editor { public override void OnInspectorGUI() { DrawDefaultInspector(); SimpleAI script = (SimpleAI)target; if (GU...
import {WAPPlugin} from '@wap/core'; export class WAPText extends WAPPlugin<string> { protected async _read(data: Uint8Array): Promise<string> { return String.fromCharCode.apply(null, data); } } export default WAPText;
package uk.gov.justice.digital.hmpps.pecs.jpc.domain.price import java.math.BigDecimal import java.math.RoundingMode /** * Simple value object to encapsulate a monetary amount in pence. Zero or less are not allowed. */ data class Money(val pence: Int) { init { if (pence < 0) throw IllegalArgumentException("m...
using GRA.Domain.Model; using System.Security.Claims; namespace GRA.Domain.Service { public class UserContext { public ClaimsPrincipal User { get; set; } public int SiteId { get; set; } public int? ActiveUserId { get; set; } public SiteStage SiteStage { get; set; } } }
use std::cmp::Ordering; use std::hash::{Hash, Hasher}; use std::marker::PhantomData; use std::ops::{Deref, DerefMut}; use std::prelude::v1::*; use crate::marker::{GcDeref, GcDrop, GcSafe}; use crate::{Finalize, Scan, Scanner}; // Only straight up `'static` references can be `Scan` or `GcSafe`, since other references ...
<?php namespace Acme; class Nook implements eReaderInterface { public function turnOn(){ var_dump('turn the Nook on.'); } public function pressNextPage(){ var_dump('press the next button on the Nook.'); } }
namespace ScotlandsMountains.Domain.Values; public class Location { public Location(double longitude, double latitude) { Coordinates = new[] { longitude, latitude }; } public string Type { get; set; } = "Point"; public double[] Coordinates { get; set; } }
import unittest # Importing the unittest module import pyperclip #importing a module from user import User # Importing the user class from user import Loc_user #importing the loc_user class class TestPass(unittest.TestCase): ''' Test class that defines test cases for the user class behaviours. Args: ...
#!/bin/bash cp -rf /usr/src/cni-plugins/* /opt/cni/bin/ echo "Entering sleep... (success)" # Sleep forever. sleep infinity
package com.czech.muvies.repository import com.czech.muvies.models.PersonDetails import com.czech.muvies.models.PersonMovies import com.czech.muvies.models.PersonTvShows import com.czech.muvies.network.MoviesApiService import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow class CastRepository(privat...
class Staff::SelfReportsController < ApplicationController before_action :authenticate_staff! def index @event = Event.find_by(slug: params[:event_id]) end end
use super::StringContainer; #[derive(Clone)] pub enum WriteItem<'a> { String(&'a StringContainer), Indent(u8), NewLine, Tab, Space, }
class Solution: def findKthPositive(self, arr, k) -> int: start = 1 idx = 0 missing = 0 while idx < len(arr): if arr[idx] == start: idx += 1 else: missing += 1 if missing == k: return start ...
package leetcode import ( "github.com/ColinTing/LeetCode/structures" ) // TreeNode define type TreeNode = structures.TreeNode /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ func buildTree(preorder []int, inorder []int) *TreeN...
![](http://ganeshkandu.github.io/JDBMngr/images/logo256x256.png) # JDBMngr Java Based web Application to manage your DataBase ( DB Tool ) JDBGmgr is a Java Based Web Application to access your DataBase to perform your daily operation #JDBMngr site [http://ganeshkandu.github.io/JDBMngr](http://ganeshkandu.github.io/...
package cn.mirrorming.blog.service; import cn.mirrorming.blog.domain.po.Permission; import cn.mirrorming.blog.mapper.PermissionQueryMapper; import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** ...
package Paws::Net::MojoAsyncCaller; use Moose; with 'Paws::Net::CallerRole'; use Paws::Net::APIResponse; use Paws::API::Retry; use Paws::Net::APIResponse; use Future; use Future::Mojo; use Mojo::UserAgent; has ua => (is => 'ro', isa => 'Mojo::UserAgent', default => sub { Mojo::UserAgent->new->co...
fun String?.foo() = this ?: "OK" fun foo(i: Int?): String { if (i == null) return i.foo() return "$i" } fun box() = foo(null)
import {Tabel} from "antd"; export default class CustomTabel extends Tabel { constructor() { super(); } render() { return <div> tqtqt </div> } }
"""Tests for motor drivers.""" import asyncio import pytest from opentrons_hardware.firmware_bindings import NodeId from opentrons_hardware.firmware_bindings.messages.message_definitions import ( ReadMotorDriverRequest, ReadMotorDriverResponse, WriteMotorDriverRegister, ) from opentrons_hardware.firmware_b...
import { says } from '@palett/says' import { Xr } from '@spare/logger' import { HAN } from '../resources/oneoffRegexes' const candidates = [ 'Taco青年', '秦时明月', 'Rome', '...' ] for (let w of candidates) { Xr().hasHan(HAN.test(w)) |> says[w] }
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); class node_tanda_irob { function cek_isimnya($kata, $prevWord){ $Isim = new node_isim(); if ( ($Isim->isim($kata, $prevWord))==true) { return false; } else {return true;} } private static $_normalizeAlef ...
require 'manager/version' require 'manager/interface' require 'users' require 'quotes' module Manager include Interface Quotes::ServiceFactory.register :quotes_backend do Persistence::Gateways::QuotesGatewayBackend.new end Quotes::ServiceFactory.register :publications_backend do Persistence::Gateways...
module Lims::LaboratoryApp module Laboratory class Allele A = "A" C = "C" G = "G" T = "T" end end end
#!/bin/bash # script to generate a list of IPs to be used when pinging LANG=en_US.UTF-8 export LANG source '/usr/local/pia/settings.conf' source '/usr/local/pia/include/functions.sh' # simulate packet loss #tc qdisc del root dev em0 2> /dev/null #tc qdisc add dev em0 root netem loss 50% #tc qdisc change dev em0 root n...
using RayanCnc.LSConnection.Models; namespace RayanCNC.LSConnection.LsAddress.Contracts { public interface ILsAddress { byte[] AddressBytes { get; } byte[] ContinuousAddressDifference { get; } byte[] DataTypeInstructionHeaderBytes { get; } long EndAddressBit { set; get; } ...
import 'package:equatable/equatable.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:wassword/utils/password_generator.dart'; part 'password_state.dart'; class PasswordCubit extends Cubit<PasswordState> { PasswordCubit() : super( PasswordState( withLowercase: tru...
#define _158 {\ 0x33cfc195, \ 0x6f5f8c6d, \ 0xe9534b78, \ 0x7288ae92, \ 0x33ea097a, \ 0xb95263e3, \ 0xddb78d54, \ 0x2a184928, \ 0x9d49d3c9, \ 0xce778ecf, \ 0xc187fd5e, \ 0x494befb5, \ 0x32d6eb9a, \ 0xd7c1f2e9, \ 0x5f3ee361, \ 0x64b20f2d, \ 0x16ecf0f5, \ 0x8cf98788, \ 0xc5deba4c, \ 0xfdf44f58, \ 0xd90351aa, \ 0x4b455c6b...
<?php namespace Aura\View\Helper\Form; use Aura\View\Helper\AbstractHelperTest; class TextareaTest extends AbstractHelperTest { public function test__invoke() { $textarea = new Textarea; $actual = $textarea( [ 'name' => 'field', ], "...
export const BRTCONFIG = { NAMESPACE: 'better-rolltables', // saved data keys (used e.g. in the rolltableEntity.data.flags) TABLE_TYPE_KEY: 'table-type', LOOT_CURRENCY_KEY: 'table-currency-string', ROLLS_AMOUNT_KEY: 'loot-amount-key', ACTOR_NAME_KEY: 'loot-actor-name', RESULTS_FORMULA_KEY: ...
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache 2.0 license. // Please see LICENSE file in the project root for terms. package com.yahoo.ml.jcaffe; public class Mat extends BaseObject { /* decode flags as defined in opencv2/imgcodecs/imgcodecs_c.h */ /* 8bit, color or not */ static f...
#!/bin/bash chown -R www-data. /var/www/magento/media/ touch /var/www/magento/var/log/system.log touch /var/www/magento/var/log/exception.log chown -R www-data. /var/www/magento/var/ cp /local.xml /var/www/magento/app/etc php-fpm -F
package annoyED.store; import annoyED.data.Datapoint; public interface IndexWritableStore extends IndexReadableStore { void write(String key, Datapoint value); }
describe("NoteList", function() { var noteListView, noteListMock, mockNote1, mockNote2, mockNoteArray beforeEach(function() { // mockNote1 = jasmine.createSpyObj('note', ['showText']); // mockNote2 = jasmine.createSpyObj('note', ['showText']); mockNote1 = { showText: function() { ...
import request from 'supertest'; import { Item, } from '~/models'; import { Server, } from '../Server'; describe('libs/Server', () => { const item: Item = { id: '201817210000184930', type: '특정소출력 무선기기(무선데이터통신시...', date: '2018-08-02', manufacturer: '애플코리아 유한회사', model: 'A1990', tweet: 0, }; class T...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
class UpdatePriorityForOldTasks < ActiveRecord::Migration[4.2] def change Task.where(priority: nil).update_all(priority: 1) end end
import { Cell } from '../core/cell' import { hook } from './decorator' import { BaseGraph } from './base-graph' import { Overlay } from '../struct' export class TooltipAccessor extends BaseGraph { hideTooltip() { this.tooltipHandler.hide() return this } isTooltipEnabled() { return this.tooltipHandle...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ package com.sleepycat.server.handle; import com.sleepycat.db.DatabaseEntry; import com.sleepycat.db.DatabaseException; import com.sleepycat.db.SecondaryDatabase...
import { Dispatch } from "redux"; import { EditingClub } from "src/types/models"; import { addClub, deleteClub, getClubs } from "../../api/clubs"; import { selectClubs } from "./selectors"; import { AppState } from ".."; import { canUpdate, isStale, requiresLoading } from "../../types/loadingState"; import { ADD_CLUB,...
SELECT rc.RDB$CONSTRAINT_NAME AS "constraint_name", rc.RDB$RELATION_NAME AS "on table", d1.RDB$FIELD_NAME AS "on field", d2.RDB$DEPENDED_ON_NAME AS "references table", d2.RDB$FIELD_NAME AS "references field", refc.RDB$UPDATE_RULE AS "on update", refc.RDB$DELETE_RULE AS "on delete" FROM RDB$RELAT...
<?php namespace App\AdminModel; use Illuminate\Database\Eloquent\Model; class StaffPosition extends Model { // protected $table = 'staf_position'; }
import { execute } from "../exec-cmd"; import { resolveJavaRequirement } from "./java"; jest.mock("../exec-cmd"); const mockExecute = execute as jest.Mock; const javaVersionTemplate = (version: string) => { return `java version "${version}" Java(TM) SE Runtime Environment (build 1.8.0_281-b09) Java HotSpot(TM) 64-...
/* * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
package Test_cases import HelperUtils.regexMatch.config import org.scalatest.flatspec.AnyFlatSpec import org.scalatest.matchers.should.Matchers class testPattern extends AnyFlatSpec with Matchers { behavior of "Check if pattern is a String" it should "obtains the bin intervals" in { config.getString("randomL...
# fastapi-security-telegram-webhook Plugin for [FastAPI](https://github.com/tiangolo/fastapi) which allows you to secure your Telegram Bot API webhook endpoint with IP restriction and an optional secret token. Telegram provides two ways of getting updates: long polling and webhook. When you use webhook you just regi...
using System.Collections.Generic; using UnityEngine; using UnityEditor; namespace UniversalRenameTool.Editor { public class ProjectFindTool { System.Func<string, bool> _isWantedName = null; public ProjectFindTool(System.Func<string, bool> isWantedName) { _isWantedName = isWantedName; } public UnityEngi...
import regeng if __name__ == "__main__" : pattern = input("Enter with the regex pattern: ") rgx = regeng.Regex(pattern) while True: try : print(rgx.match(input("Enter with the expression to be evaluated: "))) except EOFError: break
require 'erb' require 'cgi' require 'securerandom' require_relative 'rack_console/version' require_relative 'rack_console/cookie_script_storage' require_relative 'rack_console/output_capture' class RackConsole VIEW_TEMPLATE = ::File.join __dir__, 'rack-console-view.erb' def initialize(_binding = binding, storage:...
// SPDX-License-Identifier: Apache-2.0 package firrtl.options.phases import firrtl.AnnotationSeq import firrtl.options.{Dependency, Phase} @deprecated("LegacyAnnotation has been removed, this is a no-op", "FIRRTL 1.4") class ConvertLegacyAnnotations extends Phase { override def prerequisites = Seq(Dependency[GetI...
import styled from 'styled-components'; export interface Props { /** Text color */ color?: string; fontFamily?: string; fontSize?: string; fontWeight?: string; /** Margin applied to the top and bottom */ margin?: string; /** The text to display inside the tag */ children: React.ReactChild; } export const Sma...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Despacho extends MX_Controller { public function __construct(){ parent::__construct(); $this->load->library("session"); $this->load->library("validarsesion"); } /** * Controlador para el usuario supervisor * @...
mod find_command; use std::{ collections::HashSet, fs::File, hash::Hash, path::Path, process::Command, time::Duration, }; use gio::{prelude::AppInfoExt, AppLaunchContext}; use serde::{Deserialize, Serialize}; use crate::{ dbus::{MetaWindow, WindowCtlProxy}, session::find_command::Exec, }; #[derive(Seria...
package org.oagi.score.gateway.http.api.bie_management.controller; import org.oagi.score.gateway.http.api.bie_management.service.BieRepository; import org.oagi.score.service.bie.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.secur...
1. Beer 2. Beer 3. Beer 1. Yeast 2. Hop 3. Barley 4. Water
class Hash # A method to convert a Hash into a Struct. # # h = {:name=>"Dan","age"=>33,"rank"=>"SrA","grade"=>"E4"} # s = h.to_struct("Foo") # # TODO: Is this robust enough considerd hashes aren't ordered? # # CREDIT: Daniel Berger def to_struct(struct_name) Struct.new(struct_name,*keys).ne...
CREATE PROCEDURE [dbo].[dnn_GetUserRolesByUsername] @PortalID int, @Username nvarchar(100), @Rolename nvarchar(50) AS IF @UserName Is Null BEGIN SELECT * FROM dbo.dnn_vw_UserRoles WHERE PortalId = @PortalID AND (Rolename = @Rolename or @RoleName is NULL) END ELSE BEGIN IF @RoleName Is NULL ...
<?php /** * Spiral Framework. * * @license MIT * @author Anton Titov (Wolfy-J) */ declare(strict_types=1); namespace Spiral\GRPC; use Spiral\GRPC\Exception\InvokeException; use Spiral\GRPC\Exception\NotFoundException; use Spiral\GRPC\Exception\ServiceException; /** * Wraps handlers methods. */ final cl...
const carouselFormatters = { getAltText: ({ data, index }) => data.caption || `${index + 1}`, getNextLabel: ({ currentIndex, views, }) => `${currentIndex + 2}`, getPrevLabel: ({ currentIndex, views, }) => `${currentIndex}`, getNextTitle: () => 'Next', getPrevTitle: () => 'Previous', getCloseLabel: () ...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> typedef struct { int idt; int num_cars; int slots; } thread_arg, *ptr_thread_arg; sem_t car_sem, plot_sem, mutex; int waiting = 0; int done = 0; int qt = 0; void let_parking() { //printf("Um carro está...
import { freezeDeep } from './freeze-deep'; describe('freezeDeep', () => { it('fails to add object property', () => { const a: AnyObject = {}; freezeDeep(a); const fail = (): void => { a.x = ''; }; expect(fail).to.throw(); expect(a.x).to.be.undefined; expect(a).to.be.frozen; }); it('fails to ...
+++ weight = 7 title = "Sessions" description = "This example will show how to store data in session cookies using the popular gorilla/sessions package in the Go programming language." +++ # Sessions This example will show how to store data in session cookies using the popular <a target="_blank" href="https://github...
require File.expand_path(File.dirname(__FILE__) + '/test_helper') require File.expand_path(File.dirname(__FILE__) + '/fixtures/couch') class HasOneTest < Test::Unit::TestCase context "with has_one" do setup do CouchPotato::Config.database_name = 'simply_stored_test' recreate_db end should "a...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/blink/renderer/core/inspector/devtools_agent.h" #include <v8-inspector.h> #include <memory> #include "base/bind_helpers.h" #includ...
#!/bin/bash if (( $# != 1 )); then echo "Illegal number of parameters" echo "input: [prefix of filelists], e.g. [1478645267_list.]" exit 1; fi for file in $1[0-9][0-9] do i=`echo $file | tail -c 3` printseq=$(printf "awk -F / '{print \$(NF-1)}' %s | uniq" $file ) printf "[Tape %02d] \n" ${i#0...
#!/bin/bash (set -o igncr) 2>/dev/null && set -o igncr; # this comment is required set -$-ue${DEBUG+x} ####################################################################################################################### # This script is designed to process resource files that are necessary for a single component. ...
import http from 'axios'; import { toLower, assign, each, omitBy, isNil, } from 'lodash'; import { getSavedSources, getSortParam, getCommonMeta } from '../common'; import { logger, uriParser } from '../../../utility'; const getIdentifier = (source, options) => { const identifierName = source.schema.identif...
package chapter4 /** * The generic E mean Error * * Further information, in the scala api doc * * @author loustler * @since 08/12/2017 18:22 */ sealed trait Either[+E, +A] extends Commons { // exercise 4.6 def map[B](f: A => B): Either[E, B] = this match { case Right(e) => Right(f(e)) case Le...
import { select } from '@storybook/addon-knobs'; import { Calendar } from '@ui5/webcomponents-react/lib/Calendar'; import { CalendarType } from '@ui5/webcomponents-react/lib/CalendarType'; import React from 'react'; const now = new Date().getTime(); export default { title: '4 UI5 Web Components / Calendar', compo...
# SiriRemoteDriver Apple TV 4th Gen Siri Remote Filter Driver for Windows ![](SiriRemoteLowerFilterDriver.PNG)
require 'rubygems' require 'bud' module MetaAlgebra state do table :alg_path, [:from, :to, :path, :last_rule, :tag, :lastop] scratch :clean_dep, [:body, :head, :rule_id] => [:tag, :lastop] scratch :rule_nm, [:rule_id] => [:tag] table :apj1, [:from, :head, :rule_id, :path, :tag, :tag2, :lastop] ...
/* * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html...
## stellar version Version of stellar ### Synopsis Version prints the stellar version. ``` stellar version [flags] ``` ### Options ``` -h, --help help for version ``` ### SEE ALSO * [stellar](stellar.md) - stellar is a command line tool for using the StellarStation API.
#!/bin/bash # # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROV...
require "net/tns/packet_spec_helper" module Net module TNS describe DataPacket do let(:tns_type) {6} context "with packets from the server" do context "with an ANO negotiation response" do let(:field_values) {{ :flags => 0x0000, :data => raw_packet[10..-1] ...
<?php declare(strict_types=1); namespace AcMailerTest\Mail; use AcMailer\Mail\MessageFactory; use AcMailer\Model\Email; use PHPUnit\Framework\TestCase; class MessageFactoryTest extends TestCase { /** * @test */ public function messageCreatedFromEmailHasSameProperties(): void { $email =...
require "rails_helper" describe "Sessions" do let!(:user) { create(:user, email: "john@example.com", password: "password") } let!(:session) { create(:pollett_session, user: user) } describe "GET /sessions" do let!(:inactive) { create(:pollett_session, user: user, revoked_at: 1.day.ago) } it_requires_au...
package com.shocktrade.client.contest import com.shocktrade.client.Filters.toDuration import com.shocktrade.client.MySessionService import com.shocktrade.client.ScopeEvents._ import com.shocktrade.client.contest.ChatController._ import com.shocktrade.common.models.contest.ChatMessage import com.shocktrade.common.model...
//! Manipulation methods for treating byte arrays (`[u8]`) as UTF-8/ASCII //! strings use crate::util::buffer::content_len_raw; pub const N: u8 = b'\n'; pub const R: u8 = b'\r'; pub const S: u8 = b' '; /// Returns true if the given char is a line feed, carriage return, or normal /// space #[inline] #[must_use] pub c...
import static org.junit.Assert.assertEquals; import java.util.Arrays; import java.util.List; import org.junit.Test; public class MaximumCoinsGainTest { private int expected; private List<Integer> coins; private static void test(int expected, List<Integer> coins) { assertEquals(expected, MaximumCoinsGain.c...
# [David M - Blog] ## Preview ![Site Preview](./site_page.jpg "title") [David's Resume] is a preview of the online resume. **[View Live Preview](https://sites.google.com/view/david-mwasikira/david-resume)** ## Skills ### Project Management ### Industrial Process Manufacturing ### Web Development ## Programm...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //------------------------------------------------------------------------------ // // // Description: An object m...
# codraw Collaborative Drawing Tool for use in MSU Digital Inscriptions Project. This is a prototype collaborative drawing tool. Use the url parameter `?firebaseKey='blah' to specifiy which collaborative group to participate in. This project is a consumer of [drawing-tool](https://github.com/concord-consortium/drawin...
package com.orientechnologies.orient.object.jpa.parsing; import org.xml.sax.SAXException; /** * A convenience mechanism for finding the schema to validate with */ class StopSAXParser extends SAXException { /** This class is serializable */ private static final long serialVersionUID = 6173561761817524327L; }
<?php namespace App\Models\Inventory\Warehouse; use App\Models\Inventory\Warehouse\StWarehouseRackRow; use Illuminate\Database\Eloquent\Model; class StWarehouseRack extends Model { public $with = ['row']; protected $table = "st_warehouse_rack"; public static function insertData($data){ // dd($data...
package com.syleiman.myfootprints.presentationLayer.activities.photoEditor.viewModel.bitmaps import android.graphics.Bitmap import java.io.Closeable /** */ interface IBitmapsRepository : Closeable { /** Return last processed bitmap * @param isForRead - if true original bitmap was returned; otherwise - copy ...
//======== Copyright (c) 2017, FIT VUT Brno, All rights reserved. ============// // // Purpose: White Box - Tests suite // // $NoKeywords: $ivs_project_1 $white_box_code.cpp // $Author: JMENO PRIJMENI <xlogin00@stud.fit.vutbr.cz> // $Date: $2017-01-04 //====================================================...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
use std::{fmt, sync::Arc}; use serde::Deserialize; use crate::{ communication::{Pusher, SendEndpoint}, dataflow::{Data, Message, Timestamp}, }; use super::{errors::WriteStreamError, StreamId, WriteStreamT}; /// Enables sending messages on a stream. /// /// Returned by `Operator::connect`, and automatically ...
package com.redhat.cloud.notifications; import javax.enterprise.context.ApplicationScoped; import javax.validation.Valid; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Respo...
package com.windy.itemreaderfile; import org.springframework.batch.core.Job; import org.springframework.batch.core.JobExecution; import org.springframework.batch.core.Step; import org.springframework.batch.core.annotation.BeforeStep; import org.springframework.batch.core.configuration.annotation.JobBuilderFactory; imp...
from setuptools import setup, find_packages version = '1.0dev' long_description = ( open('README.txt').read() + '\n' + 'Contributors\n' '============\n' + '\n' + open('CONTRIBUTORS.txt').read() + '\n' + open('CHANGES.txt').read() + '\n') setup(name='jcu.dc24.ingesterapi', ve...
#include "format_float.c" #include "stream_function.h" #include "degrade.h" /* * fmtfloat degrade function */ #define FMTFLOAT_DEGRADE_SIZE 256 static size_t fmtfloat_degrade_index; static char fmtfloat_degrade_buffer[FMTFLOAT_DEGRADE_SIZE + 1]; static void fmtfloat_degrade_clear(void) { fmtfloat_degrade_in...
package pojo; public class OptimalParent { private double optimalResponseTime; private WebService optimalParent; public double getOptimalResponseTime() { return optimalResponseTime; } public void setOptimalResponseTime(double optimalResponseTime) { this.optimalResponseTime = optimalResponseTime; } ...
-- Delete created files from c:\temp before running this script USE [master]; GO IF EXISTS (SELECT 1 FROM sys.databases WHERE [name] = 'EncryptionDemo') DROP DATABASE [EncryptionDemo]; GO IF EXISTS (SELECT 1 FROM sys.sql_logins WHERE [name] IN ('Dilbert', 'Wally')) BEGIN DROP LOGIN [Dilbert]; DROP LOG...
package schemes import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" regv1 "github.com/tmax-cloud/registry-operator/api/v1" "github.com/tmax-cloud/registry-operator/internal/utils" ) func Repository(reg *regv1.Registry, imageName string, tags []string) *regv1.Repository { label := map[string]string{} label["a...
require "reports/engine" require "reports/models_list" # require "reports/assocs_graph" require "reports/attribute" require "reports/attr_array" require "reports/joins_handler" module Reports end
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); function COMPETITION($no_board) { $ci =& get_instance(); $table = 't_board_'.$no_board ; $limit = XDB(1,'GET','t_setting',array('setting'=>'competition_limit'))['value'] ; // Pindahkan semua user_id yang total down...
require_relative 'spec_helper' require 'problem_028' describe Problem028 do let(:prb) { Problem028.new } it "raises an error when given an even sized side" do lambda { prb.sum_diagonals(2) }.should raise_error end it "computes the sum of the diagonals of a 1x1 grid is 1" do prb.sum_diagona...
package com.fisma.trinity.api import com.google.gson.annotations.SerializedName class OpenWeatherMapWeatherResponse { @SerializedName("sys") var sys: Sys? = null @SerializedName("main") var main: Main? = null @SerializedName("weather") var weather: List<OpenWeatherMapWeather>? = null @SerializedName("d...