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 |
|---|---|---|---|---|---|---|---|---|
469f793704d3f85e90940e15ee5ac8c3cb5670e760ca85385895130ad8fbf252 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLImageAlgorithmHelper.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... | C | Rendering/OpenGL2/vtkOpenGLImageAlgorithmHelper.h | keithroe/vtkoptix | bsd-3-clause | 2,656 | 81 | codeparrot/github-code |
872fd8c334a899e0d3d0ebbdd61fa198740f587eb557caa7260e8cff05895d46 | /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdbplugin.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#define BACKENDNAME "timeofday"
#define BACKENDVERSION "0.0.1"
struct _TimeofdayInfo
{
struct timeval start;
struct timeval... | C | src/plugins/timeofday/timeofday.h | e1528532/libelektra | bsd-3-clause | 781 | 36 | codeparrot/github-code |
dd595edd893a87142a3ef20fb47a39071b04b1937b646aa2d5bb380f78ad59f6 | <?php
namespace ZF\Doctrine\QueryBuilder\Filter\ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\ORM\QueryBuilder;
/**
* Class AndX
*
* @package ZF\Doctrine\QueryBuilder\Filter\ORM
* @version 1.0
* @author Julien Guittard <julien.guittar... | PHP | src/QueryBuilder/Filter/ORM/AndX.php | jguittard/zf-doctrine-mapping | bsd-3-clause | 2,047 | 65 | codeparrot/github-code |
8dcf5e57d86113ff46191e68dbd924b37b0565fb90a20483c81c80611b397d30 | /*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
************************... | JavaScript | web/plus/kindeditor-4.1.10/plugins/baidumap/baidumap.js | 329221391/home | bsd-3-clause | 4,209 | 95 | codeparrot/github-code |
3e25d37120bb6d92a81c8565a91383e25ecdcc9694c71c21fef5e9341d901ae5 | /*
Copyright The MITRE Corporation 2009-2010. All rights reserved.
*/
package org.mitre.jcarafe.util
class Annotation(val st: Int, val en: Int, var beg: Boolean, var typ: AbstractLabel, val vl: Option[String], val info: Option[Map[String,String]]) extends Ordered[Annotation] {
def this(st: Int, en: Int, be... | Scala | jcarafe-core/src/main/scala/org/mitre/jcarafe/util/Annotation.scala | wellner/jcarafe | bsd-3-clause | 1,390 | 31 | codeparrot/github-code |
d45a3d710474984654663fadf060c0f80bbdd8153310da4926f5d0c3e6033113 | package com.gambasoft.service;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import javax.ws.rs.core.Response;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import com.gambasoft.dao.RankSystemDAO;
import com.gambasoft.vo.Scor... | Java | server/RankSystem/src/com/gambasoft/service/RankSystemService.java | marlonpg/EarthDefenders | bsd-3-clause | 3,753 | 88 | codeparrot/github-code |
6ad3a792b6ffe5c83b88eed6863508694f6be9f2d98bcd3e355af68fabede862 | /// HEADER
#include <csapex/io/protcol/node_notes.h>
/// PROJECT
#include <csapex/serialization/io/std_io.h>
#include <csapex/serialization/note_serializer.h>
CSAPEX_REGISTER_NOTE_SERIALIZER(NodeNote)
using namespace csapex;
NodeNote::NodeNote()
{
}
NodeNote::NodeNote(NodeNoteType request_type, const AUUID& uuid) ... | C++ | src/csapex_remote/src/io/protocol/node_notes.cpp | cogsys-tuebingen/csapex | bsd-3-clause | 911 | 39 | codeparrot/github-code |
1136cf4f60636ace38bf7a9240cda7453354b06cfdbe38a436418d8c93336f63 | <?php
namespace frontend\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\Work;
/**
* WorkSearch represents the model behind the search form about `common\models\Work`.
*/
class WorkSearch extends Work
{
/**
* @inheritdoc
*/
public function rules()
... | PHP | frontend/models/search/WorkSearch.php | hulyman/coursework-db-nirs | bsd-3-clause | 1,749 | 74 | codeparrot/github-code |
092c295962f75dc0486ba55df886bd86b997da840839fd0a97f06f8db3f2125b | <?php
namespace app\models;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "country".
*
* @property integer $id
* @property integer $cid
* @property integer $lang_id
* @property string $name
*
* @property Lang $lang
*/
class Country extends \yii\db\ActiveRecord
{
public $c... | PHP | models/Country.php | Maniamarket/invoice | bsd-3-clause | 5,616 | 194 | codeparrot/github-code |
b482b006dd565bce28ced722cebc4a735009e5839bba97b92fd1a006de4a5f7a | <?php
namespace app\controllers\backend;
use yii\helpers\ArrayHelper;
use yii2tech\admin\CrudController;
/**
* AdminController implements the CRUD actions for [[app\models\db\Admin]] model.
* @see app\models\db\Admin
*/
class AdminController extends CrudController
{
/**
* {@inheritdoc}
*/
public... | PHP | controllers/backend/AdminController.php | yii2tech/project-template | bsd-3-clause | 1,238 | 50 | codeparrot/github-code |
05c2c47fcd8df5931fc87d9d618a23d7e6042448b436c5ed615d1b3f9f603ee4 | /*------------------------------------------------------------------------------
*
* Copyright (c) 2011, EURid. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | C | lib/dnscore/src/bytearray_output_stream.c | lye/yadifa | bsd-3-clause | 6,071 | 223 | codeparrot/github-code |
4e70e8246fa0d2090c82c5e2ab3d778e804766d3d09271d90747f7d8cf54ec80 | // Copyright 2014 The cli 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 main
import (
"flag"
"fmt"
"log"
"github.com/zlowram/gocli"
)
func testCmd1Run(tc gocli.Command, flag1 string, flag2 bool, str string) error {
... | GO | _examples/example1.go | zlowram/gocli | bsd-3-clause | 1,846 | 78 | codeparrot/github-code |
eb651880a22c4b079650f39e18728c130e1a4f03e5c81541eeded010540aaa12 | package ciir.jfoley.chai.collections.util;
import ciir.jfoley.chai.lang.Module;
import gnu.trove.set.hash.TIntHashSet;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @author jfoley.
*/
public class SetFns extends Module {
public static <T> Set<T> intersection(List<? extends Collectio... | Java | src/main/java/ciir/jfoley/chai/collections/util/SetFns.java | jjfiv/chai | bsd-3-clause | 2,479 | 93 | codeparrot/github-code |
72d85a767a5e24f493b702ad72707eaf49bff252f361d76407a7823482c0a355 | package bio.terra.cloudres.google.iam;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
@Tag("unit")
public class ServiceAccountNameTest {
@Test
public void name() {
S... | Java | google-iam/src/test/java/bio/terra/cloudres/google/iam/ServiceAccountNameTest.java | DataBiosphere/terra-cloud-resource-lib | bsd-3-clause | 982 | 33 | codeparrot/github-code |
73d5a904835159f769db214da1e5f148a5913ec45abbb2479a0c5c38f7aff662 | /* $NetBSD: ncr53cxxx.c,v 1.2 2000/04/25 16:01:16 bouyer Exp $ */
/*
* Copyright (c) 1995,1999 Michael L. Hitch
* 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 so... | C | netbsd/sys/dev/microcode/siop/ncr53cxxx.c | MarginC/kame | bsd-3-clause | 30,799 | 1,385 | codeparrot/github-code |
59a9bb7f5ba3a72a712818d5d385c4d26c2c0eb7d58cc0aba3f2968d91d48317 | #ifndef GTRN_TRACKER_H
#define GTRN_TRACKER_H
#include <opencv/cv.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "mtf/ThirdParty/GOTURN/helper/bounding_box.h"
#include "mtf/ThirdParty/GOTURN/train/example_generator.h"
#include "mtf/ThirdParty/GOTURN/network/regressor.h"
class Got... | C | ThirdParty/GOTURN/include/mtf/ThirdParty/GOTURN/tracker/tracker.h | abhineet123/MTF | bsd-3-clause | 1,697 | 50 | codeparrot/github-code |
e9aa63c309c30412efe92d785b54d0f084d6f4d5da61d94d219e9bbe838e80a8 | <?php
/**
* AssetBundle.php
* @author Revin Roman
* @link https://rmrevin.ru
*/
namespace common\widgets\FontAwesome;
/**
* Class AssetBundle
* @package rmrevin\yii\fontawesome
*/
class AssetBundle extends \yii\web\AssetBundle
{
/**
* @inherit
*/
public $sourcePath = '@common/widgets/FontAwe... | PHP | common/widgets/FontAwesome/AssetBundle.php | baranov-nt/ektscp | bsd-3-clause | 563 | 37 | codeparrot/github-code |
7e91ca000ed0e18f324669e06a6ecc95536e311963d04645d56c084345edd541 | using System;
using System.Collections.Generic;
using System.Linq;
using CleanArchitecture.Domain.Customers;
using CleanArchitecture.Domain.Employees;
using CleanArchitecture.Domain.Products;
using NUnit.Framework;
namespace CleanArchitecture.Domain.Sales
{
[TestFixture]
public class SaleTests
{
p... | C# | Domain/Sales/SaleTests.cs | matthewrenze/clean-architecture-demo | bsd-3-clause | 2,729 | 122 | codeparrot/github-code |
33b1576b274081ea97e0ded9a99519b51f7b11c2675badc62deb1a7931f048c0 | using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Net;
using CR.AggregateRepository.Core;
using CR.AggregateRepository.Persistance.EventStore;
using CR.MessageDispatch.Core;
using CR.MessageDispatch.Dispatchers.EventStore;
using CR.Mes... | C# | widget-api/ConsoleApiHost/RestApiBootstrapper.cs | cognisant/cr-cqrs-scaffold | bsd-3-clause | 10,809 | 259 | codeparrot/github-code |
eac481a43b2a5b09c0ec87d56582a12ff7ea004963dcdd977370b2fac7932bcb | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/trees/property_tree_builder.h"
#include <stddef.h>
#include <map>
#include <set>
#include "cc/base/math_util.h"
#include "cc/layers/layer.... | C++ | cc/trees/property_tree_builder.cc | highweb-project/highweb-webcl-html5spec | bsd-3-clause | 41,036 | 1,003 | codeparrot/github-code |
1ed9749fed2ffcd2ebf90ec62150e25bd57584e7ac705a32e888d3ce914c80a6 | {% extends "pages/create-resource.html" %}
{#{% load geoanalytics_tags mezzanine_tags pages_tags hydroshare_tags staticfiles%}#}
{% load mezzanine_tags pages_tags hydroshare_tags staticfiles%}
{% block extra_head %}
<link rel="stylesheet" type="text/css" href="{% static 'css/upload.css' %}" />
{% endblock %}
{% blo... | HTML | hs_modelinstance/templates/pages/create-swat-model-instance.html | FescueFungiShare/hydroshare | bsd-3-clause | 27,593 | 741 | codeparrot/github-code |
22814de89ebc5b5f769e7f5396ce568d476589977386ae95ec3fc96e0b73538b | {-# OPTIONS -Wall #-}
-- The pec embedded compiler
-- Copyright 2011-2012, Brett Letner
module Pec.LLVM (dModule) where
import Control.Concurrent
import Data.Char
import Data.Generics.Uniplate.Data
import Data.List
import Data.Maybe
import Development.Shake.FilePath
import Grm.Prims
import Language.LLVM.Abs
import N... | Haskell | Pec/LLVM.hs | stevezhee/pec | bsd-3-clause | 12,321 | 428 | codeparrot/github-code |
8a05d96e7a3fc0fbc30745cc92169031de57066c05e2d39a9ab0954f8b51aef9 | <?php
/**
* @author marcus@symbiote.com.au
* @license BSD License http://silverstripe.org/bsd-license/
*/
class CapturedEmail extends DataObject {
public static $db = array(
'To' => 'Varchar(128)',
'From' => 'Varchar(128)',
'Subject' => 'Varchar(128)',
'Headers' => 'Text',
'Content' => 'Text',
'... | PHP | mailcapture/code/dataobjects/CapturedEmail.php | silverstripe-australia/scavenger-hunt | bsd-3-clause | 627 | 35 | codeparrot/github-code |
3ea08c45fd72aec1cfbfd94f998858d6155680dc31e6abd153a0a724176d4b8e | """Base material for signature backends."""
from django.urls import reverse
class SignatureBackend(object):
"""Encapsulate signature workflow and integration with vendor backend.
Here is a typical workflow:
* :class:`~django_anysign.models.SignatureType` instance is created. It
encapsulates the ba... | Python | django_anysign/backend.py | novafloss/django-anysign | bsd-3-clause | 5,255 | 151 | codeparrot/github-code |
393e039b4f76ebbbf7323d5d4b7bc29c5568719bfa0e163d1a8b762c224efdf8 | /*L
* Copyright Washington University in St. Louis
* Copyright SemanticBits
* Copyright Persistent Systems
* Copyright Krishagni
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catissue-security-manager/LICENSE.txt for details.
*/
package edu.wustl.secu... | Java | software/SecurityManager/src/test/java/edu/wustl/securityManager/dbunit/test/TestSecurityManager.java | NCIP/catissue-security-manager | bsd-3-clause | 18,371 | 803 | codeparrot/github-code |
66cbbc9925caf84c3f5ced7ba2e9abd99a96890816867a649a4440d8a765b95a | package scaladex.server.route
import java.nio.file.Files
import java.nio.file.Path
import akka.http.scaladsl.testkit.ScalatestRouteTest
import org.scalatest.funspec.AsyncFunSpec
import org.scalatest.matchers.should.Matchers
import scaladex.core.service.SearchEngine
import scaladex.core.test.InMemoryDatabase
import sc... | Scala | modules/server/src/test/scala/scaladex/server/route/ControllerBaseSuite.scala | scalacenter/scaladex | bsd-3-clause | 1,221 | 33 | codeparrot/github-code |
d18aad1c5f1fe33df84b8c3107c2036a34d6f1f69f6e834c239d7c772c5a1070 | def extract17LiterarycornerWordpressCom(item):
'''
Parser for '17literarycorner.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('King Of Hell\'s Genius Pampered Wife', 'King ... | Python | WebMirror/management/rss_parser_funcs/feed_parse_extract17LiterarycornerWordpressCom.py | fake-name/ReadableWebProxy | bsd-3-clause | 1,613 | 35 | codeparrot/github-code |
bc33475a3be4f000557ea2615a558bc1f00bbf68de24b520637fde525907fdb7 | #!/bin/bash
uncompress_lib () {
if [ ! -f $1.tar ]
then
gunzip < $1.tar.gz > $1.tar
fi
tar -xvf $1.tar
}
libdir=`pwd`
export CFLAGS="-fPIC"
if [ ! -f fftw3/lib/libfftw3.a ]
then
if [ ! -d fftw3 ]
then
mkdir fftw3
fi
echo 'Building libfftw3 ...'
uncompress_lib fftw-3.3.2
cd fftw-3.3.2
.... | Shell | neurolabi/lib/build.sh | stephenplaza/NeuTu | bsd-3-clause | 1,711 | 99 | codeparrot/github-code |
0d6252ebe5b40fc923afaf10fa10445afd29acbfa55d57873f248dd78798f73c | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | C | Modules/QtWidgets/include/mitkIDataStorageInspectorProvider.h | fmilano/mitk | bsd-3-clause | 2,158 | 68 | codeparrot/github-code |
dff621b77b9cc9d6c0460ab11500e6dda5a0c43674948e1ef4cc6045fdec68cb | // Copyright (c) 2015 by Contributors
// This file contains the customization implementations of R module
// to change behavior of libxgboost
#include <xgboost/logging.h>
#include "src/common/random.h"
#include "./xgboost_R.h"
// redirect the messages to R's console.
namespace dmlc {
void CustomLogMessage::Log(const ... | C++ | xgboost-master/R-package/src/xgboost_custom.cc | RPGOne/Skynet | bsd-3-clause | 1,620 | 66 | codeparrot/github-code |
86d30cefbdaf03b60636ea1f65277495533da977e64a8b80cdae75ee349c7d64 | #ifndef BALL_H
#define BALL_H
#include "cvec.h"
#include <iostream>
class Ball
{
Cvec3 accel; //accel
Cvec3 pos; //current position
Cvec3 prevPos; //old position
Cvec3 normal; // normal
bool canMove;
public:
Ball() {}
Ball(Cvec3 pos) : accel(Cvec3()), pos(pos), prevPos(pos), normal(Cvec3()... | C | ball.h | srinchiera/cloth-simulation | bsd-3-clause | 1,307 | 84 | codeparrot/github-code |
7321b54bc806056ffcbfc18e223d9e88cdd34c692b5f90d9169aaa893da9651e | // tslint:disable:deprecation
import { Integration } from '@sentry/types';
import { getIntegrationsToSetup } from '../../src/integration';
/** JSDoc */
class MockIntegration implements Integration {
public constructor(name: string) {
this.name = name;
}
public name: string;
public setupOnce(): void {
... | TypeScript | packages/core/test/lib/integration.test.ts | getsentry/raven-js | bsd-3-clause | 4,846 | 149 | codeparrot/github-code |
772776c51cc45513ffad8d3b4eeee5947a267f679808e544cecf4c2825bbb3b9 | /*
* Copyright (c) 2015, Stefan Lankes, RWTH Aachen University
* 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
* n... | C | tools/proxy.c | stlankes/HermitCore | bsd-3-clause | 19,579 | 1,043 | codeparrot/github-code |
c53513056ac5bfd384355facbe92bd333508a5c6828b66be0c7464e300a2b833 | from django.conf.urls import patterns, include, url
from django.utils.translation import ugettext_lazy as _
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.views.ge... | Python | foundry/urls.py | praekelt/jmbo-foundry | bsd-3-clause | 12,605 | 471 | codeparrot/github-code |
81858251bcacf93e3facd0be301391903e31ebc91dceeade49ddf2b1a7131088 | #ifndef SPECIES_H
#define SPECIES_H
#include <string>
#include <cmath>
#include "poly.h"
#include "ffm_settings.h"
/*!\brief The Species class holds and manipulates data representing individual plant species.
*/
class Species{
public:
/*!\brief Categorises leaf type*/
enum LeafFormType {ROUND_LEAF, FLAT_LEAF};... | C | forest/species.h | pzylstra/ffm_cpp | bsd-3-clause | 4,213 | 151 | codeparrot/github-code |
6bcd0ec81fd1eeda7d1d412ad6f3d5f86b4a9eb94394470db281a0ab135943d3 | # -*- coding: utf-8 -*-
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""An implementation of the ReplicationConfig proto interface."""
from __future__ import print_function
import json
import os
im... | Python | third_party/chromite/lib/replication_lib.py | endlessm/chromium-browser | bsd-3-clause | 5,370 | 151 | codeparrot/github-code |
98b4f63ab0aa0b54effdb5d4e76fde0eda05e876c0685afe456c3ccfa5cfaeb0 | ---
-- vs2010_rules_xml.lua
-- Generate a Visual Studio 201x custom rules XML file.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vs2010.rules.xml = {}
local m = p.vstudio.vs2010.rules.xml
m.elements = {}
---
-- Entry point; generate the root <ProjectSchemaDefinition... | Lua | src/actions/vstudio/vs2010_rules_xml.lua | bravnsgaard/premake-core | bsd-3-clause | 8,474 | 396 | codeparrot/github-code |
871a03561a7438eb31b183986d8a7ba6df3f0795f94a120457979c89c71b3982 | <?php
namespace app\controllers;
use app\models\EntryForm;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;
class SiteController extends Controller
{
/**
* @inheritdoc
*/
public function behaviors()
... | PHP | controllers/SiteController.php | Shuma2/yii2volleyball | bsd-3-clause | 3,176 | 148 | codeparrot/github-code |
09c4e1955183c1f733ca89520f122c96f292c87e36c0d50453d075c608c8165c | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/socket/tcp_client_socket_win.h"
#include <mstcpip.h>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/m... | C++ | net/socket/tcp_client_socket_win.cc | codenote/chromium-test | bsd-3-clause | 34,082 | 1,047 | codeparrot/github-code |
fa1f80596d1460b38b1f5837c22e523631fe7ff782574b146b31d2fd3e5c13ae | // 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.
#include "chrome/browser/chromeos/extensions/wallpaper_private_api.h"
#include <map>
#include <set>
#include <string>
#include <vector>
#include "as... | C++ | chrome/browser/chromeos/extensions/wallpaper_private_api.cc | Bysmyyr/chromium-crosswalk | bsd-3-clause | 36,641 | 942 | codeparrot/github-code |
3e0894232a72004499577dcfe779d5e0f4f0c08c4ed9acf692f6ab92c5763f8b | #!/bin/bash
# This script runs astyle and complains about lines that are too long
# over all files ending in .h, .c, .cpp listed by git in the given
# directory.
# Check for the latest astyle version
ASTYLE_VER_REQUIRED_1="Artistic Style Version 2.05.1"
ASTYLE_VER_REQUIRED_2="Artistic Style Version 2.06"
ASTYLE_VER_R... | Shell | fix_style.sh | YUNEEC/Yuneec-SDK-Android-Example | bsd-3-clause | 3,544 | 131 | codeparrot/github-code |
3c8daa5d55a0fa849a4b0c15c00ebb45b4d1f71cf8a150d942fd63ade24bfc9a |
#include <ros/ros.h>
#include <pthread.h>
#include <fstream>
#include <std_msgs/String.h>
#include <sensor_msgs/LaserScan.h>
#include <sensor_msgs/MultiEchoLaserScan.h>
#include <urg_c/urg_sensor.h>
#include <urg_c/urg_utils.h>
#include <visualization_msgs/Marker.h>
#include <visualization_msgs/MarkerArray.h>
#include... | C++ | tms_ss/tms_ss_pot/src/urg_tracker.cpp | irvs/ros_tms | bsd-3-clause | 12,433 | 421 | codeparrot/github-code |
2aaf41780011a7e77d7d3236d297417d190c5e3f0a9adb7c20e0333e0738f818 | /*
* [New BSD License]
* Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org>
* 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 reta... | Java | brackitdb-server/src/test/java/org/brackit/server/node/el/ElementlessRecordAccessTest.java | x-clone/brackit.brackitdb | bsd-3-clause | 2,659 | 66 | codeparrot/github-code |
6b342ab8ff8d443e08c624bc1290c10f87934626440c4a2feea7138271f098a3 | package io.github.raptros.bson
import com.mongodb.{BasicDBList, DBObject}
import scalaz._
import scalaz.syntax.id._
import scalaz.syntax.std.boolean._
import scalaz.syntax.validation._
import scalaz.syntax.traverse._
import scala.reflect._
import org.joda.time.DateTime
import scalaz.std.list._
/** the typeclass of th... | Scala | core/src/main/scala/io/github/raptros/bson/DecodeBson.scala | raptros/the-bson | bsd-3-clause | 5,168 | 122 | codeparrot/github-code |
90e3f0b3414430c92a056bca70cff90db241ce284a9fb35542f417cd5a2d215a | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2009 Edgewall Software
# Copyright (C) 2007 Alec Thomas <alec@swapoff.org>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.ed... | Python | tracopt/perm/authz_policy.py | dokipen/trac | bsd-3-clause | 8,731 | 229 | codeparrot/github-code |
a1cd03edce8dcbae996a38008159a286063f26d225c5519dc39aad6c3c60c96f | // Copyright (c) 2012 The Chromium Embedded Framework 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 CEF_LIBCEF_COMMON_COMMAND_LINE_IMPL_H_
#define CEF_LIBCEF_COMMON_COMMAND_LINE_IMPL_H_
#pragma once
#include "include/cef_c... | C | libcef/common/command_line_impl.h | rogerwang/cef | bsd-3-clause | 1,823 | 46 | codeparrot/github-code |
846e490a7868962de33e03b9f26bf5204fda10f0fb2cc0cc074e785997ae4b86 | from __future__ import unicode_literals
from datetime import timedelta
import logging
import os
import re
import time
from django.conf import settings
from django.db import models
from django.db.models import Q
from django.utils.crypto import get_random_string
from django.utils.encoding import python_2_unicode_compat... | Python | mama_cas/models.py | orbitvu/django-mama-cas | bsd-3-clause | 13,586 | 360 | codeparrot/github-code |
1a889c8aaedb03c52e1dfebb5720386f81649b359b2f11031c71ee3a514dc258 | """
Model and manager used by the two-step (sign up, then activate)
workflow. If you're not using that workflow, you don't need to have
'registration' in your INSTALLED_APPS.
This is provided primarily for backwards-compatibility with existing
installations; new installs of django-registration should look into
the HMA... | Python | registration/models.py | tdruez/django-registration | bsd-3-clause | 10,792 | 284 | codeparrot/github-code |
75f6e4d7e6ff4314753eea3b3f7edd54f9a4919b9712bbd51c043c46968aaeec | /*
* RFC 1321 compliant MD5 implementation
*
* Copyright (C) 2001-2003 Christophe Devine
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (a... | C | util/md5.c | olebole/astrometry.net | bsd-3-clause | 7,467 | 259 | codeparrot/github-code |
4eaba737acb3048f3c23707a432efb100b09460445e41e40600a18d3316ae5e0 | <?php
/**
* "Abstract" class for a number of different payment
* types allowing a user to pay for something on a site.
*
* @see DPSPayment
* @see WorldPayPayment
* @see ChequePayment
*
* This can't be an abstract class because sapphire doesn't
* support abstract DataObject classes.
*
* @package payment
*/... | PHP | code/Payment.php | DIA-NZ/silverstripe-payment | bsd-3-clause | 8,402 | 319 | codeparrot/github-code |
d8a6cec1fd7fb79e1360681109e5733fa1ea5bd23526b1287d23fc6f48c27e88 | {[ extends "admin/base.html" ]}
{[ section "content" ]}
{{ include "admin/_info.html" }}
{% local modelUrl = urlConf:baseUri().."/"..urlConf:capture(1) %}
<div class="span-24 last">
<div class="span-18">
<div id="chainMenu">
{% if not isTree then %}
<div class="button" style="float:right">
<a href="{{ m... | HTML | contrib/admin/templates/admin/records.html | metadeus/luv | bsd-3-clause | 2,364 | 91 | codeparrot/github-code |
5a6278875f922a6265e1fbe5fa725a8e440509ac7bd500fdf8e93276f9b5be18 | <?php
namespace backend\controllers;
use Yii;
use common\models\Brand;
use backend\models\BrandSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* BrandController implements the CRUD actions for Brand model.
*/
class BrandController extends Controller
{
public f... | PHP | backend/controllers/BrandController.php | pimshtein/yiishop | bsd-3-clause | 3,057 | 122 | codeparrot/github-code |
4448cee2abee33c4d63864f3cc3a63e9e4a8d064886947e1ec4bb21612667a36 | <?php
// Hooks your functions into the correct filters
function mce_shortcodes_button() {
// check user permissions
if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) {
return;
}
// check if WYSIWYG is enabled
if ( 'true' == get_user_option( 'rich_editing' ) ) {
add_filter... | PHP | support/PlanusWP v2.2/Upload/planus/includes/tinymce-plugins.php | coogle/oss-secrets | bsd-3-clause | 1,088 | 34 | codeparrot/github-code |
65f59a14d45f2fd5f252da3572eaf6478eb460b25cfb71b9a331ebd6a0ed59ee | // 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_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
#define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
#include <map>
#include <vector>
#include "base/basict... | C | chrome/browser/ui/libgtk2ui/gtk2_ui.h | ChromiumWebApps/chromium | bsd-3-clause | 9,669 | 255 | codeparrot/github-code |
ffd20cb340c6feb4bcd96703487d0ec4494e3a9fada4e98d178560667e68da64 | /* ___ _ ___ _ _ *\
** / __| |/ (_) | | The SKilL Generator **
** \__ \ ' <| | | |__ (c) 2013 University of Stuttgart **
** |___/_|\_\_|_|____| see LICENSE ... | Scala | src/main/scala/de/ust/skill/generator/ada/api/internal/FileReaderBodyMaker.scala | XyzNobody/skill | bsd-3-clause | 16,816 | 448 | codeparrot/github-code |
8b0a40be1bc89084e618549c4cc9143c86422f22ee4faf038f2dbf2bb9110af5 | // Copyright 2007, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | C | include/gtest/gtest-printers.h | couchdeveloper/gtest | bsd-3-clause | 30,363 | 797 | codeparrot/github-code |
4792aa5bc14861c408f808b1cf49243730b35656a1016fe8a104ba8966bd795b | #!/usr/bin/env python
from __future__ import print_function
import re
import ast
import subprocess
import sys
from optparse import OptionParser
DEBUG = False
CONFIRM_STEPS = False
DRY_RUN = False
def skip_step():
"""
Asks for user's response whether to run a step. Default is yes.
:return: boolean
"""... | Python | release.py | koljonen/pgcli | bsd-3-clause | 2,731 | 114 | codeparrot/github-code |
a7c551fff4fb68384ecd3ce6ec2cebe076ba9e770f5fbd136fb6041945259d0c | <?php
namespace frontend\modules\eregistrasi\trainingclass\controllers;
use Yii;
use frontend\models\TrainingExecutionEvaluation;
use frontend\models\TrainingExecutionEvaluationSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* TrainingExecutionEvaluationController ... | PHP | frontend/modules/eregistrasi/trainingclass/controllers/TrainingExecutionEvaluationController.php | hscstudio/syawwal | bsd-3-clause | 14,386 | 368 | codeparrot/github-code |
cd6bb06c7840f290f5f35eec3e4acac6d363703ae1e8bdca69a00261fc00ba60 | /*
* Copyright 2018 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | C++ | third_party/webrtc/test/scenario/network_node.cc | endlessm/chromium-browser | bsd-3-clause | 5,601 | 147 | codeparrot/github-code |
64a82a9084f88cbd17917f846cde6fa1ca43c1eb40d4c6a72990439d34df7a94 | <?php
namespace Application\Model\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Journal
*
* @ORM\Table(name="journal", uniqueConstraints={@ORM\UniqueConstraint(name="isbn", columns={"isbn"})})
* @ORM\Entity
*/
class Journal
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", null... | PHP | module/Application/src/Application/Model/Entity/Journal.php | coffeine-009/JMS | bsd-3-clause | 951 | 54 | codeparrot/github-code |
2ae3902f1722c18f352df82f8e231010bb55371e30abc64be8ec3089303f55d8 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-----------------------------------------------------------------------------
# Copyright (C) 2009-2010 Nicolas P. Rougier
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#---------------... | Python | glumpy/image.py | davidcox/glumpy | bsd-3-clause | 8,858 | 253 | codeparrot/github-code |
9ad544b695b8cfd778d86ce2f3aa2a6b3f6d5492de01f19e5088ec8cb5499948 | <!DOCTYPE html>
<html lang="en">
<!-- Mirrored from condorthemes.com/cleanzone/dashboard2.html by HTTrack Website Copier/3.x [XR&CO'2013], Mon, 31 Mar 2014 14:32:52 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" conten... | HTML | webroot/static/theme/cleanzone/dashboard2.html | ptphp/PtTheme | bsd-3-clause | 32,190 | 682 | codeparrot/github-code |
fff1438cace4578195056f181b02fd74624c96ac9acb4de87d23ead5a696bff8 | /*
Copyright (c) 2013, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disc... | Java | src/main/java/com/groupon/util/URLUtils.java | groupon/nakala | bsd-3-clause | 1,935 | 54 | codeparrot/github-code |
dcf8da2a4eb1a2c617fde7a50cd26362ed7218d193b2f7b16d4d284f6758da21 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Social Previews -->
<meta property="og:title" content="Minimal Chat">
<meta property="og:descrip... | HTML | example/index.html | minimalchat/mnml-client | bsd-3-clause | 12,419 | 104 | codeparrot/github-code |
5fac0b6600324aa11a1886a5360273cf4740211e079990b136710536e8fb1ad5 | # Copyright 2014 The Chromium OS 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 common.mk
PC_DEPS = libdrm
PC_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PC_DEPS))
PC_LIBS := $(shell $(PKG_CONFIG) --libs $(PC_DEPS))
CPPFLAGS ... | Makefile | third_party/minigbm/src/Makefile | endlessm/chromium-browser | bsd-3-clause | 1,827 | 61 | codeparrot/github-code |
bc6dfb9504f036640d6ea7b11037cd20f39d2702e06713a3aa667cd6b3de5b6b | #ifndef MANIFOLD_MCP_CACHE_DEBUG_H
#define MANIFOLD_MCP_CACHE_DEBUG_H
#ifndef MCP_DBG_FILTER
#define MCP_DBG_FILTER true
#endif
#ifdef DBG_MCP_CACHE_L1_CACHE
#define DBG_L1_CACHE(ostr, s) \
if (MCP_DBG_FILTER) { \
ostr << s; \
}
#define DBG_L1_CACHE_ID(ostr, s) \
if (MCP_DBG_FILTER) { \
os... | C | models/cache/mcp-cache/debug.h | sixshotx/manifold | bsd-3-clause | 1,634 | 77 | codeparrot/github-code |
7d540ea3ffad4964fa052a853cf6538e44174436dc948035c96d029f47592a23 | // @flow
import compose from 'ramda/src/compose';
import contains from 'ramda/src/contains';
import curry from 'ramda/src/curry';
import curryN from 'ramda/src/curryN';
import pipe from 'ramda/src/pipe';
import props from 'ramda/src/props';
import uniq from 'ramda/src/uniq';
import {
FORMAT_HUETODEGREES,
FORMAT_I... | JavaScript | src/Strings.js | DarrenN/css-color-parser | bsd-3-clause | 4,623 | 207 | codeparrot/github-code |
e74b22a0d31c1e6fcf5e41028f972590d0c168bf18d78f541cd2f7df765e7f16 | // Copyright 2005-2019 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#include "AudioOutputSample.h"
#include "Audio.h"
#include "Utils.... | C++ | src/mumble/AudioOutputSample.cpp | Lartza/mumble | bsd-3-clause | 7,229 | 268 | codeparrot/github-code |
5149c55a3776c7c92fafaad34d28c1d68af040ef937b0e8962eab91e0efd12d9 | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | C++ | libvast/src/system/application.cpp | mavam/vast | bsd-3-clause | 2,475 | 70 | codeparrot/github-code |
d6c4ee3e0e7d747065daa0dc7590be4867bf75dd6dcc0aa8148414ed0ae1b3ae | define(function (require) {
'use strict';
var $ = require('jquery');
var _ = require('underscore');
var XMLSerialiser = new window.XMLSerializer();
function xmlNodeReducer (memo, node) {
return memo + XMLSerialiser.serializeToString(node);
}
/**
* @typedef {Object} XMLParseResult
*
* @pro... | JavaScript | src/bic/lib/parse-form-child-xml.js | blinkmobile/bic-jqm | bsd-3-clause | 932 | 35 | codeparrot/github-code |
3b54fa5952bcb81cb40481679decce7eadfdcdf6556defc89e9901439315bc5d | /*
* Copyright (c) 2014 Liang Li <ll@lianglee.org>. All rights reserved.
*
* This program is a free software and released under the BSD license.
* https://github.com/lang010/acit
*
* Solutions for UVa Problem 10018
* UVa link: http://uva.onlinejudge.org/external/100/10018.html
*
* @Authur Liang Li <ll@li... | Java | uva/10018/Main.java | lang010/acit | bsd-3-clause | 1,376 | 62 | codeparrot/github-code |
c2e007031a9228b33e27e0d21662967e99e46391db0b78aee34f1e906ff66f74 | #ifndef MVMAIN_H
#define MVMAIN_H
#include "ui_SVMainUI.h"
#include "NetStateList.h"
#include <QFileSystemWatcher>
class SVMain : public QMainWindow, private Ui::SVMainUI {
Q_OBJECT
public:
SVMain(QWidget *parent = 0);
void set_scroll_pos_range(int xc, int yc, int xm, int ym);
void set_steps(int x1, int y1,... | C | sview/SVMain.h | galibert/dietools | bsd-3-clause | 622 | 34 | codeparrot/github-code |
f0fb31957cff1867e3574a2eccc5324a87ce44484edc34f6c5485cecebb12a63 | // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package testing provides support for automated testing of Go packages.
// It is intended to be used in concert with the ``go test'' command, which automates
... | GO | src/pkg/testing/testing.go | abustany/go | bsd-3-clause | 16,497 | 544 | codeparrot/github-code |
05f5279a1a29972d3f0592332e335b507173e57ba27856b00c361696875fd3d4 | """
This module contains a class, :class:`Query`, that was implemented to provide
users with means to programmatically query the
`ACS Zeropoints Calculator <https://acszeropoints.stsci.edu>`_.
The API works by submitting requests to the
ACS Zeropoints Calculator referenced above and hence, it is only valid for ACS
spec... | Python | acstools/acszpt.py | jhunkeler/acstools | bsd-3-clause | 14,427 | 381 | codeparrot/github-code |
b01b824dcea733dacb7c35a6edd85e0f8d5dfb1166bbf7b7c606ace2587e5bac | /* Copyright 1994, 1995 LongView Technologies L.L.C. $Revision: 1.22 $ */
/* Copyright (c) 2006, Sun Microsystems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source c... | C++ | vm/oops/symbolKlass.cpp | jirkadanek/Strongtalk | bsd-3-clause | 3,417 | 90 | codeparrot/github-code |
6eb47909ffaa1f537b85119a2127f7aa0bda5704de9e571aa41b07db46f08487 | /*
* Copyright (C) 2012-2013 TopCoder Inc., All Rights Reserved.
*/
package gov.nasa.pds.processors.impl;
import gov.nasa.pds.entities.Column;
import gov.nasa.pds.entities.MetadataObject;
import gov.nasa.pds.entities.Product;
import gov.nasa.pds.entities.Property;
import gov.nasa.pds.entities.Table;
import gov.nasa.... | Java | import_and_persistence/src/java/main/gov/nasa/pds/processors/impl/Helper.java | Small-Bodies-Node/ntl_archive_db_demo | bsd-3-clause | 22,957 | 647 | codeparrot/github-code |
949b9a7272ae739a4d2dabd0758fd6fb3e4fbd9bf79cda0b9591128e55607a5e | /******************************************************************************
This source file is part of the MolCore project.
Copyright 2011 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distrib... | C++ | src/atom.cpp | qust113/molcore | bsd-3-clause | 1,805 | 74 | codeparrot/github-code |
d691a2e290945355a3686409eec18a50d732737b0c45d9b09863249625033db6 | // Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import {
Application
} from 'phosphor/lib/ui/application';
import {
ApplicationShell
} from './shell';
/**
* The type for all JupyterLab plugins.
*/
export
type JupyterLabPlugin<T> = Application.IPlugin<Jupy... | TypeScript | src/application/index.ts | TypeFox/jupyterlab | bsd-3-clause | 652 | 32 | codeparrot/github-code |
71a33da3babd99e1ea7661a78e2292d0e992c21f82799f70f5ef33733b9ed323 | from django.conf import settings
from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import gettext_lazy as _
from churchill.apps.core.models import BaseModel
from churchill.apps.currencies.services import get_default_currency_id
class StatsCalculationStrategy(model... | Python | churchill/apps/profiles/models.py | manti-by/Churchill | bsd-3-clause | 2,037 | 68 | codeparrot/github-code |
1ae8b9f2eebedd50e2a67425868133dc9e6dbbf268b93dd18780e48a8bb53fc0 | //-----------------------------------------------------------------------------
// Filename: SilverlightPolicyServer.cs
//
// Description: Listens for requests from Silverlight clients for policy files. Silverlight
// will request the policy file before allowing a socket connection to a host. The code is
// derived fr... | C# | sipsorcery-core/SIPSorcery.SIP.App/SilverlightPolicyServer.cs | amccool/sipsorcery | bsd-3-clause | 7,307 | 185 | codeparrot/github-code |
5065bb4d845813af69ab6c46adb2f123fc3a6e423401792b8de5f56f091b16fe | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Coevery.DisplayManagement.Implementation;
namespace Coevery.DisplayManagement.Shapes {
public class ShapeMetadata {
public ShapeMetadata() {
Wrappers = new List<string>();
Alternates = new Li... | C# | src/Coevery/DisplayManagement/Shapes/ShapeMetadata.cs | Coevery/Coevery-Framework | bsd-3-clause | 1,702 | 43 | codeparrot/github-code |
fc4271db1bf566c28e096c64fecf1c7793153ed0f858566a63a924f6182899c6 | #!/usr/bin/env python
#
# Program: $Id: $
# Author: Robert Beverly <rbeverly@nps.edu>
# Description: Experimental tracebox warts parser
import sys
import struct
import dpkt
from sc_warts import *
if dpkt.__version__ == '1.8':
print "Upgrade dpkt"
sys.exit(-1)
TRACEBOXTYPE = 0x0c
def dict_diff(a, b):... | Python | sc_tracebox.py | cmand/scamper | bsd-3-clause | 7,053 | 214 | codeparrot/github-code |
f7276766178753719dbfb9b2d677ae0826a45e846b3b2c7ada73818b8f68c1cc | /* BFD support for the FRV processor.
Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software F... | C | tools/source/binutils-2.16.1/bfd/cpu-frv.c | shaotuanchen/sunflower_exp | bsd-3-clause | 2,434 | 64 | codeparrot/github-code |
a142a9eed69f00742d64f790f97afddb5c35c442c8b1b197df237c66c4407be6 | <link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../../bower_components/things-ajax/things-ajax.html">
<link rel="import" href="../../things-layout-view/things-layout-mercury.html">
<link rel="import" href="../../things-meta-view/things-diy-based-grid.html">
<link ... | HTML | app/elements/things-bundles/term/things-term-move-lot.html | ThingsElements/things-starter-kit | bsd-3-clause | 5,968 | 249 | codeparrot/github-code |
4601c3998062a8577f39be3697d05cd2c9f0d5e29ebb7a342baeb82ccaa92818 | // 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_CHROMEOS_GDATA_GDATA_OPERATION_REGISTRY_H_
#define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_OPERATION_REGISTRY_H_
#pragma once
#inc... | C | chrome/browser/chromeos/gdata/gdata_operation_registry.h | robclark/chromium | bsd-3-clause | 5,603 | 165 | codeparrot/github-code |
5919bfdeaa3a48abcf40b64bc7c6f7b1884e981cfd644476a0264d10e33d1155 | 'use strict';
var express = require('express');
var configurations = module.exports;
var app = express.createServer();
var nconf = require('nconf');
var redis = require('redis');
var db = redis.createClient();
var settings = require('./settings')(app, configurations, express);
nconf.argv().env().file({ file: 'local.j... | JavaScript | app.js | ednapiranha/surrender-the-dust | bsd-3-clause | 863 | 39 | codeparrot/github-code |
f3e4ab7267412118c32a675e1163108c183ac6b033f5db5b4ad900e67f7ccb09 | from django.db import models
from django.db.models import Q
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.auth import get_user_model
from django.contrib.auth.models import UserManager, Permission, AnonymousUser
from django.contrib.contenttypes.models import ContentType
from django.utils.enco... | Python | userena/managers.py | bioinformatics-ua/django-userena | bsd-3-clause | 12,823 | 350 | codeparrot/github-code |
6bc309475621b981909182dfd84849ae4fe54d43ee85c41c7c3dab02be57bf71 | /*
* libjingle
* Copyright 2009 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the fo... | C++ | talk/p2p/base/p2ptransportchannel_unittest.cc | healthkxy/libjingle-ios | bsd-3-clause | 41,846 | 1,006 | codeparrot/github-code |
9899ad93abb55d87b8f9736ba2832bee4b1c2f47847066a8e8ea73b20971b3ab | {-# LANGUAGE TemplateHaskell #-}
------------------------------------------------------------------------------
-- | This module defines our application's state type and an alias for its
-- handler monad.
--
module Application where
------------------------------------------------------------------------------
impo... | Haskell | src/Application.hs | HaskellCNOrg/snap-web | bsd-3-clause | 1,347 | 42 | codeparrot/github-code |
7f31c0d9eeaf6dac9b81a55ba47ebb124925c839824d6df561d3d19d95a37e28 | from django import forms
from django.core import validators
from comperio.accounts.models import cUser, Settings, cGroup
from django.core.validators import email_re
import random, datetime, sha
MIN_PASSWORD_LENGTH = 6
class LoginForm(forms.Form):
"""account login form"""
username = forms.CharField(widget=form... | Python | comperio/accounts/forms.py | neutrinog/Comperio | bsd-3-clause | 8,980 | 188 | codeparrot/github-code |
a411fb864092ecb8af0433508f8b6979debb995b991773c951d86b738ac7bac5 | # -*- coding: utf-8 -*-
from classytags.arguments import Argument, MultiValueArgument
from classytags.core import Options, Tag
from classytags.helpers import InclusionTag
from classytags.parser import Parser
from cms.models import Page, Placeholder as PlaceholderModel
from cms.plugin_rendering import render_plugins, re... | Python | cms/templatetags/cms_tags.py | VillageAlliance/django-cms | bsd-3-clause | 14,804 | 420 | codeparrot/github-code |
22a98ffd892abe6b5a7ae2894d7a50b6882dda99742aff80802058bd29e8962c | /*
* Copyright 2016 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkPath.h"
#include "include/core/SkRegion.h"
#include "include/private/SkTemplates.h"
#include "include/private/SkTo.h"
#include "sr... | C++ | src/core/SkScan_AAAPath.cpp | HalCanary/skia-hc | bsd-3-clause | 81,765 | 2,009 | codeparrot/github-code |
55a673452f03bbea4bb04b9a8e8120ce931f8a9c2a80b06a312139e1e5914756 | // $Id$
/*
Classic skip list library
> Created (Julienne Walker): April 11, 2004
> Updated (Julienne Walker): August 19, 2005
based on code released to the publicdata domain by Julienne Walker
*/
#include "jsw_rand.h"
#include "jsw_slib.h"
#ifdef WITH_SHARED_TABLES
#include "shared.h"
#endif
#ifdef __... | C | ctables/skiplists/jsw_slib.c | flightaware/speedtables | bsd-3-clause | 14,312 | 604 | codeparrot/github-code |
8b2b50c7814e08edfff09d06714652baf34a6b720c296f77614f08755358403b | /*
LUFA Library
Copyright (C) Dean Camera, 2012.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purp... | C | VirtualSerial.h | ganehag/brown-fox | bsd-3-clause | 2,511 | 78 | codeparrot/github-code |
ceaa57d333840d11936876c5846ed6b8bfdf8dbad4a1b6cd8d9f203e449e63bb | #ifndef _NPY_PRIVATE__UFUNC_TYPE_RESOLUTION_H_
#define _NPY_PRIVATE__UFUNC_TYPE_RESOLUTION_H_
NPY_NO_EXPORT int
PyUFunc_SimpleBinaryComparisonTypeResolver(PyUFuncObject *ufunc,
NPY_CASTING casting,
PyArrayObject **operands,
... | C | numpy/core/src/umath/ufunc_type_resolution.h | simongibbons/numpy | bsd-3-clause | 5,801 | 142 | codeparrot/github-code |
c27bde8da3e9d0af0e5e3441f7c8ada1cece2b47cdb5f3711a9779714b853bdb | #pragma once
#include <queue>
#include "adabs/pgas_addr.h"
#include "adabs/tools/alignment.h"
namespace adabs {
namespace collective {
namespace pgas {
inline void remote_allocate_real(gasnet_token_t token, gasnet_handlerarg_t arg0,
gasnet_handlerarg_t arg1,
... | C | include/adabs/collective/allocator.h | jbreitbart/sa-pgas | bsd-3-clause | 11,857 | 377 | codeparrot/github-code |
b7ff4f1822336c5f49057dbf53344d044224e588ed371b5e6c96f8654ce76b03 | <?php
declare(strict_types=1);
namespace LizardsAndPumpkins\DataPool\SearchEngine\Solr\Http;
use LizardsAndPumpkins\DataPool\SearchEngine\Solr\Http\Exception\SolrConnectionException;
class CurlSolrHttpClient implements SolrHttpClient
{
/**
* @var string
*/
private $solrConnectionPath;
public ... | PHP | src/Http/CurlSolrHttpClient.php | lizards-and-pumpkins/lib-search-engine-solr | bsd-3-clause | 3,145 | 112 | codeparrot/github-code |
fc3dc2dffe5171f8b026bf90b30b2fc3069a54f8fae24ff8472bf0915c1feb9c | package org.jbehave.core.embedder;
import static java.util.Arrays.asList;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.mockito.ArgumentMatchers.any;
import... | Java | jbehave-core/src/test/java/org/jbehave/core/embedder/PerformableTreeConversionBehaviour.java | valfirst/jbehave-core | bsd-3-clause | 7,825 | 154 | codeparrot/github-code |
9e1d42ac4943f230b54ad59ef0d2496b7462d4bfdac3f2878fc367b0b1cc2d30 | <?php
namespace backend\modules\crm\models;
/**
* This is the ActiveQuery class for [[QuestionChoice]].
*
* @see QuestionChoice
*/
class QuestionChoiceQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
return $this->andWhere('[[status]]=1');
}*/
/**
* @inheritdoc
*... | PHP | backend/modules/crm/models/QuestionChoiceQuery.php | yuttapong/webapp | bsd-3-clause | 601 | 35 | codeparrot/github-code |
ce0b58f96c526e2acc8e150ec08a05558112ec7145f866aba6cb162c92fdfaad | <?php
namespace Blog;
use ZF\Apigility\Provider\ApigilityProviderInterface;
class Module implements ApigilityProviderInterface
{
public function getConfig()
{
return include __DIR__ . '/../../config/module.config.php';
}
public function getAutoloaderConfig()
{
return array(
... | PHP | module/Blog/src/Blog/Module.php | n1te1337/apigility-blog-example | bsd-3-clause | 1,296 | 50 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.