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 |
|---|---|---|---|---|---|
FILE(REMOVE_RECURSE
"CMakeFiles/testRot3Optimization.dir/testRot3Optimization.cpp.o"
"testRot3Optimization.pdb"
"testRot3Optimization"
)
# Per-language clean rules from dependency scanning.
FOREACH(lang CXX)
INCLUDE(CMakeFiles/testRot3Optimization.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)
| devbharat/gtsam | build/tests/CMakeFiles/testRot3Optimization.dir/cmake_clean.cmake | CMake | bsd-3-clause | 314 |
# Copyright (c) 2015, BROCADE COMMUNICATIONS 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:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this li... | BRCDcomm/perlbsc | Brocade-BSC/lib/Brocade/BSC/Node.pm | Perl | bsd-3-clause | 4,002 |
<?php
/**
* Created by PhpStorm.
* User: sergey
* Date: 21.01.17
* Time: 17:26
*/
namespace app\models;
use yii\db\ActiveRecord;
class Category extends ActiveRecord
{
public static function tableName()
{
return 'category';
}
public function getProducts()
{
return $this->hasMa... | sergeygusevrepositories/yii2_shop | models/Category.php | PHP | bsd-3-clause | 378 |
/*
* 2007 2013 Copyright Northwestern University
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details.
*/
#ifndef _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA_CNPPD_ST_NT
#define _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA... | NCIP/annotation-and-image-markup | AIMToolkit_v4.0.0_rv44/source/AIMLib/AIMXML/type_iso.CNPPD_ST_NT.h | C | bsd-3-clause | 1,091 |
# -*-coding:Utf-8 -*
# Copyright (c) 2012 NOEL-BARON Léo
# 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... | stormi/tsunami | src/primaires/salle/commandes/chercherbois/__init__.py | Python | bsd-3-clause | 5,680 |
// 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.
/**
* @fileoverview User pod row implementation.
*/
cr.define('login', function() {
/**
* Pod width. 170px Pod + 10px padding + 10px margin on... | zcbenz/cefode-chromium | chrome/browser/resources/chromeos/login/user_pod_row.js | JavaScript | bsd-3-clause | 37,808 |
/*
* 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 COSE;
import com.upokecenter.cbor.CBORObject;
import com.upokecenter.cbor.CBORType;
import java.util.ArrayList;
import java.ut... | cose-wg/COSE-JAVA | src/main/java/COSE/Signer.java | Java | bsd-3-clause | 9,626 |
#include "wag.h"
#include "jsonutil.h"
RateModel wagModel() {
RateModel m;
ParsedJson pj (wagModelText);
m.read (pj.value);
return m;
}
const char* wagModelText =
"{\n"
" \"insrate\": 0.01,\n"
" \"delrate\": 0.01,\n"
" \"insextprob\": 0.66,\n"
" \"delextprob\": 0.66,\n"
" \"alphabet\": \"arndcqeghilkmfps... | evoldoers/historian | src/wag.cpp | C++ | bsd-3-clause | 16,124 |
<?php
/*
* This file is part of the HRis Software package.
*
* NOTICE OF LICENSE
*
* Licensed under the 3-clause BSD License.
*
* This source file is subject to the 3-clause BSD License that is
* bundled with this package in the LICENSE file.
*
* @version alpha
*
* @author Bertrand Kintanar <bertran... | bkintanar/HRis | app/Api/Requests/UserRequest.php | PHP | bsd-3-clause | 1,088 |
;; R3000 and TX39 pipeline description.
;; Copyright (C) 2004, 2005 Free Software Foundation, Inc.
;;
;; This file is part of GCC.
;; GCC is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published
;; by the Free Software Foundation; either version 2, ... | avaitla/Haskell-to-C---Bridge | gccxml/GCC/gcc/config/mips/3000.md | Markdown | bsd-3-clause | 2,266 |
## Percona Clustercheck ##
Script to make a proxy (ie HAProxy) capable of monitoring Percona XtraDB Cluster nodes properly.
## Usage ##
Below is a sample configuration for HAProxy on the client. The point of this is that the application will be able to connect to localhost port 3307, so although we are using Percona ... | boomfish/percona-clustercheck | README.md | Markdown | bsd-3-clause | 4,801 |
from __future__ import absolute_import, unicode_literals
import pickle
from io import StringIO, BytesIO
from kombu import version_info_t
from kombu import utils
from kombu.five import python_2_unicode_compatible
from kombu.utils.text import version_string_as_tuple
from kombu.tests.case import Case, Mock, patch, moc... | Elastica/kombu | kombu/tests/utils/test_utils.py | Python | bsd-3-clause | 10,301 |
<?php
Yii::setAlias('@common', dirname(__DIR__));
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
//dependency injection container
Yii::$container->set(\common\serv... | VictorFursa/millionaire | common/config/bootstrap.php | PHP | bsd-3-clause | 675 |
var should = require('should');
var path = require('path');
var _ = require('underscore');
var Graft = require('../server');
var utils = require('./utils');
var sinon = require('sinon');
var testPort = 8924;
function setupSpies() {
sinon.spy(Graft.Server, 'trigger');
}
function restoreSpi... | ONCHoldings/graft.js | test/210System.running.js | JavaScript | bsd-3-clause | 2,169 |
/*
* Copyright (c) 1982, 1986, 1993, 1994
* The Regents of the University of California. 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 ret... | antonycourtney/anp | generic/sys/uio.h | C | bsd-3-clause | 2,887 |
// vim:ts=8:expandtab
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#ifdef LINUX
#include <iwlib.h>
#endif
#include "i3status.h"
static const char *get_wireless_essid(const char *interface) {
static char part[512];
#ifdef LINUX
int skfd;
if ... | stettberger/i3status | src/print_wireless_info.c | C | bsd-3-clause | 3,025 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doc... | liuqx315/Sundials | doc/guide/Makefile | Makefile | bsd-3-clause | 5,573 |
nrfutil
==========
nrfutil is a Python package that includes the nrfutil command line utility and the nordicsemi library.
About
-----
The library is written for Python 2.7.
Prerequisites
-------------
To install nrfutil the following prerequisites must be satisfied:
* Python 2.7 (2.7.6 or newer, not Python 3)
* pip ... | strobo-inc/pc-nrfutil | README.md | Markdown | bsd-3-clause | 1,194 |
import React, { Component } from 'react';
import { Text, View, ScrollView } from 'react-native';
import Button from 'react-native-button'
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import {
Card,
CardImage,
CardTitle,
Card... | ronanamsterdam/squaredcoffee | application/components/shared/checkoutWebView/index.js | JavaScript | bsd-3-clause | 6,443 |
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
describe 'size function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
it 'single string size' do
pp = <<-EOS
$a = 'discombobulate'
$o = size($a)
notice(inline_template('... | renandanton/codeorders | puphpet/puppet/modules/stdlib/spec/acceptance/size_spec.rb | Ruby | bsd-3-clause | 1,478 |
#!/usr/bin/env python
# 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.
'''Unit tests for the admin template gatherer.'''
import os
import sys
if __name__ == '__main__':
sys.path.append(os.path.join(o... | JoKaWare/WTL-DUI | tools/grit/grit/gather/admin_template_unittest.py | Python | bsd-3-clause | 3,990 |
<?php
namespace Apps\Common\Models;
/**
* 美容院V2.0扩展属性Model
* @author chenxiaolin
* @date 2016年1月19日
* @version 2.0.0
* @copyright Copyright 2016 meelier.com
*/
class BeautyParlorAttr extends \PhalconPlus\Database\Model
{
/**
*
* @var integer
*/
public $a... | fu-tao/meelier_c2.0 | common/models/BeautyParlorAttr.php | PHP | bsd-3-clause | 2,369 |
# This code is so you can run the samples without installing the package
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
#
testinfo = "s, t 3, s, t 6.1, s, q"
tags = "MoveBy"
import cocos
from cocos.director import director
from cocos.actions import MoveBy
from cocos.sprite imp... | eevee/cocos2d-mirror | test/test_moveby.py | Python | bsd-3-clause | 867 |
; The CHK macro causes a checksum to be computed and deposited at the current location.
; The starting point of the checksum calculation is indicated as an argument.
;
; The checksum is calculated as the simple arithmetic sum of all bytes starting
; at the provided address up to but not including the address of the CHK... | z00m128/sjasmplus | tests/macro_examples/sum_checksum.asm | Assembly | bsd-3-clause | 1,989 |
/*
* discursive_debug.cpp
*
* Created on: Aug 19, 2010
* Author: Hunter Davis
*/
#include "./discursive_print.h"
#include "../main/configuration_agent.h"
extern ConfigurationAgent configAgent;
// -------------------------------------------------------------------------
// API :: DiscursivePrint
// PURPOSE ... | huntergdavis/Source-Tree-Visualizer | src/dis/stv/system/discursive_print.cpp | C++ | bsd-3-clause | 1,363 |
/*
* Licensed under BSD http://en.wikipedia.org/wiki/BSD_License
* Copyright (c) 2010, Duponchel David
* 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... | dduponchel/GraouPack | js/src/CompatibilityCheck.js | JavaScript | bsd-3-clause | 2,679 |
/* $OpenBSD: rsa_saos.c,v 1.23 2017/05/02 03:59:45 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* Thi... | GaloisInc/hacrypto | src/C/libressl/libressl-2.7.2/crypto/rsa/rsa_saos.c | C | bsd-3-clause | 4,999 |
# 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.
import subprocess
from devtoolslib.shell import Shell
from devtoolslib import http_server
class LinuxShell(Shell):
"""Wrapper around Mojo shell running ... | collinjackson/mojo | mojo/devtools/common/devtoolslib/linux_shell.py | Python | bsd-3-clause | 2,385 |
var allTestFiles = [];
var TEST_REGEXP = /\.spec\.js$/i;
var pathToModule = function(path) {
return path.replace(/^\/base\//, '').replace(/\.js$/, '');
};
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module names.
allTestFiles.p... | effektif/backbone-partialput | test/test-main.js | JavaScript | bsd-3-clause | 904 |
<?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/space/messages/tr/widgets_SpaceAdminMenuWidget.php | PHP | bsd-3-clause | 1,111 |
# 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.
DEPS = [
'recipe_engine/buildbucket',
'recipe_engine/context',
'recipe_engine/path',
'recipe_engine/platform',
'recipe_engine/properties',
'recip... | endlessm/chromium-browser | third_party/depot_tools/recipes/recipe_modules/git/examples/full.py | Python | bsd-3-clause | 5,942 |
// 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 "ash/shell/content/client/shell_browser_main_parts.h"
#include <memory>
#include <utility>
#include "ash/display/privacy_screen_controller.... | endlessm/chromium-browser | ash/shell/content/client/shell_browser_main_parts.cc | C++ | bsd-3-clause | 5,973 |
#!/usr/bin/env node
var fs = require("fs"),
_ = require("underscore"),
express = require("express"),
redis = require("redis"),
mongo = require("mongoskin"),
connect_redis = require("connect-redis")(express),
everyauth = require("everyauth");
shortid = require("shortid"),
mediainfo = req... | deoxxa/riffmint | app.js | JavaScript | bsd-3-clause | 5,087 |
/*
*
* Copyright 2015, Google 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 condi... | meisterpeeps/grpc | src/compiler/csharp_generator.cc | C++ | bsd-3-clause | 18,320 |
// Copyright (c) 2009, Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#ifdef _MSC_VER
# pragma once
#endif
#ifndef COMMANDARGHANDLER_H
#define COMMANDARGHANDLER_H
namespace QuickFAST
{
/// @brief Abstract interface to be implemented by objects
/// that handle ... | alepharchives/quickfast | src/Examples/Examples/CommandArgHandler.h | C | bsd-3-clause | 1,511 |
/*
* Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
* Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.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. Redist... | kapdop/android_external_strace | linux/powerpc64/syscallent.h | C | bsd-3-clause | 20,431 |
/*
* Copyright (C) 2012 Company 100, 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condi... | klim-iv/phantomjs-qt5 | src/webkit/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedCustomFilterProgram.h | C | bsd-3-clause | 3,055 |
from django.test import TestCase
import time
from .models import SimpleTree, MPTTTree, TBMP, TBNS
def timeit(method):
""" Measure time of method's execution.
"""
def timed(*args, **kw):
ts = time.time()
result = method(*args, **kw)
te = time.time()
print '\n%r: %2.2f sec'... | klen/simpletree | benchmark/main/tests.py | Python | bsd-3-clause | 3,596 |
$(document).ready(function () {
function update_cart(pro_id,type)
{
$.ajax({
url: '/fontend/cart/delete-cart.html',
cache: false,
type: 'post',
data: {product_id: pro_id,type:type},
success: function (result)
{
// ... | thanhdv193/cuteshop | web/js/product/process_cart.js | JavaScript | bsd-3-clause | 2,606 |
<?php
echo ' <script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-download fade">
{% if (file.error) { %}
<td></td>
<td class="name"><span>{%=file.name%}</span></td>
<td class="size"><span>{%=o.formatFileSize(file.s... | idmteam/oc-big | bin/template_download.php | PHP | bsd-3-clause | 1,465 |
<?php
use yii\helpers\Html;
use kartik\widgets\ActiveForm;
use kartik\widgets\DateTimePicker;
?>
<h2><?= $type ?></h2>
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'money')->textInput() ?>
<?= $form->field($model, 'create_time')->widget('kartik\widgets\DateTimePicker') ?>
<?= $form->field($model, ... | jh27408079/magenet | frontend/modules/fund/views/borrow/refundout.php | PHP | bsd-3-clause | 789 |
package org.irods.jargon.extensions.searchplugin.implementation;
import java.util.concurrent.Callable;
import org.irods.jargon.extensions.searchplugin.SearchIndexInventory;
import org.irods.jargon.extensions.searchplugin.SearchPluginRegistrationConfig;
import org.irods.jargon.extensions.searchplugin.model.SearchAttri... | DICE-UNC/jargon-extensions-if | src/main/java/org/irods/jargon/extensions/searchplugin/implementation/SchemaAttributesCallable.java | Java | bsd-3-clause | 2,594 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-08-28 17:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
(... | WebCampZg/conference-web | voting/migrations/0003_votetoken.py | Python | bsd-3-clause | 880 |
// Copyright 2013 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.
// +build ignore
// This program generates internet protocol constatns and tables by
// reading IANA protocol registries.
//
// Usage of this program:
// go r... | andrewzeneski/go.net | ipv4/gen.go | GO | bsd-3-clause | 5,632 |
-- | Helper functions for dealing with text values
module Language.Terraform.Util.Text(
template,
show
) where
import Prelude hiding(show)
import qualified Prelude(show)
import qualified Data.Text as T
show :: (Show a) => a -> T.Text
show = T.pack . Prelude.show
-- | `template src substs` will replace all occu... | timbod7/terraform-hs | src/Language/Terraform/Util/Text.hs | Haskell | bsd-3-clause | 547 |
import uuid
import os
import shutil
import urlparse
import re
import hashlib
from lxml import html
from PIL import Image, ImageFile
from django.conf import settings
import views
ImageFile.MAXBLOCKS = 10000000
def match_or_none(string, rx):
"""
Tries to match a regular expression and returns an integer if it... | ZG-Tennis/django-ckeditor | ckeditor/utils.py | Python | bsd-3-clause | 8,404 |
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 300;
src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url('../fonts/sourcesanspro300.woff') format('woff');
}
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
src: local('So... | jaspermeijaard/Event-Intranet | public/css/beamer.css | CSS | bsd-3-clause | 5,285 |
// Copyright 2013 Traceur Authors.
//
// 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 applicable law or agreed ... | google/FakeMaker | extension/third_party/traceur-compiler/src/runtime/LoaderHooks.js | JavaScript | bsd-3-clause | 6,627 |
<?php
namespace frontend\modules\vendor\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use frontend\modules\vendor\models\VendorInfo;
/**
* VendorInfoSearch represents the model behind the search form about `frontend\modules\vendor\models\VendorInfo`.
*/
class VendorInfoSearch extends Vendor... | ewwgit/weavesme | frontend/modules/vendor/models/VendorInfoSearch.php | PHP | bsd-3-clause | 2,385 |
Deface::Override.new( virtual_path: 'spree/admin/shared/_order_submenu',
name: 'order_history_menu',
insert_bottom: "[data-hook='admin_order_tabs']",
text: "
<li <%== 'class=\"active\"' if current == 'Order History' %>><%= link_to... | Sinetheta/solidus_papertrail | app/overrides/add_order_history_to_order_menu.rb | Ruby | bsd-3-clause | 448 |
/*****************************************************************************
* Copyright (c) 2011, Marcello Bonfe'
* ENDIF - ENgineering Department In Ferrara,
* University of Ferrara.
* All rights rese... | Roberto5/rawbot | include/InputCapture.h | C | bsd-3-clause | 4,075 |
px4_add_board(
PLATFORM nuttx
VENDOR px4
MODEL fmu-v5x
LABEL default
TOOLCHAIN arm-none-eabi
ARCHITECTURE cortex-m7
ROMFSROOT px4fmu_common
IO px4_io-v2_default
TESTING
UAVCAN_INTERFACES 2
SERIAL_PORTS
GPS1:/dev/ttyS0
TEL1:/dev/ttyS6
TEL2:/dev/ttyS4
TEL3:/dev/ttyS2
GPS2:/dev/ttyS0
DRIVERS
adc... | dagar/Firmware | boards/px4/fmu-v5x/default.cmake | CMake | bsd-3-clause | 2,230 |
<?php
/**
* PhoneNormalizer
*
* Copyright (c) 2015, Dmitry Mamontov <d.slonyara@gmail.com>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must ... | dmamontov/phone-normalizer | lib/DmitryMamontov/PhoneNormalizer/Object/PhoneObject.php | PHP | bsd-3-clause | 7,400 |
import React from 'react';
import intersection from 'lodash/intersection';
import uniq from 'lodash/uniq';
import xor from 'lodash/xor';
import BulkNotice from './bulkNotice';
type RenderProps = {
/**
* Are all rows on current page selected?
*/
isPageSelected: boolean;
/**
* Callback for toggling singl... | beeftornado/sentry | src/sentry/static/sentry/app/components/bulkController/index.tsx | TypeScript | bsd-3-clause | 3,491 |
//! Defines some usefull constants
/// Properties names constant for HTTP headers
pub mod properties {
pub const CONTENT_LENGTH: &'static str = "Content-Length";
pub const CONTENT_TYPE: &'static str = "Content-Type";
pub const ACCEPT: &'static str = "Accept";
pub const DATE: &'static str = "Date";
pub con... | phsym/http-rs | src/http/constants.rs | Rust | bsd-3-clause | 654 |
<?php
/**
* Check if input is a number
*
* @author Sitebase (Wim Mostmans)
* @copyright Copyright (c) 2011, Sitebase (http://www.sitebase.be)
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*/
class WpFramework_Validators_Integer extends WpFramework_Validators_Abstract
{
... | Sitebase/wpframework | library/wp-framework/Validators/Integer.php | PHP | bsd-3-clause | 988 |
See also [releases](https://github.com/NLog/NLog/releases) and [milestones](https://github.com/NLog/NLog/milestones).
Date format: (year/month/day)
## Change Log
### v5.0-RC2 (2022/01/19)
#### Features
- [#4761](https://github.com/NLog/NLog/pull/4761) LogFactory fluent Setup with AddCallSiteHiddenAssembly (#4761) (... | NLog/NLog | CHANGELOG.md | Markdown | bsd-3-clause | 151,293 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsUI.WebMonitor.Model;
namespace WindowsUI.WebMonitor.WinUI
{
public partial class WebStatusBox : UserControl
{
... | Klutzdon/SIOTS_HHZX | WindowsUI.WebMonitor/WinUI/WebStatusBox.cs | C# | bsd-3-clause | 3,392 |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | fmilano/mitk | Modules/Segmentation/Interactions/mitkCreateSurfaceTool.cpp | C++ | bsd-3-clause | 2,829 |
-- create class and using GREATEST function with string,attribute,time,null,and number
create CLASS t (b string );
insert INTO t values ('22');
SELECT GREATEST('str1', 'str2', 'str3') FROM t;
SELECT GREATEST(b) FROM t;
SELECT GREATEST(null,b) FROM t;
SELECT GREATEST(null,123) FROM t;
SELECT GREATEST(234,123) FROM t;... | CUBRID/cubrid-testcases | sql/_04_operator_function/_07_case_func/_003_gratest/cases/1001.sql | SQL | bsd-3-clause | 482 |
from django.conf import settings
from site_news.models import SiteNewsItem
def site_news(request):
"""
Inserts the currently active news items into the template context.
This ignores MAX_SITE_NEWS_ITEMS.
"""
# Grab all active items in proper date/time range.
items = SiteNewsItem.current_a... | glesica/django-site-news | site_news/context_processors.py | Python | bsd-3-clause | 379 |
/*
* OpenWFEru densha - open source ruby workflow and bpm engine
* (c) 2007-2008 John Mettraux
*
* OpenWFEru densha is freely distributable under the terms
* of a BSD-style license.
* For details, see the OpenWFEru web site: http://openwferu.rubyforge.org
*
* Made in Japan
*/
function toggleWadminAddBu... | jmettraux/ruote-web | public/javascripts/densha-worklist.js | JavaScript | bsd-3-clause | 514 |
package com.mastercard.api.mdes.csrapi.v1.reasoncodes.services;
import com.mastercard.api.common.Environment;
import junit.framework.TestCase;
import utils.TestUtils;
public class ReasonCodesServiceTest extends TestCase {
ReasonCodesService service;
TestUtils testUtils = new TestUtils(Environment.SANDBOX);
... | thgriefers/mastercard-api-java | src/test/java/com/mastercard/api/mdes/csrapi/v1/reasoncodes/services/ReasonCodesServiceTest.java | Java | bsd-3-clause | 660 |
# -*- coding: utf-8 -*-
import logging
import re
import importlib
import django
import six
from django.contrib.sites.shortcuts import get_current_site
from django.utils.functional import lazy
from django.utils.safestring import mark_safe
from django.utils.module_loading import import_string
from django.utils.html impo... | whyflyru/django-seo | djangoseo/utils.py | Python | bsd-3-clause | 7,375 |
/**
*============================================================================
* The Ohio State University Research Foundation, Emory University,
* the University of Minnesota Supercomputing Institute
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cagrid-grid-incubation... | NCIP/cagrid-grid-incubation | grid-incubation/incubator/projects/IntroduceMappingExtension/projects/mappingExtensions/src/java/org/cagrid/datatype/sdkmapping4/encoding/SDK40DeserializerFactory.java | Java | bsd-3-clause | 1,239 |
package cz.vsb.resbill.dto.contract;
import java.io.Serializable;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import cz.vsb.resbill.model.Contract;
public class ContractEditDTO implements Serializable {
private static final long serialVersionUID = 2585516902814048464L;
... | CIT-VSB-TUO/ResBill | resbill/src/main/java/cz/vsb/resbill/dto/contract/ContractEditDTO.java | Java | bsd-3-clause | 1,634 |
using System;
using System.Collections;
using System.Collections.Generic;
namespace FourGuns
{
/// <summary>
/// Linked list of objects
/// </summary>
/// <typeparam name="T">Type of object stored in list</typeparam>
/// <author>Colden Cullen</author>
/// <contributor>Sean Brennan</contributo... | PxlBuzzard/Four-Guns | FourGuns/FourGuns/Datastructures/List.cs | C# | bsd-3-clause | 26,690 |
/* $Id$
* Author: Daniel Bosk <daniel.bosk@miun.se>
* Date: 22 Dec 2012
*/
/*
* Copyright (c) 2012, Daniel Bosk <daniel.bosk@miun.se>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
... | dbosk/cpager | memalg_esc.c | C | bsd-3-clause | 3,975 |
/* ----------------------------------------------------------------- */
/* The Japanese TTS System "Open JTalk" */
/* developed by HTS Working Group */
/* http://open-jtalk.sourceforge.net/ */
/* -----------------------------... | anoyetta/ACT.TTSYukkuri | Thirdparty/openjtalk_buildbatch/open_jtalk_v110/open_jtalk-1.10/open_jtalk/njd_set_unvoiced_vowel/njd_set_unvoiced_vowel_rule_ascii_for_shift_jis.h | C | bsd-3-clause | 10,986 |
#include <QtWidgets/QApplication>
#include <QtWidgets/QTableWidget>
#include <QString>
#include <cstdint>
#include <vector>
#include <map>
#include <dqtx/QDensityWidget.hpp>
#include <random>
class distribution : public QObject
{
Q_OBJECT
private:
QTableWidget m_table;
dqtx::QDensityWidget m_normalWidge... | dcdillon/dqtx | examples/distribution/distribution.hpp | C++ | bsd-3-clause | 819 |
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
<head>
<title>Module: Constants::Stat</title>
<meta http-equiv="Content-Typ... | pld/pairwise | doc/app/classes/Constants/Stat.html | HTML | bsd-3-clause | 2,522 |
# Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password, :SAMLResponse]
| Orasi/code-challenge-grading | config/initializers/filter_parameter_logging.rb | Ruby | bsd-3-clause | 209 |
/*============================================================================
Copyright (c) German Cancer Research Center (DKFZ)
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 ... | fmilano/mitk | Utilities/IpPic/mitkIpPicOldP.h | C | bsd-3-clause | 3,056 |
/*
* This file is part of the Jikes RVM project (http://jikesrvm.org).
*
* This file is licensed to You under the Common Public License (CPL);
* You may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.opensource.org/licenses/cpl1.0.php
*... | ut-osa/laminar | jikesrvm-3.0.0/MMTk/src/org/mmtk/utility/options/GCspyTileSize.java | Java | bsd-3-clause | 873 |
<?php
/**
* Pop PHP Framework (http://www.popphp.org/)
*
* @link https://github.com/nicksagona/PopPHP
* @category Pop
* @package Pop_Auth
* @author Nick Sagona, III <nick@popphp.org>
* @copyright Copyright (c) 2009-2014 Moc 10 Media, LLC. (http://www.moc10media.com)
* @license http://www.popp... | nicksagona/PopPHP | vendor/PopPHPFramework/src/Pop/Auth/Exception.php | PHP | bsd-3-clause | 748 |
# Changelog
All notable changes to this project will be documented in this file, in reverse chronological order by release.
## 2.1.1 - TBD
### Added
- Nothing.
### Deprecated
- Nothing.
### Removed
- Nothing.
### Fixed
- Nothing.
## 2.1.0 - 2016-10-17
### Added
- [#267](https://github.com/zfcampus/zf-apigi... | kusmierz/zf-apigility-doctrine | CHANGELOG.md | Markdown | bsd-3-clause | 1,518 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kitchen_sink.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| publica-io/django-publica-kitchen-sink | kitchen_sink/manage.py | Python | bsd-3-clause | 255 |
using Mle.Util;
using System;
using System.IO;
using System.Threading.Tasks;
using Windows.Storage;
namespace Mle.IO {
public class JsonUtils : JsonUtilsBase {
private static JsonUtils instance = null;
public static JsonUtils Instance {
get {
if (instance == null)
... | malliina/musicpimp-win | Common-WinStore/Mle/IO/JsonUtils.cs | C# | bsd-3-clause | 940 |
---
id: 5900f43e1000cf542c50ff50
challengeType: 5
title: 'Problem 210: Obtuse Angled Triangles'
forumTopicId: 301852
---
## Description
<section id='description'>
Consider the set S(r) of points (x,y) with integer coordinates satisfying |x| + |y| ≤ r.
Let O be the point (0,0) and C the point (r/4,r/4).
Let N(r) be the... | BhaveshSGupta/FreeCodeCamp | curriculum/challenges/english/08-coding-interview-prep/project-euler/problem-210-obtuse-angled-triangles.english.md | Markdown | bsd-3-clause | 1,033 |
package org.broadinstitute.macarthurlab.matchbox.match;
import org.broadinstitute.macarthurlab.matchbox.entities.Patient;
import org.monarchinitiative.exomiser.core.phenotype.*;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author Jules Jacobsen <j.jacobsen@qmul.ac.uk>
*/
@Service
pu... | macarthur-lab/matchbox | src/main/java/org/broadinstitute/macarthurlab/matchbox/match/PhenotypeSimilarityServiceImpl.java | Java | bsd-3-clause | 1,348 |
package org.basex.api.client;
import java.io.*;
import org.basex.core.*;
import org.basex.io.out.*;
/**
* <p>This class defines methods for executing commands, either locally or via the
* client/server architecture.</p>
*
* <p>The results of database commands are returned as strings. If an output stream is speci... | BaseXdb/basex | basex-core/src/main/java/org/basex/api/client/Session.java | Java | bsd-3-clause | 4,433 |
/* Please refer to license.txt */
#pragma once
#include <boost/asio.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/bind.hpp>
#include <boost/array.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>
namespace GEngine
{
namespace mnet
{
class Client : public boost::enable_shared_from_this<Cli... | addictgamer/GEngine | src/net/client/client.hpp | C++ | bsd-3-clause | 1,722 |
/* **********************************************************
* Copyright (c) 2000-2010 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | DynamoRIO/drk | core/dispatch.c | C | bsd-3-clause | 93,977 |
#!/usr/bin/env python3
import logging
from . import SubprocessHook
logger = logging.getLogger("barython")
class PulseAudioHook(SubprocessHook):
"""
Listen on pulseaudio events with pactl
"""
def __init__(self, cmd=["pactl", "subscribe", "-n", "barython"],
*args, **kwargs):
... | Anthony25/barython | barython/hooks/audio.py | Python | bsd-3-clause | 363 |
// Copyright 2018 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 MEDIA_GPU_V4L2_V4L2_VP8_ACCELERATOR_H_
#define MEDIA_GPU_V4L2_V4L2_VP8_ACCELERATOR_H_
#include <vector>
#include "base/macros.h"
#include "base/... | endlessm/chromium-browser | media/gpu/v4l2/v4l2_vp8_accelerator.h | C | bsd-3-clause | 1,312 |
#include "memcache_client_base.h"
#include "vbucket_config.h"
#include "evpp/event_loop_thread_pool.h"
#include "likely.h"
#include <mutex>
namespace evmc {
MemcacheClientBase::~MemcacheClientBase() {
delete load_loop_;
delete load_thread_;
delete vbconf_1_;
delete vbconf_2_;
}
void MemcacheClientBas... | Qihoo360/evpp | apps/evmc/memcache_client_base.cc | C++ | bsd-3-clause | 4,782 |
//
// NotificationsTestSuite.cpp
//
// $Id$
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (... | nocnokneo/MITK | Utilities/Poco/Foundation/testsuite/src/NotificationsTestSuite.cpp | C++ | bsd-3-clause | 2,049 |
// Copyright 2012 Google, gopacket.LayerTypeMetadata{Inc. 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.
package layers
import (
"github.com/google/gopacket"
)
var (
LayerTypeARP ... | ccordes-snaproute/gopacket | layers/layertypes.go | GO | bsd-3-clause | 18,948 |
module Validations.Types
( module Validations.Types.Checker
) where
import Validations.Types.Checker
| mavenraven/validations | src/Validations/Types.hs | Haskell | bsd-3-clause | 106 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved.
# Use of this source code is governed by a BSD-style license (see the COPYING file).
""" Common filesystem operations """
from __future__ import absolute_import
from __future__ import unicode_literals
from __... | aldebaran/qibuild | python/qisys/sh.py | Python | bsd-3-clause | 22,082 |
catissue_audit_event_details;select ELEMENT_NAME,CURRENT_VALUE from catissue_audit_event_details where ELEMENT_NAME='EMBEDDING_MEDIUM'
catissue_audit_event;select EVENT_TYPE from catissue_audit_event | NCIP/catissue-core | software/caTissue/modules/tests/struts/CaTissue_TestCases/SQLForActualDataSets/dbunit_embeddedEvent.sql | SQL | bsd-3-clause | 200 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
namespace GenIpCpp
{
class Program
{
public static UInt32 IpToInt(string ip)
{
char[] se... | sevencat/ipwry | GenIpCpp/Program.cs | C# | bsd-3-clause | 2,249 |
/*
* Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
* Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
* Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | kapdop/android_external_strace | defs.h | C | bsd-3-clause | 28,264 |
// Copyright 2018 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 COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_NAVIGATION_CONSOLE_LOGGER_H_
#define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_NAVIGATION_CONSOL... | scheib/chromium | components/subresource_filter/content/browser/navigation_console_logger.h | C | bsd-3-clause | 2,850 |
from sklearn2sql_heroku.tests.regression import generic as reg_gen
reg_gen.test_model("SVR_rbf" , "freidman1" , "db2")
| antoinecarme/sklearn2sql_heroku | tests/regression/freidman1/ws_freidman1_SVR_rbf_db2_code_gen.py | Python | bsd-3-clause | 121 |
/*
Copyright (c) 2016, Shanghai YUEWEN Information Technology Co., 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,
* this ... | crosg/Albianj2 | Albianj.Commons/src/main/java/org/albianj/text/StringHelper.java | Java | bsd-3-clause | 7,685 |
/*-
* Copyright (c) 2013, 2014 Jason Lingle
* 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 ... | AltSysrq/mantigraphia | src/micromp.h | C | bsd-3-clause | 5,440 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-04 05:22
from __future__ import unicode_literals
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
depe... | acercado/jd-ph-cms | jd-ph-cms/policies/migrations/0001_initial.py | Python | bsd-3-clause | 2,519 |
<?php
/* @var $this yii\web\View */
?>
<h1>region/delete</h1>
<p>
You may change the content of this page by modifying
the file <code><?= __FILE__; ?></code>.
</p>
| romaten1/yii2-vk-mongodb | modules/vk/views/region/delete.php | PHP | bsd-3-clause | 173 |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/snapshot/partial-serializer.h"
#include "src/snapshot/startup-serializer.h"
#include "src/objects-inl.h"
namespace v8 {
namespace intern... | RPGOne/Skynet | node-master/deps/v8/src/snapshot/partial-serializer.cc | C++ | bsd-3-clause | 6,185 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.