text stringlengths 27 775k |
|---|
module Steps
module Applicant
class HasSolicitorController < Steps::ApplicantStepController
def edit
@form_object = HasSolicitorForm.new(
c100_application: current_c100_application,
has_solicitor: current_c100_application.has_solicitor
)
end
def update
... |
# syslog-client
This module is a pure JavaScript implementation of the [BSD Syslog Protocol][1].
This module is installed using [node package manager (npm)][2]:
npm install syslog-client
It is loaded using the `require()` function:
var syslog = require("syslog-client");
TCP or UDP clients can then be cre... |
namespace MFDMF_Models
{
public enum SupportedThrottleTypes
{
WH,
HC
}
}
|
package uk.gov.dvla.vehicles.presentation.common.webserviceclients.acquire
import scala.concurrent.Future
import uk.gov.dvla.vehicles.presentation.common.clientsidesession.TrackingId
trait AcquireService {
def invoke(cmd: AcquireRequestDto, trackingId: TrackingId): Future[(Int, Option[AcquireResponseDto])]
}
|
module NpmApi
class Client
def self.get(path)
base_url = "https://api.npmjs.org/"
url = base_url + path
res = RestClient.get(url)
JSON.parse(res.body)
end
end
end
|
#pragma once
#include "CesiumGeospatial/Ellipsoid.h"
#include "CesiumGeospatial/Library.h"
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
namespace CesiumGeospatial {
/**
* @brief Transforms positions to various reference frames.
*/
class CESIUMGEOSPATIAL_API Transforms final {
public:
/**
* @brief Compute... |
# encoding: UTF-8
# Global requires
require 'multi_json'
# Local requires
require 'gooddata/models/models'
module ProjectHelper
PROJECT_ID = 'we1vvh4il93r0927r809i3agif50d7iz'
PROJECT_URL = "/gdc/projects/#{PROJECT_ID}"
PROJECT_TITLE = 'GoodTravis'
PROJECT_SUMMARY = 'No summary'
def self.get_default_proje... |
# frozen_string_literal: true
class UnsubmittedCourseAlertMailer < ApplicationMailer
def self.send_email(alert)
return if !alert.user || alert.user.email.blank?
email(alert).deliver_now
end
def email(alert)
@instructor = alert.user
@name = @instructor.real_name || @instructor.username
@cours... |
<?php defined('BASEPATH') OR exit('NO idrect script access allowed');
class Login extends CI_Controller{
function __construct(){
parent::__construct();
$this->load->model("post_model");
//$this->load->library('session');
}
function index(){
$this->load->view(login);
}... |
using System;
using JetBrains.Annotations;
using Unity.Collections;
using Unity.Networking.Transport;
using UnityEngine;
namespace Netling
{
public static class StreamExtension
{
public static void WriteBool(ref this DataStreamWriter writer, bool b)
{
writer.WriteByte((byte) (b ? 1 ... |
require 'test_helper'
class InstructionsControllerTest < ActionDispatch::IntegrationTest
setup do
@instruction = instructions(:one)
end
test "should get index" do
get instructions_url
assert_response :success
end
test "should get new" do
get new_instruction_url
assert_response :success
... |
package krasilov.dima.service
import arrow.core.Either
import kotlinx.datetime.*
import krasilov.dima.integration.FonoApi
import krasilov.dima.model.DAO
import krasilov.dima.web.*
import org.jetbrains.exposed.sql.*
import org.jetbrains.exposed.sql.transactions.transaction
import java.time.LocalDateTime
// fixme bette... |
import numpy as np, argparse, sys
sys.path.append("..")
from src.RobustPolyfit import robust_polyfit
from scipy.stats import norm
import matplotlib.pyplot as plt
import time
def main():
parser = argparse.ArgumentParser(description="Test the RobustPolyfit module.")
parser.add_argument("noisefrac", type=float, d... |
{
This is a module implementing dynamic memory stack.
Running this file will not do anything, run 'stackdemo.pas' instead.
}
Interface
type Item = record
Value: String;
Next: ^Item;
end;
procedure Push(Val: String);
function Pop: String;
function CanPop: Boolean;
implementation
var Top: ^Item = nil;
procedure... |
<?php
namespace app\index\controller;
use think\Controller;
use \think\Request;
use \think\Db;
class Index extends Controller {
public function index() {
// 网站首页
return view();
}
public function loginMid(){
// 登录处理
$req = request() -> param();
$res = Db... |
package main
import (
"flag"
"fmt"
"runtime"
"time"
)
var (
numBurn int
updateInterval int
)
func cpuBurn() {
for {
for i := 0; i < 2147483647; i++ {
}
runtime.Gosched()
}
}
func init() {
flag.IntVar(&numBurn, "n", 0, "number of cores to burn (0 = all)")
flag.IntVar(&updateInterval, "u", 10, ... |
import { Component, OnInit, ViewChild, Input } from '@angular/core';
import { MatPaginator, MatSort } from '@angular/material';
import { NoticelistDataSource } from './noticelist-datasource';
import { Notice } from '@app/entity/notice/notice.model';
import { Store } from '@ngrx/store';
import * as fromNotice from '../.... |
const utils = require('.');
describe('newRequester', () => {
test('no params', () => {
const req = utils.newRequester();
expect(req).toBeTruthy();
});
});
|
use super::*;
use assert2::assert;
#[test]
fn on_empty_container_builder_increases_len_to_1() {
// Given an empty list
let item = 42_i32;
let expected_len = 1;
let sut = ContainerBuilder::new();
assert!(sut.is_empty());
// When
let result = sut.register_instance(item);
// Then
ass... |
PLANETS = ('Mercury', 'Venus', 'Earth', 'Mars',
'Jupiter', 'Saturn', 'Uranus', 'Neptune')
def get_planet_name(planet_id):
return PLANETS[planet_id - 1]
|
# golang - graceful shutdown example
Sample implementation of a signal listening shutdown
handling of a go application using context.WithCancel.
|
This is my first trip,
my first foreign trip as a first lady.
Can you believe that?
(Applause)
And while this is not my first visit to the U.K.,
I have to say that I am glad that this is my first official visit.
The special relationship between the United States and the U.K.
is based not only on the relationship bet... |
<?php
namespace x3ts\mqtt\protocol\constants;
abstract class QoS
{
public const AT_MOST_ONCE = 0;
public const AT_LEAST_ONCE = 1;
public const EXACTLY_ONCE = 2;
}
|
package xyz.fcampbell.rxplayservices.awareness
import android.content.Context
import com.google.android.gms.awareness.Awareness
import com.google.android.gms.awareness.AwarenessOptions
import com.google.android.gms.awareness.FenceApi
import com.google.android.gms.awareness.fence.FenceQueryRequest
import com.google.and... |
Stylebot
==========================
This stylebot sample restyles GitHub using Input.
* Ello restyle, by Patch Hofweber <http://stylebot.me/styles/7134>
Comments? <input@fontbureau.com> |
package gae
import (
"net/http"
"google.golang.org/appengine/blobstore"
"google.golang.org/appengine"
"encoding/csv"
"strings"
"fmt"
)
func ServeHandler(w http.ResponseWriter, r *http.Request) {
ctx := appengine.NewContext(r)
//blobstore.Send(w, appengine.BlobKey(r.FormValue("blobKey")))
out := blobstore.Ne... |
<?php
/**
* DataStructures for PHP
*
* @link https://github.com/SiroDiaz/DataStructures
* @copyright Copyright (c) 2017 Siro Díaz Palazón
* @license https://github.com/SiroDiaz/DataStructures/blob/master/README.md (MIT License)
*/
namespace DataStructures\Sets;
use DataStructures\Trees\Nodes\DisjointNode;... |
CHMS=/home/chms
for i in $CHMS/*.chm; do
file=$i
dir=${file/\.chm/}
# echo $file
# echo $dir
extract_chmLib $file $dir
done
|
import React, { FC, useEffect, useRef, useCallback } from 'react';
import cx from 'classnames';
import { PDFPageProxy, PDFPageViewport, TextContent, TextContentItem } from 'pdfjs-dist';
import { EventBus } from 'pdfjs-dist/lib/web/ui_utils';
import { TextLayerBuilder } from 'pdfjs-dist/lib/web/text_layer_builder';
impo... |
// https://github.com/vuejs/vuejs.org/blob/master/src/v2/examples/vue-20-single-file-components/Hello.vue
module.exports = {
data() {
return {
greeting: 'Hello',
}
},
}
|
Create Database M_InLock
Use M_InLock
Create Table Usuarios
(
UsuarioId Int Primary Key Identity
,Email Varchar (255) Not Null
,Senha Varchar (255) Not Null
,PermissaoDoUsuario Varchar (255) Not Null
);
Create Table Estudios
(
EstudioId Int Primary Key Identity
,NomeEstudio Varchar (255) Not Null
,PaisDeOrige... |
import {CreateEventStatement, EventStatus, SyntaxKind} from "../../../parser-node";
import {emitAccountIdentifierOrCurrentUser, emitEventIdentifier} from "../../identifier";
import {StringBuilder} from "../../string-builder";
import {emitStoredProcedureStatement} from "../../stored-procedure-statement";
import {emitStr... |
<?php
namespace Victoire\Bundle\ConfigBundle\Validator;
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class JsonValidator extends ConstraintValidator
{
/**
* @param mixed $value
* @param Constraint $constraint
*
* @throws \Exception
... |
import { np } from './np';
import { withCache } from './withCache';
export default {
np,
withCache,
};
|
import { Admin } from '../schemas/AdminSchema'
//admin details statically inserted
export const storeAdminDetail = () => {
const adminData = {
admin_name: "Admin",
email: "admin@gmail.com",
password: "12345678",
token: 'dfd8ufejh8bh8idsfsdiduf',
profile_picture: "admin.png"
... |
module ActiveAdmin
module Inputs
class SwitchInput < BooleanInput
include ::Adminterface::Extensions::Inputs::Base
def boolean_wrapper_class
"#{super} form-switch".squish
end
end
end
end
|
/**
*
* © Copyright 2017 Greg Symons <gsymons@gsconsulting.biz>.
*
* 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 ... |
/* The smooth Class Library
* Copyright (C) 1998-2018 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... |
---
title: 'Downloading annotations'
linkTitle: 'Downloading annotations'
weight: 18
---
1. To download the latest annotations, you have to save all changes first.
Сlick the `Save` button. There is a `Ctrl+S` shortcut to save annotations quickly.
1. After that, сlick the `Menu` button.
1. Press the `Export task dat... |
// FULL_JDK
package test
import java.util.AbstractList
public open class ModalityOfFakeOverrides : AbstractList<String>() {
override fun get(index: Int): String {
return ""
}
override val size: Int get() = 0
}
|
### 1.2.3
* Include System.Net.Requests & System.Net.WebClient in references
### 1.2.2
* Enable passing otherFSharpOptions
### 1.2.0
* fable-compiler 2.4.2
### 1.1.8
* fable-compiler 2.3.25
### 1.1.7
* fable-compiler 2.3.24
### 1.1.6
* fable-compiler 2.3.21
### 1.1.5
* fable-compiler 2.3.19
### 1.1.4
* f... |
# chemical-symbols
Symbols of the chemical elements.
## Example
``` javascript
var symbols = require('chemical-symbols');
// =>[
// => 'H',
// => 'He',
// => 'Li',
// => ...
// => 'Lv',
// => 'Ts',
// => 'Og'
// =>]
```
## Installation
``` bash
$ npm install chemical-symbols
```
## API
``` javascript
var ... |
// Copyright 2020 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.
#ifndef ASH_CAPTURE_MODE_CAPTURE_MODE_TYPES_H_
#define ASH_CAPTURE_MODE_CAPTURE_MODE_TYPES_H_
namespace ash {
// Defines the capture type Capture Mode i... |
<?php
declare(strict_types=1);
namespace Tests\Stub\PHPUnitJSONLogOutput;
use Paraunit\Parser\JSON\Log;
class JSONLogStub
{
public const TWO_ERRORS_TWO_FAILURES = '2Errors2Failures';
public const ALL_GREEN = 'AllGreen';
public const FATAL_ERROR = 'FatalError';
public const SEGFAULT = 'SegFault';
... |
<?php
namespace App\Containers\Message\Actions;
use Apiato\Core\Foundation\Facades\Apiato;
use App\Ship\Parents\Actions\Action;
class GetAllMessagesAction extends Action
{
public function run()
{
$messages = Apiato::call('Message@GetAllMessagesTask', [true], [
'ordered',
'grou... |
---
bio: My research interests include coronavirus (COVID-19) use R programming.
education:
courses:
- course: Master of Business Anlytics
institution: Monash University
year: 2021
- course: Bachelor of Accounting
institution: La Trobe University
year: 2019
email: "plin0018@student.monash.edu"
int... |
package dk.cachet.carp.common.application.data.input
import dk.cachet.carp.common.application.data.input.elements.SelectOne
/**
* All default CARP [InputDataType]s.
*/
object CarpInputDataTypes : InputDataTypeList()
{
/**
* The [InputDataType] namespace of all CARP input data type definitions.
*/
... |
require "rails_helper"
describe WeeklyIterationSuggestions do
describe "#perform" do
it "calls WeeklyIterationRecommender for each user" do
user = create(:user)
video = create(:recommendable_content).recommendable
recommender = stub_weekly_iteration_recommender_with(
user: user,
... |
CREATE SCHEMA Test_AssertEquals;
GO
CREATE PROCEDURE Test_AssertEquals.Test_Hello_Hello
AS
BEGIN
EXEC tSQLt.AssertEquals 'hello', 'hello';
END;
GO
CREATE PROCEDURE Test_AssertEquals.Test_NULL_NULL
AS
BEGIN
EXEC tSQLt.AssertEquals NULL, NULL;
END;
GO
CREATE PROCEDURE Test_AssertEquals.Test_Hello_Hallo
AS
BEGI... |
#include "Halide.h"
using namespace Halide;
int main(int argc, char **argv) {
Target target = get_jit_target_from_environment();
Target target_fuzzed = target.with_feature(Target::FuzzFloatStores);
const int size = 1000;
{
// Check some code that should be unaffected
Func f;
... |
# task-progress
Shows native OS task progress for node apps (wherever supported).
Could be used for downloaders, load indicators or any kind of metrics.
<img src="http://i.imgur.com/4BpNBHb.png" border="0" />
## Installing
```sh
$ npm install task-progress
```
## Using
Just one function, `progress(n)` where `n`... |
package models.im
import java.util.UUID
import io.suggest.common.empty.OptionUtil
import io.suggest.common.html.HtmlConstants
import io.suggest.compress.MCompressAlgo
import io.suggest.img.crop.MCrop
import io.suggest.img.MImgFormat
import io.suggest.jd.MJdEdgeId
import io.suggest.n2.edge.MEdge
import io.suggest.util... |
## Configuration
The specs are configured to run against `bolt://localhost:7687` by default. In order to change this in your local setup you can set the `NEO4J_URL` environment variable on your system to suit your needs.
To make this easier, the neo4j spec suite allows you to add a `.env` file locally to configure th... |
//------------------------------------------------------------------------------
// <auto-generated>
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step will regenerate the code on each local build.
// </auto-... |
module AWSPricing
class EMR
#Elastic MapReduce Service pricing data
#Returns Hash of pricing information
def self.pricing
Base.get('/elasticmapreduce/pricing/pricing-emr')
end
end
end
|
#!/bin/bash
set -e
script_dir=$(dirname "$0")
GIT_COMMITTER_NAME="auto-prettier" GIT_COMMITTER_EMAIL="auto-prettierr@freighttrust.com" \
git commit --author="auto-prettier <auto-prettier@freighttrust.com>" \
--all --message="chore: automated prettier" --no-verify
sleep 1
git tag auto/post-prettier
git push origi... |
from collections import defaultdict
from dataclasses import dataclass, field, replace
from typing import Dict, List, Optional, Set, Tuple, Union
from .flow_graph import (
BasicNode,
ConditionalNode,
FlowGraph,
Node,
ReturnNode,
SwitchNode,
TerminalNode,
)
from .options import Options
from .... |
<?php
namespace Admin\Service;
use Common\Service\BaseService;
class RuleService extends BaseService{
public function ruleindex( $param=[] ){
$ruleObj = $this->getModel('rule');
$rule_init = $ruleObj->getrule();
$rule = $ruleObj->getTreeData( $rule_init , 'level','id','title');
$r... |
import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import * as xolor from 'xolor';
import ColorInterface from '../store/color.interface';
import { ClipboardService } from '../clipboard.service';
import { Store, select } from '@ngrx/store';
i... |
CREATE TABLE B_SALE_HDALE
(
CODE VARCHAR(100) NOT NULL,
ID INT NOT NULL,
NAME VARCHAR(100) NOT NULL,
PCITY VARCHAR(100) NULL,
PSUBREGION VARCHAR(100) NULL,
PREGION VARCHAR(100) NULL,
PCOUNTRY VARCHAR(100) NULL,
LOCATION_ID INT NULL,
LOCATION_EXT_ID INT NULL
)
GO
ALTER TABLE B_SALE_HDALE ADD CONSTRAINT PK_B_SAL... |
use crate::query_builder::Only;
use crate::Table;
/// The `only` method
///
/// This is only implemented for the Postgres backend.
/// The `ONLY` clause is used to select only from one table and not any inherited ones.
///
/// Calling this function on a table (`mytable.only()`) will result in the SQL `ONLY mytable`.
/... |
package com_app_wx.app.contact;
import com_app_wx.app.AppMainPage;
import org.junit.jupiter.api.*;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.net.MalformedURLException;
import java.util.strea... |
<?php
/************************************************************************
* This script combines functions from the Inbound Shipment API
* with Klasrun-specific functions to create a shipment to be sent to Amazon.
************************************************************************/
/********************... |
module UniversumBoolType where
import Prelude (Bool)
import Universum hiding (Bool, show)
foo :: Bool
foo = undefined
|
<?php
// Muaz Khan - www.MuazKhan.com
// MIT License - https://www.webrtc-experiment.com/licence/
// Documentation - https://github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC
foreach(array('video/webm', 'video', 'audio') as $type) {
$file = fopen("test.txt","w");
fwrite($file,sizeof($_FILES)."llmlmpok... |
-- db_patches
INSERT INTO `db_patches` (issue, created) VALUES ('POCOR-3058', NOW());
-- code here
UPDATE `area_administratives` SET `parent_id` = NULL WHERE `parent_id` = -1;
UPDATE `areas` SET `parent_id` = NULL WHERE `parent_id` = -1; |
<nav>
<div class="nav-wrapper black darken-4">
<a href="#" data-activates="mobile-demo" class="button-collapse">
<i class="material-icons">menu</i>
</a>
<!-- Mobile View -->
<ul class="side-nav" id="mobile-demo">
@if(Auth::guest())
<li><a href="{{ route('login') }}">Login</a></li>
... |
require "base64"
require "stringio"
require "socket"
module Triton
module Http
module Signing
# This class implements a minimum amount of ssh-agent protocol required
# to have the agent sign payloads on our behalf.
# At present the class only supports signing using rsa keys, dsa and ecdsa hav... |
#!/usr/bin/env ruby -w
class RandomBot
def reset
@cards = (1..13).sort_by { rand }
end
alias_method :initialize, :reset
def play_card
@cards.shift
end
def play
until @cards.empty?
$stdin.gets # competition card--ignored
$stdout.puts play_card
$stdout.flush
$stdin.g... |
package br.com.zup.pix.consulta
import br.com.zup.ConsultaChavePixResponse
import br.com.zup.pix.ChavePix
import br.com.zup.pix.ContaAssociada
import br.com.zup.pix.TipoChave
import br.com.zup.pix.TipoConta
import com.google.protobuf.Timestamp
import java.time.LocalDateTime
import java.time.ZoneId
import java.util.*
... |
using GalaSoft.MvvmLight.Messaging;
using gestadh45.model;
namespace gestadh45.business.PersonalizedMsg
{
/// <summary>
/// Notification message demandant l'affichage des infos sur la saison courante.
/// </summary>
public class NMShowInfosSaisonCourante : NotificationMessage<Saison>
{
/// <summary>
/// Init... |
package com.thilawfabrice.compass.ui.displaytips
import android.annotation.SuppressLint
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.View
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextVie... |
require 'faraday'
require 'fileutils'
require 'support/integration_spec_support'
describe "The pact-mock-service command line interface", mri_only: true do
include Pact::IntegrationTestSupport
before :all do
FileUtils.rm_rf 'tmp'
@pid = nil
@pid = fork do
exec "bundle exec bin/pact-mock-servic... |
module modhorfft
implicit none
contains
subroutine test_fft(u,avgerror)
! test accuracy of fft for a given function
use flags, only: debug
use dim, only: nx, nxpp, nxpl, ny, nypl, nzpl
use mpicom, only: myid, numprocs, comm, ierr
! i/o
real, dimension(nxpp,nypl,nzpl), intent(in) :: u
real, intent(out) :: avgerror
! ... |
import 'dart:async';
import 'package:e_szivacs/generated/i18n.dart';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:html_unescape/html_unescape.dart';
import '../Datas/Homework.dart';
import '../Datas/User.dart';
import '../Dialog/TimeSelectDialog.dart';
impor... |
package service;
import dao.ProductDao;
import model.Product;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.util.List;
/**
* @author xzinoviou
*/
@Path("/products")
public class ProductService {
private ProductDao productDao;
public ProductService(){
sup... |
package SimulationTest.one.exam6.exam1.test16.oca;
/**
* Java SE 11 Programmer I_1Z0-815
* Paulo Alexander Chirán Portillo
* paulo.alexander12@gmail.com
*/
public class A {
public void print() {
System.out.println("A");
}
} |
import 'dart:async';
import 'package:bnb_wallet/infrastructures/restful/login/repository_login.dart';
import 'package:bnb_wallet/infrastructures/restful/login/response_my_certificate.dart';
import 'package:bnb_wallet/utils/constans_util.dart';
import 'package:bnb_wallet/utils/dialog_util.dart';
import 'package:bnb_wal... |
package io.prediction.algorithms.mahout.itemrec.knnitembased
import org.specs2.mutable._
import com.github.nscala_time.time.Imports._
import scala.io.Source
import java.io.File
import java.io.FileWriter
import java.io.BufferedWriter
import io.prediction.algorithms.mahout.itemrec.MahoutJob
import io.prediction.algorit... |
package com.ttulka.ecommerce.common.events
/**
* A Domain Event is a role, and thus should be represented explicitly.
*/
interface DomainEvent |
import { createDocClient } from './createDynamodbDocClient';
const docClient = createDocClient();
const params = {
TableName: 'Movies',
ExclusiveStartKey: null,
ProjectionExpression: '#yr, title, info.rating',
FilterExpression: '#yr between :start_yr and :end_yr',
ExpressionAttributeNames: {
'#yr': 'yea... |
package io.codelabs.zenitech.widget
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import androidx.appcompat.widget.AppCompatTextView
import io.codelabs.zenitech.R
/**
* Composite view to show an item containing... |
using System;
using System.Collections.Generic;
using System.Text;
using YouZan.Open.Common.Extensions.Attributes;
namespace YouZan.Open.Api.Entry.Request.Users
{
public class UserWeiXinOpenIdGetRequest : YouZanRequest
{
/// <summary>
/// 手机号国际码,当前仅支持国内手机号
/// </summary>
[ApiF... |
using System.Collections.Generic;
using System.Linq;
using JetBrains.Metadata.Reader.API;
using JetBrains.Util;
using Xunit.Abstractions;
namespace XunitContrib.Runner.ReSharper.UnitTestProvider
{
// TODO: Cache and reuse objects
public class MetadataAssemblyInfoAdapter : IAssemblyInfo
{
private r... |
/*-
* Copyright (c) 2019 TAO Zhijiang<taozhijiang@gmail.com>
*
* Licensed under the BSD-3-Clause license, see LICENSE for full information.
*
*/
#include <sys/types.h>
#include <ifaddrs.h>
#include <sys/socket.h>
#include <netdb.h>
#include "zkPath.h"
namespace Clotho {
// 获取本主机的IP地址信息,出去回环、非法地址
std::vector<s... |
cp /course/cs5700sp17/popular_raw.html . &&
python popular_to_text.py &&
rm popular_raw.html
|
package com.dsc.hosp.rabbitmq.constant;
/**
* @author MQConst
*/
public class MqConst {
public static final String EXCHANGE_DIRECT_ORDER="exchange.direct.order";
public static final String ROUTING_ORDER="order";
public static final String QUEUE_ORDER="queue.order";
public static final String EXCHANGE... |
package com.github.scaruby.collection
import scala.collection.mutable
import org.scalatest.diagrams.Diagrams
import org.scalatest.funspec.AnyFunSpec
class RichMapSpec extends AnyFunSpec with Diagrams {
describe("RichMap") {
val source = Map("X" -> 1, "Y" -> 2, "Z" -> 3)
it("keyOf") {
assert(Some("X")... |
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
* This file is generated. Do not modify it manually!
* @codegen-command : phps RepoSync intl_oss_fbt
* @codegen-source : fbsource/xplat/intl/oss-fbt/packages/react-native-fbt/js/NativeFbtModule.js
* @generated SignedSource<<96f13b0ee798f9... |
<?php
/*
* This file is part of Totara Learn
*
* Copyright (C) 2021 onwards Totara Learning Solutions LTD
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* ... |
!c crossmul - cross multiply two files, one conjugated, form int and amp file
subroutine crossmul(cst, slcAccessor1, slcAccessor2, ifgAccessor, ampAccessor) BIND(C,name='crossmul_f')
use, intrinsic :: iso_c_binding
use crossmulState
implicit none
include 'omp_lib.h'
type(crossmul... |
use crate::shared::config::AppConfig;
use crate::shared::PlainContext;
use crate::shared::{argon2_verify, sha512};
use ara_error::{ApiError, BoxedError};
use ara_model::core::{User, UserCredential};
use ara_model::db::{tx, Connection};
use chrono::Utc;
use failure::Fail;
use serde::Serialize;
pub fn login(
context... |
#!/bin/bash -ue
set -o errexit
set -o pipefail
set -o nounset
# Since Linux build job with sole task to verify code formatting
if [ ! -z ${CLANGFORMAT+x} ] && [ "$CLANGFORMAT" == "ON" ]; then
./utility/format.sh
dirty=$(git ls-files --modified)
if [[ $dirty ]]; then
echo "Files with unexpected s... |
// Package upgrade implements the node upgrade backend.
//
// After submitting an upgrade descriptor, the old node may continue
// running or be restarted up to the point when the consensus layer reaches
// the upgrade epoch. The new node may not be started until the old node has
// reached the upgrade epoch.
package u... |
import { ChangeDetectionStrategy } from '@angular/core';
import { Component, Input } from '@angular/core';
import { Country } from '@api/custom/country';
import { NetworkType } from '@api/custom/network-type';
import { Subset } from '@api/custom/subset';
import { Stat } from '../domain/stat';
@Component({
selector: ... |
import Data.Bits
import Data.List
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Tuple
type Registers = [Int]
type Op = Registers -> Int -> Int -> Int -> Registers
type Instruction = (Int, Int, Int, Int)
get :: Int -> Registers -> Int
get 0 [value, _, _, _] = value
get 1 [_, value, _, _] = value
g... |
package fr.openwide.core.wicket.more.markup.html.factory;
/**
* @deprecated Use {@link AbstractDetachableFactory AbstractDetachableFactory<T, Condition>} instead.
*/
@Deprecated
public abstract class AbstractOneParameterConditionFactory<T> implements IOneParameterConditionFactory<T> {
private static final lo... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\VoteRequest;
use Illuminate\Http\Request;
use App\Models;
use Illuminate\Support\Facades\Auth;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
... |
package cn.practice.code.priciple.task1;
import java.text.ParseException;
import java.util.Arrays;
import java.util.List;
/**
* @author pi
*/
public class CalendarWeekHtmlPrinter extends CalendarWeekPrinter{
private String returnHtmlFormatWeekNameString() {
StringBuffer stringBuffer = new StringBuffer... |
const knex = require('knex');
const knexConfigy = require('../knexfile')
// remove the process.env, jest has issues testing env files
// tests work fine once dbEngine = 'development'
const dbEngine = process.env.NODE_ENV || 'development';
module.exports = knex(knexConfigy[dbEngine]); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.