repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
joshng/papaya | papaya/src/main/java/com/joshng/util/collect/FunctionalList.java | 6387 | package com.joshng.util.collect;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.ImmutableList;
import javax.annotation.Nullable;
import java.util.*;
import java.util.function.Consumer;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.joshng.util.... | bsd-2-clause |
seraphy/EmbeddedTomcatLauncher | src/jp/seraphyware/embeddedtomcat/SimpleServerConfigurator1.java | 3551 | package jp.seraphyware.embeddedtomcat;
import java.io.File;
import java.io.IOException;
import javax.servlet.ServletException;
import org.apache.catalina.Host;
import org.apache.catalina.core.StandardContext;
import org.apache.catalina.session.StandardManager;
import org.apache.catalina.startup.Tomcat;
/**
* 1つのポー... | bsd-2-clause |
klrkdekira/golang-talks | 2014/golang-101/snippets/import.go | 84 | import (
"tutorial"
"tutorial/lib"
)
$ go get tutorial/cmd/tutoriald
$ tutoriald
| bsd-2-clause |
aftabahmedsajid/XenCenter-Complete-dependencies- | XenModel/Actions/Host/ApplyLicenseEditionAction.cs | 11860 | /* Copyright (c) Citrix Systems Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this li... | bsd-2-clause |
ErshKUS/OpenStreetMap.ru | www/js/page.map/validators.js | 6276 | osm.validators = {
sources: [{
"name": "Адресный и роутинговый валидатор Zkir",
"url": "http://osm.alno.name/validators/zkir?minlat={minlat}&minlon={minlon}&maxlat={maxlat}&maxlon={maxlon}&types={filtered_types}",
"types": {
"city_without_population": {"text": "Город без населения"},
"city_wi... | bsd-2-clause |
HaiboZhu/openh264 | codec/console/dec/src/h264dec.cpp | 16244 | /*!
* \copy
* Copyright (c) 2004-2013, Cisco Systems
* 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 abo... | bsd-2-clause |
zhangjunfang/eclipse-dir | restlet/src/org/restlet/util/WrapperMap.java | 6572 | /**
* Copyright 2005-2013 Restlet S.A.S.
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
* 1.0 (the "Licenses"). You can select the license that you prefer but you may
* not use this file except in compli... | bsd-2-clause |
Treeeater/WebPermission | src_chrome_Release_obj_global_intermediate_webcore/bindings/V8WorkerContext.cpp | 30719 | /*
This file is part of the WebKit open source project.
This file has been generated by generate-bindings.pl. DO NOT MODIFY!
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation... | bsd-2-clause |
johnmay/efficient-bits | impl-conversion/src/main/scala/BlogExamples.scala | 2676 | import org.RDKit._
import org.openscience.cdk.exception.InvalidSmilesException
import org.openscience.cdk.fingerprint.{PubchemFingerprinter, CircularFingerprinter}
import org.openscience.cdk.fingerprint.CircularFingerprinter.CLASS_ECFP4
import org.openscience.cdk.inchi.InChIGeneratorFactory
import org.openscience.cdk.i... | bsd-2-clause |
ASMlover/study | 3rdparty/boost/include/boost/asio/detail/win_iocp_socket_service_base.hpp | 23493 | //
// detail/win_iocp_socket_service_base.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_... | bsd-2-clause |
ffan-fe/fancyui | lib/Nav/submenu/menu.submenu.controller.js | 1298 | /**
* @description xxxx
*
* @author fuzhiyuan1@wandan.cn
* @date Tue Jan 03 2017 17:29:57 GMT+0800 (CST)
* @example: http://www.fancyui.org/#/zh-cn/component/menu
*/
class MenuItemController {
constructor($timeout, $rootScope, $element) {
'ngInject'
this.$timeout = $timeout;
this.$rootScope = $root... | bsd-2-clause |
CloudMade/Crude | crude.js | 7219 | /**
* @preserve Copyright (c) 2011, Vladimir Agafonkin, CloudMade
* Crude (v0.1) is a clever JavaScript library for working with RESTful services.
* See https://github.com/CloudMade/Crude for more information.
*/
/*jslint regexp: true, browser: true, node: true */
(function (global) {
"use strict";
... | bsd-2-clause |
aletheia7/norm | norm/src/java/jni/normEventJni.cpp | 890 | #include "normJni.h"
#include "normEventJni.h"
JNIEXPORT jobject JNICALL PKGNAME(NormEvent_getObject)
(JNIEnv *env, jobject obj) {
NormObjectHandle objectHandle;
jobject object = NULL;
objectHandle = (NormObjectHandle)env->GetLongField(obj, fid_NormEvent_objectHandle);
switch (NormObjectGetType(objectHan... | bsd-2-clause |
zoetrope/RosSharp | Test/RosSharp.MemoryLeakTest/NodeTest.cs | 530 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RosSharp.MemoryLeakTest
{
class NodeTest : ITest
{
public void Initialize()
{
}
public void Do(int index)
{
var nodeName = "test" + ... | bsd-2-clause |
jbooth/flotilla | lib.go | 4410 | package flotilla
import (
"fmt"
mdb "github.com/jbooth/gomdb"
)
// some default commands
func defaultCommands() map[string]Command {
return map[string]Command{
"Put": put,
"PutIfAbsent": putIfAbsent,
"CompareAndSwap": compareAndSwap,
"CompareAndRemove": compareAndRemove,
"Remove": ... | bsd-2-clause |
bbqsrc/sgit | sgit/__main__.py | 2548 | import argparse
import os
import os.path
import shlex
import subprocess
import sys
from . import Sgit
PATHS = [
os.environ.get('SGIT_PATH', None),
os.path.expanduser('~/.sgit'),
'/etc/sgit'
]
GIT_CMDS = {
'git-receive-pack': 'push',
'git-upload-pack': 'pull'
}
def get_cfg_path():
for path in... | bsd-2-clause |
nikhilmat/helpful-web | spec/models/conversations_archive_spec.rb | 1741 | require 'spec_helper'
describe ConversationsArchive do
before do
@account = build(:account)
@conversations = []
@messages = []
# Create three conversations and three unique messages
0.upto(2) do |i|
@conversations.push create(:conversation, account: @account)
message = create(:messa... | bsd-2-clause |
biotty/rmg | sound/synth/musicm.hpp | 259 | // © Christian Sommerfeldt Øien
// All rights reserved
#ifndef MUSICM_HPP
#define MUSICM_HPP
double p_of(double f);
double c_at(double f);
double a_of(double l);
double l_of(double a);
double f_of(double p);
double f_of_just(unsigned p);
#endif
| bsd-2-clause |
poste9/crud | deps/npm/@angular/compiler@2.4.4/src/ml_parser/ast.js | 6182 | /* */
"format cjs";
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export var Text = (function () {
/**
* @param {?} value
* @param {?} sourceSpan
... | bsd-2-clause |
KaltZK/mao-project-vote | public/bower_components/bootstrap-material-design/js/src/baseInput.js | 10716 | import Base from './base'
import Util from './util'
const BaseInput = (($) => {
const ClassName = {
FORM_GROUP: 'form-group',
MDB_FORM_GROUP: 'mdb-form-group',
MDB_LABEL: 'mdb-label',
MDB_LABEL_STATIC: 'mdb-label-static',
MDB_LABEL_PLACEHOLDER: 'mdb-label-placeholder',
MDB_LABEL_FLOATING: 'm... | bsd-2-clause |
brunolauze/MonoNative | MonoNative/mscorlib/System/Diagnostics/mscorlib_System_Diagnostics_DebuggerVisualizerAttribute.cpp | 3736 | #include <mscorlib/System/Diagnostics/mscorlib_System_Diagnostics_DebuggerVisualizerAttribute.h>
namespace mscorlib
{
namespace System
{
namespace Diagnostics
{
//Public Methods
//Get Set Properties Methods
// Get/Set:Description
mscorlib::System::String DebuggerVisualizerAttribute::get_Descripti... | bsd-2-clause |
plan3/annoyance | src/main/java/annoyance/model/PullRequest.java | 1909 | package annoyance.model;
import java.io.IOException;
import java.util.UUID;
import org.kohsuke.github.GHRepository;
import org.kohsuke.github.GitHub;
public class PullRequest implements Task {
private final Source source;
private final Destination destination;
private final String title;
public Pull... | bsd-2-clause |
ibudiselic/contest-problem-solutions | tc 160+/TeamPhoto.cpp | 3591 | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class TeamPhoto {
public:
int eval(vector<int>::const_iterator beg, vector<int>::const_iterator end) {
int ret = 0;
while (++beg!=end)
ret +... | bsd-2-clause |
ahomescu/phpy | tests/small/test1.php | 20 | <?php
$x = 2;
?>
| bsd-2-clause |
ShawnMilo/bitmap | doc.go | 450 | /* Package bitmap provides a simple bitmap which allows individual bits to be set and read within a slice of bytes.
The package was inspired by the book "Programming Pearls," by Jon Bentley. The
first example in the book is a clever sorting solution which uses a bitmap to
sort a file containing up 10 million numeric v... | bsd-2-clause |
ASMlover/study | 3rdparty/boost/include/boost/geometry/srs/projections/proj/aeqd.hpp | 22153 | // Boost.Geometry - gis-projections (based on PROJ4)
// Copyright (c) 2008-2015 Barend Gehrels, Amsterdam, the Netherlands.
// This file was modified by Oracle on 2017, 2018, 2019.
// Modifications copyright (c) 2017-2019, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of O... | bsd-2-clause |
fire-rs-laas/fire-rs-saop | cpp/IMC/Spec/ControlLoops.hpp | 4646 | //***************************************************************************
// Copyright 2017 OceanScan - Marine Systems & Technology, Lda. *
//***************************************************************************
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you m... | bsd-2-clause |
snazzware/zfext | Snazzware/View/Helper/Form/Date.php | 2358 | <?php
/**
* Snazzware Extensions for the Zend Framework
*
* 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 this URL:
* http://www.snazzware.com/license/new-bsd
* If you did not rec... | bsd-2-clause |
danaugrs/gokoban | vendor/github.com/g3n/engine/audio/audio_file.go | 6764 | // Copyright 2016 The G3N Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package audio
import (
"fmt"
"github.com/g3n/engine/audio/al"
"github.com/g3n/engine/audio/ov"
"io"
"os"
"unsafe"
)
// AudioInfo represents the informa... | bsd-2-clause |
robohack/homebrew-core | Formula/influxdb.rb | 3544 | class Influxdb < Formula
desc "Time series, events, and metrics database"
homepage "https://influxdata.com/time-series-platform/influxdb/"
url "https://github.com/influxdata/influxdb.git",
:tag => "v1.3.7",
:revision => "2d474a3089bcfce6b472779be9470a1f0ef3d5e4"
head "https://github.com/influxdata/i... | bsd-2-clause |
mvbattista/homebrew-core | Formula/monetdb.rb | 2336 | class RRequirement < Requirement
fatal true
satisfy { which("r") }
def message; <<-EOS.undent
R not found. The R integration module requires R.
Do one of the following:
- install R
-- run brew install r or brew cask install r-app
- remove the --with-r option
EOS
end
end
class Monetdb ... | bsd-2-clause |
Samsung/Dexter | project/dexter-cs/DexterCS/Src/ICLIResultFile.cs | 2234 | #region Copyright notice
/**
* Copyright (c) 2018 Samsung Electronics, Inc.,
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above co... | bsd-2-clause |
noahwilliamsson/protokollen | tools/import-registrars.php | 1291 | #!/usr/bin/env php
<?php
/**
* Import data from http://www.dnssecandipv6.se/rdns/
*/
require_once('../php/ProtokollenBase.class.php');
mb_internal_encoding('utf-8');
if($argc != 2)
die("Usage: ${argv[0]} <www.dnssecandipv6.se-rdns.html>\n");
$p = new ProtokollenBase();
$filename = $argv[1];
$data = file_get_cont... | bsd-2-clause |
dtrebbien/homebrew | Library/Homebrew/cmd/audit.rb | 30018 | require 'formula'
require 'utils'
require 'extend/ENV'
require 'formula_cellar_checks'
module Homebrew
def audit
formula_count = 0
problem_count = 0
strict = ARGV.include? "--strict"
if strict && ARGV.formulae.any? && MacOS.version >= :mavericks
require "cmd/style"
ohai "brew style #{ARG... | bsd-2-clause |
radai-rosenblatt/li-apache-kafka-clients | li-apache-kafka-clients/src/main/java/com/linkedin/kafka/clients/producer/LiKafkaProducer.java | 1107 | /*
* Copyright 2017 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License").
See License in the project root for license information.
*/
package com.linkedin.kafka.clients.producer;
import com.linkedin.kafka.clients.annotations.InterfaceOrigin;
import java.util.concurrent.TimeUnit;
import org.apache... | bsd-2-clause |
mhowto/crowbar | crowbar/string.cpp | 537 | #include "crowbar.h"
std::stringstream StringLiteral::ss;
const char* StringLiteral::getStringLiteral()
{
return ss.str().c_str();
}
void StringLiteral::addToString(char ch)
{
ss << ch;
}
void StringLiteral::createStringLiteral()
{
ss.str(std::string());
ss.clear();
}
char* St... | bsd-2-clause |
lattera/freshports | include/tags/FreshPorts-VuXML/header.php | 599 | <?php
#
# $Id: header.php,v 1.1.2.4 2003-11-11 16:29:16 dan Exp $
#
# Copyright (c) 1998-2003 DVL Software Limited
#
?>
<body bgcolor="#ffffff" link="#0000cc">
<?
# get the minutes (well, actually it's seconds now...)
$Minutes = date("s");
if ($Minutes >= 0 and $Minutes < 20) {
$Image = "bsdcon-banner1.gif";
} ... | bsd-2-clause |
bramp/p2psim | src/sim/workload/MultiTest.java | 1391 | package sim.workload;
import sim.collections.IntVector;
import sim.events.Events;
import sim.main.Global;
import sim.net.Host;
import sim.net.SimpleHost;
import sim.net.events.SendEvent;
import sim.net.links.NormalLink;
import sim.net.multicast.MulticastJoinPacket;
import sim.net.multicast.MulticastPacket;
... | bsd-2-clause |
ntkme/github-buttons | test/unit/event.spec.js | 995 | import {
onEvent,
onceEvent
} from '@/event'
describe('Event', () => {
let input
beforeEach(() => {
input = document.body.appendChild(document.createElement('input'))
})
afterEach(() => {
input.parentNode.removeChild(input)
})
describe('onEvent(target, eventName, func)', () => {
it('shou... | bsd-2-clause |
coypoop/npfUI | tests/csrf/test-utility.lua | 633 | package.path = '../../lib/?.lua'
require 'libcsrf'
-- it's statistically improbable that it will match this value.
local badval = 'd3268e11-e07e-480a-80d1-7c9f4b38b497'
local goodval, goodval1, goodval2
assert(not valid_token(badval))
goodval = generate_token()
assert(valid_token(goodval))
for i = 1, 50 do
goodval... | bsd-2-clause |
parenthetical-e/wheelerexp | meta/reproduce_fir.py | 5061 | """Reproduce by simulation of FIR estimation using wheelerdata"""
import sys, os
import numpy as np
from numpy.random import RandomState
import argparse
import json
from simfMRI.noise import white
from fmrilearn.analysis import fir
from wheelerdata.load.meta import get_data
from wheelerexp.base import AverageTime
fr... | bsd-2-clause |
Bodigrim/katas | src/python/7-List-Filtering.py | 186 | # http://www.codewars.com/kata/53dbd5315a3c69eed20002dd
def filter_list(xs):
'return a new list with the strings filtered out'
return [x for x in xs if not isinstance(x, basestring)] | bsd-2-clause |
rohe/pysaml2-3 | tests/test_75_mongodb.py | 2507 | from saml2 import BINDING_HTTP_POST
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
from saml2.client import Saml2Client
from saml2.server import Server
from saml2.mongo_store import EptidMDB
__author__ = 'rolandh'
AUTHN = {
"class_ref": INTERNETPROTOCOLPASSWORD,
"authn_auth": "http://www.example.co... | bsd-2-clause |
elvman/ouzel | ouzel/scene/TextRenderer.hpp | 2896 | // Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_SCENE_TEXTRENDERER_HPP
#define OUZEL_SCENE_TEXTRENDERER_HPP
#include <string>
#include "scene/Component.hpp"
#include "math/Color.hpp"
#include "gui/BMFont.hpp"
#include "graphics/BlendState.hpp"
#include "graphics/Buffer.hpp"
#include "graph... | bsd-2-clause |
aletheia7/norm | norm/protolib/src/common/protoVif.cpp | 312 | /**
* @file protoVif.cpp
*
* @brief Extends ProtoChannel to provide virtual interface access.
*/
#include "protoVif.h"
ProtoVif::ProtoVif()
: user_data(NULL)
{
vif_name[0] = '\0';
vif_name[VIF_NAME_MAX] = '\0'; // to guarantee null termination
}
ProtoVif::~ProtoVif()
{
if (IsOpen()) Close();
}
| bsd-2-clause |
eslint/espree | tests/fixtures/ecma-version/11/bigint/octal.result.js | 1683 | export default {
"type": "Program",
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
},
"range": [
0,
6
],
"body": [
{
"type": "ExpressionStatement",... | bsd-2-clause |
goodsenses/Lf | app/partials/pages/index.php | 55 | <h1>Light Framework</h1>
Description and Examples ...
| bsd-2-clause |
apronchenkov/perfmon | cpu_frequency.cpp | 1758 | #include "public/perfmon/cpu_frequency.h"
#include "public/perfmon.h"
#include "public/perfmon/ticks.h"
#include <algorithm>
#include <chrono>
#include <thread>
#include <vector>
namespace perfmon {
namespace internal {
namespace {
/** Simple estimation of the cpu frequency. */
template <class ClockType, class Rep,... | bsd-2-clause |
gdinwiddie/JdbcLib | test/com/idiacomputing/jdbc/MockUncloseableResultSetJdbcReader.java | 3519 | /*
* MockUncloseableResultSetJdbcReader
*
* Copyright(c) 2002 by George Dinwiddie Copyright(c) 2005 iDIA Computing, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* <UL><LI>... | bsd-2-clause |
poste9/crud | deps/npm/@angular/forms@2.4.4/src/directives/radio_control_value_accessor.js | 8674 | /* */
"format cjs";
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Directive, ElementRef, Injectable, Injector, Input, Renderer, forwardRef } from '@angul... | bsd-2-clause |
yerenkow/copse | copse-core/src/main/java/org/javaz/copse/model/beans/User.java | 2881 |
package org.javaz.copse.model.beans;
import org.javaz.copse.model.iface.*;
import java.util.*;
import java.sql.*;
import java.io.Serializable;
public class User implements UserI {
public static final String F_ID = "id";
public static final String F_COMMENTS = "comments";
public static final String F_EN... | bsd-2-clause |
brunolauze/MonoNative | MonoNative/mscorlib/System/Threading/mscorlib_System_Threading_Monitor.cpp | 10370 | #include <mscorlib/System/Threading/mscorlib_System_Threading_Monitor.h>
#include <mscorlib/System/mscorlib_System_Type.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_TimeSpan.h>
namespace mscorlib
{
namespace System
{
namespace Threading
{
//Public Methods... | bsd-2-clause |
vrutkovs/beehive | beehive4cmd0/__init__.py | 118 | # -*- coding: utf-8 -*-
"""
Predecessor of beehive4cmd library.
Currently used to provide self-tests for beehive.
"""
| bsd-2-clause |
danaugrs/gokoban | vendor/github.com/g3n/engine/camera/orthographic.go | 2644 | // Copyright 2016 The G3N Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package camera
import (
"github.com/g3n/engine/math32"
"github.com/g3n/engine/core"
)
// Orthographic is an orthographic camera.
type Orthographic struct {... | bsd-2-clause |
fabric-colors/fabric-colors | docs/source/conf.py | 10051 | #
# fabric_colors documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 9 14:07:12 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration val... | bsd-2-clause |
MD2Korg/mCerebrum-Utilities | utilities/src/main/java/org/md2k/utilities/storage/StorageType.java | 2390 | /*
* 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... | bsd-2-clause |
angea/corkami | src/HexII/hexII2bin.py | 1273 | #converts a HexII output back to a file
#Ange Albertini, BSD Licence 2014
from sys import argv
hexii, bin = argv[1:3]
def _3g(s):
"""splits a string in trigrams"""
for i in range(0, len(s), 3):
yield s[i:i+2] # we don't need the space separator
def convert_char(c):
"""converts ... | bsd-2-clause |
EIDSS/EIDSS-Legacy | EIDSS v6/eidss.webclient/Controllers/CommonAggregateController.cs | 4113 | using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Kendo.Mvc.UI;
using bv.model.BLToolkit;
using bv.model.Model.Core;
using eidss.model.Core;
using eidss.model.Reports;
using eidss.model.Reports.Common;
using eidss.model.Schema;
using eidss.web.common.Controllers;
using eidss.web.co... | bsd-2-clause |
d10n/ico2py | example/nano_icon.py | 25773 | # file generated by ico2py.py
import wx
import base64
import StringIO
b64_nano_90_png = (
'iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAgAElEQVR42uWdd3gc1b33P2dmt'
'mq16r24ykXGFReKjcHYxjg2YMCmY3qohpCQ0HMhyaWFC+Em3IQ3pAIXQg+9O3RwNy7YsnovVl'
'mttszOzHn/2GLJlmTJGJK87zzPPs9qNTN75nt+51e/57eCf53DDiQDqU... | bsd-2-clause |
Submanifold/psalm | FairingAlgorithms/FairingAlgorithm.cpp | 301 | /*!
* @file FairingAlgorithm.cpp
* @brief Implementation of generic functions for fairing algorithms
*/
#include "FairingAlgorithm.h"
namespace psalm
{
/*!
* Empty constructor
*/
FairingAlgorithm::FairingAlgorithm()
{
}
FairingAlgorithm::~FairingAlgorithm()
{
}
} // end of namespace "libpsalm"
| bsd-2-clause |
WojciechMula/toys | 000helpers/linux-perf-events-demo.cpp | 522 | #include "linux-perf-events.h"
#include <cstdio>
int main() {
LinuxEvents<PERF_TYPE_HARDWARE> misses(PERF_COUNT_HW_BRANCH_MISSES);
LinuxEvents<PERF_TYPE_HARDWARE> branches(PERF_COUNT_HW_BRANCH_INSTRUCTIONS);
misses.start();
branches.start();
for (int i=0; i < 100; i++) {
printf("sample i... | bsd-2-clause |
crdschurch/crds-signin-checkin | front_end/src/app/shared/services/http-client.service.ts | 2776 | import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions, Response } from '@angular/http';
import { CookieService } from 'angular2-cookie/core';
import { User, MachineConfiguration } from '../models';
import { Observable } from 'rxjs/Observable';
import { UserService } from './user.service';
... | bsd-2-clause |
jriehl/numba | numba/cuda/cudadrv/drvapi.py | 14667 | from __future__ import print_function, absolute_import, division
from ctypes import *
from . import _extras
cu_device = c_int
cu_device_attribute = c_int # enum
cu_context = c_void_p # an opaque handle
cu_module = c_void_p # an opaque handle
cu_jit_option = c_int # enum
cu_jit_input... | bsd-2-clause |
steven-maasch/spotsome | de.bht.ebus.spotsome/src/main/java/de/bht/ebus/spotsome/util/MessageDateComperator.java | 660 | package de.bht.ebus.spotsome.util;
import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;
import de.bht.ebus.spotsome.model.Message;
/**
* Note: this comparator imposes orderings that are inconsistent with equals.
*
* @author Steven Maasch
*
*/
public class MessageDateComperator imple... | bsd-2-clause |
zhester/hzphp | Util/NestedAssoc.php | 12144 | <?php
/*****************************************************************************
Extends the Assoc Class to Support Additional Features for Nested Arrays
========================================================================
This object allows two additional forms of dereferencing array elements.
In addition to... | bsd-2-clause |
alerque/homebrew-fonts | Casks/font-bitstream-vera-sans-mono-nerd-font.rb | 969 | cask "font-bitstream-vera-sans-mono-nerd-font" do
version "2.1.0"
sha256 "b31595d1e717156a1f42b0ff635b93d5da631312e4f0bd5c581259171e4a42d8"
url "https://github.com/ryanoasis/nerd-fonts/releases/download/v#{version}/BitstreamVeraSansMono.zip"
appcast "https://github.com/ryanoasis/nerd-fonts/releases.atom"
nam... | bsd-2-clause |
feserr/CrossEngine | CrossEngine/scripts/genie.lua | 3105 | --
-- Copyright 2010-2017 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
--
newoption {
trigger = "with-amalgamated",
description = "Enable amalgamated build.",
}
newoption {
trigger = "with-ovr",
description = "Enable OculusVR integration.",
}
newoptio... | bsd-2-clause |
khchine5/book | lino_book/projects/actions/models.py | 674 | from django.db import models
from django.utils.translation import ugettext_lazy as _
from lino.api import dd, rt
class A(dd.Action):
label = _("a")
def run_from_ui(self,ar,**kw):
obj = ar.selected_rows[0]
return ar.success("Called a() on %s" % obj)
class Moo(dd.Model):
a = A()
@dd.act... | bsd-2-clause |
nyaki-HUN/DESIRE | DESIRE-Modules/ResourceLoader-Assimp/Externals/Assimp/code/AssetLib/OFF/OFFLoader.cpp | 11328 | /*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2021, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... | bsd-2-clause |
jesstelford/time-prototype | Renderer/Abstract.lua | 105 | --- Renderable class implementing Visitor Pattern
Renderer_Abstract = Class {}
return Renderer_Abstract
| bsd-2-clause |
stweil/ol3 | examples/layer-group.js | 2012 | import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import TileJSON from '../src/ol/source/TileJSON.js';
import View from '../src/ol/View.js';
import {Group as LayerGroup, Tile as TileLayer} from '../src/ol/layer.js';
import {fromLonLat} from '../src/ol/proj.js';
const key =
'pk.eyJ1IjoiYW... | bsd-2-clause |
fpsw/Servo | servo/urls/products.py | 2450 | # -*- coding: utf-8 -*-
from django.conf.urls import url
from servo.views.product import *
urlpatterns = [
url(r'^tags/$', tags, name="products-tags"),
url(r'^all/$', list_products, {'group': 'all'}, name="products-list_products"),
url(r'^(?P<group>[\w\-/]*)/download/$', download_products,
name=... | bsd-2-clause |
delfiramirez/beta-ciproject | 03/public_html/libs/vendor/foundation/js/foundation.core.js | 13347 | !function($) {
"use strict";
var FOUNDATION_VERSION = '6.2.3';
// Global Foundation object
// This is attached to the window, or used as a module for AMD/Browserify
var Foundation = {
version: FOUNDATION_VERSION,
/**
* Stores initialized plugins.
*/
_plugins: {},
/**
* Stores gene... | bsd-2-clause |
timob/ec2 | com_amazonaws_services_ec2_model_SlotStartTimeRangeRequest.go | 7185 | package ec2
import "time"
import "github.com/timob/javabind"
type ServicesEc2ModelSlotStartTimeRangeRequestInterface interface {
JavaLangObjectInterface
// public void setEarliestTime(java.util.Date)
SetEarliestTime(a time.Time)
// public java.util.Date getEarliestTime()
GetEarliestTime() time.Time
// publi... | bsd-2-clause |
kidaa/pySDC | examples/heat1d/TransferClass.py | 4842 | from __future__ import division
import numpy as np
from pySDC.Transfer import transfer
from pySDC.datatype_classes.mesh import mesh, rhs_imex_mesh
import pySDC.Plugins.transfer_helper as th
# FIXME: extend this to ndarrays
class mesh_to_mesh_1d(transfer):
"""
Custon transfer class, implements Transfer.py
... | bsd-2-clause |
ragnar-johannsson/coreos-pam-sshd | onetime-keypairs/generate_secret.py | 114 | #!/usr/bin/env python
import uuid
with open('/var/secret', 'w') as f:
f.write('SECRET=%s\n' % uuid.uuid4())
| bsd-2-clause |
imagej/workflow | src/test/java/imagej/workflow/DummyComponent.java | 8962 | /*
* #%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... | bsd-2-clause |
winlolo/frapi | src/frapi/custom/AllFiles.php | 556 | <?php
// If you remove this. You might die.
define('FRAPI_CACHE_ADAPTER', 'apc');
// Use the constant CUSTOM_MODEL to access the custom model directory
// IE: require CUSTOM_MODEL . DIRECTORY_SEPARATOR . 'ModelName.php';
// Or add an autolaoder if you are brave.
// Other data
defined('CUSTOM_LIBRARY') || define('CUS... | bsd-2-clause |
ibrarahmad/cstore | src/OptPlan/Opt_Agg_Max.cpp | 803 | /*
* Opt_Agg_Max.h
* C-Store - Optimimzation
*
* Created by Nga Tran on 11/01/05.
*
* Questions, ask Nga Tran at nga@brandeis.edu or Tien Hoang at hoangt@brandeis.edu
*
* This class implements max aggregate
*/
#include "Opt_Agg_Max.h"
// Default constructor
Opt_Agg_Max::Opt_Agg_Max() : Opt_Agg()
{
}
... | bsd-2-clause |
chriskl/phpssrs | library/PhpSsrs/ReportingService2005/ParameterFieldReference.php | 548 | <?php
namespace PhpSsrs\ReportingService2005;
class ParameterFieldReference
{
/**
*
* @var string $ParameterName
* @access public
*/
public $ParameterName = null;
/**
*
* @var string $FieldAlias
* @access public
*/
public $FieldAlias = null;
/**
*
* @param string $Paramet... | bsd-2-clause |
baixuexue123/note | python/tornado/helloworld1.py | 911 | #!/usr/bin/env python
import pprint
import tornado.web
import tornado.gen
import tornado.escape
import tornado.httpserver
from tornado.ioloop import IOLoop
from tornado.concurrent import Future
from tornado.options import define, options, parse_command_line
from tornado.log import app_log
def handle_request(request)... | bsd-2-clause |
zoetrope/ReactiveRTM | Sample/ObservableSensor/Program.cs | 899 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using Microsoft.Research.Kinect.Nui;
/// <summary>
/// センサを監視するサンプル
/// </summary>
class Program
{
public static void Main(string[] args)
{
var runtime = new Runtime();
... | bsd-2-clause |
hurricane1026/highway | src/toller/packet.go | 4362 | package toller
import (
"bufio"
"io"
//"fmt"
)
type pktReader struct {
rd *bufio.Reader
seq *byte
remain int
last bool
buf [8]byte
ibuf [3]byte
}
func (my *BackConn) newPktReader() *pktReader {
return &pktReader{rd: my.rd, seq: &my.seq}
}
func (fc *FrontConn) newPktReader() *pktReader {
... | bsd-2-clause |
Carllawrence/StarsMobileApp | www/bower_components/angular-material/modules/js/fabSpeedDial/fabSpeedDial.js | 18542 | /*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.9
*/
(function( window, angular, undefined ){
"use strict";
(function() {
'use strict';
MdFabController['$inject'] = ["$scope", "$element", "$animate", "$mdUtil", "$mdConstant", "$timeout"];
angular.module('material... | bsd-2-clause |
rwhogg/brew | Library/Homebrew/os/linux/elf.rb | 3846 | require "os/linux/architecture_list"
module ELF
# @private
LDD_RX = /\t.* => (.*) \(.*\)|\t(.*) => not found/
# ELF data
# @private
def elf_data
@elf_data ||= begin
header = read(8).unpack("N2")
case header[0]
when 0x7f454c46 # ELF
arch = case read(2, 18).unpack("v")[0]
... | bsd-2-clause |
applesrc/WebCore | dom/Event.cpp | 4837 | /*
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2003, 2005, 2006, 2008, 2013 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it an... | bsd-2-clause |
jackstraw66/web | livescribe/lsregistration/src/main/java/com/livescribe/web/registration/response/RegistrationHistoryListResponse.java | 1767 | package com.livescribe.web.registration.response;
import java.util.ArrayList;
import java.util.List;
import com.livescribe.framework.orm.vectordb.RegistrationHistory;
import com.livescribe.framework.web.response.ResponseCode;
import com.livescribe.framework.web.response.ServiceResponse;
import com.livescribe.web.regi... | bsd-2-clause |
LinuxbrewTestBot/homebrew-core | Formula/pnpm.rb | 1001 | class Pnpm < Formula
require "language/node"
desc "📦🚀 Fast, disk space efficient package manager"
homepage "https://pnpm.js.org"
url "https://registry.npmjs.org/pnpm/-/pnpm-4.7.1.tgz"
sha256 "957e573ac1552c0c8793a72eab192e11e7473b84e7c6bfde1c31d0224d234f20"
bottle do
cellar :any_skip_relocation
... | bsd-2-clause |
jeffque/Syncthia-SQL-DBCreator | src/main/java/br/com/jq/syncthia/bdcreator/schema/ExistingSchemaCollection.java | 2852 | package br.com.jq.syncthia.bdcreator.schema;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import br.com.jq.syncthia.bdcreator.table.MigratableSelectable;
import br.com.jq.syncthia.bdcreator.table.Tabl... | bsd-2-clause |
sroycode/Project-OSRM-Server | prepare.cpp | 18618 | /*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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 ... | bsd-2-clause |
talho/sum_times | app/helpers/admin/timesheets_helper.rb | 35 | module Admin::TimesheetsHelper
end
| bsd-2-clause |
theoneone/CH-SS16-Project | StuntCarRacer/Common/DXUT.cpp | 233046 | //--------------------------------------------------------------------------------------
// File: DXUT.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// 21/02/2012 Reluctantly made one change to this file, in function DXUTCreateWindow(),
// to prevent the window from being resized (because... | bsd-2-clause |
wizzard/sdk | src/json.cpp | 8421 | /**
* @file json.cpp
* @brief Linear non-strict JSON scanner
*
* (c) 2013-2014 by Mega Limited, Wellsford, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the Terms of... | bsd-2-clause |
gosu-lang/tora | src/main/java/tora/plugin/JavascriptPlugin.java | 7829 | package tora.plugin;
import gw.config.CommonServices;
import gw.fs.IDirectory;
import gw.fs.IFile;
import gw.lang.reflect.IType;
import gw.lang.reflect.RefreshKind;
import gw.lang.reflect.RefreshRequest;
import gw.lang.reflect.TypeLoaderBase;
import gw.lang.reflect.TypeSystem;
import gw.lang.reflect.module.IModule;
im... | bsd-2-clause |
ooici/marine-integrations | mi/instrument/seabird/sbe16plus_v2/ctdpf_jb/test/test_driver.py | 73809 | """
@package mi.instrument.seabird.sbe16plus_v2.ctdpf_jb.test.test_driver
@file marine-integrations/mi/instrument/seabird/sbe16plus_v2/ctdpf_jb/driver.py
@author Tapana Gupta
@brief Test cases for ctdpf_jb driver
USAGE:
Make tests verbose and provide stdout
* From the IDK
$ bin/test_driver
$ bin/test... | bsd-2-clause |
incuna/django-orderable | orderable/models.py | 6710 | from django.core.exceptions import ObjectDoesNotExist
from django.db import IntegrityError, models, transaction
from django.utils.html import format_html
from .managers import OrderableManager
class Orderable(models.Model):
"""
An orderable object that keeps all the instances in an enforced order.
If th... | bsd-2-clause |
m312z/Mercs | src/core/controller/KeyboardController.java | 1538 | package core.controller;
import org.lwjgl.input.Keyboard;
import core.Frame;
public class KeyboardController extends ShipController {
boolean pausing;
public KeyboardController(String player, int playerID) {
super(player, playerID);
}
@Override
public void pollInput() {
// movement
... | bsd-2-clause |
lino-framework/avanti | lino_avanti/lib/cv/models.py | 1437 | # -*- coding: UTF-8 -*-
# Copyright 2021 Rumma & Ko Ltd
# License: GNU Affero General Public License v3 (see file COPYING for details)
from lino_xl.lib.cv.models import *
from lino.api import _
class Study(Study):
class Meta(Study.Meta):
abstract = dd.is_abstract_model(__name__, 'Study')
foreign_e... | bsd-2-clause |
BiuroCo/mega | src/win32/waiter.cpp | 2900 | /**
* @file win32/wait.cpp
* @brief Win32 event/timeout handling
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the Terms... | bsd-2-clause |
EIDSS/EIDSS-Legacy | EIDSS v6.1/vb/EIDSS/EIDSS.RAM/LayoutForm/LayoutDetailPresenter.cs | 4046 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using eidss.avr.BaseComponents;
using eidss.avr.BaseComponents.Views;
using eidss.avr.db.AvrEventArgs.AvrEventArgs;
using eidss.avr.db.Common;
using eidss.avr.db.DBService;
using eidss.avr.db.DBService.DataSource;
using eidss.model.Av... | bsd-2-clause |