text
stringlengths
27
775k
interface onEveryReturn { /** * Callback function you passed to onEvery */ callback: () => void; /** * Timer Id of setInterval */ code: number; /** * Stop the interval, you cannot resume */ stop(): boolean; /** * Pauses the interval, ...
define( [ "pinpin/app" ], function(PinpinApp) { "use strict"; PinpinApp.module("HeaderApp", function(HeaderApp, PinpinApp, Backbone, Mn, $, _) { var API = { showHeader: function() { require(["pinpin/apps/header/header_controller"], function(HeaderController) { Heade...
package com.twu.biblioteca; public class BibliotecaApp { private BookAndMovieDatabase bookAndMovieDatabase; private Machine machine; public BibliotecaApp() { bookAndMovieDatabase = new BookAndMovieDatabase(); machine = new Machine(bookAndMovieDatabase); } public static void mai...
package ru.igla.ferriswheel.sample import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.Rect import android.graphics.Typeface import android.support.v7.widget.AppCompatSeekBar import android.text.TextPaint import android.util....
package net.xblacky.animexstream import android.app.Application import net.xblacky.animexstream.utils.realm.InitalizeRealm import timber.log.Timber class AnimeXStream : Application() { override fun onCreate() { super.onCreate() InitalizeRealm.initializeRealm(this) if (BuildConfig.DEBUG) {...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Woosh : MonoBehaviour { public AnimationCurve curve; public Text countdown; private float _elapsedTime; private bool _processAnim = true; // Use this for initialization void Start ...
module Rerebase.Generator ( ModuleName(..), ModuleContents(..), Module(..), forwardingModule, generate, ) where import Rebase.Prelude import Rerebase.Generator.Model import qualified Rerebase.Generator.Templates as A import qualified System.Directory as B import qualified System.FilePath as C import qualifie...
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
--- permalink: / title: "Ben is writing" excerpt: "Home" author_profile: true redirect_from: - /about/ - /about.html --- Hello! I'm writing. Look at my smiling face Read and follow along.
;; ;; ANSI COMMON LISP: 7. Objects ;; ;; ;; Macro DEFMETHOD ;; ;; ;; defmethod ;; (defgeneric defmethod-1 ()) (defmethod defmethod-1 () :hello) (deftest defmethod.1 (defmethod-1) :hello) (defgeneric defmethod-2 ()) (deftest defmethod.2 (closp (defmethod defmethod-2 ())) t) (defgeneric defmethod-3 ...
package com.datawizards.dmg.metadata import java.util.Date case class WorkExperience( start: Date, end: Date, jobTitle: String, company: Company )
package trigger import ( "github.com/TIBCOSoftware/flogo-lib/core/action" "github.com/TIBCOSoftware/flogo-lib/core/data" "strconv" "time" ) // Config is the configuration for a Trigger type Config struct { Name string `json:"name"` Id string `json:"id"` Ref string...
#!/bin/bash echo "Deploy Script" git stash --all git remote add fury https://chwcode:$FURY_API_TOKEN@git.fury.io/chwcode/travis-hello.git git push fury master
# This file was generated, do not modify it. # hide @show false_positive(cm) @show accuracy(ŷ, y) |> r3 @show accuracy(cm) |> r3 # same thing @show precision(ŷ, y) |> r3 @show recall(ŷ, y) |> r3 @show f1score(ŷ, y) |> r3
--- title: sign() - Azure 数据资源管理器 | Microsoft Docs description: 本文介绍 Azure 数据资源管理器中的 sign()。 services: data-explorer author: orspod ms.author: v-tawe ms.reviewer: rkarlin ms.service: data-explorer ms.topic: reference origin.date: 02/13/2020 ms.date: 08/06/2020 ms.openlocfilehash: 70835d65a3ac29fbd2dd93aa8f37467ec661d15...
part of 'speech_bloc.dart'; class SpeechState extends Equatable { const SpeechState({ required this.coordinate, required this.listening, }); final String coordinate; final bool listening; SpeechState copyWith({ String? coordinate, bool? listening, }) { return SpeechState( coordina...
# Welcome to steam.py's documentation! steam.py is a modern, easy to use, and async ready API wrapper for the Steam API and its CMs. Heavily inspired by [discord.py](https://github.com/Rapptz/discord.py) and borrowing functionality from [ValvePython/steam](https://github.com/ValvePython/steam). ## Key Features - Mod...
package org.cmucreatelab.android.flutterprek.database.models.db_file; import android.arch.lifecycle.LiveData; import android.arch.persistence.room.Dao; import android.arch.persistence.room.Delete; import android.arch.persistence.room.Insert; import android.arch.persistence.room.Query; import java.util.List; /** * C...
#!/bin/bash CPUREV=$(cat /sys/devices/soc0/soc_id) if [ $CPUREV == "i.MX8MP" ] then echo "config sysrepo-tsn related components" else exit 0 fi CMD=$1 if [ $CMD == "start" ]; then /etc/init.d/sysrepo-init ${CMD} /etc/init.d/sysrepod ${CMD} /etc/init.d/sysrepo-plugind ${CMD} /etc/init.d/sysrep...
package com.wangduwei.asm.source.part6 import com.wangduwei.asm.source.utils.ClassOutputUtil import org.objectweb.asm.ClassReader import org.objectweb.asm.ClassWriter import org.objectweb.asm.tree.ClassNode class RemoveMethodDemo { fun test() { } } fun main() { val classReader = ClassReader("com.wangduw...
# frozen_string_literal: true module Devtools module Flay # Measure flay mass relative to size of duplicated sexps class Scale include Adamantium include Anima.new(:minimum_mass, :files) include Procto.call(:measure) # Measure duplication mass # # @return [Array<Rational>...
const MIN = 3; const MAX = 8; function isValidDate (a, b) { const min = new Date(a); const max = new Date(a); min.setDate(min.getDate() + MIN); max.setDate(max.getDate() + MAX); return b >= min && b <= max; } export default isValidDate;
import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; class Field extends StatefulWidget { final TextEditingController controller; final TextInputType? keyboardType; final FocusNode? focusNode; final bool readonly; final bool clearable; final bool autofocus; final List<TextInput...
import { Box, DefaultTheme } from '@chakra-ui/core'; import { css } from '@emotion/core'; import styled from '@emotion/styled'; import { transparentize } from 'polished'; interface IContainerProps { theme: DefaultTheme; isErrored: boolean; } export const Container = styled(Box)<IContainerProps>` --errored-box-s...
package gchat.usermessage; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.client.builder.AwsClientBuilder; import com.amazonaws.services.dynamodbv2.AmazonDynamoDB; import com.amazonaws.service...
-- | -- Module: Sound.Accents.GenAm.IPA -- Description: convert IPA symbols to GenAm sounds -- Copyright: (c) 2019 Ben Spalding (bnspalding.com) -- License: MIT -- Stability: experimental -- -- GenAm.IPA provides tools for converting strings of IPA symbols into sounds. -- This is currently very much embedded in the "So...
require 'mconnect/helpers' module Mconnect class Authorizer include Helpers attr_writer :verifier def initialize oauth_options = load_yaml "#{Dir.home}/.mconnect/config.yml" client_options = { :site => oauth_options['site'], :authorize_path => '/oauth/authorize', ...
#!/bin/bash -l #PBS -l walltime=95:00:00,nodes=1:ppn=8,mem=150gb #PBS -q ram256g #PBS -m abe #PBS -M eriks074@umn.edu #PBS -N CaringBridge_SNA_Inds #PBS -o /home/srivbane/eriks074/repos/sna-social-support/visualization/qsub-scripts/rc.stdout #PBS -e /home/srivbane/eriks074/repos/sna-social-support/visualization/qsub-sc...
package simyukkuri.geometry /** * xy平面上の不変な点. */ data class PositionXY(override val x: Double, override val y: Double) : HasPositionXY { override val position: PositionXY get() = this /** 各成分に指定された値を加えた点を返す. */ fun add(x: Double, y: Double) = PositionXY(this.x + x, this.y + y) }
{-# language FlexibleContexts #-} {-# language PatternSynonyms #-} {-# language RankNTypes #-} module Check.Kind ( checkKind , inferKind ) where import Control.Lens.Getter ((^.)) import Control.Lens.Lens (Lens') import Control.Monad.Except (MonadError, throwError) import Control.Monad.State.Strict (MonadState) i...
/** * @see https://github.com/andymark-by/click-outside-vue3 */ import vClickOutside from 'click-outside-vue3' export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use(vClickOutside) })
#!/bin/sh R_HOME=/home/galaxy/opt/R-3.4.0-Shared/lib/R export R_HOME LD_LIBRARY_PATH=/home/galaxy/opt/R-3.4.0-Shared/lib/R/lib export LD_LIBRARY_PATH PATH=.:/home/galaxy/opt/R-3.4.0-Shared/bin:/home/galaxy/opt/jdk1.8.0_45/bin:$PATH
WORK_DIR=$(dirname $0) psql -f ${WORK_DIR}/migrations/drop_dbs.sql -U postgres
package constant // FormatJpeg is the format string for jpeg var FormatJpeg = "jpeg" // FormatPng is the format string for png var FormatPng = "png"
#include <iostream> #include <bits/stdc++.h> #include<numeric> #include <algorithm> #define ll long long int using namespace std; void Fast() { cin.tie(0); cin.sync_with_stdio(0); } int main() { Fast(); //File_Input(); int n, k; cin >> n >> k; vector<int> v; for (int i = 0; i < n; ++i) { ...
create table if not exists params ( id serial primary key, name varchar(2000) unique, value timestamp );
// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /// Whether two doubles are within a given distance of each other. /// /// The `epsilon` argument must be positive and not null. /// The `a` and `b` argume...
package com.phelat.splash.remote.api import com.phelat.splash.remote.di.DaggerNetworkComponent import com.phelat.splash.remote.di.NetworkModule import com.phelat.splash.remote.utils.TestUtils import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockWebServer import org.junit.After import org.junit.Be...
//go:build unittest // +build unittest package storkctl import ( "testing" "github.com/libopenstorage/stork/pkg/version" "github.com/stretchr/testify/require" "k8s.io/cli-runtime/pkg/genericclioptions" ) func TestVersion(t *testing.T) { f := NewTestFactory() streams, _, buf, _ := genericclioptions.NewTestIOSt...
import math import numpy as np print('loading vertiport configuration') def pointy_hex_corner(center, size, i): angle_deg = 60 * i angle_rad = math.radians(angle_deg) return (center[0] + size * math.cos(angle_rad), center[1] + size * math.sin(angle_rad)) class Config: # experiment setti...
create or replace procedure assert_eq( tActual in varchar2, tExpected in varchar2 ) is tExpectedReplaced varchar2( 4000 ) := replace( tExpected, '<USER>', user ); begin if tActual = tExpectedReplaced or tActual is null and tExpectedReplaced is null then return; end if; raise_application_error( -20001, 'asse...
#!/bin/bash -eE # (C) Sergey Tyurin 2021-03-15 15:00:00 # Disclaimer ################################################################################################################## # You running this script/function means you will not blame the author(s) # if this breaks your stuff. This script/function is provid...
using System.Diagnostics; using System.Threading.Tasks; namespace TabletFriend.Actions { public class CmdAction : ButtonAction { private readonly string _cmd; public CmdAction(string cmd) { _cmd = cmd; } public async override Task Invoke() { var process = new Process(); var startInfo = new Pr...
package nl.pvanassen.highchart.api.utils; import java.util.ArrayList; import nl.pvanassen.highchart.api.base.GsonHelper; import nl.pvanassen.highchart.api.shared.Jsonify; public class JsonArray<E> extends ArrayList<E> implements Jsonify { private static final long serialVersionUID = 1L...
using System; using System.Diagnostics; namespace ReactGraph.PerfTests { class Program { public static void Main() { Console.WriteLine("Warm up..."); var data = new Data(); var algoGraph = new AlgoGraph(data); RunWithGraph(algoGraph);...
<?php declare(strict_types=1); namespace Swoft\Log\Helper; use ReflectionException; use function sprintf; use Swoft\Bean\BeanFactory; use Swoft\Bean\Exception\ContainerException; use Swoft\Log\Logger; class Log { /** * @param string $message * @param array $params * * @return bool * @...
import sbt.{Resolver, _} import sbt.librarymanagement.MavenRepository /** Advxml Created by geirolad on 26/07/2019. * * @author * geirolad */ object Resolvers { lazy val all: Seq[MavenRepository] = Seq( Resolver.sonatypeRepo("public"), Resolver.sonatypeRepo("snapshots"), Resolver.sonatypeRepo(...
/* * Copyright (c) 2020 the spinner contributors. * See the project homepage at: https://jkobejs.github.io/spinner/ * * 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....
// Copyright 2020 VinyMeuh. All rights reserved. // Use of the source code is governed by a MIT-style license that can be found in the LICENSE file. package graphql import ( "net/http" "github.com/99designs/gqlgen/handler" "github.com/vinymeuh/gnucash-graphql/gnucash" ) // NewHandler returns a new graphql endpoi...
## Usage ```js var Base = require('base'); var env = require('{%= name %}'); var base = new Base(); base.use(env()); ``` ## API {%= apidocs("index.js") %} {%= apidocs("lib/*.js") %}
package io.github.dylmeadows.commonkt.javafx.util interface FxSubscription { fun cancel() }
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Role_chk extends CI_Model { public function __construct() { } public function acl($pram){ $uid=$this->session->userdata('id'); $udata = array( "id" => $uid ); $rid = $this->db->get_where("admin",$udata)->row(); ...
(cl:in-package #:gene-mangler.process) (defmethod run! ((process process)) (iterate (with population-interface = (population-interface process)) (for population = (population process)) (until (finished-p process population-interface population)) (cycle! process) (finally (return (population proc...
// Copyright Materialize, Inc. All rights reserved. // // Use of this software is governed by the Business Source License // included in the LICENSE file. // // 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...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
<?php /** * Copyright © Appboxo. All rights reserved. * See LICENSE.txt for license details. */ namespace Appboxo\Connector\Setup; use Appboxo\Connector\Model\Data\Connector; use Magento\Framework\Setup\UninstallInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\ModuleContextIn...
package leetcode; /** * https://leetcode.com/problems/diet-plan-performance/ */ public class Problem1176 { public int dietPlanPerformance(int[] calories, int k, int lower, int upper) { int answer = 0; int[] sums = new int[calories.length]; for (int i = 0; i < k; i++) { sums[k ...
from __future__ import absolute_import from __future__ import unicode_literals from collections import defaultdict import re from memoized import memoized from django.utils.translation import ugettext_noop, ugettext import os import yaml import six from io import open from corehq.apps.app_manager.util import app_doc_...
page 20011 "APIV1 - Company Information" { APIVersion = 'v1.0'; Caption = 'companyInformation', Locked = true; DelayedInsert = true; DeleteAllowed = false; EntityName = 'companyInformation'; EntitySetName = 'companyInformation'; InsertAllowed = false; ODataKeyFields = SystemId; PageT...
#!/bin/sh # # date-menu.sh # # This is in the public domain. Honestly, how can you claim anything to something # this simple? # # Outputs a simple openbox pipe menu to display the date, time, and calendar. # You need 'date' and 'cal'. You should have these. Additionally, the calendar # only appears properly formated...
package prov; import java.text.SimpleDateFormat; import java.util.Date; import org.joda.time.DateTime; import org.joda.time.DateTimeZone; import org.joda.time.MutableDateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.ISODateTimeFormat; pub...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/devtools/cloudtrace/v1/trace.proto require 'google/protobuf' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/timestamp_pb' requ...
{ const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const file = { test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot)$/, loader: 'file-loader', options: { esModule: false, outputPath: 'assets', name: '[name].[contenthash].[ext]', }, ...
require 'spec_helper' module Bug0001Spec class Thing < ActiveRecord::Base end class MyController < ActionController::Base def respond_to?(method) super(method) end resources_controller_for :things, :class => Thing end describe "Calling respond_to? when it has an old signature bur...
package c_StringProcessingExercises; import java.util.*; public class p05_Palindromes { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String[] input = scanner.nextLine().split("[\\s+.,?!]+"); Set<String> palindromes = new TreeSet<>(); for (in...
describe Fastlane::Actions::ReadXcconfigAction do let(:basic) { read_config_path("basic.xcconfig") } let(:parent) { read_config_path("parent.xcconfig") } describe '#run' do it 'expects input xcconfig file to exist' do expect do basic_read_test("nosuchfile") end.to raise_error(/Couldn't fi...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Behaviours { public class FollowGameObject : MonoBehaviour { public string tagToFollow; public GameObject objectToFollow; public Vector3 targetPosition; // Use this for initialization void Start () { objectToF...
using System; using System.Collections.Generic; using NUnit.Framework; using SpiceSharp; using SpiceSharp.Components; using SpiceSharp.IntegrationMethods; using SpiceSharp.Simulations; using SpiceSharpTest.Models; namespace SpiceSharpTest.Simulations { [TestFixture] public class TransientTests : Framework ...
module WizardryHelper def wizardry_content(w) case w.current_page when Wizardry::Pages::QuestionPage render_form(w) when Wizardry::Pages::CheckYourAnswersPage safe_join([render_check_your_answers(w), render_form(w)]) when Wizardry::Pages::CompletionPage render_completion(w) end ...
class Details { List<Corona> corona; Details({this.corona}); Details.fromJson(Map<String, dynamic> json) { if (json['Corona'] != null) { corona = new List<Corona>(); json['Corona'].forEach((v) { corona.add(new Corona.fromJson(v)); }); } } Map<String, dynamic> toJson() { ...
package com.brins.lightmusic.model.onlinemusic import android.os.Parcel import android.os.Parcelable /* * 在线歌单 */ class MusicListBean : Parcelable { var name: String = "" var id: String = "" var userid: String = "" var createTime: Long = 0 var subscribedCount: Long = 0 var coverImgUrl: ...
import 'package:equatable/equatable.dart'; import 'package:meta/meta.dart'; abstract class HomeEvent extends Equatable { HomeEvent([List props = const []]) : super(props); } class ItemUsed extends HomeEvent { final String itemId; ItemUsed(@required this.itemId); @override String toString() => 'Item Used Ev...
// // YLBScrollContentConst.h // YLBScrollViewNest // // Created by yulibo on 2020/10/19. // #import <Foundation/Foundation.h> UIKIT_EXTERN NSString * const YLBMineLeaveTopNotification;
comprehension1 = [x*2 | x <- [1..10]] -- predicates are separated by a comma predicate1 = [x*2 | x <- [1..10], x*2 >=12] predicate2 = [ x | x <- [50..100], mod x 7 == 3] boomBangs xs = [ if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x] --multople predicates predicate3 = [ x | x <- [10..20], x /= 13, x /= 15, x ...
(ns com.yetanalytics.dave (:require [clojure.spec.alpha :as s] [com.yetanalytics.dave.workbook :as workbook] [com.yetanalytics.dave.func :as func])) ;; DAVE Object Specs (s/def ::workbook workbook/workbook-spec) (s/def ::function func/func-spec)
'use strict' const fs = require('fs') const path = require('path') const { promisify } = require('util') const readFile = promisify(fs.readFile) module.exports = function darkMode(mainWindow) { mainWindow.webContents.on('dom-ready', () => { Promise.all([ // Generated overrides for SoundCloud's "app.css" ...
package com.braintreegateway; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Provides a fluent interface to build up requests around {@link Customer Customers}. */ public class CustomerRequest extends Request { private String deviceData; private Stri...
(ns ^:no-doc xtdb.morton (:import xtdb.morton.UInt128)) ;; Start here: ;; https://en.wikipedia.org/wiki/Z-order_curve ;; https://en.wikipedia.org/wiki/Z-order_curve#Use_with_one-dimensional_data_structures_for_range_searching ;; Based on this paper and the decision tables on page 76: ;; https://www.vision-tools.com...
//===- OpGenHelpers.cpp - MLIR operation generator helpers ----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
package vistas; import com.vaadin.flow.templatemodel.TemplateModel; import basededatos.Cliente; import com.vaadin.flow.component.Tag; import com.vaadin.flow.component.dependency.JsModule; import com.vaadin.flow.component.polymertemplate.PolymerTemplate; import com.vaadin.flow.dom.Element; import com.vaadin.flow.comp...
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="viewport" content="initial-scale=1,maximum-scale=1"> <!-- CSS SECTION --> <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="/css/main.css"> <!-- TOOLS CSS --> <link rel="stylesheet" type="...
package nl.fifthpostulate.shortener.jackson import com.fasterxml.jackson.core.JsonParser import com.fasterxml.jackson.databind.DeserializationContext import com.fasterxml.jackson.databind.JsonNode import com.fasterxml.jackson.databind.deser.std.StdDeserializer class CompoundKeyDeserializer(vararg val keyTypes: KeyTyp...
-- -- Database version 31 Update script -- -- 2013-06-25 -- -- Adds support for programmatically defined page & post types ALTER TABLE pagetemplate ADD pagetemplate_type VARCHAR(255) NULL; ALTER TABLE posttemplate ADD posttemplate_type VARCHAR(255) NULL;
module Problem18Tests ( problem18Tests ) where import Test.HUnit import Problem18 sampleTriangle = [ [ 3 ] , [ 7, 4 ] , [ 2, 4, 6 ] , [ 8, 5, 9, 3 ] ] leftS = [ [ 7 ] , [ 2, 4 ] , [ 8, 5, 9 ] ] rightS = [ [ 4 ] , [ 4, 6 ] , ...
/*- * BSD LICENSE * * Copyright (c) Intel Corporation. * 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 retain the above copyri...
import React from "react" import { graphql, Link } from "gatsby" import styled from "styled-components" import Layout from "../../components/Layout" import RichText from "../../components/RichText" import PageTitleSection from "../../components/PageTitleSection" import "./index.css" export const query = graphql` { ...
import { ObjectId } from 'mongodb'; export function normalizeDocument( doc?: any & { _id: ObjectId }, ): any & { _id: string } { if (!doc) { return null; } if (doc._id) { doc._id = doc._id.toString(); } return doc; }
/** * @jest-environment jsdom */ import createAMSClient from "../../src"; import FramedClient from "../../src/FramedClient"; jest.mock("../../src/FramedClient"); jest.mock("../../src/FramedlessClient"); describe('createAMSClient', () => { it('Creating AMSClient on framed mode should return FramedCli...
namespace FasTnT.Domain { public class EpcisMasterdataDocument : Request { } }
# coding: utf-8 from quepy.tagger import Word from quepy.encodingpolicy import assert_valid_encoding import re import logging log = logging.getLogger( 'quepy.spacytagger' ) from neuroarch_nlp.data import neuropils, subregions, colors_values import spacy from spacy.attrs import LOWER nlp = spacy.load('en') # Go thro...
@model HouseholdManager.Web.Areas.Comments.Models.CommentsViewModel @{ Layout = null; } @foreach (var comment in Model.Comments) { <div class="single-comment"> <div class="cmt-header text-left"> <strong>@comment.User</strong> <span>Created on: @comment.CreatedOnDate...
// File was generated from based on docs/cookbooks/scala-versions.md, do not edit manually! object ScalaVersion extends App { def props(url: java.net.URL): java.util.Properties = { val properties = new java.util.Properties() val is = url.openStream() try { properties.load(is) properties }...
package com.lucianghimpu.matchmefy.data.networking.shared.connectivityInterceptor import com.lucianghimpu.matchmefy.appServices.Connectivity.ConnectivityService import okhttp3.Interceptor import okhttp3.Response class ConnectivityInterceptorImpl( private val connectivityService: ConnectivityService ) : Connectivi...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class SementaraUpdateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
// Include the plugin build (composite build) rootProject.name = "examples" pluginManagement { includeBuild("../plugin") } include("default-task") val isCiServer = System.getenv().containsKey("CI") // Cache build artifacts, so expensive operations do not need to be re-computed buildCache { local { is...
/* * @author : Jagepard <jagepard@yandex.ru> * @license https://mit-license.org/ MIT */ using System; namespace CsDesignPatterns_Mediator { public interface IMediator { void AddListener(AbstractListener listener, string methodName); void Notify(string name, IHandler handler); } }
// DO NOT MODIFY FOR BASIC SUBMISSION // scalastyle:off package snake.game import java.awt.event import processing.core.{PApplet, PConstants} import processing.event.KeyEvent import java.awt.event.KeyEvent._ import engine.GameBase import engine.graphics.{Color, Point, Rectangle} import snake.game.SnakeGame._ import...
// Copyright (c) 2010 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 "webkit/blob/deletable_file_reference.h" #include <map> #include "base/file_util.h" #include "base/file_util_proxy.h" #include "base/lazy_in...
// Copyright (c) Johnny Z. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace NetUV.Core.Requests { using System; using NetUV.Core.Handles; using NetUV.Core.Logging; using NetUV.Core.Native; public abstract class Sc...
""" Name: TagGame Version: 0.1 Author: D0Nater GitHub: https://github.com/D0Nater/TagGame/ Date: 07.02.2021 (day/month/year) Last update: 07.02.2021 (day/month/year) Lang: Python 3.6.7 """