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 |
|---|---|---|---|---|---|---|---|---|
ae5bbf15c259f645fcb9e7b395261ab351af26c0cd47d97b3b24ad8d9be2aa17 | //----------------------------------------------------------------------
// File: perf.cpp
// Programmer: Sunil Arya and David Mount
// Description: Methods for performance stats
// Last modified: 01/04/05 (Version 1.0)
//----------------------------------------------------------------------
// Copyright (c) 1997-2... | C++ | Utilities/ann/src/perf.cpp | nocnokneo/MITK | bsd-3-clause | 5,276 | 135 | codeparrot/github-code |
11bddf0a6960f785ceb0991dc6a9a50e34c8e5afdcc330bc35c2c6f52beaef27 | /*
* PROJECT: Atomix Development
* LICENSE: BSD 3-Clause (LICENSE.md)
* PURPOSE: Conv_I2 MSIL
* PROGRAMMERS: Aman Priyadarshi (aman.eureka@gmail.com)
*/
using System;
using System.Reflection;
using Atomix.Assembler;
using Atomix.Assembler.x86;
using Atomix.CompilerExt;
us... | C# | src/Compiler/IL/Conversion/Conv_I2.cs | amaneureka/AtomOS | bsd-3-clause | 3,812 | 96 | codeparrot/github-code |
2132cbd93d89891b7a8c169b3d98bf3c1f027296e65dfb36011d56ba684d3ac0 | /* Copyright 2012-2014, Peter A. Bigot
*
* 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 condi... | C | src/platform/trxeb/u8g_bsp430.c | pabigot/bsp430 | bsd-3-clause | 11,352 | 316 | codeparrot/github-code |
e604504a67fe927633eaa2cc9ed5ce4ab1ce266910545d788481a4d8299f55e5 | #ifndef ALIANALYSISTASKHIGHPTDEDX_H
#define ALIANALYSISTASKHIGHPTDEDX_H
// ROOT includes
#include <TList.h>
#include <TH1.h>
//#include <TTreeStream.h>
#include <TRandom.h>
#include <TObject.h>
// AliRoot includes
#include <AliAnalysisTaskSE.h>
#include <AliESDEvent.h>
#include <AliAODEvent.h>
#include <AliMCEvent.h>... | C | PWGLF/SPECTRA/IdentifiedHighPt/train/AliAnalysisTaskHighPtDeDx.h | mkrzewic/AliPhysics | bsd-3-clause | 9,217 | 189 | codeparrot/github-code |
aaa46fbcec64d6b32a62c0d1145e213d322ccd36c0e1f9d96ebdcee15f848b08 | from django.core.urlresolvers import reverse
from rest_framework import serializers
from casenotes.api import CaseNoteSerializer
from .. import models
class ViewTicketSerializer(serializers.ModelSerializer):
case_note = CaseNoteSerializer()
claim_url = serializers.SerializerMethodField()
resolve_url = s... | Python | ditto/tickets/api/serializers.py | Kvoti/ditto | bsd-3-clause | 900 | 32 | codeparrot/github-code |
81b64c7ed40f6527659a775bf77ebf06a7f5dad4e4f6023ac852a9397eb2b14d | #!/usr/bin/python2.6
import sys, string, os, time, fnmatch, imgFG, markup, re
from markup import oneliner as o
from numpy import *
import pdb
abi = ["DTB-004", "DTB-009", "DTB-024Pro", "DTB-030", "DTB-034", "DTB-036", "DTB-046", "DTB-049", "DTB-053", "DTB-064", "DTB-073"]
naive = ["DTB-003", "DTB-005", "DTB-011", ... | Python | tools/old-external-tools/shazam/abiFG.py | UCSC-MedBook/MedBook_ | bsd-3-clause | 14,508 | 470 | codeparrot/github-code |
93efd98c3852d4b8d73434548c7812362cf84166b6fa1eec38537216f2eb50e7 | {-# LANGUAGE CPP, FlexibleInstances, NamedFieldPuns,
NoImplicitPrelude, TemplateHaskell,
UndecidableInstances #-}
#include "overlapping-compat.h"
{-|
Module: Data.Aeson.TH
Copyright: (c) 2011-2015 Bryan O'Sullivan
(c) 2011 MailRank, Inc.
License: Apache
Stability: experimental
Portab... | Haskell | Data/Aeson/TH.hs | neobrain/aeson | bsd-3-clause | 48,238 | 1,239 | codeparrot/github-code |
c662e81897179909ddd44d9ebe56965e15332926be18fd254a74e7e7d2e6c719 | #ifndef HRICASE1_HPP_
#define HRICASE1_HPP_
#include <vector>
#include <string>
#include <visor/Vattn/vattn.hpp>
#include <eris/tag.h>
#include <eris/console_pretty.hpp>
/**
* Case 1 - Image feed only
*/
class Case1 {
protected:
struct object_result {
bool is_familiar;
std::vector<std::string> label;
std::vec... | C++ | eris/include/eris/hricase1.hpp | ferdianap/eris | bsd-3-clause | 3,155 | 108 | codeparrot/github-code |
8dd8eddf273a3d001c45eb60483832de018687329692f5e583319cce9c6f6937 | import datetime
import os
from django.db import models
from django.core.files.base import ContentFile
from django.core.files.storage import get_storage_class
from django.utils.translation import ugettext as _
from django.utils.hashcompat import md5_constructor
from django.utils.encoding import smart_str
from django.db... | Python | avatar/models.py | Temesis/django-avatar | bsd-3-clause | 6,049 | 173 | codeparrot/github-code |
7a09fb4cdc2b4a0361e89810669cc5dd6befee0269c584cdae49541952da0b8d | /*=========================================================================
Program: Visualization Toolkit
Module: vtkParametricSpline.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... | C | Common/ComputationalGeometry/vtkParametricSpline.h | keithroe/vtkoptix | bsd-3-clause | 6,019 | 173 | codeparrot/github-code |
a26065dc1175af04cd71187b2e69146eeb61f4205303c0876b28a945fae837d3 | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "adminuser".
*
* @property integer $id
* @property string $username
* @property string $nickname
* @property string $password
* @property string $email
* @property string $profile
*
* @property Post[] $posts
*/
class Adminuser... | PHP | common/models/Adminuser.php | yaolei829/yii2-blog | bsd-3-clause | 1,257 | 64 | codeparrot/github-code |
a8cf46ce0c2e4cd2dcd330b3843db7a03842cda90af3fb15f6764c618aceeefc | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package versioned.host.exp.exponent.modules.api.netinfo;
import android.os.Build;
import com.facebook.react.bridge.Promise;
import... | Java | android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/netinfo/NetInfoModule.java | exponentjs/exponent | bsd-3-clause | 2,575 | 73 | codeparrot/github-code |
82d6bfff5314614f2bd1deea37155878fbc2871ecc165652563c23b78b9687a5 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/local_discovery/pwg_raster_converter.h"
#include <algorithm>
#include "base/bind_helpers.h"
#include "base/cancelable_callback.... | C++ | chrome/browser/local_discovery/pwg_raster_converter.cc | ltilve/chromium | bsd-3-clause | 12,353 | 364 | codeparrot/github-code |
34932cc1c262dabc314c2cfbda0127b8217f5edf88f7a5fa9b5d9a2880b57412 | {% extends 'world_vision/multi_report.html' %}
{% load static %}
{% block reporttable %}
{% if report.needs_filters %}
{% include 'reports/partials/description.html' %}
{% else %}
<div class={{ report.slug }}>
{% for reports_list in reports %}
<div class="row col-md-12">
... | HTML | custom/world_vision/templates/world_vision/accordion_report.html | qedsoftware/commcare-hq | bsd-3-clause | 2,873 | 50 | codeparrot/github-code |
e8bccc5fb4984d417fd717f6b3c3beb8571019bd62c7ac359c1aa0e2370396bc | """
Convert a Python string to its native type.
The reason this module exists because there is a need to handle arguments with
the syntax `--opt KEY=VAL` where `KEY` will be used as a keyword argument
somewhere and `VAL` is expected to be a native Python type.
This module was built with click in mind, which is an exc... | Python | str2type/__init__.py | geowurster/str2type | bsd-3-clause | 3,276 | 94 | codeparrot/github-code |
a7b8473149f66494998915385da57228eb0a3326ccc4f65469c3ad53a792a7fb | package internal
import (
"context"
"fmt"
"io"
"net/http"
"strconv"
"github.com/rockbears/log"
"github.com/ovh/cds/engine/worker/internal/action"
"github.com/ovh/cds/engine/worker/pkg/workerruntime"
"github.com/ovh/cds/sdk"
)
func downloadHandler(ctx context.Context, wk *CurrentWorker) http.HandlerFunc {
... | GO | engine/worker/internal/handler_download.go | ovh/cds | bsd-3-clause | 2,217 | 90 | codeparrot/github-code |
ee2cbf42dcd020c065bbcbf30c76784bb63a1cbceb9abe63693127392cc445ba | """
Axilent Client functionality for Dox.
"""
from sharrock.client import HttpClient, ResourceClient, ServiceException
from dox.config import get_cfg
from dox.utils import slugify
def _get_resource(app,resource,library=True):
"""
Gets a resource client.
"""
cfg = get_cfg()
apikey_setting = 'library... | Python | dox/client.py | Axilent/Dox | bsd-3-clause | 2,050 | 72 | codeparrot/github-code |
1892a07f55212b7a451dfaa311190f99b7cb03c51cc62ea5d9dfdc578b122022 | /*
* 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/Serialization/SceneXmlLoader.cs | EriHoss/OpenSim_0.8.2.0_Dev_LibLSLCC | bsd-3-clause | 10,729 | 285 | codeparrot/github-code |
8c377ca7cff319d0991880b93e4461ac8d1658d95e5d42ec72f26e6097926e16 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImplicitBoolean.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software... | C | Common/DataModel/vtkImplicitBoolean.h | cjh1/VTK | bsd-3-clause | 4,398 | 133 | codeparrot/github-code |
4945199b4ef0aafbe7fc2953effb2536b2f0cbc9ac1fba10e25fb44109dcea77 | --
-- Copyright (c) 2017, Xavier Gastaldi.
-- 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.
--
require 'nn'
... | Lua | models/shakeshakeblock.lua | xgastaldi/shake-shake | bsd-3-clause | 8,349 | 184 | codeparrot/github-code |
6253e0a3f1497cd9eeddaafae8c4bd3c3a315a218e2fb4e4df46cc6742bf0563 | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Minecraft.Player where
import Control.Lens.TH (makeLenses)
import Data.Data (Data)
import Data.Typeable (Typeable)
import Data.NBT
im... | Haskell | Minecraft/Player.hs | stepcut/minecraft-data | bsd-3-clause | 6,179 | 170 | codeparrot/github-code |
f9afde35a680330f1237cf1ff17e79883a4f6edc6ffca4b69f6db5723a477222 | /* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... | C++ | src/obj/BSPSysSimpleColorModifier.cpp | BlazesRus/niflib | bsd-3-clause | 5,985 | 219 | codeparrot/github-code |
aa54eb056d03200785b752fe893022541487e3fc406846e2b72755e51650ef20 | from ..system_uri import IETF_LANGUAGE_TAG
from .coding import Coding
from .lazy import lazyprop
class LocaleConstants(object):
"""Attributes for built in locales
Additions may be defined in persistence files, base values defined
within for easy access and testing
"""
def __iter__(self):
... | Python | portal/models/locale.py | uwcirg/true_nth_usa_portal | bsd-3-clause | 817 | 31 | codeparrot/github-code |
af3d103315fccd8ae46579ae186c451f8332920fde542df029d98af85541f6c5 | package za.org.grassroot.integration.analytics;
import com.amazonaws.auth.profile.ProfileCredentialsProvider;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder;
import com.amazonaws.services.dynamodbv2.doc... | Java | grassroot-integration/src/main/java/za/org/grassroot/integration/analytics/AnalyticsServiceBrokerImpl.java | grassrootza/grassroot-platform | bsd-3-clause | 3,177 | 71 | codeparrot/github-code |
0990ecf6e627edb51cc255beacf8779a31bf9f2bedf4e372dc3873d0648c51db | // ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the proj... | TypeScript | src/main/redux/sagas/api/publication/import/importFromString.ts | edrlab/readium-desktop | bsd-3-clause | 1,439 | 35 | codeparrot/github-code |
4281cdf34aa8b7ef5280f25a474b7be5ebfed64edc1dbfee9917018b732092cb | 'use strict';
var Point = require('point-geometry');
var DOM = {};
/**
* Captures mouse position
*
* @param {Object} e Mouse event
* @param {Object} el Container element.
* @returns {Point}
*/
DOM.mousePos = function(e, el) {
var rect = el.getBoundingClientRect();
return new Point(
e.clientX - rect.lef... | JavaScript | widget/assets/draw/mapbox-gl-draw/src/lib/util.js | hendrikusR/open-layer | bsd-3-clause | 5,182 | 211 | codeparrot/github-code |
74c7960b6645cee5856b4b5438110f50cde21197af60a7304918b9590fe84a1f | /*
* Copyright (c) 2015, Brno University of Technology, Faculty of Information Technology
* 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 th... | Java | sched-advisor-tool/src/main/java/eu/juniper/sa/tool/AdvisorUsingDatabaseAbstract.java | juniper-project/sched-advisor | bsd-3-clause | 11,137 | 276 | codeparrot/github-code |
79ff70f7c9691ef942f546f843fb23995770f6fc2dbae1ea37c554aa48131538 | package nl.tudelft.dnainator.javafx.widgets.dialogs;
import javafx.scene.Node;
import javafx.scene.control.Alert;
import javafx.scene.control.ButtonBar.ButtonData;
import javafx.scene.control.ButtonType;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import java.io.IOException;
import java.io.I... | Java | dnainator-javafx/src/main/java/nl/tudelft/dnainator/javafx/widgets/dialogs/AboutDialog.java | AbeelLab/dnainator | bsd-3-clause | 2,199 | 74 | codeparrot/github-code |
ba700cd0c0e4ae068952fc92f626db6cfa11abb723b35edb8c962d9ed0493662 | "use strict";
var _ = require("./utils");
/**
* A module of methods for object that you want to be able to listen to.
* This module is consumed by `createStore` and `createAction`
*/
module.exports = {
/**
* Hook used by the publisher that is invoked before emitting
* and before `shouldEmit`. The ar... | JavaScript | lib/PublisherMethods.js | Sipree/reflux-core | bsd-3-clause | 6,066 | 186 | codeparrot/github-code |
f3e3a3e729ad74e1be114048d89264ab18abc1f218770aac90bdcef583618a69 | import sys
import numpy as np
from PyQt4.QtCore import QTimer
from pyqtgraph.Qt import QtGui, QtCore
import pyqtgraph as pg
from timestamp import now_timestamp
from numpy_buffer import RingBuffer
class MyApplication(QtGui.QApplication):
def __init__(self, *args, **kwargs):
super(MyApplication, self).__i... | Python | samples/sample_pyqtgraph_no_datetime.py | scls19fr/numpy-buffer | bsd-3-clause | 1,706 | 66 | codeparrot/github-code |
19e3346282f0c87d2991b3cf816fda0f3383c2260af2c1dfa5f92e484031ffc2 | /*
* Written by Julian Elischer (julian@tfs.com)
* for TRW Financial Systems for use under the MACH(2.5) operating system.
*
* TRW Financial Systems, in accordance with their agreement with Carnegie
* Mellon University, makes this software available to CMU to distribute
* or use in any manner that they see fit as... | C | freebsd2/sys/scsi/cd.c | MarginC/kame | bsd-3-clause | 37,208 | 1,475 | codeparrot/github-code |
6dc3377274666d5aa59c9a3b5611c523cfde91f7c8e197a5d82645a3b7e4cc62 | <?php
namespace Application\Controller\Admin;
use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Doctrine\ORM\EntityManager;
use Application\Form\Client\ClientForm;
use Application\Form\Doctor\DoctorForm;
use Application\Form\Pharmacy\PharmacyForm;
use DoctrineModule\Stdlib\H... | PHP | module/Application/src/Application/Controller/Admin/IndexController.php | GabiEne/getRecipe | bsd-3-clause | 11,946 | 388 | codeparrot/github-code |
f137f035a31a3859b302da783ddd72626123050616057086efab556d28ed239f | /*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright (c) 2013, Janrain, 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:
*
* * Re... | Java | Jump/src/com/janrain/android/capture/CaptureApiError.java | janrain/engage.android | bsd-3-clause | 7,531 | 205 | codeparrot/github-code |
18a2856df66281ae865a3f186dfb07fa7692cfd2cc97d0bd759b486c4380b28b | // Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved.
package jodd.joy.db;
import jodd.bean.BeanUtil;
import jodd.db.DbSession;
import jodd.db.ThreadDbSessionHolder;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
public class AppDao... | Java | jodd-joy/src/test/java/jodd/joy/db/AppDaoTest.java | wsldl123292/jodd | bsd-3-clause | 1,184 | 50 | codeparrot/github-code |
4cf29fbbf61751c051efed0db04c6d1eb3d9dc908810ea8d9d98e1e659a5d403 | // 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 "services/service_manager/sandbox/win/sandbox_win.h"
#include <stddef.h>
#include <string>
#include <utility>
#include <vector>
#include "... | C++ | services/service_manager/sandbox/win/sandbox_win.cc | endlessm/chromium-browser | bsd-3-clause | 43,989 | 1,076 | codeparrot/github-code |
8ca964081ea325c5b540608332dcfbc365d3deea55a71dcf63a499fc5471bed0 | // Copyright 2011 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 CC_LAYERS_TILED_LAYER_IMPL_H_
#define CC_LAYERS_TILED_LAYER_IMPL_H_
#include <string>
#include "cc/base/cc_export.h"
#include "cc/layers/layer_i... | C | cc/layers/tiled_layer_impl.h | loopCM/chromium | bsd-3-clause | 2,364 | 78 | codeparrot/github-code |
147b8679cce3aa1ce6831b7b65a9ffaf7de6424a424bd119626d326af992961f | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.0.11832 on 2017-03-22.
# 2017, SMART Health IT.
import io
import json
import os
import unittest
from . import compartmentdefinition
from .fhirdate import FHIRDate
class CompartmentDefinitionTests(unittest.TestCase):
def instantiate_fro... | Python | rdr_service/lib_fhir/fhirclient_3_0_0/models/compartmentdefinition_tests.py | all-of-us/raw-data-repository | bsd-3-clause | 3,668 | 69 | codeparrot/github-code |
df11f131b6ed062025561036f70b74bd9ef214de56a6165fcfcafd3bd631ac1c | <?php
class Geonames_Suite_Db_Admin2 {
public $_db = null;
public function __construct($db) {
$this->_db=$db;
}
/**
* This method permits to retrieve admin1 zones list for a country.
*
* @param $admin1_code string code of admin1 zone
* @param $country_code string ISO_ALPHA2 code of country of ci... | PHP | classes/Db/Admin2.php | nblaudez/Geonames_suite | bsd-3-clause | 2,182 | 78 | codeparrot/github-code |
c3e596fe3a643cf724e2b2b2e3aa037ac22a66746245faf404a86855a84db3a0 | /*
* Copyright (c) 2016, 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 condit... | Java | intf/src/main/java/com/groupon/lex/metrics/timeseries/Alert.java | groupon/monsoon | bsd-3-clause | 5,507 | 132 | codeparrot/github-code |
a7aca0c52e4cf48a0a2f41afb29235b0932224cac3e9e4ccd7d2eedbf244a734 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, ... | Java | src/test/java/org/intelligentsia/hirondelle/date4j/TESTDateTimeFormatterTest.java | geronimo-iia/date4j | bsd-3-clause | 11,954 | 240 | codeparrot/github-code |
baf1100e9a1929fd83d9464004b0157b7b7c251d736b9d19718ab1bd419d409b | /**
* Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED.
* Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED.
* Copyright (C) ARM Ltd. 2016. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/uio.h>
#include "cma_ep.h"
... | C | src/uct/sm/cma/cma_ep.c | abouteiller/ucx | bsd-3-clause | 4,726 | 117 | codeparrot/github-code |
0570349dbd20a2134e5928d8adbda7eb5a336182c3cae949b89fc260d8b15e38 | // Copyright © 2010-2015 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "CefBrowserWrapper.h"
#include "CefAppUnmanagedWrapper.h"
#include "JavascriptRootObjectWrapper.h"
#inc... | C++ | CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp | gregmartinhtc/CefSharp | bsd-3-clause | 14,666 | 367 | codeparrot/github-code |
9442036b3b9bcc122bc87d628a53b7fd0541ca28397f92b8b64607b99a123388 | #include "enumerative.h"
namespace BuiltIn {
namespace Optimization {
namespace
{
Enumerative instance;
}
Enumerative::Enumerative() :
Function("enumerative")
{
}
Rpn::Operand Enumerative::calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArguments)
{
// Initialize algorithm variables
m_calcul... | C++ | source/builtin/optimization/enumerative.cpp | ming13/aequatio | bsd-3-clause | 2,195 | 82 | codeparrot/github-code |
c4ca9644606583a6042b1f23691479985f5d8acd89554380a5a2e1b068adc043 | // #################################################################################################
// # < neo430_twi.c - Internal Two Wire Serial interface functions > #
// # ********************************************************************************************* #
// # BSD 3-Clause... | C | sw/lib/neo430/source/neo430_twi.c | stnolting/neo430 | bsd-3-clause | 6,662 | 144 | codeparrot/github-code |
f7e1b50b55ef0aa805c31110b89f18e0142a2f3d456ce989e8869ac7d5a1161d | (function($) {
"use strict";
/* DROPDOWN CLASS DEFINITION */
var toggle = '[data-toggle="socialshare"]';
var share_selector = '.socialshare';
var fb_iframe = '.socialshare.open[data-type="small-bubbles"] #share-options div.fb-like iframe';
var $share_container;
var packaged_html = '' +
... | JavaScript | src/socialshare.js | mozilla/SocialShare | bsd-3-clause | 6,938 | 207 | codeparrot/github-code |
373d7dfbf42ab5a223bb8aadffd977a5c7e8a6452b20fc7d9d48c44bac1e7874 | // Copyright 2016 Stefano Pogliani <stefano@spogliani.net>
#include "core/event/source/readline.h"
#include <fcntl.h>
#include <poll.h>
#include <string>
#include "readline/history.h"
#include "readline/readline.h"
#include "core/exceptions/base.h"
#include "core/compile-time/options.h"
#include "core/context/static... | C++ | event/source/readline/src/readline.cpp | ArcticNature/core | bsd-3-clause | 4,185 | 164 | codeparrot/github-code |
72533026a14a3d8b92b597f147ae87a86d23faebe4711e55a70d7e5b193fe540 | import { stubDate } from "../../../mocks/dateMock.helper"
import { FileDownloader } from "./fileDownloader"
import { FileMeta, CodeMapNode, FileSettings, BlacklistType } from "../codeCharta.model"
import { TEST_FILE_DATA, TEST_FILE_DATA_DOWNLOADED, VALID_NODE_DECORATED, VALID_EDGES_DECORATED } from "./dataMocks"
import... | TypeScript | visualization/app/codeCharta/util/fileDownloader.spec.ts | MaibornWolff/codecharta | bsd-3-clause | 2,775 | 70 | codeparrot/github-code |
90e8566bfcccb28f5a62e27159525bc07bc4fc5c3c5f9d63d1878f607b7aa01c | // Copyright 2011 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 main
import (
"flag"
"fmt"
"go/ast"
"go/parser"
"go/scanner"
"go/token"
"go/types"
"io/ioutil"
"os"
"path/filepath"
"strings"
)
var (
// ... | GO | src/cmd/gotype/gotype.go | ssrl/go | bsd-3-clause | 4,100 | 201 | codeparrot/github-code |
b865f01655eb68fe043c5cf62045eb8a72115f89366069fa17c2d09cd26d4bcb | # PRODUCTS
# Products represent an entity for sale in a store.
# Products can have variations, called variants
# Products properties include description, permalink, availability,
# shipping category, etc. that do not change by variant.
#
# MASTER VARIANT
# Every product has one master variant, which stores master pri... | Ruby | core/app/models/spree/product.rb | yomishra/pce | bsd-3-clause | 11,553 | 328 | codeparrot/github-code |
b805fb91bb4b698eec3056875bd45d4b4cc131860c4c045da00dfa0b5a2769df | package udt
import (
"fmt"
"net"
sockaddr "github.com/libp2p/go-sockaddr"
sockaddrnet "github.com/libp2p/go-sockaddr/net"
"golang.org/x/sys/unix"
)
type UDTAddr struct {
addr *net.UDPAddr
}
func (a *UDTAddr) Network() string { return "udt" }
func (a *UDTAddr) String() string {
if a == nil || a.addr == nil {... | GO | addr.go | Syncbak-Git/go-udtwrapper | bsd-3-clause | 2,259 | 113 | codeparrot/github-code |
552cda566023facae777ca114e53f16d0c2c7d7ec2ae92b2a7754de10fe3399b | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import patterns, url
from .views import GuideList, GuideDetail, ContentDetail
urlpatterns = patterns('cacao.views',
url(r'^$', GuideList.as_view(), name="home"),
url(r'^guia/(?P<guide_numbe... | Python | cacao_app/cacao/urls.py | CacaoMovil/guia-de-cacao-django | bsd-3-clause | 1,231 | 34 | codeparrot/github-code |
126e2bfc6d82be07e5325745615194b29eeb054a22f300e84998ab62e79f1358 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | PHP | library/Zend/Loader/StandardAutoloader.php | Bad-Hack/Zend-Socket | bsd-3-clause | 11,487 | 370 | codeparrot/github-code |
2cb908bf14e18eae000dcbedfa5de4955aea643bcd4c3fb4350d25398be479fa | /*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | C++ | third_party/blink/renderer/core/workers/worker_thread.cc | nwjs/chromium.src | bsd-3-clause | 36,932 | 944 | codeparrot/github-code |
e85fd0f8d48ec0e8848ed177259d178d8dc3dcc16a207e1705f0c23809dd0c81 | <?php
/**
* Free-D.O.M
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
*
* @category Free-D.O.M
* @copyright Copyright (c) 2009-2013, Fernando Macias Ruano, www.wunderbit.com < fmaciasruano@gmail.com > .
* @license http://w... | PHP | module/FreeDOM/src/FreeDOM/Model/FilesGroup/Data.php | fmacias/wbcms | bsd-3-clause | 5,053 | 136 | codeparrot/github-code |
4ba80ddeaeb3ed25ccb09f0df0f53ee9dbe7535e818d6ecf81935a343e3160c0 | /*
Copyright (c) 2011, Matt Joseph
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 follo... | C | CS449/project4-Fall2011/pi_driver.c | matthewgjoseph/basic-computer-science-coding | bsd-3-clause | 3,934 | 121 | codeparrot/github-code |
0d2ded53aee287885b4d54c78db631caf959ecdc90b304a430f24dad703f1951 | /*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | Java | src/com/vmware/vim25/OvfElement.java | mikem2005/vijava | bsd-3-clause | 1,911 | 49 | codeparrot/github-code |
0f786e4e228aef7ba3060e5fb8605520bddbbe799a9c6a7e880d6abd3df39cc2 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009-2013, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... | Java | Product/Production/Common/CONNECTCoreLib/src/test/java/gov/hhs/fha/nhinc/transform/audit/PatientDiscoveryTransformsTest.java | AurionProject/Aurion | bsd-3-clause | 35,800 | 802 | codeparrot/github-code |
0d275c5bc2f960368b0c47c534d33c040ea650a177ff718428df88c15724ad66 | {-# LANGUAGE CPP, DeriveDataTypeable, GeneralizedNewtypeDeriving, Rank2Types,
RecordWildCards #-}
#if __GLASGOW_HASKELL >= 800
-- a) THQ works on cross-compilers and unregisterised GHCs
-- b) may make compilation faster as no dynamic loading is ever needed (not sure about this)
-- c) removes one hindrance to have c... | Haskell | Data/Aeson/Types/Internal.hs | roelvandijk/aeson | bsd-3-clause | 20,704 | 660 | codeparrot/github-code |
9c0a0da7ea4ed7192c54bf74701b8af54c1f03df460551aa8d5613017d009785 | /* $OpenBSD: sbusreg.h,v 1.2 2001/08/18 21:30:00 jason Exp $ */
/* $NetBSD: sbusreg.h,v 1.7 1999/06/07 05:28:03 eeh Exp $ */
/*
* Copyright (c) 1996-1999 Eduardo Horvath
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... | C | openbsd/sys/arch/sparc64/dev/sbusreg.h | MarginC/kame | bsd-3-clause | 9,267 | 194 | codeparrot/github-code |
1868cedefee9f731f507ea6b230b0b8834ff17285a777f8b9f54889ad0c03c71 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0... | C++ | src/C++/Mozilla/old_snapshots/certverifier/CertVerifier.cpp | GaloisInc/hacrypto | bsd-3-clause | 34,787 | 978 | codeparrot/github-code |
c212ea0d8cd342ad87ed8c66de9a891c1e6b981cc5fa54349f965bba70c0d051 | /*
* Copyright (c) 2003 Matteo Mazzarella <mm@cydonia.vpn.cuore.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:
*
* 1. Redistributions of source code must retain the above copyright... | C | sud/service.c | mm79/sud | bsd-3-clause | 7,100 | 296 | codeparrot/github-code |
c29e5450826f0d900b5675ad156d124a7b75c35c989f7c4dfc2f58fab615a8a9 | from django.http import HttpResponse, HttpResponseBadRequest
from django.views.decorators.csrf import csrf_exempt
from msp430.models import *
from tcp_comm.client import push_config
from msp430.models import MSP430
import json
@csrf_exempt
def register(request):
"""When an MSP430 connects to the TCP server this... | Python | msp430webcontrol/tcp_comm/views.py | zlalanne/msp430-webcontrol | bsd-3-clause | 2,798 | 79 | codeparrot/github-code |
071a0bbb7b991c330596d06ff3e7475b698120dc66299d54bdb5f294d3ce9d28 | /*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* 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 ... | Java | projects/com.oracle.truffle.llvm.parser.impl/src/com/oracle/truffle/llvm/parser/impl/LLVMConstantEvaluator.java | PrinzKatharina/sulong | bsd-3-clause | 7,731 | 185 | codeparrot/github-code |
a75b9bcfff2b774a23affe293ff5f0f3477fccb9b3a086e259155329b7523f07 | // Copyright (c) 2011 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 <stdint.h>
#include "base/i18n/string_search.h"
#include "third_party/icu/source/i18n/unicode/usearch.h"
namespace base {
namespace i18n {... | C++ | base/i18n/string_search.cc | endlessm/chromium-browser | bsd-3-clause | 4,246 | 111 | codeparrot/github-code |
b0b2db2250c631d6d21758863bb1df11fe46c4a33eaaec5482bee8b76d91ad71 | <?php
declare(strict_types=1);
namespace Linio\Component\Queue;
abstract class Job
{
protected bool $status = false;
/**
* @var mixed
*/
protected $payload = null;
/**
* @param mixed $payload
*/
public function __construct($payload = null)
{
if (!$payload) {
... | PHP | src/Queue/Job.php | LinioIT/queue | bsd-3-clause | 1,091 | 71 | codeparrot/github-code |
5d29022c71ef986a2a3027a564a64af1dc7bbc3941f6c3f983a78a292eea9fb8 | <?php
namespace app\models;
use Yii;
use yii\base\Model;
use app\models\User;
/**
* LoginForm is the model behind the login form.
*/
class LoginForm extends Model
{
public $username;
public $password;
public $rememberMe = true;
private $_user = false;
/**
* @return array the validation r... | PHP | models/LoginForm.php | ivphpan/rgktest | bsd-3-clause | 2,110 | 89 | codeparrot/github-code |
1d9f84bb39c5e70001b63f47469b1fbc6dc05fb8b26b7ec6c123504c43163327 | #include <map>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <boost/algorithm/string.hpp>
#include <leveldb/db.h>
#include <leveldb/write_batch.h>
#include <leveldb/cache.h>
#include <leveldb/filter_policy.h>
#include "IndexDbLevelDb.h... | C++ | src/IndexDbLevelDb.cpp | katonori/cxxtags | bsd-3-clause | 26,135 | 812 | codeparrot/github-code |
494849ee19d5995b2b4996eacc43b61c17c3192c34f1cbf5006d17bd8f90d3cd | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_loop_02.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml
Template File: sources-sink-02.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate usin... | C | xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_int64_t_loop_02.c | JianpingZeng/xcc | bsd-3-clause | 4,010 | 141 | codeparrot/github-code |
571ce95f56ec273f3b47a5a5b36d145a5abc39a3e901f52234944a75c4b222ed | <?php
/*
/**
* Decorator that attaches an edit button to images when displayed in the
* Files & Images section of the website
*
* Note that this decorator is actually attached to File objects; this is to
* provide support for the DataObjectManager module, which doesn't
* explicitly provide support for Image class... | PHP | code/decorators/PixlrImageDecorator.php | nyeholt/silverstripe-pixlr | bsd-3-clause | 4,784 | 124 | codeparrot/github-code |
d4e114792641bf21301370cce90c523e3db16ea284d4a8dd2bbb2fc53da144cb | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrGeometryProcessor_DEFINED
#define GrGeometryProcessor_DEFINED
#include "GrColor.h"
#include "GrGeometryData.h"
#include "GrProcessor.h"
#include "GrShaderVar.h"
/*... | C | src/gpu/GrGeometryProcessor.h | jtg-gg/skia | bsd-3-clause | 15,763 | 387 | codeparrot/github-code |
f36e27fa389b288c32f32fa77d1e794da45bb2b7be4c795cadd35e3497abf67c | # coding=utf-8
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.utils.translation import ugettext_lazy as _
from models import WorkflowBase, State
from utils import get_wf_dict_value
def create_transition_method(transition_name, transit... | Python | workflows/decorators.py | suselrd/django-wflow | bsd-3-clause | 6,481 | 155 | codeparrot/github-code |
f4aa464fb35fad8a6ba11177bec389399888c7db830ffc4f3b240a2156baf760 | {-# LANGUAGE CPP #-}
-- Copyright 2019 Google LLC
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file or at
-- https://developers.google.com/open-source/licenses/bsd
-- | This module provides combinators for constructing Haskell types.
module GHC.SourceGen.Type
... | Haskell | src/GHC/SourceGen/Type.hs | google/ghc-source-gen | bsd-3-clause | 3,157 | 118 | codeparrot/github-code |
5ffade7e5e1dcda68f84c568b484eb5e2a43eade428f66b08a80cbbb069073c6 | /**
* ********************************************************************************
* Copyright (c) 2011, Monnet Project 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 ... | Java | main/src/main/java/eu/monnetproject/lemon/impl/FormImpl.java | monnetproject/lemon.api | bsd-3-clause | 9,523 | 254 | codeparrot/github-code |
7193e1f26b3b629e3d22eedfa8e732311d1d82e634b1ef85d9b37598bb33eea1 | using System;
using NUnit.Framework;
using SharpVectors.Dom.Svg;
namespace SharpVectors.UnitTests.Svg.BasicTypesAndInterfaces
{
// The resulting test values were generated using MuPad Light
// NOTE: The original implementation of SvgMatrix returned doubles when accessing properties. To stay consistent with th... | C# | test/SharpVectors/Dom/Svg/Basic types/SvgMatrixTests.cs | codebutler/savagesvg | bsd-3-clause | 7,381 | 234 | codeparrot/github-code |
0f706dfc680eacc12fda1ba5481677a84a092768a828ace1d6ac5856a7b6c983 | <html lang="en">
<head>
<title>Linking/Windows - AMD Core Math Library (ACML) 5.3.1</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="AMD Core Math Library (ACML) 5.3.1">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<li... | HTML | acml/Doc/html/Linking_002fWindows.html | KaimingOuyang/HPC-K-Means | bsd-3-clause | 6,676 | 146 | codeparrot/github-code |
053bbe89fad4a634abeb32c8a2760c4fafd37b7ac1ce690d2d7e2db9724b00a2 | from django.db.models import fields
from django.db import connection
from django.dispatch import receiver, Signal
from psycopg2.extras import register_composite
from psycopg2.extensions import register_adapter, adapt, AsIs
from psycopg2 import ProgrammingError
_missing_types = {}
class CompositeMeta(type):
def... | Python | postgres/fields/composite.py | wlanslovenija/django-postgres | bsd-3-clause | 1,779 | 57 | codeparrot/github-code |
b1b93eaa62e81b9c28f89f069d2ff820524ef6b2aba207c9e066ea9fd2de25d0 | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "render_int.h"
#include <utility>
#include <vector>
#include "core/... | C++ | core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp | andoma/pdfium | bsd-3-clause | 35,502 | 995 | codeparrot/github-code |
e789ae7f9cde5f8efb32f465e9c84a804cf578dbee02e4ff5ad4a6d210c59e0a | package org.usfirst.frc620.Warbot2017.util;
import edu.wpi.first.wpilibj.PIDOutput;
/**
* A dummy PID output that does not output to any hardware. Pass the
* DummyPIDOutput object to the PIDController class and read the output in your
* own code. This is useful for mixing the results of multiple PID control... | Java | src/org/usfirst/frc620/Warbot2017/util/DummyPIDOutput.java | FRC-Team-620/Warbot2017 | bsd-3-clause | 825 | 37 | codeparrot/github-code |
2140a32bb7434d4534d2053dd7e05c78575b3d7f8d47e22580d7918afae47b93 | package udt
// Structure of packets and functions for writing/reading them
import (
"io"
)
type ack2Packet struct {
h header
ackSeqNo uint32 // ACK sequence number
}
func (p *ack2Packet) socketId() (sockId uint32) {
return p.h.dstSockId
}
func (p *ack2Packet) sendTime() (ts uint32) {
return p.h.ts
}
f... | GO | udt/packet_ack2.go | oxtoacart/go-udt | bsd-3-clause | 562 | 33 | codeparrot/github-code |
8eda67a42654a33bbee94d0ac4f2ae76ec666124648f45735f9a69020d4aa655 | /*
Java Network Simulator (javaNetSim)
Copyright (c) 2007, 2006, 2005, Ice Team; All rights reserved.
Copyright (c) 2004, jFirewallSim 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... | Java | src/core/protocolsuite/tcp_ip/Tcp.java | Darkkey/javaNetSim | bsd-3-clause | 60,502 | 1,354 | codeparrot/github-code |
f7292f1db31cabec1bb4ba5be91d60a4301043daab56bb057f57ee2344e8cf5d | /* $NetBSD: rnd.c,v 1.15 1999/04/01 19:07:40 explorer Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Michael Graff <explorer@flame.org>. This code uses ideas and
* algorithms from the Linux dri... | C | netbsd/sys/dev/rnd.c | MarginC/kame | bsd-3-clause | 19,560 | 940 | codeparrot/github-code |
f72410743a234cd7c076b75d7bb6369081ce217b7d68e96eea8aa617a22e78fa | # We need to load during build when the Rubinius lib dir cannot be in
# $LOAD_PATH because the bootstrap ruby will load other lib contents.
base = File.expand_path "../", __FILE__
require base + '/generators/structures'
require base + '/generators/constants'
require base + '/generators/types'
module Rubinius
module F... | Ruby | library/ffi/generators.rb | pH14/rubinius | bsd-3-clause | 4,261 | 160 | codeparrot/github-code |
fe7b6f170e1291161a0a7d9fa64c87ca353dca27a379164b95024fba3be22765 | /*
* Copyright (c) 2012 The Native Client 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "native_client/src/include/nacl_base.h"
#include "native_client/src/i... | C | src/trusted/service_runtime/nacl_signal_common.c | nacl-webkit/native_client | bsd-3-clause | 10,055 | 317 | codeparrot/github-code |
6c3550d684825741f5e2a4bd03d38b3467538909f9ab49e0d3ef429332c2b815 | using System;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
namespace Voyage.Terraingine.DXViewport
{
/// <summary>
/// A quaternion-based movement object for DirectX.
/// </summary>
public class QuaternionMovement
{
#region Data Members
/// <summary>
/// A quaternion for holding orientation in... | C# | Terrain Generator - source/C#/Libraries/Core/DXViewport/QuaternionMovement.cs | stormont/terraingine | bsd-3-clause | 8,164 | 344 | codeparrot/github-code |
d1f0cd96766ce9834d288701bde79ef78bc4c597d31fbfd6d8ed5cf3c5327b77 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_char_16.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml
Template File: sources-sinks-16.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines... | C++ | xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s06/CWE762_Mismatched_Memory_Management_Routines__new_free_char_16.cpp | JianpingZeng/xcc | bsd-3-clause | 3,255 | 127 | codeparrot/github-code |
3fc31e717f4dba3aa1ef08a2f4d77d28e9948c94c905eda16225bf0e08e6f38c |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="lang:clipboard.copy" conte... | HTML | v0.12.1/_modules/statsmodels/tools/numdiff.html | statsmodels/statsmodels.github.io | bsd-3-clause | 62,444 | 707 | codeparrot/github-code |
c54ad9f2f48fc9e605663b43407725710ea62c753fa9475610a9f246ad683b5f | package org.datagr4m.drawing.renderer.pathfinder.view;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Stroke;
import java.awt.geom.Point2D;
import org.datagr4m.drawing.model.pathfinder.path.IPath;
import org.datagr4m.viewer.renderer.DefaultRenderer;
public class PathSegmentsRenderer extends Defa... | Java | datagr4m-drawing/src/main/java/org/datagr4m/drawing/renderer/pathfinder/view/PathSegmentsRenderer.java | datagr4m/org.datagr4m | bsd-3-clause | 9,303 | 241 | codeparrot/github-code |
7729f9ac7270f3fd51a98f7dbf6c05b49423a253bbfa6d62b092626e4e3cdc4d | package com.amee.provenance;
import org.openprovenance.elmo.RdfArtifact;
import org.openprovenance.elmo.RdfOPMFactory;
import org.openprovenance.elmo.RdfProcess;
import org.openprovenance.model.ObjectFactory;
import org.openprovenance.rdf.*;
import org.openrdf.elmo.ElmoManager;
import org.openrdf.elmo.Entity;
import ... | Java | provenance-java/src/main/java/com/amee/provenance/AMEERdfOPMFactory.java | AMEE/provenance.prototype | bsd-3-clause | 1,284 | 43 | codeparrot/github-code |
890026b537214da5190894320ed66b08e632fe28af2dc98473dbefa40316a8f7 | // 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 WEBKIT_COMMON_CURSORS_WEBCURSOR_H_
#define WEBKIT_COMMON_CURSORS_WEBCURSOR_H_
#include "base/basictypes.h"
#include "third_party/WebKit/publi... | C | webkit/common/cursors/webcursor.h | mogoweb/chromium-crosswalk | bsd-3-clause | 6,033 | 196 | codeparrot/github-code |
b2e1d3c221865b4437a58bfeb86a2830a0715aae8993e696558e6c664b77fbc2 | /*=============================================================================
A Standard compliant C++ preprocessor
http://www.boost.org/
Copyright (c) 2001-2005 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt or copy at ht... | C++ | ieaddon/Upgradr/boost/wave/grammars/cpp_predef_macros_gen.hpp | darwin/upgradr | bsd-3-clause | 2,904 | 74 | codeparrot/github-code |
d3105aa3bd42a0a1d17b14f3c04f666bfe8f2f80b32a7de26e99ae3d8a4da68a | package org.erhsroboticsclub.robo2013.utilities;
import edu.wpi.first.wpilibj.DriverStationLCD;
import edu.wpi.first.wpilibj.Timer;
/**
*
* This class uses the DriverStationLCD class to post messages to the driver
* station It uses an array of strings to make the driver station lcd more like
* a console
*
* @au... | Java | src/org/erhsroboticsclub/robo2013/utilities/Messenger.java | erhs-robotics/Robo2013 | bsd-3-clause | 3,136 | 102 | codeparrot/github-code |
c2f45b935726a67e5aeda83150955bbf393cd676d915d8e8020b14d2c5f19418 | from reportlab.lib import styles
from reportlab.lib import colors
from reportlab.lib.units import cm
from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_RIGHT, TA_JUSTIFY
from reportlab.platypus import Preformatted, Paragraph, Frame, \
Image, Table, TableStyle, Spacer
def getParagraphStyles():
""... | Python | tools/pythonpoint/styles/standard.py | nickpack/reportlab | bsd-3-clause | 4,262 | 133 | codeparrot/github-code |
3a63753b20afaeac8085e3e9a5c45f1c03b5613bb355f69024000f8e8bf779df | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "cs_categories_translation".
*
* @property integer $id
* @property integer $category_id
* @property string $lang_code
* @property string $name
* @property string $orig_name
* @property string $description
*
* @property CsLangua... | PHP | common/models/CsCategoriesTranslation.php | bokko79/servicemapp | bsd-3-clause | 1,783 | 76 | codeparrot/github-code |
b3e64f9f2245c658ac0e014e0d1c0846a3b0e6eb446dff6479ec166366825596 | <?php
/**
* Description of PersonaTable
*
* @author anb
*/
namespace Persona\Model;
use Zend\Db\TableGateway\TableGateway;
class PersonaTable
{
protected $tableGateWay;
public function __construct(TableGateway $tableGateWay) {
$this->tableGateWay = $tableGateWay;
}
public fu... | PHP | module/Persona/src/Persona/Model/PersonaTable.php | enlacee/iglesia-bb | bsd-3-clause | 1,361 | 55 | codeparrot/github-code |
f7df1305e0ff5dd2774b61bc807974f36a74ac46d9cc606e37281a2d6b06c1a6 | from pyrr import Vector3
from vistas.core.bounds import BoundingBox
class Object3D:
""" Partially abstract class defining the base API for interacting with 3D objects. """
def __init__(self):
self.position = Vector3([0.] * 3)
self.scale = Vector3([1.] * 3)
self.rotation = Vector3([0.... | Python | source/vistas/core/graphics/object.py | VISTAS-IVES/pyvistas | bsd-3-clause | 1,952 | 65 | codeparrot/github-code |
f04ef729e403fd481ba660a8cff7ad653c006f4dfbbc811c252639ab67699793 | <?php
namespace app\controllers\Base;
use Yii;
use app\models\Base\Classmkb;
use app\models\Base\ClassmkbSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use app\func\Proc;
use yii\filters\AccessControl;
/**
* ClassmkbController implements the CRUD actions for Classmkb model.
*/
class ClassmkbCon... | PHP | controllers/Base/ClassmkbController.php | vovancho/yii2test | bsd-3-clause | 2,455 | 93 | codeparrot/github-code |
bbb482cd9d9918fd12a6c64da170bff611a4445253823908eb65b15f56ce348b | /* /////////////////////////////////////////////////////////////////////////
* File: ReclsFileSearchDirectoryNode.hpp
*
* Purpose: ReclsFileSearchDirectoryNode class.
*
* Created: 31st May 2004
* Updated: 10th January 2017
*
* Home: http://recls.org/
*
* Copyright (c) 2004-2017, Matt... | C++ | src/ReclsFileSearchDirectoryNode.hpp | synesissoftware/recls | bsd-3-clause | 9,003 | 227 | codeparrot/github-code |
2075c05a8777a52d7dd94221f0669ee373852e20d54597490922104fc9057aa3 | /**
* Copyright 2013-2014, 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/core/ReactPropTransferer.js | mjul/react | bsd-3-clause | 4,648 | 164 | codeparrot/github-code |
a01164a703d1049668350e4cec69b76025b6155f021c94d411e9b2137706d6e5 | import wx
from PIL import Image
from vistas.core.threading import Thread
from vistas.ui.controls.static_image import StaticImage
from vistas.ui.utils import make_window_transparent
LegendRenderEvent, EVT_LEGEND_RENDERED = wx.lib.newevent.NewEvent()
class LegendWindow(wx.Frame):
""" A window for showing a render... | Python | source/vistas/ui/windows/legend.py | VISTAS-IVES/pyvistas | bsd-3-clause | 8,666 | 237 | codeparrot/github-code |
2ee9fbc34525415a22641377a6223884998073b52460116d210badf454c4df67 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/ozone/platform/scenic/scenic_surface_factory.h"
#include <lib/sys/cpp/component_context.h>
#include <lib/zx/event.h>
#include <memory>
#inc... | C++ | ui/ozone/platform/scenic/scenic_surface_factory.cc | endlessm/chromium-browser | bsd-3-clause | 10,513 | 311 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.