text stringlengths 27 775k |
|---|
# Introduction
This document presents the principles that govern how the SARIF TC incorporates changes
into the SARIF spec, and describes the workflow for incorporating agreed-upon changes.
# Principals and process
1. We encourage discussion on the public issues. The Editors will ensure that issues are
filed in the ... |
package io.openfuture.api.entity.scaffold
import io.openfuture.api.entity.base.Dictionary
enum class Blockchain(
private val id: Int,
private val value: String
) : Dictionary {
Ethereum(1, "Ethereum"),
OPEN(2, "OPEN Chain")
;
override fun getId(): Int = id
fun getValue(): String... |
mod poly_impl;
#[proc_macro]
pub fn poly(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
poly_impl::poly(input)
}
|
---
title: Workload
---
A process/binary deployed by operators in Istio, typically represented by entities such as containers, pods, or VMs.
* A workload can expose zero or more [service endpoints](#service-endpoint).
* A workload can consume zero or more [services](#service).
* Each workload has a single canonic... |
Tutorial
--------
### Functions
Function, similar to the ones in math, is a collection of statements that is designed to perform specific tasks. Commonly, functions take in inputs (parameters), which is then processed to return an output. Below is the general format of functions in C++:
type name_of_functio... |
package com.kimi.my.shop.web.admin.dao;
import com.kimi.my.shop.commons.persistence.BaseDao;
import com.kimi.my.shop.domain.Product;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductDao extends BaseDao<Product> {
}
|
module Refinery
class UserPlugin < ActiveRecord::Base
belongs_to :user
attr_accessible :user_id, :name, :position
end
end
|
<?php
namespace Kms\Request\V20160120;
/**
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
*
* Request of GetParametersForImport
*
* @method string getKeyId()
* @method string getWrappingAlgorithm()
* @method string getWrappingKeySpec()
*/
class GetParametersForImportRequest extends \RpcAcs... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
crate::story_context_store::StoryContextStore,
crate::utils,
failure::{format_err, Error, ResultExt},
fidl_fuchsia_app_discover::{
... |
---
title: 2020 Photos
slug: "2020"
thumbnail: /photos/2020/images/20200219-DSC00844.jpg
---
|
require 'test_helper'
class IndustriesControllerTest < ActionDispatch::IntegrationTest
include Devise::Test::IntegrationHelpers
setup do
@industry = industries(:one)
@user = users(:one)
end
test "should get index" do
get industries_url
assert_response :success
end
test "should get new" do
... |
import React, { useState } from 'react';
import { useSelector, useDispatch } from 'react-redux';
import {
Box,
createStyles,
MenuItem,
Select,
Switch,
Typography,
WithStyles,
withStyles,
} from '@material-ui/core';
import { LayerKey, LayerType } from '../../../../config/types';
import {
getDisplayBoun... |
import bpy
from bpy.props import *
from . base import InsertClassTemplateBase, insert_template
from .. utils.variable_name_conversion import (get_valid_variable_name,
get_lower_case_with_underscores,
get_separated_capitalized_... |
using MongoDB.Bson.Serialization.Attributes;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace KnowledgeApi.Models
{
public class Article : MongoBaseModel
{
[BsonElement("title")]
//[Required(ErrorMessage = "Başlık alanı boş geçilemez.")]
public s... |
SELECT FirstName,
MiddleName,
LastName
FROM Employees
|
import { createBrowserHistory } from 'history';
import { nodeStore } from './nodeStore'
import { gatewayStore } from './gatewayStore'
import { userStore } from './userStore'
import { authenticationStore } from './authenticationStore'
import { tradeOrderStore } from './tradeOrderStore';
import { tradeAccountStore } from... |
import pytest
from brownie import accounts, reverts
from settings import *
# reset the chain after every test case
@pytest.fixture(autouse=True)
def isolation(fn_isolation):
pass
@pytest.fixture(scope='function')
def test_mint_token(nft):
_from = accounts[0]
to = accounts[1]
token_price = 0.1 * TENPOW... |
/**
* ZeroDark.cloud Framework
*
* Homepage : https://www.zerodark.cloud
* GitHub : https://github.com/4th-ATechnologies/ZeroDark.cloud
* Documentation : https://zerodarkcloud.readthedocs.io/en/latest/
* API Reference : https://apis.zerodark.cloud
**/
#import <UIKit/UIKit.h>
//
// from http://stac... |
module EthJsonRpc
module Exception
class EthJsonRpcError < StandardError; end
class ConnectionError < EthJsonRpcError; end
class BadStatusCodeError < EthJsonRpcError; end
class BadJsonError < EthJsonRpcError; end
class BadResponseError < EthJsonRpcError; end
end
end
|
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Domain.ViewModels
{
[DataContract]
public class UserRecoveryCodesViewModel
{
[DataMember(Name = "items", EmitDefaultValue = false)]
public IEnumerable<string> Items { get; set; }
}
}
|
# GlobalStyle
```js
import { GlobalStyle } from '@truework/ui'
```
## Usage
Provides base styles and a simple CSS reset based on the `theme`.
```jsx
import { theme, GlobalStyle } from '@truework/ui'
export default () => (
<ThemeProvider theme={theme}>
<GlobalStyle />
{children}
</ThemeProvider>
)
```
... |
import { Provider } from 'react-redux';
import { mount, shallow } from 'enzyme';
import React from 'react';
import { createAppStore } from './store';
import ConnectedSignUpPage, { SignUpPage } from './SignUpPage';
const store = createAppStore();
it('renders without crashing', () => {
mount(
<Provider sto... |
package payload.response
import payload.response.common.OrderFromRecent
import kotlinx.serialization.Serializable
@Serializable
data class RecentOrders private constructor(
val buy_orders: List<OrderFromRecent>,
val sell_orders: List<OrderFromRecent>
) |
#![feature(no_coverage)]
#![feature(trivial_bounds)]
mod alternation_char_mutators;
mod char_mutators;
mod constrained_integer;
mod derived_recursive_struct;
mod expansions;
#[cfg(feature = "regex_grammar")]
mod grammar_based_mutators;
mod option;
mod vector;
|
/*********************************************************************
*
* BSD 3-Clause License
*
* Copyright (c) 2021, dengpw
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
> [!NOTE]
> Bu konu Dynamics 365 Finance ve Dynamics 365 Retail için geçerlidir.
|
import { CourseService } from "v1/api/course/course.service";
import { getDescribe } from "v1/tests/helpers/get-describe";
import { courseMock } from "v1/tests/mocks/course";
// eslint-disable-next-line jest/valid-title
describe(getDescribe(__filename), () => {
let service: CourseService;
beforeAll(async () => {
... |
# frozen_string_literal: true
module Configuration
class MefController < ApplicationController
layout "configuration"
before_action :identification_agent
before_action :set_mef, only: %i[show edit update destroy]
def index
etablissement = @agent_connecte.etablissement
@mef_service = Me... |
package com.trib3.graphql.execution
import assertk.assertThat
import assertk.assertions.isEqualTo
import com.expediagroup.graphql.generator.SchemaGeneratorConfig
import com.expediagroup.graphql.generator.TopLevelObject
import com.expediagroup.graphql.generator.toSchema
import graphql.GraphQL
import org.slf4j.MDC
impor... |
#!/usr/bin/env ruby
require 'yaml'
require 'sensu/plugins/prometheus/checks/runner'
config_file = ARGV[0] || 'config.yml'
abort("Can't find configuration file at '#{config_file}'") \
unless File.exist?(config_file)
runner = nil
begin
runner = Sensu::Plugins::Prometheus::Checks::Runner.new(
YAML.load_file(co... |
import React from 'react';
const UserVote = (props) => (
<div style={{ background: "#eee", borderRadius: '5px', padding: '0 10px' }}>
<p><strong>{props.user}</strong> says:</p>
<p>{props.points}</p>
</div>
);
export default UserVote; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const articles_dialog_box_1 = require("./articles-dialog-box");
class Main {
constructor() {
const dialog = new articles_dialog_box_1.ArticlesDialogBox();
dialog.simulateUserInteraction();
}
}
new Main();
|
#!/bin/bash
#--------------------------------------------------
# global variables
#--------------------------------------------------
# zsh shell lower bound array start from 1
# shellcheck disable=SC2034
case "${SHELL}" in
'/bin/bash'|'/usr/bin/bash'|'/usr/bin/ash'|'/usr/bin/sh')
LBOUND=0
;;
'/u... |
/*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkColor.h"
#include "include/core/SkRefCnt.h"
#include "include/gpu/GrTypes.h"
class GrDirectContext;
class SkColorSpace;
class SkImage;
class SkPixmap;... |
# @quercia/mock
## 0.0.2
### Patch Changes
- [`27ba2d8`](https://github.com/lucat1/quercia/commit/27ba2d8a8056a67d42b00c3d263c2d7e1987163b)
Thanks [@lucat1](https://github.com/lucat1)! - feat(mock): finish work on the
mock package
- Updated dependencies []:
- @quercia/logger@0.0.2
## 0.0.2-next.0
### Patch ... |
#pbuilder update --distribution precise --override-config
pbuilder-dist precise update --override-config
|
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:get/get.dart';
import 'package:get_storage/get_storage.dart';
import 'package:logger/logger.dart';
import 'package:repainter/class/MainState.dart';
import 'constant.dart';
import 'pages/mainpage.d... |
[CmdletBinding()]
Param (
[Parameter(Mandatory = $True, Position = 0, ParameterSetName = 'path')]
[string]$ConfigPath,
[Parameter(Mandatory = $True, Position = 0, ParameterSetName = 'array')]
[array]$ConfigArray
)
ipmo ./PowerSwitch -Force -Verbose:$false
Get-EosInventoryFromConfig -ConfigPath $Config... |
require 'spec_helper'
describe Bihash do
it 'should be enumerable' do
Bihash.must_include Enumerable
end
Bihash::UNIMPLEMENTED_METHODS.each do |method|
it "should report that it does not respond to ##{method}" do
Bihash.new.respond_to?(method).must_equal false
end
it "should raise NoMetho... |
!> @brief This procedure implements the differentiated version of the
!> @param[in] n vector length
!> @param[in] dx vector x
!> @param[in] g_dx derivative object associated to dx
!> @param[in] da scalar a = alpha
!> @param[in] incx stride in vector x
!> @param[out] dx vector x
!> @param[out] g_... |
#!/bin/sh
# Pre-requisities:
# Install and configure pyenv.
# Install poetry after pyenv.
# Install project dependencies.
poetry install
|
(ns gaia.core
(:require
[clojure.walk :as walk]
[clojure.string :as string]
[clojure.tools.cli :as cli]
[aleph.http :as http]
[ring.middleware.resource :as resource]
[ring.middleware.params :as params]
[ring.middleware.keyword-params :as keyword]
[cheshire.core :as json]
[ubergraph.core :as... |
class RecentWork {
final String image, category, title;
final int id;
RecentWork({this.id, this.image, this.category, this.title});
}
// Demo List of my works
List<RecentWork> recentWorks = [
RecentWork(
id: 1,
title: "New & Fresh Looking Portfolio indeed at the end",
category: "Graphic Design",
... |
# -*- coding: utf-8 -*-
from colorsys import rgb_to_hsv, hsv_to_rgb
import logging
from unicorn.apps.color.utils import hex_to_rgb
logger = logging.getLogger('unicorn.utils')
def get_rgb_brightness(color):
"""
Given an RGB _color (hex format), return it's brightness.
"""
r, g, b = hex_to_rgb(color... |
package org.jetbrains.plugins.scala
package lang
package psi
package api
package toplevel
package typedef
import org.jetbrains.plugins.scala.lang.psi.api.statements.ScFunction
trait ScGivenAlias extends ScGiven with ScFunction {
}
|
import os
POSTGRES_DB=os.environ['POSTGRES_DB']
POSTGRES_USER=os.environ['POSTGRES_USER']
POSTGRES_PASSWORD=os.environ['POSTGRES_PASSWORD']
POSTGRES_HOST=os.environ['POSTGRES_HOST']
POSTGRES_PORT=os.environ['POSTGRES_PORT']
'''Path to Wikidata dump from /import folder'''
DUMP = 'latest-all.json.gz'
'''Max number of... |
const nodeLib = require('/lib/xp/node');
const taskLib = require('/lib/xp/task');
const queryLib = require('/lib/query');
exports.post = function (req) {
const bean = __.newBean('systems.rcd.enonic.datatoolbox.RcdReportScriptBean');
const body = JSON.parse(req.body);
const repositoryName = body.repositoryN... |
package testenv
import forex.Main.{AppEnv, AppTask}
import forex.domain.{Price, Rate, Timestamp}
import forex.services.rates.clients.ForexClient.{ForexClient, Service}
import forex.services.rates.errors
import zio.clock.Clock
import zio.console.Console
import zio.{IO, Layer, ZIO, ZLayer}
object TestEnvironment {
d... |
/*
Copyright 2016 The Kubernetes 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 agreed to in writing, ... |
---
title: Teaching
layout: index_eng
dropdown: true
content:
- bsc
- msc
- doktori
- temakiiras
--- |
package com.dsource.idc.jellowintl;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import com.crashlytics.android.Crashlytics;
import com.dsource.idc.jello... |
import { core } from './core'
try {
const app = core()
app.start();
} catch (error) {
console.log(error)
}
|
#!/bin/bash
# This script is intended to be used on Debian systems for building
# the project. It has been tested with Debian 8
USERNAME=$USER
SIGNING_NAME='perfect-mail'
SDK_VERSION='r24.3.3'
SDK_DIR=$HOME/android-sdk
cd ..
PROJECT_HOME=$(pwd)
sudo apt-get install build-essential default-jdk \
lib32stdc++6 l... |
/*
* Copyright © 2014 - 2018 Leipzig University (Database Research Group)
*
* 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
*
* Unles... |
## message_spec.rb
## Used to test wrapper for message results
require 'spec_helper'
describe Wit::REST::Message do
let(:json) {%(
{
"msg_id" : "c20ad081-2cb9-4c63-8dd6-6667409514fa",
"outcomes" : [ {
"_text" : "how many people between Tuesday and Friday",
"intent" : "query_metrics",
"... |
import { BrowserModule } from '@angular/platform-browser';
import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core';
import {MatMenuModule} from '@angular/material/menu';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomePageComponent } from './... |
package just.fp
import just.fp.compat.EitherCompat
/**
* @author Kevin Lee
* @since 2019-03-16
*/
trait Monad[M[_]] extends Applicative[M] {
override def map[A, B](ma: M[A])(f: A => B): M[B] =
flatMap(ma)(a => pure(f(a)))
def flatMap[A, B](ma: M[A])(f: A => M[B]): M[B]
override def ap[A, B](ma: => ... |
# IDEA 版本控制篇 GIT (不一样的操作方式)
### 查看每一行代码的条件人, 提交时间(大部分人不知道)

**选择后入下图所示**

**鼠标移动上去还能看到提交详细信息**
;
namespace webignition\BasilParser;
use webignition\BasilModels\Page\Page;
use webignition\BasilModels\Page\PageInterface;
class PageParser
{
private const KEY_URL = 'url';
private const KEY_ELEMENTS = 'elements';
public static function create(): PageParser
{
r... |
# Stats
This repository is collection of scripts for generating project statistics and
data.
Stats generated by these scripts have been, are and will be used in curl
related blog posts and presentations and by providing the scripts in a public
repository everyone can reproduce the results and can verify the correctne... |
"""Initialize the module."""
from .ugrid_2d_data_extractor import UGrid2dDataExtractor # NOQA: F401
from .ugrid_2d_polyline_data_extractor import UGrid2dPolylineDataExtractor # NOQA: F401
__version__ = '5.0.1'
|
package net.wessendorf.beam;
import org.apache.beam.sdk.Pipeline;
import org.apache.beam.sdk.io.amqp.AmqpIO;
import org.apache.beam.sdk.io.jms.JmsIO;
import org.apache.beam.sdk.io.jms.JmsRecord;
import org.apache.beam.sdk.io.kafka.KafkaIO;
import org.apache.beam.sdk.options.PipelineOptions;
import org.apache.beam.sdk.... |
# SSI PHP SERVER
Local server supporting SSI, PHP, hot reload and Shift-JIS encoded files
<br>
## Dependencies
- gulp
- gulp-connect-php
- gulp-convert-encoding
- connect-ssi
- browser-sync
<br>
<br>
## Configuration
First, you need to have PHP installed on your machine in order to run PHP scripts.
Then open th... |
# University Data Analysis
Data analysis of US colleges and universities.
Data source: *College Scorecard*.
##### Dependencies:
* [NumPy](https://numpy.org)
* [Pandas](https://pandas.pydata.org)
* [Matplotlib](https://matplotlib.org)
|
import * as React from 'react'
import { Wrapper, Guide } from './elements'
import { TGuide } from '../App'
type Props = {
guides: TGuide[]
isLoading: boolean
}
const Guides: React.SFC<Props> = ({ guides }) => (
<Wrapper>
{guides.map((guide) => (
<Guide
key={guide.fileName}
href={`/guid... |
package itest
import (
"context"
"fmt"
"testing"
"time"
"github.com/btcsuite/btcutil"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/lntest"
"github.com/lightningnetwork/lnd/macaroons"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
"gopkg.in/macaroon.v2"
... |
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace AspNetCoreIdentityFido2Mfa.Areas.Identity.Pages.Account.Manage
{
public class MfaModel : PageModel
{
public void OnGet()
{
}
public void OnPost()
{
}
}
}
|
module Day01 where
import AOC
main = do
ns <- parseInput $ eachLine number
print $ sum ns
print $ firstDuplicate $ scanl (+) (0 :: Integer) $ cycle ns
|
package org.kynosarges.tektosyne.demo;
import javafx.application.Application;
import javafx.event.*;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.input.*;
import javafx.scene.layout.*;
import javafx.stage.Stage;
/**
* Defines the Tektosyne D... |
# Phrase
class Phrase
attr_reader :phrase
def initialize(phrase)
@phrase = phrase
end
def word_count
words.each_with_object(Hash.new(0)) { |word, counts| counts[word] += 1 }
end
private
def words
phrase.downcase.gsub(/[^'a-z0-9\s]/i, ' ').split(' ')
end
end
|
package com.vanniktech.espresso.core.utils;
import android.graphics.drawable.Drawable;
import androidx.annotation.CheckResult;
import androidx.annotation.DrawableRes;
import androidx.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import android.widget.ImageView;
import org.hamcrest.Description;
impor... |
#!/usr/bin/env ruby
require 'whois'
require 'whois-parser'
require 'pry-byebug'
require 'colorize'
require 'time_difference'
domain = ARGV[0]
record = Whois.whois(domain)
parser = record.parser
created_on = parser.created_on if parser.registered?
lookup_result = parser.available? ? "available!" : "occupied"
time_dif... |
import skimage as io
from typing import io
import numpy as np
import matplotlib.pyplot as plt
from skimage import io
def laplace_sharpen(input_image, c, choice):
input_image_cp = io.imread(input_image)
m, n = input_image_cp.shape
input_image_cp = np.pad(input_image_cp, ((1, 1), (1, 1)), mode='constant', c... |
<?php
/**
* Created by PhpStorm.
* User: enesdayanc
* Date: 18/08/2017
* Time: 11:40
*/
namespace PaymentGateway\VPosGaranti\Constant;
class MotoInd
{
const MAIL_ORDER = 'Y';
const E_COMMERCE = 'N';
}
|
using System;
using System.Collections.Generic;
using System.Linq;
namespace CustomerTestsExcel.ExcelToCode
{
public class ExcelToCodeState
{
public ExcelToCodeGiven Given { get; }
public ExcelToCodeTable Table { get; }
public ExcelToCodeSimpleProperty SimpleProperty { get; }
p... |
#!/usr/bin/env ruby
require 'prophet'
require 'logger'
require 'yaml'
require_relative 'ci_executor'
Prophet.setup do |config|
# Setup Github access.
CONFIG_FILE = './options.yml'
if File.exists?(CONFIG_FILE)
options = YAML.load_file(CONFIG_FILE)
config.username_pass = options['default']['username_pas... |
package com.jayway.jsonpath.spi.transformer;
import java.text.MessageFormat;
import java.util.ResourceBundle;
public abstract class ValidationError {
private String errorCode;
private String description;
public ValidationError(String errorCode, ResourceBundle bundle) {
this.errorCode = errorCode... |
# python-email-sending-with-attachment
These codes are helpful for sending email using python with attachments,
|
#!/usr/bin/env bash
CUDA_VISIBLE_DEVICES=0 python main.py \
--output_dir ./experiment_SRGAN_VGG54/ \
--summary_dir ./experiment_SRGAN_VGG54/log/ \
--mode train \
--is_training True \
--task SRGAN \
--batch_size 16 \
--flip True \
--random_crop True \
--crop_size 24 \
--input_dir_... |
from httplib import HTTPConnection
import mimetypes
import random
import string
class ApiInterface():
# Custom HTTP Headers
auth_header = "X-Authorization"
user_header = "X-User"
def __init__(self, user_name, auth_key, scan_host, scan_port):
"""
Constructor sets the connection info
The API key for a use... |
angular.module('info', [])
.controller('MainCtrl', ['$scope', '$http', '$location', function($scope, $http){
$http.get("/info/json/" + document.location.pathname.split('/').pop()).then(function(success){
$scope.profile = success.data.profile;
}, function(error){
$scope.profile = {};
});
}]); |
lmxrk=22
nrows[1]=54000; nb[1]=1125; acc[1]=8; maxrank[1]=$lmxrk;
nrows[2]=81000; nb[2]=1125; acc[2]=8; maxrank[2]=$lmxrk;
nrows[3]=108000; nb[3]=1125; acc[3]=8; maxrank[3]=$lmxrk;
nrows[4]=135000; nb[4]=1125; acc[4]=8; maxrank[4]=$lmxrk;
nrows[5]=162000; nb[5]=1125; acc[5]=8; maxrank[5]=$lmxrk;
nrow... |
class Client {
String id;
String email;
String name;
String lastName;
Client(this.email, this.name, this.lastName);
Client.fromMap(String id, Map<String, dynamic> data) {
this.id = id;
email = data["email"];
name = data["name"];
lastName = data["lastName"];
}
Map<String, dynamic> toMa... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Guppy.UI.Utilities.Units
{
/// <summary>
/// A simple static pixel value that
/// never changes.
/// </summary>
public class PixelUnit : MultiUnit
{
#region Private Fields
private In... |
@page
@model RegisterModel
@{
ViewData["Title"] = "Register";
}
<h1>@ViewData["Title"]</h1>
<div class="row">
<div class="col-md-4">
<form asp-route-returnUrl="@Model.ReturnUrl" method="post">
<h4>Create a new account.</h4>
<hr />
<div asp-validation-summary="All" ... |
package library.enrichment.messaging
import au.com.dius.pact.consumer.MessagePactBuilder
import au.com.dius.pact.consumer.dsl.PactDslJsonBody
import au.com.dius.pact.model.PactSpecVersion
import au.com.dius.pact.model.v3.messaging.Message
import com.nhaarman.mockitokotlin2.check
import com.nhaarman.mockitokotlin2.mock... |
/* ========================================
* StereoFX - StereoFX.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __StereoFX_H
#include "StereoFX.h"
#endif
void StereoFX::processReplacing(float **inputs, float **outputs, VstInt32 sampleFrames)
{
f... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\PassportScans
*
* @property int $id
* @property int $user_id
* @property string $path
* @property int $is_confirm
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
* @method static \Ill... |
---
layout: page
title: How to Contribute
subtitle: Context
use-site-title: false
---
## Video
## Transcript
|
function editDistance(s1, s2)
m=length(s1)+1
n=length(s2)+1
i=0
j=0
tbl = Dict{Tuple{Int64,Int64},Int64}()
for i=1:m
tbl[i,1]=i-1
end
for j=1:n
tbl[1,j]=j-1
end
for i=2:m
for j=2:n
cost = s1[i-1] == s2[j-1]?0:1
tbl[i,j] = min(tbl[i,... |
package com.shop.service.impl;
import com.shop.service.CustomerService;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Service;
import java.util.concurrent.TimeUnit;
@Service("customerService")
public class CustomerServiceImpl implements CustomerService, DisposableBean... |
import * as moment from 'moment-timezone';
import * as React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { setSettings } from '../../store/actions';
import { ConfigProps } from '../../types';
const getSettings = state => state.bookings.config;
export const useCalendarSettings = () =>... |
#include "ComponentObject.h"
ComponentObject::ComponentObject()
{
_enabled = true;
}
ComponentObject::~ComponentObject()
{
}
void ComponentObject::update(float dt)
{
}
ComponentObject* ComponentObject::create()
{
ComponentObject *node = new ComponentObject();
if (node)
{
node->autorelease();
return node... |
# typed: strict
module Types
class ActivityFeedType < Types::BaseEnum
description "Options for filtering events in the activity feed."
value "GLOBAL", value: 'global', description: "Events from everyone."
value "FOLLOWING", value: 'following', description: "Events from the current user and anyone they fo... |
// Copyright (c) 2020 Oxford-Hainan Blockchain Research Institute
//
// 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 require... |
#include <stdio.h>
char stack[1000002];
int main(void)
{
int n,ptr;
char ch;
scanf("%d", &n);
getchar();
while(n--)
{
ptr = 0;
while((ch = getchar()) != '\n')
{
stack[ptr] = ch;
if(ptr && stack[ptr]==stack[ptr-1])
ptr--;
else
ptr++;
}
stack[ptr] = '\0';
printf("%s\n",stack);
}
retu... |
## Direitos autorais e de licença
Este componente está sob a [licença MIT](https://github.com/gpupo/common-sdk/blob/master/LICENSE)
Para a informação dos direitos autorais e de licença você deve ler o arquivo
de [licença](https://github.com/gpupo/common-sdk/blob/master/LICENSE) que é distribuído com este código-fon... |
import { render, screen } from '@testing-library/react';
import fetchMock from 'fetch-mock';
import { ContextFactory as mockContextFactory } from 'utils/test/factories';
import createQueryClient from 'utils/react-query/createQueryClient';
import { Maybe, Nullable } from 'types/utils';
import { User } from 'types/User';... |
//using System;
//using System.Collections;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using MongoDB.Bson;
//namespace Khooversoft.MongoDb
//{
// public class ExpressionNode<T> : IExpressionNode, IEnumerable<IExpressionNode>
// {
// pri... |
package appspacerouter
import (
"testing"
pathToRegexp "github.com/soongo/path-to-regexp"
)
func TestP2R(t *testing.T) {
toEnd := false
r, err := pathToRegexp.PathToRegexp("/abc", nil, &pathToRegexp.Options{End: &toEnd})
if err != nil {
t.Error(err)
}
m, err := r.FindStringMatch("/abc/def")
if err != nil ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.