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
c339cfdbaeec56f1e4ca96fb82df9511614fc0a03330fe4dfd6fadb7f9d621bf
----------------------------------------------------------------------------- -- | -- Module : Text.ParserCombinators.Parsec.Prim -- Copyright : (c) Daan Leijen 1999-2001 -- License : BSD-style (see the file libraries/parsec/LICENSE) -- -- Maintainer : daan@cs.uu.nl -- Stability : provisional -- Por...
Haskell
libraries/Text/ParserCombinators/Parsec/Prim.hs
OS2World/DEV-UTIL-HUGS
bsd-3-clause
17,579
457
codeparrot/github-code
d2cf17df2903a15210e1727998ef87e2c6eb4c60510469b89d5db6dcf27b3082
// Copyright (c) 2009 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_COMMON_RENDER_MESSAGES_H_ #define CHROME_COMMON_RENDER_MESSAGES_H_ #include <string> #include <vector> #include <map> #include "app/c...
C
chrome/common/render_messages.h
rwatson/chromium-capsicum
bsd-3-clause
72,789
2,313
codeparrot/github-code
466ecfbaca1fdbd3c2cd5d9eb583d2fad5e8abf861107eda0c825dd92ebd337b
<?php namespace common\models; use Yii; use yii\web\NotFoundHttpException; /** * This is the model class for table "{{%tbl_tag}}". * * @property string $id * @property string $title */ class Tags extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableName() { ...
PHP
common/models/Tags.php
sydorenkovd/yiiadv
bsd-3-clause
1,336
69
codeparrot/github-code
bb3552ffa2373f7a2e7fb61c6597aaa0c1725a3c43ee5965ee38bfec4fd59ffa
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @author Mark Gates @generated from control/magma_znan_inf.cpp, normal z -> d, Tue Aug 30 09:38:00 2016 */ #include <limits> #include "ma...
C++
control/magma_dnan_inf.cpp
maxhutch/magma
bsd-3-clause
7,830
275
codeparrot/github-code
d414d3f367bb571b7af4c08a28cba797ee058fc75190b0d2d124dddf0ccba87a
<?php namespace backend\controllers; use Yii; use backend\models\AdvertiseComment; use backend\models\AdvertiseCommentSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * AdvertiseCommentController implements the CRUD actions for AdvertiseComment model. */ class Adve...
PHP
backend/controllers/AdvertiseCommentController.php
muhammadtahakhan/classified
bsd-3-clause
3,241
122
codeparrot/github-code
17d38b095f864c70ab7f97721c822ddceb6a46c244c0a132133e04f927e518d0
//===--- IdentifierTable.h - Hash table for identifier lookup ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C
native_client/toolchain/pnacl_mac_x86/host_x86_64/include/clang/Basic/IdentifierTable.h
leighpauls/k2cro4
bsd-3-clause
29,971
837
codeparrot/github-code
86a6069b20b4ac09857cba406eb7a3d964c9a0f4f8ebd28be34a52726a1906dc
<?php namespace app\modules\task\controllers\admin; use Yii; use app\modules\task\models\User; use app\modules\task\models\search\UserSearch; use app\core\web\BackController; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * UserController implements the CRUD actions for User model. */ class Use...
PHP
modules/task/controllers/admin/UserController.php
cboy868/lion
bsd-3-clause
3,114
122
codeparrot/github-code
fb38a133ba61b3461500c40022ac85a21994f615f3c1e8b175d2df9dae098ed1
/* * * Copyright (c) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany * All rights reserved. See COPYRIGHT file for details. * * * Source file for class DRTStructureSetROISequence * * Generated automatically from DICOM PS 3.3-2007 * File created on 2012-02-01 16:51:15 * */ #include "dcmtk/con...
C++
AIMToolkit_v4.0.0_rv44/source/dcmtk-3.6.1_20121102/dcmrt/libsrc/drtssrs.cc
NCIP/annotation-and-image-markup
bsd-3-clause
22,137
737
codeparrot/github-code
8384feb55bd802f6a082778c711d03fc51b7b1525bcfb94e722669823f545bef
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_EXPORT_PASSWORD_MANAGER_EXPORTER_H_ #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_EXPORT_PASSWORD_MANA...
C
components/password_manager/core/browser/export/password_manager_exporter.h
scheib/chromium
bsd-3-clause
5,644
138
codeparrot/github-code
c2fe0916f1f3e8909ac3af6f264f3a7d38336d8bafa482f45f62ff2de00767f0
/*global $,window*/ function onchanger() { "use strict"; if ($("#user_select").val() === "null") { return; } window.location.href = "/overtime/" + $("#user_select").val() + "/" + $("#cmb_yearbox").val() + "/"; } $(function() { $("td").each(function () { $(this).click(function (e) { ...
JavaScript
static/js/overtime.js
AeroNotix/django-timetracker
bsd-3-clause
1,715
55
codeparrot/github-code
0ba7cc8fe5b4f1d582c2c054201302fdbfd43c20648fd8d814169c41523e96fb
############################################################################### # # Drone Simulator # # Copyright (c) 2017, Mandar Chitre # # This file is part of dronesim which is released under Simplified BSD License. # See file LICENSE or go to http://www.opensource.org/licenses/BSD-3-Clause # for full license detai...
Python
dronesim.py
org-arl/dronesim
bsd-3-clause
6,968
205
codeparrot/github-code
21a44bd4d1f0b52b0bd3aebde49f2a78d69a599fa308c8ba64642ac4a08eb0fb
/* * Copyright 2002-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/l...
C
openssl/crypto/conf/conf_mod.c
jens-maus/amissl
bsd-3-clause
15,768
621
codeparrot/github-code
6e71c5a5f9023deb3641b0916371ab2eef0a8c97fe2a53191d9cc761d5d993dd
#!/usr/bin/env ruby -wKU require 'net/http' require 'uri' require 'json' count = ARGV.last.to_i if ARGV.length > 0 count ||= 10 def extract_line source, search lines = source.split '\n' lines.select {|l| l =~ search }.first end def load_user_page fbid user_uri = URI.parse("http://graph.facebook.com/#{fbid}") ...
Ruby
fbof.rb
bmnick/FacebookOrderedFriends
bsd-3-clause
1,521
73
codeparrot/github-code
0bf7e98b637c092101704e1ac0c9fce27bc038435fa6a0a21a336e186b73ab9e
// Copyright (c) 2014 // INRIA Saclay-Ile de France (France) // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 3 of the License, // or (at your option) any l...
C
graphics/cgal/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/LA.h
hlzz/dotfiles
bsd-3-clause
5,394
171
codeparrot/github-code
f191fbf82dba124bc325fcda2556f2feaf2f18fc41803c63b46fb7933cc1d43a
from glob import glob import os import time import tornado.ioloop from tornado import gen from .core import Stream, convert_interval, RefCounter def PeriodicCallback(callback, callback_time, asynchronous=False, **kwargs): source = Stream(asynchronous=asynchronous) def _(): result = callback() ...
Python
streamz/sources.py
mrocklin/streams
bsd-3-clause
25,985
734
codeparrot/github-code
5dbc52756182bed638313ddd654fceb7ce63fbf0a793d641eac3fcafdaf2debc
// Copyright 2016 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 ( "cmd/vet/internal/cfg" "fmt" "go/ast" "go/types" "strconv" ) func init() { register("lostcancel", "check for failure to call can...
GO
src/cmd/vet/lostcancel.go
theif519/go
bsd-3-clause
8,196
297
codeparrot/github-code
dcf6887fbc2c5a6d466cf9773da31e1238498081e4567495bc3b45b13f7579e9
/* Copyright (c) 2016 Christopher Young Distributable under the terms of The "BSD New"" License that can be found in the LICENSE file, herein included as part of this header. flowfast.go: Counts inputs from ADS1115, sends over a websocket. */ // A0 = - // A1 = + // 5.6K pullup on WHITE lead for FT-60. package m...
GO
flowfast.go
cyoung/flowfast
bsd-3-clause
7,418
291
codeparrot/github-code
c7edaf0d84a24887b204130d9e63d96c41eab68ac47383e25d79eff370fc32c7
"""Exceptions used by basic support utilities.""" __author__ = "Ian Goodfellow" import inspect import sys import textwrap from pylearn2.utils.common_strings import environment_variable_essay class EnvironmentVariableError(Exception): """ An exception raised when a required environment variable is not defined...
Python
pylearn2/utils/exc.py
kastnerkyle/pylearn2
bsd-3-clause
2,941
90
codeparrot/github-code
93dab30f28e7cd1aa468f03bfac2f90ca3d4d12de5fa1a91839216032a85acd9
#!/usr/bin/env python from ropper import RopperService # not all options need to be given options = {'color' : False, # if gadgets are printed, use colored output: default: False 'badbytes': '00', # bad bytes which should not be in addresses or ropchains; default: '' 'all' : False, #...
Python
sample.py
sashs/Ropper
bsd-3-clause
4,732
147
codeparrot/github-code
ea47660a86f28d6244b90efce6ad258a2c0e8018d12a705a1aab36a2f13934a9
<?php namespace app\models\products; use Yii; use yii\helpers\ArrayHelper; /** * This is the model class for table "products". * * @property integer $id * @property string $name * @property string $code * @property string $price * * @property Orders[] $orders * @property Specifications[] $specifications */ ...
PHP
models/products/Products.php
sergeynayko/prorders
bsd-3-clause
1,461
77
codeparrot/github-code
65f6bf79979352441f6a1c791821d39df9c1a9f681962ab253542d1082fe7479
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace ...
PHP
test/InputTest.php
akrabat/zend-inputfilter
bsd-3-clause
31,464
858
codeparrot/github-code
98fe99412d139abb13201398e8e35e9a73316524446f7ec6ab245f11373feb08
require 'digest/sha1' module Globalize module ActiveRecord module Migration attr_reader :globalize_migrator def globalize_migrator @globalize_migrator ||= Migrator.new(self) end delegate :create_translation_table!, :add_translation_fields!, :drop_translation_table!, :tra...
Ruby
lib/globalize/active_record/migration.rb
samuelsteiner/spree_i18n
bsd-3-clause
6,674
191
codeparrot/github-code
d413a85159637953862b2e3a4b5b6595f99d5ca01d383dc44dee44bf7ba999bc
/// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(TypeName="staff-layout")] public partial cla...
C#
MusicXMLSharp/Schema/StaffLayout.cs
jwynia/MusicXMLSharp
bsd-3-clause
1,281
47
codeparrot/github-code
47a37932a115cb29f21e27c5d0ff421a6aaa03dad22b15416bccf0ba2596a7d2
//---------------------------------------------------------------------------// //! //! \file tstParticleLeavingCellEventDispatcher.cpp //! \author Alex Robinson //! \brief Particle leaving cell event dispatcher unit tests //! //---------------------------------------------------------------------------// // Std Li...
C++
packages/monte_carlo/estimator/native/test/tstParticleLeavingCellEventDispatcher.cpp
lkersting/SCR-2123
bsd-3-clause
5,560
150
codeparrot/github-code
ee33596ccc8fe9f44d55c0fdba039971b7bbd4be31bb12b6ef045dadbfb90fa7
package rlforj.los; import static java.lang.Math.floor; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Vector; import rlforj.math.Point2I; /** * Code adapted from NG roguelike engine http://roguelike-eng.sourceforge.net/ * * Recursive ...
Java
src/rlforj/los/ShadowCasting.java
kba/rlforj
bsd-3-clause
9,740
405
codeparrot/github-code
35883a45efd71b84c2133ff37e66cec0ef0bc52af5c10326c8e91883ae184508
<?php use yii\helpers\Html; use kartik\grid\GridView; use common\models\Helpers; /* @var $this yii\web\View */ /* @var $searchModel common\models\property\LandSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Участки'); $this->params['breadcrumbs'][] = $this->title; ?> <div...
PHP
backend/views/property/land/index.php
hurduring/smolyakoff
bsd-3-clause
2,977
107
codeparrot/github-code
42fe6d6509da853ba3d4c88710c825031612903b0a42cf0dfa73995b479aaca2
<?php /** *favtweets.php * * @author Rohit Suthar <rohit.suthar@gmail.com> * @copyright 2014 Rohit Suthar * @package favtweets * @version 1.0 * @Like Us on - https://facebook.com/yiiexperts * @Follow Us on - https://twitter.com/yiiexperts * @Mail - yiiexpert@gmail.com * @For More Extension Visit - www.yii...
PHP
favtweets.php
rohitsuthar/favtweets
bsd-3-clause
2,148
99
codeparrot/github-code
4647e645c4439729592e4057fa96630ce4d075d4eb042a9c509b8fa9e4eae08c
from __future__ import absolute_import from sentry import features from sentry.api.base import Endpoint from sentry.api.exceptions import ResourceDoesNotExist from sentry.api.bases.project import ProjectPermission from sentry.models import Monitor, Project, ProjectStatus from sentry.utils.sdk import configure_scope ...
Python
src/sentry/api/bases/monitor.py
mvaled/sentry
bsd-3-clause
1,422
40
codeparrot/github-code
675c95606d45005e453fdc61c7ab828089fccfbdcf04c9c08949368ae293e3ae
<?php namespace app\models; use Yii; /** * This is the model class for table "tb_emprestimo_patrimonio". * * @property integer $id_emprestimo * @property integer $id_membro * @property integer $id_patrimonio * @property string $data_inicio * @property string $data_fim * @property string $data_devolucao * *...
PHP
models/EmprestimoPatrimonio.php
labes-icmc/labms
bsd-3-clause
1,966
75
codeparrot/github-code
50873fb25382a7a54577664c8f2902ff99130d2ae7c81b5bd92c660563213539
package org.hisp.dhis.maintenance; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.hisp.dhis.common.DeleteNotAllowedException; import org.hisp.dhis.commons.util.PageRange; import org.hisp.dhis.dataapproval.DataApprovalService; import org.hisp.dhis.dataelement.Data...
Java
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/maintenance/DefaultMaintenanceService.java
uonafya/jphes-core
bsd-3-clause
7,625
224
codeparrot/github-code
990ed4cfa30f487522da249f5ca768d9725b6ac6e93180936ba1ed3bd10e5e0a
using System; using System.Web; using System.Web.Mvc; using Orchard.Alias; using Orchard.ContentManagement; using Orchard.Environment.Extensions; using Orchard.Localization.Services; namespace Orchard.Localization.Selectors { [OrchardFeature("Orchard.Localization.CultureSelector")] public class Conte...
C#
Modules/Orchard.Localization/Selectors/ContentCultureSelector.cs
andrewconnell/aci-orchardcms
bsd-3-clause
2,546
68
codeparrot/github-code
61e3e94d301e27adb7b56f440b716548844c349741f19b75277f4984b28322f4
/*ckwg +5 * Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef __qtDoubleInputDialog_h #define __qtDoubleInputDialog_h #include <QDialog> #include ...
C
Libraries/QtExtensions/Dialogs/qtDoubleInputDialog.h
kfieldho/vivia
bsd-3-clause
1,668
59
codeparrot/github-code
17faa5fdac6607d0f13646e53a99c5ea09408580488a3b601154ad091769c706
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sour...
C#
Triangulation/TriangulationUtil.cs
PaintLab/poly2tri-cs
bsd-3-clause
6,019
148
codeparrot/github-code
38e90460ecf9ad5d4f3d57a4ad1b0f034ad144c0d95a79d71093fd922a94d65b
""" ===================================================== Spatiotemporal permutation F-test on full sensor data ===================================================== Tests for differential evoked responses in at least one condition using a permutation clustering test. The FieldTrip neighbor templates will be used to d...
Python
examples/stats/plot_spatio_temporal_cluster_stats_sensor.py
effigies/mne-python
bsd-3-clause
5,435
158
codeparrot/github-code
e75ea5af7f470c9957fc4264357e863e55f7d0bfc3da757a3ef8e6e60a5572fd
--TEST: delete from 2 tables with int type column for join condition create table md_int1(id1 int primary key, col1 char(20)); insert into md_int1 values(1, 'aaa'), (2, 'bbb'), (3, 'ccc'), (4, 'ddd'), (5, 'eee'), (6, 'fff'); insert into md_int1 values(7, 'ggg'), (8, 'hhh'), (9, 'iii'), (10, 'jjj'), (11, 'kkk'), (12,...
SQL
sql/_23_apricot_qa/_01_sql_extension3/_04_mutitable_update_delete/_02_multi_table_delete/_01_delete_from_syntax/cases/multi_delete_int.sql
CUBRID/cubrid-testcases
bsd-3-clause
1,746
56
codeparrot/github-code
76a8091e7d72e99d8a1d33df4ca1d29fcf982de7301f54bf1495e99955bc6061
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def norm_col_init(weights, std=1.0): x = torch.randn(weights.size()) x *= std / torch.sqrt((x**2).sum(1, keepdim=True)) return x def weights_init(m): classname = m.__class__.__name__ if classname.find('Conv') !=...
Python
A3CModel.py
Nasdin/ReinforcementLearning-AtariGame
bsd-3-clause
2,624
81
codeparrot/github-code
445df4f19de4e05d59749ace024962e0c42796250e0c69530b2d9aafee58897f
/*============================================================================ 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++
Plugins/org.mitk.gui.qt.igtexamples/src/internal/QmitkIGTTutorialView.cpp
MITK/MITK
bsd-3-clause
11,472
258
codeparrot/github-code
ada070dbeef94e20816eeb62540b67a10dd75fd98dec890160519c94505de800
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PaymentRequest_h #define PaymentRequest_h #include "bindings/core/v8/ScriptPromise.h" #include "bindings/core/v8/ScriptValue.h" #include "binding...
C
third_party/WebKit/Source/modules/payments/PaymentRequest.h
highweb-project/highweb-webcl-html5spec
bsd-3-clause
2,419
68
codeparrot/github-code
539ee3e05e38a23c49852cc860e3f411bbaca792222707dadf5c87005f8f8b71
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-expressions */ /* eslint-disable max-nested-callbacks */ import 'babel-polyfill'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import sinonStubPromise from 'sinon-stub-promise'; import sinonChai from 'sinon-chai'; import proxy from 'prox...
JavaScript
test/services/cryptoServiceTest.js
gesundheitscloud/hc-sdk-js
bsd-3-clause
5,896
167
codeparrot/github-code
270a5420a25750393021d05074ecbac64978aa72683c7e943b0b3504ba295d3d
import requests import logging import cmapPy.clue_api_client.setup_logger as setup_logger import json __authors__ = "David L. Lahr" __email__ = "dlahr@broadinstitute.org" logger = logging.getLogger(setup_logger.LOGGER_NAME) class ClueApiClient(object): """Basic class for running queries against CLUE api ""...
Python
cmapPy/clue_api_client/clue_api_client.py
cmap/cmapPy
bsd-3-clause
3,549
99
codeparrot/github-code
3b7e0e2e9b079f48978002de92380e808d910901f8b7e9aaf1db9a6153d269a3
# # NOTE: This is the settings file for the server at https://testing.onepercentclub.com # This is not for running tests! # try: from .secrets import * except ImportError: import sys sys.exit('secrets.py settings file not found. Please run `prepare.sh` to create one.') from .server import * # # Put...
Python
onepercentclub/settings/testing.py
onepercentclub/onepercentclub-site
bsd-3-clause
670
31
codeparrot/github-code
ce5847feb7881d68690ae6f5d6018c0cb580e2da3f39644bcd9f9e01b396b859
#include "first.h" #include <lua.h> #include <lualib.h> #include <lauxlib.h> #include <errno.h> #include <time.h> #include <string.h> #include "mod_cml_funcs.h" #include "mod_cml.h" #include "log.h" #include "stat_cache.h" #define HASHLEN 16 typedef unsigned char HASH[HASHLEN]; #define HASHHEXLEN 32 typedef char H...
C
src/mod_cml_lua.c
PatchyFog/lighttpd1.4-mbedtls
bsd-3-clause
8,251
339
codeparrot/github-code
de9a067d385339affab2f82c62df4858f40aebbd361d6d5c111bfa5cb16ef4f6
# 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. # Documentation on PRESUBMIT.py can be found at: # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts import os.path import sy...
Python
PRESUBMIT.py
cvsuser-chromium/native_client
bsd-3-clause
6,342
175
codeparrot/github-code
9cd859594c7bcb358c12e7dcb4d03dec88a03b3cbce82bc58e6010e7fc3ad496
#!/usr/bin/env python2.7 import urllib2 import json import ConfigParser import argparse import os import collections class DigitalOceanInventory(object): def __init__(self): self.conf = ConfigParser.SafeConfigParser() self.args = None self.api_token = None def read_config(self): ...
Python
inventory/digitalocean.py
2bithacker/ansible-modules
bsd-3-clause
2,629
91
codeparrot/github-code
0facfbe61eefe4c60ccfe9775a4733e8e8712aacb336311439e7f8bee94d94c6
<?php namespace ilateral\SilverStripe\Searchable\Control; use SilverStripe\i18n\i18n; use SilverStripe\ORM\ArrayList; use SilverStripe\View\SSViewer; use SilverStripe\View\ArrayData; use SilverStripe\Control\Director; use SilverStripe\ORM\PaginatedList; use SilverStripe\Control\Controller; use SilverStripe\Subsites\M...
PHP
src/control/SearchResults.php
i-lateral/silverstripe-searchable
bsd-3-clause
6,068
219
codeparrot/github-code
4a88d07f76937f11b94eac4c8dcae3e0cf0905ba42f991ec1dab16765e399a2b
package com.krishagni.catissueplus.core.administrative.services.impl; import org.springframework.context.ApplicationListener; import com.krishagni.catissueplus.core.administrative.domain.ContainerLabelPrintRule; import com.krishagni.catissueplus.core.administrative.domain.StorageContainer; import com.krishagni.catiss...
Java
WEB-INF/src/com/krishagni/catissueplus/core/administrative/services/impl/DefaultContainerLabelPrinter.java
krishagni/openspecimen
bsd-3-clause
1,385
38
codeparrot/github-code
e3443ad312e2ab4b992f83cf3ac5f0a0cd14e9ea27ebb26fc78fd34994d200cb
<?php namespace canis\docHelper\components; use yii\base\Component; use yii\helpers\FileHelper; use Nette\Reflection\AnnotationsParser; class FileScan extends Component { public $scan; protected $_title; public $file; public $totalBlanks = 0; public $filledBlanks = 0; public $filled = false; ...
PHP
components/FileScan.php
canis-io/yii2-doc-helper
bsd-3-clause
7,988
199
codeparrot/github-code
98100cd1367e28883d2479eaf98c2b36ec39e8cc27a35d104dcbcb70ae09d94c
/* Copyright (C) 2013 Upi Tamminen * See the COPYRIGHT file for more information */ #include "inc/LPC17xx.h" #include "tprintf.h" #include "utils.h" extern uint8_t dmabuf[2048]; /* instruct the cpld to capture an image from tvp7002 to sram */ void cpld_capture(void) { tprintf("Saving..."); LPC_GPIO0->FIOSET...
C
src/cpld.c
desaster/grabor
bsd-3-clause
797
36
codeparrot/github-code
07efc6a783c0778590cba1fb4050a4e85182f148822858ffb406c7ecd28f8af3
/******************************************************************************* com.bnmi.ourmap.web.actions.AddNewText.java Version: 1.0 ******************************************************************************** Original Authors: Manuel Cuesta, lead programmer <camilocuesta@hotmail.com> Angus Leech, lead desig...
Java
OurMapWeb/src/com/bnmi/ourmap/web/actions/AddNewText.java
OurMap/OurMap
bsd-3-clause
4,540
124
codeparrot/github-code
2d99954ae9881386ff81a65847015602a30aef2b85a6695ac21a843970f5fd4d
package de.uni.freiburg.iig.telematik.secsy.logic.transformation.transformer.properties; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Properties; import java.util.Set; import java.util.StringTokenizer; import de.invation.code.toval.misc.Arra...
Java
src/de/uni/freiburg/iig/telematik/secsy/logic/transformation/transformer/properties/AGPropertyEnforcementTransformerProperties.java
iig-uni-freiburg/SecSy
bsd-3-clause
5,048
141
codeparrot/github-code
b469990bbb1c1f3cd7254ba7a81366c951f664e2d5e113aa093c479af1dd03ec
package TAPLcomp.arith import scala.util.parsing.combinator.ImplicitConversions import scala.util.parsing.combinator.syntactical.StandardTokenParsers sealed trait Term case object TmTrue extends Term case object TmFalse extends Term case class TmIf(cond: Term, t1: Term, t2: Term) extends Term case object TmZero e...
Scala
Scala/Parser/src/TAPLcomp/arith/parser.scala
hy-zhang/parser
bsd-3-clause
1,410
51
codeparrot/github-code
af017f83d97896d919c8e8f73f8d17ec97d9f14ac3601a7a8e46723c90400406
/* * Copyright (c) 2017. Roman Kvasnytskyy. */ package com.reodont.telegram.model.object; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.Arrays; public class StickerSet implements Serializable { private static final long serialVersionUID = -4113331034675690...
Java
src/main/java/com/reodont/telegram/model/object/StickerSet.java
Reodont/telegram-simple
bsd-3-clause
2,135
80
codeparrot/github-code
5d7de3669a8aab3baac01b1f1290268ccc58ce4dfc323703bf168bb6ca02ddfe
using System; using Grasshopper.Graphics.Rendering; using SharpDX.Direct3D; using Color = Grasshopper.Graphics.Primitives.Color; namespace Grasshopper.SharpDX.Graphics.Rendering { public abstract class DrawingContext : IDrawingContext { protected DeviceManager DeviceManager { get; private set; } ...
C#
src/platform/Grasshopper.SharpDX/Graphics/Rendering/DrawingContext.cs
axefrog/Grasshopper
bsd-3-clause
3,053
79
codeparrot/github-code
4eb8e3cdc1c795964d5ebd5ab88513625f45b2ad62ac4fcfabff963bc049d785
/**************************************************************************/ /*! @file AnalogDevice_AD5161.cpp @author SOSAndroid.fr (E. Ha.) @section HISTORY v1.0 - First release This library aims to interact with the AD5161 from Analog Digital. This works through I2C or SPI This should w...
C++
AnalogDevice_AD5161.cpp
sosandroid/AnalogDevice_AD5161
bsd-3-clause
10,791
395
codeparrot/github-code
671913e43e5575bc490d8ebe81a0c828803ede34d41a2e0c750b545a06459d3f
/* * Copyright © 2017 Jacob Keep (Jnk1296). 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 con...
Java
src/main/java/net/risenphoenix/ipcheck/commands/toggle/CmdToggle.java
KeepJ96/IP-Check
bsd-3-clause
6,348
164
codeparrot/github-code
f12dfc9dc840497b31bf84b3491965a9de6762f40bd9da6866680a3a0790aaab
<?php namespace tecnocen\yearcalendar\widgets; use tecnocen\yearcalendar\assets\Language as LanguageAsset; use Yii; use yii\helpers\Html; use yii\helpers\ArrayHelper; /** * @author Angel (Faryshta) Guevara <aguevara@tecnocen.com> */ class Calendar extends \yii\bootstrap\Widget { /** * @var string the loca...
PHP
widgets/Calendar.php
tecnocen-com/yii2-bootstrap-year-calendar
bsd-3-clause
1,041
39
codeparrot/github-code
bd0502e733abd8b7238b76ed83e8b5bc01ac9d94bba82034c82d634ce36bcbdb
#include "builtin/thread.hpp" #include "builtin/lookuptable.hpp" #include "builtin/tuple.hpp" #include "builtin/list.hpp" #include "builtin/class.hpp" #include "builtin/fixnum.hpp" #include "builtin/symbol.hpp" #include "builtin/float.hpp" #include "builtin/channel.hpp" #include "builtin/nativemethod.hpp" #include "bui...
C++
vm/builtin/thread.cpp
nuclearsandwich/rubinius
bsd-3-clause
10,368
412
codeparrot/github-code
7c8c3f22c6c0284dbe92ba4bbb73aa5523a6e8e2f8f06786479d3406f6327378
#ifndef _ROS_stdr_msgs_RegisterRobotResult_h #define _ROS_stdr_msgs_RegisterRobotResult_h #include <stdint.h> #include <string.h> #include <stdlib.h> #include "ros/msg.h" #include "stdr_msgs/RobotMsg.h" namespace stdr_msgs { class RegisterRobotResult : public ros::Msg { public: stdr_msgs::RobotMsg desc...
C
libraries/ros_lib/stdr_msgs/RegisterRobotResult.h
gKouros/my_arduino_sketches
bsd-3-clause
902
43
codeparrot/github-code
228722cfaeee101e2917022e2e7d1719357cc42323b92cfe31f13be8beb4b7ca
/* Copyright (c) 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 "adc.h" #include "board.h" #include "common.h" #include "console.h" #include "gpio.h" #include "hooks.h" #include "registers.h" #inclu...
C
board/plankton/usb_pd_policy.c
thehobn/ec
bsd-3-clause
3,669
162
codeparrot/github-code
fb13f96a475af6d9d181dc279a672c7b4e979508b647690e02b3b2993f1122c2
<?php namespace Vivo\Form\Element; use Vivo\Form\ValidationResultAwareInterface; use Zend\Form\Element\Radio as ZendRadio; use Zend\Form\ElementPrepareAwareInterface; use Zend\Form\FormInterface; class Radio extends ZendRadio implements ElementPrepareAwareInterface, ValidationResultAwareInterface { /** * Fl...
PHP
src/Vivo/Form/Element/Radio.php
miroslavhajek/vivoportal
bsd-3-clause
1,514
55
codeparrot/github-code
aa771f48b2a69c312c26952a7f000bf43f7efe565679b2573eae10afa84856b4
using System; using System.Diagnostics; using System.Globalization; using System.IO; using System.Reflection; using System.Text; using LinkFuture.Extensions; namespace LinkFuture.Library { //Design for output windows event log public static class EventLogger { public static event EventHandler<Mess...
C#
Core/Library/EventLogger.cs
cyokin/LinkFuture
bsd-3-clause
10,814
279
codeparrot/github-code
4fdd81ba0d92c58e042024e2863c40865d8f386aaa77c6a4584b9d7b9a14b13a
/* * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
C++
third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp
Bysmyyr/chromium-crosswalk
bsd-3-clause
14,280
377
codeparrot/github-code
3edc93af4eda1a1806f28b5ea9c4ff700e22c7f1229c234ee718aace6b4761c5
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <sys/time.h> #include <math.h> #include <CL/opencl.h> char *source = "const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;\n" "__kernel void conv9x9(int w, __global image2d_t in, __constant float *ck, __global ...
C
clconvimg_float4_pc.c
mvitez/OpenCLconv
bsd-3-clause
6,732
195
codeparrot/github-code
28bf1e0a99b9762fec1fcea727730f30d9fc5596965060bbf7b9ce5704982a3a
// Copyright 2021 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. import {assert} from './assert.js'; /** * Size of Rectangle. */ export class Size { /** * @param {number} width * @param {number} height */ ...
JavaScript
chromium/ash/webui/camera_app_ui/resources/js/geometry.js
ric2b/Vivaldi-browser
bsd-3-clause
8,745
386
codeparrot/github-code
c147ac1982df4a3fd64f4f40fee94ce840a339023a5afa8297a4b987adcc5c6f
#include <stdlib.h> #include <stdio.h> #include <vector> #include <string> #include <ros/ros.h> #include <tf/tf.h> #include <tf/transform_listener.h> #include <sensor_msgs/Image.h> #include <opencv2/opencv.hpp> #include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include <image_transport/t...
C++
src/floor_mapper_base/src/floor_mapper.cpp
cedricpradalier/vrep_ros_ws
bsd-3-clause
4,980
134
codeparrot/github-code
ba6372f25c70ab038ae39b60f11c7eb8a981c1097e9e8559f6febb7b05d0b0fb
package scala.lms package common import java.io.PrintWriter import scala.reflect.SourceContext trait LiftNumeric { this: Base => implicit def numericToNumericRep[T:Numeric:Typ](x: T) = unit(x) } trait NumericOps extends Variables { this: PrimitiveOps => // workaround for infix not working with manifests ...
Scala
src/common/NumericOps.scala
TiarkRompf/virtualization-lms-core
bsd-3-clause
6,183
139
codeparrot/github-code
ff222ae56caf57e76ba61b78f4aa0386e199ca4eddb41aba28af80876d37c15c
from itertools import chain from django.db import models from django.contrib.auth.models import User from django.template.defaultfilters import slugify from django.utils.translation import ugettext_lazy as _ from django.db.models import Sum from django.template import Template, Context class AbstractOrder(models.Mod...
Python
oscar/apps/order/abstract_models.py
aykut/django-oscar
bsd-3-clause
19,620
486
codeparrot/github-code
03b49fe80a992f5ad2379cd522878b18fa90495b50314dead31e24ef37617c9a
<?php namespace WebSockets\Controller; // Namespaces of current controller use Zend\Mvc\Controller\AbstractActionController; use Zend\Console\Request as ConsoleRequest; use WebSockets\Factory\ApplicationFactory; use WebSockets\Exception; /** * Controller to run through a CLI * @package Zend Framework 2 * @subpacka...
PHP
src/WebSockets/Controller/WebSocketCLIController.php
stanislav-web/ZF2-PHP-WebSocket-Server-Factory
bsd-3-clause
2,844
106
codeparrot/github-code
27ca8427b6a4e5e0cde839961c1d44385f12e2fb070a3dbd82caf826177d24ff
/* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Martin Odersky */ package scala.tools.nsc package typechecker import scala.annotation.tailrec import scala.collection.mutable import symtab.Flags._ import scala.language.postfixOps import scala.reflect.internal.util.ListOfNil /** This trait d...
Scala
src/compiler/scala/tools/nsc/typechecker/Namers.scala
slothspot/scala
bsd-3-clause
87,240
1,940
codeparrot/github-code
d8453cf158a4febdf7cb0289ce0a4028d40f137f94d56202df15e9ed103147ae
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/lock_screen_apps/lock_screen_profile_creator_impl.h" #include <memory> #include <string> #include <utility> #include "...
C++
chrome/browser/chromeos/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc
endlessm/chromium-browser
bsd-3-clause
24,018
660
codeparrot/github-code
d5e6fe2c38e1df6ef331199d017dd32c59f9c7af468242dc8242eff45dcc42c8
// ***************************************************************************** // // Copyright (c) 2014, Southwest Research Institute® (SwRI®) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met:...
C
swri_opencv_util/include/swri_opencv_util/model_fit.h
swri-robotics/marti_common
bsd-3-clause
7,761
228
codeparrot/github-code
1a2103b97417d43c01a015865bb2b70684f042619b1142cc5f549596f80161bf
using chchch; using chchch.Invoke; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace chchch.Scene { public delegate void Ch3LoadSceneActivateCallback(); public delegate void Ch3LoadSceneSuccessCallback(bool p_success, Ch3LoadSceneActivateCallback p_activationCallback); ...
C#
Scene/SceneManager.cs
chorobochrontochor/chchch.Unity
bsd-3-clause
1,757
57
codeparrot/github-code
82b6980ea3057f98e611e17c13d934cd3a5d2eefa0c8e5b06079458f65842077
/***************************************************************************** * Copyright (C) PicoContainer Organization. All rights reserved. * * ------------------------------------------------------------------------- * * The software in this package is published under the terms of the BSD * * s...
Java
gems/src/test/org/picocontainer/gems/lifecycle/ReflectionLifecycleStrategyTestCase.java
picocontainer/PicoContainer1
bsd-3-clause
6,263
145
codeparrot/github-code
37cca33ce7d28504a5af30b13cd926743146b89c96dee7f7b224c486ecff7df9
<?php /** * Created by JetBrains PhpStorm. * User: rmcnew * Date: 10/30/12 * Time: 3:24 PM * To change this template use File | Settings | File Templates. */ namespace RcmRssFeed\Controller; use Rcm\Acl\ResourceName; use RcmUser\Service\RcmUserService; use Zend\Feed\Reader\Reader; use Zend\Http\Client; use Zend\...
PHP
RcmRssFeed/src/Controller/ProxyController.php
jerv13/RcmPlugins
bsd-3-clause
4,205
150
codeparrot/github-code
3d00074083c74d75ff6ce1205af17e5d826ae25c65b59b874c304317e4c39b67
/** *============================================================================ * The Ohio State University Research Foundation, The University of Chicago - * Argonne National Laboratory, Emory University, SemanticBits LLC, * and Ekagra Software Technologies Ltd. * * Distributed under the OSI-approved BSD 3-Clau...
Java
cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/authn/DirectLoginServletController.java
NCIP/cagrid-portal
bsd-3-clause
1,475
48
codeparrot/github-code
516e875a4e621c9db91359461cf71d0990e7f643b48f14e1b492b57f107b82dc
using System.Threading.Tasks; using OrchardCore.ContentManagement.Metadata.Models; using OrchardCore.Contents.Models; using OrchardCore.Contents.ViewModels; using OrchardCore.ContentTypes.Editors; using OrchardCore.DisplayManagement.ModelBinding; using OrchardCore.DisplayManagement.Views; namespace OrchardCore.Lists.S...
C#
src/OrchardCore.Modules/OrchardCore.Contents/Settings/CommonPartSettingsDisplayDriver.cs
xkproject/Orchard2
bsd-3-clause
1,535
36
codeparrot/github-code
ed6ff91fc84a8b29eb59bfc62c659c0d695eaced00564306fdcde737801457a2
YUI.add('node-effects', function(Y) { if (!Y.Lang.isArray(Y.Node.PLUGINS)) { Y.Node.PLUGINS = []; } Y.Node.PLUGINS.push(Y.plugin.NodeFX); var _end = function(fn) { //THIS DOESN'T WORK!!! //this.fx.detachAll(); //this.fx.reset(); //HACK this.unp...
JavaScript
node-effects.js
davglass/yui-node-effects
bsd-3-clause
8,124
247
codeparrot/github-code
6950856abc2822a65c5ce00da6c728d34085a7be7601d2f61162c8bccf0d02b8
<!DOCTYPE html> <!-- Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.5 Version: 4.1.0 Author: KeenThemes Website: http://www.keenthemes.com/ Contact: support@keenthemes.com Follow: www.twitter.com/keenthemes Like: www.facebook.com/keenthemes Purchase: http://them...
HTML
public/metronic/theme/templates/admin4/portlet_ajax.html
wtfckkk/crm-admision
bsd-3-clause
51,043
1,467
codeparrot/github-code
893f5e2af3660b2d0d3b0b8c730f918f5348dfb03bedadca215739c127260203
/*================================================================================ 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/ArrayOfPhysicalNicLinkInfo.java
mikem2005/vijava
bsd-3-clause
2,159
54
codeparrot/github-code
3d6832059d8fe9675e2f78c765be6082a54d719a46fd35b26304cae896042ff2
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.weblayer; import android.content.Context; import android.content.pm.PackageManager; import android.os.IBinder; import android.os.Rem...
Java
weblayer/public/javatestutil/org/chromium/weblayer/TestWebLayer.java
endlessm/chromium-browser
bsd-3-clause
2,814
79
codeparrot/github-code
883318d3ef2ed48d2fe3adc9baeb318db5ff98c1a75d73b362d229a2c2d63347
/** * Assessment Form Package * * Assessments of the future work site must happen before any work is done, plus * other arrangements need to be made for the days and times of work (Porta-johns, * tool rentals, etc.). * */ var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = Schema...
JavaScript
models/assessmentPackage.js
dandahle/Catalyst-AppVetting
bsd-3-clause
1,557
77
codeparrot/github-code
2e09c6bbc17a386718824aa4e82deb3ea0eff1c2d4dc057888001c7e4523dcd0
package ammunitions; import weapons.RangeCombatWeapon; import necromunda.Utils; public class LascannonAmmunition extends Ammunition { /** * */ private static final long serialVersionUID = 2450909993162563600L; public LascannonAmmunition(RangeCombatWeapon weapon) { super(weapon); setStrength(9); setDama...
Java
src/ammunitions/LascannonAmmunition.java
Tibotanum/Necromunda
bsd-3-clause
755
38
codeparrot/github-code
ef0c17c67ee0ee2454a10e29f116d694e92d638299eb3081daf3885e325ef4e9
//----------------------------------------------------------------------------- // Filename: RTSPConstants.cs // // Description: RTSP constants. // // History: // 09 Nov 2007 Aaron Clauson Created. // // License: // This software is licensed under the BSD License http://www.opensource.org/licenses/bsd-license.php // /...
C#
sipsorcery-core/SIPSorcery.Net/RTSP/RTSPContants.cs
amccool/sipsorcery
bsd-3-clause
7,236
182
codeparrot/github-code
ba37d9766c2d63605b291747a5501aa14ad6fbd5d1fae4a453d103742bdb8a1c
using System; using Android.App; using Android.Content; using Android.OS; using Android.Widget; using Toggl.Joey.UI.Adapters; using Toggl.Phoebe.Data.Models; using Toggl.Phoebe.Data.ViewModels; using ActionBar = Android.Support.V7.App.ActionBar; using Activity = Android.Support.V7.App.AppCompatActivity; using Fragment...
C#
Joey/UI/Fragments/ClientListFragment.cs
masterrr/mobile
bsd-3-clause
3,923
119
codeparrot/github-code
3a79f81e4b6c25fc7883faa29d17091900f6095bc465fda54f2f69561a880afb
/* Copyright (c) 2012-2014, Broadcom Europe Ltd 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
interface/vmcs_host/vc_vchi_dispmanx.c
popcornmix/userland
bsd-3-clause
49,139
1,311
codeparrot/github-code
0b5b7c53e12c5098ca70b435490c4404f802494997137215f64141d31e3f028b
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\MedbellsProduct; /** * MedbellsCategorySearch represents the model behind the search form about `app\models\MedbellsProduct`. */ class MedbellsProductSearch extends MedbellsProduct { /** * @inheritdoc ...
PHP
models/MedbellsProductSearch.php
2zub2/vesterra
bsd-3-clause
1,934
77
codeparrot/github-code
22cca4b4450ff27e89c56355b4e552cbc309fbe23857d1c0bfc8272694b6fb88
// +build darwin package water import ( "errors" "fmt" "io" "os" "sync" "syscall" "unsafe" ) const appleUTUNCtl = "com.apple.net.utun_control" /* * From ioctl.h: * #define IOCPARM_MASK 0x1fff // parameter length, at most 13 bits * ... * #define IOC_OUT 0x40000000 // copy out parameters * #define IOC_I...
GO
syscalls_darwin.go
ArroyoNetworks/water
bsd-3-clause
4,839
196
codeparrot/github-code
8d7d3d9aa27f134ac5d794538605a57d0fea5092e7b4c4638cf1b199f2ad989c
// Copyright 2015 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 controller import ( "github.com/tmacychen/UFG/framework" "github.com/tmacychen/UFG/framework/outer" ) type AttachableOuter interface { outer.Relayo...
GO
controller/attachable.go
tmacychen/UFG
bsd-3-clause
1,230
64
codeparrot/github-code
bdf0dc26695ff0a486e46bcd120c3afb9b62b217949e78064320a8b51edba7f2
#pragma once class BitsetDynamic { static size_t const kBitsPerWord = sizeof(size_t) * CHAR_BIT; static_assert(kBitsPerWord <= UCHAR_MAX, "BitIndex needs a bigger bitOffset..."); struct BitIndex { size_t wordIndex; uint8_t bitOffset; size_t mask() const { return size_t(1) << si...
C
src/bitset_dynamic.h
OlivierHamel/gHCM
bsd-3-clause
7,699
228
codeparrot/github-code
8a833c6977401d85c721b38018378981c45d7850673b1e1912ed587e28efb304
/**************************************************************************** * * Copyright (c) 2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
C++
src/systemcmds/motor_ramp/motor_ramp.cpp
mje-nz/PX4-Firmware
bsd-3-clause
10,222
426
codeparrot/github-code
e03d9c6a3aec7247d79151a55b8bcc3d23dbe95febe770d02124a2e4b1b6cb43
<?php namespace app\models; use Yii; /** * This is the model class for table "message2course". * * @property integer $message_id * @property integer $course_id * * @property Course $course * @property Message $message */ class Message2course extends \yii\db\ActiveRecord { /** * @inheritdoc */ ...
PHP
models/Message2course.php
knichel/AIT2Yii2
bsd-3-clause
1,358
65
codeparrot/github-code
b2ba624673c3679c2bf22adf6078a4711d05ef7e3ef918caee029c81c218a5f2
using System; using System.Net.Http; using System.Threading.Tasks; using System.Xml.Linq; namespace WopiHost.Discovery { /// <summary> /// A discovery file provider that loads the discovery file from a WOPI client over HTTP. /// </summary> public class HttpDiscoveryFileProvider : IDiscoveryFileProvide...
C#
WopiHost.Discovery/HttpDiscoveryFileProvider.cs
petrsvihlik/WopiHost
bsd-3-clause
1,377
39
codeparrot/github-code
dedb60f05d582575f89b654bb436faf256579d10023ce40d2178dd79c45e3168
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use backend\models\UserSocial; /** * UserSocialSearch represents the model behind the search form about `backend\models\UserSocial`. */ class UserSocialSearch extends UserSocial { /** * @inheritdoc */ pu...
PHP
backend/models/UserSocialSearch.php
ecodevsolution/md
bsd-3-clause
1,638
72
codeparrot/github-code
1c0939c5350cae93c7f7f0b581cbca56f6690b8acd8f88b9747295a331bb2c19
# A TensorFlow computation, represented as a dataflow graph. # A Graph contains a set of Operation objects, which represent units of computation; and Tensor objects, which represent the units of data that flow between operations. # Official documentation of {graph}[https://www.tensorflow.org/versions/r0.9/api_docs/pyth...
Ruby
lib/tensorflow/graph.rb
chrhansen/tensorflow.rb
bsd-3-clause
9,533
249
codeparrot/github-code
bf3b43bb3328897ed7dddd3fc26bb37db85eca4944e668b781d68f3204c8bea4
{-# LANGUAGE StandaloneDeriving #-} import Data.List (concatMap, nub) import Data.Ratio import Data.ByteString.Char8 (pack) import Test.QuickCheck import Data.Trie import qualified Data.ByteString.UTF8 as UTF8 import qualified Text.JSONb as JSONb prop_structures_parse = samples structure_tests sam...
Haskell
test/SimpleUnits.hs
solidsnack/JSONb
bsd-3-clause
5,575
143
codeparrot/github-code
fe19f7389d186c35f27758f0ce0f572daa3d427fd04d87f1b570157aa89e58f6
/* * Copyright (C) 2015-2019 Fabrice Bouyé * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ package api.web.gw2.jsonp.v2.pvp.seasons.leaderboards; import api.web.gw2.mapping.core.IdValue; import api.web.gw2.mappin...
Java
src/api/web/gw2/jsonp/v2/pvp/seasons/leaderboards/JsonpPvpSeasonLeaderboardScore.java
fabricebouye/gw2-web-api-jsonp
bsd-3-clause
1,028
42
codeparrot/github-code
ae1434a6c5c627cfd91ba542a4cad1dfa425593a7f7f488abf55102c76ed61d8
namespace BlackFox.Cryptography.NetScrypt { using System; public class SaltWithParameters { readonly byte[] salt; readonly ScryptParameters parameters; public SaltWithParameters(byte[] salt, ScryptParameters parameters) { if (salt == null) throw new ArgumentNul...
C#
NetScrypt/SaltWithParameters.cs
vbfox/NetScrypt
bsd-3-clause
1,584
54
codeparrot/github-code
0d0255f935d8fcd97663534acfaf8b88c60cf11ae541f41fc0590544155f8ed2
# -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../command' require_relative '../breakpoint' require_relative '../../app/breakpoint' require_relative '../../app/condition' class Trepan::Command::ConditionCommand ...
Ruby
processor/command/condition.rb
rocky/rbx-trepanning
bsd-3-clause
1,756
65
codeparrot/github-code
ba5b25eb86b67937873b2cef958ad2d94752b0f9644182f549ff157c27230cb2
<?php class Stoa_Model_User implements Zend_Acl_Role_Interface { /** * Authentication and user management configuration * * @var Zend_Config */ static protected $_config = null; /** * Is the user authenticated? * * @var boolean */ protected $_isAuthenticated = f...
PHP
application/models/User.php
shevron/stoa
bsd-3-clause
2,602
119
codeparrot/github-code
b364455ae0833433846d694d481d48492be1c9f72e6f801e262ee1da49cfa3c5
<?php namespace common\widgets; use Yii; use yii\helpers\Html; class Panel extends \yii\bootstrap\Widget { public $title = ''; public $elementID = 0; public $in = ''; public $data = []; protected function gengerateID ($prefix = '') { return $prefix . 'collapse' . $this->elementID; } protected function re...
PHP
common/widgets/Panel.php
perpel/wheeler
bsd-3-clause
1,869
71
codeparrot/github-code