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 |
|---|---|---|---|---|---|
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.12)
# Database: recipes2
# Generation Time: 2017-07-09 21:50:04 +0000
# **********************************************... | ppolasek/Recipes2 | recipe_server/src/main/resources/ddl/recipes2_2017-07-09.sql | SQL | bsd-3-clause | 4,946 |
<?php
declare(strict_types=1);
namespace UliCMS\Helpers;
use Helper;
use Westsworld\TimeAgo;
use DateTime;
class NumberFormatHelper extends Helper
{
const SQL_DATE_WITH_SECONDS = "Y-m-d H:i:s";
const SQL_DATE_WITHOUT_SECONDS = "Y-m-d H:i";
// This method formats bytes in a human readable format
// ... | derUli/ulicms | ulicms/classes/helpers/NumberFormatHelper.php | PHP | bsd-3-clause | 1,873 |
//
// $Id$
package org.ductilej.tests;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Points out an edge case with finals that we can't help.
*/
public class InitOrderTest
{
public static abstract class A {
public int fooVal = foo();
protected abstract int foo ();
}
pub... | scaladyno/ductilej | src/test/java/org/ductilej/tests/InitOrderTest.java | Java | bsd-3-clause | 681 |
// Copyright 2013 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 "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
#include "base/logging.h"
#include "base/message_loop/message_loop_proxy.h"
#inc... | ltilve/chromium | content/common/gpu/client/gpu_video_encode_accelerator_host.cc | C++ | bsd-3-clause | 9,937 |
<?php
/**
* Weegbo bootstrap file.
*
* @author Dmitry Avseyenko <polsad@gmail.com>
* @package system
* @copyright Copyright © 2008-2011 Inspirativ
* @license http://weegbo.com/license/
* @since 0.8
*/
/*
* Define basic constant
*
* PATH_ROOT - path to application directory
* PATH_BASE - p... | Inspirativ/eGift-Card-platform | index.php | PHP | bsd-3-clause | 770 |
/**
*
*/
package gov.nih.nci.cagrid.portal.util;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author <a href="mailto:joshua.phillips@semanticbits.com">Joshua Phillips</a>
*
*/
public class RunMetaChange {
/**
* @param args
*/
public static void main(String[] args) th... | NCIP/cagrid | cagrid/Software/portal/cagrid-portal/aggr/src/java/gov/nih/nci/cagrid/portal/util/RunMetaChange.java | Java | bsd-3-clause | 499 |
- infos = Information about the passwd plugin is in keys below
- infos/author = Thomas Waser <thomas.waser@libelektra.org>
- infos/licence = BSD
- infos/needs =
- infos/provides = storage/passwd
- infos/recommends =
- infos/placements = getstorage setstorage
- infos/status = maintained reviewed conformant compatible co... | e1528532/libelektra | src/plugins/passwd/README.md | Markdown | bsd-3-clause | 1,481 |
#include <ctime>
#include <fstream>
#include <iostream>
#include <utility>
// TCLAP
#include "tclap/CmdLine.h"
#include "cereal/archives/json.hpp"
#include "rb-filesystem.hpp"
#include <cstdio>
#include <sdsl/bit_vectors.hpp>
#include <cstdlib>
#include <boost/dynamic_bitset.hpp>
#include <libgen.h>
#include <sp... | COMBINE-lab/rainbowfish | rb-pack-color.cpp | C++ | bsd-3-clause | 13,749 |
using System;
using Shouldly.Tests.TestHelpers;
namespace Shouldly.Tests.ShouldNotBe.WithTolerance
{
public class TimeSpanScenario : ShouldlyShouldTestScenario
{
protected override void ShouldThrowAWobbly()
{
var timeSpan = TimeSpan.FromHours(1);
timeSpan.ShouldNotBe(tim... | MitjaBezensek/shouldly | src/Shouldly.Tests/ShouldNotBe/WithTolerance/TimeSpanScenario.cs | C# | bsd-3-clause | 794 |
#define args_t <%=name%>_args_t
typedef struct {
enum CBLAS_ORDER order;
enum CBLAS_UPLO uplo;
enum CBLAS_TRANSPOSE trans;
dtype alpha, beta;
blasint n, k;
} args_t;
#define func_p <%=func_name%>_p
static <%=func_name%>_t func_p = 0;
static void
<%=c_iter%>(na_loop_t *const lp)
{
dtype *a, *... | ruby-numo/linalg | ext/numo/linalg/blas/tmpl/syr2k.c | C | bsd-3-clause | 3,260 |
using System;
#pragma warning disable 1591
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedParameter.Local
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable IntroduceOptionalParameters.Global
// ReSharper disable MemberCanBeP... | flumbee/filebiggy | src/FileBiggy/Properties/Annotations.cs | C# | bsd-3-clause | 25,736 |
/*
import * as React from 'react'
import SelectOtherDevice from '.'
import {action, storiesOf} from '../../stories/storybook'
import * as Constants from '../../constants/provision'
import * as Types from '../../constants/types/provision'
const rd = {
cTime: 0,
encryptKey: '',
lastUsedTime: 0,
mTime: 0,
statu... | keybase/client | shared/provision/select-other-device/index.stories.tsx | TypeScript | bsd-3-clause | 1,814 |
#include <cstdio>
#include <hare/base/current_thread.h>
#include <hare/base/singleton.h>
#include <hare/base/thread.h>
#include <hare/base/noncopyable.h>
class Test : public hare::NonCopyable {
public:
Test() {
printf("tid=%d, constructing %p\n", hare::CurrentThread::tid(), this);
}
~Test() {
... | fallenwood/libhare | tests/base/singleton_test.cc | C++ | bsd-3-clause | 1,644 |
import emission.analysis.modelling.tour_model.data_preprocessing as preprocess
# to determine if the user is valid:
# valid user should have >= 10 trips for further analysis and the proportion of filter_trips is >=50%
def valid_user(filter_trips,trips):
valid = False
if len(filter_trips) >= 10 and len(filter_... | e-mission/e-mission-server | emission/analysis/modelling/tour_model/get_users.py | Python | bsd-3-clause | 1,172 |
/**
* @module Audio
* @namespace Audio
*/
var TW = TW || {};
define(['./Sound', '../Utils/Polyfills'], function(Sound) {
TW.Audio = TW.Audio || {};
/**
* Channel class is an utility for manage multiple sounds with a same source.
*
* By default, a sound object can't be played twice simulaneously.
* The ... | TumbleweedJS/TumbleweedJS | modules/Audio/Channel.js | JavaScript | bsd-3-clause | 4,213 |
package edu.mit.simile.babel;
import java.io.OutputStream;
import java.io.Writer;
import java.util.Locale;
import java.util.Properties;
import org.openrdf.sail.Sail;
public interface BabelWriter {
public String getLabel(Locale locale);
public String getDescription(Locale locale);
public SemanticTyp... | zepheira/babel | interfaces/src/main/java/edu/mit/simile/babel/BabelWriter.java | Java | bsd-3-clause | 654 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.epic.canvascontrollibrary;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Gilgamesh
*/
public class CCLLineAreaGraphProps
{
public String CanvasID;
public Stri... | akshaysrin/CanvasControlLibrary | NetBeansProjects/WebApplication1/src/java/com/epic/canvascontrollibrary/CCLLineAreaGraphProps.java | Java | bsd-3-clause | 1,196 |
/*
* Copyright (c) 2015 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | svn2github/webrtc-Revision-8758 | modules/remote_bitrate_estimator/test/bwe.h | C | bsd-3-clause | 2,110 |
module Module1.Task10 where
fibonacci :: Integer -> Integer
fibonacci n
| n == 0 = 0
| n == 1 = 1
| n < 0 = -(-1) ^ (-n) * fibonacci (-n)
| n > 0 = fibonacciIter 0 1 (n - 2)
fibonacciIter acc1 acc2 0 = acc1 + acc2
fibonacciIter acc1 acc2 n =
fibonacciIter (acc2) (acc1 + acc2) (n - 1)
| dstarcev/stepic-haskell | src/Module1/Task10.hs | Haskell | bsd-3-clause | 309 |
from django.shortcuts import render_to_response, get_object_or_404
from django.http import Http404
from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from django.views.generic.dates import YearArchiveView, MonthArchiveView,\
DateDetailView
from .models import Article, ... | ilendl2/chrisdev-cookiecutter | {{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/news/views.py | Python | bsd-3-clause | 2,060 |
<?php
/*
* To change this license header choose License Headers in Project Properties.
* To change this template file choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Customer
*
* @author Pedro
*/
namespace Sale\Model\Entity;
class Customer
{
public $customer_id;
... | Gimalca/piderapido | module/Sale/src/Sale/Model/Entity/Customer.php | PHP | bsd-3-clause | 1,343 |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... | ros-planning/moveit | moveit_core/collision_detection/include/moveit/collision_detection/collision_detector_allocator.h | C | bsd-3-clause | 4,249 |
<link rel="stylesheet" type="text/css" href="/plugins/bootstrap-datepicker/css/datepicker.css"/>
<style>
.table th a{ color:#000;text-decoration:none;}
.table td a{text-decoration:none;}
.input-small,.input-large {width: 250px !important;}
</style>
<div class="row">
<div class="col-md-12">
<div class="portl... | duanduan2288/vr | views/issue/compliance.php | PHP | bsd-3-clause | 8,628 |
<?php
namespace common\models;
use yii\db\ActiveRecord;
use yii\db\Expression;
use yii\data\ActiveDataProvider;
use Yii;
/**
* This is the model class for table "reports".
*
* @property integer $id
* @property integer $revenue
* @property integer $expense_on_goods
* @property integer $other_expenses
* @pr... | ara-martirossyan/market | common/models/Reports.php | PHP | bsd-3-clause | 4,280 |
# Copyright (c) 2015, Mitchell Cooper
package F::Operation;
use warnings;
use strict;
use 5.010;
use parent qw(F::NodeExpression);
use Scalar::Util 'blessed';
sub left_side { shift->first_child }
# handle signs.
sub adopt {
my ($op, $maybe) = (shift, @_);
my $before = $op->last_child;
# first element ... | cooper/ferret | lib/F/Operation.pm | Perl | bsd-3-clause | 4,498 |
--[er]test update(nvarchar) for list partition(have NULL value) with incorrect values out of range
create table list_test(id int not null ,
test_char char(50),
test_varchar varchar(2000),
test_bit bit(16),
test_varbit bit varying(20),
test_nchar nchar(50),
test_nvarchar nchar varying(2000),
... | CUBRID/cubrid-testcases | sql/_01_object/_09_partition/_004_manipulation/cases/1069.sql | SQL | bsd-3-clause | 1,422 |
"""
Module to create topo and qinit data files for this example.
"""
from clawpack.geoclaw import topotools
from pylab import *
def maketopo_hilo():
x = loadtxt('x.txt')
y = loadtxt('y.txt')
z = loadtxt('z.txt')
# modify x and y so that cell size is truly uniform:
dx = 1. / (3.*3600.) # 1... | rjleveque/tsunami_benchmarks | nthmp_currents_2015/problem2/maketopo.py | Python | bsd-3-clause | 2,646 |
<?php
namespace Vivo\CMS\Api\Helper;
use Vivo\CMS\Model\Folder;
use Vivo\Transliterator\TransliteratorInterface;
/**
* Document helper for document comparison of two documents.
*/
class DocumentCompare
{
/**
* Transliterator for unicode string comparison
* @var TransliteratorInterface
*/
pro... | miroslavhajek/vivoportal | src/Vivo/CMS/Api/Helper/DocumentCompare.php | PHP | bsd-3-clause | 3,725 |
package converter
import (
"go/token"
"reflect"
"strings"
"testing"
)
func TestIdentifierAt(t *testing.T) {
type args struct {
src string
idx int
}
tests := []struct {
name string
args args
wantStart int
wantEnd int
}{
{
name: "basic",
args: args{"abc", 0},
wantSta... | yunabe/lgo | converter/complete_test.go | GO | bsd-3-clause | 11,983 |
## split_multimol2
*split_multimol2(mol2_path)*
Splits a multi-mol2 file into individual Mol2 file contents.
**Parameters**
- `mol2_path` : str
Path to the multi-mol2 file. Parses gzip files if the filepath
ends on .gz.
**Returns**
A generator object for lists for every extracted mol2-file. Lists contain... | rasbt/biopandas | docs/api_modules/biopandas.mol2/split_multimol2.md | Markdown | bsd-3-clause | 546 |
<?php
namespace Meerkat\Slot;
use Meerkat\Slot\Slot;
use Meerkat\Core\Theme;
use \Kohana as Kohana;
use \Profiler as Profiler;
class Slot_PathTemplate extends Slot {
protected $_lifetime = 1;
function load() {
$token = Profiler::start(__CLASS__, $this->_id);
$themes_dirs = array();
... | aberdnikov/meerkat-twig | classes/Meerkat/Slot/Slot/PathTemplate.php | PHP | bsd-3-clause | 895 |
// This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osganimation.h"
#include "wrap_referenced.h"
#include "rigtransform.pypp.hpp"
namespace bp = boost::python;
struct RigTransform_wrapper : osgAnimation::RigTransform, bp::wrapper< osgAnimation::RigTransform > {
RigTransform_wrapp... | JaneliaSciComp/osgpyplusplus | src/modules/osgAnimation/generated_code/RigTransform.pypp.cpp | C++ | bsd-3-clause | 1,893 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS... | Radiomics/pyradiomics | docs/make.bat | Batchfile | bsd-3-clause | 7,742 |
import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 7, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 12); | antoinecarme/pyaf | tests/artificial/transf_Difference/trend_Lag1Trend/cycle_7/ar_12/test_artificial_128_Difference_Lag1Trend_7_12_20.py | Python | bsd-3-clause | 266 |
@ruby "%~dpn0" %*
| raphaelr/convolution | bin/convolution.bat | Batchfile | bsd-3-clause | 18 |
CC = gcc
EXEC = ea
CFLAGS = -g -w -O2 -DDEBUG -D__USE_GNU -D_GNU_SOURCE
CCFLAGS = -lid3tag -lmad -lz -lpthread $(CFLAGS)
OBJS = command.o list.o socket.o ea.o util.o search.o playlist.o
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(CCFLAGS) -o $(EXEC) $(OBJS)
clean:
rm -fr $(OBJS) $(EXEC) *.~*.~ gmon.out
command.o: ... | rpj/epic-audio | Makefile | Makefile | bsd-3-clause | 573 |
<div align="center">
<img src="images/logo.png" width="40%" alt="WARP17, The Stateful Traffic Generator">
</div>
_WARP17, The Stateful Traffic Generator for L1-L7_ is a lightweight solution
for generating high volumes of session based traffic with very high setup
rates. WARP17 currently focuses on L5-L7 application ... | jlijian3/warp17 | README.md | Markdown | bsd-3-clause | 53,339 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using Biggy;
using Biggy.Postgres;
namespace Tests.Postgres
{
[Trait("Database Column Mapping", "")]
public class PGList_Column_Mapping
{
// WHAT DOES THIS DO? Runs basic CRUD aga... | upta/biggy | Tests/Postgres/PGList_Column_Mapping.cs | C# | bsd-3-clause | 5,314 |
<?php namespace Milkyway\SS\Assets\Extensions;
/**
* Milkyway Multimedia
* Controller.php
*
* @package milkyway-multimedia/ss-mwm-assets
* @author Mellisa Hankins <mell@milkywaymultimedia.com.au>
*/
use Milkyway\SS\Assets\Requirements;
use Extension;
class Controller extends Extension
{
/**
* Disable ... | milkyway-multimedia/ss-mwm-assets | code/Extensions/Controller.php | PHP | bsd-3-clause | 1,479 |
import random
import time
import sys
import Csound
import subprocess
import base64
import hashlib
import matrixmusic
csd = None
oscillator = None
buzzer = None
voice = None
truevoice = None
song_publisher = None
def add_motif(instrument, req):
global csd
time = req.motif_start_time
for note in req.score:... | andrewtron3000/jampy | generator_matrix.py | Python | bsd-3-clause | 4,610 |
<?php
namespace app\controllers;
use app\models\UserModel;
use Yii;
use app\components\AdminController;
use yii\web\Response;
use yii\widgets\ActiveForm;
class UserManagmentController extends AdminController
{
public function actionIndex()
{
$dataProvider = UserModel::search();
... | Per1phery/wholetthedogout | controllers/UserManagmentController.php | PHP | bsd-3-clause | 2,925 |
import logging
from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
from pylons.templating import render_mako_def
from kai.lib.base import BaseController, render
from kai.lib.helpers import textilize
from kai.lib.serialization import render_feed
fro... | Pylons/kai | kai/controllers/comments.py | Python | bsd-3-clause | 2,956 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta ht... | statsmodels/statsmodels.github.io | devel/generated/statsmodels.regression.quantile_regression.QuantRegResults.HC3_se.html | HTML | bsd-3-clause | 18,597 |
<?php
namespace lukisongroup\widget\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use lukisongroup\widget\models\DailyJobModul;
/**
* DailyJobModulSearch represents the model behind the search form about `lukisongroup\widget\models\DailyJobModul`.
*/
class DailyJobModulSearch extends DailyJ... | adem-team/advanced | lukisongroup/widget/models/DailyJobModulSearch.php | PHP | bsd-3-clause | 2,136 |
class Gadgets(object):
"""
A Gadgets object providing managing of various gadgets for display on analytics dashboard.
Gadgets are registered with the Gadgets using the register() method.
"""
def __init__(self):
self._registry = {} # gadget hash -> gadget object.
def get_gadget(self, id)... | praekelt/django-analytics | analytics/sites.py | Python | bsd-3-clause | 657 |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2009. 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_0.txt)
//
// See http://www.boost.org/libs/i... | benkaraban/anima-games-engine | LibsExternes/Includes/boost/interprocess/exceptions.hpp | C++ | bsd-3-clause | 4,160 |
<?php
/**
* Interface for JSON-RPC sub processors.
*
* @package stubbles
* @subpackage service_jsonrpc_subprocessors
* @version $Id: stubJsonRpcSubProcessor.php 2222 2009-06-09 21:55:06Z mikey $
*/
stubClassLoader::load('net::stubbles::ioc::stubInjector',
'net::stubbles::ipo::reques... | stubbles/stubbles-1.x | src/main/php/net/stubbles/service/jsonrpc/subprocessors/stubJsonRpcSubProcessor.php | PHP | bsd-3-clause | 1,220 |
{% extends "admin/layout.html" %}
{% block title %}{{ _("Cache Options") }}{% endblock %}
{% block contents %}
<h1>{{ _("Cache Options") }}</h1>
{% call form() %}
<p>{% trans %}
Zine comes with a cache system that allows you to survive a sudden
storm of visitors. The caching system has different bac... | mitsuhiko/zine | zine/templates/admin/cache.html | HTML | bsd-3-clause | 5,230 |
#!/usr/bin/env python
#
# Written by Chema Garcia (aka sch3m4)
# Contact: chema@safetybits.net || http://safetybits.net || @sch3m4
#
import serial.tools.list_ports
from SerialCrypt import Devices
def locateDevice(devid):
'''
Returns the serial port path of the arduino if found, or None if it isn't connected
'''
r... | sch3m4/SerialCrypt | apps/locate.py | Python | bsd-3-clause | 724 |
dojo.provide("dojox.charting.plot2d.Bars");
dojo.require("dojox.charting.plot2d.common");
dojo.require("dojox.charting.plot2d.Base");
dojo.require("dojox.lang.utils");
dojo.require("dojox.lang.functional");
dojo.require("dojox.lang.functional.reversed");
(function(){
var df = dojox.lang.functional, du = dojox.lang.... | lortnus/zf1 | externals/dojo/dojox/charting/plot2d/Bars.js | JavaScript | bsd-3-clause | 2,907 |
#!/bin/bash
# Rebuild all collections of stop words
path=${1-mots_vides/datas/}
for lang in $(ls $path)
do
file=$(echo $lang | cut -f1 -d.)
lang=$(echo $file | cut -f2 -d-)
./bin/merge-stop-words $lang $path$file.txt
done
| Fantomas42/mots-vides | rebuild-collections.sh | Shell | bsd-3-clause | 230 |
// ============================================================================
#ifndef OSTAP_GSL_UTILS_H
#define OSTAP_GSL_UTILS_H 1
// ============================================================================
// Include files
// ============================================================================
// STD&S... | OstapHEP/ostap | source/include/Ostap/GSL_utils.h | C | bsd-3-clause | 2,853 |
// Package compression defines a response compressing Handler.
// It compresses the body of the http response sent back to a client.
package compression
import (
"compress/gzip"
"io"
"net/http"
"strings"
"sync"
"github.com/atdiar/xhttp"
)
// Gzipper defines the structure of the response compressing Handler.
ty... | atdiar/xhttp | handlers/compression/gzip.go | GO | bsd-3-clause | 3,197 |
// Copyright (c) 2012 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 "xwalk/runtime/browser/devtools/xwalk_devtools_delegate.h"
#include <string>
#include "base/base64.h"
#include "base/memory/ref_counted_mem... | mrunalk/crosswalk | runtime/browser/devtools/xwalk_devtools_delegate.cc | C++ | bsd-3-clause | 8,155 |
//=============================================================================================================
/**
* @file surfaceset.h
* @author Lorenz Esch <lesch@mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>
* @since 0... | mne-tools/mne-cpp | libraries/fs/surfaceset.h | C | bsd-3-clause | 10,874 |
# Zend Expressive CoderConf
[](https://secure.travis-ci.org/zendframework/zend-expressive-skeleton)
This repository create for my presentation in coderconf.org conference.
html authorization:
username: myuser
passw... | ooghry/Zend-Expressive-CoderConf | README.md | Markdown | bsd-3-clause | 332 |
Anuglar Slides Editor
================= | aslubsky/angular-slides-editor | README.md | Markdown | bsd-3-clause | 39 |
<?php
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */
use yii\helpers\Html;
?>
<div class="site-error">
<h1><?= Html::encode($name) ?></h1>
<div class="alert alert-danger">
<?= nl2br(Html::encode($code.': '.$message)) ?>
</div>
... | Zingeon/yii2_categories_tree | views/categories/error.php | PHP | bsd-3-clause | 518 |
# Makefile for streamcluster
TARGET=streamcluster
OBJS=streamcluster.o
CXXFLAGS := $(CXXFLAGS) -DENABLE_THREADS -pthread -m32 -static
OBJS += parsec_barrier.o
all: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
%.o : %.cpp
$(CXX) $(CXXFLAGS) -c $<
clean:
rm -f *.o $(TARGET)
| Multi2Sim/m2s-bench-parsec-3.0-src | streamcluster/Makefile | Makefile | bsd-3-clause | 303 |
// Copyright 2021 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | youtube/cobalt | starboard/stub/font.h | C | bsd-3-clause | 830 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TrackerPeerManager class - hetimatorrent.tracker library - Dart API</title>
<!-- required because all the l... | kyorohiro/dart_hetimatorrent | doc/api/hetimatorrent.tracker/TrackerPeerManager-class.html | HTML | bsd-3-clause | 11,909 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>DIF_SHOWAMPERSAND</title>
<meta http-equiv="Content-Type" Content="text/html; charset=Windows-1251">
<link rel="stylesheet" type="text/css" href="../../../styles/styles.css">
<script language="javascript" src='../../links.js' type="text... | data-man/FarAS | enc/enc_eng/meta/dialogapi/flags/dif_showampersand.html | HTML | bsd-3-clause | 2,264 |
/*
*
* Copyright (C) 2000-2012, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmsr
*
* Author: Joerg Riesme... | NCIP/annotation-and-image-markup | AIMToolkit_v4.1.0_rv44/source/dcmtk-3.6.1_20121102/dcmsr/include/dcmtk/dcmsr/dsrcontn.h | C | bsd-3-clause | 7,875 |
#!/bin/bash
#SBATCH --account=nstaff
#SBATCH --constraint=haswell
#SBATCH --image=docker:rcthomas/nersc-python-bench:0.3.2
#SBATCH --job-name=pynamic-cori-haswell-shifter-150
#SBATCH --mail-type=FAIL
#SBATCH --mail-user=rcthomas@lbl.gov
#SBATCH --nodes=150
#SBATCH --ntasks-per-node=32
#SBATCH --output=logs/pynamic-cori... | NERSC/nersc-python-bench | scripts/pynamic-cori-haswell-shifter-150.sh | Shell | bsd-3-clause | 1,344 |
/*
* Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
* Copyright (c) 2013 Advanced Micro Devices, 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 cod... | alianmohammad/pd-gem5-latest | src/mem/ruby/structures/CacheMemory.hh | C++ | bsd-3-clause | 6,941 |
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
struct NormalStruct1
{
char a;
};
/// Should not be packed.
struct StructWithAttr
{
int *a;
... | dart-lang/ffigen | test/header_parser_tests/packed_structs.h | C | bsd-3-clause | 819 |
/*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
*************************************... | NCIP/caaers | caAERS/software/core/src/main/java/gov/nih/nci/cabig/caaers/dao/query/SiteResearchStaffQuery.java | Java | bsd-3-clause | 3,425 |
# -*- coding: utf-8 -*-
"""
Display number of scratchpad windows and urgency hints.
Configuration parameters:
cache_timeout: refresh interval for i3-msg or swaymsg (default 5)
format: display format for this module
(default "\u232b [\?color=scratchpad {scratchpad}]")
thresholds: specify color thres... | Andrwe/py3status | py3status/modules/scratchpad.py | Python | bsd-3-clause | 5,375 |
/*
* Copyright (c) 2017, 2018, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of... | salesforce/storm-dynamic-spout | src/main/java/com/salesforce/storm/spout/dynamic/DefaultVirtualSpoutIdentifier.java | Java | bsd-3-clause | 3,090 |
---
layout: icon
title: America Football
categories: sports
icon-24: america-football-24.png
icon-18: america-football-18.png
icon-12: america-football-12.png
tags:
- football
- sports
---
| keum/maki | _posts/poi/0500-01-08-america-football.md | Markdown | bsd-3-clause | 193 |
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
import stix
from stix.data_marking import MarkingStructure
import stix.bindings.extensions.marking.tlp as tlp_binding
@stix.register_extension
class TLPMarkingStructure(MarkingStructure):
_binding = tlp_bindin... | chriskiehl/python-stix | stix/extensions/marking/tlp.py | Python | bsd-3-clause | 1,713 |
package main
import (
"api/handlers"
"fmt"
"net/http"
"runtime"
"time"
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main() {
fmt.Println("Server is start at ", time.Now().String(), " , on port 8080")
http.HandleFunc("/useage", handlers.Useage)
http.HandleFunc("/v1/", handlers.API_V1)
http.Li... | zhangbaitong/programming-language-tutorials | go/src/api/main.go | GO | bsd-3-clause | 349 |
const logger = require('../../lib/logger')()
module.exports = function (req, res, next) {
const loginToken = req.loginToken || ''
const userId = req.userId || ''
const contentType = req.headers['content-type'] || ''
logger.debug({
method: req.method,
url: req.url,
content_type: contentType,
lo... | codeforamerica/streetmix | lib/request_handlers/request_log.js | JavaScript | bsd-3-clause | 380 |
#!/usr/bin/env python
# Copyright 2017 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.
import argparse
import json
import logging
import os
import pipes
import posixpath
import random
import re
import shlex
import sys
imp... | chrisdickinson/nojs | build/android/apk_operations.py | Python | bsd-3-clause | 34,076 |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | danielknorr/MITK | Core/Code/Algorithms/itkImportMitkImageContainer.h | C | bsd-3-clause | 3,325 |
<?php
namespace ZfcUserTest\Authentication\Adapter;
use ZfcUserTest\Authentication\Adapter\TestAsset\AbstractAdapterExtension;
class AbstractAdapterTest extends \PHPUnit_Framework_TestCase
{
/**
* The object to be tested.
*
* @var AbstractAdapterExtension
*/
protected $adapter;
publi... | ZF-Commons/ZfcUser | tests/ZfcUserTest/Authentication/Adapter/AbstractAdapterTest.php | PHP | bsd-3-clause | 1,883 |
//
// FLEXDetectViewsTableViewController.h
// UICatalog
//
// Created by viczxwang on 15/12/20.
// Copyright © 2015年 f. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FLEXDetectViewsTableViewController : UITableViewController
@end
| wzxing55/wzxing55-FLEX | Classes/LeakDetect/FLEXDetectViewsTableViewController.h | C | bsd-3-clause | 253 |
// Copyright 2020 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.
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SHARED_SETTINGS_LOCALIZED_STRINGS_PROVIDER_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SHARED_SETTINGS_LOCALIZED_... | endlessm/chromium-browser | chrome/browser/ui/webui/settings/shared_settings_localized_strings_provider.h | C | bsd-3-clause | 1,404 |
import numpy as np
from numpy.testing import (assert_equal, assert_array_almost_equal,
assert_raises)
from skimage.transform._geometric import _stackcopy
from skimage.transform._geometric import GeometricTransform
from skimage.transform import (estimate_transform, matrix_transform,
... | almarklein/scikit-image | skimage/transform/tests/test_geometric.py | Python | bsd-3-clause | 7,870 |
package gov.nasa.jpl.mbee.mdk.mms.actions;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.nomagic.magicdraw.annotation.Annotation;
import com.nomagic.magicdraw.annotation.AnnotationAction;
import com.nomagic.magicdraw.core.Application;
import com.nomag... | Open-MBEE/MDK | src/main/java/gov/nasa/jpl/mbee/mdk/mms/actions/ExportImage.java | Java | bsd-3-clause | 4,365 |
/* Copyright (c) 2007-2008 The Florida State University
* 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... | liangwang/m5 | src/arch/arm/insts/static_inst.hh | C++ | bsd-3-clause | 4,968 |
<HTML>
<CENTER><A HREF = "http://mapreduce.sandia.gov">MapReduce-MPI WWW Site</A> - <A HREF = "Manual.html">MapReduce-MPI Documentation</A>
</CENTER>
<HR>
<H3>Getting Started
</H3>
<P>Once you have
<A HREF = "http://www.sandia.gov/~sjplimp/download.html">downloaded</A> the
MapReduce MPI (MR-MPI) library, you sho... | ravikanthreddy89/MR-MPI | doc/Start.html | HTML | bsd-3-clause | 5,701 |
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <stdio.h>
#include <stdlib.h>
#include "codekd.h"
#include "kdtree_fits_io.h"
#include "starutil.h"
#include "errors.h"
static codetree_t* codetree_alloc() {
codetree_t* s = calloc(1, sizeof(c... | olebole/astrometry.net | util/codekd.c | C | bsd-3-clause | 3,477 |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model app\models\Admin */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="admin-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'username')->textInput(['... | hanxiao84322/coach_system | views/admin/admin/_form.php | PHP | bsd-3-clause | 2,086 |
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#ifndef PLOTXY_H
#define PLOTXY_H
#include "astrometry/plotstuff.h"
struct plotxy_args {
char* fn;
int ext;
char* xcol;
char* ycol;
double xoff, yoff;
int firstobj;
int nobjs;
double scale;
/... | olebole/astrometry.net | include/astrometry/plotxy.h | C | bsd-3-clause | 1,666 |
declare @hasFullText int
select @hasFullText = convert(int, SERVERPROPERTY('IsFullTextInstalled'))
if (@hasFullText = 1)
begin
begin try
exec sp_fulltext_catalog 'FTCatalog', 'create'
exec sp_fulltext_table '$schema$.[Entry]', 'create', 'FTCatalog', 'PK_Entry_Id'
exec sp_fulltext_column '$schema$.[Entry]', 'Name... | funnelweblog/FunnelWeb | src/FunnelWeb/DatabaseDeployer/Scripts/Script0008.sql | SQL | bsd-3-clause | 984 |
#!/bin/bash
#On Debian 8, armf architecture
# see: http://wiki.ros.org/kinetic/Installation/Source
# Installing bootstrap dependencies
sudo pip install -U rosdep rosinstall_generator wstool rosinstall
sudo pip install --upgrade setuptools
# Initializing rosdep
sudo rm -rf /etc/ros/rosdep/sources.list.d/20-default.li... | sbrodeur/ros-icreate-bbb | scripts/install_ros.sh | Shell | bsd-3-clause | 1,640 |
package net.nablux.dockergen
import org.scalatest.{BeforeAndAfter, Matchers, FlatSpec}
class DockerImageSpec
extends FlatSpec
with Matchers
with BeforeAndAfter {
class MinimalImage extends DockerImage {
override def image: String = "test.img"
override def tag: String = "0.1"
}
var desc: DockerI... | tgpfeiffer/dockergen | src/test/scala/net/nablux/dockergen/DockerImageSpec.scala | Scala | bsd-3-clause | 1,292 |
# Copyright (c) 2009-2014, Curiost.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 list of conditions and the... | yegor256/jobspotting | lib/channels/ch_adzuna.rb | Ruby | bsd-3-clause | 2,107 |
/* $NetBSD: irq.c,v 1.2 2002/03/24 23:37:42 bjh21 Exp $ */
/*-
* Copyright (c) 2000, 2001 Ben Harris
* 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 m... | MarginC/kame | netbsd/sys/arch/acorn26/acorn26/irq.c | C | bsd-3-clause | 9,890 |
using System;
using MongoDB.Bson;
using MongoDB.Driver;
using NUnit.Framework;
namespace DataAccess.Tests.Repository
{
[TestFixture]
public class ExtensionsFixture
{
[Test]
public void ToQueryDocReturnsNullForNullString()
{
Assert.Null(((string)null).ToQuer... | TellagoDevLabs/Hermes | src/DataAccess.MongoDB.Tests/Repository/ExtensionsTest.cs | C# | bsd-3-clause | 1,003 |
#include "zglew.h"
#include "z3dgpuinfo.h"
#include <QStringList>
#include <QProcess>
#include "QsLog.h"
Z3DGpuInfo& Z3DGpuInfo::getInstance()
{
static Z3DGpuInfo gpuInfo;
return gpuInfo;
}
Z3DGpuInfo::Z3DGpuInfo()
: m_isSupported(false)
{
detectGpuInfo();
}
int Z3DGpuInfo::getGlslMajorVersion() const
{
i... | stephenplaza/NeuTu | neurolabi/gui/z3dgpuinfo.cpp | C++ | bsd-3-clause | 16,476 |
/*
* Carrot2 project.
*
* Copyright (C) 2002-2010, Dawid Weiss, Stanisław Osiński.
* All rights reserved.
*
* Refer to the full license file "carrot2.LICENSE"
* in the root folder of the repository checkout or at:
* http://www.carrot2.org/carrot2.LICENSE
*/
package org.carrot2.util.attribute;
import static o... | arnaudsj/carrot2 | core/carrot2-util-attribute/src-test/org/carrot2/util/attribute/BindableMetadataBuilderTest.java | Java | bsd-3-clause | 13,538 |
conda install --yes pip
pip install wget
python -m wget https://raw.githubusercontent.com/mjirik/lisa/master/requirements_pip.txt -o requirements_pip.txt
#python -m wget https://raw.githubusercontent.com/mjirik/lisa/master/requirements_conda.txt -o requirements_conda.txt
#python -m wget https://raw.githubusercontent.co... | mjirik/lisa | install_nosudo.sh | Shell | bsd-3-clause | 1,451 |
from django.http import HttpResponse, Http404
from django.core.exceptions import ObjectDoesNotExist
from django.shortcuts import render, get_object_or_404
from django.core.urlresolvers import reverse
from django.utils.xmlutils import SimplerXMLGenerator
from models import Place, Region
from models import Locality
from ... | uq-eresearch/uqam | location/views.py | Python | bsd-3-clause | 4,790 |
/*-
* Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
* Copyright (c) 2006 Marcel Moolenaar
* 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... | dcui/FreeBSD-9.3_kernel | sys/boot/i386/efi/bootinfo.c | C | bsd-3-clause | 8,106 |
package q2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
public class EchoTask implements Runnable {
private final Socket _client;
public EchoTask(Socket client) {
this._client = client;
}
@Ove... | authchir/log735-lab1 | q2/EchoTask.java | Java | bsd-3-clause | 1,245 |
Deface::Override.new(
:virtual_path => "spree/products/show",
:name => "add_submit_wishlist_link",
:insert_after => "[data-hook='cart_form']",
:partial => "spree/shared/wishlist"
) | arunror/spree_arun_wishlist | app/overrides/add_wishlist_after_product_properties.rb | Ruby | bsd-3-clause | 188 |
<?php
/**
* SiteQ
*
* Copyright (c) 2011-2012, Hans-Peter Buniat <hpbuniat@googlemail.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:
*
* * Redistributions of source code must re... | hpbuniat/SiteQ | SiteQ/TextUI/Output.php | PHP | bsd-3-clause | 2,895 |
/*
* Copyright (c) 2012 ARM Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the func... | Dexhub/MTX | src/cpu/simple/atomic.hh | C++ | bsd-3-clause | 5,661 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.