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 |
|---|---|---|---|---|---|---|---|---|
08e120afe6a90a6f5d7088d7a0f3cffbe756c1e450adc422006a442d70180496 | /*
Copyright (c) 2015, Kripasindhu Sarkar
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 conditions and th... | C | common/include/od/common/pipeline/ObjectDetector.h | giacomodabisias/opendetection | bsd-3-clause | 5,519 | 147 | codeparrot/github-code |
925b3fb142b008e81c45e7608b0098de057fd4b758c99f326aec412743f2643b | /**************************************************************************/
/* CONFIDENTIAL AND PROPRIETARY SOURCE CODE */
/* OF NETSCAPE COMMUNICATIONS CORPORATION */
/* */
/* Copyright... | C | src/server/base/dbtbase.h | jvirkki/heliod | bsd-3-clause | 55,644 | 512 | codeparrot/github-code |
e8692596acf12472216c4cd0b90ef1f7d2dd637b7d699687b34597d974f3007f | /*
Copyright (c) 2010 Anders Bakken
Copyright (c) 2010 Donald Carr
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 ... | C | tail/phononbackend.h | sirspudd/tokoloshmediabeast | bsd-3-clause | 2,876 | 77 | codeparrot/github-code |
cd276390b3ed1e8656d095fc15a0032a4daf1c74f41f15dcdea3b5fc1b996703 | /*
* Copyright (C) 2017-present Frederic Meyer. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "vt100.h"
#include <stddef.h>
struct vt100_term* vt100_init(struct vt100_term* this, int buffer_width, int buffer_height) {
... | C | kernel/klib/vt100.c | flerovii/renaOS | bsd-3-clause | 8,234 | 231 | codeparrot/github-code |
30b5b2a9863bcfe530377f7e4475c645f0c3f1acb30c6ef265470d0ae740c69e | /*
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2004, 2005, 2006 Apple Computer, 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 s... | C++ | chromium/third_party/blink/renderer/platform/graphics/image.cc | ric2b/Vivaldi-browser | bsd-3-clause | 16,820 | 415 | codeparrot/github-code |
1a925559baa4b778030682ab173d3c3ecc772986d58285e3c1a73ffeee26761f | <?php
/**
* CoolMS2 Twitter Bootstrap Module (http://www.coolms.com/)
*
* @link http://github.com/coolms/twbs for the canonical source repository
* @copyright Copyright (c) 2006-2015 Altgraphic, ALC (http://www.altgraphic.com)
* @license http://www.coolms.com/license/new-bsd New BSD License
* @author Dm... | PHP | src/Form/View/Helper/FormText.php | coolms/twbs | bsd-3-clause | 1,532 | 55 | codeparrot/github-code |
1be959d8f900f3a3534cfa71f635e94b6529355dd377dfd2ff3da9716e93a880 | //======================================================================================
// Copyright 5AM Solutions Inc, Yale University
//
// Distributed under the OSI-approved BSD 3-Clause License.
// See http://ncip.github.com/caarray/LICENSE.txt for details.
//=======================================================... | Java | software/caarray-common.jar/src/main/java/gov/nih/nci/caarray/magetab/TermSource.java | NCIP/caarray | bsd-3-clause | 3,123 | 117 | codeparrot/github-code |
8921e2c0579642c8ee487eef587d2d07c103c98f287618cead4cea50ad7b8d0f | // Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package profiles
import (
"fmt"
"os"
"runtime"
"sort"
"strconv"
"strings"
"time"
"v.io/x/lib/envvar"
)
// Target represents specification for t... | GO | profiles/target.go | vanadium/go.jiri | bsd-3-clause | 10,692 | 390 | codeparrot/github-code |
1b5c2bcd1dfe20db4ca5e8173d7892989667ab158c44f52602b26c5f22315586 | <?php
namespace Avaliacao\Controller;
use Avaliacao\Entity\Debito;
use Avaliacao\Entity\Veiculo;
use Avaliacao\Service\VeiculoService;
use Zend\Hydrator\ClassMethods;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
/**
* Class ApiVeiculoController
* @package Avaliacao\Controller... | PHP | module/Avaliacao/src/Controller/ApiVeiculoController.php | chacal88/zf3-intermediario | bsd-3-clause | 1,216 | 52 | codeparrot/github-code |
492111895e424c68a71be4425e919b971cb17bf0f0d04eae5ab49f5269b331f8 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011, Image Engine Design Inc. All rights reserved.
// Copyright (c) 2012, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided... | C++ | src/GafferArnoldPlugin/OutputDriver.cpp | ImageEngine/gaffer | bsd-3-clause | 11,163 | 407 | codeparrot/github-code |
cc960c2dbd12539b708ff5d608f66974b38015420d6e641a247f192773e7d247 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 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
... | Python | src/primaires/scripting/commandes/scripting/alerte_info.py | vlegoff/tsunami | bsd-3-clause | 3,348 | 71 | codeparrot/github-code |
d24ece16f4463b950cb93297423c92b1dfa88798cb0c0fba193ae48a1aee9807 | #include "allocv/al_VideoCapture.hpp"
/*
From opencv2/highgui/highgui.hpp:
class CV_EXPORTS_W VideoCapture
{
public:
CV_WRAP VideoCapture();
CV_WRAP VideoCapture(const string& filename);
CV_WRAP VideoCapture(int device);
virtual ~VideoCapture();
CV_WRAP virtual bool open(const string& filename);
... | C++ | allocv/src/al_VideoCapture.cpp | AlloSphere-Research-Group/AlloSystem | bsd-3-clause | 7,259 | 340 | codeparrot/github-code |
b1819731149eec9413e02938161e09dea2e0563e62f4ad6155347a5195baecf9 | /*L
* Copyright Georgetown University, Washington University.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cab2b/LICENSE.txt for details.
*/
package edu.wustl.cab2b.server.analyticalservice;
import java.io.InputStream;
import java.util.ArrayList;
import jav... | Java | software/cab2b/src/java/server/edu/wustl/cab2b/server/analyticalservice/EntityToAnalyticalServiceMapper.java | NCIP/cab2b | bsd-3-clause | 11,873 | 296 | codeparrot/github-code |
019b3a76614668b093d16aaec4c947a6f36abaeeca74d0ece36ce9e9b9a2e60f | /* $NetBSD: rpc_soc.c,v 1.6 2000/07/06 03:10:35 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without ... | C | Operating-System/Libraries/libc/rpc/rpc_soc.c | jhbsz/OSI-OS | bsd-3-clause | 13,887 | 583 | codeparrot/github-code |
a77401901d78b3fa3cc7b524ca099ae887afaa222790b69f15fff641761c4174 | <?php
/**
* osCommerce Website
*
* @copyright (c) 2019 osCommerce; https://www.oscommerce.com
* @license MIT; https://www.oscommerce.com/license/mit.txt
*/
namespace osCommerce\OM\Core\Site\Website\SQL\Partner;
use osCommerce\OM\Core\Registry;
class GetCategories
{
public static function execute(array $data... | PHP | osCommerce/OM/Custom/Site/Website/SQL/Partner/GetCategories.php | haraldpdl/oscommerce_website | bsd-3-clause | 2,889 | 108 | codeparrot/github-code |
19ba6d47936efbabd4f244386a2cd8a44c6fa6923ec4462efae2420cbea67e87 | #pragma once
#include <agency/detail/config.hpp>
#include <agency/detail/requires.hpp>
#include <agency/future.hpp>
#include <agency/execution/executor/executor_traits/executor_future.hpp>
#include <agency/execution/executor/executor_traits/is_executor.hpp>
#include <utility>
#include <type_traits>
namespace agency
... | C++ | agency/execution/executor/customization_points/make_ready_future.hpp | egaburov/agency | bsd-3-clause | 2,217 | 85 | codeparrot/github-code |
0c9b120e0de439fd9cae583255adc91d809f00d638dace524f9c06f22de0054a |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>statsmodels.sandbox.stats.multicomp.set_remove_subs — statsmodels v0.10.1 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href... | HTML | v0.10.1/generated/statsmodels.sandbox.stats.multicomp.set_remove_subs.html | statsmodels/statsmodels.github.io | bsd-3-clause | 9,569 | 186 | codeparrot/github-code |
aacc06077ef1b98dc86dd03e7c5e582be5e571d973f77189ea12f7b23829cd66 | /*
* This file is part of the Soletta Project
*
* Copyright (C) 2015 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain ... | C | src/modules/flow/string/string-replace-icu.c | ricardotk/soletta | bsd-3-clause | 13,088 | 433 | codeparrot/github-code |
61009904acd6d61e58f925204820e0fdc7ed7ea3bf4bb278bd1318a83e231990 | /*
Copyright (c) 2012-2014 The SSDB 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 "server.h"
#include "../util/strings.h"
#include "../util/file.h"
#include "../util/config.h"
#include "../util/log.h"
#include "../util/ip_filt... | C++ | src/net/server.cpp | iandc/mydb | bsd-3-clause | 11,280 | 477 | codeparrot/github-code |
6825fa6c3ca0a8ce3b0ab007c81ee734cfd5dd6981e87b9f610a48670c09f01c | import { Page } from 'puppeteer';
import Textbox from 'app/element/textbox';
import AuthenticatedPage from 'app/page/authenticated-page';
import { waitForDocumentTitle, waitForUrl, waitWhileLoading } from 'utils/waits-utils';
import Button from 'app/element/button';
import Textarea from 'app/element/textarea';
import {... | TypeScript | e2e/app/page/profile-page.ts | all-of-us/workbench | bsd-3-clause | 3,249 | 114 | codeparrot/github-code |
2db98497e781262188b02f895a1091001b9e6002744dca5623c250083cbdb628 | // This program sends logging records directly to the server, rather
// than going through the client logging daemon.
#include "ace/SOCK_Connector.h"
#include "ace/Log_Record.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_unistd.h"
#include "ace/CDR_Stream.h"
... | C++ | src/ace/ACE_wrappers/netsvcs/clients/Logger/direct_logging.cpp | wfnex/openbras | bsd-3-clause | 2,682 | 81 | codeparrot/github-code |
d8cc5eb394094e8410482eeae707292152db102e2a056ac2c42b4c3b85e39174 | <?php
namespace app\controllers;
use app\models\User;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use app\models\LoginForm;
use app\models\PasswordResetRequestForm;
use app\models\ResetPasswordForm;... | PHP | controllers/SiteController.php | TaciturnPerson/yii2arsenev | bsd-3-clause | 6,091 | 240 | codeparrot/github-code |
c9545e7633502c23e46275f7581f1ea30c879f92deed1fcef2ed793f98ef15be | var $ = require('jquery');
var CoreView = require('backbone/core-view');
var checkAndBuildOpts = require('builder/helpers/required-opts');
var REQUIRED_OPTS = [
'el'
];
module.exports = CoreView.extend({
events: {
'click .js-foo': '_fooHandler'
},
initialize: function (opts) {
checkAndBuildOpts(opts... | JavaScript | lib/assets/javascripts/dashboard/helpers/scroll-tofixed-view.js | CartoDB/cartodb | bsd-3-clause | 920 | 44 | codeparrot/github-code |
f5bbaf98144fc1ff98124a8393d2408f5367f87f84e9a8f4c0d2e2bbaca6d987 | /**
* CArtAgO - DEIS, University of Bologna
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This ... | Java | cartago-2.0.1/src/main/cartago/OpId.java | lsa-pucrs/jason-ros-releases | bsd-3-clause | 2,026 | 91 | codeparrot/github-code |
2b8f113ce21c73a1edc4229d99cded94d8cf96e8678a63c6c48b3631e9951e30 | <!DOCTYPE html>
<html lang="en" itemscope itemtype="https://schema.org/WebPage">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Vitess / GitHub Workflow</title>
<!-- Webfont -->
... | HTML | docs/contributing/github-workflow.html | mapbased/vitess | bsd-3-clause | 20,306 | 405 | codeparrot/github-code |
734b19c9891138fb56c7ea78b27691c19864d7fd0b9f0f391eb47b4a114a1da5 | package team.gif;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import team.gif.commands.*;
public class OI {
public static final Joystick leftStick = new Joystick(... | Java | src/team/gif/OI.java | Team2338/Fumper | bsd-3-clause | 1,352 | 39 | codeparrot/github-code |
f131d520f0c5f7ce3ad0e0e587c405aaf15a5814d50593970e35c81e28d02c8d | <?php
namespace app\modules\currency\models\ar;
/**
* This is the model class for table "currency".
*
* @property integer $id
* @property string $code
* @property string $short_name
* @property string $sign
*/
class Currency extends \app\modules\core\db\ActiveRecord
{
const EUR = 'EUR';
const RUB = 'RU... | PHP | modules/currency/models/ar/Currency.php | roman444uk/adverts | bsd-3-clause | 1,760 | 82 | codeparrot/github-code |
fce05f59759ad7075d73243e1fff22f2fb8ea3bed768b112f2d1fb758502e3b6 | // Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
(function() {
"use strict";
var runFunc;
var count = 0;
function getId() {
return "code" + (count++);
}
function text(node) {
var s = "";... | JavaScript | static/play/play.js | bketelsen/gablog | bsd-3-clause | 3,040 | 109 | codeparrot/github-code |
f5685418a6ed19d692cfc8f87d153fdad8c2c0a421b55600c834eb750247d213 | /*
* sound/pas2_mixer.c
*
* Mixer routines for the Pro Audio Spectrum cards.
*
* Copyright by Hannu Savolainen 1993
*
* 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 re... | C | freebsd3/sys/i386/isa/sound/pas2_mixer.c | MarginC/kame | bsd-3-clause | 9,208 | 323 | codeparrot/github-code |
6c802965a144627ba412275eb33a463405162538a25d0493c61f78cd42d85c69 | /*******************************************************************************
* 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 | src/main/java/org/caleydo/view/relationshipexplorer/ui/collection/TabularDataCollection.java | Caleydo/org.caleydo.view.contour | bsd-3-clause | 4,540 | 149 | codeparrot/github-code |
4dfab498309455cbd3639c6978c5dfa4d9cf592d3e0e91ea814edc2ec9589914 | <?php
namespace backend\models\base;
use Yii;
/**
* This is the base model class for table "auth_item_child".
*
* @property string $parent
* @property string $child
*
* @property \backend\models\AuthItem $parent0
* @property \backend\models\AuthItem $child0
*/
class AuthItemChild extends \yii\db\Ac... | PHP | backend/models/base/AuthItemChild.php | derilawlinda/panbum | bsd-3-clause | 1,569 | 75 | codeparrot/github-code |
9cb5900798027cc9285930cd612e8324a65653666ba2bc87d061c968a2e20f01 | // Replacement for jquery.ui.accordion to avoid dealing with
// jquery.ui theming.
//
// Usage: $('#container').squeezebox(options);
// where the direct child elements of '#container' are
// sequential pairs of header/panel elements, and options
// is an optional object with any of the following properties:
//
// ac... | JavaScript | jquery.squeezebox.js | stephenmcd/jquery-squeezebox | bsd-3-clause | 1,697 | 46 | codeparrot/github-code |
ed4b376738cea9cceb041be0fc6cf24bc50cd3d79ab97755e4171e2d86d30d85 | from flask import request, current_app, url_for
from flask_jsonschema import validate
from .. import db
from ..models import AHBot as Bot
from .decorators import json_response
from . import api
@api.route('/abusehelper', methods=['GET'])
@json_response
def get_abusehelper():
"""Return a list of available abusehel... | Python | app/api/abusehelper.py | certeu/do-portal | bsd-3-clause | 5,478 | 232 | codeparrot/github-code |
c1fbc0be6ff46e6e557e336855275d5607fa66b5e0c32c3a3cb0b5e8e1cb5bf4 | #ifndef SSERVICE_LOGGER_H
#define SSERVICE_LOGGER_H
/******************************************************************************
"Copyright (c) 2015-2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi... | C | src/ios/xss_log.h | AppSecurityApi/com-intel-security-cordova-plugin | bsd-3-clause | 2,689 | 61 | codeparrot/github-code |
76294e67fc6babfd5fd2a3b6ee422f21b4ed3c8d56812adc49278fd65f4f2b4d | <?php
use yii\helpers\Html;
use yii\bootstrap\Modal;
use yii\bootstrap\ButtonGroup;
use yii\widgets\Menu;
use yii\widgets\Pjax;
use kartik\export\ExportMenu;
use kartik\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\TransaccionrefaccionSearch */
/* @var $dataProvider yii\data\ActiveData... | PHP | views/transaccionrefaccion/reportejecutivo.php | atreyu3/UER | bsd-3-clause | 5,710 | 156 | codeparrot/github-code |
85da459e983d430a8dbf2f7d64e2acfcc69de325453a8fd116d1f0647be30ac7 | #include "Statistics.hpp"
#include "CaptureInstance.hpp"
#include "MainWindow.hpp"
#include "ui_Statistics.h"
using namespace EPL_Viz;
using namespace EPL_DataCollect;
Statistics::Statistics(MainWindow *parent) : QDialog(parent), ui(new Ui::Statistics), mw(parent) {
ui->setupUi(this);
refresh();
}
Statistics::~S... | C++ | libEPLViz/src/stats/Statistics.cpp | epl-viz/EPL-Viz | bsd-3-clause | 3,110 | 72 | codeparrot/github-code |
1cf9ec129cc724978574bfd8218171f675b5aac37b3471c42cf27799ba210b87 |
class Requirement(object):
"""
Requirements are the basis for Dominion. They define
what needs to exist on a host/role, or perhaps what *mustn't* exist.
Requirements are defined on Roles.
"""
creation_counter = 0
"The base class for requirements."
def __init__(self, required=True, en... | Python | dominion/base.py | paulcwatts/dominion | bsd-3-clause | 1,060 | 35 | codeparrot/github-code |
2dd4fd4b545b9de63944b4cdd27f6d6e184d7c9a06be01b37ab3ff977c4663a3 | <?php
use app\components\Formatter;
use yii\helpers\Html;
?>
<div class="rep-wrapper">
<div id="stats">
<div id="rep-page-container">
<table class="rep-table">
<tbody>
<?php foreach ($reputes as $date => $repute): ?>
<tr cla... | PHP | modules/user/views/view/_view-reputation.php | snowpine/qanswer | bsd-3-clause | 4,322 | 79 | codeparrot/github-code |
f3f03fc697d0153c7f07cae2301dc60c9c1e6f4f2b0d56372e19166b71689147 | package registry
import (
"crypto/tls"
"fmt"
"log"
"net/http"
"strings"
)
type LogfCallback func(format string, args ...interface{})
/*
* Discard log messages silently.
*/
func Quiet(format string, args ...interface{}) {
/* discard logs */
}
/*
* Pass log messages along to Go's "log" module.
*/
func Log(f... | GO | registry/registry.go | heroku/docker-registry-client | bsd-3-clause | 2,915 | 119 | codeparrot/github-code |
3f9fdb3e8843b8df2e6a5216b0b4e64ae282bc2aa4fa1a8b23b1ad98a4318a2c | /* CoAP on Moterunner Demonstration
* Copyright (c) 2013-2014, SAP AG
* 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
*... | Java | src/com/sap/coap/Message.java | MR-CoAP/CoAP | bsd-3-clause | 26,430 | 710 | codeparrot/github-code |
1d557df733b82ef7401a700e84b4bd3d70fdb869c2a9dbbc07ef0e07a2e0b8f8 | /* Copyright (c) Robert Adams
* 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 disclaimer... | C++ | src/LookingGlassOgre/OLPreloadArchive.cpp | Misterblue/LookingGlass-Viewer | bsd-3-clause | 6,141 | 141 | codeparrot/github-code |
138deb586a7269fdf6cea7cf60fdf446b79654e28f743312fef99b63a7c1f4bd | <!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>SLS_PHP_SDK » \Aliyun_Log_Models_ListLogstoresRequest</title>
<meta name="a... | HTML | aliyun-log-php-sdk-master/docs/classes/Aliyun_Sls_Models_ListLogstoresRequest.html | weijiansdlx/aliyun | bsd-3-clause | 9,757 | 182 | codeparrot/github-code |
ac3c86c19131ac3230e76b031d23494692e35aec3ad04447bb51afecf3be0d05 | /* Copyright (c) 2014 Andrea Zoli. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
package it.inaf.android;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Locale;
public class DateFormatter {
pub... | Java | app/src/main/java/it/inaf/android/DateFormatter.java | mediainaf/AppINAFAndroid | bsd-3-clause | 1,724 | 53 | codeparrot/github-code |
28e1a248d17fc32f04bb4b82defa60c437d6a7f2a8380656164b5b45e2e978bb | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php
//Get Controller Action name
$action_ = Yii::app()->controller->action->id;
if($action_=='login')
{
... | PHP | protected/views/layouts/main-9-jan-2014.php | Rathilesh/FMS_V1 | bsd-3-clause | 26,894 | 474 | codeparrot/github-code |
09ce7f677f269ab71d33ddbd43f9ea03d32e35531d824857099954b48c2771ed | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "contact".
*
* @property integer $id
* @property string $type
* @property string $name
* @property string $lastname
* @property string $email
* @property string $cellphone
* @property string $message
* @property string $identity
... | PHP | models/Contact.php | frankpaul142/optica-los-andes | bsd-3-clause | 1,347 | 62 | codeparrot/github-code |
1ac2431b358289627189c2d6e1a81e67dd4d385df14cb3f3fd919ab73e257efa | #include <iostream>
#include <type_traits>
#include <vector>
#include <cassert>
#include <agency/execution/executor/sequenced_executor.hpp>
#include <agency/execution/executor/executor_traits.hpp>
int main()
{
using namespace agency;
static_assert(is_bulk_synchronous_executor<sequenced_executor>::value,
"seq... | C++ | testing/executor/sequenced_executor.cpp | egaburov/agency | bsd-3-clause | 1,773 | 55 | codeparrot/github-code |
020dd58577840ffe4e91edc11fdf438f3c567cdefcdc9564e864b78ddd3d9d87 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkBitArray.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 is dis... | C | Common/Core/vtkBitArray.h | SimVascular/VTK | bsd-3-clause | 11,213 | 333 | codeparrot/github-code |
917a5b9cfe8c4b94050c75473e1fa807e717b6e2a03bc8a59d605ad7b5bd74a4 | /*
* Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
* 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 l... | C++ | src/mem/ruby/system/PersistentTable.hh | liangwang/m5 | bsd-3-clause | 3,532 | 102 | codeparrot/github-code |
baade418208f7c39c01472b3cdbef67d32d297d6b9135137fa00dc0f14363c9c | /*L
* Copyright SAIC, SAIC-Frederick.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caadapter/LICENSE.txt for details.
*/
package gov.nih.nci.caadapter.sdtm.util;
/**
* This class represents a entity
*
* @author OWNER: Harsha Jayanna
* @author LAST UPDATE $Author: ... | Java | software/caadapter/src/java/gov/nih/nci/caadapter/sdtm/util/Entity.java | NCIP/caadapter | bsd-3-clause | 1,371 | 61 | codeparrot/github-code |
66cede7818878eb4c968c59ec8dcbea07da3e3622b75dc748cdd1dffbbb243e4 | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | Python | bokeh/io/output.py | ericmjl/bokeh | bsd-3-clause | 4,608 | 133 | codeparrot/github-code |
177d98e8ed077ef2f59446dcdcde677f67d9097a285e0f2a57b444d37b602569 | require './test_common.rb'
require '../lib/crocus/minibloom'
class TestMiniBloom < Test::Unit::TestCase
def test_single_push
results = []
mb = MiniBloom.new
mb.source('p1',1)
mb.p1.pro {|i| results << [2*i[0]]}
mb.p1 << [2]
assert_equal([4], results.pop)
end
def test_single_table
resu... | Ruby | test/tc_minibloom.rb | jhellerstein/crocus | bsd-3-clause | 4,706 | 175 | codeparrot/github-code |
c0ab0bd78c4ce7cc0b0b57b7683c2608e928f85505c88fc1feeb09ce3406f937 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/audio/mac/audio_low_latency_output_mac.h"
#include <CoreServices/CoreServices.h>
#include "base/basictypes.h"
#include "base/command... | C++ | media/audio/mac/audio_low_latency_output_mac.cc | timopulkkinen/BubbleFish | bsd-3-clause | 15,052 | 422 | codeparrot/github-code |
eff9ee257b73c79464661343ee01395c63252a04860b321a5dfa64208d8c095b | <?php
/**
* CmsModule class file.
* @author Christoffer Niska <christoffer.niska@nordsoftware.com>
* @copyright Copyright © 2011, Nord Software Ltd
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @package cms
*/
class CmsModule extends CWebModule
{
/**
* @var string the na... | PHP | CmsModule.php | boo1ean/NordCms | bsd-3-clause | 1,428 | 60 | codeparrot/github-code |
2b5eaae42f427de626f678a253a4928463bc6fb5fe0b7d88738917e9dc9cc5b6 | // Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// These tests check that Torque-generated verifier functions crash the process
// when encountering data that doesn't fit the Torque type definitions.
... | C++ | third_party/v8/test/cctest/test-verifiers.cc | youtube/cobalt | bsd-3-clause | 7,485 | 188 | codeparrot/github-code |
3fcc41460328af449c3fb4c184b4afd948c9ae151a4d10f3d2305d29745d587e | from django import template
from django.utils.safestring import mark_safe
from mezzanine.conf import settings
from mezzanine_developer_extension.utils import refactor_html
register = template.Library()
# Checking settings.TEMPLATE_STYLE.
# Possible values are:
# - mezzanine_developer_extension.styles.macos
# -... | Python | mezzanine_developer_extension/templatetags/devfilters.py | educalleja/mezzanine-developer-extension | bsd-3-clause | 1,349 | 39 | codeparrot/github-code |
4d36f3ad339956f09fffceee3d71c7b1087d25b632c79ea0c5451a001f096af9 | #pragma once
//=====================================================================//
/*! @file
@brief R8C グループ・コンパレーター I/O 制御
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2015, 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/R8C/blob/master/LICENSE... | C++ | common/comp_io.hpp | hirakuni45/R8C | bsd-3-clause | 3,445 | 142 | codeparrot/github-code |
a629f31d38d2f79b8105fd60000d2c5eff99a659657e576438bcb6b75c54dd0f | /*
Copyright (c) 2003-2014, Arvid Norberg
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 conditions and ... | C++ | src/http_tracker_connection.cpp | mrmichalis/libtorrent-code | bsd-3-clause | 16,622 | 592 | codeparrot/github-code |
6404e5644b25d06ac1ae77b63ba34b736c0168755be6b40b6b58ba4c943097bf | <?php
/**
* Gem - File Uploading for Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
*
* @category Gem
* @package Gem_Manipulator
* @copyright Copyright (c) 2008 Johan Nilsson. (http://www.markupartist.com)
* @li... | PHP | library/Gem/Manipulator/Adapter/Thumbnail.php | johannilsson/zfgem | bsd-3-clause | 2,242 | 74 | codeparrot/github-code |
5435ec8e937fcbe5ca6141a805d661fd6abb909525ad0bcc69dd0fd3f938c558 | /* Copyright (C) 2011 uberspot
*
* Compiling: znc-buildmod urlbuffer.cpp
* Dependencies: curl, wget, sed and a unix environment.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3 as published
* by the Free Software Foundation (http... | C++ | cross/znc/modules/urlbuffer.cpp | 1stsetup/spksrc | bsd-3-clause | 12,622 | 414 | codeparrot/github-code |
9153903a48e45d935b27ab68f6dc92841f56e67a27f2686ed65ee5424af35ff1 | from datetime import datetime
from pymongo.connection import Connection
from django.db import models
from eventtracker.conf import settings
def get_mongo_collection():
"Open a connection to MongoDB and return the collection to use."
if settings.RIGHT_MONGODB_HOST:
connection = Connection.paired(
... | Python | eventtracker/models.py | ella/django-event-tracker | bsd-3-clause | 1,073 | 34 | codeparrot/github-code |
af52f0c3727136514063471f2c58f3487031d3299c8d98373abef243bd919dfe | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/display/display_controller.h"
#include <algorithm>
#include "ash/ash_switches.h"
#include "ash/display/display_manager.h"
#include "as... | C++ | ash/display/display_controller.cc | zcbenz/cefode-chromium | bsd-3-clause | 26,202 | 729 | codeparrot/github-code |
5f42ebc8730379e3a99911f70964388cbe5c3618738f21be215aeff518acb7ff | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.web.action.study.management;
import static org.junit.Assert.assertEquals;
import static org... | Java | caintegrator-war/test/src/gov/nih/nci/caintegrator/web/action/study/management/EditStudyLogActionTest.java | NCIP/caintegrator | bsd-3-clause | 3,632 | 97 | codeparrot/github-code |
a87cb70c5dc2947cf9f8a0b47cc149d07452fa4c00eb8f65068a784a3ae37657 | # encoding: utf-8
import sys
sys.path.append(sys.path.insert(0,"../src"))
def urlopen(*args, **kwargs):
# Only parse one arg: the url
return Urls[args[0]]
# Provide a simple hashtable to contain the content of the urls and
# provide a mock object similar to what will be returned from the
# real urlopen() fu... | Python | test/testImport.py | greezybacon/xmlconfig | bsd-3-clause | 4,610 | 155 | codeparrot/github-code |
4750470d697096e2b26aa0ade289f829b400c131353bfa13f8c2bf6044e80ea9 | /*
* Copyright (c) 2008, Keith Woodward
*
* 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 c... | Java | src/main/java/straightedge/geom/vision/CollinearOverlap.java | rpax/straightedge | bsd-3-clause | 2,372 | 69 | codeparrot/github-code |
38ff7107f0964190cec0ac19d6ee494ae731921f29389830cbe12120591d0623 | # This file is part of Metasm, the Ruby assembly manipulation suite
# Copyright (C) 2006-2009 Yoann GUILLOT
#
# Licence is LGPL, see LICENCE in the top-level directory
require 'metasm/main'
require 'metasm/ia32'
module Metasm
# The x86_64, 64-bit extension of the x86 CPU (x64, em64t, amd64...)
class X86_64... | Ruby | node/lib/metasm/metasm/x86_64/main.rb | boboguessme/cold_grinder | bsd-3-clause | 4,044 | 137 | codeparrot/github-code |
e31bd3bfb92a9a88e55c0710e9f37f841a29debe626ced1dad3d0a7eeb531d3a | <?php
/**
* RSSAggregatingPage lets a CMS Authors aggregate and filter a number of RSS feed.
*/
class RSSAggregatingPage extends Page {
static $db = array (
"NumberOfItems" => "Int"
);
static $has_many = array(
"SourceFeeds" => "RSSAggSource",
"Entries" => "RSSAggEntry"
);
private static $moderation... | PHP | code/RSSAggregatingPage.php | sminnee/silverstripe-rssaggregator | bsd-3-clause | 5,295 | 200 | codeparrot/github-code |
edb7555769a4537308fdbaad8a11df7acfccd58e1cea6a78685a03db6d51fa7f | using System;
using Renci.SshNet.Messages.Connection;
namespace Renci.SshNet.Channels
{
internal abstract class ServerChannel : Channel
{
internal void Initialize(Session session, uint localWindowSize, uint localPacketSize, uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize)
... | C# | Channels/ServerChannel.cs | EddyBeaupre/Renci.SshNet | bsd-3-clause | 2,116 | 61 | codeparrot/github-code |
2dc88a111676fcd573aa9ec4575ee859c0b24b084ad765db2ceb7d61259754eb | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>mne.find_events — MNE 0.15 documentation</title>
<link rel="stylesheet" href="../_static/bootstrap-sphinx.css" type="text/css" />
<link rel="stylesheet... | HTML | 0.15/generated/mne.find_events.html | mne-tools/mne-tools.github.io | bsd-3-clause | 40,426 | 527 | codeparrot/github-code |
b8d6a3e4424954b3016f596ace786f28648118d71d9e4923d27b443ff0610654 | // 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/chromeos/login/login_utils.h"
#include <algorithm>
#include <set>
#include <vector>
#include "base/bind.h"
#include "base/c... | C++ | chrome/browser/chromeos/login/login_utils.cc | patrickm/chromium.src | bsd-3-clause | 36,738 | 958 | codeparrot/github-code |
90141d3be060a3365a2875218db4279e9d64a13f12022f2934fd4221ac472d73 | package edu.ucdenver.ccp.datasource.fileparsers.snomed;
import edu.ucdenver.ccp.datasource.fileparsers.SingleLineFileRecord;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2015 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary fo... | Java | datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/fileparsers/snomed/SnomedRf2DescriptionFileRecord.java | UCDenver-ccp/datasource | bsd-3-clause | 3,805 | 113 | codeparrot/github-code |
fc2ffbe9c433044d17addbf683761510884456318535ee2b85e0223e79a549be | <?php
namespace app\controllers;
use app\models\ContactForm;
use app\models\LoginForm;
use Yii;
use yii\filters\AccessControl;
use yii\filters\VerbFilter;
use yii\web\Controller;
class SiteController extends Controller
{
public function behaviors()
{
return [
'access' => [
... | PHP | controllers/SiteController.php | locnes/monstars | bsd-3-clause | 2,402 | 109 | codeparrot/github-code |
0eb766a01891d7f78fcf13629c17bb090a2e6e973a71c1d198d6e1c0537a59f0 | /* dlar1v.f -- translated by f2c (version 20061008).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... | C | src/lapack/dlar1v.c | juanjosegarciaripoll/cblapack | bsd-3-clause | 12,170 | 408 | codeparrot/github-code |
bef5625189c04c9a2697f1454153db2550dd231351c8e347b5f7711abe241fb2 | package com.mattunderscore.trees.base;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
impo... | Java | trees-basic-nodes/src/test/java/com/mattunderscore/trees/base/MutableChildIteratorTest.java | mattunderscorechampion/tree-root | bsd-3-clause | 1,823 | 65 | codeparrot/github-code |
a689ed2de087ccb78fac8031f0db9b7af0e56e0bf1939d08c4c79b7196161699 | // Copyright 2004-present Facebook. All Rights Reserved.
#include <vector>
#include <string>
#include <osquery/core.h>
#include <osquery/logger.h>
#include <osquery/tables.h>
#include "osquery/events/linux/udev.h"
namespace osquery {
namespace tables {
/**
* @brief Track udev events in Linux
*/
class HardwareEve... | C++ | osquery/tables/events/linux/hardware_events.cpp | Anubisss/osquery | bsd-3-clause | 2,025 | 74 | codeparrot/github-code |
1b525dd4de2c5875da6a13f41ef365e14db110876979bb4052f8f2770d15aafa | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBAUTHN_SHEET_MODELS_H_
#define CHROME_BROWSER_UI_WEBAUTHN_SHEET_MODELS_H_
#include <memory>
#include <string>
#include "chro... | C | chrome/browser/ui/webauthn/sheet_models.h | scheib/chromium | bsd-3-clause | 18,896 | 529 | codeparrot/github-code |
0d53a3bb8cecc454acd7d447d399588c054cf80eb361725a65257a0252550caf | package com.spm.store;
import java.io.Serializable;
import java.util.List;
import android.content.Context;
/**
*
* @author Agustin Sgarlata
* @param <T>
*/
public class DbProvider<T extends Serializable> extends Db4oHelper {
public Class<T> persistentClass;
public DbProvider(Class<T> persistentClass, Conte... | Java | SPM/src/main/java/com/spm/store/DbProvider.java | mural/spm | bsd-3-clause | 670 | 38 | codeparrot/github-code |
3cdc2ba01580ce074bbcdac2a9cfd71347103f2b66a2845f5181845eab319431 | package main
/*
* CSCI 4229 Assignment 5: Lighting
*
* Author: Zach Anders
*
* Some code derived from CSCI 4229 Examples 9, 10, and 13 (ex9.c, ex10.c, ex13.c)
*
* Code for 2D text display (due to missing windowpos2i) based off some example code
* at http://programmingexamples.net/wiki/OpenGL/Text
*/
import (
"actor... | GO | src/main/scene_main.go | ZachAnders/Graphics_HW5_lighting | bsd-3-clause | 6,411 | 252 | codeparrot/github-code |
450f98cec85b3c46260e3ecf17bf8b4167c7c800262dc55b4d3fb0867b04664e | /*
* Kit.h
*
* Created on: 21 Aug 2016
* Author: jeremy
*/
#ifndef SOURCE_DRUMKIT_KITS_KIT_H_
#define SOURCE_DRUMKIT_KITS_KIT_H_
#include "KitParameters.h"
#include "KitManager.h"
#include "../../Sound/SoundBank/SoundBank.h"
#include "../Instruments/Instrument.h"
#include "../Triggers/Triggers/Trigger.h"... | C | DrumKit/Kits/Kit.h | SpintroniK/libeXaDrums | bsd-3-clause | 1,473 | 65 | codeparrot/github-code |
56905d05b3b859b56eb4d7505b80701c43059ab9581216d85f6d03356222ce65 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# 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 copyrigh... | Python | vspk/v6/nuavatar.py | nuagenetworks/vspk-python | bsd-3-clause | 9,831 | 322 | codeparrot/github-code |
37eac9447a69be25a256aca5a2f2ee1940f6b93568da04772267facef186ff47 | /*
* hostapd / Initialization and configuration
* Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11... | C | roguehostapd/hostapd-2_6/src/ap/hostapd.c | wifiphisher/roguehostapd | bsd-3-clause | 84,878 | 3,295 | codeparrot/github-code |
c039587d50d5ea6a36c49d0bafc89c91f599138f1204896a2f52a817f004b108 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_listen_socket_postdec_45.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-45.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: listen_socket Read data using a listen so... | C | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__int_listen_socket_postdec_45.c | JianpingZeng/xcc | bsd-3-clause | 8,543 | 291 | codeparrot/github-code |
54bc4a21ae6a8769ee1b04e5efd61241d10c0a984fb36b52e298ea82b04ab3cc | // 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.
//------------------------------------------------------------------------------
// Description of the life cycle of a instance of MetricsService.
//
// ... | C++ | components/metrics/metrics_service.cc | ltilve/chromium | bsd-3-clause | 42,424 | 1,130 | codeparrot/github-code |
5d7b252e379b92e0ea760e82923cfb1dbca0818cc98c83cd9e7149b4dfe71ca0 | /*
* PROJECT: Atomix Development
* LICENSE: BSD 3-Clause (LICENSE.md)
* PURPOSE: Cgt MSIL
* PROGRAMMERS: Aman Priyadarshi (aman.eureka@gmail.com)
*/
using System;
using System.Reflection;
using Atomixilc.Machine;
using Atomixilc.Attributes;
using Atomixilc.Machine.x86;
... | C# | src/Compiler/Atomixilc/IL/Comparison/Cgt.cs | amaneureka/AtomOS | bsd-3-clause | 3,257 | 78 | codeparrot/github-code |
308313d017fe338e75ce3bd64672e0b5390b817686eb9819b34faf0fb408ac9f | /**
* This code is free software; you can redistribute it and/or modify it under
* the terms of the new BSD License.
*
* Copyright (c) 2008-2011, Sebastian Staudt
*/
package com.github.koraktor.steamcondenser.steam.community;
import static com.github.koraktor.steamcondenser.steam.community.XMLUtil.loadXml;
impor... | Java | src/test/java/com/github/koraktor/steamcondenser/steam/community/Portal2StatsTest.java | gutomaia/steam-condenser-java | bsd-3-clause | 1,630 | 54 | codeparrot/github-code |
9c0a8b8ee3b35aa3174de5b814758eb0cfe6c12b8c25e23a9a3936714f712213 | package com.atlassian.pageobjects.components.aui;
import com.atlassian.pageobjects.PageBinder;
import com.atlassian.pageobjects.binder.Init;
import com.atlassian.pageobjects.binder.InvalidPageStateException;
import com.atlassian.pageobjects.components.TabbedComponent;
import com.atlassian.pageobjects.elements.PageElem... | Java | atlassian-pageobjects-elements/src/main/java/com/atlassian/pageobjects/components/aui/AuiTabs.java | adini121/atlassian | bsd-3-clause | 3,108 | 109 | codeparrot/github-code |
20dc6bfd8c7d3ad1ccfb4ee141241e20b4ee4e2c1aab6b8f416bb3ff0044a447 | <?php
/**
* iDatabase数据管理控制器
*
* @author young
* @version 2013.11.22
*
*/
namespace Idatabase\Controller;
use My\Common\Controller\Action;
class ImportController extends Action
{
/**
* 读取当前数据集合的mongocollection实例
*
* @var object
*/
private $_data;
/**
* 读取数据属性结构的mongocol... | PHP | module/Idatabase/src/Idatabase/Controller/ImportController.php | icatholic/icc | bsd-3-clause | 9,549 | 310 | codeparrot/github-code |
554012b0506bd046e6e0eab55d2f4cd6a70b395071fb98ef5b5933e69295131f | # -*- coding: utf-8 -*-
"""
Display currently playing song from Google Play Music Desktop Player.
Configuration parameters:
cache_timeout: how often we refresh this module in seconds (default 5)
format: specify the items and ordering of the data in the status bar.
These area 1:1 ma... | Python | py3status/modules/gpmdp.py | Spirotot/py3status | bsd-3-clause | 2,407 | 75 | codeparrot/github-code |
0f9e4e4d0627d982427410d257fd71e31d1359804edbb21fa4019dd84df32a6d | //
// buffered_write_stream.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.txt)
//
#ifndef BOOST_ASI... | C++ | boost/boost/asio/buffered_write_stream.hpp | verma/PDAL | bsd-3-clause | 7,635 | 239 | codeparrot/github-code |
5a524d93ef58b102cbbcae9cebad834431679ed230b1ede857827cf62c3f0cae | /**********************************************************************
*
* Copyright (c) 2004-2005 Endace Technology Ltd, Hamilton, New Zealand.
* All rights reserved.
*
* This source code is proprietary to Endace Technology Limited and no part
* of it may be redistributed, published or disclosed except as outlined in... | C | dag/dagixp_filter/df_types.h | mgrosvenor/camio1.0 | bsd-3-clause | 7,011 | 316 | codeparrot/github-code |
232fbd711e7615a9001caf960c929ffc121b1cc17159d591a5c72c1781ce85c0 | ////functionen hämtar alla artiklar med hjälp av getJSON
//och får tillbaka en array med alla artiklar
//efter den är klar kallar den på functionen ShoArtTab.
//som skriver ut alla artiklar i en tabell.
function getAllAdminProducts()
{
$.getJSON("index2.php/getAllProducts").done(showArtTab);
}
//functionen showArtT... | JavaScript | start/admin.js | cider94/JsKlar | bsd-3-clause | 4,803 | 150 | codeparrot/github-code |
ab5f10569e29a02319e4932d0e5ed6c1fbd538c1760e03308433b9974ec63dc6 | <?php
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "template_js".
*
* @property integer $id
* @property integer $template_id
* @property integer $js_id
*
* @property Js $js
* @property Template $template
*/
class TemplateJs extends ActiveRecord
{
/**... | PHP | common/models/TemplateJs.php | dmitry-grasevich/tg | bsd-3-clause | 1,232 | 67 | codeparrot/github-code |
e5d108834c60660a31520a088809b7ca9ad8eafa48002ae74df0b8b5e5c97022 | <?php
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
use app\models\Ticket;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app','ticket list'), 'url' => ['#']];
$this->params['addUrl'] = 'ticket/new';
?>
<div class="row">
<div class="col-lg-12">
<!-- ST... | PHP | views/ticket/ticket_all_request.php | suhe/bdoticket | bsd-3-clause | 3,532 | 114 | codeparrot/github-code |
21e2bed1dd52305ae5d1edb04f650362d42a0b81bdef76473368d3a906047421 | /*
* This file is part of the Soletta Project
*
* Copyright (C) 2015 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain ... | C | src/lib/comms/sol-oic-server.c | rchiossi/soletta | bsd-3-clause | 25,099 | 762 | codeparrot/github-code |
2abcdda7183f2593046a146ad20b769ccd316af048f2b39d3d6e34b1e6b204e4 | /*
* Copyright (c) 2011, Run With Robots
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | C | include/fastjson/dom.h | mikeando/fastjson | bsd-3-clause | 22,624 | 800 | codeparrot/github-code |
39b555288b5c78fa0855aa951c8c01fd46772169957dee8e5de58ff1c0b4da72 | package com.xoba.smr;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;
import java.net.URI;
import java.util.Collection;
import java.util.Formatter;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Properties;
import java.util.Set;
imp... | Java | code/src/com/xoba/smr/SimpleMapReduce.java | mrallc/smr | bsd-3-clause | 9,071 | 292 | codeparrot/github-code |
f49ec962aefa508104cfb1bc8399b57d46b27d5226c9e26fdc820c70241f18c5 | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2021 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redist... | C | src/plugins/server/HttpServer.h | clangen/musikcube | bsd-3-clause | 3,204 | 95 | codeparrot/github-code |
4e999c0b2eebc427c8b9ccb82c78a87f0b89f753bd88dd9e5a83f3492bb47f0a | <?php
namespace app\controllers\user;
use Yii;
use dektrium\user\controllers\ProfileController as PController;
use app\models\ProfileSearch;
/**
* UserInfoController implements the CRUD actions for UserInfo model.
*/
class ProfileController extends PController
{
/*public function behaviors()
{
retu... | PHP | controllers/user/ProfileController.php | ASLANTORRET/rgktask | bsd-3-clause | 3,088 | 119 | codeparrot/github-code |
ccbde1f836a1c81607b8c31759bb29f0dc7cb788e932b79b5c637d9cf6236288 | -----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Configure
-- Copyright : (c) David Himmelstrup 2005,
-- Duncan Coutts 2005
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
... | Haskell | cabal-install/Distribution/Client/Configure.hs | alphaHeavy/cabal | bsd-3-clause | 8,529 | 212 | codeparrot/github-code |
8a738850b8190f543d61bcd4c3910e97f90874b8cdf8521c754c4085e8f4a3a4 | // 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.
#ifndef ASH_COMPONENTS_PHONEHUB_FAKE_NOTIFICATION_ACCESS_MANAGER_H_
#define ASH_COMPONENTS_PHONEHUB_FAKE_NOTIFICATION_ACCESS_MANAGER_H_
#include "ash/com... | C | chromium/ash/components/phonehub/fake_notification_access_manager.h | ric2b/Vivaldi-browser | bsd-3-clause | 1,547 | 48 | codeparrot/github-code |
9eaca7ea0b7f7e404af77264e351ec1e51c31c41ec765b9fc4d43c89f78e0f94 | // 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 ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_
#define ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_
#include "ash/system/audio/audio_observer.h"
#include "ash/system/tray/tray... | C | ash/system/audio/tray_audio.h | ChromiumWebApps/chromium | bsd-3-clause | 1,910 | 67 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.