code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <queue>
#include <utility>
using namespace std;
vector<string> A;
int m, n;
long long dist[20][20][20][20];
bool done[3000][20];
int T[20][2... | ibudiselic/contest-problem-solutions | tc 160+/InfiniteLab.cpp | C++ | bsd-2-clause | 9,307 |
cask "mmhmm" do
version "2.2.3,1642040000"
sha256 "00a80b03bf3cb9774818cc473835ccc8475a8757f32116827b53be4911e99406"
url "https://updates.mmhmm.app/mac/production/mmhmm_#{version.csv.first}.zip"
name "mmhmm"
desc "Virtual video presentation software"
homepage "https://www.mmhmm.app/"
livecheck do
ur... | julionc/homebrew-cask | Casks/mmhmm.rb | Ruby | bsd-2-clause | 615 |
#!/usr/bin/env bash
cwd="$( cd "${BASH_SOURCE[0]%/*}" && pwd )"
cd "$cwd/.."
f=`mktemp -d`
git clone "git@github.com:relrod/chordpro.git" "$f/chordpro.git"
cabal haddock
pushd "$f/chordpro.git"
git checkout gh-pages && git rm -rf *
popd
mv dist/doc/html/chordpro/* "$f/chordpro.git/"
pushd "$f/chordpro.git"
git add... | relrod/chordpro | scripts/deploy-haddock-manually.sh | Shell | bsd-2-clause | 558 |
require './spec/spec_helper'
describe Gusteau::SSH do
let(:connector_class) do
class Example
include Gusteau::SSH
attr_accessor :host, :port, :user, :password
end
Example
end
let(:connector) { connector_class.new }
describe "#conn" do
before do
connector.host = 'microsoft.co... | locomote/gusteau | spec/lib/gusteau/ssh_spec.rb | Ruby | bsd-2-clause | 3,069 |
#region Copyright
/*Copyright (c) 2015, Katascope
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and th... | katascope/Glyphics | Glyphics/GlyphicsLibrary/Glyphics Interfaces/IFloat2.cs | C# | bsd-2-clause | 1,503 |
package cola.machine.game.myblocks.model.ui.html;
import cola.machine.game.myblocks.Color;
import cola.machine.game.myblocks.engine.Constants;
//import cola.machine.game.myblocks.engine.MyBlockEngine;
import cola.machine.game.myblocks.engine.paths.PathManager;
import cola.machine.game.myblocks.manager.TextureManager;
... | ColaMachine/MyBlock | src/main/java/cola/machine/game/myblocks/model/ui/html/Document.java | Java | bsd-2-clause | 29,042 |
// The ThunderRTC server files are in the lib folder
module.exports = require('./lib/thunderrtc_server'); | thabung/rtc | index.js | JavaScript | bsd-2-clause | 106 |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | Sparkier/inviwo | src/core/io/datareader.cpp | C++ | bsd-2-clause | 1,842 |
/*
* Copyright (c) 2018, Lars <lars.oernlo@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* ... | l2-/runelite | runelite-client/src/main/java/net/runelite/client/plugins/motherlode/MotherlodeGemOverlay.java | Java | bsd-2-clause | 4,049 |
from pytest import mark
from django.urls import reverse
from email_template.models import Email
from assopy.models import AssopyUser
from conference.accounts import PRIVACY_POLICY_CHECKBOX, PRIVACY_POLICY_ERROR
from conference.models import CaptchaQuestion
from conference.users import RANDOM_USERNAME_LENGTH
from te... | EuroPython/epcon | tests/test_user_login_and_registration.py | Python | bsd-2-clause | 8,704 |
/*****************************************************************
* defintion of ats stylesheet
*****************************************************************/
/*
* global definition
*/
/* initialize line span */
h1,h2,h3,h4,h5,h6,p,ul,ol,dl
{
margin-top: 0;
margin-bottom: 0;
}
body
{
background-color : #f... | dictoss/active-task-summary | ats/static/ats/css/atsstyle.css | CSS | bsd-2-clause | 3,679 |
# -*- encoding: utf-8 -*-
import mock
import os
from shutil import rmtree
from tempfile import mkdtemp
from django.test import TestCase
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test.utils import override_settings
... | johan--/Geotrek | geotrek/common/tests/test_parsers.py | Python | bsd-2-clause | 5,465 |
from hippiehug import RedisStore, Tree, Leaf, Branch
import pytest
## ============== TESTS ===================
def test_evidence():
t = Tree()
# Test positive case
t.add(b"Hello", b"Hello")
t.add(b"World", b"World")
root, E = t.evidence(b"World")
assert len(E) == 2
store = dict... | gdanezis/rousseau-chain | hippiehug-package/tests/test_tree.py | Python | bsd-2-clause | 5,884 |
#!/bin/sh
# add ssh to default lxd image
if [ "X$1" = "X8" -o "X$1" = "X8-Stream" ]; then
image=centos-8-Stream
else
image=centos-7
fi
guest=default-$image
template="$image"-nossh
publishalias="$image"
lxc init $template $guest
lxc start $guest
openssl rand -base64 48 | perl -ne 'print "$_" x2' | lxc exec $guest ... | juju4/ansible-MISP | test/lxd/centos-ssh-image.sh | Shell | bsd-2-clause | 1,139 |
package inpro.incremental.unit;
import inpro.apps.SimpleMonitor;
import inpro.audio.AudioUtils;
import inpro.audio.DispatchStream;
import inpro.synthesis.MaryAdapter;
import inpro.synthesis.MaryAdapter5internal;
import inpro.synthesis.hts.IUBasedFullPStream;
import inpro.synthesis.hts.VocodingAudioStream;
import org.... | ONatalia/Masterarbeit | test/inpro/incremental/unit/HesitationIUTest.java | Java | bsd-2-clause | 785 |
class Up < Formula
desc "Tool for writing command-line pipes with instant live preview"
homepage "https://github.com/akavel/up"
url "https://github.com/akavel/up/archive/v0.3.2.tar.gz"
sha256 "359510cfea8af8f14de39d63f63cc5c765f681cca2c37f00174837d52c62cad1"
bottle do
cellar :any_skip_relocation
sha2... | LinuxbrewTestBot/homebrew-core | Formula/up.rb | Ruby | bsd-2-clause | 1,344 |
using Orchard.Environment.Extensions.Models;
using Orchard.Security.Permissions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Digic.Sitemap
{
public class Permissions : IPermissionProvider
{
public static readonly Permission ManageSitemap = new Permiss... | digic/orchard-sitemap | Permissions.cs | C# | bsd-2-clause | 1,526 |
/*****************************************************************************/
/* */
/* © 2011, Aurbach & Associates, Inc. All rights reserved. */
/* */
/* Redistribution and use in source and binary forms, with or without */
/* modification, are permitted provided that the... | mctully/tntbasic | third_party/PowerPlant/constructor/Constructor_Pro/Constructor/Source files/CO- Core/Application/CAPreferences.h | C | bsd-2-clause | 3,667 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Sun Aug 26 15:13:10 EDT 2012 -->
<TITLE>
Uses of Class org.newdawn.slick.svg.inkscape.RectProcessor (Slick - The 2D Library)
</TITLE>
<META N... | SenshiSentou/SourceFight | slick_dev/trunk/Slick/javadoc/org/newdawn/slick/svg/inkscape/class-use/RectProcessor.html | HTML | bsd-2-clause | 6,133 |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2010 - 2014 Board of Regents of the University of
* Wisconsin-Madison.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | imagej/workflow | src/main/java/imagej/workflow/IModuleInfo.java | Java | bsd-2-clause | 2,131 |
/*
* Copyright (c) 2012, JInterval Project.
* 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 o... | jinterval/jinterval | jinterval-rational-java/src/main/java/net/java/jinterval/rational/BinaryValueSet64.java | Java | bsd-2-clause | 10,359 |
from flask import *
from pyZPL import *
from printLabel import printLabel
import xml.etree.ElementTree as ET
import os
app = Flask(__name__)
dn = os.path.dirname(os.path.realpath(__file__))+"/"
tree = ET.parse(dn+"pace.xml")
customElements = tree.findall(".//*[@id]")
customItems = []
for element in customElements:
... | OHRI-BioInfo/pyZPL | web.py | Python | bsd-2-clause | 1,418 |
# coding: utf-8
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('logger', '0011_add-index-to-instance-uuid_and_xform_uuid'),
]
operations = [
migrations.AddField(
model_name='xform',
name='kpi_asset_uid',
... | kobotoolbox/kobocat | onadata/apps/logger/migrations/0012_add_asset_uid_to_xform.py | Python | bsd-2-clause | 390 |
/*
* Copyright (c) 2011-2014, University of Delaware
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this... | szuckerm/DARTS | apps/Fanout/cd_fanout.cpp | C++ | bsd-2-clause | 3,498 |
//****************************************************************************
// Copyright © 2015 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2015-07-27
//
// This file is distributed under the Simplified BSD License.
// License text is included with the source distribution.
//**************... | jebreimo/Ystring | src/Ystring/Encodings/Windows1252.hpp | C++ | bsd-2-clause | 512 |
//
// The Open Toolkit Library License
//
// Copyright (c) 2006 - 2009 the Open Toolkit library.
//
// 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 l... | LayoutFarm/PixelFarm | src/PixelFarm/BackEnd.MiniOpenTK/src/OpenTK/Compute/CL10/Core.cs | C# | bsd-2-clause | 24,483 |
import copy
import mufsim.utils as util
import mufsim.gamedb as db
import mufsim.stackitems as si
from mufsim.errors import MufRuntimeError
from mufsim.insts.base import Instruction, instr
class InstPushItem(Instruction):
value = 0
def __init__(self, line, val):
self.value = val
super(InstPus... | revarbat/mufsim | mufsim/insts/stack.py | Python | bsd-2-clause | 11,103 |
#include "engine/plugins/match.hpp"
#include "engine/plugins/plugin_base.hpp"
#include "engine/api/match_api.hpp"
#include "engine/api/match_parameters.hpp"
#include "engine/map_matching/bayes_classifier.hpp"
#include "engine/map_matching/sub_matching.hpp"
#include "util/coordinate_calculation.hpp"
#include "util/inte... | hydrays/osrm-backend | src/engine/plugins/match.cpp | C++ | bsd-2-clause | 9,398 |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | Sparkier/inviwo | modules/discretedata/include/modules/discretedata/discretedatatypes.h | C | bsd-2-clause | 2,147 |
#!/usr/bin/env python
# encoding: utf-8
class MyRange(object):
def __init__(self, n):
self.idx = 0
self.n = n
def __iter__(self):
return self
def next(self):
if self.idx < self.n:
val = self.idx
self.idx += 1
return val
else:
... | feixiao5566/Py_Rabbic | IO/自定义迭代器.py | Python | bsd-2-clause | 402 |
%
% POK header
%
% The following file is a part of the POK project. Any modification should
% be made according to the POK licence. You CANNOT use this file or a part
% of a file for your own project.
%
% For more information on the POK licence, please see our LICENCE FILE
%
% Please follo... | phipse/pok | doc/userguide/installation.tex | TeX | bsd-2-clause | 3,546 |
cask "amazon-workspaces" do
version "3.0.9.1231"
sha256 "f363e1cadd72ea706591617f5660f7bafdaa249af1979e80d58bb21c0fd430df"
# workspaces-client-updates.s3.amazonaws.com/ was verified as official when first introduced to the cask
url "https://workspaces-client-updates.s3.amazonaws.com/prod/iad/osx/WorkSpaces.pkg... | haha1903/homebrew-cask | Casks/amazon-workspaces.rb | Ruby | bsd-2-clause | 574 |
using System;
using System.Text;
using LLVMSharp.Compiler.CocoR;
using LLVMSharp.Compiler.CodeGenerators;
using LLVMSharp.Compiler.Walkers;
namespace LLVMSharp.Compiler.Ast
{
public class AstNot : AstNode, IAstExpression
{
public IAstExpression AstExpression;
public AstNot(
string... | bklooste/Bitcsharp | bitcsharp/src/lsc/Compiler/Ast/Unary/AstNot.cs | C# | bsd-2-clause | 1,330 |
#!/usr/bin/perl -w
# MGEL
# Surya Saha 3/15/07
# reading cmd line input .out file which is sorted on the start position
# and finds the relationship among images and families
# Relationship types:
# Upstream: u1 (0-500 bases),u2 (500-1000 bases),u3 (1000-5000 bases), u4 (5000-10000 bases), u5 (10000-15000 bases)
# Dow... | suryasaha/ProxMiner | archive/miner.out2f_itemsets.v11.pl | Perl | bsd-2-clause | 97,224 |
cask '4k-stogram' do
version '2.4.2.1306'
sha256 '5e6b21b06587a98a048640f1fe6e653a40e4f2d4489701995c64e1520580e3cf'
url "https://downloads2.4kdownload.com/app/4kstogram_#{version.major_minor}.dmg"
appcast 'https://www.4kdownload.com/download',
checkpoint: '49ff507a887439ff101f36b84c58788834a7a4a76381... | ninjahoahong/homebrew-cask | Casks/4k-stogram.rb | Ruby | bsd-2-clause | 455 |
/////////////////////////////////////////////////////////////////////////////
// Name: mymodels.cpp
// Purpose: wxDataViewCtrl wxWidgets sample
// Author: Robert Roebling
// Modified by: Francesco Montorsi, Bo Yang
// Created: 06/01/06
// Copyright: (c) Robert Roebling
// Licence: wxWindows li... | adouble42/nemesis-current | wxWidgets-3.1.0/samples/dataview/mymodels.cpp | C++ | bsd-2-clause | 15,923 |
# Homework 2 solution, part 1: cnf.py
# Andrew Gordon
# Feb 18, 2015
# Revised June 19, 2015 for better input/output and implies->if
import sys
import fileinput
def biconditionalElimination(s):
if type(s) is str:
return s
elif type(s) is list and s[0] == "iff":
return(["and",
[... | asgordon/DPLL | cnf.py | Python | bsd-2-clause | 5,803 |
/*
* Copyright (c) 2018, The University of Memphis, MD2K Center of Excellence
*
* 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 c... | MD2Korg/mCerebrum-Utilities | utilities/src/main/java/org/md2k/utilities/data_format/Marker.java | Java | bsd-2-clause | 2,913 |
<?php
/**
* GetCustomPaymentMethodsResponseTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* MINDBODY Public API
*
* No description provided (generated by Swagger Codegen https://github.... | mindbody/API-Examples | SDKs/PHP/SwaggerClient-php/test/Model/GetCustomPaymentMethodsResponseTest.php | PHP | bsd-2-clause | 1,886 |
#ifndef COMMON_HPP
#define COMMON_HPP
#pragma once
#include "typedefs.hpp"
#include "configuration_space.hpp"
#include "utils.hpp"
#endif // COMMON_HPP | maverick-long/trajopt | src/trajopt/common.hpp | C++ | bsd-2-clause | 153 |
/*
Copyright 1992 Mark Emmer.
All Rights Reserved.
Use Of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
*/
#include "extrn88.h"
/*
* retstrf(s, presult) - Return far C string
*/
word retstrf(char far *s, union block far *presult)
{
presult->fsb.... | spitbol/88-binary | EXTERNAL/C/LIB/RETSTRF.C | C++ | bsd-2-clause | 445 |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
vector<int> a;
long long absolute(long long x) {
if (x < 0)
return -x;
else return x;
}
class Equidistance {
public:
long long eval(int fix,... | ibudiselic/contest-problem-solutions | tc 160+/Equidistance.cpp | C++ | bsd-2-clause | 3,085 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)... | mgax/airship | docs/Makefile | Makefile | bsd-2-clause | 5,631 |
define([
"cali-calcu/base/var",
"$J",
"cali-calcu/CommandParser",
"../dev/Matchers"
], function (func, $J, CommandParser, Matchers) {
describe("cali.module.base.var", function(){
// setup the environment
var parser = null;
var eps;
beforeEach(function() {
parser = new CommandParser();
$J.jasmine.Expe... | Calculingua/cali-app | test/calcu/base/var.spec.js | JavaScript | bsd-2-clause | 952 |
/*
* Copyright (c) 2017, Seth <Sethtroll3@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* ... | abelbriggs1/runelite | runelite-client/src/main/java/net/runelite/client/plugins/fishing/FishingSpot.java | Java | bsd-2-clause | 7,975 |
<?PHP
/*-
* Copyright (c) 2018 Etienne Bagnoud <etienne@artisan-numerique.ch>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above co... | artnum/phplibs | Files.php | PHP | bsd-2-clause | 2,742 |
/*
* Copyright (c) 2017, Terrence Ezrol (ezterry)
* 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 ... | ezterry/JsonRecipeEdit | src/main/java/com/ezrol/terry/minecraft/jsonRecipeEdit/commands/VirtualCommandChain.java | Java | bsd-2-clause | 4,501 |
#ifndef PM_BASE64_H_
#define PM_BASE64_H_
#include "pm.h"
#include <stdint.h>
#include <stdio.h>
#define PM_BASE64_DECODED_SIZE(x) ((PM_ROUND_UP(x, 4UL) * 3UL) / 4UL)
#define PM_BASE64_ENCODED_SIZE(x) ((PM_ROUND_UP(x, 3UL) * 4UL) / 3UL)
enum pm_base64_encoding_e
{
PM_BASE64_RFC3458,
PM_BAS... | porkfactor/matasano | c/libcryptopals/include/pm/base64.h | C | bsd-2-clause | 699 |
cask 'language-switcher' do
version '1.1.7'
sha256 'c65882f00b195a0821dd3baf2c81a71d3ddd01b64cf6beaf56abb47cb948ffa8'
url "http://www.tj-hd.co.uk/downloads/Language_Switcher_#{version.gsub('.', '_')}.dmg"
appcast 'http://feeds.tj-hd.co.uk/feeds/language_switcher/appcast.xml',
:sha256 => '0a33d4efed28... | cedwardsmedia/homebrew-cask | Casks/language-switcher.rb | Ruby | bsd-2-clause | 514 |
#include <cstddef>
#include <cstdint>
#include <type_traits>
#include "etl/type_list.h"
using etl::TypeList;
/*
* There's not a lot one can do with an empty TypeList.
*/
static_assert(TypeList<>::size() == 0, "Empty TypeList must have size 0");
template <typename T> struct BogusFn;
static_assert(std::is_same<Ty... | cbiffle/etl-test | test/type_list_test.cc | C++ | bsd-2-clause | 2,323 |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MobilityCustomization.h"
class FSceneComponentDetails : public IDetailCustomization
{
public:
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
static TSharedRef<IDetailCustomization> ... | PopCap/GameIdea | Engine/Source/Editor/DetailCustomizations/Private/SceneComponentDetails.h | C | bsd-2-clause | 597 |
# RetinaSDK.js - A JavaScript Client for the Cortical.io Retina API
Pure JavaScript wrapper library for the [Cortical.io API](http://api.cortical.io/). Register for a [free Cortical.io
API key](http://www.cortical.io/resources_apikey.html) and include RetinaSDK.js to add language intelligence to any
browser-based ap... | cortical-io/RetinaSDK.js | README.md | Markdown | bsd-2-clause | 18,946 |
package com.livescribe.framework.lsmail;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;
/**
* <bold>imported from the LSFoundation project</bold>
*
*... | jackstraw66/web | livescribe/lsmailservice/src/main/java/com/livescribe/framework/lsmail/QueueManager.java | Java | bsd-2-clause | 6,610 |
// Copyright 2016 the V8 project 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 V8_API_ARGUMENTS_H_
#define V8_API_ARGUMENTS_H_
#include "src/api.h"
#include "src/isolate.h"
namespace v8 {
namespace internal {
// Custom a... | ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/v8/src/api-arguments.h | C | bsd-2-clause | 7,551 |
from mpi4py import MPI
from pySDC.helpers.stats_helper import filter_stats, sort_stats
from pySDC.implementations.controller_classes.controller_MPI import controller_MPI
from pySDC.implementations.collocation_classes.gauss_radau_right import CollGaussRadau_Right
from pySDC.implementations.problem_classes.HeatEquation_... | Parallel-in-Time/pySDC | pySDC/playgrounds/compression/run_parallel_Heat_NumPy.py | Python | bsd-2-clause | 4,544 |
/**
* RetMax.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST)
*/
package gov.nih.nlm.ncbi.www.soap.eutils.esearch;
/**
* RetMax bean class
*/
@Su... | milot-mirdita/GeMuDB | Vendor/NCBI eutils/src/gov/nih/nlm/ncbi/www/soap/eutils/esearch/RetMax.java | Java | bsd-2-clause | 17,431 |
django-12factor-docker
======================
Sample django project demonstrating the 12-factor architecture using docker.
Configuration
-------------
Some basic configuration needs to be in place before the whole environment can
be properly started.
Configuration files are located in the *conf* folder, and they sh... | ricardokirkner/django-12factor-docker | README.md | Markdown | bsd-2-clause | 3,337 |
// Copyright (c) 2013, Kenton Varda <temporal@gmail.com>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//... | artillery/capnproto | c++/src/capnp/ez-rpc.h | C | bsd-2-clause | 9,216 |
Kwf.Utils.ResponsiveEl('.kwcTextImage', [420]);
//remove largeText class if >55% of element is covered by image
Kwf.onJElementWidthChange('.kwcTextImage', function textImage(el) {
var img = el.find('div.image .kwcAbstractImage .container');
if (img) {
if (img.width() < (el.width() * 0.55)) {
... | yacon/koala-framework | Kwc/TextImage/Component.js | JavaScript | bsd-2-clause | 507 |
<?php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'addresses',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'components' => [
'request' => [
'baseUrl' => '',
// !!! insert a secret key in the following (if it is empty) - this is required b... | ahromets/owlytest | config/web.php | PHP | bsd-3-clause | 1,703 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ms_MY">
<context>
<name>mainUI</name>
<message>
<location filename="../mainUI.ui" line="14"/>
<location filename="../mainUI.cpp" line="53"/>
<source>Calculator</source>
<translation type="unfinished"... | sasongko26/lumina | src-qt5/desktop-utils/lumina-calculator/i18n/l-calc_ms.ts | TypeScript | bsd-3-clause | 3,770 |
<?php
namespace User\Listener;
use Zend\EventManager\EventInterface;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;
use User\Acl\Service as AclService;
use Zend\Mvc\MvcEvent;
/**
* User listener
*
*
* @package Application
*/
class UserListener implements Liste... | roxmox/pmts | module/User/src/User/Listener/AdminListener.php | PHP | bsd-3-clause | 3,290 |
/*-
* Copyright (c) 2000 Daniel Capo Sobral
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... | MarginC/kame | freebsd5/sys/boot/ficl/loader.c | C | bsd-3-clause | 15,839 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_12) on Thu Jun 11 16:35:04 CST 2009 -->
<TITLE>
Àà org.xsaas.xstat.entity.InformantInfo µÄʹÓà (µ÷²éͳ¼ÆÈí¼þ·þÎñƽ̨ API)
</TITLE>
<META NAME="date"... | wangxin39/xstat | XStatAPI/docs/api/org/xsaas/xstat/entity/class-use/InformantInfo.html | HTML | bsd-3-clause | 35,607 |
from django.test import TestCase
from addressbase.models import Address
from addressbase.tests.factories import AddressFactory, UprnToCouncilFactory
class TestAddressFactory(TestCase):
def test_address_factory(self):
address = AddressFactory()
self.assertEqual(len(address.uprn), 9)
self.a... | DemocracyClub/UK-Polling-Stations | polling_stations/apps/addressbase/tests/test_factories.py | Python | bsd-3-clause | 562 |
""" Test functions for stats module
"""
import warnings
import re
import sys
import pickle
import os
from numpy.testing import (assert_equal, assert_array_equal,
assert_almost_equal, assert_array_almost_equal,
assert_allclose, assert_, assert_warns,
... | aeklant/scipy | scipy/stats/tests/test_distributions.py | Python | bsd-3-clause | 165,416 |
// Copyright (c) 2017 Timo Savola. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <sys/types.h>
struct cgroup_config {
const char *title;
const char *parent;
};
extern const char cgroup_backend[];
void init_cgroup(pid_t pid, co... | tsavola/gate | runtime/container/cgroup.h | C | bsd-3-clause | 355 |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... | Arza-Studio/yiingine | controllers/admin/messages/fr/MenusController.php | PHP | bsd-3-clause | 1,326 |
-- [er]create table of range partition on char field having boundary values and split 2nd partition to another partition but lost data
create table range_test(id int not null ,
test_int int,
test_char char(50),
test_varchar varchar(2000),
test_datetime timestamp,primary key(id,test_char))
PARTITION BY RAN... | CUBRID/cubrid-testcases | sql/_01_object/_09_partition/_005_reorganization/cases/1068.sql | SQL | bsd-3-clause | 1,309 |
/*
* Copyright 2010 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrColor_DEFINED
#define GrColor_DEFINED
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "include/gpu/GrTypes.h"
#include "include/... | youtube/cobalt | third_party/skia_next/third_party/skia/src/gpu/GrColor.h | C | bsd-3-clause | 4,138 |
---
layout: doc
title: "**HOWTO:** Decode to Texture"
---
# **HOWTO:** Decode to Texture
Starboard declares the interfaces necessary to allow applications to query for
video frames from the media player, and have them returned as texture objects
(e.g. GLES textures). This is useful if the application would like to ap... | youtube/cobalt | cobalt/site/docs/gen/starboard/doc/howto_decode_to_texture.md | Markdown | bsd-3-clause | 7,083 |
# AMQP Module
**For additional reference, please review the [source](https://github.com/Codeception/Codeception/tree/2.0/src/Codeception/Module/AMQP.php)**
This module interacts with message broker software that implements
the Advanced Message Queuing Protocol (AMQP) standard. For example, RabbitMQ (tested).
... | kaliss96/calificaciones | vendor/codeception/codeception/docs/modules/AMQP.md | Markdown | bsd-3-clause | 2,944 |
<?php
/**
* Formagic
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at
* http://www.formagic-php.net/license-agreement/
* If you did not receive a copy of the license and are unabl... | Weasle/Formagic | src/Formagic/Renderer/Html.php | PHP | bsd-3-clause | 21,342 |
% COMMAND-WRAPPER-SKEL(1) Command Wrapper 0.1.0 | Command Wrapper
% Peter Trsko
% 2nd June 2019
# NAME
`command-wrapper-skel` - Generate subcommand or configuration file skeleton
for specific Command Wrapper environment, i.e. toolset.
# USAGE
TOOLSET\_COMMAND \[GLOBAL\_OPTIONS] skel \[\--language=LANGUAGE|-l LANG... | trskop/command-wrapper | command-wrapper/man/command-wrapper-skel.1.md | Markdown | bsd-3-clause | 3,645 |
/**
* LaserPaddleItem.cpp
*
* Copyright (c) 2014, Callum Hay
* All rights reserved.
*
* Redistribution and use of the Biff! Bam!! Blammo!?! code or any derivative
* works are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* no... | callumhay/biffbamblammogame | GameModel/LaserPaddleItem.cpp | C++ | bsd-3-clause | 3,424 |
#ifndef __TEST_H__
#define __TEST_H__
#include <stdio.h>
char * Exec(char * soData, int * replylen);
int TimerEvnet();
void OnInit();
#endif
| jacket-code/redisPlatform | solib/test.h | C | bsd-3-clause | 145 |
<?php
use yii\helpers\Url;
$this->params['current_nav'] = 'memorial';
?>
<div class="container main-container">
<div class="row">
<div class="col-md-12"
<a href="#" >
<img src="/static/images/memorial/memorial_banner.png" width="100%">
</a>
</div... | cboy868/lion | modules/memorial/views/home/site/memorial.php | PHP | bsd-3-clause | 3,091 |
<?php
namespace Config\Factory\Service;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Config\Service\ConfigService;
class ConfigServiceFactory implements FactoryInterface {
public function createService(ServiceLocatorInterface $serviceLocator) {
$service... | michaelrohr/Sentru-WEB | module/Config/src/config/Factory/Service/ConfigServiceFactory.php | PHP | bsd-3-clause | 537 |
from __future__ import absolute_import, unicode_literals, division, print_function
from . import model_base
__all__ = ['PhotomModelB4']
class PhotomModelB4(model_base.DataModel):
"""
A data model for photom reference files.
"""
schema_url = "photomb4.schema.yaml"
def __init__(self, init=None, p... | mdboom/jwst_lib.models | jwst_lib/models/photom_b4.py | Python | bsd-3-clause | 2,355 |
/*
* Copyright (C) 2007-2022 S[&]T, The Netherlands.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this... | stcorp/coda | libcoda/coda-hdf4-internal.h | C | bsd-3-clause | 7,920 |
"""
* Copyright (c) 2012-2017, Nic McDonald and Adriana Flores
* 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, t... | adrifloresm/sssweep | setup.py | Python | bsd-3-clause | 2,611 |
include(CMakeFindDependencyMacro)
find_dependency(Threads)
find_dependency(MPI)
include(${CMAKE_CURRENT_LIST_DIR}/mplTargets.cmake)
| rabauke/mpl | cmake/mplConfig.cmake | CMake | bsd-3-clause | 135 |
<?php namespace lang;
/**
* Indicates a class specified by a name cannot be found - that is,
* no classloader provides such a class.
*
* @see xp://lang.IClassLoader#loadClass
* @see xp://lang.XPClass#forName
* @test xp://net.xp_framework.unittest.reflection.ClassLoaderTest
* @test xp://net.xp_framework.un... | johannes85/core | src/main/php/lang/ClassNotFoundException.class.php | PHP | bsd-3-clause | 1,825 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__twoIntsStruct_calloc_02.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-02.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: calloc Allocate data using calloc()
* GoodSource: Allocate data o... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE401_Memory_Leak/s03/CWE401_Memory_Leak__twoIntsStruct_calloc_02.c | C | bsd-3-clause | 4,741 |
class ChangeCityDefaultInAddresses < ActiveRecord::Migration
def change
change_column :spree_addresses, :state_id, :integer, default: 11260
end
end
| danghieu/spree_users_management | db/migrate/20160224092840_change_city_default_in_addresses.rb | Ruby | bsd-3-clause | 155 |
#pragma once
#include <algorithm>
#include <cmath>
#include "multiscalefilter/MultiScaleFilter.hpp"
class FourierDecomposition
{
int window_type;
double T;// period
double sigma;//parameter sigma
float beta, alpha, remap_sigma;
int n;//order
double omega_n;
double fcos(double x)
{
return getGaussianWindow(a... | norishigefukushima/OpenCP | include/multiscalefilter/FourierSeriesExpansion.h | C | bsd-3-clause | 3,583 |
import pytest
from collections import namedtuple
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_less
from skopt import dummy_minimize
from skopt.benchmarks import bench1
from skopt.callbacks import TimerCallback
from skopt.callbacks import DeltaYStopper
@pytest.mark.fast_te... | ccauet/scikit-optimize | skopt/tests/test_callbacks.py | Python | bsd-3-clause | 832 |
/* This file may have been modified by DJ Delorie (Jan 1991). If so,
** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
** Rochester NH, 03867-2954, USA.
*/
/*-
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and b... | shaotuanchen/sunflower_exp | tools/source/newlib-1.9.0/newlib/libc/stdlib/putenv_r.c | C | bsd-3-clause | 1,877 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Fri Sep 18 14:09:16 BST 2009 -->
<TITLE>
Uses of Class uk.org.mygrid.cagrid.servicewrapper.service.ncbiblast.service.globus.resource.NCB... | NCIP/taverna-grid | servicewrapper/doc/uk/org/mygrid/cagrid/servicewrapper/service/ncbiblast/service/globus/resource/class-use/NCBIBlastResourceConfiguration.html | HTML | bsd-3-clause | 10,064 |
/*
Language: XL
Author: Christophe de Dinechin <christophe@taodyne.com>
Description: An extensible programming language, based on parse tree rewriting
Website: http://xlr.sf.net
*/
export default function(hljs) {
const KWS = [
"if",
"then",
"else",
"do",
"while",
"until",
"for",
"loop... | highlightjs/highlight.js | src/languages/xl.js | JavaScript | bsd-3-clause | 3,413 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Rhea.Data")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Assembly... | robertzml/Rhea | Rhea.Data/Properties/AssemblyInfo.cs | C# | bsd-3-clause | 1,306 |
<?php
declare(strict_types=1);
require __DIR__ . "/../vendor/autoload.php";
Testbench\Bootstrap::setup(__DIR__ . '/_temp', function (\Nette\Configurator $configurator): void {
$configurator->addParameters([
"appDir" => __DIR__,
"tempDir" => __DIR__ . "/_temp",
"debugMode" => true,
]);
$configurator->... | nexendrie/translation | tests/bootstrap.php | PHP | bsd-3-clause | 362 |
import os
import sys
import re
from bento.compat \
import \
inspect as compat_inspect
from bento.commands.core \
import \
command
SAFE_MODULE_NAME = re.compile("[^a-zA-Z_]")
__HOOK_REGISTRY = {}
__PRE_HOOK_REGISTRY = {}
__POST_HOOK_REGISTRY = {}
__COMMANDS_OVERRIDE = {}
__INIT_FUNCS = {}
def... | abadger/Bento | bento/commands/hooks.py | Python | bsd-3-clause | 3,935 |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdlib.h>
#include "chrome/common/url_constants.h"
#include "googleurl/src/url_util.h"
namespace chrome {
#if defined(OS_CHROMEOS)
const ... | Crystalnix/house-of-life-chromium | chrome/common/url_constants.cc | C++ | bsd-3-clause | 11,428 |
<?php
namespace Phalcon
{
/**
* \Phalcon\FilterInterface
*
* Interface for \Phalcon\Filter
*/
interface FilterInterface
{
/**
* Adds a user-defined filter
*
* @param
* string name
* @param
* ... | hu2008yinxiang/phalcon-pure-php | src/Phalcon/FilterInterface.php | PHP | bsd-3-clause | 928 |
var namespacecode_1_1models_1_1model_etas_ga =
[
[ "model", "classcode_1_1models_1_1model_etas_ga_1_1model.html", "classcode_1_1models_1_1model_etas_ga_1_1model" ]
]; | PyQuake/earthquakemodels | html/namespacecode_1_1models_1_1model_etas_ga.js | JavaScript | bsd-3-clause | 170 |
/* Posts */
#wall textarea {
width: 100%;
}
#wall ul {
display: block;
list-style-type: none;
margin: 0;
padding: 0;
}
#wall ul ul {
font-size: smaller;
margin-left: 85px;
}
#wall ul ul li {
margin: 15px 0;
padding-top: 15px;
border-top: 1px solid #999;
}
#wall ul ul li.comment ... | pekkis/losonaamakirja | web/css/losofacebook-posts.css | CSS | bsd-3-clause | 562 |
import os
import nose
import django
NAME = os.path.basename(os.path.dirname(__file__))
ROOT = os.path.abspath(os.path.dirname(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = 'fake_settings'
os.environ['PYTHONPATH'] = os.pathsep.join([ROOT,
os.path.join(ROOT, 'examples')]... | jbalogh/jingo | run_tests.py | Python | bsd-3-clause | 522 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import team.util.LogDebugger;
/**
*
* @author team3574
*/
public class ShiftGear1 extends CommandBase {
public ShiftGear1() {
// Use requires() here to dec... | Team3574/Alastair | src/edu/wpi/first/wpilibj/templates/commands/ShiftGear1.java | Java | bsd-3-clause | 1,036 |
namespace ELFinder.Connector.Exceptions
{
/// <summary>
/// ELFinder new name selection exception
/// </summary>
public class ELFinderNewNameSelectionException : ELFinderConnectorException
{
#region Properties
/// <summary>
/// New name
/// </summary>
publ... | linguanostra/ELFinder.Connector.NET | Core/ELFinder.Connector/Exceptions/ELFinderNewNameSelectionException.cs | C# | bsd-3-clause | 680 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.