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 |
|---|---|---|---|---|---|---|---|---|
38767d4a0b687b66d396272a3c9e8133ca8637abce8b9a4f9108b234e19ef181 |
struct KeypointMatchEntry
{
int index;
string file;
int x;
int y;
vector<float> descriptor;
};
struct DepthImage
{
static vec3f makePt(int x, int y, float depth);
void load(const string &filename);
void filter();
void saveDebug();
void makePointCloud();
Grid2f rawDepths;
Grid2f smoothDepths;
Grid2<vec3f... | C | PCL-benchmark/app.h | andyzeng/3dmatch-toolbox | bsd-2-clause | 971 | 45 | codeparrot/github-code |
2fb62b875063b1fa27a3066ef8ea9120b4f1fd03a47e3cc6c47b5e120f499593 | (function() {
'use strict'
function queryLink() {
return {
restrict: 'E',
scope: {
'query': '=',
'visualization': '=?'
},
template: '<a ng-href="{{link}}" class="query-link">{{query.displayname}}</a>',
link: function(scope, element) {
var hash = null;
... | JavaScript | rd_ui/app/scripts/directives/query_directives.js | guaguadev/redash | bsd-2-clause | 11,623 | 364 | codeparrot/github-code |
cbdd901bcc3ba0762725bb4da4576cefd7f4370cd087fa3e9cf1e5195d56f7cc | // ## twig.functions.js
//
// This file handles parsing filters.
module.exports = function (Twig) {
/**
* @constant
* @type {string}
*/
var TEMPLATE_NOT_FOUND_MESSAGE = 'Template "{name}" is not defined.';
// Determine object type
function is(type, obj) {
var clas = Object.protot... | JavaScript | src/twig.functions.js | dave-irvine/twig.js | bsd-2-clause | 11,876 | 321 | codeparrot/github-code |
b6ab6977df72a26d0e382f5efdbf90cc0913515d711bd2ea53c66b49386402f5 | # -*- coding: utf-8 -*-
"""
The scheduler is responsible for the module handling.
"""
import modules
from importlib import import_module
from additional.Logging import Logging
################################################################################
class Scheduler():
"""
This class instantiates the... | Python | DomainSearchViewer/additional/Scheduler.py | andreas-kowasch/DomainSearch | bsd-2-clause | 3,767 | 122 | codeparrot/github-code |
b6652dd0ffa1ab8a2478d6102cad5535c8ae0d73ab169aff5b9421c753b1a7a3 | package com.github.bednar.components.inject.service;
import javax.annotation.Nonnull;
/**
* @author Jakub Bednář (07/01/2014 20:59)
*/
public final class CoffeeCompilerCfg
{
private Boolean bare = false;
private CoffeeCompilerCfg()
{
}
@Nonnull
public static CoffeeCompilerCfg build()
{... | Java | src/main/java/com/github/bednar/components/inject/service/CoffeeCompilerCfg.java | bednar/components | bsd-2-clause | 606 | 36 | codeparrot/github-code |
3018813d845ddedb5e41cd8ad92e11558363f653878a582b3ce288d43213fbdc | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "intellibot.h"
void usage(char *path)
{
fprintf(stderr, "USAGE: %s <db>\n", path);
exit(1);
}
int main(int argc, char *argv[])
{
INTELLIBOT *bot;
ROW *rows, *row;
COLUMN *column;
if (argc != 2)
us... | C | src/main.c | lattera/intellibot | bsd-2-clause | 539 | 35 | codeparrot/github-code |
64d7e0c36656120c3ca82030ba5975123a489cbc30ebf2936058c554fce87fee | from django.conf.urls import patterns, include, url
from django.shortcuts import redirect, render_to_response
from django.template.context import RequestContext
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
# Just redirect / to /blog for now until I can
# co... | Python | StackSmash/urls.py | Justasic/StackSmash | bsd-2-clause | 3,146 | 73 | codeparrot/github-code |
bd164242f370880c70d7eca5711d221368730ec970db1936c2ea1e20d1c0e0e6 | package de.bht.ebus.spotsome.model;
import java.util.Objects;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
... | Java | de.bht.ebus.spotsome/src/main/java/de/bht/ebus/spotsome/model/Spot.java | steven-maasch/spotsome | bsd-2-clause | 3,630 | 155 | codeparrot/github-code |
3d42867bd8de427819fefd0777e04228325f87bb5824f7bf01bf81b70456f3f3 | #include <nano/node/bootstrap/bootstrap.hpp>
#include <nano/node/bootstrap/bootstrap_bulk_push.hpp>
#include <nano/node/node.hpp>
#include <nano/node/transport/tcp.hpp>
nano::bulk_push_client::bulk_push_client (std::shared_ptr<nano::bootstrap_client> const & connection_a) :
connection (connection_a)
{
}
nano::bulk_pu... | C++ | nano/node/bootstrap/bootstrap_bulk_push.cpp | SergiySW/raiblocks | bsd-2-clause | 7,471 | 257 | codeparrot/github-code |
e0c5ea26911d88d7b25a7696bfe270ce392a4883531fa66a46ecf33f56d02dd4 | package io.iron.ironworker.client.builders;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class ScheduleOptionsObject {
private Map<String, Object> options;
public ScheduleOptionsObject() {
options = new HashMap<String, Object>();
}
public ScheduleOptionsObjec... | Java | src/main/java/io/iron/ironworker/client/builders/ScheduleOptionsObject.java | iron-io/iron_worker_java | bsd-2-clause | 1,705 | 78 | codeparrot/github-code |
019903c594ba273df7d1bbc6277eff0a8654417a22e4448874444cf2a518d4b0 | <?php
/*
* Copyright (c) 2015 KUBO Atsuhiro <kubo@iteman.jp>,
* All rights reserved.
*
* This file is part of PHPMentorsWorkflowerBundle.
*
* This program and the accompanying materials are made available under
* the terms of the BSD 2-Clause License which accompanies this
* distribution, and is available at ht... | PHP | src/DependencyInjection/PHPMentorsWorkflowerExtension.php | iteman/workflower-bundle | bsd-2-clause | 3,503 | 82 | codeparrot/github-code |
599142c35107ad7726b956836100575db9de581e4f818c8ad8a8febb06cca6ad | /*
* Copyright (c) 2013 - 2016, Roland Bock
* 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 co... | C | include/sqlpp11/sqlite3/connection.h | rbock/sqlpp11-connector-sqlite3 | bsd-2-clause | 10,943 | 360 | codeparrot/github-code |
2c96fc520c949ee9689f12f0f9355e81075bdb284d5bfb094dd63257565bdade | class Libphonenumber < Formula
desc "C++ Phone Number library by Google"
homepage "https://github.com/googlei18n/libphonenumber"
url "https://github.com/googlei18n/libphonenumber/archive/libphonenumber-7.5.2.tar.gz"
sha256 "c116c1299074b10ed8b862221ca57f822bae7637b717706ff2c71350f430b3b1"
bottle do
cella... | Ruby | Formula/libphonenumber.rb | ShivaHuang/homebrew-core | bsd-2-clause | 2,175 | 71 | codeparrot/github-code |
9a2b02bc0022ee5b31c1b9aad5c06a36fbd16a12c2aaa168df3cb64e680e2ca3 | define(
['helper/english', 'vendor/underscore'],
function(englishHelper, _){
var persons, irregularVerbs;
/**
* @type {Array}
*/
persons = ['s1', 's2', 's3', 'p1', 'p2', 'p3'];
irregularVerbs = {
be: {
present: ['am', 'are', 'is', '... | JavaScript | app/library/english/verb.js | peteraba/deutschodoro | bsd-2-clause | 3,037 | 102 | codeparrot/github-code |
af15557a81e6f20c3d12e6977539a81251ab23d94a2049a3a12ad42bfadc255d | //=============================================================================================================
/**
* @file networktreeitem.cpp
* @author Lorenz Esch <Lorenz.Esch@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date January, 2016
*
* @section LICENSE
... | C++ | libraries/disp3D/engine/model/items/network/networktreeitem.cpp | ViktorKL/mne-cpp | bsd-3-clause | 11,515 | 288 | codeparrot/github-code |
e934db4a86700b112e6b3990f148a458784da50d1aa7a7353ba26a955e08451a | var Tag = require('./tag');
var ScriptTag = require('./script-tag');
var Utils = require('./../utils');
/**
* Script tag class that is loaded in a synchronous way.
*
* This is the class that will generate script tags that will be appended to the
* page using the document.write method.
*
* @param string ... | JavaScript | src/engine/tags/synchronous-script-tag.js | dompuiu/personal-tag-manager-enhanced-js-library | bsd-3-clause | 2,396 | 105 | codeparrot/github-code |
9f574f34c14202a15250a354ff4cc44c539252794427726a7dadf66a42107d4b | /*******************************************************************************
* Copyright (c) 2009-2014, MAV'RIC Development 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:
*
* 1... | C | hal/i2c_driver.c | gburri/MAVRIC_Library | bsd-3-clause | 10,872 | 359 | codeparrot/github-code |
7e1f15a1196a4ae0ffd259b3c44806ac762036cbac3c4e07f77f439c969cbd24 | /*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dijit.Editor"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code... | JavaScript | vhffs-panel/js/dijit/Editor.js | najamelan/vhffs-4.5 | bsd-3-clause | 26,465 | 775 | codeparrot/github-code |
25760c037164a665d4cbc9a3099ccf7ddf57e52ec9a95510ee92d75705fe69ca | /*
* Copyright (C) 2016-2017 Fabrice Bouyé
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package com.bouye.gw2.sab.scene.account;
import api.web.gw2.mapping.v1.guilddetails.GuildDetails;
import api.web.gw2.map... | Java | gw2-sab/src/com/bouye/gw2/sab/scene/account/AccountInfoPaneController.java | fabricebouye/gw2-sab | bsd-3-clause | 11,509 | 300 | codeparrot/github-code |
66ba06f6a977a19f219895f8f8b0c170fbd077a30c1fba5e026f14af8d41296b | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | C++ | filters/include/pcl/filters/impl/passthrough.hpp | brucewu0329/pcl | bsd-3-clause | 6,347 | 168 | codeparrot/github-code |
4dfdec940b774410a6493223417c4adac4cbc7c7e8d3462b10c91ecf82ecbafb | /* sbt -- Simple Build Tool
* Copyright 2009, 2010 Mark Harrah
*/
package sbt
package classfile
import scala.collection.mutable
import mutable.{ ArrayBuffer, Buffer }
import scala.annotation.tailrec
import java.io.File
import java.lang.annotation.Annotation
import java.lang.reflect.Method
import java.lang.reflect.M... | Scala | util/classfile/src/main/scala/sbt/classfile/Analyze.scala | xeno-by/old-scalameta-sbt | bsd-3-clause | 6,435 | 149 | codeparrot/github-code |
890aeae6ce3283c4bd0fecf2fe34b5aca1e2b549014285f8d3bd7a6ab7a56c8e | {-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
module YX.Shell
( findShell
, shellExePaths
, ExecuteShellException(..)
, module YX.Type.Shell
-- * Uti... | Haskell | src/YX/Shell.hs | trskop/yx | bsd-3-clause | 2,371 | 88 | codeparrot/github-code |
bb7a40cecc95019a6086a35007b9bb801b046c752f0e078334776ce39ef3e70f | /* $NetBSD: if_ray.c,v 1.44 2003/11/02 11:14:22 wiz Exp $ */
/*
* Copyright (c) 2000 Christian E. Hopps
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source co... | C | netbsd/sys/dev/pcmcia/if_ray.c | MarginC/kame | bsd-3-clause | 86,593 | 3,348 | codeparrot/github-code |
24b4886916f20c39680fbe86d2ea39b0378b0cbe4ac17d6397e82d8635da8252 | import sys
import collections
class GeocoderResult(collections.Iterator):
"""
A geocoder resultset to iterate through address results.
Exemple:
results = Geocoder.geocode('paris, us')
for result in results:
print(result.formatted_address, result.location)
Provide shortcut to ease fiel... | Python | pygeolib.py | zoeren/pygeocoder | bsd-3-clause | 4,972 | 175 | codeparrot/github-code |
64944a61318c5ccfab391b446cc370f172f87ca1ce687ba84174ea49b52138df | #ifndef EXTENSION_H_
#define EXTENSION_H_
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <libcryptosec/Base64.h>
#include "ObjectIdentifier.h"
#include "ObjectIdentifierFactory.h"
#include <libcryptosec/exception/CertificationException.h>
class Extension
{
public:
enum Name
{
UNKNOWN,
KEY_USA... | C | include/libcryptosec/certificate/Extension.h | LabSEC/libcryptosec | bsd-3-clause | 1,652 | 66 | codeparrot/github-code |
2117f30c66d6bfe5c34a1c3ff60652066c4878ec4adaf0b79c901d762c0044e5 | // 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 ASH_ASSISTANT_UI_DIALOG_PLATE_MIC_VIEW_H_
#define ASH_ASSISTANT_UI_DIALOG_PLATE_MIC_VIEW_H_
#include "ash/assistant/model/assistant_interaction_m... | C | ash/assistant/ui/dialog_plate/mic_view.h | endlessm/chromium-browser | bsd-3-clause | 2,632 | 74 | codeparrot/github-code |
3bf5666329bd7269249d6c9df2ea7ba11566a1ac5756e95db9f5c743c6a035ea | (function() {
'use strict';
angular.module('character-tracker.charactersheet')
.controller('GearController', GearController);
GearController.$inject =['GearService', 'InventoryService', '$scope'];
function GearController(GearService, InventoryService, $scope) {
var vm = this;
var currentItem ... | JavaScript | app/js/tracker/gear/gear.controller.js | tenthirtyone/character-tracker | bsd-3-clause | 1,270 | 52 | codeparrot/github-code |
519e96eebac8f515c5f59346cd1134e61169de625ad40de78450266bac4d60f4 | <?php
/**
* Classe de abstração para as controllers de crud do sistema
* Define as funções principais dos cruds do sistema
*/
namespace Estrutura\Controller;
use Zend\View\Model\JsonModel;
use Zend\View\Model\ViewModel;
use Estrutura\Helpers\Cript;
abstract class AbstractCrudController extends AbstractEstruturaC... | PHP | module/Estrutura/src/Estrutura/Controller/AbstractCrudController.php | Igor-Oliveira-Mota-Pires/pi1_ls | bsd-3-clause | 5,428 | 177 | codeparrot/github-code |
2ff0049ad34e178f4d3ba60f6117b596bd345f85a6c0e86f813cbcfce328379d | {-# LANGUAGE FlexibleContexts #-}
module Opaleye.Manipulation (module Opaleye.Manipulation,
U.Unpackspec) where
import qualified Opaleye.Internal.Sql as Sql
import qualified Opaleye.Internal.Print as Print
import qualified Opaleye.RunQuery as RQ
import qualified Opaleye.Internal.RunQuery ... | Haskell | src/Opaleye/Manipulation.hs | danse/haskell-opaleye | bsd-3-clause | 8,377 | 184 | codeparrot/github-code |
0d9fbd1694019be2100458f08cc9c14768fd36179eb2b976463d6c495d5fa121 | <?php
/**
* Generates the model
*
* @author Thiago Rigo <thiagophx@gmail.com>
* @since 1.0
* @package crudigniter
* @subpackage generator
*/
class ModelGenerator extends Generator
{
/**
* Constructor
*
* @see crudigniter/generator/Generator#__construct()
*/
public function __construct()
{
parent::_... | PHP | crudigniter/generator/ModelGenerator.php | thiagophx/CrudIgniter | bsd-3-clause | 1,142 | 43 | codeparrot/github-code |
07d02d1d4f502fe804b61ac3e0fdc73a692cbb64a14ba1cea665d2f575f3ec90 | //
// Megalog.h
// eXplora MuSe
//
// Created by Nicolò Tosi on 7/17/13.
// Copyright (c) 2013 MobFarm. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DDLog.h"
#if DEBUG
static const int ddLogLevel = LOG_LEVEL_VERBOSE;
#else
// TODO: change this when we can deploy safely
// static const int dd... | C | Classes/Megalog.h | mobfarm/MFLog | bsd-3-clause | 1,022 | 46 | codeparrot/github-code |
1276d6bb65afd58dbb84fc4114e84f003119ed63f6f1984f8c45153c6de641dd | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/messa... | C++ | chrome/browser/content_settings/host_content_settings_map_unittest.cc | highweb-project/highweb-webcl-html5spec | bsd-3-clause | 51,176 | 1,144 | codeparrot/github-code |
6a84b6728d11543bd7655f738ea06dafb9e440e0abfe45c9c6feda198e136cec | /*
* Copyright (c) 2009-2012, 2016 jMonkeyEngine
* 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 li... | Java | jme3-bullet/src/main/java/com/jme3/bullet/joints/PhysicsJoint.java | bertleft/jmonkeyengine | bsd-3-clause | 5,286 | 161 | codeparrot/github-code |
fe50bcc689854dc360eb5adaf5d7403387c464a428a27c3f2924c9f21e6c595b | // 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 CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_
#define CHROME_TEST_CHROMEDRIVER_CHROME_PERFORMANCE_LOGGER_H_
#include "base/basictypes... | C | chrome/test/chromedriver/chrome/performance_logger.h | loopCM/chromium | bsd-3-clause | 1,187 | 37 | codeparrot/github-code |
25ba474d0414d84fa9bad293ac8f8814a965283da4ea57f9f228d9b49e2cee97 | #ifndef BOOST_SMART_PTR_DETAIL_SPINLOCK_GCC_ARM_HPP_INCLUDED
#define BOOST_SMART_PTR_DETAIL_SPINLOCK_GCC_ARM_HPP_INCLUDED
//
// Copyright (c) 2008, 2011 Peter Dimov
//
// 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... | C++ | boost/boost/smart_ptr/detail/spinlock_gcc_arm.hpp | verma/PDAL | bsd-3-clause | 2,554 | 121 | codeparrot/github-code |
952e4930adb84ae765817296823e00718bd11680bc7002a5660dde2f46aaeb77 | /*
* Copyright (c) 2008-2011 by Paul Seiferth, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.test.common.libxtreemfs;
import java.io.IOException;
import java.net.InetSocketAddress;
import junit.framework.TestCase;
import org.junit.After;
import... | Java | java/servers/test/org/xtreemfs/test/common/libxtreemfs/ClientTest.java | gurkerl83/millipede-xtreemfs | bsd-3-clause | 8,942 | 245 | codeparrot/github-code |
ff780cc3a8c03b0da47a04b8d44ac86a5b230384c7d7250948aecee387fa66b6 | <?php
namespace MyClient\Controller;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use DoctrineORMModule\Paginator\Adapter\DoctrinePaginator;
use Doctrine\ORM\Tools\Pagination\Paginator as ORMPaginator;
use Zend\Paginator\Paginator;
use MyClient\Entity;
use Zend\Form\Element;
use ... | PHP | module/MyClient/src/MyClient/Controller/ClientController.php | wmdmgv/crm | bsd-3-clause | 13,309 | 373 | codeparrot/github-code |
79365d195548cc0609b381fa9b63a2464cecc01c1644db287542995a3cc4a03a | ///////////////////////////////////////////////////////////////////////////////
// Name: SherpaEvent.h
// Purpose:
// Author: Joe Yates
// Modified by:
// Created: 11/10/2004
// RCS-ID: $Id: SherpaEvent.h,v 1.1.1.1 2006/01/24 22:13:19 titusd Exp $
// Copyright: (c) BID Snc
// License: BS... | C | include/SherpaEvent.h | joeyates/sherpa | bsd-3-clause | 3,982 | 162 | codeparrot/github-code |
6d4ffb896b795d32c07b495fad679db82270432c5d65836a489eb3b0f3f277b7 | <?php
namespace Catalog\Service;
use Catalog\Model\Product;
use Catalog\Mapper\ProductMapperInterface;
class ProductService implements ProductServiceInterface
{
protected $productMapper;
public function __construct(ProductMapperInterface $productMapper)
{
$this->productMapper = $productMap... | PHP | module/Catalog/src/Catalog/Service/ProductService.php | izaap/bsp | bsd-3-clause | 2,187 | 113 | codeparrot/github-code |
1deee8ba1b2111a3358f14b327a3d4bda91e03da722fe9a4e975ca6c7c04a65d | // 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_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
#define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_
#include <s... | C | chrome/browser/renderer_host/chrome_render_message_filter.h | Crystalnix/BitPop | bsd-3-clause | 8,153 | 185 | codeparrot/github-code |
4fb56a0112c2da034d86957d2889303c15d6939b63d9b61dc2d1deb910170b15 | /*****************************************************************************
Copyright (c) 2011, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source cod... | C | lapack-3.4.0/lapacke/src/lapacke_dgtrfs.c | jmfranck/pyspecdata | bsd-3-clause | 4,311 | 107 | codeparrot/github-code |
0024e4940e591ffc71f002bba726254ec6542b6c254c9970ba8b7c02d1c06ad3 | #ifndef STAN_MATH_REV_FUN_ASIN_HPP
#define STAN_MATH_REV_FUN_ASIN_HPP
#include <stan/math/prim/fun/asin.hpp>
#include <stan/math/prim/fun/abs.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/fun/abs.hpp>
#include <stan/math/rev/fun/asinh.hpp>
#include <stan/math/rev/fun/... | C++ | stan/math/rev/fun/asin.hpp | stan-dev/math | bsd-3-clause | 2,377 | 89 | codeparrot/github-code |
f51e2ce171e65b980b7131f7891eba4e15f5a3db6f22e235734896d75237e3c1 | #!/usr/bin/perl
#########################################################################
# #
# Author : Gabo Moreno-Hagelsieb #
# Date of first draft: Dec 18, 2015 #
# #
#########################################################################
use strict;
use Getopt::Long;
... | Perl | scripts/famXpander.pl | SaierLaboratory/TCDBtools | bsd-3-clause | 23,532 | 695 | codeparrot/github-code |
bd7d962620cec945e7c4794398ec8ef8998daab19aecf692fc6b61bd67661039 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Configuration;
using System.Runtime.Serialization;
namespace DDay.iCal
{
/// <summary>
/// A class that represents an RFC 2445 VALARM component.
/// FIXME: move GetOccurrences() logic into a... | C# | DDay.iCal/Components/Alarm.cs | nachocove/DDay-iCal-Xamarin | bsd-3-clause | 7,597 | 226 | codeparrot/github-code |
9b86264830ecd8cb3dc726fe7d14e329d67b29f70c0988335574adb492e018cf | /*
* ARC++
*
* Copyright (c) 2007-2008 Steven Noonan.
*
* Licensed under the New BSD License.
*
*/
#ifndef __included_soundsystem_openal_h
#define __included_soundsystem_openal_h
#ifdef USE_OPENAL
#ifdef TARGET_OS_WINDOWS
# include <al.h>
# include <alc.h>
#elif defined(TARGET_OS_MACOSX)
# include ... | C | source/Sound/soundsystem_openal.h | tycho/arc | bsd-3-clause | 1,317 | 51 | codeparrot/github-code |
d904dc42c21a86c5f3f031fc0e5897a998b81703ccdc95f44b35735698d9d2df | <!DOCTYPE html>
<html lang="en">
<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>addHead method - ShuffleLinkedList class - hetimatorrent library - Dart API</title>
<!-- required because a... | HTML | doc/api/hetimatorrent/ShuffleLinkedList/addHead.html | kyorohiro/dart_hetimatorrent | bsd-3-clause | 6,956 | 197 | codeparrot/github-code |
6e7d53026359eb43f2c67de9bdbb241e1f3ad86de33f3742c3c4d635baebb7ca | <?php
function getNewsByCategoryID($category_id) {
/*criteria order by*/
$criteria = new CDbCriteria( array('order' => 'news_date DESC', 'condition' => 'category_id LIKE :criteria', 'params' => array(':criteria' => "%{$category_id}%")));
$model = SBNews::model() -> findAll($criteria);
return $model;
/*hitung jumla... | PHP | protected/views/layouts/top-menu.php | akaidrive2014/persseleb | bsd-3-clause | 2,150 | 74 | codeparrot/github-code |
0b2891e6c66a8bcc1ce93b460789bb09f71fa195b9ed924b32fb0d7ac7facaa9 | # BinGrep, version 1.0.0
# Copyright 2017 Hiroki Hada
# coding:UTF-8
import sys, os, time, argparse
import re
import pprint
#import pydot
import math
import cPickle
import ged_node
from idautils import *
from idc import *
import idaapi
def idascript_exit(code=0):
idc.Exit(code)
def get_short_function_name(functi... | Python | bingrep_dump.py | hada2/bingrep | bsd-3-clause | 8,471 | 269 | codeparrot/github-code |
e368f507dc151f9e10f8a31c8e827974097f1e993691dbbceb913bf69d763d91 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.input.vr.oculus;
import com.jme3.app.VREnvironment;
import com.jme3.input.vr.HmdType;
import com.jme3.input.vr.VRAPI;... | Java | jme3-vr/src/main/java/com/jme3/input/vr/oculus/OculusVR.java | zzuegg/jmonkeyengine | bsd-3-clause | 20,261 | 669 | codeparrot/github-code |
83e7c865bbd0c9f617ffd2152830968db1ab011aa7dc33c0e48c7549765eacaa | /* Copyright (C) 2008-2015, Bit Miracle
* http://www.bitmiracle.com
*
* Copyright (C) 1994-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
*/
using System;
using System.Collections.Gener... | C# | LibTiff/LibJpeg/Internal/jpeg_comp_master.cs | nagyistoce/libtiff.net | bsd-3-clause | 15,130 | 365 | codeparrot/github-code |
31f60fb163c17cf974d00ebf6d51ef31ffdbe9918666c95f3c06e581955b8e47 | // Copyright 2011-2015 visualfc <visualfc@gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runcmd
import (
"fmt"
"os"
"os/exec"
"strings"
"github.com/visualfc/gotools/pkg/command"
)
var Command = &command.Command{
... | GO | runcmd/runcmd.go | visualfc/gotools | bsd-3-clause | 1,631 | 81 | codeparrot/github-code |
6ac24b57940a886e6c4557cfda33f3aed296b0f763ccd2f8be387d8b11f9262b | {-# LANGUAGE TemplateHaskell #-}
module Horbits.UI.Camera.Internal where
import Control.Lens
import Data.Fixed
import Data.List.NonEmpty as NE
import Linear
import Horbits.UI.Camera.Zoom
-- data type
data OrthoCamera a = OrthoCamera { _orthoCameraCenter ... | Haskell | src/horbits/Horbits/UI/Camera/Internal.hs | chwthewke/horbits | bsd-3-clause | 4,533 | 124 | codeparrot/github-code |
45b5c76674fad420ae40ad1639bdc0be24f9441fe9406f818db56f78bb079ff8 | <?php
use app\models\Upload;
if ($object_id) {
?>
<div>
<img src="<?= Upload::getThumb($type, $value, true); ?>" data-toggle="lightbox" data-image="<?= Upload::getPicture($value, true); ?>" height="65" id="<?= $id; ?>_picture">
<p>预览缩略图</p>
</div>
<?php } else { ?>
<img src="<?= Upload... | PHP | components/views/admin_picture.php | sushipai/yii2basic | bsd-3-clause | 1,910 | 44 | codeparrot/github-code |
e8a74005291365e762cea5d4e6389e86ea5d962f655fd56227cf7cb149f973bd | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_
#define CHROME_APP_CHROME_CRASH_REPORTER_CLIENT_WIN_H_
#include "base/macros.h"
#include "componen... | C | chrome/app/chrome_crash_reporter_client_win.h | endlessm/chromium-browser | bsd-3-clause | 2,178 | 58 | codeparrot/github-code |
7c8758bef5d1f8788cba2e6084f2544f75594313eb4f90d7651aeda3f1906d81 | var slug = require('slug');
var async = require('async');
var _ = require('underscore');
var kwery = require('kwery');
var functions = {
getInstances: function (state, next) {
var result = kwery.flat(state.db, { path: new RegExp('^' + state.data.path + '(/|$)') });
result.many(function (instances) {
... | JavaScript | data-memory/update/functions.js | Enome/jungles | bsd-3-clause | 2,479 | 107 | codeparrot/github-code |
29452e5871698c51c87f30a84ec59af1b00481ad3717a007ba21b0b9e560a837 | // Copyright (c) 2011 Hewlett-Packard Development Company, L.P. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <QDir>
#include <QDoubleSpinBox>
#include <QFileDialog>
#include <QFileInfo>
#include <QLabel>
#include <QList>
#include ... | C++ | viewer/viewer.cpp | mltframework/webvfx | bsd-3-clause | 9,437 | 320 | codeparrot/github-code |
2265084d470198f4eeb2a05e7c1b0706493451557664c5a483270885b4809b64 | # -*- python -*-
# stdlib imports ---
import os
import os.path as osp
import textwrap
# waf imports ---
import waflib.Utils
import waflib.Logs as msg
from waflib.Configure import conf
#
_heptooldir = osp.dirname(osp.abspath(__file__))
def options(opt):
opt.load('hwaf-base', tooldir=_heptooldir)
opt.add_op... | Python | py-hwaftools/find_cmake.py | hwaf/hwaf | bsd-3-clause | 1,951 | 91 | codeparrot/github-code |
2fbcd6d1225446d16ad78d7733058d6cf5effad979c2d5101e807cc78b7ad3a1 | /*-
* Copyright (c) 2013 Nathan Whitehorn
* 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 co... | C | partedit/scripted.c | svagner/bsdinstall | bsd-3-clause | 5,303 | 214 | codeparrot/github-code |
0abae665a94632606183246c01aae9adf36db989100bba7b2a5045dd2d3ac881 | /**
* Copyright 2013-2015, 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.
*
* @providesModule ... | JavaScript | src/network-layer/default/RelayDefaultNetworkLayer.js | tmitchel2/relay | bsd-3-clause | 5,878 | 204 | codeparrot/github-code |
626860f3975bab95b999b549a023f57a542560dc2d29daaa7255ebbe6fb2c06e | /*
* ColorRGB property file
*
* This file is part of the "ForkENGINE" (Copyright (c) 2014 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "Engine/Component/Component.h"
#include "IO/FileSystem/File.h"
namespace Fork
{
namespace Engine
{
Component::Property::Types Component::Color... | C++ | sources/Engine/Component/Property/ColorRGBProperty.cpp | LukasBanana/ForkENGINE | bsd-3-clause | 1,063 | 55 | codeparrot/github-code |
e0f8b28fa13ea033fafaaf260caaa7207206fc0fa088af792a45ea2d5445251a | // 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_RESOURCE_COORDINATOR_TAB_MANAGER_H_
#define CHROME_BROWSER_RESOURCE_COORDINATOR_TAB_MANAGER_H_
#include <stdint.h>
#include <... | C | chrome/browser/resource_coordinator/tab_manager.h | nwjs/chromium.src | bsd-3-clause | 10,926 | 267 | codeparrot/github-code |
f4f5f82f92afbe7681d120e6e6f64574ed41768386eae4c8cd186531939ef7b9 | /*
* Copyright (C) 1993-2001 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*/
#ifdef __sgi
# include <sys/ptimers.h>
#endif
#include <sys/errno.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/file.h>
#if defined(__NetBSD__) && (NetBSD >= 199905) && ... | C | freebsd5/sys/contrib/ipfilter/netinet/fil.c | MarginC/kame | bsd-3-clause | 50,169 | 2,205 | codeparrot/github-code |
56f02cbaa3e7a4a50ec0ef5d3fccea99f2792706a102c9172b4e6f83cd37c881 | # ----------------------------------------------------------------------------
# Copyright (c) 2008 Andrew D. Straw and Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistr... | Python | contrib/experimental/input/xinput.py | bitcraft/pyglet | bsd-3-clause | 9,260 | 256 | codeparrot/github-code |
d41cb049c274854feea922eea3215df291c29d21ddd9738048e4f00ff4f60a1d | // 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/wm/workspace/workspace_event_handler.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#includ... | C++ | ash/wm/workspace/workspace_event_handler_unittest.cc | anirudhSK/chromium | bsd-3-clause | 18,407 | 460 | codeparrot/github-code |
adf6ca0f050785ebc469ef280bb4a131afa6a05ddb86a9b93e81874caa67ba06 | package main
import (
"fmt"
"os"
"os/signal"
"syscall"
)
func Print(format string, params ...interface{}) {
fmt.Fprintf(os.Stderr, format+"\n", params...)
}
func Info(format string, params ...interface{}) {
Print("Info: " + format, params...)
}
func Error(err error) {
Print("Error: %s", err)
}
func Fatal(er... | GO | pagervisor/pagervisor.go | WiFast/go-pagervisor | bsd-3-clause | 1,001 | 68 | codeparrot/github-code |
7f17073c05d9978d86aae3c549224d9aba7263aa4dd7fd274c66f9793ae3f5b1 | /* Author: Robert Gazdziak (gazdzia2) */
/* Collaborated with: Thomas Lesniak (tlesnia2) */
import java.util.Random;
import java.util.ArrayList;
public class QLearningAgent implements Agent {
public QLearningAgent() {
this.rand = new Random();
}
public void initialize(int numOfStates, int numOfActions) {
... | Java | AutoTest/Code/Machine Problem 1 (Part 1)_gazdzia2_attempt_2014-09-22-20-19-36_QLearningAgent.java | linyufly/QLearningMP | bsd-3-clause | 2,454 | 78 | codeparrot/github-code |
3434d8e461732a6542d36e4b8f5aa4c557dadb02ee9e3aac1d91212c7060f9b9 | package jscheme;
import java.io.PrintWriter;
import jsint.Evaluator;
import jsint.InputPort;
import jsint.Pair;
import jsint.Scheme;
import jsint.Symbol;
import jsint.U;
/**
JScheme - a simple interface to JScheme.
<p> This class provides methods to perform common Scheme operations from
java. Each instance... | Java | src/jscheme/JScheme.java | sergv/jscheme | bsd-3-clause | 23,965 | 529 | codeparrot/github-code |
2b7ad01c3998433d24f15127d46d43e4168063dccf59b49dd5cf8c1ea22675d5 | # Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
from __future__ import absolute_import
from wtforms import validators
from ..forms import ModelForm
from digits import utils
class ImageModelForm(ModelForm):
"""
Defines the form used to create a new ImageModelJob
"""
crop_size = ... | Python | digits/model/images/forms.py | Deepomatic/DIGITS | bsd-3-clause | 3,851 | 122 | codeparrot/github-code |
5c3a583c4e79ac3ad7a39e24e378b96ea05bcabb6896f3e09d90b99aad3bed0b | #ifndef TRAJECTORY_H
#define TRAJECTORY_H
#include <ros/assert.h>
#include <serializable/serializable.h>
#include <eigen_extensions/eigen_extensions.h>
namespace clams
{
class Trajectory : public Serializable
{
public:
Trajectory() {}
//! Deep copy
Trajectory(const Trajectory& other);
//! Dee... | C | ros-pkg/core/clams/include/clams/trajectory.h | teichman/clams | bsd-3-clause | 980 | 42 | codeparrot/github-code |
4ee774c1837d57bca6f19843d72c6ce02f8effc978a2dad6e7b1fa13371814bb | <?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use app\widgets\Alert;
/* @var $this \yii\web\View */
/* @var $content string */
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->langu... | PHP | _protected/views/layouts/main.php | inCodeSpace/zivkY2test1 | bsd-3-clause | 2,946 | 97 | codeparrot/github-code |
5cb451295dfc33b90a4dc91de5e019df0793daec31e0240992936a5f5bce1368 | module FP.Parser.SExp where
import FP.Prelude
import FP.Parser.Parser
import FP.Pretty
import qualified Prelude
data SNumber =
SNInteger ℤ
| SNDouble 𝔻
deriving (Eq,Ord)
makePrettySum ''SNumber
data SLit =
SLNumber SNumber
| SLString 𝕊
deriving (Eq,Ord)
makePrettySum ''SLit
data SToken =
STL... | Haskell | src/FP/Parser/SExp.hs | davdar/darailude | bsd-3-clause | 4,734 | 174 | codeparrot/github-code |
c8e1df5e0a44aea6de4cbb82a45aed118e9f7f1eaa4219ad496920532c9257d8 | /*
* Copyright (c) 2011 Alex Fort
* 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 conditio... | C# | src/Schemin/Schemin.Primitives/Schemin.Primitives.VectorOperations/VectorFill.cs | imphasing/schemin | bsd-3-clause | 2,241 | 66 | codeparrot/github-code |
bb33a90832c8bbba066eaf6516f4b2d6f10324f245fa5cda3ae22b4e66aa4140 | package drum
import (
"fmt"
"os"
)
// DecodeFile decodes the drum machine file found at the provided path
// and returns a pointer to a parsed pattern which is the entry point to the
// rest of the data.
func DecodeFile(path string) (*Pattern, error) {
f, err := os.Open(path)
if err != nil {
return nil, err
}
... | GO | march15/normal/henry-bubert/decoder.go | GoChallenge/GCSolutions | bsd-3-clause | 823 | 42 | codeparrot/github-code |
c3fc55d108d016cc68a881741554efa284349f7a2a77d74df40a36bba22a4a0a | // (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System;
using System.ComponentModel;
using System.IO;
namespace UrlTouch.CommandLineParsing
... | C# | src/UrlTouch/CommandLineParsing/FileInfoConverter.cs | slav/UrlTouch | bsd-3-clause | 2,655 | 70 | codeparrot/github-code |
0787721c3d1e71206a790e11973386467df65f0ca2052300af2b20549eaf9f91 | /*!
* Cloudeo SDK C# bindings.
* http://www.cloudeo.tv
*
* Copyright (C) SayMama Ltd 2012
* Released under the BSD license.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using CDO;
using System.Threading;
namespace CDOTest
{
[TestFixture]
... | C# | CDO/CDOTest/CloudeoServiceConnectivityTest.cs | cloudeolive/cdo_sdk_c_sharp | bsd-3-clause | 7,963 | 226 | codeparrot/github-code |
ed31d2ca8e15494e81d2f270ed9d3882eac1aec10d566a4e7e9774429f5df595 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Migrating from other analysis software — MNE 0.22.1 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel... | HTML | 0.22/overview/migrating.html | mne-tools/mne-tools.github.io | bsd-3-clause | 27,458 | 321 | codeparrot/github-code |
e5e9d41cdaa7f639aa2f59dbfd002aae8cba13a6e816296e38f083f9eb753b24 | <?php
/*
Copyright (c) 2012, Silvercore Dev. (www.silvercoredev.com)
Todos os direitos reservados.
Ver o arquivo licenca.txt na raiz do BlackbirdIS para mais detalhes.
*/
// Carrega as configurações
include("settings.php");
// Se não existir usuário e senha no arquivo settings.... | PHP | 1.0/src/BlackbirdIS/admin/index.php | silvercoredev/BlackbirdIS | bsd-3-clause | 3,662 | 92 | codeparrot/github-code |
06a7e8ea07a3fe99eaf4944fe12708716b2c2a52e28d0caed329e95f2f30160c | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/gpu/chromeos/platform_video_frame_pool.h"
#include <utility>
#include "base/logging.h"
#include "base/optional.h"
#include "base/task/po... | C++ | media/gpu/chromeos/platform_video_frame_pool.cc | endlessm/chromium-browser | bsd-3-clause | 8,134 | 254 | codeparrot/github-code |
16fd4d144852c413ce826496b47a38986d48514d5f9541a12866da7e7db25667 | """
PostgreSQL Session API
======================
The Session classes wrap the Queries :py:class:`Session <queries.Session>` and
:py:class:`TornadoSession <queries.tornado_session.TornadoSession>` classes
providing environment variable based configuration.
Environment variables should be set using the ``PGSQL[_DBNAME]... | Python | sprockets/clients/postgresql/__init__.py | sprockets/sprockets.clients.postgresql | bsd-3-clause | 5,585 | 149 | codeparrot/github-code |
3b91f339ca80235d9232c0412fae0330f4a75bdacad6c2d2f946b9de8b4aaa9b |
/* line 1 "./ragel/tsdp_parser_header_M.jrl" */
/*
* 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>
*/
tsdp_header_M.prototype = Object.create(tsdp_header.prototype);
/* line 49 "./ragel/tsdp_parser_header_M... | JavaScript | src/tinySDP/src/headers/tsdp_header_M.js | DoubangoTelecom/sipml5 | bsd-3-clause | 15,015 | 599 | codeparrot/github-code |
641042db088041dc4a474d76b38a11833cb778e2fb0ed8ceabd3740e846ad7de | <?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace Adteam\Core\Authorization\Repository;
/**
* Description of OauthUsersRepository
*
* @author dev
*/
use Doctrine\... | PHP | src/Repository/OauthUsersRepository.php | CookieShop/core-authorization | bsd-3-clause | 1,614 | 57 | codeparrot/github-code |
4623fd3867abc8b320d572709d4f21f8f4b6b6707a9cd73b0828b69285296347 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_65a.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.string.label.xml
Template File: sources-sink-65a.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: All... | C | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_char_snprintf_65a.c | JianpingZeng/xcc | bsd-3-clause | 3,100 | 98 | codeparrot/github-code |
c804edc25bee3628b00a6b1b0e89c52d98f303d260e025960ae1977efc3eae5c | <?php
namespace frontend\controllers;
use Yii;
use app\models\BantuanPenganjuranKejohanan;
use frontend\models\BantuanPenganjuranKejohananSearch;
use app\models\BantuanPenganjuranKejohananKewangan;
use frontend\models\BantuanPenganjuranKejohananKewanganSearch;
use app\models\BantuanPenganjuranKejohananBayaran;
use fr... | PHP | frontend/controllers/BantuanPenganjuranKejohananController.php | hung101/kbs | bsd-3-clause | 36,159 | 716 | codeparrot/github-code |
a52e9123299c8a6fcf5b0cfca9b912327431ba310967417def13e3bb08d2ec00 | // 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/nacl/nacl_listener.h"
#include <errno.h>
#include <stdlib.h>
#include "base/command_line.h"
#include "base/logging.h"
#include "bas... | C++ | chrome/nacl/nacl_listener.cc | loopCM/chromium | bsd-3-clause | 9,324 | 286 | codeparrot/github-code |
7fa971ba9cc816582022e2b9c06037e1fd81960f07a1549f730b2d38a22f2353 | /*
FreeRTOS+TCP V2.0.7
Copyright (C) 2017 Amazon.com, Inc. or its affiliates. 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 lim... | C | third_party/freertos/repo/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/SH2A/NetworkInterface.c | openthread/ot-rtos | bsd-3-clause | 4,096 | 119 | codeparrot/github-code |
27a0de1cbba21cd395a34cdd90552602be62e1db7822114699b8017e5577ec0e | /*
* Copyright (c) 2012, František Haas, Martin Lacina, Jaroslav Kotrč, Jiří Daniel
* 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 ab... | Java | src/java/cz/cuni/mff/spl/utils/ssh/SshReconnectingSession.java | lottie-c/spl_tests_new | bsd-3-clause | 7,208 | 227 | codeparrot/github-code |
60cba99d13ab7b5ffa3d520d0be4f6d34db20344dd970e78b64adc2531ea5197 | <?php
/*
* Autor : Juan Carlos Ludeña Montesinos
* Año : Marzo 2016
* Descripción :
*
*/
namespace Admin\Controller;
use Common\Controller\SecurityAdminController;
use Zend\View\Model\ViewModel;
use \Common\Helpers\String;
class PermisoController extends SecurityAdminController
{
public functi... | PHP | module/Admin/src/Admin/Controller/PermisoController.php | NextTrick/cp | bsd-3-clause | 7,519 | 228 | codeparrot/github-code |
5ee5daf57edaa3eb5e558d95f93521ff1e0f0a297ab31fba93a7489ed3cc93fc | // 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/drive/drive_api_service.h"
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/message_loop_... | C++ | chrome/browser/chromeos/drive/drive_api_service.cc | leighpauls/k2cro4 | bsd-3-clause | 9,535 | 318 | codeparrot/github-code |
ae6f230a5ae0318a322dcbf33e9b7201bfcbd692fd7391f992c143f20629d751 | #ifndef NEK_TYPE_TRAITS_IS_INTEGRAL_HPP
#define NEK_TYPE_TRAITS_IS_INTEGRAL_HPP
#include <nek/type_traits/integral_constant.hpp>
#include <nek/type_traits/remove_cv.hpp>
namespace nek
{
namespace is_integral_detail
{
template <class T>
struct is_integral
: public false_type
... | C++ | nek/type_traits/is_integral.hpp | nekko1119/nek | bsd-3-clause | 1,940 | 104 | codeparrot/github-code |
c3e18e37f2210273e3c71f7f8df44ecad5f687a3274b75701929ccc491ad7d0a | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/socket/socket_bio_adapter.h"
#include <string.h>
#include <algorithm>
#include "base/bind.h"
#include "base/feature_list.h"
#include "bas... | C++ | net/socket/socket_bio_adapter.cc | youtube/cobalt | bsd-3-clause | 13,104 | 410 | codeparrot/github-code |
e31949a96e66256572dd32c96be625808d73a9006bb564c84b0fe1d3f97f7df3 | <?php
class Pager {
/**
* Returns a concatenation of key => value parameters ready to use in a URL.
*/
public static function buildQueryString($dict) {
$params = array();
$str = '';
foreach ($dict as $key => $val) {
$str .= "$key=$val";
$params[] = urlencode($key) . '=' . urlencode($val);
}
retur... | PHP | frontend/server/libs/Pager.php | rendon/omegaup | bsd-3-clause | 3,035 | 108 | codeparrot/github-code |
eca8607895d137c51a244b60eb00771131145b2bac4157ad5ee9234ba9a21f2b | // *****************************************************************************
//
// © Component Factory Pty Ltd 2012. All rights reserved.
// The software and associated documentation supplied hereunder are the
// proprietary information of Component Factory Pty Ltd, 17/267 Nepean Hwy,
// Seaford, Vic 3198, A... | C# | Source/Krypton Components/ComponentFactory.Krypton.Navigator/ButtonSpecs/ButtonSpecNavFixedConverter.cs | Cocotteseb/Krypton | bsd-3-clause | 3,306 | 73 | codeparrot/github-code |
6a46c94e3d6322051f468df31c379cce04b7ba4055b71261dd3eb660c8137fbe | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any... | C | lib/Ogre/include/OgreSceneManagerEnumerator.h | Misterblue/LookingGlass-Viewer | bsd-3-clause | 9,578 | 234 | codeparrot/github-code |
286d0f0bd0bcd335e78277926b371c06de9eb054a706a40b55846239044fd064 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>COMPUTE-SEASONAL-GROWTH-FACTOR</title>
</head>
<body>
<h3><i>I compute the appropriate growth factor for the season of each patch.</i>
</h3>
<font size="2" color="gray">Begin micro-behaviou... | HTML | BC/Static Web Pages/Resources/Composer/en/MB.2/COMPUTE-SEASONAL-GROWTH-FACTOR.html | ToonTalk/behaviour-composer | bsd-3-clause | 1,909 | 72 | codeparrot/github-code |
86a6064e93a771c2055a25ea102334f48fe7bce80a71c7b934106c33bdac9269 | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@author Raffaele Solca
@author Stan Tomov
@author Mark Gates
@generated from src/zhetrd2_gpu.cpp, normal z -> d, Tue Aug 30... | C++ | src/dsytrd2_gpu.cpp | maxhutch/magma | bsd-3-clause | 12,031 | 335 | codeparrot/github-code |
8058874bd0580e011052b1efdb4c3b4c6cb3dad904f7ac63d683368101607164 | (function ($) {
"use strict";
/* DEFINE VARIABLES */
var fu = $("#media-upload"), // FOR JQUERY FILE UPLOAD
fc = $("#file-container"), // FILE CONTAINER DISPLAY
md = $("#media-detail"), // FOR DETAIL ITEM
mf = $("#media-form"), // F... | JavaScript | admin/js/media.popup.js | cloud-github/Yii2-cms | bsd-3-clause | 9,054 | 274 | codeparrot/github-code |
e10ddad1de6627f4384801b7eef49aa02a22b53815cca1709164dab12b89d4ae | require 'relyze/core'
class Plugin < Relyze::Plugin::Analysis
def initialize
super( {
:guid => '{273AFF27-6C32-4231-93AC-896311411246}',
:name => 'Diff Copy Data',
:description => %q{
After a differential... | Ruby | release/diff_copy_data.rb | relyze-ltd/plugins | bsd-3-clause | 5,008 | 143 | codeparrot/github-code |
ee58f7a16c01545f46fb5d29455320cc7aabc894648e5869737285598b26034c | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | C# | OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs | cdbean/CySim | bsd-3-clause | 16,199 | 433 | codeparrot/github-code |
45c0766827f7a36c01e34b035445d5dcbac8c06ed0dfb13facd61f0771163b79 | <!DOCTYPE html>
<!--
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.5
Version: 4.1.0
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: support@keenthemes.com
Follow: www.twitter.com/keenthemes
Like: www.facebook.com/keenthemes
Purchase: http://them... | HTML | public/metronic/theme/templates/admin3_material_design/ui_bootstrap_growl.html | wtfckkk/crm-admision | bsd-3-clause | 56,793 | 1,530 | codeparrot/github-code |
bcf8924d7c949774221a168a75490b732ca22a2dbdd9346357f118499fd03d5a | /**
* Copyright (c) 2013, 2016, The Regents of the University of California, The Cytoscape Consortium
* 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 m... | Java | src/main/java/org/ndexbio/task/NdexTaskProcessor.java | ndexbio/ndex-rest | bsd-3-clause | 2,543 | 63 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.