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 |
|---|---|---|---|---|---|
/*
* Copyright 2016 Skynav, Inc. All rights reserved.
* Portions Copyright 2009 Extensible Formatting Systems, Inc (XFSI).
*
* 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 c... | skynav/ttt | ttt-ttv/src/main/java/com/xfsi/xav/validation/images/jpeg/JpegInputStream.java | Java | bsd-2-clause | 3,933 |
<!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/html; charset=utf-8" />
<title>CLI - bossing Varnish around — Varnish vers... | reesun/varnish-cache-4.0.0 | doc/sphinx/build/html/users-guide/run_cli.html | HTML | bsd-2-clause | 12,089 |
// EarthShape.java
// See copyright.txt for license and terms of use.
package earthshape;
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.InputEvent;
import java.awt.eve... | smcpeak/earthshape | src/earthshape/EarthShape.java | Java | bsd-2-clause | 118,405 |
var searchData=
[
['lcd_2ec',['lcd.c',['../lcd_8c.html',1,'']]],
['lcd_2eh',['lcd.h',['../lcd_8h.html',1,'']]],
['light_2ec',['light.c',['../light_8c.html',1,'']]],
['light_2eh',['light.h',['../light_8h.html',1,'']]]
];
| bplainia/galaxyLightingSystem | doxygen/html/search/files_4.js | JavaScript | bsd-2-clause | 228 |
/*
Copyright (c) 2014, Lars Brubaker
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 the following ... | jlewin/agg-sharp | PolygonMesh/Processors/FaceBspTree.cs | C# | bsd-2-clause | 8,877 |
using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace LabVIEW_CLI
{
class Program
{
static bool connected = false;
static bool stop = false;
static int Main(string[] args)... | rose-a/LabVIEW-CLI | C Sharp Source/LabVIEW CLI/Program.cs | C# | bsd-2-clause | 7,352 |
from celery.task import Task
import requests
class StracksFlushTask(Task):
def run(self, url, data):
requests.post(url + "/", data=data)
| Stracksapp/stracks_api | stracks_api/tasks.py | Python | bsd-2-clause | 152 |
/*
* Ferox, a graphics and game library in Java
*
* Copyright (c) 2012, Michael Ludwig
* 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 t... | geronimo-iia/ferox | ferox-math/src/main/java/com/ferox/math/bounds/Frustum.java | Java | bsd-2-clause | 28,685 |
module Convert.LRChirotope where
-- standard modules
import Data.List
import qualified Data.Map as Map
import Data.Maybe
import qualified Data.Set as Set
-- local modules
import Basics
import Calculus.FlipFlop
import Helpful.General
--import Debug.Trace
{--------------------------------------------------------------... | spatial-reasoning/zeno | src/Convert/LRChirotope.hs | Haskell | bsd-2-clause | 1,839 |
### Some tips for using linspecer ###
---------------------------------
I personally like the first color to be black, so I begin with:
colors = [0,0,0; linspecer(10)];
which creates an 11x3 matrix of RGB colors.
Note: you must add the linspecer to your path via:
addpath('~\path-to-linspecer-directory/linspecer'... | davidkun/linspecer | tips.md | Markdown | bsd-2-clause | 762 |
var files =
[
[ "Code", "dir_a44bec13de8698b1b3f25058862347f8.html", "dir_a44bec13de8698b1b3f25058862347f8" ]
]; | crurik/GrapeFS | Doxygen/html/files.js | JavaScript | bsd-2-clause | 116 |
{-# LANGUAGE FlexibleContexts #-}
module BRC.Solver.Error where
import Control.Monad.Error (Error(..), MonadError(..))
-- | Solver errors, really just a container for a possibly useful error message.
data SolverError = SolverError String deriving (Eq, Ord)
instance Show (SolverError) where
show (SolverError msg) ... | kcharter/brc-solver | BRC/Solver/Error.hs | Haskell | bsd-2-clause | 565 |
package cocoonClient.Panels;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JScrollPane;
import javax.... | hydai/Cocoon | Cocoon/src/cocoonClient/Panels/StatusPanel.java | Java | bsd-2-clause | 3,759 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Fri Mar 06 12:54:17 CET 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Trash.Mode</t... | chris-watson/chpl-api | chpl/chpl-etl/javadoc/org/jetel/component/Trash.Mode.html | HTML | bsd-2-clause | 12,175 |
/**
* Created on: Dec 7, 2013
*/
package com.iteamsolutions.angular.models.atom
import scalaz.{
Failure => _,
Success => _,
_
}
/**
* The '''Link''' type is the Domain Object Model representation of an
* [[http://www.ietf.org/rfc/rfc4287.txt Atom Link]].
*
* @author svickers
*
*/
final case class Link (
... | osxhacker/angular-codegen | src/main/scala/com/iteamsolutions/angular/models/atom/Link.scala | Scala | bsd-2-clause | 419 |
package de.lman;
import de.lman.engine.Colors;
import de.lman.engine.Game;
import de.lman.engine.InputState;
import de.lman.engine.Keys;
import de.lman.engine.Mouse;
import de.lman.engine.math.Mat2f;
import de.lman.engine.math.Scalar;
import de.lman.engine.math.Transform;
import de.lman.engine.math.Vec2f;
import de.lm... | f1nalspace/leverman-devlog | lman/src/de/lman/Leverman.java | Java | bsd-2-clause | 11,052 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module NW.Monster where
import NW.Stats
data MonsterClass
= MCFighter
| MCMage
deriving (Eq, Show)
data Monster = Monster
{ mClass :: MonsterClass
, mName :: String
, mStatsBase :: [Stat]
, mLootBonus :: Int
} deriving (Eq, Show)
type Mons... | listx/netherworld | src/NW/Monster.hs | Haskell | bsd-2-clause | 338 |
package org.jvnet.jaxb2_commons.plugin.mergeable;
import java.util.Arrays;
import java.util.Collection;
import javax.xml.namespace.QName;
import org.jvnet.jaxb2_commons.lang.JAXBMergeStrategy;
import org.jvnet.jaxb2_commons.lang.MergeFrom2;
import org.jvnet.jaxb2_commons.lang.MergeStrategy2;
import org.jvnet.jaxb2_c... | highsource/jaxb2-basics | basic/src/main/java/org/jvnet/jaxb2_commons/plugin/mergeable/MergeablePlugin.java | Java | bsd-2-clause | 10,727 |
using System;
using System.Collections.Generic;
using System.Drawing;
using DevExpress.XtraBars;
namespace bv.winclient.Core.TranslationTool
{
public partial class PropertyGrid : BvForm
{
public ControlDesigner SourceControl { get; private set; }
public ControlModel Model { get; pr... | EIDSS/EIDSS-Legacy | EIDSS v6.1/bv.winclient/Core/TranslationTool/PropertyGrid.cs | C# | bsd-2-clause | 4,672 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('freebasics', '0006_change_site_url_field_type'),
]
operations = [
migrations.AddField(
model_name='freebasicscon... | praekeltfoundation/mc2-freebasics | freebasics/migrations/0007_freebasicscontroller_postgres_db_url.py | Python | bsd-2-clause | 442 |
// Copyright (c) 2019 ASMlover. 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 ofconditions and... | ASMlover/study | cplusplus/wren_cc/compiler.hh | C++ | bsd-2-clause | 1,647 |
<?php
namespace SilverShop\ORM\FieldType;
use SilverShop\Extension\ShopConfigExtension;
use SilverStripe\Core\Convert;
use SilverStripe\ORM\FieldType\DBVarchar;
class ShopCountry extends DBVarchar
{
public function __construct($name = null, $size = 3, $options = [])
{
parent::__construct($name, $size... | hpeide/silverstripe-shop | src/ORM/FieldType/ShopCountry.php | PHP | bsd-2-clause | 819 |
<!DOCTYPE html>
<html lang="en" dir="ltr"
xmlns:dc="http://purl.org/dc/terms/">
<head>
<meta charset="utf-8" />
<meta name="generator" content="diff2html.py (http://git.droids-corp.org/gitweb/?p=diff2html)" />
<!--meta name="author" content="Fill in" /-->
<title>HTML Diff futures/daytime_client.cpp<... | laeotropic/HTTP-Proxy | deps/asio-1.10.1/doc/examples/diffs/futures/daytime_client.cpp.html | HTML | bsd-2-clause | 1,721 |
def excise(conn, qrelname, tid):
with conn.cursor() as cur:
# Assume 'id' column exists and print that for bookkeeping.
#
# TODO: Instead should find unique constraints and print
# those, or try to print all attributes that are not corrupt.
sql = 'DELETE FROM {0} WHERE ctid =... | fdr/pg_corrupt | pg_corrupt/excise.py | Python | bsd-2-clause | 506 |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | Artisan Smarty |
// +----------------------------------------------------------------------+
// | PHP Version 4 ... | EpubBuilder/EpubBuilder | Smarty/plugins/modifier.count_sentences.php | PHP | bsd-2-clause | 1,355 |
/*
* Copyright 2013 Toshiyuki Takahashi
*
* 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 lis... | tototoshi/slick-joda-mapper | src/main/scala/com/github/tototoshi/slick/converter/JodaSqlTypeCoverter.scala | Scala | bsd-2-clause | 3,374 |
# frozen_string_literal: true
require_relative '../helpers/load_file'
module WavefrontCli
module Subcommand
#
# Stuff to import an object
#
class Import
attr_reader :wf, :options
def initialize(calling_class, options)
@calling_class = calling_class
@wf = calling_class.wf... | snltd/wavefront-cli | lib/wavefront-cli/subcommands/import.rb | Ruby | bsd-2-clause | 1,786 |
/*
* Copyright (c) 2014 ASMlover. 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 ofconditions ... | ASMlover/study | self-lang/klang/lexer.c | C | bsd-2-clause | 8,418 |
import datetime
from django.utils import timezone
from django.test import TestCase
from django.urls import reverse
from .models import Question
class QuestionMethodTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() should return False for qu... | congpc/DjangoExample | mysite/polls/tests.py | Python | bsd-2-clause | 5,010 |
class GetIplayer < Formula
desc "Utility for downloading TV and radio programmes from BBC iPlayer"
homepage "https://github.com/get-iplayer/get_iplayer"
url "https://github.com/get-iplayer/get_iplayer/archive/v3.06.tar.gz"
sha256 "fba3f1abd01ca6f9aaed30f9650e1e520fd3b2147fe6aa48fe7c747725b205f7"
head "https:/... | grhawk/homebrew-core | Formula/get_iplayer.rb | Ruby | bsd-2-clause | 2,242 |
/*
* (C) 2014,2015,2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/asn1_print.h>
#include <botan/bigint.h>
#include <botan/hex.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/asn1_time.h>
#include <botan/asn1_str.h>
#include <botan/oi... | Rohde-Schwarz-Cybersecurity/botan | src/lib/asn1/asn1_print.cpp | C++ | bsd-2-clause | 8,549 |
package operations;
import data.Collector;
import graph.implementation.Edge;
import utility.GraphFunctions;
/**
* Set the curve point to an ideal position.
* If source and destination are equal, it would be a line.
* If not, it is a noose on top of the vertex.
*/
public class O_RelaxEdge implements EdgeOperation... | Drafigon/WildGraphs | src/operations/O_RelaxEdge.java | Java | bsd-2-clause | 590 |
/*
* Copyright (c) 2016, Linaro Limited
* 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 conditi... | matt2048/optee_os | core/drivers/ps2mouse.c | C | bsd-2-clause | 4,633 |
# Gearman
[](LICENSE.txt) [](http://godoc.org/github.com/nathanaelle/gearman) [](https://... | nathanaelle/gearman | ReadMe.markdown | Markdown | bsd-2-clause | 2,769 |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UnrealEd.h"
#include "SoundMod.h"
DECLARE_LOG_CATEGORY_EXTERN(LogSoundModImporter, Verbose, All);
#include "SoundModImporterClasses.h"
| PopCap/GameIdea | Engine/Plugins/Runtime/SoundMod/Source/SoundModImporter/Private/SoundModImporterPrivatePCH.h | C | bsd-2-clause | 223 |
/**
* @license AngularJS v1.3.0-build.2480+sha.fb6062f
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/* jshint maxlen: false */
/**
* @ngdoc module
* @name ngAnimate
* @description
*
* # ngAnimate
*
* The `ngAnimate` module provides... | sabhiram/nodejs-scaffolding | app/public/js/angular-animate.js | JavaScript | bsd-2-clause | 74,308 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""--- Day 3: Perfectly Spherical Houses in a Vacuum ---
Santa is delivering presents to an infinite two-dimensional grid of houses.
He begins by delivering a present to the house at his starting location, and
then an elf at the North Pole calls him via radio and tells hi... | MattJDavidson/python-adventofcode | advent/problem_03.py | Python | bsd-2-clause | 3,424 |
/**
* @file
* @brief test for access of http://embox.googlecode.com/files/ext2_users.img
*
* @author Anton Kozlov
* @date 18.02.2013
*/
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <security/smac/smac.h>
#include <fs/vfs.h>
#include <fs/fsop.h>
... | Kefir0192/embox | src/tests/security/smac.c | C | bsd-2-clause | 3,457 |
package adf.launcher.connect;
import adf.agent.office.OfficeAmbulance;
import adf.control.ControlAmbulance;
import adf.launcher.AbstractLoader;
import adf.launcher.ConfigKey;
import rescuecore2.components.ComponentConnectionException;
import rescuecore2.components.ComponentLauncher;
import rescuecore2.config.Config;
i... | tkmnet/RCRS-ADF | modules/core/src/main/java/adf/launcher/connect/ConnectorAmbulanceCentre.java | Java | bsd-2-clause | 1,801 |
<div ui-content-for="title">
<span>Detectors</span>
</div>
<div class="scrollable">
<div class="scrollable-content" ui-scroll-bottom="bottomReached()">
<div class="list-group">
<a ng-repeat="detector in detectors" href=""" class="list-group-item">
{{detector.name}} <i class="fa fa-chevron-right p... | tcardoso2/t-motion-detector-cli | public/site/detectors.html | HTML | bsd-2-clause | 614 |
class SwiProlog < Formula
desc "ISO/Edinburgh-style Prolog interpreter"
homepage "http://www.swi-prolog.org/"
url "http://www.swi-prolog.org/download/stable/src/swipl-7.4.2.tar.gz"
sha256 "7f17257da334bc1e7a35e9cf5cb8fca01d82f1ea406c7ace76e9062af8f0df8b"
bottle do
sha256 "a03a0bde74e00d2c40b0a7735d46383b... | bfontaine/homebrew-core | Formula/swi-prolog.rb | Ruby | bsd-2-clause | 2,633 |
/******************************************************************************
* The MIT License
* Copyright (c) 2007 Novell Inc., www.novell.com
*
* 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 Sof... | brunolauze/System.Management | System.Management/System.Management.Internal/CimDataTypes/CimTable.cs | C# | bsd-2-clause | 1,669 |
#
# Autogenerated by Thrift Compiler (0.8.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
require 5.6.0;
use strict;
use warnings;
use Thrift;
use EDAMUserStore::Types;
# HELPER FUNCTIONS AND STRUCTURES
package EDAMUserStore::UserStore_checkVersion_args;
use base qw(Class::Accessor);
EDAMUs... | nobuoka/evernote-sdk-perl | lib/EDAMUserStore/UserStore.pm | Perl | bsd-2-clause | 58,040 |
// Copyright 2010 Google Inc. All Rights Reserved.
// Refactored from contributions of various authors in strings/strutil.cc
//
// This file contains string processing functions related to
// numeric values.
#define __STDC_FORMAT_MACROS 1
#include "strings/numbers.h"
#include <memory>
#include <cassert>
#include <ctyp... | romange/beeri | strings/numbers.cc | C++ | bsd-2-clause | 49,536 |
require "language/haskell"
class Ghc < Formula
include Language::Haskell::Cabal
desc "Glorious Glasgow Haskell Compilation System"
homepage "https://haskell.org/ghc/"
url "https://downloads.haskell.org/~ghc/8.6.3/ghc-8.6.3-src.tar.xz"
sha256 "9f9e37b7971935d88ba80426c36af14b1e0b3ec1d9c860f44a4391771bc07f23"... | jdubois/homebrew-core | Formula/ghc.rb | Ruby | bsd-2-clause | 4,374 |
using System;
using System.Text;
using Microsoft.Extensions.Configuration;
using NLog.Common;
using NLog.Config;
using NLog.LayoutRenderers;
namespace NLog.Extensions.Logging
{
/// <summary>
/// Layout renderer that can lookup values from Microsoft Extension Configuration Container (json, xml, ini)
/// </... | NLog/NLog.Framework.Logging | src/NLog.Extensions.Logging/LayoutRenderers/ConfigSettingLayoutRenderer.cs | C# | bsd-2-clause | 2,889 |
# pylint:disable=line-too-long
import logging
from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool
from ...calling... | angr/angr | angr/procedures/definitions/win32_aclui.py | Python | bsd-2-clause | 1,451 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>RMedia.GetOffset</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%" bgco... | Devronium/ConceptApplicationServer | core/server/Samples/CIDE/Help/RMedia.GetOffset.html | HTML | bsd-2-clause | 2,194 |
require_relative 'model'
Record.where(version: 10606).delete_all
| panjia1983/channel_backward | benchmarks/needle_steering/06clear_records6.rb | Ruby | bsd-2-clause | 65 |
# -*- coding: utf-8 -*-
"""
femagtools.plot
~~~~~~~~~~~~~~~
Creating plots
"""
import numpy as np
import scipy.interpolate as ip
import logging
try:
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from mpl_toolkits.mplot3d import Axes3D
matplotlibversion... | SEMAFORInformatik/femagtools | femagtools/plot.py | Python | bsd-2-clause | 54,354 |
import {Component, NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
@Component({
selector: 'application',
template: `<div>Hello!</div>`
})
export class BasicInlineComponent {}
@NgModule({
imports: [BrowserModule],
declarations: [BasicInlineComponent],
bootstrap: [Bas... | clbond/angular-ssr | source/test/fixtures/application-basic-inline.ts | TypeScript | bsd-2-clause | 377 |
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from . import _wrap_numbers, Symbol, Number, Matrix
def symbols(s):
""" mimics sympy.symbols """
tup = tuple(map(Symbol, s.replace(',', ' ').split()))
if len(tup) == 1:
return tup[0]
else:
return... | bjodah/pysym | pysym/util.py | Python | bsd-2-clause | 2,569 |
const maps = require('source-map-support');
maps.install({environment: 'node'}); | clbond/angular-ssr | source/application/compiler/webpack/source-map.ts | TypeScript | bsd-2-clause | 81 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.from
es6id: 22.1.2.1
description: Value returned by mapping function (traversed via iterator)
info: |
[...]
2. If mapfn is undefined, let mapping be fal... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Array/from/iter-map-fn-return.js | JavaScript | bsd-2-clause | 1,769 |
package com.mithos.bfg.loop;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
/**
* This class is an adapter for {@link OnEvent}. All methods do
* nothing and return true, so you need only implement the methods
* that you need to.
* @author James McMahon
*
... | James1345/bfg | src/com/mithos/bfg/loop/OnEventAdapter.java | Java | bsd-2-clause | 821 |
using Esprima.Ast;
namespace Jint.Runtime.Interpreter
{
/// <summary>
/// Per Engine.Evalute() call context.
/// </summary>
internal sealed class EvaluationContext
{
public EvaluationContext(Engine engine, in Completion? resumedCompletion = null)
{
Engine = engine;
... | sebastienros/jint | Jint/Runtime/Interpreter/EvaluationContext.cs | C# | bsd-2-clause | 780 |
log.enableAll();
(function(){
function animate() {
requestAnimationFrame(animate);
TWEEN.update();
}
animate();
})();
var transform = getStyleProperty('transform');
var getStyle = ( function() {
var getStyleFn = getComputedStyle ?
function( elem ) {
return getComputed... | wushuyi/panorama360 | assets/js/functions_bak.js | JavaScript | bsd-2-clause | 6,239 |
// Copyright (c) 2022, WNProject 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 "WNNetworking/inc/WNReliableNetworkTransportSocket.h"
#include "WNNetworking/inc/WNReliableNetworkListenSocket.h"
#include <netdb.h>
#include... | WNProject/WNFramework | Overlays/Posix/Libraries/WNNetworking/src/WNReliableNetworkTransportSocket.cpp | C++ | bsd-2-clause | 3,381 |
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information.
#ifndef EAVL_SCENE_RENDERER_RT_H
#define EAVL_SCENE_RENDERER_RT_H
#include "eavlDataSet.h"
#include "eavlCellSet.h"
#include "eavlColor.h"
#include "eavlColorTable.h"
#include "eavlSceneRenderer.h"
#include "eavlRayTracerMutator.h"
#includ... | jsmeredith/EAVL | src/rendering/eavlSceneRendererRT.h | C | bsd-2-clause | 6,371 |
module WavefrontOBJs
export loadOBJ, loadMTL, load_obj_mtl, numVertices, numFaces
include("geotypes.jl")
include("types.jl")
include("utils.jl")
include("obj.jl")
include("material.jl")
# convenience for loading OBJ and MTL simultaneously
function load_obj_mtl(fpath::ASCIIString)
objpath=string(fpath,".obj")
mtl... | ericjang/WavefrontOBJs.jl | src/WavefrontOBJs.jl | Julia | bsd-2-clause | 540 |
var _ = require('lodash');
var requireAll = require('require-all');
function load(router, options) {
if (_.isString(options))
options = {dirname: options};
return requireAll(_.defaults(options, {
filter: /(.*Controller)\.js$/,
recursive: true,
resolve: function (Controller) {
var c = new (... | vvv-v13/express-starter | library/load.js | JavaScript | bsd-2-clause | 476 |
/*
* 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-ir/src/main/java/net/java/jinterval/ir/IRPredictor.java | Java | bsd-2-clause | 10,164 |
/*
* Copyright (c) 2016-2016, Roland Bock
* 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 co... | rbock/sqlpp11 | tests/core/serialize/Where.cpp | C++ | bsd-2-clause | 3,294 |
#include <iostream>
#include <string>
#include <map>
#include <unistd.h>
#include <utility>
#include <sstream>
#include "./patricia-tree.hpp"
int main(void) {
std::cout << "Add new command!\n";
PatriciaTree<Node<std::string, StringKeySpec>> pt;
std::string command = "command";
std::string key;
... | giovannicuriel/tinytools | src/c++/patricia-tree-demo.cpp | C++ | bsd-2-clause | 472 |
# urlwatch
A Puppet module for managing urlwatch and urlwatch cronjobs. This module also supports urlwatch's
built-in filtering features (hooks.py).
# Module usage
Example using Hiera: monitor Trac WikiStart and RecentChanges pages for edits:
classes:
- urlwatch
urlwatch::userconfigs:
... | Puppet-Finland/urlwatch | README.md | Markdown | bsd-2-clause | 1,379 |
# Add your own choices here!
fruit = ["apples", "oranges", "pears", "grapes", "blueberries"]
lunch = ["pho", "timmies", "thai", "burgers", "buffet!", "indian", "montanas"]
situations = {"fruit":fruit, "lunch":lunch}
| rbracken/internbot | plugins/pick/choices.py | Python | bsd-2-clause | 218 |
/***** includes *****/
#include "lfds720_stack_np_internal.h"
/***** private prototypes *****/
static void lfds720_stack_np_internal_stack_np_validate( struct lfds720_stack_np_state *ss,
struct lfds720_misc_validation_info *vi,
... | grz0zrg/fas | lib/liblfds7.2.0/src/liblfds720/src/lfds720_stack_nodeallocate_positionindependent/lfds720_stack_np_query.c | C | bsd-2-clause | 4,484 |
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* 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... | chototsu/MikuMikuStudio | sdk/jme3-core/src/com/jme3/gde/core/properties/UserDataProperty.java | Java | bsd-2-clause | 5,643 |
#ifndef FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_
#define FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_
#include "aos/common/controls/polytope.h"
#ifdef INCLUDE_971_INFRASTRUCTURE
#include "frc971/control_loops/drivetrain/drivetrain.q.h"
#endif //INCLUDE_971_INFRASTRUCTURE
#include "frc971/control_loops/s... | FRC1296/CheezyDriver2016 | frc971/control_loops/drivetrain/polydrivetrain.h | C | bsd-2-clause | 2,780 |
// Copyright (c) 2017 ASMlover. 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 ofconditions and... | ASMlover/study | python/minipy/main.cc | C++ | bsd-2-clause | 1,837 |
# OCaml does not preserve binary compatibility across compiler releases,
# so when updating it you should ensure that all dependent packages are
# also updated by incrementing their revisions.
#
# Specific packages to pay attention to include:
# - camlp5
# - lablgtk
#
# Applications that really shouldn't break on a com... | Linuxbrew/homebrew-core | Formula/ocaml.rb | Ruby | bsd-2-clause | 2,431 |
class Xonsh < Formula
include Language::Python::Virtualenv
desc "Python-ish, BASHwards-compatible shell language and command prompt"
homepage "https://xon.sh/"
url "https://github.com/xonsh/xonsh/archive/0.8.12.tar.gz"
sha256 "7c51ce752f86e9eaae786a4886a6328ba66e16d91d2b7ba696baa6560a4de4ec"
head "https://... | bcg62/homebrew-core | Formula/xonsh.rb | Ruby | bsd-2-clause | 2,201 |
/*
* cuda_common.h
*
* Created on: Jul 14, 2014
* Author: shu
*/
#pragma once
#include <cstdio>
#include <stdint.h>
#define CUDA_CHECK_RETURN(value) { \
cudaError_t _m_cudaStat = value; \
if (_m_cudaStat != cudaSuccess) { \
fprintf(stderr, "Error %s at line %d in file %s\n"... | akiyamalab/ghostz-gpu | src/cuda_common.h | C | bsd-2-clause | 616 |
<?php
namespace Bacharu\Models;
use \Prajna\Objects\VIFMetrics as PrajnaVIFMetrics;
class VIFMetrics extends PrajnaVIFMetrics
{
public function __construct(){}
}
| cameronjacobson/Bacharu | src/Bacharu/Models/VIFMetrics.php | PHP | bsd-2-clause | 166 |
# Copyright (c) 2015-2018 by the parties listed in the AUTHORS file.
# All rights reserved. Use of this source code is governed by
# a BSD-style license that can be found in the LICENSE file.
"""
sim_det_noise.py implements the noise simulation operator, OpSimNoise.
"""
import numpy as np
from ..op import Operator... | tskisner/pytoast | src/python/tod/sim_det_noise.py | Python | bsd-2-clause | 6,740 |
(function(){
var slides = [
{title: 'Работы для отдела Клиентского сервиса и сапорта ФС\nТикетная админка, админка массовых сбоев',
works: [
{img: 'i/works/ticket-admin.png', description:
'<div class="presentation_mb10"><strong>Тикетная админка</strong></div>' +
'<div class="presentation_mb10">Чер... | matraska23/m3-backbone-toolkit | demo_presentation/js/presentation.js | JavaScript | bsd-2-clause | 22,354 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 ASMlover. 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
# ... | ASMlover/study | zeroMQ/python/push-pull/worker.py | Python | bsd-2-clause | 1,961 |
class WireguardGo < Formula
desc "Userspace Go implementation of WireGuard"
homepage "https://www.wireguard.com/"
url "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-0.0.20200320.tar.xz"
sha256 "c8262da949043976d092859843d3c0cdffe225ec6f1398ba119858b6c1b3552f"
license "MIT"
head "https://git.zx2c4... | maxim-belkin/homebrew-core | Formula/wireguard-go.rb | Ruby | bsd-2-clause | 1,241 |
# Writing your docs
How to write and layout your markdown source files.
---
## Configure Pages and Navigation
The [pages configuration](/user-guide/configuration/#pages) in your `mkdocs.yml` defines which pages are built by MkDocs and how they appear in the documentation navigation. If not provided, the pages confi... | samhatfield/mkdocs | docs/user-guide/writing-your-docs.md | Markdown | bsd-2-clause | 6,667 |
/* @LICENSE(MUSLC_MIT) */
#include "pthread_impl.h"
int pthread_detach(pthread_t t)
{
/* Cannot detach a thread that's already exiting */
if (a_swap(t->exitlock, 1))
return pthread_join(t, 0);
t->detached = 2;
__unlock(t->exitlock);
return 0;
}
| gapry/refos | libs/libmuslc/src/thread/pthread_detach.c | C | bsd-2-clause | 254 |
#!/bin/bash -e
# erik reed
# runs EM algorithm on hadoop streaming
if [ $# -ne 5 ]; then
echo Usage: $0 \"dir with net,tab,fg,em\" EM_FLAGS MAPPERS REDUCERS POP
echo "2 choices for EM_FLAGS: -u and -alem"
echo " -u corresponds to update; standard EM with fixed population size"
echo " e.g. a simple ... | erikreed/HadoopBNEM | mapreduce/scripts/mr_streaming.sh | Shell | bsd-2-clause | 3,032 |
#ifndef SOBER_NETWORK_HTTP_EXTRA_SUCCESS_HANDLER_HPP_
#define SOBER_NETWORK_HTTP_EXTRA_SUCCESS_HANDLER_HPP_
// Copyright (c) 2014, Ruslan Baratov
// All rights reserved.
#include <functional> // std::function
namespace sober {
namespace network {
namespace http {
using ExtraSuccessHandler = std::function<void()>;
... | ruslo/sober | Source/sober/network/http/ExtraSuccessHandler.hpp | C++ | bsd-2-clause | 441 |
##大纲
* DevOps基础
* DevOps是什么
* DevOps解决什么问题
* DevOps都做什么
* Vagrant基础
* init
* box管理
* up
* ssh
* reload
* destroy
* port forward
* multi-machines
##目标
* 基本理解DevOps以及DevOps要做的事情
* 可以使用Vagrant创建虚拟机并使用虚拟机工作
##详细内容
#### DevOps是啥?
```
DevOps顾名思义, 就是Developer + Operatior,开发 + ... | ThoughtWorks-Chengdu-DevOps-Club/tw_devops_workshop | season_1/workshop_0/introduction.md | Markdown | bsd-2-clause | 2,470 |
/*
* Copyright (c) 2012 Tom Denley
* This file incorporates work covered by the following copyright and
* permission notice:
*
* Copyright (c) 2003-2008, Franz-Josef Elmer, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... | netmelody/neoclassycle | src/main/java/org/netmelody/neoclassycle/renderer/StrongComponentRenderer.java | Java | bsd-2-clause | 1,856 |
from unittest import TestCase
import pkg_resources
from mock import patch
from click import UsageError
from click.testing import CliRunner
class TestCli(TestCase):
@patch('molo.core.cookiecutter.cookiecutter')
def test_scaffold(self, mock_cookiecutter):
from molo.core.scripts import cli
pac... | praekelt/molo | molo/core/scripts/tests/test_cli.py | Python | bsd-2-clause | 4,820 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ItzWarty.RAF
{
public class RAFFileListEntry
{
private byte[] directoryFileContent = null;
private UInt32 offsetEntry = 0;
private RAF raf = null;
public RAFFileListEntry(RAF raf, by... | dargondevteam/raflib | RAFFileListEntry.cs | C# | bsd-2-clause | 1,881 |
// Copyright (c) 2020 WNProject Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Intentionally left empty so that we can build a lib target for this library
#include "hashing/inc/hash.h"
| WNProject/WNFramework | Libraries/hashing/src/dummy.cpp | C++ | bsd-2-clause | 277 |
//
// Copyright (c) 2015 CNRS
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the License, or (at your option) any later versio... | aelkhour/pinocchio | src/spatial/se3.hpp | C++ | bsd-2-clause | 8,904 |
/*
Copyright (c) 2012-2013, Politecnico di Milano. All rights reserved.
Andrea Zoppi <texzk@email.it>
Martino Migliavacca <martino.migliavacca@gmail.com>
http://airlab.elet.polimi.it/
http://www.openrobots.com/
Redistribution and use in source and binary forms, with or without
modification, are permitted provided t... | yukkysaito/uros_velodyne | src/urosNode.c | C | bsd-2-clause | 70,678 |
import numpy as np
from scipy.sparse import csr_matrix
class AliasArray(np.ndarray):
"""An ndarray with a mapping of values to user-friendly names -- see example
This ndarray subclass enables comparing sub_id and hop_id arrays directly with
their friendly string identifiers. The mapping parameter transla... | MAndelkovic/pybinding | pybinding/support/alias.py | Python | bsd-2-clause | 5,869 |
package org.mastodon.tracking.mamut.trackmate.wizard;
import org.mastodon.mamut.model.Link;
import org.mastodon.mamut.model.Model;
import org.mastodon.mamut.model.Spot;
import org.mastodon.model.AbstractModelImporter;
public class CreateLargeModelExample
{
private static final int N_STARTING_CELLS = 6;
private sta... | TrNdy/mastodon-tracking | src/test/java/org/mastodon/tracking/mamut/trackmate/wizard/CreateLargeModelExample.java | Java | bsd-2-clause | 4,524 |
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender... | gl-demos/masters | CODE_OF_CONDUCT.md | Markdown | bsd-2-clause | 3,215 |
/* Copyright (c) 2016-2017, Artem Kashkanov
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 conditions and the fol... | radiolok/bfutils | common/Image.h | C | bsd-2-clause | 2,890 |
#{extends 'main.html' /} #{set title:'FAQ' /}
#{set faq:'active'/}
#{set title:'FAQ'/}
<div class="page-header">
<h1>Frequently Asked Questions
<a class="btn btn-primary login pull-right" href="@{Login.auth()}">Login with Dropbox</a>
<a class="btn btn-primary login pull-right" href="@{Login.boxAuth()}">Login ... | mustpax/sortmybox | app/views/Footer/faq.html | HTML | bsd-2-clause | 3,632 |
<?php
/**
* Class for XML output
*
* PHP versions 5 and 7
*
* @category PEAR
* @package PEAR_PackageFileManager
* @author Greg Beaver <cellog@php.net>
* @copyright 2003-2015 The PEAR Group
* @license New BSD, Revised
* @link http://pear.php.net/package/PEAR_PackageFileManager
* @since File a... | pear/PEAR_PackageFileManager | PEAR/PackageFileManager/XMLOutput.php | PHP | bsd-2-clause | 6,592 |
// Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess
// 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 notic... | dithillobothrium/SIRIUS | src/spline.h | C | bsd-2-clause | 30,186 |
// Set color based on frequency and brightness
void setColor(int peak_index, int brightness) {
if (peak_index == 0) {
// signal was weak, turn lights off
red = 0;
green = 0;
blue = 0;
} else if (peak_index > 30) {
red = current_palette[29].red;
green = current_pal... | whitews/super-freq | super_freq/light_strip_controllers.h | C | bsd-2-clause | 1,795 |
/*******
*
* FILE INFO:
* project: RTP_lib
* file: Types.h
* started on: 03/26/03
* started by: Cedric Lacroix <lacroix_cedric@yahoo.com>
*
*
* TODO:
*
* BUGS:
*
* UPDATE INFO:
* updated on: 05/13/03
* updated by: Cedric Lacroix <lacroix_cedric@yahoo.com>
*
*******/
#ifndef TYPES_H
#define TYPES_H
#ifndef FALSE
#def... | Devronium/ConceptApplicationServer | modules/standard.net.rtp.lite/src/Types.h | C | bsd-2-clause | 762 |
/**
* PatentPriority_type0.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.efetch_gene;
/**
* PatentPriority_type0 bean clas... | milot-mirdita/GeMuDB | Vendor/NCBI eutils/src/gov/nih/nlm/ncbi/www/soap/eutils/efetch_gene/PatentPriority_type0.java | Java | bsd-2-clause | 28,888 |
/* Copyright (c) 2013, Anthony Cornehl
* 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 cond... | twinshadow/tslibc | src/string/check_strstrip.c | C | bsd-2-clause | 2,026 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.