text stringlengths 27 775k |
|---|
"""
StdDiagnostics
This module defines many standard diagnostic variables and groups that may
be used directly by experiments.
"""
module StdDiagnostics
using CLIMAParameters
using CLIMAParameters.Planet
using CLIMAParameters.Atmos
using CLIMAParameters.SubgridScale
using KernelAbstractions
using MPI
using Order... |
// Copyright(c) 2021 Hansen Audio.
pub const NUM_CHANNELS: usize = 4;
pub type AudioFrame = [f32; NUM_CHANNELS];
pub mod cbindings;
mod detail;
pub mod trance_gate;
|
import 'package:redux/redux.dart';
import 'package:storyboard/redux/models/note_repo.dart';
import '../actions/actions.dart';
import '../models/note.dart';
final noteReducer = combineReducers<NoteRepo>([
TypedReducer<NoteRepo, FetchNotesAction>(_fetchNotes),
TypedReducer<NoteRepo, CreateNoteAction>(_createNote),
... |
# aws_glue_security_configuration
[back](../aws.md)
### Index
- [Example Usage](#example-usage)
- [Variables](#variables)
- [Resource](#resource)
- [Outputs](#outputs)
### Terraform
```terraform
terraform {
required_providers {
aws = ">= 3.35.0"
}
}
```
[top](#index)
### Example Usage
```terraform
modul... |
// Copyright 2010-2011, Google Inc.
// 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 copyright
// notice, this list of condit... |
__precompile__()
module CodecLz4
using Compat
using TranscodingStreams: TranscodingStream, Memory, Error
using TranscodingStreams
export LZ4Compressor, LZ4CompressorStream,
LZ4Decompressor, LZ4DecompressorStream,
BlockSizeID, default_size, max64KB, max256KB, max1MB, max4MB,
BlockMode, block_linked, block_in... |
package treesandgraphs
private var xIndex = mapOf<Int, List<Int>>()
private var yIndex = mapOf<Int, List<Int>>()
private var visited = booleanArrayOf()
private fun dfs(stones: Array<IntArray>, index: Int): Int {
visited[index] = true
var sum = 0
for (i in xIndex[stones[index][0]]!!) {
if (!visited... |
import java.util.Scanner;
public class prog2
{
public static double v,sa;
public prog2(double r, double h)
{
sa=6*3.14*r*h;
v=3.14*r*r*h;
}
public static void main(String[] args)
{
Scanner obj1=new Scanner(System.in);
System.out.println("Enter the ra... |
package scala.collection.immutable
import org.junit.{Assert, Test}
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import scala.tools.testing.AssertUtil
@RunWith(classOf[JUnit4])
class RangeTest {
import Assert._
import AssertUtil._
@Test
def test_SI10060_numeric_range_min_max(): Unit = {
... |
---
title: "POMP++: Facilitating Postmortem Program Diagnosis with Value-set Analysis"
date: 2019-01-01
publishDate: 2019-09-04
authors: ["Dongliang Mu", "Yunlan Du", "*Jianhao Xu*", "Jun Xu", "Xinyu Xing", "Bing Mao", "Peng Liu"]
publication_types: ["2"]
abstract: ""
featured: false
publication: "*IEEE Transactions on... |
---
title: Confirmation
letter: C
permalink: "/definitions/usc-confirmation.html"
body: Approval of a plan of reorganization by a bankruptcy judge.
published_at: '2018-08-06'
source: US Courts Glossary
layout: post
--- |
/**
* Copyright 2020 - 2022 EPAM Systems
*
* 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 agree... |
package loadbalancer
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/cantara/nerthus/aws/server"
"github.com/cantara/nerthus/aws/util"
)
type Target struct {
targetGroup TargetGroup
server server.Server
elb ... |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
namespace QYQ.DataManagement.FileManagement.Files;
public interface IFileRepository: IRepository<File, Guid>
{
Task<List<File>> GetPagingListAsync(
string filter = null... |
module Xlocalize
class Importer
def strings_content_from_translations_hash(translations_hash)
result = StringIO.new
translations_hash.each do |key, translations|
translations.each do |target, note|
result << "/* #{note} */\n" if note.length > 0
result << "\"#{key}\" = #{t... |
package scaladex.core.model
import org.scalatest.funspec.AsyncFunSpec
import org.scalatest.matchers.should.Matchers
import scaladex.core.model.Artifact._
class ArtifactIdTests extends AsyncFunSpec with Matchers {
describe("parsing artifacts") {
it("parses scalajs") {
val artifactId = "cats-core_sjs0.6_2.1... |
package main
import (
"fmt"
"github.com/marcoshuck/go-distributed/challenge_2/pkg/consumer"
"github.com/marcoshuck/go-distributed/challenge_2/pkg/queue"
"github.com/marcoshuck/go-distributed/challenge_2/pkg/sender"
"github.com/marcoshuck/go-distributed/challenge_2/pkg/simulations"
"github.com/streadway/amqp"
"l... |
Duplicate Reference definitions:
.
[a]: b
[a]: c
.
source/path:2: (WARNING/2) Duplicate reference definition: A
.
Missing Reference:
.
[a](b)
.
source/path:1: (WARNING/2) Reference not found: b
.
Unknown role:
.
abc
{xyz}`a`
.
source/path:3: (ERROR/3) Unknown interpreted text role "xyz".
.
Unknown directive:
.
```... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Web.Models;
namespace Web.Factory.AbstractFactory
{
public class EmployeeSystemFactory
{
public IComputerFactory Create(Employee e)
{
IComputerFactory retunValue = null;
if(e.Emp... |
require 'rdcl/package/package_part.rb'
require 'rdcl/package/nos_part.rb'
require 'rdcl/package/raw_part.rb'
require 'rdcl/package/protocol_part.rb'
module RDCL
class PackagePartFactory
def PackagePartFactory::part_factory(flags, file_data, offset, file_offset, size)
f = nil
case flags & PackagePar... |
// Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
(ns wombats-web-client.utils.forms
(:require [re-frame.core :as re-frame]
[wombats-web-client.utils.errors :as e]))
(defn get-value [element]
(-> element .-target .-value))
(defn optionize [id-key name-key coll]
(map (fn [el] {:id (get-in el id-key)
:display-name (get-in el name-key... |
const express = require("express")
const router = express.Router()
const cardano = require("../cardano/cardano.js")
const convertIPFSURL = url => {
path = pluckIPFSpath(url)
return "https://ipfs.io/ipfs/" + path
}
const pluckIPFSpath = url => url.replace(/ipfs/g, "/").split("/").slice(-1)[0]
const createAsse... |
#![allow(unused_assignments, unused_variables)]
// compile-flags: -C opt-level=2 # fix described in rustc_middle/mir/mono.rs
fn main() {
// Initialize test constants in a way that cannot be determined at compile time, to ensure
// rustc and LLVM cannot optimize out statements (or coverage counters) downstream f... |
require 'spec_helper'
describe DoubleDice::Matrix do
describe 'its constructor' do
it 'sets cleartext and password without sanitizing them' do
cleartext, password = 'foo'.split(//), 'bar'.split(//)
subject = DoubleDice::Matrix.new cleartext, password
subject.cleartext.must_equal cleartext
... |
#!/usr/bin/env bash
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
|
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using Innovator.Client;
using Innovator.Client.QueryModel;
namespace InnovatorAdmin.Editor
{
public static class AmlTransforms
{
public static void CriteriaToWhereClause(XElement elem)
{
var item = elem.DescendantsAndSelf("I... |
@model ContactManager.Models.Contact
@using ContactManager.Authorization
@using ContactManager
@using ContactManager.Models
@using ContactManager.Models.AccountViewModels
@using ContactManager.Models.ManageViewModels
@using Microsoft.AspNetCore.Identity
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@using Micros... |
import { Component, OnInit } from '@angular/core';
import { LoginService } from '../services/login.service';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
})
export class LoginComponent implements OnInit {
enabled = false; // show the component only if appId service exists
profil... |
package numbers
// this is the sketch
import (
"encoding/json"
"testing"
)
func TestTypeHandling(t *testing.T) {
jsN1 := json.Number("1")
e1 := int64(1)
r1 := toType(jsN1, int64Type)
if r1 != e1 {
t.Errorf("expected %d, got %T %v", e1, r1, r1)
}
jsN2 := json.Number("1.5")
e2 := float64(1.5)
r2 := toType(... |
prompt --application/shared_components/logic/application_computations/title
begin
wwv_flow_api.create_flow_computation(
p_id=>wwv_flow_api.id(27333639191845812157)
,p_computation_sequence=>10
,p_computation_item=>'TITLE'
,p_computation_point=>'ON_NEW_INSTANCE'
,p_computation_type=>'STATIC_ASSIGNMENT'
,p_computation_pr... |
import logging
import random
from huey import crontab
from chain.common.plugins import load_plugin
from chain.hughie.config import huey
from .peer import Peer
logger = logging.getLogger(__name__)
@huey.task()
def add_peer(ip, port, chain_version, nethash, os):
# TODO: Disable this function if peer discoverabi... |
package io.novafoundation.nova.feature_staking_impl.domain.validations.bond
import io.novafoundation.nova.common.validation.ValidationSystem
import io.novafoundation.nova.feature_wallet_api.domain.validation.EnoughToPayFeesValidation
import io.novafoundation.nova.feature_wallet_api.domain.validation.PositiveAmountVali... |
@extends("base")
@section('contenu')
<p>Le système MVC utiliste un Controller, qui correspond au Design Pattern Command.</p>
@endsection
@section('title')
Command
@endsection |
#!/bin/bash
MONGODB_URI=${1}
if [ -z ${MONGODB_URI} ]
then
read -p "MONGODB URI (Required): " MONGODB_URI
fi
echo "Executing ... "
docker run --rm -e MONGODB_URI=${MONGODB_URI} \
-v "$(pwd)":/workspace/php \
-w /workspace/php ghcr.io/mongodb-developer/get-started-php:0.1 \
"php getstarted.php"
|
package com.alamkanak.weekview
internal class HeaderRowHeightUpdater<T>(
private val config: WeekViewConfigWrapper,
private val cache: EventCache<T>
) : Updater {
private var previousHorizontalOrigin: Float? = null
override val isRequired: Boolean
get() {
return true
/... |
import logger from '../../utils/logger';
import getCacheKey from './cacheKey';
const getCache = (key, options = {}) => async (ctx, next) => {
const cacheKey = getCacheKey(ctx)(key, options);
const result = await ctx.cache.get(cacheKey);
if (result) {
logger.info(`[REQUEST-CACHE:GET][${cacheKey}]`);
ctx.... |
<?php
namespace Home\Controller;
use Think\Controller;
class BaseController extends Controller{
}
?> |
import { Component } from '@angular/core';
import { TuiEditorOptions, TuiService } from 'ngx-tui';
@Component({
selector: 'ngx-tui-root',
template: `
<div class="h-100 d-flex">
<div class="bg-dark">
<div class="card bg-dark">
<div class="card-body">
<div class="btn-group">
... |
package com.larrynguyen.notewall.menu
import android.os.Parcel
import android.os.Parcelable
import android.support.annotation.DrawableRes
import android.support.annotation.IdRes
import android.support.annotation.StringRes
data class MenuItem(@IdRes val id: Int,
@StringRes val title: Int,
@DrawableRes val ic... |
<?php
//fetch_data.php
//include('config/config.php');
$connect = new PDO("mysql:host=localhost;dbname=cinema_db", "root", "");
$form_data = json_decode(file_get_contents("php://input"));
if ($form_data->action == 'getcolor') {
$query = "SELECT colortheme FROM usersettingstable WHERE user_fk='".$form_data->use... |
package day10
import java.io.File
val chunkPairs = mapOf(
'(' to ')',
'[' to ']',
'{' to '}',
'<' to '>',
)
val illegalCharacterPoints = mapOf(
')' to 3,
']' to 57,
'}' to 1197,
'>' to 25137,
)
val autocompleteCharacterPoints = mapOf(
')' to 1,
']' to 2,
'}' to 3,
'>' ... |
/*
* (c) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* 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 b... |
# smart-queue
## Description
When an action enters de queue, check if there's another action inside the queue that targets
the same resource, (will need to use a unique identifier). If the action exists, check the
method. The method can be one of following **CREATE**, **READ**, **UPDATE**, or **DELETE** (CRUD). Depen... |
# Coders' Workshop: July 17, 2019
## Announcements
* Monday, 7/22: [Vue.js Meetup](https://www.meetup.com/Denver-Vue-js-Meetup/events/ltwpwmyzkbdc/) - Lightning Talks!
* Monday, 7/29: [CO.js Meetup](https://www.meetup.com/Bootcampers-Collective/events/ztvncryzkbmc/)
## Appetizer
What would you charge to ... |
class ShelfFinder::Result
class ShelfResult < BaseResult
attr_reader :identifier
attr_reader :segments
def initialize(shelf)
@identifier = shelf.identifier
@segments = []
end
def add_segment(segment)
@segments << segment unless @segments.include?(segment)
end
end
end
|
/*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2016. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
# Issues and merge requests
* [ ] Finished the milestone/targeted issues?
* [ ] Relabeled issues with `status:wip` that are not work in progress?
# Code
* [ ] Updated the version in the Gradle build file?
* [ ] Updated the version in the configuration?
* [ ] Got all pipelines to succeed?
* [ ] Made a real-world test... |
public interface ExtralifePiece{
/**
* Represents an Extralife piece view object
* @param cellSize - the size of a cell in the view Grid
*/
ExtralifePiece(int cellSize);
/**
* Creates a circle representing the Extralife piece that can be positioned in the grid
* @return Java fx node
*/
@Overr... |
# gaea
Gaea['dʒi:ə] 盖亚, 一个轻量级RPC业务框架
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package helperClasses;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.text.Text;
/**
*
* @a... |
#!/usr/bin/env ruby
require 'rsm'
require 'logreader'
require 'stringio'
class LaserData
def valid_cartesian_points
(0..nrays-1).map{|i|
valid[i] ? p[i] : nil
}.compact
end
end
module MathUtils
def transform_vector(v, x)
v.map{|p| transform(p,x) }
end
def compute_bbox(points)
points = points.compact... |
package reflect
import (
"fmt"
"reflect"
)
type Employer interface {
get() string
}
type Employ struct {
name string
}
func (e *Employ) get() string {
return e.name
}
// 在GO语言中,使用refect.TypeOf()函数可以获得任意值的类型对象,程序通过类型对象可以访问任意值的类型信息
func reflectType(e interface{}) {
v := reflect.TypeOf(e)
//res := v.get()
... |
---
id: intro
slug: /
---
# Overview
Here you'll find ways to get started, understand core concepts, and explore
a variety of resources to help you get the most from Tigris data platform. We
also recommend joining our
[Slack Community](https://join.slack.com/t/tigrisdatacommunity/shared_invite/zt-16fn5ogio-OjxJlgttJI... |
require 'rspec/expectations'
module RSpec
module Matchers
# Matchers for testing RSpec matchers. Include them with:
#
# require 'rspec/matchers/fail_matchers'
# RSpec.configure do |config|
# config.include RSpec::Matchers::FailMatchers
# end
#
module FailMatchers
... |
---
name: "\U0001F914 General question"
about: Ask a general question about Milvus
title: ''
labels: ''
assignees: ''
---
**What is your question?**
|
<?php
namespace App\Http\Controllers;
use App\Product;
use App\Http\Requests\ProductsRequest as Request;
use Carbon\Carbon;
use Illuminate\Support\Facades\Cache;
class ProductController extends Controller
{
//
public function index(){
dump(\Auth::user());
/*$minutes = Carbon::now()->addMinut... |
package no.nav.foreldrepenger.vtp.server.rest.azuread.navansatt;
import io.swagger.annotations.Api;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;
import java.util.HashMap;
import java.util.Map;
@Api(tags = {"AzureAd"})
@... |
# gostack-primeiro-projeto-react
Primeiro projeto React para aprender os fundamentos de ReactJS
...
...
...
...
...
...
|
# frozen_string_literal: true
require 'webmock'
require 'webmock/rspec'
# This prevents Selenium/WebMock from spawning thousands of connections
# while waiting for an element to appear via Capybara's find:
# https://github.com/teamcapybara/capybara/issues/2322#issuecomment-619321520
def webmock_enable_with_http_conne... |
#!/usr/bin/env bash
# Create an empty .thy.yml. If there already exists a working config, move it out temporarily and bring back later.
config_exists=false
if [ -f "$HOME/.thy.yml" ]; then
mv "$HOME/.thy.yml" "$HOME/.thy2.yml"
config_exists=true
fi
if [[ -v CONSTANTS_CLINAME ]]; then
CONSTANTS_CLINAME=$CONSTANTS_... |
atom_feed(
language: "de-DE",
schema_date: "2015",
url: searches_url(search_request: @search_request, scope: current_scope, format: :atom),
root_url: searches_url(search_request: @search_request, scope: current_scope)
) do |feed|
feed.title "Suchergebnisse für #{@search_request.queries.map{|q| q.query}.join()... |
from django.contrib.syndication.views import Feed
from property.models import Property
from dashboard.models import Post
from django.utils.feedgenerator import Atom1Feed
from itertools import chain
class RssSiteNewsFeed(Feed):
title = "ZRealty Corp site news"
link = "/feeds/"
description = "Latest Feeds"
... |
using FlashcardsCourseProject.Models;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace FlashcardsCourseProject.Services
{
public class FileImageDataStore : IDataStore<FileImage>
{
private ApplicationContext _db => DependencyService.Get<A... |
! RUN: %S/test_errors.sh %s %t %f18 -fopenmp
! XFAIL: *
! OpenMP Version 4.5
! 2.7.3 single Construct
! Copyprivate variable is not thread private or private in outer context
program omp_single
integer i
i = 10
!$omp parallel
!$omp single
print *, "omp single", i
!ERROR: copyprivate variable ‘i’ is... |
#!/bin/bash
# *****************************************************************************
# FILE: env_nwm_r2.sh
# AUTHOR: Matt Masarik (MM)
# VERSION: 0 2019-01-19 MM Base version
#
# PURPOSE: Provides evironment variables and modules required for the
# National Water Model (NWM) ve... |
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt %s -instcombine -S | FileCheck %s
declare void @llvm.assume(i1)
declare i8 @gen8()
declare void @use8(i8)
define i1 @t0(i8 %base, i8 %offset) {
; CHECK-LABEL: @t0(
; CHECK-NEXT: [[CMP:%.*]] = icmp slt i8 [[OFFSET:%.*]], 0
; CHECK-... |
class Adult
def initialize
@adult = Adult.new
end
def consume_an_alcoholic_beverage
count += 1
end
def sober?
consume_an_alcoholic_beverage.count >= 3
end
end
|
using System.Runtime.Serialization;
namespace Ghostware.GPSDLib.Models
{
[DataContract]
public class GpsdVersion
{
[DataMember(Name = "release")]
public string Release { get; set; }
[DataMember(Name = "rev")]
public string Rev { get; set; }
[DataMember(Name = "pro... |
from .reservation import OpenReservationsManager
from .thesis import ThesisManager, ThesisApiManager
from .thesis_import import ThesisImportManager
__all__ = [
'OpenReservationsManager',
'ThesisManager',
'ThesisApiManager',
'ThesisImportManager',
]
|
<?php
declare(strict_types = 1);
namespace App\ExternalApi\Isite\Mapper;
use App\Controller\Helpers\IsiteKeyHelper;
use App\ExternalApi\Exception\ParseException;
use App\ExternalApi\Isite\Domain\IsiteImage;
use BBC\ProgrammesPagesService\Domain\ValueObject\Pid;
use DateTimeImmutable;
use InvalidArgumentException;
use... |
-- Выполните инструкции
USE AdventureWorks;
GO
SELECT @@SPID as select_session_id;
GO
SELECT [Name] FROM [Production].[Product]; |
from .package import package
from .stringify import gen_data_attributes
from .script_data import stringify_script_data
prevent_reinclusion = package(
gen_data_attributes("Prevent reinclusion", "v0.1"),
"js",
"",
"""
var ankiAms = document.querySelectorAll('#anki-am')
if (ankiAms.length > 1) {
... |
CREATE UNIQUE INDEX "PK_SHIPMENT_ID" ON "SHIPMENT" ("SHIPMENT_ID")
|
# shellcheck shell=bash
bash_object.trace_loop() {
if [ -n "${TRACE_BASH_OBJECT_TRAVERSE+x}" ]; then
stdtrace.log 0 "-- START LOOP ITERATION"
stdtrace.log 0 "i+1: '$((i+1))'"
stdtrace.log 0 "\${#REPLIES[@]}: ${#REPLIES[@]}"
stdtrace.log 0 "key: '$key'"
stdtrace.log 0 "current_object_name: '$current_object_n... |
//
// Copyright (c) 2008-2011, Kenneth Bell
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, m... |
exports.seed = function(knex) {
return knex('Users').insert([
{username: 'TestUser1' , password: 'lol123', email: 'test1@gmail.com', name:'John Doe'},
{username: 'TestUser2', password: 'lol123', email: 'test2@gmail.com', name:'Jane Doe'},
{username: 'TestUser3', password: 'lol123', ema... |
/*
This is a development SQL script to patch Skyline from v2.1.0-patch-dev-4014-dev-only
*/
USE skyline;
/*
# @added 20210414 - Feature #4014: Ionosphere - inference
# Branch #3590: inference
# Added motif related columns to the ionosphere table
*/
ALTER TABLE `ionosphere` ADD COLUMN `motif_matched_... |
/**
* Flushes the Promises currently running in the PromiseJobs queue
* Inspired from https://github.com/facebook/jest/issues/2157#issuecomment-279171856
*/
export const flushPromises = (): Promise<void> => {
return new Promise((resolve) => setImmediate(resolve));
};
|
package com.packt.chapter6
import akka.actor.{ActorSystem, PoisonPill, Props}
object SafePersistenceActorShutdownApp extends App {
val system = ActorSystem("safe-shutdown")
val persistentActor1 = system.actorOf(Props[SamplePersistenceActor])
val persistentActor2 = system.actorOf(Props[SamplePersistenceActor])
... |
#!/bin/bash -e
find_run_clang_tidy() {
local CLANG_TIDY_VERSION=$(clang-tidy --version | awk '/LLVM version/ {print $3}')
local MAJOR=$(echo "${CLANG_TIDY_VERSION}" | cut -d. -f1)
local MINOR=$(echo "${CLANG_TIDY_VERSION}" | cut -d. -f2)
local SUFFIX="${MAJOR}.${MINOR}"
for path in /usr/bin /usr/local/clang*/bin... |
import 'memory.dart';
const CURRENT_VERSION = '1';
class StringSession extends MemorySession {
/**
* This session file can be easily saved and loaded as a string. According
* to the initial design, it contains only the data that is necessary for
* successful connection and authentication, so takeout ID is ... |
def test_testing():
assert True
def test_passwd_file(host):
passwd = host.file("/etc/passwd")
assert passwd.contains("root")
assert passwd.user == "root"
assert passwd.group == "root"
assert passwd.mode == 0o644
def test_ssh_is_installed(host):
sshd = host.package("openssh-server")
as... |
package com.fabernovel.statefullayout.transitions
import com.fabernovel.statefullayout.State
/**
* Interface to play animation when [State] are shown and hidden.
* @property start play the state transition
*/
interface StateTransition : TransitionListenerHandler {
/**
* Start the transition
* - For e... |
class ManagerController < ApplicationController
include MinerHelper
before_filter :retrieve_miner_data, :only => [:index]
def index
if request.xhr?
render layout: false && return
end
end
def run
@results = begin
if params[:args].present?
@miner_pool.query(params[:command].to... |
package org.highmed.dsf.fhir.webservice.impl;
import org.highmed.dsf.fhir.dao.GroupDao;
import org.highmed.dsf.fhir.event.EventGenerator;
import org.highmed.dsf.fhir.event.EventManager;
import org.highmed.dsf.fhir.help.ExceptionHandler;
import org.highmed.dsf.fhir.help.ParameterConverter;
import org.highmed.dsf.fhir.h... |
/**
* Wechaty - https://github.com/chatie/wechaty
*
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
*
* 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.ap... |
-- Peter's Pet Store SQL to create and populate tables
/* Drop Table statements are included for each table to ensure that
when you create the tables no tables with the same name exist. This is
particularly important if you need to make changes to the table definitions
and re-run this script */
DROP TABLE AnimalSale... |
CREATE INDEX "IX_FLAT_CAT_NUM_SUFFIX_UP" ON "FLAT" (UPPER("CAT_NUM_SUFFIX"))
|
# frozen_string_literal: true
module WavesRubyClient
class Asset
include ActiveModel::Model
attr_accessor :name, :id, :url_id
def self.waves
new(name: 'WAVES', id: '', url_id: WavesRubyClient::WAVES_ASSET_ID)
end
def self.btc
new(name: 'BTC', id: WavesRubyClient::BTC_ASSET_ID,
... |
package com.daimler.mbcarkit.utils
import com.daimler.mbcarkit.network.model.ApiAllowedServiceActions
import com.daimler.mbcarkit.network.model.ApiMissingServiceData
import com.daimler.mbcarkit.network.model.ApiPrerequisiteCheck
import com.daimler.mbcarkit.network.model.ApiService
import com.daimler.mbcarkit.network.m... |
using FlatRedBall;
namespace Parme.Frb.Example.Entities
{
public partial class Bullet
{
private float _timeAlive;
/// <summary>
/// Initialization logic which is execute only one time for this Entity (unless the Entity is pooled).
/// This method is called when the Enti... |
import { AppBar, Box, Container, Grid, Paper, Toolbar, Typography } from '@mui/material';
import * as React from 'react';
import { useEffect, useState } from 'react';
import { useMsGraphClient } from '../features/msgraph';
const TopPage: React.FC = () => {
const client = useMsGraphClient();
const [me, setMe] = use... |
import { getTypedAncestorTracker } from '../utils/helper'
export default {
computed: getTypedAncestorTracker('select').computed
}
|
#!/bin/sh
HADOOP_HOME=/home/hbcs/hadoop/hadoop-2.5.1
sshpass -p "hbcs2000" ssh hbcs@192.168.1.111 "$HADOOP_HOME/sbin/stop-yarn.sh"
sshpass -p "hbcs2000" ssh hbcs@192.168.1.111 "$HADOOP_HOME/sbin/stop-dfs.sh"
|
"""
CRAM file utilities.
"""
import argparse
from typing import Sequence
from xsamtools import cram
def view(args: argparse.Namespace, extra_args: Sequence[str]):
"""
A limited wrapper around "samtools view", but with functions to operate on google cloud bucket keys.
"""
cram.view(cram=args.cram, cra... |
#pragma once
#include "robot.h"
#include <chrono>
#include <list>
class MapWalker :public WindowClass
{
struct Bullet
{
mth::float2 p;
mth::float2 v;
Bullet(mth::float2 pos, mth::float2 vel);
};
decltype(std::chrono::steady_clock::now()) m_prevTime;
std::vector<mth::float2> m_points;
float m_pointRadius... |
require_relative '../../../spec_helper'
describe Kontena::Rpc::DockerImageApi do
let(:image) { double(:image, as_json: {})}
describe '#create' do
it 'calls Docker::Image.create' do
expect(subject).to receive(:create).and_return(image)
subject.create({})
end
end
describe '#show' do
it... |
from openslides_backend.models.models import AgendaItem
from tests.system.action.base import BaseActionTestCase
class AgendaItemSystemTest(BaseActionTestCase):
def test_create(self) -> None:
self.create_model("meeting/2", {"name": "test"})
self.create_model("topic/1", {"meeting_id": 2})
re... |
unit ZoneClass;
interface
uses
Classes, SysUtils, Windows,
D3DClass,
InputClass,
ShaderManagerClass,
TextureManagerClass,
TimerClass,
LightClass,
UserInterfaceClass,
CameraClass,
skydomeclass,
PositionClass,
TerrainClass;
type
{ TZoneClass }
TZoneClass = clas... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.