content stringlengths 0 181M | language stringclasses 54
values |
|---|---|
[package]
name = "console"
version = "0.1.0"
authors = ["Alex McArther <acmcarther@gmail.com>"]
[dependencies]
itertools = "*"
cgmath = "0.10"
specs = "0.7.0"
glutin = "0.6.1"
lazy_static = "0.2.1"
uuid = { version = "0.2.2", features = ["serde", "v4"] }
[dependencies.client_state]
path = "../../core/client_state"
[... | TOML |
package com.cookbook.cbook.service;
import com.cookbook.cbook.entity.Recipe;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
//@Repository
//@Transactional
public class RecipeDAOService {
... | Java |
(* Auto-generated from "game_descr.atd" *)
(** A position in the initial array. *)
type tile_pos = Game_descr_t.tile_pos
type tile = Game_descr_t.tile
type rule_descr = Game_descr_t.rule_descr = {
name: string;
flags: string list option
}
(** Player 0 is east and so on. *)
type round_player = Game_descr_t.roun... | OCaml |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background_learn"
tools:context=".AddNewItemActivity" >
<ImageButton
... | XML |
import java.math.BigInteger
fun main(args: Array<String>) {
val x = BigInteger.valueOf(5).pow(Math.pow(4.0, 3.0 * 3.0).toInt())
val y = x.toString()
val len = y.length
println("5^4^3^2 = ${y.substring(0, 20)}...${y.substring(len - 20)} and has $len digits")
}
| Kotlin |
{
"hits": 0,
"timeRestore": false,
"description": "",
"title": "Packetbeat Dashboard",
"panelsJSON": "[{\"col\":1,\"id\":\"Web-transactions\",\"row\":5,\"size_x\":3,\"size_y\":2,\"type\":\"visualization\"},{\"col\":4,\"id\":\"DB-transactions\",\"row\":5,\"size_x\":3,\"size_y\":2,\"type\":\"visualization\"... | JSON |
package com.cagnosolutions.app.main.user
import groovy.transform.CompileStatic
import javax.persistence.Entity
import javax.persistence.GeneratedValue
import javax.persistence.Id
import javax.persistence.Table
/**
* Created by Scott Cagno.
* Copyright Cagno Solutions. All rights reserved.
*/
@CompileStatic
@Entit... | Groovy |
class Colors
COLORS = {
:red => 1,
:green => 2,
:yellow => 3,
:blue => 4,
:purple => 5,
:sea => 6,
:white => 7
}
class << self
def default_terminal_colors
@default_terminal_colors ||= "\e[0m"
end
def process(data)
begin
_process(data)
ensure
... | Ruby |
/*
$Id$
*======================================================================
*
* DISCLAIMER
*
* This material was prepared as an account of work sponsored by an
* agency of the United States Government. Neither the United States
* Government nor the United States Department of Energy, nor Battelle,
* nor a... | C |
#############################################################################
#
# XFOIL
#
# Copyright (C) 2000 Mark Drela
#
# 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 2 ... | CMake |
\relax
\catcode`:\active
\catcode`;\active
\catcode`!\active
\catcode`?\active
\catcode`"\active
\ifx\hyper@anchor\@undefined
\global \let \oldcontentsline\contentsline
\gdef \contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global \let \oldnewlabel\newlabel
\gdef \newlabel#1#2{\newlabelxx{#1}#2}
\gdef \newlabelxx#... | TeX |
(ns leiningen.new.thing-babel
(:require
[leiningen.new.templates :as tpl]
[leiningen.core.main :as main]
[clojure.string :as str])
(:import
[java.util Locale Calendar]))
(def licenses
{"asl" {:name "Apache Software License 2.0" :url "http://www.apache.org/licenses/LICENSE-2.0"}
"epl" {:name "Eclip... | Clojure |
-- Category: Database Engine Configuration
SET NOCOUNT ON;
SELECT
CONVERT(nvarchar(128), SERVERPROPERTY('ServerName')) AS ServerName,
[name] AS [EndpointName],
COALESCE(SUSER_NAME(principal_id), '') AS [Owner],
COALESCE([protocol_desc], '') AS [ProtocolDesc],
COALESCE([type_desc], '') AS [Payload... | PLSQL |
package chap06
import com.cra.figaro.library.atomic.discrete.Geometric
import com.cra.figaro.library.atomic.continuous.{Beta, Normal}
import com.cra.figaro.library.collection.VariableSizeArray
import com.cra.figaro.algorithm.sampling.Importance
import com.cra.figaro.language.Universe
import com.cra.figaro.language.Fli... | Scala |
FROM elixir:1.17.1-otp-26
# Single RUN statement, otherwise intermediate images are created
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
RUN apt-get update &&\
apt-get install -y libmagic-dev cmake libimage-exiftool-perl ffmpeg &&\
mix local.hex --force &&\
mix local.rebar --force... | Dockerfile |
# Random samples from determinantal point processes
"""
Computes a random sample from the determinantal point process defined by the
spectral factorization object `L`.
Inputs:
`L`: `Eigen` factorization object of an N x N matrix
Output:
`Y`: A `Vector{Int}` with entries in [1:N].
References:
Algorith... | Julia |
del *.log
del *.syntax
del *.av
del oop\*.log
del oop\*.syntax
del oop\*.av
"..\shell_project\ori.exe" -f "..\test\consts.php" -nologo
"..\shell_project\ori.exe" -f "..\test\vars.php" -nologo
"..\shell_project\ori.exe" -f "..\test\operators.php" -nologo
"..\shell_project\ori.exe" -f "..\test\globals.php" -nologo
"..\... | Batchfile |
%Schools Out!
subject(english).
subject(gym).
subject(history).
subject(math).
subject(science).
state(california).
state(florida).
state(maine).
state(oregon).
state(virginia).
activity(antiquing).
activity(camping).
activity(sightseeing).
activity(spelunking).
activity(water_skiing).
name(appleton).
name(gross).
... | Prolog |
//
// PopoverViewControllerTests
// ApptivatorTests
//
import XCTest
@testable import Apptivator
class PopoverViewControllerTests: XCTestCase {}
| Swift |
defmodule Explorer.Repo.Migrations.ChangeBlockSizeToNullable do
use Ecto.Migration
def up do
alter table(:blocks) do
modify(:size, :integer, null: true)
end
end
def down do
alter table(:blocks) do
modify(:size, :integer, null: false)
end
end
end
| Elixir |
#
# %CopyrightBegin%
#
# Copyright Ericsson AB 1998-2011. All Rights Reserved.
#
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
# compliance with the License. You should have received a copy of the
# Erlang Public License along... | Makefile |
(ns argumentica.db.file-transaction-log
(:require (argumentica [transaction-log :as transaction-log])
[me.raynes.fs :as fs]
[clojure.java.io :as io]
[clojure.edn :as edn]
[clojure.string :as string]
[argumentica.util :as util])
(:import [java.nio.file File... | Clojure |
package leafnodes
import (
"github.com/botmetrics/go-botmetrics/Godeps/_workspace/src/github.com/onsi/ginkgo/internal/failer"
"github.com/botmetrics/go-botmetrics/Godeps/_workspace/src/github.com/onsi/ginkgo/types"
"time"
)
type SuiteNode interface {
Run(parallelNode int, parallelTotal int, syncHost string) bool
... | Go |
help: ## Print documentation
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
ghcid: ## Run ghcid with the cardano-sl-explorer package
ghcid \
--command "stack ghci cardano-sl-explorer --ghci-options=-fno-code"
ghcid-test:... | Makefile |
# Copyright (c) 2016, Ruslan Baratov
# All rights reserved.
cmake_minimum_required(VERSION 3.0)
# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")
project(download-fixesproto)
# download fixesproto
hunter_add_package(fixesproto)
| CMake |
/******************************************************************************
* (C) Copyright 2011 KALRAY SA All Rights Reserved
*
* MODULE: mmu_proc_dcache_master_seq_lib.sv
* DEVICE: MMU_PROC_DCACHE VIP
* PROJECT:
* AUTHOR:
* DATE:
*
* ABSTRACT:
*
**************************************************************... | Coq |
<#
.SYNOPSIS
Function to retrieve the size of a directory and the number of files and directories inside of it.
.DESCRIPTION
Function to retrieve the size of a directory and the number of files and directories inside of it.
.PARAMETER Path
In the parameter Path you can specify the directory you want to que... | PowerShell |
\hypertarget{class_image_app_1_1migrations_1_10003__auto__20180818__1425_1_1_migration}{}\section{Image\+App.\+migrations.0003\+\_\+auto\+\_\+20180818\+\_\+1425.Migration Class Reference}
\label{class_image_app_1_1migrations_1_10003__auto__20180818__1425_1_1_migration}\index{Image\+App.\+migrations.\+0003\+\_\+auto\+\_... | TeX |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# no more "zero" integer division bugs!:P
# import argparse
import os
import sys
import numpy as np # array
import time
import emcee
# import h5py
# import random
# import constants as cst # local constants module
# from scipy.stats import norm as scipy_norm
from . impo... | Python |
CREATE PROCEDURE UpdateCreditLimitWrapper
AS
BEGIN
DECLARE @Retries INT = 1 ;
WHILE @Retries <= 10
BEGIN
BEGIN TRY
EXEC dbo.UpdateCreditLimit ;
END TRY
BEGIN CATCH
WAITFOR DELAY '00:00:01' ;
SET @Retries = @Retries + 1 ;
END CATCH
END
END
| PLSQL |
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package iam provides the client and types for making API
// requests to AWS Identity and Access Management.
//
// AWS Identity and Access Management (IAM) is a web service that you can use
// to manage users and user permissions under your AWS acc... | Go |
part of serverManager;
class MessageProcessor {
Logger _log = new Logger('MessageProcessor');
Manager _manager;
List<MessageProcessorInterface> _processors = [];
MessageProcessor(Manager this._manager);
void registerProcessor(MessageProcessorInterface mp) {
mp.manager = _manager;
_processors.add... | Dart |
--[[ WoTD License -
This software is provided as free and open source by the
team of The WoTD Team. This script was written and is
protected by the GPL v2. Please give credit where credit
is due, if modifying, redistributing and/or using this
software. Thank you.
Thank: WoTD Team; for the Script
~~End of License... P... | Lua |
FROM busybox
ADD index.html /www/index.html
EXPOSE 8000
CMD httpd -p 8000 -h /www; tail -f /dev/null
| Dockerfile |
Sub.pair <-
function(z, t, Mat, i, j){
alpha=0.05
n1 <- Sub.n(z, t, Mat, i)
n2 <- Sub.n(z, t, Mat, j)
m2 <- sum(z[which(Mat[,i] == 1 & Mat[,j] == 1)])
M <- sum(z)
M12 <- M - sum(z[which(Mat[,i] == 0 & Mat[,j] == 0)])
PetN <- n1 * n2 / m2
ChpN <- (n1 + 1) * (n2 + 1) / (m2 +1) - 1
VarN <- (n1 + 1) * (n2 + 1) * (n1 - m2... | R |
{
"_args": [
[
{
"raw": "is-unc-path@^0.1.1",
"scope": null,
"escapedName": "is-unc-path",
"name": "is-unc-path",
"rawSpec": "^0.1.1",
"spec": ">=0.1.1 <0.2.0",
"type": "range"
},
"/home/lfernandes/ng2/code/first_app/angular2-reddit-base/no... | JSON |
######################################################
##### Purge all existing firewall rules (if any) #####
######################################################
resources { 'firewall':
purge => true,
}
#####################################################
##### Default rules defined before custom rules #####
###... | Pascal |
# make sure we have vala
find_package (Vala REQUIRED)
# make sure we use vala
include (ValaVersion)
# make sure it's the desired version of vala
ensure_vala_version ("0.16" MINIMUM)
configure_file (${CMAKE_SOURCE_DIR}/config.vala.cmake ${CMAKE_BINARY_DIR}/config.vala)
# files we want to compile
include (ValaPrecompil... | CMake |
#!/usr/bin/env python
"""
This script generates the index-pattern for Kibana from
the fields.yml file.
"""
import yaml
import argparse
import string
import re
import json
import os
import errno
import sys
unique_fields = []
def fields_to_json(section, path, output):
if not section["fields"]:
return
... | Python |
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
# Configures the endpoint
config :connectdemo, Connectdemo.Endpoint,
url: [host: "l... | Elixir |
# This file is a part of Julia. License is MIT: https://julialang.org/license
# Tests for /base/stacktraces.jl
using Serialization, Base.StackTraces
let
@noinline child() = stacktrace()
@noinline parent() = child()
@noinline grandparent() = parent()
line_numbers = @__LINE__() .- [3, 2, 1]
stack =... | Julia |
#include "TTree.h"
#include "TFile.h"
#include "TH1.h"
#include "TCanvas.h"
#include "TMath.h"
#include "TRandom3.h"
#include <iostream>
#include <sstream>
/*
* THINGS TO CHECK BEFORE YOU RUN
* 1. Energy
* 2. Position
* 3. Binning
* 4. Title
*/
double ENERGY = 1000.; //energy in MeV (if known)
double XPOS = 1... | C |
private let table: [UInt16] = [
0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241,
0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440,
0xcc01, 0x0cc0, 0x0d80, 0xcd41, 0x0f00, 0xcfc1, 0xce81, 0x0e40,
0x0a00, 0xcac1, 0xcb81, 0x0b40, 0xc901, 0x09c0, 0x0880, 0xc841,
0xd801, 0x1... | Swift |
[Version]
Major=7
Minor=0
[Main]
Type=temporal
CalculateFlow=yes
CalculateScalar=no
Equations=incompressible
TermAdvection=convective
TermViscous=explicit
TermDiffusion=explicit
SpaceOrder2=CompactDirect6
TimeOrder=RungeKuttaExplicit4
TimeStep=-0.016000
TimeCFL=1.20000
[Iteration]
Start=0
End=10
Restart=10
Statistic... | INI |
@echo off
wcl386 -zq -l=stub32x lfb.asm
sc -bs -q lfb
del *.obj
| Batchfile |
TOP=../../
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
| Makefile |
#' One stage joint meta function
#'
#' Function to allow a one stage joint model (data from all studies analysed in
#' one model) to be fitted to data from multiple studies. The function allows
#' one longitudinal and one time-to-event outcome, and can accommodate baseline
#' hazard stratified or not stratified by st... | R |
# Be sure to restart your server when you modify this file.
Mrug::Application.config.session_store :cookie_store, key: '_mrug_session'
| Ruby |
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 16:09:39 02/15/2016
// Design Name: rca
// Module Name: E:/FPGA/Assignment8feb/rca_tester.v
// Project Name: Assignment8feb
// Target Device:
// Tool versions:
/... | Coq |
FROM balenalib/aarch64-ubuntu:jammy-run
LABEL io.balena.device-type="forecr-dsb-ornx-orin-nano-8gb"
RUN echo "deb https://repo.download.nvidia.com/jetson/common r36.3 main" >> /etc/apt/sources.list.d/nvidia.list \
&& echo "deb https://repo.download.nvidia.com/jetson/t234 r36.3 main" >> /etc/apt/sources.list.d/nvidia... | Dockerfile |
function Start-Icinga()
{
Start-IcingaService -Service 'icinga2';
Start-IcingaForWindows;
}
| PowerShell |
TruncateHtml.configure do |config|
end
| Ruby |
/**
* Copyright 2011-2013 Zuse Institute Berlin
*
* 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 a... | Java |
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | Ruby |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.ngsutils.fuzzy
import org.ngsutils.ontology.GOManager
import org.ngsutils.ontology.OntologyAnnotation
import org.ngsutils.ontology.FMBGOntologyWrap
/**
*
* @author victor
*/
class FMBSimilarity {
... | Groovy |
WIKIMETATEMPLATE=admin/templates/BeanConfigMetaTemplate
TITLE=Global GWiki Settings
NOINDEX=true | INI |
(cl:in-package dasl_mocap-msg)
(cl:export '(LINEAR-VAL
LINEAR
ANGULAR-VAL
ANGULAR
)) | Common Lisp |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | HTML |
/** <module> Common utilities for the task-parallel scheduler
@author Dylan Meysmans <dmeysman@vub.ac.be>
@license MIT
@version 0.1.0
*/
:- module(utilities, [cores/1,
tasks/1,
depends_on/2,
schedule_for_task_core/3,
augmented_les... | Prolog |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 11