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 |
|---|---|---|---|---|---|---|---|---|
9e1b2cb93cb32036caf96b59e9f5d7cd1f78d5a348c19a6b046edb3ac72f453b | // 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.
#include "device/fido/authenticator_data.h"
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "components/cbor/diagnostic_... | C++ | device/fido/authenticator_data.cc | endlessm/chromium-browser | bsd-3-clause | 4,657 | 136 | codeparrot/github-code |
a97a30d64a8af26a7ce7e0d7d8675c85bbd1a7bd48806e621a88ea4cf72bf46c | <?php
/**
* This file is part of PHP Mess Detector.
*
* Copyright (c) Manuel Pichler <mapi@phpmd.org>.
* All rights reserved.
*
* Licensed under BSD License
* For full copyright and license information, please see the LICENSE file.
* Redistributions of files must retain the above copyright notice.
*
* @author... | PHP | src/test/php/PHPMD/ParserFactoryTest.php | ravage84/phpmd | bsd-3-clause | 4,955 | 165 | codeparrot/github-code |
de2bbe71ecc87bcaada911e5d3bdf34b66d2c690459119a08a90bd53038ee115 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_console_system_82.h
Label Definition File: CWE78_OS_Command_Injection.one_string.label.xml
Template File: sources-sink-82.tmpl.h
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: console Read input from the console
... | C | xcc/test/juliet/testcases/CWE78_OS_Command_Injection/s02/CWE78_OS_Command_Injection__char_console_system_82.h | JianpingZeng/xcc | bsd-3-clause | 1,352 | 58 | codeparrot/github-code |
f7a5108266d2184cf31b3d057ed591622eb1ef7e5bff384be29ee6009e8ca146 | var Backbone = require('backbone'),
$ = require('jquery'),
lang = require('../lang'),
template = require('../templates/nav.hbs')
module.exports = Backbone.View.extend({
events: {
'click .js-nav': 'navigate'
},
initialize: function (options) {
this.$el.html(template({
... | JavaScript | front/views/nav.js | akileh/fermpi | bsd-3-clause | 1,413 | 47 | codeparrot/github-code |
0262ca032bca0b2daac05cae7e926d841b136d1c2406cb8bdef8bdd6e0fc23f4 | using System.Threading.Tasks;
using OrchardCore.Deployment;
using OrchardCore.DisplayManagement.Handlers;
using OrchardCore.DisplayManagement.ModelBinding;
using OrchardCore.DisplayManagement.Views;
using OrchardCore.Templates.ViewModels;
namespace OrchardCore.Templates.Deployment
{
public class AllAdminTemplatesD... | C# | src/OrchardCore.Modules/OrchardCore.Templates/Deployment/AllAdminTemplatesDeploymentStepDriver.cs | xkproject/Orchard2 | bsd-3-clause | 1,354 | 33 | codeparrot/github-code |
dade279349a8aa4d2cd87bad2c4aeaa94dfe2194ecfa1b30df4b6f916d1a357d | <?php
namespace common\models\db;
use Yii;
use yii\base\NotSupportedException;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* This is the model class for table "users".
*
* @property integer $id
* @property string $email
* @property string $password
* @property string $name
* @property integer ... | PHP | common/models/db/User.php | morozovigor/AutoService | bsd-3-clause | 4,169 | 175 | codeparrot/github-code |
60392a85421c66c984d8cae5d1abf73f24503e239b4a68077fcc60bc8fc9c321 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Implements rotations, including spherical rotations as defined in WCS Paper II
[1]_
`RotateNative2Celestial` and `RotateCelestial2Native` follow the convention in
WCS Paper II to rotate to/from a native sphere and the celestial sphere.
The implement... | Python | astropy/modeling/rotations.py | MSeifert04/astropy | bsd-3-clause | 16,505 | 499 | codeparrot/github-code |
26e353f7fbb116bc20ae00a469c6ab126c7a993a7ce765148f073ff4dcda5daf | // Derived from http://golang.org/src/pkg/net/url/url.go
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the QueryLICENSE file.
package query
func Escape(s string) string {
hexCount := 0
for i := 0; i < len(s); i++ {
c :=... | GO | query/query.go | zumper/aws | bsd-3-clause | 1,003 | 51 | codeparrot/github-code |
7fcb5c79331182f5e0e1cca6edd61f2b097a9e15c36f2c0cff8c0672036fee37 | <?php
/**
* User: timur
* Date: 6/8/14
* Time: 2:48 PM
*/
namespace API\Model;
use Zend\Db\Adapter\Adapter;
use Zend\Db\Sql\Select;
class SessionTable extends CoreTable
{
protected $table ='session';
public function __construct(Adapter $adapter)
{
parent::__construct($adapter, new Session())... | PHP | module/API/src/API/Model/SessionTable.php | lilbegginbee/DemoApiMovies | bsd-3-clause | 1,537 | 70 | codeparrot/github-code |
3ec8c14ca981629dff194eaa66ddec114742d0faa8f117bbf1765767f031f086 | # -*-coding:Utf-8 -*
# Copyright (c) 2013 LE GOFF Vincent
# 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
# lis... | Python | src/secondaires/navigation/commandes/matelot/liste.py | stormi/tsunami | bsd-3-clause | 3,818 | 91 | codeparrot/github-code |
67675c44dd00d6cce50940d48f9297c6149daa3f82867a32b0a7ae07982d3c43 | #pragma once
#include <avr-halib/interrupts/interrupt.h>
#include <avr-halib/interrupts/InterruptManager/InterruptBinding.h>
#include <avr-halib/interrupts/InterruptManager/Slot.h>
#include <boost/mpl/vector.hpp>
namespace avr_halib
{
namespace interrupts
{
namespace atmega128rfa1
{
struct Timer5
{
/*... | C | include/avr-halib/interrupts/atmega128rfa1/timer5.h | steup/AVR-HaLib | bsd-3-clause | 1,611 | 37 | codeparrot/github-code |
71adc9733304dfee3c217d2788c4d8075d7b601ed24a757eac2191ab3120583b | note C
=======
We want to output the note C.
Questions:
* For how long?
* There are many Cs, how _high_ of the C
* In what instrument?
Ignoring details
-----------------
We build a helper to ignore details we don't care. In this case, always playback in piano, and output to a midi file we specified
module Snipp... | Markdown | doc/c.markdown | nfjinjing/haskore-guide | bsd-3-clause | 3,721 | 150 | codeparrot/github-code |
445125aeafecc25277ce00626b154307083f4344dda13108e4fbfe5cab5a45b4 | //
// detail/reactive_socket_recvmsg_op.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | C++ | boost/boost/asio/detail/reactive_socket_recvmsg_op.hpp | verma/PDAL | bsd-3-clause | 4,363 | 128 | codeparrot/github-code |
16532b61afeb0854438008454f164f18bee69349c8c499ee8f608d2dc6a78bb3 | <?php
/**
* Test for net::stubbles::ipo::request::stubRedirectRequest.
*
* @package stubbles
* @subpackage ipo_request_test
* @version $Id: stubRedirectRequestTestCase.php 2679 2010-08-23 21:26:55Z mikey $
*/
stubClassLoader::load('net::stubbles::ipo::request::stubRedirectRequest');
/**
* Helper class f... | PHP | src/test/php/net/stubbles/ipo/request/stubRedirectRequestTestCase.php | stubbles/stubbles-1.x | bsd-3-clause | 2,931 | 92 | codeparrot/github-code |
2129949f7bdfe0db412ead9b86e34b609df17cef9e3ececd5eff5e52d1926d3a | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SEARCH_ENGINES_ANDROID_TEMPLATE_URL_SERVICE_ANDROID_H_
#define COMPONENTS_SEARCH_ENGINES_ANDROID_TEMPLATE_URL_SERVICE_ANDROID_H_
#... | C | components/search_engines/android/template_url_service_android.h | nwjs/chromium.src | bsd-3-clause | 5,797 | 132 | codeparrot/github-code |
ae8c264007c045ffad78f7d19b313e9bc5b7f495f70d8e8dff3e435de986f192 | <?php
namespace Lang\Service;
class Lang
{
protected $application = null;
protected $defaultLang = 'en';
public function __construct(\Zend\Mvc\Application $application)
{
$this->application = $application;
}
public function getLang()
{
$routeMatch = $this->application->get... | PHP | module/Lang/src/Lang/Service/Lang.php | gbili/sc | bsd-3-clause | 4,312 | 146 | codeparrot/github-code |
6d9c006d8d860589b89350b61e7df7c5ecfe61140eb086265c1399b5b5da890c | #include "hooks/hooks.H"
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include "libdft_api.h"
#include "tagmap.h"
#include "pin.H"
#include "provlog.H"
#include "dtracker.H"
#include "osutils.H"
/* tracks whether path existed before the execution of syscall */
static struct {
std::string pathname;
in... | C++ | hooks/libdft_tag_bitset/openclose.cpp | m000/dtracker | bsd-3-clause | 2,810 | 107 | codeparrot/github-code |
fa06dacd990dca87af24a125ab66675bd3993d499cae959e61cce421c42e1226 | /**************************************************************************
Copyright (c) 2007-2009, Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code... | C | InfraStack/OSAgnostic/Common/CommonServices/Messenger.c | ago/wimax-ns | bsd-3-clause | 16,574 | 579 | codeparrot/github-code |
f8e574a4ef752e304917412178635f3ed8e0d1699e5148e4df1df626aca239a3 | /******************************************************/
/* Funciones para manejo de datos del home */
/******************************************************/
var endpoint = 'http://localhost/RelemancoShopsWeb/api/web/v1/';
var rootURL = "/RelemancoShopsWeb/frontend/web";
var comercioMarkers = [];
var mark... | JavaScript | frontend/web/js/relemanco/site.js | DRIMTIM/RelemancoShopsWeb | bsd-3-clause | 6,678 | 224 | codeparrot/github-code |
25579d632477d7c904028a1ff8e346fa91825cef9912d869b25727e3850c6934 | package edu.utexas.cycic;
import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
public class ConnectorLine extends Line {
{
setStroke(Color.BLACK);
}
Line right = new Line(){
{
setStrokeWidth(2);
setStroke(Color.BLACK);
}
};
Lin... | Java | cyclist/src/edu/utexas/cycic/ConnectorLine.java | cyclus/cyclist2 | bsd-3-clause | 2,469 | 92 | codeparrot/github-code |
82dbd8a29ec12e1145a4d69d8946d109f67ec85c0287ef9091b19ea0fea26b4a | <?php
/**
* Firal
*
* 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://firal.org/licenses/new-bsd
* If you did not receive a copy of the license and are unable to
... | PHP | application/modules/default/DiContainer.php | firal/Firal | bsd-3-clause | 2,542 | 95 | codeparrot/github-code |
20a61316e9a0fc29611a6440af9550edd93b8c6a000f253110405c333b12cb01 | {-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE RecordWildCards #-}
module LDrive.Platforms where
-- ( testPlatformParser
-- , ColoredLEDs(..)
--... | Haskell | src/LDrive/Platforms.hs | sorki/odrive | bsd-3-clause | 9,381 | 356 | codeparrot/github-code |
1cbb3a48aaac5ff57b36192cf1f6c66e108a71cc81478488b0cd0ecf3174d69b | /*
* Copyright (C) 2012-2018 Doubango Telecom <http://www.doubango.org>
* License: BSD
* This file is part of Open Source sipML5 solution <http://www.sipml5.org>
*/
// http://tools.ietf.org/html/draft-uberti-rtcweb-jsep-02
// JSEP00: webkitPeerConnection00 (http://www.w3.org/TR/2012/WD-webrtc-20120209/)
// JSEP01: web... | JavaScript | src/tinyMEDIA/src/tmedia_session_jsep.js | DoubangoTelecom/sipml5 | bsd-3-clause | 31,500 | 740 | codeparrot/github-code |
c8e93ebfbb0b13ae435756e6b050382e84b7cf4b8e285f91d11873a41f653a1f | // varinput.js
// Javascript routines to handle variable rendering
// $Id: //dev/EPS/js/varinput.js#48 $
function inspect()
{
form1.xml.value = '1';
SubmitFormSpecial('table');
}
// global variable used for items that submit on change or selection
var autosubmit = '';
var autopublish = '';
var workspaceByPass = f... | JavaScript | js/varinput.js | danenrich/d3_training | bsd-3-clause | 8,742 | 280 | codeparrot/github-code |
f72b7b6fceb613158a0b520f41240771230df4c5c2554cf32e359100fce83982 |
import time, copy
import os, os.path
import sys
import numpy
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from scipy import optimize
from echem_plate_ui import *
from echem_plate_math import *
import pickle
p1='C:/Users/Gregoire/Documents/CaltechWork/echemdrop/2012-9_FeCoNiTi/results/echemplots/2012-9_FeCoNiT... | Python | echem_paperplots.py | johnmgregoire/JCAPdatavis | bsd-3-clause | 3,052 | 105 | codeparrot/github-code |
1e6e0ec3757a7302f2e231ab2bde06177ba64e696f55760fb87ca4426caec67f | #ifndef PWN_ENGINE_GAMEIMP_HPP
#define PWN_ENGINE_GAMEIMP_HPP
#include <vector>
#include <map>
#include <boost/shared_ptr.hpp>
#include <pwn/math/types.h>
//#include <events/event.h>
#include <pwn/engine/key.h>
namespace pwn
{
namespace render
{
class VirtualDisplay;
}
namespace engine
{
class System;
c... | C++ | src/engine/gameimp.hpp | madeso/pwn-engine | bsd-3-clause | 1,295 | 62 | codeparrot/github-code |
adbbdfcb2cfcb167854839d5f7a3b3330d6292e825bf8edb71c7673c23bb0de5 | /*
-- MAGMA (version 1.6.2) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date May 2015
@generated from magma_zsolverinfo.cpp normal z -> c, Sun May 3 11:23:01 2015
@author Hartwig Anzt
*/
#include "common_magmasparse.h"
#defi... | C++ | sparse-iter/control/magma_csolverinfo.cpp | kjbartel/magma | bsd-3-clause | 24,120 | 623 | codeparrot/github-code |
9d353540fc58cffc4dc50b0917c9b6d11262d9590b54079428707aa75513dd23 | // ----------------------------------------------------------------------------
// MinimalDevice.h
//
// Authors:
// Peter Polidoro peterpolidoro@gmail.com
// ----------------------------------------------------------------------------
#ifndef MINIMAL_DEVICE_H
#define MINIMAL_DEVICE_H
#include <Functor.h>
#include <Mod... | C | examples/MinimalDevice/MinimalDevice.h | peterpolidoro/modular_device_arduino | bsd-3-clause | 871 | 36 | codeparrot/github-code |
531402547f2fcc6d9743e69d8b44aead728aa06a3ebba6eb15353dd88abdd828 | #ifndef __PY_CHOOSE__
#define __PY_CHOOSE__
//---------------------------------------------------------------------------
//<inline(py_choose)>
//---------------------------------------------------------------------------
uint32 idaapi choose_sizer(void *self)
{
PYW_GIL_GET;
newref_t pyres(PyObject_CallMethod((PyO... | C++ | pywraps/py_choose.hpp | nihilus/src | bsd-3-clause | 1,878 | 79 | codeparrot/github-code |
c9489461e14dd4e8b8c3ac35bdfdcd625c75d271937ebfe6fce1dc4e534b13a3 | # -*- coding: utf-8 -*-
# Copyright (c) 2014 Simon Jagoe and Enthought Ltd.
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the 3-clause BSD license. See the LICENSE.txt file for details.
from __future__ import absolute_import, unicode_literals
import logging
import os
f... | Python | usagi/discoverer.py | sjagoe/usagi | bsd-3-clause | 4,383 | 133 | codeparrot/github-code |
8a38a26359a23030663e5380b2ce219081e1cd21c9c295b3cd3c2653f9de386f | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/multi_threaded_cert_verifier.h"
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/format_macros.h"
#include ... | C++ | net/base/multi_threaded_cert_verifier_unittest.cc | timopulkkinen/BubbleFish | bsd-3-clause | 16,093 | 420 | codeparrot/github-code |
82f4f6c11420f16df7a0854e6f32d14bcb363b02e32446c047e70cb793bceb6d | ; rand-table.asm - Bruce Clark, Avik Das
;
; Linear congruential pseudo-random number generator, by Bruce Clark,
; ported to the Ophis assembler. This file contains the PRNG that uses a
; generated multiplication lookup table to significantly speed up number
; generation at cost of space and initial set up time.
;
; ... | Assembly | lib/rand-table.asm | avik-das/nesdev | bsd-3-clause | 5,510 | 187 | codeparrot/github-code |
9fb9d22e109cf3accbe9bb8e3bcf469c2809eae258fa07b48e93cf7c1af67558 | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** following c... | C++ | VisualizationBase/src/items/VInteger.cpp | patrick-luethi/Envision | bsd-3-clause | 2,500 | 62 | codeparrot/github-code |
17f5589d0e39980b0359d208840327b35a59b3d37ade424a80174d0db0f8d8eb | /*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | Java | src/com/vmware/vim25/VmConfigInfo.java | mikem2005/vijava | bsd-3-clause | 3,563 | 126 | codeparrot/github-code |
11d2a97780e5916d1107077dc20bafd62043b033eadc07637a62681f72ce9ac6 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="la... | HTML | v0.11.0/generated/statsmodels.sandbox.distributions.extras.NormExpan_gen.expect.html | statsmodels/statsmodels.github.io | bsd-3-clause | 27,012 | 515 | codeparrot/github-code |
66d43556c7f37ade328ec917435e8347236a8c2330df2adf3e976471bf582a2b | <!DOCTYPE html>
<html lang="en">
<head>
<meta name="Adtomatik-tag" content="NjUxNg=="/>
<meta charset="UTF-8">
<meta name="csrf-param" content="_csrf">
<meta name="csrf-token" content="5mo-uF3QyjIfOwRv_yIAHyEWnEVLRSTBCHZ8oYJbp3yBXK1QgBR3iflIBXZFqXoB4jBlFonC1s0mShaUvpqIpA==">
<title>SaveMedia | Download & Convert Yo... | HTML | Source/Testing/HtmlRenderer.ExperimentalApp/Data/Files/youtube mp3/0F04D127A380148F54C1272156BC4D3F.html | todor-dk/HTML-Renderer | bsd-3-clause | 16,026 | 317 | codeparrot/github-code |
0c0f3f46f8d1017f97ed744410869ef08a93cdb52c89ce3223fb246235fac1dc | from __future__ import unicode_literals
from django.forms import ValidationError
from django.core.exceptions import NON_FIELD_ERRORS
from django.forms.formsets import TOTAL_FORM_COUNT
from django.forms.models import (
BaseModelFormSet, modelformset_factory,
ModelForm, _get_foreign_key, ModelFormMetaclass, Mode... | Python | modelcluster/forms.py | torchbox/django-modelcluster | bsd-3-clause | 16,632 | 388 | codeparrot/github-code |
b96872d02b1e6097ddcc0d485a5cb23b91b7a1608c913a258decbbea496321eb | #pragma once
#include "gl\glew.h"
#include "wx\glcanvas.h"
#include "wx\wx.h"
#include "wx\aui\aui.h"
#include "wx\panel.h"
#include "wx\tglbtn.h"
#include "wx\listctrl.h"
#include "wxPLplotwindow.h"
#include "Core/Core.h"
#include "Geometry_Implementation.h"
typedef void (*selection_callback_type)(const boost::c... | C | libs/antares/Dependencies.h | Symcies/polaris | bsd-3-clause | 1,141 | 33 | codeparrot/github-code |
2986cf95d70d4fe65f2f6871886443e7355592d41e008b4697ba7c5ec9810bd1 | """
See http://pbpython.com/advanced-excel-workbooks.html for details on this script
"""
from __future__ import print_function
import pandas as pd
from xlsxwriter.utility import xl_rowcol_to_cell
def format_excel(writer, df_size):
""" Add Excel specific formatting to the workbook
df_size is a tuple represent... | Python | code/advanced_excel.py | chris1610/pbpython | bsd-3-clause | 2,204 | 47 | codeparrot/github-code |
380dc7454e784af504a45198923cfc9d470d026c91a01beb80fa69d964517228 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/public/platform/modules/mediastream/web_media_stream_audio_sink.h"
#include "base/check.h"
#include "third_party/blink/public... | C++ | third_party/blink/renderer/platform/exported/web_media_stream_audio_sink.cc | endlessm/chromium-browser | bsd-3-clause | 1,433 | 39 | codeparrot/github-code |
affbc5c5da2ccfa32a165c3d49bad1e6b7c585483e09ed318a8fdb3802540832 | /*
* Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | C | third_party/blink/renderer/core/scroll/scroll_animator_mac.h | endlessm/chromium-browser | bsd-3-clause | 7,569 | 181 | codeparrot/github-code |
120b2be3c8de80b2dabaead84b0e3c6b29b4023c68d9dba7c0cfb5cd7164b41e | /*
* image_math.cpp
* PHD Guiding
*
* Created by Craig Stark.
* Copyright (c) 2006-2010 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted... | C++ | image_math.cpp | lynxdeterra/open-phd-guiding | bsd-3-clause | 39,037 | 1,285 | codeparrot/github-code |
75b2734d42e3a82b4a1cc53aae1d55e14a26eb282402055a928fbf104ef9a84d |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta ht... | HTML | devel/generated/statsmodels.stats.nonparametric.RankCompareResult.html | statsmodels/statsmodels.github.io | bsd-3-clause | 22,363 | 528 | codeparrot/github-code |
5d211561c3167f3cd5b532407bae1441a1296d6eb83afc5e91cfac0fbe7fc2f4 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/gpu/vaapi/vaapi_picture_native_pixmap_angle.h"
#include "media/gpu/vaapi/va_surface.h"
#include "media/gpu/vaapi/vaapi_wrapper.h"
#includ... | C++ | third_party/chromium/media/gpu/vaapi/vaapi_picture_native_pixmap_angle.cc | youtube/cobalt | bsd-3-clause | 5,069 | 155 | codeparrot/github-code |
3896dc03faa7d9f44307521fdfa8b017b97bd5ce9fdc60c0049642ff89439b97 | import os
from subprocess import call, Popen, PIPE
import sys
from . import Command
from . import utils
class OpenSequenceInRV(Command):
"""%prog [options] [paths]
Open the latest version for each given entity.
"""
def run(self, sgfs, opts, args):
# Parse them all.... | Python | sgfs/commands/rv.py | westernx/sgfs | bsd-3-clause | 2,458 | 84 | codeparrot/github-code |
e20483d60b2be6d56404727bcd43f30ccded9d3453d87cd5a255728b4d76ff2c | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser_switcher/ieem_sitelist_parser.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/memory/scoped_... | C++ | chrome/browser/browser_switcher/ieem_sitelist_parser_browsertest.cc | endlessm/chromium-browser | bsd-3-clause | 7,789 | 167 | codeparrot/github-code |
107f0fc9af1e66b90b81414b6c0e1b822b1a72532609f99acca8b9a0cab8e926 | /*
MIT License
Copyright (C) 2006 The Mono.Xna Team
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy,... | C++ | source/FslBase/Math/Quaternion.cpp | Unarmed1000/RAIIGen | bsd-3-clause | 29,575 | 854 | codeparrot/github-code |
0b74294490eb53e90b727c6d29dab686701485158d361fa3ba56b9f3a32dde8d |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.tsa.ar_model.ARResults — statsmodels v0.10.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygm... | HTML | v0.10.2/generated/statsmodels.tsa.ar_model.ARResults.html | statsmodels/statsmodels.github.io | bsd-3-clause | 20,840 | 331 | codeparrot/github-code |
75024f4959c1c82abf9e3e5c7ff55d4b5fef4e7077e6d2373407d3019fbd9dec |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" content="Copy to clipboard">
<meta name="la... | HTML | v0.11.0/generated/statsmodels.tsa.statespace.tools.is_invertible.html | statsmodels/statsmodels.github.io | bsd-3-clause | 21,633 | 459 | codeparrot/github-code |
e8aa7e5459549315ba3c1d801b191b2a2c21ef9a4f116ff8ebcbc63996471be8 | // 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 "ui/views/view.h"
#include <algorithm>
#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#i... | C++ | ui/views/view.cc | keishi/chromium | bsd-3-clause | 61,719 | 2,117 | codeparrot/github-code |
d4471fde3cba0c5685d7dbf7d518150dd5e4ae0f1c6dea04d3cbcef622cb3793 | //
// Implements iLQR (on a traditional chain) for nonlinear dynamics and cost.
//
// Arun Venkatraman (arunvenk@cs.cmu.edu)
// December 2016
//
#pragma once
#include <ilqr/ilqr_taylor_expansions.hh>
#include <Eigen/Dense>
#include <tuple>
#include <vector>
namespace ilqr
{
class iLQR
{
public:
// Stores lin... | C++ | src/ilqr/iLQR.hh | LAIRLAB/qr_trees | bsd-3-clause | 1,395 | 59 | codeparrot/github-code |
1c3940d8e1ee2eebbb3f167fa47e584289feb2b74869822563dd43c3c601e0ce | <?php
/**
* Command line interface items class file.
*
* PHP version 5.3
*
* @category CLI
* @package FeedAPI
* @author Igor Rzegocki <igor@rzegocki.pl>
* @license http://opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @link https://github.com/ajgon/feed-api
*/
namespace FeedAPI\CLI;
... | PHP | app/classes/FeedAPI/CLI/CLI.php | ajgon/feed-api | bsd-3-clause | 4,168 | 151 | codeparrot/github-code |
a2d9208fbc24c7c4190e5e941341d7ab8ce6da9f917280e133d88558a744d83a | using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Moscrif.IDE.Iface.Entities;
namespace Moscrif.IDE.Tool
{
public static class FileUtility
{
internal readonly static char[] separators = { P... | C# | tool/FileUtility.cs | moscrif/ide | bsd-3-clause | 14,386 | 506 | codeparrot/github-code |
ac356f947d02a8d32b02edde4c2da568573f6bf331d6e2a45e1f15df01830091 | public class Room {
private RoomType roomType;
private boolean available;
private String guest;
public RoomType getRoomType() {
return this.roomType;
}
public String getGuest() throws NotBookedException {
if (isAvailable()) {
throw new NotBookedException();
... | Java | assignment-3/Room.java | martijnvermaat/network-programming | bsd-3-clause | 840 | 44 | codeparrot/github-code |
4abc4e925bb9645b26271267449ea3aa049c6ea1f83bd679eff1de71425ba466 |
"""
External serialization for testing remote module loading.
"""
from tiddlyweb.serializations import SerializationInterface
class Serialization(SerializationInterface):
def list_recipes(self, recipes):
print recipes
def list_bags(self, bags):
print bags
def recipe_as(self, recipe):
... | Python | test/other/tiddlyweb/serializations/debug.py | funkyeah/tiddlyweb | bsd-3-clause | 701 | 33 | codeparrot/github-code |
9a712d60fcd2fdb66a1dbac151d1826f146a42f4e37f79cce710d63d4b773cbf | // Copyright Daniel Wallin, Arvid Norberg 2006. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/python.hpp>
#include <list>
#include <string>
#include <libtorrent/sess... | C++ | bindings/python/src/session.cpp | deluge-clone/libtorrent | bsd-3-clause | 29,951 | 800 | codeparrot/github-code |
e4e29e9a1d2a145780831ea31385c6b09fe61547ac49fcbff3895e96170e28bf | # Copyright (c) 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.
"""
This module contains classes that help to emulate xcodebuild behavior on top of
other build systems, such as make and ninja.
"""
import copy
import gyp.common... | Python | pylib/gyp/xcode_emulation.py | mistydemeo/gyp | bsd-3-clause | 55,087 | 1,381 | codeparrot/github-code |
cc7cee2f280c8bb5a219c72c42196042237d7d9933adb28d12d75297d1c0fab8 | // 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/sync/test/fake_server/fake_server_verifier.h"
#include <map>
#include <memory>
#include <set>
#include <vector>
#include "base/json... | C++ | components/sync/test/fake_server/fake_server_verifier.cc | endlessm/chromium-browser | bsd-3-clause | 6,942 | 185 | codeparrot/github-code |
0f50267e999e97e5157a8c6e0cb2daf52cda956f6e78a6648a6e36f477f184a4 | // 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.
#ifndef CONTENT_PUBLIC_BROWSER_WEBRTC_LOG_H_
#define CONTENT_PUBLIC_BROWSER_WEBRTC_LOG_H_
#include <string>
#include "base/callback_forward.h"
#include ... | C | content/public/browser/webrtc_log.h | endlessm/chromium-browser | bsd-3-clause | 1,040 | 34 | codeparrot/github-code |
dda8fdcfb557c462e871bde534c40b15c2bde8670532d0b3e696625c31d45c74 | // Copyright (c) 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.
#ifndef QUICHE_QUIC_CORE_PACKET_NUMBER_INDEXED_QUEUE_H_
#define QUICHE_QUIC_CORE_PACKET_NUMBER_INDEXED_QUEUE_H_
#include "net/third_party/quiche/src/... | C | net/third_party/quiche/src/quic/core/packet_number_indexed_queue.h | endlessm/chromium-browser | bsd-3-clause | 8,449 | 252 | codeparrot/github-code |
e9eba31d8fd31a3a7554bc7aa067a73c64245e962b4d068026c1847f5c140b25 |
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
//
// See http://www.boost.org/libs/type_trai... | C++ | boost/boost/type_traits/is_stateless.hpp | verma/PDAL | bsd-3-clause | 1,598 | 49 | codeparrot/github-code |
934ef45ddf4ff1b17d2333c831b55e0892db65c360aba164de48e980033f5e4b | <?php
namespace app\models;
/*
DROP TABLE IF EXISTS wx_suggest;
CREATE TABLE wx_suggest (
id int(10) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
gh_id VARCHAR(32) NOT NULL DEFAULT '',
openid VARCHAR(32) NOT NULL DEFAULT '',
nickname VARCHAR(64) NOT NULL DEFAULT '',
headimgurl VARCHAR(256) NOT NUL... | PHP | models/MSuggest.php | yjhu/wowewe | bsd-3-clause | 1,844 | 73 | codeparrot/github-code |
3a87224ddeccd532a82b7c61645ebb73c293d76e7b143ef7ebf0f9a27cc8ec19 | <?php
/*
* Original code based on the CommonMark PHP parser (https://github.com/thephpleague/commonmark/)
* - (c) Colin O'Dell
*/
namespace OneMoreThing\CommonMark\Strikethrough;
use League\CommonMark\Delimiter\Delimiter;
use League\CommonMark\Inline\Element\Text;
use League\CommonMark\Inline\Parser\AbstractInli... | PHP | src/StrikethroughParser.php | omt/commonmark-strikethrough-extension | bsd-3-clause | 2,787 | 97 | codeparrot/github-code |
af64e0ab4b80709f81073e8faecb78e1d02c38ca1fafe5c26c765d9046c45c42 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/ntp_snippets/ntp_snippets_service.h"
#include <algorithm>
#include <utility>
#include "base/command_line.h"
#include "base/files/fi... | C++ | components/ntp_snippets/ntp_snippets_service.cc | was4444/chromium.src | bsd-3-clause | 14,318 | 412 | codeparrot/github-code |
98a81651ceff7668c2122d0ebb9416066390b2fcf1606ac7583d54f80f53225f | /*
This file is a part of NNTL project (https://github.com/Arech/nntl)
Copyright (c) 2015-2021, Arech (aradvert@gmail.com; https://github.com/Arech)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met... | C | nntl/dropout/_base.h | Arech/nntl | bsd-3-clause | 6,579 | 144 | codeparrot/github-code |
0dc7da73e69f5440a3391be977548ff487b174bafd8cb01821c55273436e2b00 | // 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.
#ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_NOTIFICATIONS_NOTIFICATION_MOJOM_TRAITS_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_NOTIFICATIONS_NOTIFICATION_MOJO... | C | third_party/blink/public/common/notifications/notification_mojom_traits.h | endlessm/chromium-browser | bsd-3-clause | 5,833 | 176 | codeparrot/github-code |
a2536722322c1124625338b7749a12a19254af810dc991f2cd7ab393dbcbfe74 | //------------------------------------------------------------------------------
// GrB_eWiseMult_Vector: vector element-wise multiplication
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesp... | C | SuiteSparse/GraphBLAS/Source/GrB_eWiseMult_Vector.c | jlblancoc/suitesparse-metis-for-windows | bsd-3-clause | 6,365 | 132 | codeparrot/github-code |
d08dc29d5440775de279d36783729131329df10cffd43ec6eff7dcfceef9f570 | /*
Copyright (c) 2015-2016, Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followin... | C | src/lzfse_internal.h | lzfse/lzfse | bsd-3-clause | 25,264 | 617 | codeparrot/github-code |
f1431f24d740df9a7904b204d19a50d84fb0047b53ad523ce4e29c4c348fc5ed | <?php
// This file will be included by data.php
// The path of the file should be set as METADATAPATH in config.php.
// What are session_vars ?
// When generating a URL to a page using the URL class (in url.php), any
// GET variables for the page whose keys are listed in its session_vars below
// will automatically be... | PHP | www/includes/easyparliament/metadata.php | palfrey/twfy | bsd-3-clause | 28,559 | 1,148 | codeparrot/github-code |
eeae24772f84ea53d2876e10cad2deefffd669a576f8c071afd8bf645bab606a |
/*
*Resize the graph container
*/
function resizegraph(){
var windowHeight = $( window ).innerHeight();
$("#stacked").css('min-height',(windowHeight * 0.35) );
}
//From facebook
window.fbAsyncInit = function(){
FB.init({
appId: facebook_api_key, status: true, cookie: true, xfbml: true });
};
(functio... | JavaScript | static/js/main.js | opennorth/ovc-vdm | bsd-3-clause | 33,308 | 984 | codeparrot/github-code |
2ccc2f7aa361339aba796a1d519b85331db71a71cd4a09fc1842608dfd40ee93 | // 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 CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
#define CHROME_BROWSER_FIRST_RUN_FIRST_RUN_H_
#include <stdint.h>
#include <string>
#include <vector>
... | C | chrome/browser/first_run/first_run.h | endlessm/chromium-browser | bsd-3-clause | 7,006 | 183 | codeparrot/github-code |
8170aa1cc47ccdbeb18e350a6fbff8d36aa8ed6b30d37c3a368f0313522c4df5 | """
Ludolph: Monitoring Jabber Bot
Copyright (C) 2012-2017 Erigones, s. r. o.
This file is part of Ludolph.
See the LICENSE file for copying permission.
"""
import os
import re
import sys
import signal
import logging
from collections import namedtuple
try:
# noinspection PyCompatibility,PyUnresolvedReferences
... | Python | ludolph/main.py | erigones/Ludolph | bsd-3-clause | 8,916 | 284 | codeparrot/github-code |
61c7ad33840d562073b62e2fadfcfcc85726b62b5335fe0feae5e0e576003056 | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/dynlib.cpp
// Purpose: Dynamic library management
// Author: Guilhem Lavaux
// Modified by:
// Created: 20/07/98
// Copyright: (c) 1998 Guilhem Lavaux
// 2000-2005 Vadim Zeitlin
// Li... | C++ | update_notifier/thirdparty/wxWidgets/src/common/dynlib.cpp | ric2b/Vivaldi-browser | bsd-3-clause | 6,621 | 248 | codeparrot/github-code |
1f33359265f37fef397560db864c01f333b7d66162764d7df191086f4580a682 | var _ = require('underscore')
module.exports = function (cdb) {
(function () {
var Layers = cdb.vis.Layers;
/*
* if we are using http and the tiles of base map need to be fetched from
* https try to fix it
*/
var HTTPS_TO_HTTP = {
'https://dnv9my... | JavaScript | src/vis/layers.js | Stonelinks/cartodb-lite | bsd-3-clause | 5,195 | 145 | codeparrot/github-code |
cd79b05a65cd613288e5e7c6d93260f47d406a9e54ed54e550bd867c6a20ff28 | // 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 CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__
#define CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__
#include "base/basictypes.h"
#include "base/gtest... | C | chrome/browser/ui/views/reload_button.h | keishi/chromium | bsd-3-clause | 2,899 | 87 | codeparrot/github-code |
b017e21e9098543221fe0ec3f0b86825279dbf8fdabdffbdbe59932a5bf0fd3e | /* /////////////////////////////////////////////////////////////////////////
* File: test/scratch/test.scratch.be.speech/test.scratch.be.speech.cpp
*
* Purpose: C++ example program for Pantheios. Demonstrates:
*
* - use of custom severity level information for tabbing output
* ... | C++ | test/scratch/test.scratch.be.speech/test.scratch.be.speech.cpp | synesissoftware/Pantheios | bsd-3-clause | 6,112 | 196 | codeparrot/github-code |
7b78c5bb1406367c223a85f5c854531ae18baa45324ef0f2055a7042f50300f1 | /*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | C++ | third_party/angle/third_party/VK-GL-CTS/src/external/vulkancts/modules/vulkan/image/vktImageTests.cpp | endlessm/chromium-browser | bsd-3-clause | 2,630 | 75 | codeparrot/github-code |
64c8cf2b542246ce7e9a658e79e6b4168f5a547dd5e0400004e3d0e6401719e6 | /*
Copyright (C) 2014 Parrot SA
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 conditions and the following dis... | Java | JNI/java/com/parrot/arsdk/ardiscovery/ARDiscoveryDeviceService.java | Parrot-Developers/libARDiscovery | bsd-3-clause | 8,864 | 257 | codeparrot/github-code |
a798157c7a5d840b4be95563f84aa37e080ef1606295e1121e8af5c9fad9ecd6 | /**
* 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.
*/
#import <Q... | C | React/Base/RCTConvert.h | cdlewis/react-native | bsd-3-clause | 9,265 | 261 | codeparrot/github-code |
b92163a56efc43e2d68351ddda83040ae1e684c3d93c1d831060ae9c8bbb2072 | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | C++ | Sources/Modules/Universe/Lua/LuaNodeEmitter.cpp | benkaraban/anima-games-engine | bsd-3-clause | 7,371 | 214 | codeparrot/github-code |
03e43c68ed8538f5f78991a2bb33c90d7636d3213cb9aa4e3b3b4a9bd65b8b3c | // 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 MEDIA_CAST_NET_RTCP_RTCP_UTILITY_H_
#define MEDIA_CAST_NET_RTCP_RTCP_UTILITY_H_
#include <stddef.h>
#include <stdint.h>
#include "base/big_endia... | C | media/cast/net/rtcp/rtcp_utility.h | was4444/chromium.src | bsd-3-clause | 5,929 | 165 | codeparrot/github-code |
0ee48adad1dd1dd9e9170714a647c063c591d643b0f2d79a55d34cff763a5bd7 | /*
*
* Copyright (C) 2001-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmpstat
*
* Author: Marco ... | C++ | AIMToolkit_v4.0.0_rv44/source/dcmtk-3.6.1_20121102/dcmpstat/libsrc/dvsighdl.cc | NCIP/annotation-and-image-markup | bsd-3-clause | 28,925 | 867 | codeparrot/github-code |
d2c29c95836f4e430b0b8eda4524151192d96812d3dacf00b666443c4f7b1760 | /**
* View abstract class
*
* @author Mautilus s.r.o.
* @class View
* @abstract
* @mixins Events
* @mixins Deferrable
*/
function View() {
Events.call(this);
Deferrable.call(this);
this.construct.apply(this, arguments);
};
View.prototype.__proto__ = Events.prototype;
View.prototype.__proto__.__proto__ = De... | JavaScript | framework/view.js | wdoganowski/inio-tvapp | bsd-3-clause | 12,630 | 606 | codeparrot/github-code |
b13aa9ffcef1410b4e0c5a451e6cd7dc57d4bf5396c4b81f9aea209ba75aa0ef | 'use strict';
describe('Registry', function() {
describe('create()', function() {
it('name', function() {
let blot = Registry.create('bold');
expect(blot instanceof BoldBlot).toBe(true);
expect(blot.statics.blotName).toBe('bold');
});
it('node', function() {
let node = document.c... | JavaScript | test/unit/registry.js | quilljs/parchment | bsd-3-clause | 4,631 | 136 | codeparrot/github-code |
2f0bea552d204d94cdb43193c4fecf82526952865912b95329fd5b105dfb3603 | /*--------------------------------------------------------
* Copyright (c) 2011, The Dojo Foundation
* This software is distributed under the "Simplified BSD license",
* the text of which is available at http://www.winktoolkit.org/licence.txt
* or see the "license.txt" file for more details.
*----------------... | JavaScript | ui/xyz/opener/js/opener.js | winktoolkit/wink | bsd-3-clause | 12,838 | 503 | codeparrot/github-code |
d6d5cdb199d55d25600c7de7afca5814e6d96e4ecc9187e651ed856c7d7fa424 | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%vacancy}}".
*
* @property integer $id
* @property string $date
* @property integer $firm_id
* @property integer $profession_id
* @property string $salary
* @property string $note
* @property integer $workplace_id
* @property i... | PHP | models/Vacancy.php | slavam/placement | bsd-3-clause | 3,947 | 155 | codeparrot/github-code |
c91fe830583bfa79c5e4de433e1890f84dd5c0c87232cb21d78a742a305639a0 | package org.broadinstitute.hellbender.tools.funcotator.dataSources.gencode;
import org.broadinstitute.hellbender.GATKBaseTest;
import org.broadinstitute.hellbender.exceptions.GATKException;
import org.broadinstitute.hellbender.tools.funcotator.vcfOutput.VcfOutputRenderer;
import org.testng.Assert;
import org.testng.an... | Java | src/test/java/org/broadinstitute/hellbender/tools/funcotator/dataSources/gencode/GencodeFuncotationUnitTest.java | magicDGS/gatk | bsd-3-clause | 18,552 | 400 | codeparrot/github-code |
ede14e3926a1a171c95c665ef6eae168f3223d9c621ee6579dd918f965fc5d21 | //-------------------------------------------------------------------------------------
// Copyright (c) 2014, Anthilla S.r.l. (http://www.anthilla.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the foll... | C# | Antd/Modules/DomainControllerModule.cs | Heather/Antd | bsd-3-clause | 11,374 | 196 | codeparrot/github-code |
36942469221683cb54ecaa1ff4908096476877042d206d6100009696a3a343b6 | module ServiceVersionsHelper
def service_operation_responses_markup(service_version, verb, path)
service_operation_responses_content_markup(
service_version.operation(verb, path)['responses'],
json_pointer_path('/paths', path, verb, 'responses'),
service_version.spec_with_resolved_refs['refere... | Ruby | app/helpers/service_versions_helper.rb | continuum/APIO | bsd-3-clause | 12,886 | 358 | codeparrot/github-code |
e0e07722d4febd05337cf7e27005096acb1be404dc36335db304694b6d66aca6 | <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... | HTML | documentation/api/core/db_Barcode_Object_Upca.html | wukchung/Home-development | bsd-3-clause | 94,835 | 2,545 | codeparrot/github-code |
d95899ed4ce176bce90fde2d83185ac3882a4483ee793ec5640a2981419e19ab | /* Register to Stack convert for GNU compiler.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published ... | C | open64/osprey1.0/gccfe/gnu/reg-stack.c | xusx595/upc | bsd-3-clause | 77,677 | 2,713 | codeparrot/github-code |
fe33a690ed5d05362945b7b94463ea755c5583e7c68fdd8a3dd5955aa0883333 | <?php
/**
*
* Descripcion: Clase que gestiona la relación dirección-empresa
*
* @category
* @package Models
* @subpackage
*/
class ProveedoresDireccion extends ActiveRecord {
/**
* Método para definir las relaciones y validaciones
*/
protected function initialize() {... | PHP | default/app/models/config/proveedores_direccion.php | lsomohano/dbkm-sipyme | bsd-3-clause | 1,325 | 35 | codeparrot/github-code |
a95701c006e3f812c8a84def5b28201a294596c18070be7f00473d5a1d55fc40 | /*
* 2007 2013 Copyright Northwestern University
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/annotation-and-image-markup/LICENSE.txt for details.
*/
#ifndef _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_ALTOVA_CNPPD_BL_NonNull
#define _ALTOVA_INCLUDED_AIMXML_ALTOVA_iso_A... | C | AIMToolkit_v4.0.0_rv44/source/AIMLib/AIMXML/type_iso.CNPPD_BL_NonNull.h | NCIP/annotation-and-image-markup | bsd-3-clause | 1,151 | 39 | codeparrot/github-code |
72dfa7fb3e5d9738a809b34c8b5dfc4c4d370a90780feb742891bf7d50e89ae9 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.rule.design;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import net.sourceforge.pmd.lang.java.ast.ASTAllocationExpres... | Java | third_party/pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/design/AccessorClassGenerationRule.java | daejunpark/jsaf | bsd-3-clause | 12,208 | 311 | codeparrot/github-code |
3fd3df8771bd6c99081603a159d96081f5ed95f32309cccc07770591b4594980 | //
// object_input.h
// x2d
//
// Created by Alex Kremer on 7/26/12.
// Copyright (c) 2012 godexsoft. All rights reserved.
//
#pragma once
#ifndef __X2D_OBJECT_INPUT_H__
#define __X2D_OBJECT_INPUT_H__
#include "base_object.h"
#include "glm.hpp"
#include "log.h"
#include <deque>
namespace x2d {
// forward d... | C | x2d/src/input/object_input.h | godexsoft/x2d | bsd-3-clause | 1,277 | 60 | codeparrot/github-code |
6256cb10c850b0cf0521a5b17e10b59f270bcb059dd8e13dbc3eab6565df27cc | package buffer
import (
"errors"
"sync"
"github.com/flynn/flynn/pkg/syslog/rfc5424"
)
// Buffer is a linked list that holds rfc5424.Messages. The Buffer's entire
// contents can be read at once. Reading elements out of the buffer does not
// clear them; messages merely get removed from the buffer when they are
//... | GO | logaggregator/buffer/buffer.go | rikur/flynn | bsd-3-clause | 4,180 | 179 | codeparrot/github-code |
f3079c0edecb4e41d81a131938eb68aeb4281b167328b9d16df6973c859f3927 | //
// Copyright 2016, Yahoo Inc.
// Copyrights licensed under the New BSD License.
// See the accompanying LICENSE file for terms.
//
package github.com.jminusminus.core.stream;
public class Readable {
// Jmm Readable wraps https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html
protected java.io.... | Java | stream/Readable.java | jminusminus/core | bsd-3-clause | 2,510 | 106 | codeparrot/github-code |
86e8e286dac7699cb265d3de280e98a1b6b7cef924f1cb2165926a2452056ce9 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/input/input_handler_proxy.h"
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/location.h"
#include "... | C++ | content/renderer/input/input_handler_proxy.cc | Just-D/chromium-1 | bsd-3-clause | 36,271 | 977 | codeparrot/github-code |
0c6087a1d839c54213980ecd5b91aab0e4c84583c9bbda2be3e29d65fced961b | PROJECT = luftqualitaet_sachsen
PORT ?= 8000
ENV ?= dev
PERIOD ?= 24H
WHERE = $(shell uname -a)
ifeq ($(CI),true)
PYTHON_PATH = $(BUILD_DIR)/$(PROJECT)
else
PYTHON_PATH = $(shell pwd)/$(PROJECT)
endif
.PHONY: help install install-dev install-test install-osx create-db \
info isort isort-check test coverage coverag... | Makefile | Makefile | plumps/luftqualitaet_sachsen | bsd-3-clause | 3,343 | 104 | codeparrot/github-code |
a98a0d1aec38461a3b84000045665e047f505e0bc94b98777c0ec438d954e356 | <?php
namespace common\models;
use common\models\base\BusWay as BaseBusWay;
use Yii;
/**
* This is the model class for table "bus_way".
*/
class BusWay extends BaseBusWay
{
/**
* @inheritdoc
*/
public function rules()
{
return array_replace_recursive(parent::rules(),
[
... | PHP | common/models/BusWay.php | tkirsan4ik/yii2_region | bsd-3-clause | 1,697 | 54 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.