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 |
|---|---|---|---|---|---|
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | aduros/amity | external/curl/lib/hostip6.c | C | bsd-2-clause | 6,643 |
/* Copyright (C) 2018 European Spallation Source, ERIC. See LICENSE file */
//===----------------------------------------------------------------------===//
///
/// \file
///
//===----------------------------------------------------------------------===//
#include <gdgem/nmx/Readout.h>
#include <gdgem/clustering/test_... | ess-dmsc/event-formation-unit | src/modules/gdgem/nmx/old_formats/srs_converter.cpp | C++ | bsd-2-clause | 1,278 |
/* $NetBSD: altq_blue.c,v 1.23 2011/11/19 22:51:18 tls Exp $ */
/* $KAME: altq_blue.c,v 1.15 2005/04/13 03:44:24 suz Exp $ */
/*
* Copyright (C) 1997-2002
* Sony Computer Science Laboratories Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | vadimsu/netbsd_dpdk_port | netbsd/altq/altq_blue.c | C | bsd-2-clause | 17,201 |
class Mapserver < Formula
desc "Publish spatial data and interactive mapping apps to the web"
homepage "http://mapserver.org/"
url "https://download.osgeo.org/mapserver/mapserver-7.0.7.tar.gz"
sha256 "37a8c3008328bae0fea05109d6d544a3284f756a23956e8a2f5ec10a6b5fef67"
revision 2
bottle do
cellar :any
... | battlemidget/homebrew-core | Formula/mapserver.rb | Ruby | bsd-2-clause | 3,556 |
// Original: src/os/path.go
//
// Copyright 2009 The Go Authors. All rights reserved.
// Portions Copyright 2016 Hiroshi Ioka. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redist... | hirochachacha/go-smb2 | all.go | GO | bsd-2-clause | 4,311 |
class AddOutputCountAndSensorCountToDevices < ActiveRecord::Migration
def change
add_column :devices, :output_count, :integer
add_column :devices, :sensor_count, :integer
end
end
| brewbit/brewbit-dashboard | db/migrate/20140417050045_add_output_count_and_sensor_count_to_devices.rb | Ruby | bsd-2-clause | 191 |
/* 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... | MihaelaStoica/xenadmin | XenAdmin/TabPages/BallooningPage.cs | C# | bsd-2-clause | 19,136 |
goog.provide('ol.layer.Group');
goog.require('ol');
goog.require('ol.asserts');
goog.require('ol.Collection');
goog.require('ol.Object');
goog.require('ol.events');
goog.require('ol.events.EventType');
goog.require('ol.extent');
goog.require('ol.layer.Base');
goog.require('ol.obj');
goog.require('ol.source.State');
... | wet-boew/openlayers-dist | src/ol/layer/group.js | JavaScript | bsd-2-clause | 6,217 |
# encoding: utf-8
require "json"
require "cgi"
require "uri"
require "timeout"
require "open3"
require ::File.expand_path('../sms', __FILE__)
module Watcher
extend self
SITES_DIR = ::File.expand_path('../../sites', __FILE__)
TMP_DIR = ::File.expand_path('../../tmp', __FILE__)
LOCKLIFE = 30*60 # 30 минут... | dancingbytes/sms_watcher | lib/watcher.rb | Ruby | bsd-2-clause | 7,223 |
# CONTRIBUTING
New contributors are always welcome! This document will guide you through the
process of setting up a development environment.
[LyricWiki](http://api.wikia.com/wiki/LyricWiki_API/REST) is currently the
only supported API.
[LYRICSnMUSIC](http://www.lyricsnmusic.com/api) used to be an option but it
appe... | ysim/songtext | CONTRIBUTING.md | Markdown | bsd-2-clause | 3,604 |
!< FURY test of [[qreal]].
module dBm_to_mW_converter
!-----------------------------------------------------------------------------------------------------------------------------------
!< Define the converter (user-supplied) from dBm to mW.
!----------------------------------------------------------------------------... | szaghi/FURY | src/tests/fury_test_qreal_conversions_complex.f90 | FORTRAN | bsd-2-clause | 9,539 |
/**
* LinkInfoType.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.elink;
/**
* LinkInfoType bean class
*/
... | milot-mirdita/GeMuDB | Vendor/NCBI eutils/src/gov/nih/nlm/ncbi/www/soap/eutils/elink/LinkInfoType.java | Java | bsd-2-clause | 42,843 |
---
title: "Operators"
section: "Expressions"
menu:
toc:
parent: "expressions"
weight: 30
toc: true
---
## Infix Operators
Infix operators take two operands and are written between those operands. Arithmetic and comparison operators are the most common:
```pony
1 + 2
a < b
```
Pony has pretty much the sam... | CausalityLtd/pony-tutorial | content/expressions/ops.md | Markdown | bsd-2-clause | 7,849 |
from django.db import models
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from jsonfield import JSONField
from model_utils import Choices
from model_utils.models import TimeStampedModel
from crate.web.packages.... | crateio/crate.web | crate/web/history/models.py | Python | bsd-2-clause | 2,810 |
/**
* Datasets module includes some standard toy datasets. In addition, this module also includes various
* random sample generators that can be used to build artificial datasets of controlled size and complexity.
* @module datasets
* @example <caption>Asynchronous loading</caption>
* var... | blazs/qminer | nodedoc/datasetsdoc.js | JavaScript | bsd-2-clause | 2,300 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'TtTrip.shape'
db.add_column(u'timetable_tttrip', 'shape',... | hasadna/OpenTrain | webserver/opentrain/timetable/migrations/0013_auto__add_field_tttrip_shape.py | Python | bsd-3-clause | 2,893 |
<!-- CUMA Initialize Form -->
<div class="modal fade" id="modal_cuma" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hi... | jmgalino/up-oams | application/views/faculty/cuma/form/initialize.php | PHP | bsd-3-clause | 1,634 |
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-16 00:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0005_queue_name'),
]
operations = [
... | falcaopetri/enqueuer-api | api/migrations/0006_auto_20161015_2113.py | Python | bsd-3-clause | 543 |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | peterlei/fboss | fboss/agent/PortStats.cpp | C++ | bsd-3-clause | 4,405 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
namespace ShowRenamer.Extensibility
{
/// <summary>
/// Simple plugin loader that will load visible classes that implement <see cref="IPlugin"/> or a subt... | ciarancrocker/ShowRenamer | ShowRenamer.Extensibility/PluginLoader.cs | C# | bsd-3-clause | 3,819 |
# Short help
def display_summary():
print("{:<13}{}".format( 'rm', "Removes a previously copied SCM Repository" ))
# DOCOPT command line definition
USAGE="""
Removes a previously 'copied' repository
===============================================================================
usage: evie [common-opts] rm [option... | johnttaylor/Outcast | bin/scm/rm.py | Python | bsd-3-clause | 1,756 |
<?php
class DiscussionsComment extends DataExtension
{
// Extend default member options
public function canView(Member $member)
{
if (!$member) {
$member = Member::currentUser();
}
// Check if this author is on the user's block list
if ($member->BlockedMembers()... | i-lateral/silverstripe-discussions | code/extensions/DiscussionsComment.php | PHP | bsd-3-clause | 3,055 |
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
# I'm running this on Mac. To install the tools:
# brew install dos2unix
# I installed clang-format by downloading binary build from http://llvm.org/releases/download.html
# and doing:
# cp ~/Downloads/clang+llvm-3.5.0-macosx-apple-darwin/bin/clang-format /usr... | vehar/velociraptor8 | scripts/clang-fmt.sh | Shell | bsd-3-clause | 510 |
#include "talk/base/macsocketserver.h"
#include "talk/base/common.h"
#include "talk/base/logging.h"
#include "talk/base/macasyncsocket.h"
#include "talk/base/macutils.h"
#include "talk/base/thread.h"
namespace talk_base {
///////////////////////////////////////////////////////////////////////////////
// MacBaseSoc... | healthkxy/libjingle-ios | talk/base/macsocketserver.cc | C++ | bsd-3-clause | 13,013 |
// Copyright (c) 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.
import {$} from 'chrome://resources/js/util.m.js';
import {GetSsrcFromReport, SsrcInfoManager} from './ssrc_info_manager.js';
/**
* Maintains the s... | nwjs/chromium.src | content/browser/webrtc/resources/stats_table.js | JavaScript | bsd-3-clause | 5,855 |
\defgroup mrpt_img_grp [mrpt-img]
Basic computer vision data structures and tools: bitmap images, canvas, color
maps, and pinhole camera models.
[TOC]
# Library mrpt-img
This C++ library is part of MRPT and can be installed in Debian-based systems
with:
sudo apt install libmrpt-img-dev
Read also [how to import ... | MRPT/mrpt | doc/source/doxygen-docs/lib_mrpt_img.md | Markdown | bsd-3-clause | 723 |
#include <string>
#include <iostream>
#include <istream>
#include <stdio.h> /* printf */
#include <cstring>
#include "Walls.h"
using namespace std;
int main (int argc, char* argv[]) {
bool visualise = false;
bool testMode = false;
for (int i = 1; i < argc; i++) {
if (strcmp(argv[i], "-v")... | hasherezade/mastercoder2014 | task4/main.cpp | C++ | bsd-3-clause | 926 |
// Copyright 2012 The Go 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 main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"io"
"time"
_ "crypto/sha256"
"golang.org/x/crypto/openpgp"
"golang.org/x/crypto/openpgp/ar... | totallylegitbiz/sshcrypt | openpgp.go | GO | bsd-3-clause | 3,338 |
import instanceCreate from './instanceCreate';
import instanceGet from './instanceGet';
import instanceCommitGet from './instanceCommitsGet';
export default {
init(app) {
app.post('/api/instances', instanceCreate);
app.get('/api/instances/:instanceId', instanceGet);
app.get('/api/:instanceId/commits/ta... | openAgile/CommitStream.Web | src/app/api/instances/es6/instancesController.js | JavaScript | bsd-3-clause | 370 |
# ------------------------------------------------------------------------
# Makefile: header file patches for the SpecC system
# ------------------------------------------------------------------------
#
# Modifications: (most recent first)
#
# RD 12/15/14 finalized scrc_V22
# SD 12/10/14 adjustments for modern Linux ... | samschauer/myscc | inc/patches/Makefile | Makefile | bsd-3-clause | 10,411 |
<?php
require_once "./vendor/autoload.php";
//\TheAomx\Nodes\Indentation::$indentationCharacter = " ";
//\TheAomx\Nodes\Indentation::$indentationDepth = 2;
//\TheAomx\Nodes\Indentation::$lineBreaker = "\n";
use \TheAomx\Nodes\HtmlNode as HtmlNode;
error_reporting(E_ALL);
ini_set('display_errors', 1);
class Abbrevia... | nplab/PR_SCTP_Testsuite | test-spec/index.php | PHP | bsd-3-clause | 17,222 |
<?php
namespace common\models\site;
use frontend\models\Categorynews;
use Yii;
use frontend\models\NewsComments;
/**
* This is the model class for table "news_block".
*
* @property integer $ID
* @property string $Slug
* @property string $Name
* @property string $About
* @property string $Photo
* @property st... | tatia-kom/gvd.my | common/models/site/NewsBlock.php | PHP | bsd-3-clause | 3,238 |
<?php
/**
* Locale data for 'es_PR'.
*
* This file is automatically generated by yiic cldr command.
*
* Copyright © 1991-2007 Unicode, Inc. All rights reserved.
* Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
*
* Copyright © 2008-2010 Yii Software LLC (http://www.yiiframework.com/... | hukumonline/yii | framework/i18n/data/es_pr.php | PHP | bsd-3-clause | 6,241 |
# -*- coding: utf-8 -*-
"""
DU task for ABP Table: doing jointly row BIESO and horizontal cuts
block2line edges do not cross another block.
The cut are based on baselines of text blocks.
- the labels of horizontal cuts are SIO (instead of SO in previous version)
Copyright Naver Labs... | Transkribus/TranskribusDU | TranskribusDU/tasks/TablePrototypes/DU_ABPTableRCut1SIO.py | Python | bsd-3-clause | 34,506 |
<?php
namespace WbBase\WbTrait\Service;
use WbBase\Service\ServiceInterface;
/**
* ServiceProxyTrait
*
* @package WbBase\WbTrait\Service
* @author Źmicier Hryškieivič <zmicier@webbison.com>
*/
trait ServiceProxyTrait
{
/**
* @var ServiceInterface
*/
protected $service;
/**
* Servic... | zmicier/WbBase | src/WbBase/WbTrait/Service/ServiceProxyTrait.php | PHP | bsd-3-clause | 716 |
package com.openxc.hardware.hud;
import java.io.IOException;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.Set;
import java.util.UUID;
import com.openxc.hardware.hud.BluetoothException;
import android.bluetooth... | openxc/simple-hud | android/driver/src/com/openxc/hardware/hud/DeviceManager.java | Java | bsd-3-clause | 5,430 |
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Localization;
using OrchardCore.Lucene.Drivers;
using OrchardCore.Navigation;
namespace OrchardCore.Lucene
{
public class AdminMenu : INavigationProvider
{
private readonly IStringLocalizer S;
public AdminMenu(IStringLocali... | xkproject/Orchard2 | src/OrchardCore.Modules/OrchardCore.Lucene/AdminMenu.cs | C# | bsd-3-clause | 2,000 |
/*
* Copyright 2016 Facebook, Inc.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law... | xytosis/reactivesocket-tck | src/main/java/io/reactivesocket/tck/Test.java | Java | bsd-3-clause | 924 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Customizing — Flask AppBuilder</title>
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" href="_stat... | rpiotti/Flask-AppBuilder | docs/_build/html/customizing.html | HTML | bsd-3-clause | 33,021 |
// Copyright (c) 2009 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_SYNC_NOTIFIER_BASE_SSL_ADAPTER_H_
#define CHROME_BROWSER_SYNC_NOTIFIER_BASE_SSL_ADAPTER_H_
namespace talk_base {
class AsyncSo... | rwatson/chromium-capsicum | chrome/browser/sync/notifier/base/ssl_adapter.h | C | bsd-3-clause | 967 |
package org.usfirst.frc4579.filters;
/*************************************************************************************
* AVERAGE FILTER
*
* Allows the caller to maintain a running average of sample values. Standard deviation
* is also available. The class is instantiated with the max number of sample... | RoboEagles/Robot2017 | src/org/usfirst/frc4579/filters/AverageFilter.java | Java | bsd-3-clause | 3,244 |
// 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.
#include "components/password_manager/core/browser/ui/bulk_leak_check_service_adapter.h"
#include <memory>
#include <tuple>
#include <vector>
#include "... | endlessm/chromium-browser | components/password_manager/core/browser/ui/bulk_leak_check_service_adapter_unittest.cc | C++ | bsd-3-clause | 12,088 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | statsmodels/statsmodels.github.io | v0.12.2/generated/statsmodels.discrete.count_model.ZeroInflatedGeneralizedPoisson.cdf.html | HTML | bsd-3-clause | 18,680 |
---------------------------------------------------------------------------------------------------
-- Description:
-- Check absence of HMI level resumption in case if:
-- - app has FULL level before unexpected disconnect
-- - app has been registered and switched to BACKGROUND just after unexpected disconnect
--
-- P... | smartdevicelink/sdl_atf_test_scripts | test_scripts/Resumption/HMI_Level/02_single_app_LIMITED_FULL/002_07_FULL_BACKGROUND_no_resumption.lua | Lua | bsd-3-clause | 1,698 |
package de.plushnikov.builder;
import lombok.Builder;
import lombok.ToString;
@Builder
@ToString
public class BuilderPredefined {
private String name;
private int age;
public static class FirstInnerClassDefined {
private boolean injectHere = false;
}
public static class BuilderPredefinedBuilder {
... | mplushnikov/lombok-intellij-plugin | test-manual/src/main/java/de/plushnikov/builder/BuilderPredefined.java | Java | bsd-3-clause | 712 |
body {
}
#tblData th
{
font-weight: bold;
}
.toast-top-center {
top: 80px;
}
.align-center {
text-align: center;
}
.bar-transparent {
border: 0px !important;
border-bottom-color: transparent !important;
background-image: none;
background-color:transparent !important;
border-bottom... | jeje87/DQMV | www/css/index.css | CSS | bsd-3-clause | 412 |
#ifndef __LULESH_TYPES_H__
#define __LULESH_TYPES_H__
#include <math.h>
// Allow flexibility for arithmetic representations
// Could also support fixed point and interval arithmetic types
typedef float real4;
typedef double real8;
typedef long double real10; // 10 bytes on x86
typedef int Index_t; // ar... | tmcdonell/accelerate-lulesh | reference/emerging/charm++/lulesh_types.h | C | bsd-3-clause | 3,229 |
//
// IDPAppDelegate.h
// OSX
//
// Created by Oleksa Korin on 10/1/15.
// Copyright (c) 2015 IDAP Group. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface IDPAppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@end
| idapgroup/IDPKit | Tests/OSX/OSX/IDPAppDelegate.h | C | bsd-3-clause | 274 |
// This is the base browser library for dy.js. It is all that is needed in the
// browser for modules written for dy.js to work.
//
// In development you'd probably also want to include the dy/ext/reload
// extension to add dynamic reloading functionality. However, in production
// this is the *only* code you need (pl... | dirk/dy.js | dy.js | JavaScript | bsd-3-clause | 1,289 |
#include "common.h"
#define BOOST_SYSTEM_SOURCE
#include <boost/system/error_code.hpp>
#include <boost/system/detail/error_code.ipp>
| ruslanch/memhook | src/memhook/boost_error_code.cpp | C++ | bsd-3-clause | 134 |
//
// AppDelegate.h
// GiottoDataViewer
//
// Created by Eiji Hayashi on 3/20/16.
// Copyright © 2016 Eiji Hayashi. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "GVLocationManager.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property ... | IoT-Expedition/GiottoDataViewer | iOSApp/GiottoDataViewer/GiottoDataViewer/AppDelegate.h | C | bsd-3-clause | 385 |
//
// CachetHQIncidents.h
// CachetHQIncidents
//
// Created by Yoann Gini on 12/09/2018.
// Copyright © 2018 Yoann Gini (Open Source Project). All rights reserved.
//
#import <HITDevKit/HITDevKit.h>
@interface CachetHQIncidents : HITPeriodicPlugin
@end
| ygini/Hello-IT | src/Plugins/CachetHQ/CachetHQIncidents/CachetHQIncidents.h | C | bsd-3-clause | 262 |
package spec.concordion.results.exception;
import java.util.ArrayList;
import java.util.List;
import org.concordion.api.Element;
import org.concordion.integration.junit3.ConcordionTestCase;
import org.concordion.internal.command.ThrowableCaughtEvent;
import org.concordion.internal.listener.ThrowableRenderer;
... | pobrelkey/xcordion | xcordion/spec/spec/concordion/results/exception/ExceptionTest.java | Java | bsd-3-clause | 1,438 |
<?php
/**
* Created by PhpStorm.
* User: veysman
* Date: 01.02.15
* Time: 15:55
*/
namespace app\components\widgets;
use Yii;
use yii\base\Widget;
use app\components\EditURL;
use app\components\helper\TagHelper;
use yii\helpers\Url;
class OtherPostWidget extends ListGroupWidget
{
public $PostList=[];
p... | roma-glushko/iblog2 | components/widgets/OtherPostWidget.php | PHP | bsd-3-clause | 970 |
#!/usr/bin/env python
import matplotlib
matplotlib.use('Agg')
import numpy as np # noqa
import pandas as pd # noqa
import pandas_ml as pdml # noqa
import pandas_ml.util.testing as tm # noqa
import sklearn.datasets as data... | sinhrks/pandas-ml | pandas_ml/xgboost/test/test_base.py | Python | bsd-3-clause | 4,415 |
# -------------------------------------------------------------------------------------------------
# Copyright (c) 2010-2020 zsh-syntax-highlighting contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following condi... | x-way/zsh-syntax-highlighting | highlighters/main/main-highlighter.zsh | Shell | bsd-3-clause | 56,819 |
// Copyright 2015 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 <fcntl.h>
#include <linux/videodev2.h>
#include <poll.h>
#include <sys/eventfd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include "base/bi... | fujunwei/chromium-crosswalk | content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc | C++ | bsd-3-clause | 88,604 |
#main{
padding-left:30px;
}
| yhong/nf_hack | resources/css/default/main.css | CSS | bsd-3-clause | 34 |
package org.consec.oauth2.authzserver.common;
public class Constants {
public static final String SESSION_PARAM_OWNER_UUID = "owner_uuid";
public static final String SESSION_PARAM_AUTHENTICATED = "authenticated";
}
| consec/ConSec | oauth2/oauth2-authz-server/src/main/java/org/consec/oauth2/authzserver/common/Constants.java | Java | bsd-3-clause | 224 |
# Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import itertools
import numpy as np
import pytest
from coremltools.converters.mil.mil import Builder... | apple/coremltools | coremltools/converters/mil/mil/passes/test_noop_elimination.py | Python | bsd-3-clause | 13,225 |
---
layout: organization
category: local
title: Casabe House
impact_area: The Elderly
keywords:
location_services:
location_offices:
website: www.nycservice.org/organizations/893
description:
mission: |
A senior citizen’s residence at 143 East 120th Street in East Harlem
cash_grants:
grants:
service_opp:
se... | flipside-org/penny-harvest | _posts/organizations/2015-01-12-O228.md | Markdown | bsd-3-clause | 637 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_fgets_square_05.c
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-05.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fgets Read data from the console using fgets()
* Go... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s03/CWE190_Integer_Overflow__int_fgets_square_05.c | C | bsd-3-clause | 6,233 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | DweebsUnited/CodeMonkey | resources/hemesh/ref/html/classwblut_1_1hemesh_1_1_h_e_t___mesh_op_1_1_h_e_t___intersection_result-members.html | HTML | bsd-3-clause | 6,761 |
* Hackage: <http://hackage.haskell.org/package/linearEqSolver>
* GitHub: <http://github.com/LeventErkok/linearEqSolver>
* Latest Hackage released version: 2.1
### Version 2.1, 2019-5-13
* Update to compile with more recent versions of SBV. Thanks to
Colin McKibben for reporting the breakage.
### Version 2.0, ... | LeventErkok/linearEqSolver | CHANGES.md | Markdown | bsd-3-clause | 1,171 |
import logging
import os
# URL to clone product_details JSON files from.
# Include trailing slash.
PROD_DETAILS_URL = 'http://svn.mozilla.org/libs/product-details/json/'
# Target dir to drop JSON files into (must be writable)
PROD_DETAILS_DIR = os.path.join(os.path.dirname(__file__), 'json')
# log level.
LOG_LEVEL ... | pmclanahan/django-mozilla-product-details | product_details/settings_defaults.py | Python | bsd-3-clause | 335 |
/*
* 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.
*/
package org.plasmarobotics.jim.sensors;
import edu.wpi.first.wpilibj.AnalogChannel;
/**
*This class reads input from a supersonic r... | dumbnut7410/Frobo | src/org/plasmarobotics/jim/sensors/SonicRange.java | Java | bsd-3-clause | 1,803 |
// Copyright 2014 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.
package org.chromium.cronet_sample_apk;
import android.util.Log;
/**
* Cronet Library Loader.
*/
public class LibraryLoader {
private static final... | patrickm/chromium.src | net/cronet/android/sample/src/org/chromium/cronet_sample_apk/LibraryLoader.java | Java | bsd-3-clause | 653 |
/* image replacement */
.graphic, #prevBtn, #nextBtn, #slider1prev, #slider1next{
margin:0;
padding:0;
display:block;
overflow:hidden;
text-indent:-8000px;
}
/* Easy Slider */
#slider ul, #slider li,
#slider2 ul, #slider2 li{
margin:0;
padding:0;
lis... | irvingoliveira/SIGEPROC | public/css/screen.css | CSS | bsd-3-clause | 1,687 |
"""
Luminous Efficiency Functions Spectral Distributions
====================================================
Defines the luminous efficiency functions computation related objects.
References
----------
- :cite:`Wikipedia2005d` : Wikipedia. (2005). Mesopic weighting function.
Retrieved June 20, 2014, from
h... | colour-science/colour | colour/colorimetry/lefs.py | Python | bsd-3-clause | 30,125 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
class IsnLaporanPerkhidmatanBiomekanikAtlet extends Model
{
public $tarikh_dari;
public $tarikh_hingga;
public $format;
public function rules()
{
return ... | hung101/kbs | frontend/models/IsnLaporanPerkhidmatanBiomekanikAtlet.php | PHP | bsd-3-clause | 902 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-}
module Lambda.DataType.SExpr where
import DeepControl.Applicative
import DeepControl.Monad
import Lambda.DataType.Common
import Lambda.DataType.PatternMatch (PM)
import qualified Lambda.DataType.PatternMatch as PM
import Lambda.DataType.Type (Type((:->)))
i... | ocean0yohsuke/Simply-Typed-Lambda | src/Lambda/DataType/SExpr.hs | Haskell | bsd-3-clause | 6,954 |
/**
*============================================================================
* The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC,
* and Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved BSD 3-Clau... | NCIP/cagrid-portal | cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/discovery/details/AbstractDiscoverySelectDetailsController.java | Java | bsd-3-clause | 2,042 |
// 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 "net/quic/test_tools/quic_test_utils.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "net/quic/cr... | anirudhSK/chromium | net/quic/test_tools/quic_test_utils.cc | C++ | bsd-3-clause | 17,601 |
/*-
* Copyright (C) 2012-2015 Intel Corporation
* 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... | jrobhoward/SCADAbase | sys/dev/nvme/nvme_ctrlr.c | C | bsd-3-clause | 31,739 |
<?php
namespace backend\controllers;
use Yii;
use common\models\User;
use common\models\Post;
use common\models\PostSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\web\UploadedFile;
use common\models\Asset;
/**
* PostController implements the CRUD actions for ... | pro100olgert/lm | backend/controllers/PostController.php | PHP | bsd-3-clause | 7,197 |
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>S5P_L2_CLOUD_CAL — HARP 1.14 documentation</title>
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />... | stcorp/harp | doc/html/ingestions/S5P_L2_CLOUD_CAL.html | HTML | bsd-3-clause | 26,706 |
package jme3_test;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
public class HelloJME3 extends SimpleApplication {
public static void main(String[] args){... | jarek-przygodzki/jME3-OSGi | test/jME3 Test/src/jme3_test/HelloJME3.java | Java | bsd-3-clause | 756 |
import qt
class CollapsibleMultilineText(qt.QTextEdit):
"""Text field that expands when it gets the focus and remain collapsed otherwise"""
def __init__(self):
super(CollapsibleMultilineText, self).__init__()
self.minHeight = 20
self.maxHeight = 50
self.setFixedHeight(self.minHe... | acil-bwh/SlicerCIP | Scripted/CIP_/CIP/ui/CollapsibleMultilineText.py | Python | bsd-3-clause | 595 |
<?php
namespace PragmaRX\Health\Checkers;
use Illuminate\Filesystem\Filesystem;
use PragmaRX\Health\Support\Result;
class Writable extends Base
{
protected $filesystem;
/**
* Check resource.
*
* @return Result
*/
public function check()
{
foreach ($this->target->paths as ... | antonioribeiro/health | src/Checkers/Writable.php | PHP | bsd-3-clause | 815 |
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#.rst:
# CPack
# -----
#
# Build binary and source package installers.
#
# Variables common to all CPack generators
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#
# Th... | dava/dava.engine | Bin/CMakeWin32/share/cmake-3.9/Modules/CPack.cmake | CMake | bsd-3-clause | 27,010 |
/**
* Copyright (c) 2011-2012 Optimax Software Ltd.
* 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,
* thi... | elasticinbox/elasticinbox | modules/lmtp/src/main/java/com/elasticinbox/lmtp/filter/SpamMailFilter.java | Java | bsd-3-clause | 2,502 |
// Copyright 2015 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 | cobalt/bindings/testing/constructor_with_arguments_interface.h | C | bsd-3-clause | 1,571 |
// Copyright (c) 2021, Viktor Larsson
// 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 c... | vlarsson/PoseLib | PoseLib/robust/jacobian_impl.h | C | bsd-3-clause | 59,820 |
# encoding: UTF-8
require 'sequel'
require 'fileutils'
require 'uuidtools'
require_relative './user'
require_relative './table'
require_relative './log'
require_relative './visualization/member'
require_relative './table_registrar'
require_relative './quota_checker'
require_relative '../../lib/cartodb/errors'
require_r... | raquel-ucl/cartodb | app/models/data_import.rb | Ruby | bsd-3-clause | 28,396 |
var logging = require('logging');
var Events = function(options) {
options = options || {};
};
Events.prototype.on = function(event, fn) {
var _this = this;
_this._events = _this._events || {};
_this._events[event] = this._events[event] || [];
_this._events[event].push(fn);
};
Events.prototype.off = function... | Harvard-ATG/wordmapper | src/js/events.js | JavaScript | bsd-3-clause | 1,563 |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/3
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/RC/SetInteriorVehicleData.md
-- Item: Use Case 1: Mai... | smartdevicelink/sdl_atf_test_scripts | test_scripts/RC/CLIMATE_RADIO/SetInteriorVehicleData/013_GENERIC_ERROR_in_case_HMI_did_not_respond.lua | Lua | bsd-3-clause | 2,054 |
/*================================================================================
Copyright (c) 2009 VMware, 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 ... | mikem2005/vijava | src/com/vmware/vim25/VmMigratedEvent.java | Java | bsd-3-clause | 1,981 |
import hashlib
import tempfile
import unittest
import shutil
import os
import sys
from testfixtures import LogCapture
from scrapy.dupefilters import RFPDupeFilter
from scrapy.http import Request
from scrapy.core.scheduler import Scheduler
from scrapy.utils.python import to_bytes
from scrapy.utils.job import job_dir
fr... | eLRuLL/scrapy | tests/test_dupefilters.py | Python | bsd-3-clause | 7,297 |
<!DOCTYPE html>
<html lang="pl">
<head>
<!-- Required meta tags always come first -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://c... | ksamborski/tcg | demo/questions/plazy4.html | HTML | bsd-3-clause | 723 |
Instructions for using git-hooks to automatically update FloPy `build` in `version.py`
-----------------------------------------------
## Update files
1. Delete `pre-commit.sample` file in `.git/hooks`.
2. Copy `pre-commit.sh` in root directory to `.git/hooks` directory.
3. Remove `.sh` extension from `pre-commit.sh`... | brclark-usgs/flopy | docs/enable_githooks.md | Markdown | bsd-3-clause | 1,048 |
package com.ericsson.research.trap.utils;
/*
* ##_BEGIN_LICENSE_##
* Transport Abstraction Package (trap)
* ----------
* Copyright (C) 2014 Ericsson AB
* ----------
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
... | meledin/trap | trap-utils-api/src/main/java/com/ericsson/research/trap/utils/StringUtil.java | Java | bsd-3-clause | 6,145 |
# -*- coding: utf-8 -*-
"""Provides vertical object."""
from __future__ import absolute_import
from ..entity import Entity
class Vertical(Entity):
"""docstring for Vertical."""
collection = 'verticals'
resource = 'vertical'
_relations = {
'advertiser',
}
_pull = {
'id': int,
... | Cawb07/t1-python | terminalone/models/vertical.py | Python | bsd-3-clause | 596 |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... | PatidarWeb/zf2 | tests/ZendTest/Cache/Pattern/ClassCacheTest.php | PHP | bsd-3-clause | 3,557 |
describe("module:ng.directive:ngBindTemplate",function(){var a;beforeEach(function(){a=browser.rootEl,browser.get("./examples/example-example14/index-jquery.html")}),it("should check ng-bind",function(){var a=element(by.binding("salutation")),b=element(by.model("salutation")),c=element(by.model("name"));expect(a.getTex... | infrabel/docs-gnap | node_modules/gnap-theme-gnap-angular/js/angular/docs/ptore2e/example-example14/jquery_test.min.js | JavaScript | bsd-3-clause | 555 |
<!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>statsmodels.sandbox.sysreg.SUR — statsmodels... | statsmodels/statsmodels.github.io | 0.8.0/generated/statsmodels.sandbox.sysreg.SUR.html | HTML | bsd-3-clause | 13,006 |
package org.daylightingsociety.wherearetheeyes;
import java.util.Date;
import java.util.HashMap;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;
import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.maps.MapView;
/**
... | DaylightingSociety/WhereAreTheEyes | Android/app/src/main/java/org/daylightingsociety/wherearetheeyes/GPS.java | Java | bsd-3-clause | 3,050 |
/*global FormplayerFrontend */
FormplayerFrontend.module("Layout.Views", function (Views, FormplayerFrontend, Backbone, Marionette) {
Views.ProgressView = Marionette.ItemView.extend({
template: "#progress-view-template",
initialize: function(options) {
this.progressMessage = options.p... | qedsoftware/commcare-hq | corehq/apps/cloudcare/static/cloudcare/js/formplayer/layout/views/progress_bar.js | JavaScript | bsd-3-clause | 1,052 |
# job to periodically clear and refresh the cache
class OpenbisEndpointCacheRefreshJob < ApplicationJob
queue_with_priority 3
def perform(endpoint)
return unless Seek::Config.openbis_enabled
return unless endpoint&.persisted?
endpoint.refresh_metadata
end
# jobs created if due, triggered by the sc... | seek4science/seek | app/jobs/openbis_endpoint_cache_refresh_job.rb | Ruby | bsd-3-clause | 542 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mne.time_frequency.cwt_morlet — MNE 0.12.0 documentation</title>
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link... | mne-tools/mne-tools.github.io | 0.12/generated/mne.time_frequency.cwt_morlet.html | HTML | bsd-3-clause | 11,766 |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message ... | LeonidLyalin/vova | common/humhub/protected/humhub/modules/user/messages/pt_br/views_account_changeEmailValidate.php | PHP | bsd-3-clause | 815 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.