id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
66351421178dd52d2bd5f03b317528c152f124e9928c1f6f8d8803e7995e450e | <?php
namespace OAuth\Sina;
/**
* 新浪微博 OAuth 认证类(OAuth2)
*
* 授权机制说明请大家参考微博开放平台文档:{@link http://open.weibo.com/wiki/Oauth2}
*
* @package sae
* @author Elmer Zhang
* @version 1.0
*/
class SaeTOAuthV2 {
/**
* @ignore
*/
public $client_id;
/**
* @ignore
*/
public $client_secret;
/**
* @ignore
*/
... | PHP | module/OAuth/src/OAuth/Sina/SaeTOAuthV2.php | billyct/ta-api | bsd-3-clause | 11,765 | 462 | codeparrot/github-code |
9ea1bd333bb83115617a476b6f2a2c134afdad07367243ff749def3f77b3cc21 | using System;
using SharpVectors.Dom.Views;
namespace SharpVectors.Dom.Events
{
/// <summary>
/// Summary description for MouseEvent.
/// </summary>
public class MouseEvent
: UiEvent
, IMouseEvent
{
#region Private Fields
private long screenX;
private long screeny;
private long clientX;
private ... | C# | src/SharpVectorDom/SharpVectors/Dom/Events/MouseEvent.cs | codebutler/savagesvg | bsd-3-clause | 4,652 | 282 | codeparrot/github-code |
4118a865933287358db82c06fc9f8b99280b44a1eac5d83ac8d2f8fe672dc052 | <?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use app\common\Utility;
/* @var $this yii\web\View */
/* @var $model app\modules\work\models\Agency */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$changeattribute='';
$this->registerJs(
'$("document").ready(function(){
$("#new_agency").on(... | PHP | views/work/agency/_form.php | ranvirp/basicuser | bsd-3-clause | 1,905 | 74 | codeparrot/github-code |
8a693c73c0f0a40639922fd9005472c403d4bef17b3cfb96e6fd7d570265c18f | // 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 "chromecast/media/audio/cma_audio_output_stream.h"
#include <algorithm>
#include <limits>
#include <utility>
#include "base/bind.h"
#include "b... | C++ | chromecast/media/audio/cma_audio_output_stream.cc | endlessm/chromium-browser | bsd-3-clause | 11,229 | 335 | codeparrot/github-code |
ce95d8c35477bb15a51cac407590d719d0096d07a32b69e3291fdf9cb7d1abf0 | /* Copyright (C) 2005-2011 Fabio Riccardi */
package com.lightcrafts.ui.browser.folders;
import com.lightcrafts.platform.Platform;
import com.lightcrafts.ui.browser.ctrls.NavigationPane;
import com.lightcrafts.ui.datatips.xswing.DataTipManager;
import com.lightcrafts.ui.toolkit.MenuButton;
import com.lightcrafts.util... | Java | lightcrafts/src/com/lightcrafts/ui/browser/folders/FolderBrowserPane.java | MarinnaCole/LightZone | bsd-3-clause | 6,881 | 222 | codeparrot/github-code |
f17174fbf987af400569ca1811dd06fca56ab22ea1b55b8709aa72818b972789 | (function(Types) {
"use strict";
// Constructor
var CloseRequest = function() {
this.types_ = new Types();
this.fid_ = null;
this.lastTimeModified_ = null;
};
// Public functions
// fid: Number
CloseRequest.prototype.setFId = function(fid) {
this.fid_ = f... | JavaScript | app/scripts/smb_client/models/close_request.js | protomouse/chromeos-filesystem-cifs | bsd-3-clause | 1,121 | 47 | codeparrot/github-code |
f7d95665b06ab4df7cf9f9b0395aecbb24e6b6e6f4493a479aa6f46c6486cbfc | /**
* Copyright (C) 2010 ARToolkitPlus Authors
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* Th... | C | ofxMagicMirrorARTP/src/libs/ARToolKitPlus/Tracker.h | htw-inka/ofxMagicMirror | bsd-3-clause | 23,577 | 610 | codeparrot/github-code |
08c94568f4293fbbc0656dbd7cb22ada13506268598f115c23c3159d351e005e | #!/bin/bash -e
run_sub_stage()
{
log "Begin ${SUB_STAGE_DIR}"
pushd ${SUB_STAGE_DIR} > /dev/null
for i in {00..99}; do
if [ -f ${i}-debconf ]; then
log "Begin ${SUB_STAGE_DIR}/${i}-debconf"
on_chroot << EOF
debconf-set-selections <<SELEOF
`cat ${i}-debconf`
SELEOF
EOF
log "End ${SUB_STAGE_DIR}/${i}-debcon... | Shell | build.sh | jannik-kramer/Mean | bsd-3-clause | 4,339 | 194 | codeparrot/github-code |
efa8ae993ed457c5feb47cd2e311d5a27251146112ca8cffe69fba63e79a8db5 | @ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18N... | Batchfile | docs/make.bat | mrgambal/vulyk-declarations-review | bsd-3-clause | 6,497 | 243 | codeparrot/github-code |
012d7b7ab5ba0e4687789f46240b9878796773fdcbb3f3c6db80e5e3097d70e6 | <?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Default auth user
*
* @package Kohana/Auth
* @author Kohana Team
* @copyright (c) 2007-2009 Kohana Team
* @license http://kohanaphp.com/license.html
*/
class Model_Auth_User extends ORM {
// Relationships
protected $_ha... | PHP | modules/auth/classes/model/auth/user.php | Tidwell/HMXSongs-PHP-API | bsd-3-clause | 6,214 | 244 | codeparrot/github-code |
90a8291d447fb6d82ca8667a1835683340649ca6005960f032db8180b995badb | from __future__ import absolute_import, print_function
import base64
import logging
import six
import traceback
from time import time
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.http... | Python | src/sentry/web/api.py | gencer/sentry | bsd-3-clause | 26,313 | 690 | codeparrot/github-code |
53841def74fec4dbcba49e008464d03c2e1aa5c96a082d1d3c1d31734b416a46 | #ifndef __KITFOX_PROXY_H__
#define __KITFOX_PROXY_H__
#ifdef USE_KITFOX
#include <assert.h>
#include <string>
#include "kitfox.h"
#include "kernel/component.h"
#include "kernel/clock.h"
#include "uarch/kitfoxCounter.h"
namespace manifold {
namespace kitfox_proxy {
template <typename T>
class kitfox_proxy_request_t
{... | C | models/kitfox/proxy/kitfox_proxy.h | sixshotx/manifold | bsd-3-clause | 5,709 | 167 | codeparrot/github-code |
11f31d33cc3310a5b67c2d1f56c3fc0e5d5d78879c36eb1f530a0e99ca8d5db0 | <?php
/**
* @author James Baster <james@jarofgreen.co.uk>
* @copyright City of Edinburgh Council & James Baster
* @license Open Source under the 3-clause BSD License
* @url https://github.com/City-Outdoors/City-Outdoors-Web
*/
class CMSContentSearch extends BaseSearch {
protected $type = "";
public function... | PHP | includes/src/CMSContentSearch.class.php | City-Outdoors/City-Outdoors-Web | bsd-3-clause | 1,197 | 47 | codeparrot/github-code |
8e3b1e1fe889fd60bd9b86d80fe45bbb5a528fd2fb501faa25091d39b53e765d | // Copyright (c) 2011, David J. Pearce (djp@ecs.vuw.ac.nz)
// 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... | Java | modules/wyil/src/wyil/io/WyilFileReader.java | hjwylde/whiley-compiler | bsd-3-clause | 33,102 | 1,049 | codeparrot/github-code |
b4c2378733160e3c2ddf2d9e2e0c1d8896b31eb41f32351565d59bc745391acc | """ Models for representing top-level plot objects.
"""
from __future__ import absolute_import
from six import string_types
from ..enums import Location
from ..mixins import LineProps, TextProps
from ..plot_object import PlotObject
from ..properties import Bool, Int, String, Color, Enum, Auto, Instance, Either, List... | Python | bokeh/models/plots.py | mutirri/bokeh | bsd-3-clause | 15,027 | 493 | codeparrot/github-code |
9f1fac55edc2dacdac893f308928bf7e0cc6869073ef1707585c8efcddc8450c | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__char_min_predec_61b.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-61b.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: min Set data to the min value for char
* GoodSource:... | C | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s05/CWE191_Integer_Underflow__char_min_predec_61b.c | JianpingZeng/xcc | bsd-3-clause | 1,459 | 50 | codeparrot/github-code |
5499be5b6da610e4a1649823bd724504d9ae599fad5ea288dd2b8de14b46c13a | /*
check_virtualtable4.c -- SpatiaLite Test Case
Author: Brad Hards <bradh@frogmouth.net>
------------------------------------------------------------------------------
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... | C | src/spatialite/test/check_virtualtable4.c | zhm/node-spatialite | bsd-3-clause | 13,181 | 351 | codeparrot/github-code |
c664f08aaebcae75c413e2b5199c7662430ee00bd4911d4e1398bd59e4b1270c | /*=========================================================================
Program: Visualization Toolkit
Module: vtkBridgePointIteratorOnDataSet.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | C | GenericFiltering/Testing/Cxx/vtkBridgePointIteratorOnDataSet.h | sgh/vtk | bsd-3-clause | 2,810 | 92 | codeparrot/github-code |
e455e1dec82751d00ebcca005782125f36f77a481bf8dd7ab646f6d53039b405 | // Copyright 2012, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package mysqlctl
import (
"fmt"
)
// MysqlDaemon is the interface we use for abstracting Mysqld.
type MysqlDaemon interface {
// GetMasterAddr returns the mysq... | GO | go/vt/mysqlctl/mysql_daemon.go | apmichaud/vitess-apm | bsd-3-clause | 1,286 | 48 | codeparrot/github-code |
94526c5d9034b190156273def28ef271e4b4cb761cd01505f8e160a6f38d2bdf | package de.uni.freiburg.iig.telematik.sepia.petrinet.properties.mg;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ArrayBlockingQueue;
import de.uni.freiburg.iig.telematik.sepia.mg.abstr.AbstractMarkingGraph;
import de.uni.freiburg.iig.telem... | Java | src/de/uni/freiburg/iig/telematik/sepia/petrinet/properties/mg/MGConstructorCallable.java | iig-uni-freiburg/SEPIA | bsd-3-clause | 5,079 | 121 | codeparrot/github-code |
7ad9c6dc1f90cc58b5e4129d7f859ade4b7d5135eee543804721bc97d93871b1 | # Based on https://github.com/sivy/pystatsd
#
# Copyright (c) 2014, Steve Ivy
# All rights reserved.
#
# Copyright (c) 2015. Librato, 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:
# * R... | Python | librato_python_web/statsd/server/daemon.py | librato/librato-python-web | bsd-3-clause | 4,981 | 150 | codeparrot/github-code |
5959eef98ecbe756bb4f27ed7b4476ffefe207afbc14e32b2f56a8c09420c83e | <?php
/*
* Autor : Juan Carlos Ludeña Montesinos
* Año : Mayo 2016
* Descripción :
*
*/
namespace Application\View\Helper;
use Zend\View\Helper\AbstractHelper;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class SectionContenido extends Abstr... | PHP | web/Application/src/Application/View/Helper/SectionContenido.php | NextTrick/cp | bsd-3-clause | 934 | 33 | codeparrot/github-code |
6becae12aabf238ca9e3464c59dc1723756862db61b40daf2b152c8b4d1ebd54 | /**
*============================================================================
* 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... | Java | cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/browse/BaseCatalogEntryAbstractController.java | NCIP/cagrid-portal | bsd-3-clause | 2,847 | 90 | codeparrot/github-code |
52b4fa50aaab5cea3736920abbb5ed303ba0e445f34073ec3893cf53eb7d9b7f | package de.hbrs.aspgen.plugin.activator;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
publ... | Java | aspgen-plugin/src/de/hbrs/aspgen/plugin/activator/Activator.java | FuriKuri/aspgen | bsd-3-clause | 1,366 | 62 | codeparrot/github-code |
f80663b83194faf727b4573bf0e74448781f9f4cb3715148561ac93534e43529 | // Copyright 2010 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 json implements encoding and decoding of JSON objects as defined in
// RFC 4627.
package json
import (
"bytes"
"encoding/base64"
"os"
"reflect"... | GO | src/pkg/json/encode.go | SDpower/golang | bsd-3-clause | 8,795 | 368 | codeparrot/github-code |
3501aa2b6e708e20d02840cf1a0d8f021f7e43720788da18f68e09815bc1e121 | --
-- xmonad example config file.
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
import XMonad
import Data.Monoid
import System.Exit
import qualified XMonad.StackSet ... | Haskell | man/xmonad.hs | markus1189/xmonad-710 | bsd-3-clause | 9,677 | 283 | codeparrot/github-code |
95500274935a4a23001513ed9f38480ee028a162ef0bc7d58cbdd7848e5d4101 | // 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.
#include "components/gcm_driver/gcm_stats_recorder_impl.h"
#include <stdint.h>
#include <string>
#include <vector>
#include "base/containers/circular_d... | C++ | components/gcm_driver/gcm_stats_recorder_impl_unittest.cc | endlessm/chromium-browser | bsd-3-clause | 20,897 | 538 | codeparrot/github-code |
3a02afad3ae5016add5692153bfa028bac3fcadc57590ae40ea8cc9f2618b2d7 | // Copyright 2016 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 COURGETTE_INSTRUCTION_UTILS_H_
#define COURGETTE_INSTRUCTION_UTILS_H_
#include <stdint.h>
#include "base/callback.h"
#include "base/macros.h"
#i... | C | courgette/instruction_utils.h | endlessm/chromium-browser | bsd-3-clause | 2,218 | 73 | codeparrot/github-code |
8ed3cce73f49c69a9b7930c6b5be8ce891f11ce58e5557055423c6f6e8661673 | require 'rubygems'
require 'rubygems/package'
require 'rubygems/user_interaction'
require 'tempfile'
require 'rbconfig'
require 'gpg_status_parser'
require 'rubygems/openpgp/keymaster'
require 'rubygems/openpgp/options'
require 'rubygems/openpgp/gpg_helpers'
require 'rubygems/openpgp/openpgpexception'
require 'rubyg... | Ruby | lib/rubygems/openpgp/verification.rb | grant-olson/rubygems-openpgp | bsd-3-clause | 6,280 | 192 | codeparrot/github-code |
6c47761d83f9e3994ad6e4129cec481c73f90aa4a3587801a17e671aca0cc84d | #! /usr/bin/perl
package FwRpmPackage;
use strict;
use warnings;
BEGIN {
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
# if using RCS/CVS, this may be preferred
$VERSION = sprintf "%d.%03d", q$Revision: 1.7 $ =~ /(\d+)/g;
@ISA = qw (Exporter);
@EXPORT = ... | Perl | fw/package/rpm/FwRpmPackage.pm | dhull/fw | bsd-3-clause | 15,918 | 543 | codeparrot/github-code |
d069c6e493153d4294ba1b2db73cb7cf957d5d36fcac6b8d4c8b14e6d9debb87 | /* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.storage.sqlite;
import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
import java.util.Map;
im... | Java | src/storage/sqlite/core/src/main/java/org/geogit/storage/sqlite/SQLiteConfigDatabase.java | markles/GeoGit | bsd-3-clause | 5,766 | 220 | codeparrot/github-code |
ae157ff330d2f0e9e6e2b602e96aafcee96da091e8cb7c67539026cc382f240c | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ElectroionizationSubshellElectronScatteringDistributionACEFactory.hpp
//! \author Luke Kersting
//! \brief The subshell electroionization scattering distribution ACE factory declaration
//!
//--------------------... | C++ | packages/monte_carlo/collision/native/src/MonteCarlo_ElectroionizationSubshellElectronScatteringDistributionACEFactory.hpp | lkersting/SCR-2123 | bsd-3-clause | 2,430 | 59 | codeparrot/github-code |
9a2901ae5aaae6c7c3d8ffd45484557fbc76e05a97fd20ef08520f796df22d86 | {% load i18n satchmo_category satchmo_google satchmo_util satchmo_currency satchmo_discounts app_plugins normalize_decimal %}
{% block doctype %}<?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">
<htm... | HTML | satchmo/apps/satchmo_store/shop/templates/base.html | thoreg/satchmo | bsd-3-clause | 4,585 | 126 | codeparrot/github-code |
153302c57f47f048f92ae08c1f3a1e3f887ec086d2f475fcb5c2fa4af588ac9a | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*\
______]|]]]]|]__]|]]]]|]__]|]]]]]|]__]|]]]]|]__]|]__]|]__]|]]]]|]_______,_______
_____]|]__]|]__]|]_______]|]___]|]__]|]__]|]___]|]_]|]__]|]__]|]_______, ,______
____]|]__]|]__]|]]]]|]__]|]]]]]|]__]|]__]|]____]|]]|]__]|]__]|]_______, ,_... | C++ | include/rservr/plugin-dev/header-macro.hpp | ta0kira/rservr | bsd-3-clause | 4,164 | 84 | codeparrot/github-code |
84e3fe35ed76ac321fd2dc0f547e7234ba5b2a9d740cea9076bfe70b9b1cebea | #include "SoftwareSpMV.h"
#include <iostream>
#include "timer.h"
using namespace std;
SoftwareSpMV::SoftwareSpMV(SparseMatrix * A, SpMVData *x, SpMVData *y) :
SpMV(A, x, y) {
m_allocX = false;
m_allocY = false;
m_execTime = 0;
m_cmsTime = 0;
m_maxAliveTime = 0;
m_maxColSpanTime = 0;
m_maxAlive = 0;
m_maxCol... | C++ | software/SoftwareSpMV.cpp | maltanar/spmv-vector-cache | bsd-3-clause | 2,825 | 132 | codeparrot/github-code |
cd5eee6efbd9541aa591d62c43c925fdf12cebf562852fec62ca2105a3079e54 | """Gaussian processes regression."""
# Authors: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# Modified by: Pete Green <p.l.green@liverpool.ac.uk>
# License: BSD 3 clause
import warnings
from operator import itemgetter
import numpy as np
from scipy.linalg import cholesky, cho_solve
import scipy.optimize
from .... | Python | sklearn/gaussian_process/_gpr.py | kevin-intel/scikit-learn | bsd-3-clause | 22,428 | 522 | codeparrot/github-code |
fdab8742a09b9152857458dba2e3dad17e6f82747343e982fccbc3befc49050c | # -*- coding: utf-8 -*-
from apps.registro.models.ExtensionAulicaConexionInternet import ExtensionAulicaConexionInternet
from apps.registro.models.TipoConexion import TipoConexion
from django.core.exceptions import ValidationError
from django import forms
class ExtensionAulicaConexionInternetForm(forms.ModelForm):
... | Python | meregistro/apps/registro/forms/ExtensionAulicaConexionInternetForm.py | MERegistro/meregistro | bsd-3-clause | 1,222 | 35 | codeparrot/github-code |
b5186bd1ec1b2682f0543b53ae454bd484c7d42ae9c0f57059f544532bd7cfe1 | {-|
This module provides the /Remove Weak Suffixes/ processor.
Let @Wl#@ be forward closed, then
@
|- <S# / W# + W, Q, T#> :f
-------------------------------------
|- <S# / W# + Wl# + W, Q, T#> :f
@
-}
module Tct.Trs.Processor.DP.DPGraph.RemoveWeakSuffixes
( removeWeakSuffixesDeclaration
, removeWe... | Haskell | src/Tct/Trs/Processor/DP/DPGraph/RemoveWeakSuffixes.hs | ComputationWithBoundedResources/tct-trs | bsd-3-clause | 4,815 | 122 | codeparrot/github-code |
486672f46ba99e2d2d3f7755ba75bfd3d1e39c6eeafb5a402c1ec337ebac3033 | <?php
/////////////////////////////////////////////////////////////////////////////////////
// xbtit - Bittorrent tracker/frontend
//
// Copyright (C) 2004 - 2012 Btiteam
//
// This file is part of xbtit.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitte... | PHP | blocks/dropdownmenu_block.php | cybyd/cybyd | bsd-3-clause | 22,222 | 282 | codeparrot/github-code |
56a34cdfc111d64ae81c05bfa36cc74894395364fa6c4174b5316d3628832ee3 | var should = require('should')
, mock = require('nodemock')
, util = require('utile')
, odm = require('../lib/stork')
;
var empty = function() {}
, makeName = function() {
return util.randomString(10).replace('_', '');
}
;
exports['Entity#to has #sync'] = {
setUp: function(cb) {
var docNam... | JavaScript | test/entity_to_sync_tests.js | curtissimo/stork | bsd-3-clause | 8,524 | 328 | codeparrot/github-code |
0b0655ed52b08739d3b9c5efa8f2d3753f03e0c6cabbed112307432b4f7c2517 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.discrete.discrete_model.NegativeBinomialP.cov_params_func_l1 — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link ... | HTML | v0.10.1/generated/statsmodels.discrete.discrete_model.NegativeBinomialP.cov_params_func_l1.html | statsmodels/statsmodels.github.io | bsd-3-clause | 7,965 | 170 | codeparrot/github-code |
553cf740337d6601b2a26ca4ca68c920969fde4268183f8016355c3bdd8d28f2 | <?php
namespace Gentile\Model;
use Zend\Db\TableGateway\TableGateway;
class JoueurTable
{
protected $tableGateway;
public function __construct(TableGateway $tableGateway)
{
$this->tableGateway = $tableGateway;
}
public function fetchAll()
{
$resultSet = $this->tableGateway->select();
return $result... | PHP | module/Gentile/src/Gentile/Model/JoueurTable.php | jihaneM/zendf-Gentile | bsd-3-clause | 1,169 | 63 | codeparrot/github-code |
0f3bd4130bb3220ab61a3e72d8c377c162be57e8ff189d3f7a0d2975e87a2570 | <?php
/**
* NOTE: Nama Class harus diawali Hurup Besar
* Server Linux : hurup besar/kecil bermasalah -case sensitif-
* Server Windows : hurup besar/kecil tidak bermasalah
* Author: -ptr.nov-
*/
namespace lukisongroup\controllers\dashboard\esm;
/* VARIABLE BASE YII2 Author: -YII2- */
use Yii;
use yii\web\Control... | PHP | lukisongroup/controllers/dashboard/esm/SalesController.php | farindra/advanced | bsd-3-clause | 1,254 | 51 | codeparrot/github-code |
73cdca68917d43c7db13637764f122b8416d45d9ad01c749faaf357d242ed689 | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
**********************************************... | Java | codebase/antfiles/src/java/gov/nih/nci/cagrid/ant/Deinstrument.java | NCIP/c3pr | bsd-3-clause | 1,866 | 78 | codeparrot/github-code |
cd962439a696e2f21bd7a88901650db733b43dca8777753334d24e5e6729f201 | #!/usr/bin/env python
"""
For basic applications, MPI is as easy to use as any other
message-passing system. The sample code below contains the complete
communications skeleton for a dynamically load balanced master/slave
application. Following the code is a description of the few functions
necessary to write typic... | Python | mpi-submit2.py | fspaolo/mpisubmit | bsd-3-clause | 3,645 | 138 | codeparrot/github-code |
a20aea10578c7d104ebd496224c3180da6c54840b2db036ac93cc5229cdf4b35 | // 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/sync/test/integration/bookmarks_helper.h"
#include "base/compiler_specific.h"
#include "base/file_util.h"
#include "base/pat... | C++ | chrome/browser/sync/test/integration/bookmarks_helper.cc | nacl-webkit/chrome_deps | bsd-3-clause | 27,478 | 758 | codeparrot/github-code |
c6a3dc3cefbabf4fc7da5943b4713e4ba55c8519542d5ea55f51ec40fa4ee436 | /*
* Copyright (C) 2013 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 conditio... | C++ | Source/wtf/PartitionAlloc.cpp | smilusingjavascript/blink | bsd-3-clause | 42,610 | 983 | codeparrot/github-code |
181bb8b68abd7dcb1481495e0c44891971141df69327a8508ff6a1cc22ebc347 | package com.mistraltech.bog.core.picker;
import org.junit.Test;
import static com.mistraltech.bog.core.picker.NaturalDefaultValuePicker.naturalDefault;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.assertThat;
public class NaturalDefault... | Java | src/test/java/com/mistraltech/bog/core/picker/NaturalDefaultValuePickerTest.java | mistraltechnologies/bog | bsd-3-clause | 2,238 | 75 | codeparrot/github-code |
e47611848a2a09b90dc2986e1f229ed25222bf2457997f74fc31c8ab0a2ec194 | <!DOCTYPE html>
<html>
<head>
<title>Solar System Exploration History - Launch Centers</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" media="screen" href="../seh.css" type="text/css">
<style type="text/css">
a.close { display:none; }
.infoPopup { borde... | HTML | seh-doc/list-lc.html | ofrohn/ofrohn.github.io | bsd-3-clause | 2,549 | 91 | codeparrot/github-code |
ee8cc25fe621df4ef97c5a40c32b0741d0484a817ec9044f386ea55d08068261 | <!DOCTYPE HTML>
<html i18n-values="dir:textdirection;">
<head>
<meta charset="utf-8">
<title i18n-content="title"></title>
<style>
body {
margin: 10px;
min-width: 47em;
}
a {
color: blue;
font-size: 103%;
}
div#header {
margin-bottom: 1.05em;
overflow: hidden;
padding-bottom: 1.5em;
padding-left: 0;
... | HTML | chrome/browser/resources/extensions_ui.html | rwatson/chromium-capsicum | bsd-3-clause | 22,839 | 865 | codeparrot/github-code |
4ebc6032d7da5cff3e4f933f751c5c6870da3e6fc29fb38d2e790c110bf67ebe | // Copyright (c) 2009, Whispersoft s.r.l.
// 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 cond... | C | whisperlib/common/base/re.h | cpopescu/whispercast | bsd-3-clause | 2,815 | 86 | codeparrot/github-code |
604e03053d5130f0f82fd3a9913804fa2219b3935dd21b2912a7cb8d7b297b6c | <?php
/**
* This code is free software; you can redistribute it and/or modify it under
* the terms of the new BSD License.
*
* Copyright (c) 2008-2014, Sebastian Staudt
*
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
*/
namespace SteamCondenser\Servers\Sockets;
use Monolog\Logge... | PHP | lib/SteamCondenser/Servers/Sockets/RCONSocket.php | Muppet1856/steam-condenser-php | bsd-3-clause | 3,734 | 129 | codeparrot/github-code |
ec50d2f5443dec940bd33c549ba109d8946dd2e86dcd703fe76db3ca0a17c22f | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Javadoc API documentation for TrAP Parent." />
<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>
... | HTML | apidocs/reference/com/ericsson/research/trap/TrapPeer.html | princeofdarkness76/trap | bsd-3-clause | 54,536 | 1,628 | codeparrot/github-code |
958d50b700e786d25def3236a20504e0b84a14ddf39c74b0e2b9f6ac47282141 | #pragma once
#include <vector>
#include <Core/RaCore.hpp>
#include <Eigen/Core>
namespace Ra {
namespace Core {
/// This class stores a D-dimensional grid of elements of arbitrary type.
/// in a contiguous memory block. Elements are stored in column-major order.
/// e.g. for a 3x3x3 array the element vector looks li... | C++ | src/Core/Containers/Grid.hpp | Zouch/Radium-Engine | bsd-3-clause | 7,922 | 241 | codeparrot/github-code |
b01163087aa7e414fa9e316e7da7c122b4c9e047a24bcce2aaf9f4b54ef1db77 | #include "nodes/matmul.h"
#include <glog/logging.h>
MatMul::MatMul(deepflow::NodeParam *param) : Node(param) {
LOG_IF(FATAL, param->has_matmul_param() == false) << "param.has_matmul_param() == false";
}
void MatMul::init() {
auto a = _inputs[0];
auto b = _inputs[1];
auto ad = a->value()->dims();
auto bd = b-... | C++ | src/nodes/matmul.cpp | omidsakhi/deepflow | bsd-3-clause | 2,121 | 64 | codeparrot/github-code |
469b91ef75f9ab60b9594889c6c9d9e929060966822701ebec93fae5ab67415a | {% extends "vt_plugin_base.html" %}
{% block title %}{% if create %}Add Virtualization Aggregate{% else %}Update Virtualization Aggregate {{ aggregate.name }}{% endif %}.{% endblock title %}
{% block content %}
<div class="main">
<form enctype="multipart/form-data" method="post" action="">{% csrf_token %}
<table cl... | HTML | expedient/src/python/plugins/vt_plugin/views/templates/default/vt_plugin_aggregate_crud.html | avlach/univbris-ocf | bsd-3-clause | 2,173 | 63 | codeparrot/github-code |
15fa92dd9b15bedf00c8aaa8ef443d65bc42d45364d954de0509736efd27e7e0 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2010, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and us... | C | SeqAn1.3/seqan/store/store_io_sam.h | wuzhigang05/adaptor_trimmer | bsd-3-clause | 58,335 | 1,591 | codeparrot/github-code |
1aa2740803a6d44a05f9373d2de06c42c7ecb0fbee2db413450e1a82cf548ae4 | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | C | coast/modules/Queueing/Test/QueueWorkingModuleTest.h | zer0infinity/CuteTestForCoastTest | bsd-3-clause | 1,183 | 46 | codeparrot/github-code |
13978122b1061eaff84e39314a4221f87437d92fe477da9101efb5d84c1b19f7 | <?php
/**
* EasySpinRdf
*
* LICENSE
*
* Copyright (c) 2009-2013 Nicholas J Humfrey. 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 abo... | PHP | lib/EasySpinRdf/Resource.php | conjecto/easyspinrdf | bsd-3-clause | 7,431 | 190 | codeparrot/github-code |
05dfe9d1157962990bdd74d1448b10bd759ddc1b0753220ee4f143f85a05a620 | # -*- coding: utf-8 -*-
"""Base stuff for providers that handle filesystem directories."""
from xal.provider import ResourceProvider
from xal.dir.resource import Dir
class DirProvider(ResourceProvider):
"""Base class for filesystem directories."""
def __init__(self, resource_factory=Dir):
super(DirPro... | Python | xal/dir/provider.py | benoitbryon/xal | bsd-3-clause | 895 | 31 | codeparrot/github-code |
8e9487c7696dba0d498ec490b3ac082e77999909a05f782d756a195af2b0a3cb | package git
import (
"bytes"
"io/ioutil"
"os"
"path/filepath"
)
func (r *Repo) resolveRef(name string) (id Id) {
if id := r.refs[name]; id != "" {
return id
}
content, err := ioutil.ReadFile(r.file(name))
if err != nil {
panic(err.Error())
return ""
}
content = bytes.TrimSpace(content)
if bytes.HasPr... | GO | refs.go | edsrzf/go-git | bsd-3-clause | 1,572 | 80 | codeparrot/github-code |
eea37d94d1107cb81774051d974be0e2855fdfd3bff88519f2c156bc6aedc298 | from __future__ import absolute_import
from django.utils.html import escape
from sentry.utils.http import absolute_uri
from .base import ActivityEmail
class RegressionActivityEmail(ActivityEmail):
def get_activity_name(self):
return 'Regression'
def get_description(self):
data = self.activ... | Python | src/sentry/plugins/sentry_mail/activity/regression.py | mitsuhiko/sentry | bsd-3-clause | 918 | 31 | codeparrot/github-code |
e80da95732e035b48f845b1aebde6de44de766c5a15d0b78808609f21b5a7944 | import _ from 'underscore';
import uuid from 'uuid-v4';
import BitbucketCommitMalformedError from '../../middleware/bitbucketCommitMalformedError';
import getProperties from './getProperties';
import VcsFamilies from '../helpers/vcsFamilies';
const bitbucketTranslator = {
family: VcsFamilies.Bitbucket,
canTranslat... | JavaScript | src/app/api/translators/es6/bitbucketTranslator.js | openAgile/CommitStream.Web | bsd-3-clause | 2,540 | 77 | codeparrot/github-code |
3cdd9741fb9300df29817291f7f1d837e6a2901f86240b4b3393a31fb3a80a3e | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_struct_calloc_74a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-74a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory ... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s02/CWE762_Mismatched_Memory_Management_Routines__delete_array_struct_calloc_74a.cpp | JianpingZeng/xcc | bsd-3-clause | 3,368 | 124 | codeparrot/github-code |
be76614b9001c8b07210faf7b21a6297422d5ee4c1cada43e8281e2f1e43bd45 | '''Test for ratio of Poisson intensities in two independent samples
Author: Josef Perktold
License: BSD-3
'''
import numpy as np
import warnings
from scipy import stats
from statsmodels.stats.base import HolderTuple
from statsmodels.stats.weightstats import _zstat_generic2
def test_poisson_2indep(count1, exposu... | Python | statsmodels/stats/rates.py | statsmodels/statsmodels | bsd-3-clause | 12,513 | 360 | codeparrot/github-code |
5e487c5e9d969c40adbc1cd195586547cfb4cebdfe6bb5bb7a61ea96ab6f837f | <?php
/**
*
*
*
*/
class ContextLayerMapableBackgroundLayers extends Action implements iAction {
public function __construct() {
parent::__construct();
$this->ActionName(__CLASS__);
$this->FinderName("ContextLayerFinder");
}
public function __destruct() {
parent::__... | PHP | applications/Finder/ContextLayer/ContextLayerMapableBackgroundLayers.action.class.php | jcu-eresearch/TDH-Tools | bsd-3-clause | 750 | 41 | codeparrot/github-code |
ab6ff93bfa5aa16f5675f565a5795dd412267faa22a78c21dc2c6d003fac5276 | // Copyright (c) 2009, 2010, 2011, Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
//
#ifndef LINKEDBUFFER_H
#define LINKEDBUFFER_H
// All inline, do not export.
//#include <Common/QuickFAST_Export.h>
#include "LinkedBuffer_fwd.h"
namespace QuickFAST
{
namespace ... | C | src/Communication/LinkedBuffer.h | jblunck/quickfast | bsd-3-clause | 14,725 | 485 | codeparrot/github-code |
8c2fa589499b79d88b038b0200faa6368f4a44de595f9b7463177416e8fd34e3 | /*
* Copyright (c) Dominick Baier, Brock Allen. All rights reserved.
* see license
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Thinktecture.IdentityServer.Core.Authentication;
namespace Thinktecture.IdentityServer.Core.Ser... | C# | source/Core/Services/InMemory/InMemoryUserService.cs | maz100/Thinktecture.IdentityServer.v3 | bsd-3-clause | 3,896 | 123 | codeparrot/github-code |
67213dffc1cc7a3bc9eba3cf514b6ba62236c617ea04e568d7cf5b195fc655e5 | #ifndef _QUAD_GRID_H
#define _QUAD_GRID_H
#include <ros/ros.h>
#include <ros/console.h>
#include <limits>
#include <visualization_msgs/MarkerArray.h>
#include <pcl/ros/conversions.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <boost/multi_array.... | C | mlsm_manager/include/QuadGrid.h | Aridane/underwater_map_construction | bsd-3-clause | 988 | 54 | codeparrot/github-code |
fbc33359509fbec983d6e10d23ecfce1adf6883327e4d5d15baf1026b924a6d1 | /**
* \file ChaosPlot.h
* \brief Headers for ChaosPlot.cpp
*/
#ifndef CHAOSPLOT_H
#define CHAOSPLOT_H
#include <wx/dcbuffer.h>
#include <wx/panel.h>
#include <wx/wx.h>
class ChaosPlot : public wxPanel
{
public:
// class constructor
ChaosPlot(wxWindow* parent,
wxWindowID id =... | C | src/ChaosPlot.h | chaoscircuit/chaosconnect | bsd-3-clause | 2,385 | 82 | codeparrot/github-code |
894c68501ac57ffa91b401aa210a4afe7d45e9a44dedf98b9bfcf38fd8e33e4f | <?php
/*
* Copyright 2007-2011 Charles du Jeu <contact (at) cdujeu.me>
* This file is part of AjaXplorer.
*
* AjaXplorer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of ... | PHP | public/ajaxplorer/plugins/downloader.http/class.HttpDownloader.php | Tlapi/Noodle | bsd-3-clause | 7,979 | 215 | codeparrot/github-code |
ea0bc58a9f5fb4182ccfa432067506443b4b74b0f6f12496e212f637441672b5 | \documentclass[a4paper,10pt,fleqn]{article}
%%% Packages
\usepackage{graphicx} % use graphics
\usepackage{color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{url}
\usepackage{multicol}
% Dansk ops√¶tning (husk renew commands efter begin)
\usepackage[utf8]{inputenc}
\usepackage[danish]{babel}
\usepackage[T1]... | TeX | rmuast_s17_module_6/module_info/rmuast_s17_module_6.tex | carentsen/RMUAST | bsd-3-clause | 2,886 | 100 | codeparrot/github-code |
5edab8350cc48fbf675d53ad2797dbabcdd11b857c27e6e33d717dc0cf0af958 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPPCAStatistics.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... | C | Filters/ParallelStatistics/vtkPPCAStatistics.h | cjh1/vtkmodular | bsd-3-clause | 2,527 | 70 | codeparrot/github-code |
be380cacf983d71ac6e221d35adc7153dbab16cc305395e838669ba8e308eda0 | /*global Backbone */
hqDefine("cloudcare/js/formplayer/users/models", function () {
var User = Backbone.Model.extend();
var CurrentUser = Backbone.Model.extend({
initialize: function () {
this.on('change:versionInfo', function (model) {
if (model.previous('versionInfo') && m... | JavaScript | corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/models.js | dimagi/commcare-hq | bsd-3-clause | 1,251 | 43 | codeparrot/github-code |
13ac01fb41d6fb5f73658302c192fcbbd5c368e3cdfacdd3ece0907f6f4a281b | define(["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "dojo/has", "./CartesianBase", "./_PlotEvents", "./common",
"dojox/lang/functional", "dojox/lang/functional/reversed", "dojox/lang/utils", "dojox/gfx/fx", "dojox/gfx/gradutils"],
function(lang, arr, declare, has, CartesianBase, _PlotEvents, dc, df, ... | JavaScript | plot2d/Scatter.js | ibm-js/dcharting | bsd-3-clause | 6,735 | 207 | codeparrot/github-code |
ed8963f098c432542517991678766c5515051740a35810bb282e602cda5285f5 | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C | src/chrono_mumps/ChSolverMumps.h | amelmquist/chrono | bsd-3-clause | 4,441 | 100 | codeparrot/github-code |
67e30027af57dcbdf91f74a1947d95318076c2c98000ba408922ccc0ef380a8f | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* 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 ... | C# | OpenSim/Region/CoreModules/Framework/InventoryAccess/HGInventoryAccessModule.cs | AlexRa/opensim-mods-Alex | bsd-3-clause | 8,568 | 221 | codeparrot/github-code |
40f4e7f4c11266d51d8f9c153b71dc86d021be6aa71ca4fd939512a20a9159be | import inspect
def get_attributes(obj):
if isinstance(obj, dict):
return obj.keys()
attributes = inspect.getmembers(obj, lambda a: not(inspect.isroutine(a)))
return [attr[0] for attr in attributes if not(attr[0].startswith('__') and attr[0].endswith('__'))]
class AttributesCache(object):
... | Python | mapperpy/attributes_util.py | lgrech/MapperPy | bsd-3-clause | 1,031 | 32 | codeparrot/github-code |
b37a68e0b9a5b7a109c53e2f3a35e0554b6f247f14910733c841a5e1a7ca77ab | /*
* powercube_commands_wrapper
*
* Created on: Aug 30, 2012
* Authors: Francisco Viña
* fevb <at> kth.se
*/
/* Copyright (c) 2012, Francisco Vina, KTH
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the ... | C | dumbo_powercube_chain/common/include/dumbo_powercube_chain/powercube_commands_wrapper.h | kth-ros-pkg/dumbo_driver | bsd-3-clause | 5,150 | 124 | codeparrot/github-code |
f3639c703ae1053da41c67b2bc754cc763c602211f1ec7050066d9af757bb32c | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | Java | org.caleydo.core/src/org/caleydo/core/data/datadomain/ADataDomain.java | Caleydo/caleydo | bsd-3-clause | 5,511 | 206 | codeparrot/github-code |
5e9777f04fc7896288a3d5df85143674c3180d9a4c54a562f87e5d1ba7f0bcbb | /*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list o... | Java | core/src/main/java/org/hisp/dhis/android/core/dataset/SectionGreyedFieldsLink.java | dhis2/dhis2-android-sdk | bsd-3-clause | 2,841 | 75 | codeparrot/github-code |
ebd7a999e099e1ec4c461cf9c01bfed4a850b601a6de5c23bdd13daa032c9182 | namespace ACT.SpecialSpellTimer
{
partial class SelectZoneForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | ACT.SpecialSpellTimer/SelectZoneForm.Designer.cs | xtuaok/ACT.SpecialSpellTimer | bsd-3-clause | 6,267 | 128 | codeparrot/github-code |
87ed7fb291ae7f34c39ee3d4b6c8cc828069252b75a92b6be39fa78631a561a6 | from collections import OrderedDict
from copy import copy
from floppy.FloppyTypes import Type, MetaType
from threading import Lock
from os.path import isfile
import floppy.graph
NODECLASSES = {}
_NODECLASSES = {}
# STOREDVALUES = {}
class InputNotAvailable(Exception):
pass
class InputAlreadySet(Exception):
... | Python | floppy/node.py | JLuebben/Floppy | bsd-3-clause | 49,457 | 1,503 | codeparrot/github-code |
f9f259aa4bf443973386cdcd60eb1eafe7b566598321aae21eb6f6e3cbe9ecda | /*L
* Copyright Northwestern University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.io/psc/LICENSE.txt for details.
*/
package edu.northwestern.bioinformatics.studycalendar.restlets;
import edu.northwestern.bioinformatics.studycalendar.core.Fixtures;
import edu.northwes... | Java | web/src/test/java/edu/northwestern/bioinformatics/studycalendar/restlets/ActivityResourceTest.java | NCIP/psc | bsd-3-clause | 7,653 | 199 | codeparrot/github-code |
1f300b9bdf91b9a2031b6906e3aad6cfa62e63d66c25e421592849f9847289cd | function chooseSearchForm( id, slide )
{
if ( slide == undefined ) {
slide = false;
}
$('form.search-form').each( function() {
if ( this.id == id ) {
if (slide) {
$(this).slideDown();
}
else {
$(this).show();
}
}
else {
if (slide) {
... | JavaScript | public/views/tidhar/js/search.js | yitznewton/emeraldview-tidhar | bsd-3-clause | 6,314 | 245 | codeparrot/github-code |
58b013f1fcbccc72f49afe0e71ca7d6200158226fe7c4a95036f17198b38888d | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fgets_84_goodG2B.cpp
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__malloc.label.xml
Template File: sources-sinks-84_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: ... | C++ | xcc/test/juliet/testcases/CWE789_Uncontrolled_Mem_Alloc/s01/CWE789_Uncontrolled_Mem_Alloc__malloc_wchar_t_fgets_84_goodG2B.cpp | JianpingZeng/xcc | bsd-3-clause | 2,259 | 59 | codeparrot/github-code |
9b153a310d7d732c521ea47b1a715a26876f5e4353307fdae47aac9bf056b39f | package com.hitler.core.services;
import java.util.Date;
import java.util.List;
import org.bson.Document;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.core.query.BasicQuery;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.dat... | Java | saas-mongo/src/main/java/com/hitler/core/services/GenericService.java | onsoul/ha-db | bsd-3-clause | 2,924 | 97 | codeparrot/github-code |
c130cc95d8790ee956b7d1550995c3a3d35a8166695ad29285bfbdb5d1771486 | {-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE TemplateHaskell #-}
module Types.Posts
( ClientMessage
, newClientMessage
, cmDate
, cmType
, cmText
, ClientMessageType(..)
, Attachment
, mkAttachment
, attachmentName
, attachmentFileId
, attachmentURL
, ClientPostType(..)
, ClientPost
, toClie... | Haskell | src/Types/Posts.hs | aisamanra/matterhorn | bsd-3-clause | 6,677 | 224 | codeparrot/github-code |
1526e4f2d3442577c1e54c8fd9be61d8e46c695a2859d7752b35ad355407e0cb | =begin
TODO: What happens if this gets run again before the next compaction?
We need to note, for each chunk, if it already is moving to a new store. That way if we
run this again, we can recalculate based on where the chunks are already slated to move to.
Chunks already moving could be redirected, but ONLY if we do-so... | Ruby | lib/monotable/local_store/path_store_balancer.rb | Imikimi-LLC/monotable | bsd-3-clause | 3,322 | 104 | codeparrot/github-code |
b57e08db4a6a07b157be46783c42a50f374ef8508276516da2b6835cf554b015 | package org.buildmlearn.toolkit.templates;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.view.View;
import android.widget.BaseAdapter;
import android.widget.EditText;
imp... | Java | source-code/app/src/main/java/org/buildmlearn/toolkit/templates/VideoCollectionTemplate.java | opticod/BuildmLearn-Toolkit-Android | bsd-3-clause | 18,928 | 515 | codeparrot/github-code |
d7e6219d4323514935fecbe6036fe45a038fa88d63814e7f5b5e31fcd960f682 | #define PY_SSIZE_T_CLEAN
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#include "numpy/arrayobject.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "usertypes.h"
#include "common.h"
#include "buffer.h"
/*
* The casting to use for implicit assignment opera... | C | numpy/core/src/multiarray/common.c | astrofrog/numpy | bsd-3-clause | 19,036 | 661 | codeparrot/github-code |
188513d95aae474c87847298a5ae968757ac7827839476b32761f363c7c62984 | <?php
namespace app\models\master;
use Yii;
/**
* This is the model class for table "{{%product}}".
*
* @property integer $id
* @property integer $group_id
* @property integer $category_id
* @property string $code
* @property string $name
* @property integer $status
* @property boolean $stockable
* @proper... | PHP | app/models/master/Product.php | deesoft/yii2-mini-erp | bsd-3-clause | 3,826 | 152 | codeparrot/github-code |
f5dfba93633590e104ff2e4b77dffe24f62201b68eae66492658785b57cf86b0 | -- Copyright (c) 2016-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.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Numeral.HU.Corpus
( corpus ) where
import Data.String
impo... | Haskell | Duckling/Numeral/HU/Corpus.hs | facebookincubator/duckling | bsd-3-clause | 2,220 | 98 | codeparrot/github-code |
53c192429d80615e21bae0b297ebe1a000ab2a4c8da7c725c5c90934d6dca155 | <?php
/**
* Фабрика. Содержит алогритм выбора стратегии авторизации
*
* @file UserAuthFactory.php
*
* PHP version 7.1+
*
* @author Alexander Yancharuk <alex at itvault dot info>
* @copyright © 2012-2021 Alexander Yancharuk
* @date Вск Янв 27 17:34:29 2013
* @license The BSD 3-Clause License
* ... | PHP | Auth/UsrAuthFactory.php | nafigator/Veles | bsd-3-clause | 2,193 | 108 | codeparrot/github-code |
9c7d5a8627d12cafe24469318c3ca208ba7e52062f416d9adfbfefbaca809840 | /*
* Copyright (C) 2004-2017, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata.model;
import com.gooddata.AbstractService;
import com.gooddata.FutureResult;
imp... | Java | src/main/java/com/gooddata/model/ModelService.java | standevgd/gooddata-java | bsd-3-clause | 7,505 | 196 | codeparrot/github-code |
73792b6ddf60fc37d431a4ee16e42e04ed215e58964c722c939f9f4bd18937fd | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, Willow Garage, Inc.
* Copyright (c) 2014-2015, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | C++ | src/math/transform.cpp | mamoll/fcl | bsd-3-clause | 12,812 | 449 | codeparrot/github-code |
7d462910ebbcba5e1919f8b1784a5df6961a1ffcef6f4c3219a0beb41cb7df0b | // Copyright 2016 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 THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_LENGTH_PAIR_INTERPOLATION_TYPE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_LENGTH_PAIR_... | C | third_party/blink/renderer/core/animation/css_length_pair_interpolation_type.h | endlessm/chromium-browser | bsd-3-clause | 1,495 | 35 | codeparrot/github-code |
f2c6bf19c3b52621d32ca7d898dbc95f72fd9ef97a7824386134f0e10a47af4b | // 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 "base/command_line.h"
#include "base/path_service.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/infobars/infobar_tab_h... | C++ | chrome/test/gpu/gpu_crash_browsertest.cc | leighpauls/k2cro4 | bsd-3-clause | 4,290 | 121 | codeparrot/github-code |
65ab6a64037b5da17310a86aca8719dccf2847b44e100b676e8bdca25808960d | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__unsigned_int_fscanf_postinc_67b.c
Label Definition File: CWE190_Integer_Overflow.label.xml
Template File: sources-sinks-67b.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fscanf Read data from the console using fscan... | C | xcc/test/juliet/testcases/CWE190_Integer_Overflow/s06/CWE190_Integer_Overflow__unsigned_int_fscanf_postinc_67b.c | JianpingZeng/xcc | bsd-3-clause | 2,344 | 72 | codeparrot/github-code |
cc0e9a5a36ec5d8935fdd78b98fea42ec65106cdd21f751aeb943581f874e066 | package CronScheduler
import (
"BUtils"
"time"
)
type Scheduler struct {
//Debug bool
Min string
Hour string
DayM string
DayW string
Month string
MinInt []int
HourInt []int
DayMInt []int
DayWInt []int
MonthInt []int
}
func New() *Scheduler {
return &Scheduler{
Min: "*",
Hour: "*",
... | GO | bratok/src/Config/CronScheduler/CronScheduler.go | iostrovok/go-bratok | bsd-3-clause | 3,453 | 180 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.