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 |
|---|---|---|---|---|---|
INSERT INTO `car_brand` (`id`, `name`, `acronym`, `name_pinyin`, `create_time`, `update_time`, `status`) VALUES
(1, '腾势', 'T', 'tengshi', '2015-07-16 12:38:34', '2015-07-16 12:38:34', 1),
(2, '三菱', 'S', 'sanling', '2015-07-16 12:38:34', '2015-07-16 12:38:34', 1),
(3, '江铃集团轻汽', 'J', 'jianglingjituanqingqi', '2015-... | caoxudong/springboot-demo | src/test/resources/data.sql | SQL | bsd-3-clause | 243,996 |
<?php
/**
* contentinum - accessibility websites
*
* LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. ... | Mikel1961/contentinum.5.1 | module/Mcwork/src/Mcwork/Controller/FsUploadController.php | PHP | bsd-3-clause | 3,604 |
import pytest
from django.db import connection, IntegrityError
from .models import MyTree
def flush_constraints():
# the default db setup is to have constraints DEFERRED.
# So IntegrityErrors only happen when the transaction commits.
# Django's testcase thing does eventually flush the constraints but to... | craigds/django-mpathy | tests/test_db_consistency.py | Python | bsd-3-clause | 2,474 |
package prefuse.util;
import java.util.ArrayList;
import prefuse.data.Graph;
import prefuse.data.Node;
import prefuse.data.Schema;
import prefuse.data.Tree;
/**
* Library routines for creating various Graph structures. All Graphs
* generated by methods of this class include a String-valued
* "label" field.
*
*... | dritanlatifi/AndroidPrefuse | src/prefuse/util/GraphLib.java | Java | bsd-3-clause | 8,814 |
/* ___ _ ___ _ _ *\
** / __| |/ (_) | | Your SKilL scala Binding **
** \__ \ ' <| | | |__ generated: 01.02.2019 ... | skill-lang/skill | src/main/scala/de/ust/skill/sir/api/internal/F_FieldLike_comment.scala | Scala | bsd-3-clause | 6,085 |
<?php
use yii\helpers\Html;
use yii\web\ForbiddenHttpException;
/* @var $this yii\web\View */
/* @var $model app\models\Requirement */
if($isAdmin){
$this->title = 'Create Requirement';
$this->params['breadcrumbs'][] = ['label' => 'Requirements', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
... | bulletsoul/it210app | views/requirement/create.php | PHP | bsd-3-clause | 583 |
Spree::Location.class_eval do
has_one :neighbors_settings, class_name: "Spree::NeighborsSettings"
accepts_nested_attributes_for :neighbors_settings, :allow_destroy => true
#Fields for the geocoder gem
reverse_geocoded_by :latitude, :longitude
#after_validation :reverse_geocode
after_save :set_default_neighb... | openjaf/spree_neighbors | app/models/spree/location_decorator.rb | Ruby | bsd-3-clause | 1,808 |
from django.shortcuts import render_to_response
from django.template import RequestContext
from markitup import settings
from markitup.markup import filter_func
from markitup.sanitize import sanitize_html
def apply_filter(request):
cleaned_data = sanitize_html(request.POST.get('data', ''), strip=True)
markup ... | thoslin/django-markitup | markitup/views.py | Python | bsd-3-clause | 527 |
/* $NetBSD: grfabs_reg.h,v 1.11 1998/12/20 14:32:53 thomas Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman
* Copyright (c) 1994 Christian E. Hopps
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are ... | MarginC/kame | netbsd/sys/arch/atari/dev/grfabs_reg.h | C | bsd-3-clause | 6,243 |
// 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 "media/base/video_frame.h"
#include <algorithm>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/logging.h"
#includ... | timopulkkinen/BubbleFish | media/base/video_frame.cc | C++ | bsd-3-clause | 11,760 |
package org.broadinstitute.hellbender.tools.picard.sam;
import htsjdk.samtools.*;
import htsjdk.samtools.util.CloserUtil;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadinstitute.hellbender.exceptions.GATKException;
import org.broadinstitute.hellbender.exceptions.UserException;
import org... | tomwhite/hellbender | src/test/java/org/broadinstitute/hellbender/tools/picard/sam/RevertSamIntegrationTest.java | Java | bsd-3-clause | 6,444 |
//
// Soap.h
// SOAP-IOS
//
// Created by Elliott on 13-7-26.
// Copyright (c) 2013年 Elliott. All rights reserved.
//
#import "SoapUtility.h"
#import "SoapService.h"
#import "DDXMLElement+WSDL.h" | IphoneCoder/Steward | Steward/Steward/Vendors/SoapUtility/Soap.h | C | bsd-3-clause | 202 |
module Dice where
import Control.Monad (liftM)
import Control.Monad.Random
import Data.List (intercalate)
data DiceBotCmd =
Start
| Quit
| Roll { cmdDice :: [Die] }
| None
| Bad { cmdBad :: String }
deriving (Show, Eq)
data Die =
Const { dieConst :: Int }
| Die { dieNum :: Int, dieType :: Int }
... | haskell-ro/hs-dicebot | Dice.hs | Haskell | bsd-3-clause | 873 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This file documents the GNU Assembler "as".
Copyright (C) 1991-2014 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Do... | AlbandeCrevoisier/ldd-athens | gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/share/doc/as.html/HPPA-Opcodes.html | HTML | bsd-3-clause | 3,340 |
//-----------------------------------------------------------------------
// FILE : TypeRepresentation.scala
// SUBJECT : Holds information about a type.
// AUTHOR : (C) Copyright 2011 by Peter C. Chapin <PChapin@vtc.vsc.edu>
//
//-----------------------------------------------------------------------
package edu.u... | pchapin/sprocket | src/edu/uvm/sprocket/TypeRepresentation.scala | Scala | bsd-3-clause | 806 |
// Copyright (c) 2016 Timo Savola. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package condition
type C int
const (
Eq = C(iota)
Ne
GeS
GtS
GeU
GtU
LeS
LtS
LeU
LtU
OrderedAndEq
OrderedAndNe
OrderedAndGe
OrderedAndGt
Orde... | tsavola/wag | internal/gen/condition/condition.go | GO | bsd-3-clause | 2,142 |
#include <gaussian.h>
#include <args.h>
#include <stdbool.h>
int main ( int argc, char *argv[] )
{
double units;
uint32_t gaussianSize;
float gaussianSigma;
char* imgname;//the name of the image file, taken by the arguments
//read in the program's arguments
if(readArguments(argc,argv,&imgname... | LefterisJP/OpenCL_Gaussian_Blur | main.c | C | bsd-3-clause | 651 |
// 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 "webkit/common/fileapi/file_system_util.h"
#include <algorithm>
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/... | ChromiumWebApps/chromium | webkit/common/fileapi/file_system_util.cc | C++ | bsd-3-clause | 15,695 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Internal server error</title>
<link rel="stylesheet" media="screen,projection,tv" href="/media/css/common.css" />
</head>
<body>
<div id="body">
<div id="header">
<h1>Mozilla Sheriff Duty</h1>
</div>
<div id="content">
<h2>Internal server error</h2>
... | mozilla/sheriffs | templates/500.html | HTML | bsd-3-clause | 371 |
// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... | malban/mapviz | mapviz_plugins/include/mapviz_plugins/robot_image_plugin.h | C | bsd-3-clause | 3,658 |
# -*- coding: utf-8 -*-
"""
Doctest runner for 'birdhousebuilder.recipe.adagucserver'.
"""
__docformat__ = 'restructuredtext'
import os
import sys
import unittest
import zc.buildout.tests
import zc.buildout.testing
from zope.testing import doctest, renormalizing
optionflags = (doctest.ELLIPSIS |
doc... | bird-house/birdhousebuilder.recipe.adagucserver | birdhousebuilder/recipe/adagucserver/tests/test_docs.py | Python | bsd-3-clause | 1,620 |
/*
* File: defaults.js
* Purpose: Default values, settings and initial values for the app
* Author: Adam Reed (adam@secretcode.ninja)
* Licence: BSD 3-Clause Licence
*/
var app = angular.module('BlueCube.defaults', [])
// Default settings for key parts of the app
app.constant('appDefaults', {
// Whether t... | neographophobic/BlueCube | IonicApp/www/js/defaults.js | JavaScript | bsd-3-clause | 8,411 |
{% extends "base.html" %}
{% block title %}Sign in{% endblock %}
{% from "_formhelpers.html" import render_field %}
{% block content %}
<form class="form-signin" action="" method="POST">
<fieldset>
<legend>Please sign in</legend>
{%- if error -%}
<div class="control-group ... | Avamagic/mgserver-web-api | mgserver/templates/login.html | HTML | bsd-3-clause | 842 |
/*
* Table structure for table 'nas'
*/
CREATE TABLE nas (
id SERIAL PRIMARY KEY,
nasname VARCHAR(128) NOT NULL,
shortname VARCHAR(32) NOT NULL,
type VARCHAR(30) NOT NULL DEFAULT 'other',
ports int4,
secret VARCHAR(60) NOT NULL,
/*
server VARCHAR(64),
*/
community VARCHAR(50),
description VARCHAR(200)... | weldpua2008/FreeBSD_PPTP_router_config | raddb/sql/postgresql/nas.sql | SQL | bsd-3-clause | 367 |
# -*- coding: utf-8 -*-
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
"""
API Issues to work out:
- MatrixTransform and STTransform both have 'scale' and 'translate'
attributes, but they are used in very different ways. It ... | Eric89GXL/vispy | vispy/visuals/transforms/base_transform.py | Python | bsd-3-clause | 7,578 |
<?hh // strict
namespace FH;
use Iterator;
final class Supplies {
private function __construct() { }
public static function empty_<T>(): Supply<T> {
return IO::pure(Option::none());
}
public static function fromIterator<T>(Iterator<T> $it): Supply<T> {
$rewound = (object)['value' => f... | rightfold/fh | src/main/hack/FH/Supplies.hh | C++ | bsd-3-clause | 1,251 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("placeholder", "en", {title:"Placeholder Properties", toolbar:"Create Placeholder", text:"Placeholder Text", edit:"Edit Placeholder", textMissing:... | Webkadabra/WkdYiiBootstrap | assets/js/ckeditor/plugins/placeholder/lang/en.js | JavaScript | bsd-3-clause | 361 |
package utils
import (
"errors"
"github.com/mmcloughlin/geohash"
"github.com/whosonfirst/go-whosonfirst-geojson-v2"
"github.com/whosonfirst/go-whosonfirst-hash"
)
func GeohashFeature(f geojson.Feature) (string, error) {
bboxes, err := f.BoundingBoxes()
if err != nil {
return "", err
}
mbr := bboxes.MBR()... | whosonfirst/go-whosonfirst-updated | vendor/github.com/whosonfirst/go-whosonfirst-geojson-v2/utils/hash.go | GO | bsd-3-clause | 1,483 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>TrAP JavaScript 1.3 Reference Package com.ericsson.research.trap.tests</title... | princeofdarkness76/trap | trap-js/xref-test/com/ericsson/research/trap/tests/package-frame.html | HTML | bsd-3-clause | 866 |
#import <UIKit/UIKit.h>
#import "ATTableViewController.h"
@interface ATSettingSingleSelectViewController : ATTableViewController {
}
@end
| hmori/atndcal | atndcal/src/ATSettingSingleSelectViewController.h | C | bsd-3-clause | 145 |
package org.broadinstitute.clio.integrationtest.tests
import java.net.URI
import better.files.File
import com.sksamuel.elastic4s.IndexAndType
import io.circe.Json
import io.circe.syntax._
import org.broadinstitute.clio.client.commands.ClioCommand
import org.broadinstitute.clio.integrationtest.BaseIntegrationSpec
impo... | broadinstitute/clio | clio-integration-test/src/it/scala/org/broadinstitute/clio/integrationtest/tests/CramTests.scala | Scala | bsd-3-clause | 52,259 |
---
id: 5900f5411000cf542c510054
challengeType: 5
title: 'Problem 468: Smooth divisors of binomial coefficients'
videoUrl: ''
localeTitle: 问题468:二项式系数的平滑除数
---
## Description
<section id="description">如果没有一个整数因子大于B,则整数称为B-smooth。 <p>设SB(n)是n的最大B-平滑除数。示例:S1(10)= 1 S4(2100)= 12 S17(2496144)= 5712 </p><p>定义F(n)=Σ1≤B≤nΣ0≤... | jonathanihm/freeCodeCamp | curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-468-smooth-divisors-of-binomial-coefficients.chinese.md | Markdown | bsd-3-clause | 1,174 |
COMPONENT=EavesdropperC
# This assumes your State and Transceiver components are in /tos/lib relative to this
# directory:
CFLAGS += -I../../tos/lib/State -I../../tos/lib/Transceiver
#CFLAGS += -DMAX_TOS_MSGS=24
include $(TOSROOT)/apps/Makerules
| fresskarma/tinyos-1.x | contrib/rincon/apps/Eavesdropper/Makefile | Makefile | bsd-3-clause | 262 |
{% extends "account/keys/base.html" %}
{% block content %}
<blockquote><p>{{ key.description }}</p></blockquote>
{% if actions %}
<table>
<thead>
<th>Action</th>
<td></td>
</thead>
{% for action in actions %}
<td>
{%- set url = action.cont... | mozilla/mozilla-badges | mozbadges/site/account/templates/account/keys/detail.html | HTML | bsd-3-clause | 1,285 |
// +build l476xx
package syscfg
// DO NOT EDIT THIS FILE. GENERATED BY xgen.
import (
"bits"
"mmio"
"unsafe"
"stm32/o/l476xx/mmap"
)
type SYSCFG_Periph struct {
MEMRMP RMEMRMP
CFGR1 RCFGR1
EXTICR [4]REXTICR
SCSR RSCSR
CFGR2 RCFGR2
SWPR RSWPR
SKR RSKR
}
func (p *SYSCFG_Periph) BaseAddr() uintpt... | ziutek/emgo | egpath/src/stm32/hal/raw/syscfg/l476xx--xgen_syscfg.go | GO | bsd-3-clause | 14,524 |
/*@ global glob :: posint */
let glob = 12;
module A {
function bar() {
glob = 7;
return;
}
export function zoo() {
bar();
assert(glob > 0);
}
}
| UCSD-PL/RefScript | tests/pos/simple/02-glob.ts | TypeScript | bsd-3-clause | 198 |
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>toString</title>
<link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script> <script>const storage = localStorage.getItem("dokka-dark-mode")
co... | shogo4405/HaishinKit.java | docs/haishinkit/com.haishinkit.amf.data/-as-xml-document/to-string.html | HTML | bsd-3-clause | 3,613 |
<?php
/**
* OWASP Enterprise Security API (ESAPI).
*
* This file is part of the Open Web Application Security Project (OWASP)
* Enterprise Security API (ESAPI) project.
*
* LICENSE: This source file is subject to the New BSD license. You should read
* and accept the LICENSE before you use, modify, and/or redist... | najamelan/PHP-ESAPI | src/errors/EnterpriseSecurityException.php | PHP | bsd-3-clause | 3,671 |
from x86asm import codePackageFromFile
from x86cpToMemory import CpToMemory
from pythonConstants import PythonConstants
import cStringIO
import excmem
def pyasm(scope,s):
cp = codePackageFromFile(cStringIO.StringIO(s),PythonConstants)
mem = CpToMemory(cp)
mem.MakeMemory()
mem.BindPythonFunctions(scope)... | grant-olson/pyasm | __init__.py | Python | bsd-3-clause | 327 |
"""
Custom Authenticator to use MediaWiki OAuth with JupyterHub
Requires `mwoauth` package.
"""
import json
import os
from asyncio import wrap_future
from concurrent.futures import ThreadPoolExecutor
from jupyterhub.handlers import BaseHandler
from jupyterhub.utils import url_path_join
from mwoauth import ConsumerTok... | jupyterhub/oauthenticator | oauthenticator/mediawiki.py | Python | bsd-3-clause | 4,178 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | youtube/cobalt | net/third_party/mozilla_security_manager/nsPKCS12Blob.h | C | bsd-3-clause | 3,284 |
using System;
namespace MvcApplication4.Areas.HelpPage
{
/// <summary>
/// This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
/// </summary>
public class ImageSample
{
/// <summary>
/// Initializes a new instanc... | anhcop86/SN-Stock | WebAPIStockRealTime/MvcApplication4/Areas/HelpPage/SampleGeneration/ImageSample.cs | C# | bsd-3-clause | 1,058 |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\PhotoLocation;
/**
* PhotoLocationSearch represents the model behind the search form about `app\models\PhotoLocation`.
*/
class PhotoLocationSearch extends PhotoLocation
{
/**
* @inheritdoc
*/
... | michael-vostrikov/workorder | models/PhotoLocationSearch.php | PHP | bsd-3-clause | 1,422 |
<?php
namespace common\components;
use common\models\Image;
use \Imagick;
class ImageTransform
{
const ALIGN_MIDDLE = 1;
const ALIGN_TOP = 2;
protected $width;
protected $height;
/**
* @var Imagick
*/
protected $resource;
function __construct(Image $image)
{
if (!... | EQ-Port/site-2.0 | common/components/ImageTransform.php | PHP | bsd-3-clause | 7,316 |
package com.github.koraktor.steamcondenser.steam.community;
import static com.github.koraktor.steamcondenser.steam.community.XMLUtil.loadXml;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.powermock.api.mockito.PowerMockito.mo... | gutomaia/steam-condenser-java | src/test/java/com/github/koraktor/steamcondenser/steam/community/StatsTestCase.java | Java | bsd-3-clause | 1,782 |
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file was auto-generated via go generate.
// DO NOT UPDATE MANUALLY
/*
Command stressd runs the stress-test server.
Usage:
stressd [flags]
Th... | vanadium/go.ref | runtime/internal/rpc/stress/stressd/doc.go | GO | bsd-3-clause | 2,797 |
package java.net;
import edu.stanford.stamp.annotation.STAMP;
import edu.stanford.stamp.annotation.Flow;
public class StampURLInputStream extends java.io.InputStream
{
@STAMP(flows = {@Flow(from="this",to="@return")})
private int taintInt() { return 0; }
public int read() throws java.io.IOException {
return ... | petablox-project/petablox | android/models/src/java/net/StampURLInputStream.java | Java | bsd-3-clause | 337 |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\Menu */
$this->title = $model->caption;
$this->params['breadcrumbs'][] = ['label' => 'Menus', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="menu-view">
<h1><?= Htm... | prayogo/pms.yii2 | views/menu/view.php | PHP | bsd-3-clause | 993 |
// 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.
#ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_
#define UI_GFX_NATIVE_WIDGET_TYPES_H_
#pragma once
#include "base/basictypes.h"
#include "ui/base/ui_export.h"
... | aYukiSekiguchi/ACCESS-Chromium | ui/gfx/native_widget_types.h | C | bsd-3-clause | 9,426 |
/* $NetBSD: dl.c,v 1.14 2000/06/05 00:09:18 matt Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Jason R. Thorpe.
*
* Redistribution and use in source and binary forms, with or without
* ... | MarginC/kame | netbsd/sys/dev/qbus/dl.c | C | bsd-3-clause | 13,082 |
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> plusOne(vector<int>& digits) {
vector<int> ret(digits);
int carry = 1;
for (vector<int>::reverse_iterator i = ret.rbegin(), iend = ret.rend(); i != iend; ++i) {
*i += carry;
... | buptlxb/leetcode | 2nd/066_plus_one.cpp | C++ | bsd-3-clause | 499 |
# 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.
"""This program wraps an arbitrary command since gn currently can only execute
scripts."""
import os
import subprocess
import sys
from shutil import copy2
... | nwjs/chromium.src | tools/v8_context_snapshot/run.py | Python | bsd-3-clause | 552 |
var searchData=
[
['save_5fcycles_5feeprom',['save_cycles_eeprom',['../interruptions_8c.html#ad86170580c30277d97216739e8508a13',1,'save_cycles_eeprom(): interruptions.c'],['../interruptions_8h.html#ad86170580c30277d97216739e8508a13',1,'save_cycles_eeprom(): interruptions.c']]],
['sendacknowledgment',['sen... | NMMI/SoftHand | docs/html/search/functions_b.js | JavaScript | bsd-3-clause | 857 |
<?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.
*/
namespace app\Repo;
use Yii;
use GuzzleHttp\Client;
use phpQuery;
class autooriginal extends BaseRepo {
publi... | ZsarkZ/parsingProduct | Repo/autooriginal.php | PHP | bsd-3-clause | 1,672 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
use kartik\popover\PopoverX;
use kartik\form\ActiveForm;
use kartik\daterange\DateRangePicker;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Картриджи архив';
$this->params['breadcrumbs'][] =... | leo141198/basa | modules/cartridges/views/reception/archive_disabled.php | PHP | bsd-3-clause | 3,838 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.team4189.season2013.CB.commands;
import edu.wpi.first.wpilibj.command.PIDCommand;
import org.team4189.season2013.CB.subsystems.Shooter;
import org.team4189.season2013.CB.subsystems.VisionControl;
im... | Team4189/2013robotCode | src/org/team4189/season2013/CB/commands/AimControl.java | Java | bsd-3-clause | 1,887 |
<?php
/**
* @link http://www.yiizh.com/
* @copyright Copyright (c) 2016 yiizh.com
* @license http://www.yiizh.com/license/
*/
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/params.php')
);
$config = [
'id' => APP_API,
'basePath' => dirname(__DIR__)... | yiizh/yiizh.com | src/api/config/main.php | PHP | bsd-3-clause | 1,805 |
#
# FBrowserBase.py -- Base class for file browser plugin for fits viewer
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import os, glob
import stat, time
from ging... | bsipocz/ginga | ginga/misc/plugins/FBrowserBase.py | Python | bsd-3-clause | 5,421 |
from .cuda_products import gmt_func as gp_device
from .cuda_products import imt_func as ip_device
import numpy as np
import numba.cuda
import numba
import math
import random
from . import *
def sequential_rotor_estimation_chunks(reference_model_array, query_model_array, n_samples, n_objects_per_sample, mutation_pro... | arsenovic/clifford | clifford/tools/g3c/cuda.py | Python | bsd-3-clause | 20,805 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__sizeof_struct_34.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__sizeof.label.xml
Template File: sources-sink-34.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Initialize the source b... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s11/CWE122_Heap_Based_Buffer_Overflow__sizeof_struct_34.c | C | bsd-3-clause | 3,188 |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Included first as it collides with the X11 headers.
#include "gtest/gtest.h"
#include "flutter/shell/platform/embedder/test_utils/proc_table_replacemen... | rmacnak-google/engine | shell/platform/linux/fl_engine_test.cc | C++ | bsd-3-clause | 11,319 |
/*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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 o... | alameluchidambaram/CONNECT | Product/Production/Gateway/CONNECTGatewayWeb/src/main/java/gov/hhs/fha/nhinc/patientcorrelation/nhinc/PatientCorrelationServiceSecuredServiceImpl.java | Java | bsd-3-clause | 4,321 |
// 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.
#ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
#define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
#include <string>
#include "base/macros.h"
#include ... | nwjs/chromium.src | components/user_manager/user_info_impl.h | C | bsd-3-clause | 1,227 |
<?php
/**
* HiSite Yii2 base project.
*
* @link https://github.com/hiqdev/hisite
* @package hisite
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It... | hiqdev/hisite-core | src/messages/ru/hisite.php | PHP | bsd-3-clause | 1,251 |
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var path = require("path");
var js = path.resolve(__dirname, "frontend");
module.exports = {
// Input files for the bundles of JS/CSS
entry: {
admin: path.resolve(js, "admin/main.js"),
user: path.resolve(js, "user/main.js"),
sharedDependen... | simphony/simphony-remote | webpackfile.js | JavaScript | bsd-3-clause | 2,304 |
<?php
namespace Theme\Service;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class ThemeInvokable implements ServiceLocatorAwareInterface
{
private $serviceLocator;
/**
* The name of the current theme
* @var unknown
*/
private $name =... | slaff/learnzf2-theme | src/Theme/Service/ThemeInvokable.php | PHP | bsd-3-clause | 1,839 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## @copyright
# Software License Agreement (BSD License)
#
# Copyright (c) 2017, Jorge De La Cruz, Carmen Castano.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the followi... | jdelacruz26/misccode | cad2xls.py | Python | bsd-3-clause | 2,955 |
/*
* type and other definitions
*
* written by Yasha (ITOH Yasufumi)
* public domain
*
* $NetBSD: type_local.h,v 1.1 1998/09/01 19:51:09 itohy Exp $
*/
#ifdef __STDC__
# define PROTO(x) x
#else
# define PROTO(x) ()
# ifndef const
# define const
# endif
#endif
#ifndef __BIT_TYPES_DEFINED__
typedef unsigned cha... | MarginC/kame | netbsd/sys/arch/x68k/stand/aout2hux/type_local.h | C | bsd-3-clause | 697 |
// Copyright 2016 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/nplb/player_create_test.cc | C++ | bsd-3-clause | 10,642 |
/*
*
* Copyright (c) 1999-2000, Vitaly V Belekhov
* 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 unmodif... | MarginC/kame | freebsd5/sys/netgraph/ng_split.h | C | bsd-3-clause | 1,872 |
#region License
// Copyright (c) 2014 The Sentry Team and individual contributors.
// 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 ... | getsentry/raven-csharp | src/app/SharpRaven/NoOpRavenClient.cs | C# | bsd-3-clause | 10,032 |
/* RawToCompressed.cpp
*
* Author : Alexander J. Yee
* Date Created : 02/10/2018
* Last Modified : 02/10/2018
*
*/
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
///////... | Mysticial/DigitViewer | Source/DigitViewer2/WordToRaw/WordToRaw.cpp | C++ | bsd-3-clause | 1,852 |
<?php
namespace app\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Post;
/**
* PostSearch represents the model behind the search form about Post.
*/
class PostSearch extends Model
{
public $id;
public $title;
public $content;
public $category_id;
public $created_at;
public $updat... | andrelinoge/yii2-skeleton-basic | models/PostSearch.php | PHP | bsd-3-clause | 1,693 |
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "hoomd/ClockSource.h"
#include "hoomd/RNGIdentifiers.h"
#include "hoomd/RandomNumbers.h"
#include <iomanip>
#include <iostream>
#include <vector>
#inc... | joaander/hoomd-blue | hoomd/test/random_numbers_test.cc | C++ | bsd-3-clause | 17,117 |
/* $OpenBSD: a_strnid.c,v 1.16 2014/07/10 13:58:22 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and u... | GaloisInc/hacrypto | src/C/libressl/libressl-2.0.0/crypto/asn1/a_strnid.c | C | bsd-3-clause | 8,985 |
import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 100, ar_order = 0); | antoinecarme/pyaf | tests/artificial/transf_Fisher/trend_MovingMedian/cycle_0/ar_/test_artificial_1024_Fisher_MovingMedian_0__100.py | Python | bsd-3-clause | 266 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This file documents the GNU Assembler "as".
Copyright (C) 1991-2014 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Do... | AlbandeCrevoisier/ldd-athens | gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/share/doc/as.html/arm_005fsave.html | HTML | bsd-3-clause | 2,410 |
# Copyright (c) 2016,2017 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""
===========================
Upper Air Sounding Tutorial
===========================
Upper air analysis is a staple of many synoptic and mesoscale analysis
problems. In this... | metpy/MetPy | v0.8/_downloads/upperair_soundings.py | Python | bsd-3-clause | 7,536 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | linkorb/ZendFramework-1.10.8-minimal-patched | library/Zend/Gdata/Photos/Extension/NumPhotos.php | PHP | bsd-3-clause | 1,793 |
using System;
using System.Web;
using System.Web.Mvc;
using Orchard.DisplayManagement;
using Orchard.Localization;
using Orchard.Localization.Services;
using Orchard.Mvc.Html;
using Orchard.Services;
namespace Orchard.Core.Shapes {
public class DateTimeShapes : IDependency {
private readonly IClock _clock;... | fassetar/Orchard | src/Orchard.Web/Core/Shapes/DateTimeShapes.cs | C# | bsd-3-clause | 4,086 |
/**
* Copyright (c) 2015-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.
*
* @provides... | ichengde/react-vr | Libraries/StyleSheet/LayoutAndTransformPropTypes.js | JavaScript | bsd-3-clause | 712 |
#include "Modules/ModernPropertiesModule/Editors/ModernPropertyEditor.h"
#include "Model/ControlProperties/ValueProperty.h"
#include "Model/ControlProperties/RootProperty.h"
#include "Model/PackageHierarchy/ControlNode.h"
#include "Modules/DocumentsModule/DocumentData.h"
#include "QECommands/ChangePropertyValueCommand... | dava/dava.engine | Programs/QuickEd/Classes/Modules/ModernPropertiesModule/Editors/ModernPropertyEditor.cpp | C++ | bsd-3-clause | 8,866 |
/**************************************************************************
Copyright (c) 2007-2008, 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 ... | ago/wimax-ns | InfraStack/OSAgnostic/WiMax/Wrappers/Include/iWmxSDK.h | C | bsd-3-clause | 5,590 |
#!/bin/bash
set -e
BUILD_DIRECTORY=build
CLI_E2E_PATH=fbsimctl/cli-tests/executable-under-test
function assert_xcode_version() {
local version=$1
if ! xcodebuild -version | grep -q "Xcode $version\."; then
echo "building fbsimctl requires Xcode $version"
exit 1
fi
}
function assert_has_carthage() {
... | ichu501/FBSimulatorControl | build.sh | Shell | bsd-3-clause | 7,599 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Book Chapters</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/j... | IntegralExplorer/Keshif | demo/book_chapters.html | HTML | bsd-3-clause | 5,277 |
<?php
/**
* Отображение для _search:
*
* @category YupeView
* @package yupe
* @author Yupe Team <team@yupe.ru>
* @license https://github.com/yupe/yupe/blob/master/LICENSE BSD
* @link http://yupe.ru
**/
$form = $this->beginWidget(
'bootstrap.widgets.TbActiveForm', array(
'action' ... | elorian/crm.inreserve.kz | protected/modules/country/views/countryBackend/_search.php | PHP | bsd-3-clause | 2,889 |
<?php
use common\models\User;
use common\models\League;
use yii\helpers\Url;
$display_role = Yii::$app->user->identity->role;
$items = [];
if(Yii::$app->user->identity->isA([User::ROLE_ADMIN, User::ROLE_DEVELOPER])) {
$items[] = [
'label' => 'Engine',
'icon' => 'fa fa-cog',
'url' => '#',
... | devleaks/gip | backend/views/layouts/left.php | PHP | bsd-3-clause | 7,294 |
<?php
declare(strict_types=1);
namespace LizardsAndPumpkins\DataPool\SearchEngine\Elasticsearch\Operator;
use LizardsAndPumpkins\DataPool\SearchEngine\Elasticsearch\Bool\ElasticsearchQueryBoolMustNot;
class ElasticsearchQueryOperatorNotDefined implements ElasticsearchQueryOperator
{
public function getFormatted... | adrianco48/lib-search-engine-elasticsearch | src/Operator/ElasticsearchQueryOperatorNotDefined.php | PHP | bsd-3-clause | 551 |
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Zend Framework API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="css/black-tie/jquery-ui-1.8.2.custom.css" type="text/css"></link><link rel="stylesheet" href="css/jquery.treeview.css" ty... | wukchung/Home-development | documentation/api/core/db_XmlRpc_Generator_XmlWriter.html | HTML | bsd-3-clause | 17,958 |
/**
* An open source web application development framework for PHP 5 and above.
*
* @author ArticulateLogic Labs
* @author Abdullah Al Zakir Hossain, Email: aazhbd@yahoo.com
* @author Syeda Tasneem Rumy, Email: tasneemrumy@gmail.com
* @author Abdullah Al Zakir Hossain, Email: aazhbd@y... | aazhbd/qurananalyst01 | static/css/forms.css | CSS | bsd-3-clause | 2,853 |
## Copyright (c) 2012-2015 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.
""" Deploy and install a package to a target
"""
import os
import sys
import zipfile
from qisys import ui
import qisys.command
import qisys.parse... | dmerejkowsky/qibuild | python/qipkg/actions/deploy_package.py | Python | bsd-3-clause | 1,732 |
// 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 "chrome/browser/storage_monitor/media_storage_util.h"
#include <vector>
#include "base/callback.h"
#include "base/file_util.h"
#include "ba... | loopCM/chromium | chrome/browser/storage_monitor/media_storage_util.cc | C++ | bsd-3-clause | 8,202 |
"""
SMQTK Web Applications
"""
import inspect
import logging
import os
import flask
import smqtk.utils
from smqtk.utils import plugin
class SmqtkWebApp (flask.Flask, smqtk.utils.Configurable, plugin.Pluggable):
"""
Base class for SMQTK web applications
"""
@classmethod
def impl_directory(cls):... | kfieldho/SMQTK | python/smqtk/web/__init__.py | Python | bsd-3-clause | 4,457 |
<?php
require_once 'ESys/Calendar.php';
class ESys_CalendarTest extends PHPUnit_Framework_TestCase {
public function setup ()
{
date_default_timezone_set('America/New_York');
}
public function testCalculatesIfYearIsALeapYear ()
{
$leapYear = 2004;
$nonLeapYear = 1900;
... | dellsala/ESys-Framework | test/ESys/CalendarTest.php | PHP | bsd-3-clause | 1,142 |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... | BlazesRus/niflib | include/obj/NiTransparentProperty.h | C | bsd-3-clause | 3,156 |
// Copyright 2019 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/assistant/model/assistant_ui_model.h"
#include "ash/assistant/test/assistant_ash_test_base.h"
#include "ash/assistant/ui/assistant_ui_consta... | endlessm/chromium-browser | ash/app_list/views/assistant/assistant_page_view_unittest.cc | C++ | bsd-3-clause | 27,575 |
from __future__ import unicode_literals
from django.db import models
from smartmin.models import SmartModel, ActiveManager
class Post(SmartModel):
title = models.CharField(max_length=128,
help_text="The title of this blog post, keep it relevant")
body = models.TextField(help_text... | caktus/smartmin | test_runner/blog/models.py | Python | bsd-3-clause | 1,319 |
from __future__ import absolute_import
import pkgutil
import six
MODEL_MOVES = {
"sentry.models.tagkey.TagKey": "sentry.tagstore.legacy.models.tagkey.TagKey",
"sentry.models.tagvalue.tagvalue": "sentry.tagstore.legacy.models.tagvalue.TagValue",
"sentry.models.grouptagkey.GroupTagKey": "sentry.tagstore.le... | mvaled/sentry | src/sentry/utils/imports.py | Python | bsd-3-clause | 1,880 |
from pyelectro import analysis as pye_analysis
from matplotlib import pyplot
file_name = "100pA_1a.csv"
t, v = pye_analysis.load_csv_data(file_name)
analysis_var = {
"peak_delta": 0.1,
"baseline": 0,
"dvdt_threshold": 2,
"peak_threshold": 0,
}
analysis = pye_analysis.IClampAnalysis(
v, t, analysi... | NeuralEnsemble/neurotune | examples/example_1/data_analysis.py | Python | bsd-3-clause | 489 |
// Copyright (c) 2017 Vivaldi Technologies AS. All rights reserved
#ifndef APP_VIVALDI_VERSION_CONSTANTS_H_
#define APP_VIVALDI_VERSION_CONSTANTS_H_
namespace vivaldi {
// All constants in alphabetical order. The constants should be documented
// alongside the definition of their values in the .cc file.
extern cons... | ric2b/Vivaldi-browser | app/vivaldi_version_constants.h | C | bsd-3-clause | 416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.