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
a0d50cb1de00e78cd65b549ebb5a7d04ed66931d60c9e15bfa983a84caa56709
/* Scala.js runtime support * Copyright 2013 LAMP/EPFL * Author: Sébastien Doeraene */ /* ---------------------------------- * * The top-level Scala.js environment * * ---------------------------------- */ //!if outputMode == ECMAScript51Global var ScalaJS = {}; //!endif // Get the environment info ScalaJS.env ...
JavaScript
tools/scalajsenv.js
xuwei-k/scala-js
bsd-3-clause
32,144
1,081
codeparrot/github-code
7cb2ebc7953a5e77d4b8aa352c955fc56c9bb3147902e01b341e212bc0a4e1ef
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/panels/panel_resize_controller.h" #include "base/logging.h" #include "chrome/browser/ui/panels/panel.h" #include "chrome/...
C++
chrome/browser/ui/panels/panel_resize_controller.cc
zcbenz/cefode-chromium
bsd-3-clause
5,852
173
codeparrot/github-code
25f3dae71dbe989d05ee9c27aa2776900469ef91799151b4d1df04a3b77d2f11
package com.percolate.sdk.dto; import com.fasterxml.jackson.annotation.*; import com.percolate.sdk.interfaces.HasExtraFields; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMa...
Java
core/src/main/java/com/percolate/sdk/dto/FacebookConversationMessage.java
percolate/percolate-java-sdk
bsd-3-clause
3,496
137
codeparrot/github-code
ac154b25b7b50b80d41a610dd0014ebbf18e8ae9d5b3c19a0901e84885cbff6d
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\helpers\ArrayHelper; use backend\modules\qtn\models\Survey; /* @var $this yii\web\View */ /* @var $searchModel backend\modules\qtn\Models\SurveySearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Qtn Surveys'; $this->params['bre...
PHP
backend/modules/qtn/views/survey/index.php
yuttapong/webapp
bsd-3-clause
2,797
76
codeparrot/github-code
44fc0a205450953566efa22fab915a8c834896e0be2353c0e6112c80d113b45d
Bool_t SetGeneratedSmearingHistos = kFALSE; Bool_t GetCentralityFromAlien = kFALSE; std::string centralityFilename = ""; std::string centralityFilenameFromAlien = "/alice/cern.ch/user/a/acapon/.root"; const Int_t triggerNames = AliVEvent::kINT7; const Int_t nMCSignal = 0; const Int_t nCutsetting = 0; const Doubl...
C++
PWGDQ/dielectron/macrosLMEE/Config_acapon_Efficiency.C
carstooon/AliPhysics
bsd-3-clause
22,296
519
codeparrot/github-code
dd9a5eb320b8da42e42a114cc8305026d038a760f569c52c45ace9b88c728075
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/renderer_preferences_util.h" #include <stdint.h> #include <string> #include <vector> #include "base/macros.h" #include "ba...
C++
chrome/browser/renderer_preferences_util.cc
nwjs/chromium.src
bsd-3-clause
8,221
225
codeparrot/github-code
b44b229680d0b3e99eaf16d3da4f4c59bc1dc5b1f3bad3fda43aafec75299589
<?php /** * Rules_Whitespace_SuperfluousWhitespaceRule. * * Checks that no whitespace at the end of each line and no two empty lines in the content. * * @package SmartyLint * @author Umakant Patil <me@umakantpatil.com> * @copyright 2013-15 Umakant Patil * @license https://github.com/umakantp/SmartyLint/b...
PHP
SmartyLint/Rules/Whitespace/SuperfluousWhitespaceRule.php
umakantp/SmartyLint
bsd-3-clause
1,961
60
codeparrot/github-code
ebcacaa36a5f677bab5e02c9a7b5085d72ab5374c9a223d7d213afe24ebd1d30
<?php App::uses('CloggyAppModel', 'Cloggy.Model'); class CloggySearchFullText extends CloggyAppModel { public $name = 'CloggySearchFullText'; public $useTable = 'search_fulltext'; public $actsAs = array('CloggySearchFullTexIndex','CloggySearchFullTextTerm'); public function getTotal()...
PHP
Module/CloggySearch/Model/CloggySearchFullText.php
hiraq/Cloggy
bsd-3-clause
2,568
72
codeparrot/github-code
bd356056d25486d6eeaa35bd327535178d5f9a952e1a21c552f5897bf19657dd
package org.usfirst.frc369.Robot2017Code.subsystems; import org.usfirst.frc369.Robot2017Code.Robot; import edu.wpi.first.wpilibj.Relay; import edu.wpi.first.wpilibj.command.Subsystem; /** * */ public class LED extends Subsystem { // Put methods for controlling this subsystem // here. Call these from Comma...
Java
src/org/usfirst/frc369/Robot2017Code/subsystems/LED.java
ShadowShitler/Bridgette
bsd-3-clause
726
32
codeparrot/github-code
1f538877bb4a23244f0ae3dfbf48a8c46a2f27adfc270a18325665cf144316ad
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="description" content="Javadoc API documentation for Fresco." /> <link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" /> <title> co...
HTML
docs/javadoc/reference/com/facebook/imagepipeline/nativecode/package-descr.html
MaTriXy/fresco
bsd-3-clause
17,812
385
codeparrot/github-code
0444e0a26cb84243cec6f42f8db21641421d39dac3a5226959d091a76b3c4d46
<?php /** * Cache subsystem library * @package Cotonti * @version 0.9.10 * @author Cotonti Team * @copyright Copyright (c) Cotonti Team 2009-2014 * @license BSD */ defined('COT_CODE') or die('Wrong URL'); /** * Stores the list of advanced cachers provided by the host * @var array */ $cot_cache_drivers = arr...
PHP
system/cache.php
Velm14/dribascorp
bsd-3-clause
35,088
1,518
codeparrot/github-code
19292a7e7adab10a14c93b3a1f9b186b17ab0643ab17484095094f08b9fce056
/*L * Copyright Ekagra Software Technologies Ltd. * Copyright SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cacore-sdk-pre411/LICENSE.txt for details. */ package gov.nih.nci.system.webservice; import gov.nih.nci.system.applicationservice.ApplicationService; i...
Java
SDK4/system/src/gov/nih/nci/system/webservice/WSQueryImpl.java
NCIP/cacore-sdk-pre411
bsd-3-clause
5,667
192
codeparrot/github-code
8b682d14fd79b336476dfe7694e841f8b402fe14201c59a0720292e3f52d5c1a
package au.gov.ga.geodesy.sitelog.domain.model; import javax.validation.constraints.Size; /** * http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/contact/2004/baseContactLib.xsd:contactType */ public class Contact { private Integer id; @Size(max = 200) protected String name; @Size(max = 200) protect...
Java
src/main/java/au/gov/ga/geodesy/sitelog/domain/model/Contact.java
GeoscienceAustralia/geodesy-sitelog-domain
bsd-3-clause
1,834
107
codeparrot/github-code
fe7df829c91bce794d118c8d531768083152283b10694c2b4f4270a46665e808
#region License Header // /******************************************************************************* // * Open Behavioral Health Information Technology Architecture (OBHITA.org) // * // * Redistribution and use in source and binary forms, with or without // * modification, are permitted provided that...
C#
ProCenter.Mvc.Infrastructure/Service/Completeness/CompletenessModelValidtorProvider.cs
OBHITA/PROCenter
bsd-3-clause
6,715
137
codeparrot/github-code
eb97d4ed8a5a292290f9c92262251865f0dbb909114e74f8200c0917263d3369
""" Commands that are available from the connect screen. """ import re import traceback from django.conf import settings from src.players.models import PlayerDB from src.objects.models import ObjectDB from src.server.models import ServerConfig from src.comms.models import Channel from src.utils import create, logger, ...
Python
wintersoasis-master/commands/unloggedin.py
TaliesinSkye/evennia
bsd-3-clause
12,835
328
codeparrot/github-code
d4bbf584bea3aacc649d922ae0f7cd89565631fec0611ed024cbcba3b1133502
package edu.cmu.minorthird.text.gui; import edu.cmu.minorthird.text.FancyLoader; import edu.cmu.minorthird.text.TextLabels; import edu.cmu.minorthird.util.gui.ControlledViewer; import edu.cmu.minorthird.util.gui.VanillaViewer; import edu.cmu.minorthird.util.gui.Viewer; import edu.cmu.minorthird.util.gui.ViewerFrame; i...
Java
src/main/java/edu/cmu/minorthird/text/gui/ZoomingTextLabelsViewer.java
TeamCohen/MinorThird
bsd-3-clause
1,434
46
codeparrot/github-code
19ad38df1b275e37d3f43a12afb181c3ec56c9d27080f517bf507e11803e7b52
/* eslint-disable no-underscore-dangle */ export default function ({ client, filterQuery, mustContain, busy, encodeQueryAsString, }) { return { listUsers(query) { const params = filterQuery( query, 'text', 'limit', 'offset', 'sort', 'sortdir' )...
JavaScript
src/IO/Girder/CoreEndpoints/user.js
Kitware/paraviewweb
bsd-3-clause
1,750
81
codeparrot/github-code
65ebc597c3f7f9880309eaa6d632b4d503c37f4b6caf3aa8acb64c75a8cd0585
module.exports = (function () { var TypeChecker = Cactus.Util.TypeChecker; var JSON = Cactus.Util.JSON; var stringify = JSON.stringify; var object = Cactus.Addon.Object; var collection = Cactus.Data.Collection; var gettype = TypeChecker.gettype.bind(TypeChecker); return { "null and undefined" : func...
JavaScript
module/Core/lib/Util/Util.TypeChecker.test.js
bergmark/Cactus
bsd-3-clause
22,955
799
codeparrot/github-code
eebcdc4cca4580584df53a37b412826095a9025affbd837f347336ed895686f8
<?php namespace common\models; use Yii; /** * This is the model class for table "mcp_accesslogs". * * @property integer $user_id * @property string $browser * @property string $ip * @property string $session * @property string $intime * @property string $outtime */ class McpAccesslogs extends \yii\db\Active...
PHP
common/models/McpAccesslogs.php
rajanishtimes/partnerapi
bsd-3-clause
1,297
64
codeparrot/github-code
b35db641f846a6397fbdc6af9525834c95c7f4257a5dde4db76e7e2c369ae6f5
/////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // This example code is from the book: // // Object-Oriented Programming with C++ and OSF/Motif // by // Douglas Young // ...
C
vos/MotifApp/DialogManager.h
marrocamp/nasa-VICAR
bsd-3-clause
1,971
70
codeparrot/github-code
47cdd4b8bb16cd8d3e5175c35a63e344dca99c21cd96d51a7efdd502cfccdbca
<?php namespace Users; use Zend\EventManager\EventInterface as Event; use Users\Model\AuthorisationClass as AuthorisationClass; class Module { public function onBootstrap(Event $e) { // This method is called once the MVC bootstrapping is complete $application = $e->getApplication(); $se...
PHP
module/Users/Module.php
JoostvdB94/RapidJupiter
bsd-3-clause
2,835
76
codeparrot/github-code
126ae80375d5f306001c7773f2efdad57672db2fcfe9b585bb58c015e243b512
/* * from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: releng/9.3/sys/dev/cxgb/cxgb_t3fw.c 189643 2009-03-10 19:22:45Z gnn $"); #include <sys/param.h> #include <sys/errno.h> #include <sys/kernel.h> #include <sys/module.h> #include <sys/linker.h> #incl...
C
sys/dev/cxgb/cxgb_t3fw.c
dcui/FreeBSD-9.3_kernel
bsd-3-clause
4,506
183
codeparrot/github-code
0659166c10664c5212c9bc1f353b0769074f4898bc3ecf65a437900910f7a85c
#!/usr/bin/python # 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. import json import os import subprocess import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import pynacl.p...
Python
buildbot/buildbot_selector.py
wilsonianb/nacl_contracts
bsd-3-clause
16,846
417
codeparrot/github-code
62fe8312d14118e71eb8afa1f7decff05d0d30ea9527c1be28deb8024281830d
// Benchpress: A collection of micro-benchmarks. var allResults = [ ]; // ----------------------------------------------------------------------------- // F r a m e w o r k // ----------------------------------------------------------------------------- function Benchmark(string, run) { this.string = string; thi...
JavaScript
benchmarks/v8_v1/units/loop.js
daejunpark/jsaf
bsd-3-clause
1,571
59
codeparrot/github-code
32bb353e6e8de572815e485693c738e049b7236e8978e03d50ab06906f32605d
#!/usr/bin/perl # start in the directory with all the files $argc = @ARGV; # get the number of arguments if ($argc == 0 ) { print "msl_Vic2ODL-PDDS-jpg.pl dir multi vic2odl_xsl odl2pds_xsl max \n"; print "prints a set of transcoder (jConvertIIO) commands to test .DAT and .VIC files \n"; print "Output goes...
Perl
vos/java/jpl/mipl/io/xsl/test/msl_Vic2ODL-PDS-jpg.pl
marrocamp/nasa-VICAR
bsd-3-clause
5,855
158
codeparrot/github-code
c7b129f8b13e39f5707fc707e4699ff9359b872edf7ba8693051efd31a4d4b19
<?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/Service/StrikeIron/Base.php
dineshkummarc/zf2
bsd-3-clause
8,807
268
codeparrot/github-code
6915bd8b84577e054aa693f5cd2dff640dd8d156465cf637d93fafc1da207cc0
/* * Copyright (c) 2011 Yahoo! Inc. All rights reserved. */ YUI.add('master', function(Y, NAME) { /** * The master module. * * @module master */ var DIMENSIONS = { device: 'smartphone', region: 'CA', skin : 'grey' }; /** * Constructor for the Controller class. * * @class Control...
JavaScript
examples/demo/mojits/master/controller.common.js
triptych/shaker
bsd-3-clause
2,296
81
codeparrot/github-code
aac264a469113cf8855c10f8aef68919993250cc8be32dce34ac6a70a0754685
//----------------------------------------------------------------------------- //Cortex //Copyright (c) 2010-2015, Joshua Scoggins //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redist...
C#
Operation/GraphVizSpecificBuilder.cs
DrItanium/Cortex
bsd-3-clause
3,083
80
codeparrot/github-code
12913543726a2f81e3c7c666885231bce10b63f2bfddde807f62c75513cb3168
/*============================================================================ 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.dicom/src/internal/DicomEventHandler.cpp
fmilano/mitk
bsd-3-clause
11,194
252
codeparrot/github-code
6fe809f6507d4b82ebe1daa8ac354633aff118e305d35ebf7753024db6f83606
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="ApiGen 2.8.0" /> <meta name="robots" content="noindex" /> <title>File widgets/fineuploader/WhFineUploader.php | YiiWheels</title> <script type="text/javascript" src="resources/combi...
HTML
www/api/source-class-WhFineUploader.html
2amigos/yiiwheels-docs
bsd-3-clause
29,497
327
codeparrot/github-code
3daf4086c5405af79f044c7ede1ed4cd4684dde629f9791d7dc012c7b5f65f67
{-# LANGUAGE OverloadedStrings #-} module WildBind.SeqSpec (main,spec) where import Control.Applicative ((<*>)) import Control.Monad (forM_) import Control.Monad.IO.Class (liftIO) import qualified Control.Monad.Trans.State as State import Data.Monoid ((<>)) import Data.IORef (modifyIORef, newIORef, readIORef) import T...
Haskell
wild-bind/test/WildBind/SeqSpec.hs
debug-ito/wild-bind
bsd-3-clause
7,072
194
codeparrot/github-code
9de7e084db5794103a5730cc2c6649106163ee10a5fec433ca1d7a48139304e8
<?php class ReCopyWidget extends CWidget { public $targetClass='clone'; //Target CSS class target for duplicate public $limit=0; //The number of allowed copies. Default: 0 is unlimited public $addButtonId; // Add button id. Set id differently if this widget is called multiple times per page. publ...
PHP
protected/extensions/recopy/ReCopyWidget.php
elorian/crm.inreserve.kz
bsd-3-clause
2,946
65
codeparrot/github-code
50645d11666ba96c7d1100c76d0bdfe4077553d6ee6a38cfff1ced02738c3691
/** *============================================================================ * 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
workflow-portlet/src/main/java/gov/nih/nci/cagrid/portal/portlet/workflow/mvc/NewInstanceFormController.java
NCIP/cagrid-workflow
bsd-3-clause
6,693
129
codeparrot/github-code
0e8af85e52ed07d6e3e9d80b3765d1e1f1af021891b6d13002ad6d2227e7f70d
<?php namespace PayrollCalculator; use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface; use Zend\Console\Adapter\AdapterInterface as Console; class Module { public function getConfig() { return include __DIR__ . '/config/module.config.php'; } public function getAutoloaderConfig() ...
PHP
module/PayrollCalculator/Module.php
ugniusr/PayrollCalculator
bsd-3-clause
944
37
codeparrot/github-code
029585f5a24492123929d4ec8f032fea011b0ede2fd886eb5f4473a921329c5c
# -*- coding: utf-8 -*- """ eve.io.media ~~~~~~~~~~~~ Media storage for Eve-powered APIs. :copyright: (c) 2014 by Nicola Iarocci. :license: BSD, see LICENSE for more details. """ class MediaStorage(object): """ The MediaStorage class provides a standardized API for storing files, along ...
Python
eve/io/media.py
opticode/eve
bsd-3-clause
2,207
63
codeparrot/github-code
41a23d355e7e6f812eeac875b05b0132b4a73b370d8d17ab0c973889da1d5fac
<?php namespace common\widgets; use yii\helpers\VarDumper; /** * Created by PhpStorm. * User: Александр Чернявенко * Date: 25.11.2014 * Time: 14:09 */ class PredictionAsset extends \yii\web\AssetBundle { public $depends = [ 'yii\web\JqueryAsset', ]; public $css = [ ]; public $js = ...
PHP
common/widgets/PredictionAsset.php
AleksandrChernyavenko/hintbox
bsd-3-clause
709
43
codeparrot/github-code
2a7bc43824427ea5cc2dbe3c474b94c3ae18ba6edbc63c9340a4cfd7bfdb6d37
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ''' Processor functions for images ''' import numpy as np def squeeze_image(img): ''' Return image, remove axes length 1 at end of image shape For example, an image may have shape (10,20,30,1,1). ...
Python
nipype/externals/pynifti/funcs.py
satra/NiPypeold
bsd-3-clause
2,788
96
codeparrot/github-code
a09ca4023e30c7659102c33197b986dbeff709b882c0ea9a9d8502e64891cc2e
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__short_rand_postdec_07.c Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-07.tmpl.c */ /* * @description * CWE: 191 Integer Underflow * BadSource: rand Set data to result of rand() * GoodSource: Set...
C
xcc/test/juliet/testcases/CWE191_Integer_Underflow/s04/CWE191_Integer_Underflow__short_rand_postdec_07.c
JianpingZeng/xcc
bsd-3-clause
4,979
190
codeparrot/github-code
a129190b29c856f9a3cdf91cacc2114f2491ae25bd88904cdaf8d2c38fd2636c
/* Copyright (C) 2009-2010 ProFUSION embedded systems Copyright (C) 2009-2010 Samsung Electronics This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of t...
C++
src/webkit/Source/WebKit/efl/ewk/ewk_history.cpp
klim-iv/phantomjs-qt5
bsd-3-clause
13,646
427
codeparrot/github-code
c1c8c28e8dc5848009480d0ac8a15b3167c5a73bfd28460c963b923441249c2b
<?php /** * Yasc. * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE. * It is also available through the world-wide-web at this URL: * http://github.com/nebiros/yasc/raw/master/LICENSE * If you did not receive a copy of the license and ar...
PHP
src/Yasc/App/Config.php
nebiros/yasc
bsd-3-clause
8,643
341
codeparrot/github-code
790db4e293409cc56472b41e29fe2b49bf843a17966c568d60c8d32a183195ed
//===-- lib/Evaluate/fold-real.cpp ----------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C++
third_party/llvm/flang/lib/Evaluate/fold-real.cpp
endlessm/chromium-browser
bsd-3-clause
6,929
166
codeparrot/github-code
22a6e581beff001a683b454ba9c23d745674795844d874791bfc6904b89c031f
<?php namespace app\models; use Yii; use yii\base\Model; /** * LoginForm is the model behind the login form. */ class LoginForm extends Model { public $login; public $password; public $rememberMe = true; private $_user = false; /** * @return array the validation rules. */ publi...
PHP
models/LoginForm.php
Per1phery/wholetthedogout
bsd-3-clause
1,861
77
codeparrot/github-code
11234b305a8cd95dab58d993ffeb3ed40ee8b548c6d46328d72d2b13bb9a9f37
<?php namespace app\models; use Yii; use app\models\general\GeneralLabel; use app\models\general\GeneralMessage; /** * This is the model class for table "tbl_six_step". * * @property integer $six_step_id * @property integer $atlet_id * @property string $stage * @property string $status */ class SixStepBiomek...
PHP
frontend/models/SixStepBiomekanik.php
hung101/kbs
bsd-3-clause
2,953
101
codeparrot/github-code
332070b4d15c2e2f32e9b325028441772c91bdf4d9089570902c0afad69eac37
using System; using System.Data; using System.Data.SqlClient; using System.IO; using System.Xml.Serialization; using JetBat.Client.Entities; using JetBat.Client.Metadata.Abstract; using JetBat.Client.Metadata.Definitions; using JetBat.Client.Metadata.Misc; using JetBat.Client.Metadata.Simple; namespace JetB...
C#
JetBat.Client/SqlServer/Concrete/PlainObjectListViewDefinitionSqlLoader.cs
shestakov/jetbat
bsd-3-clause
5,650
157
codeparrot/github-code
17fdc2fc316b83a75d38af20bd9cdeecd952d1b67e0fdc4696a590bf64b82647
/* * Copyright (c) 2007 BUSINESS OBJECTS SOFTWARE LIMITED * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright n...
Java
src/Quark_Gems/src/org/openquark/gems/client/IntellicutList.java
levans/Open-Quark
bsd-3-clause
10,380
288
codeparrot/github-code
75478a1abc4916a68aebe615093af740809095238e940fe737981844d1444820
########################################################################## # # Copyright (c) 2013-2015, Image Engine Design 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: # # * Redi...
Python
python/GafferImageTest/ObjectToImageTest.py
chippey/gaffer
bsd-3-clause
3,067
86
codeparrot/github-code
45272df7e5ed389fb834ef4dc62aec2ca502bdfd36d5ab3f78023e698a7db850
/* * Author: Kiveisha Yevgeniy * Copyright (c) 2015 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use,...
C++
src/Utilities.cpp
ykiveish/cortica-sdk
bsd-3-clause
2,892
103
codeparrot/github-code
02a05b10eb295d4ee92db6e1d840fa5cf6656902690c8c31c197600ba359b550
#pragma once #include "boxFilter.hpp" class boxFilter_Separable_VHI_nonVec : public cp::BoxFilterBase { protected: int ksize; void filter_naive_impl() override; void filter_omp_impl() override; void operator()(const cv::Range& range) const override; public: boxFilter_Separable_VHI_nonVec(cv::Mat& _src, cv::Mat...
C
OpenCP/box/boxFilter_Separable_Interleave.h
norishigefukushima/OpenCP
bsd-3-clause
1,086
47
codeparrot/github-code
25de85706bfe344a0932970104a5220cad503cab25460726bcfe2e852e6e1148
/** * Created on: Mar 13, 2013 */ package com.tubros.constraints.core.spi.solver package runtime import org.junit.runner.RunWith import org.scalamock.scalatest.MockFactory import org.scalatest._ import org.scalatest.junit.JUnitRunner import com.tubros.constraints.api._ /** * The '''SymbolTableSpec''' type define...
Scala
smocs-core/src/test/scala/com/tubros/constraints/core/spi/solver/runtime/SymbolTableSpec.scala
osxhacker/smocs
bsd-3-clause
2,993
131
codeparrot/github-code
ea22a2d2bed31f3aa9fa76a67389b8f3e5cd1b3539459b974f06e8a8d3c2a85d
#include "synchronization/Communicator.hpp" namespace Synchronization { Communicator::Communicator() : _numManagedCons(0), _numManagedFmus(0) { } size_type Synchronization::Communicator::addFmu(FMI::AbstractFmu* in, vector<FMI::InputMapping> & valuePacking) { vec...
C++
src/synchronization/Communicator.cpp
marchartung/ParallelFMU
bsd-3-clause
3,412
118
codeparrot/github-code
2509695e57721e8a37625525764aa72bf812f363df83ef64164d9f321fc01521
#!/usr/bin/env python2 from __future__ import print_function import sys import os import urllib import argparse import xml.etree.ElementTree as ET def warn(*msgs): for x in msgs: print('[WARNING]:', x, file=sys.stderr) class PDBTM: def __init__(self, filename): #self.tree = ET.parse(filename) #self.root = self...
Python
dbtool.py
khendarg/pdbtmtop
bsd-3-clause
2,933
90
codeparrot/github-code
5ff861a26c5cd1ce468440bb237681b385afbe14aaaccdde57dba98163bfdd66
{-# LANGUAGE TemplateHaskell #-} module Data.Comp.Trans.DeriveUntrans ( deriveUntrans ) where import Control.Lens ( view ,(^.)) import Control.Monad ( liftM ) import Control.Monad.Trans ( lift ) import Data.Comp.Multi ( Alg, cata, (:&:)(..) ) import Language.Haskell.TH import Data.Comp.Trans.Util ----------...
Haskell
Data/Comp/Trans/DeriveUntrans.hs
jkoppel/comptrans
bsd-3-clause
8,030
192
codeparrot/github-code
bb74571305d42431938817dda2d482dd72eff94a4a5904ad311ee63dbb17e6d5
// 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 <memory> #include <utility> #include <vector> #include "base/feature_list.h" #include "base/macros.h" #include "base/optional.h" #include "b...
C++
components/password_manager/core/browser/http_auth_manager_unittest.cc
endlessm/chromium-browser
bsd-3-clause
9,586
249
codeparrot/github-code
02216d3e28c038607c6bdc42012a410728cc75b82de589d0f60bf04e6ffcb6d9
#if !(NET35 || NET20 || WINDOWS_PHONE) using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace Newtonsoft.Json.Utilities { internal sealed class DynamicProxyMetaObject<T> : DynamicMetaObject { private readonly D...
C#
Tog/json.net/Source/Src/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs
hawkstalion/Tog-Mobile
bsd-3-clause
14,747
398
codeparrot/github-code
8f177f19b14f638c9f61a39e40f52b2872f08de397c3950d71e89722b898207d
package manifest import ( "encoding/json" "fmt" "log" "reflect" "regexp" "strconv" "strings" "github.com/fatih/color" "github.com/servehub/serve/manifest/processor" "github.com/servehub/utils" "github.com/servehub/utils/gabs" ) type Manifest struct { tree *gabs.Container } func (m Manifest) String() st...
GO
manifest/manifest.go
servehub/serve
bsd-3-clause
5,887
246
codeparrot/github-code
5edfea6fbb4847e4a2c1f767ac6deecb32e689055b5fdbd20ba0ef38c41f38d5
#region copyright // Copyright (c) 2012, TIGWI // All rights reserved. // Distributed under BSD 2-Clause license #endregion using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Tigwi.UI.Models.Storage { using Tigwi.Storage.Library; public class DuplicateUserExceptio...
C#
Core/Tigwi.UI/Models/Storage/StorageException.cs
ismaelbelghiti/Tigwi
bsd-3-clause
1,510
51
codeparrot/github-code
a753f002d48e8b93244b5635af9ce6282976fb01191771fb213d3b53ae922cbb
import requests class Status(object): SKIP_LOCALES = ['en_US'] def __init__(self, url, app=None, highlight=None): self.url = url self.app = app self.highlight = highlight or [] self.data = [] self.created = None def get_data(self): if self.data: ...
Python
postatus/status.py
willkg/postatus
bsd-3-clause
4,559
159
codeparrot/github-code
4ebffe1f8a44eb771a0174e55f1b12c34b3647573bc7af9b00597dd9056a139c
# -*-coding:Utf-8 -* # Copyright (c) 2010-2017 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # ...
Python
src/secondaires/navigation/commandes/debarquer/__init__.py
vlegoff/tsunami
bsd-3-clause
4,207
99
codeparrot/github-code
70984d538d97b941664c624c6669c8619d99be4f6bb08996d5cf56131f1a8638
/* * ColorBasedROIExtractorRGB.h * * Created on: Dec 2, 2011 * Author: Pinaki Sunil Banerjee */ #ifndef BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_ #define BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_ #include "IFiltering.h" #include <stdlib.h> #include <cmath> #include <iostream> #include <stdio.h> #include <stdint.h>...
C
src/brics_3d/algorithm/filtering/ColorBasedROIExtractorRGB.h
brics/brics_3d
bsd-3-clause
1,916
96
codeparrot/github-code
37489cefdd0fbba8b205c8e056c5f0bbfb336a556e555421931dc763d67e96a7
<!DOCTYPE html><html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> <meta charset="utf-8"> <title>Phing API Documentation » \DataTypeHandler</title> <meta name="author" cont...
HTML
pimcore/lib/Deployment/Phing/docs/api/docs/classes/DataTypeHandler.html
theghostbel/pimcore
bsd-3-clause
15,905
318
codeparrot/github-code
f2e86cea19169f9587b8eb287a38b49aed765e163968322faf3dbd95426e03a3
# # GtkMain.py -- pygtk threading help routines. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # """ GUI threading help routines. Usage: import GtkMain # See c...
Python
ginga/gtkw/GtkMain.py
Rbeaty88/ginga
bsd-3-clause
5,866
191
codeparrot/github-code
4e2bd21c2201c2b2cad016ac2265500be0b0a569c995c934173c68206f5ccea8
/*! \ingroup PkgAABB_treeConcepts \cgalConcept The concept `AABBTraits` provides the geometric primitive types and methods for the class `CGAL::AABB_tree<AABBTraits>`. \cgalHasModel `CGAL::AABB_traits<AABBGeomTraits,AABBPrimitive>` \sa `CGAL::AABB_traits<AABBGeomTraits,AABBPrimitive>` \sa `CGAL::AABB_tree<AABBTrait...
C
graphics/cgal/AABB_tree/doc/AABB_tree/Concepts/AABBTraits.h
hlzz/dotfiles
bsd-3-clause
7,754
236
codeparrot/github-code
10463190348b3ddeb92da78e1b44db18374e9c74c0b2a94f485ad2e1f0df352f
/*! jQuery UI - v1.11.4 - 2015-12-06 * http://jqueryui.com * Includes: core.js, datepicker.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery" ], factory...
JavaScript
app/assets/javascripts/spree/frontend/store/datepicker.js
davidred/spree_delivery_time
bsd-3-clause
91,677
2,383
codeparrot/github-code
63a7427f57eb303a93f6ea5b5304823d73e3d4ff811d396c5a7200f70fc2b091
#!/bin/bash #This program calculates the core count for each result row and updates the #results. This is a work around due to a current limitation of #HdpHBencher/HsBencher. #Author: Blair Archibald function usage { echo "Usage: processResults.sh <resultsFile>" exit -1 } test -z $1 && usage resultsFile="$1" ...
Shell
processResults.sh
BlairArchibald/HdpHBencher
bsd-3-clause
1,154
63
codeparrot/github-code
b2fb53fcaf8097aa3dc87137d5637f0a080ac353179acfece0a2a2d5c0e1c1b2
// Copyright 2015 The Cobalt Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
C
cobalt/bindings/testing/global_interface_parent.h
youtube/cobalt
bsd-3-clause
1,126
36
codeparrot/github-code
84a1c1903dba0fd07c41fd11f839ada74720974623183cf0b1b1f5873da7215a
/*- * Copyright (c) 2006 The FreeBSD 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
C
sys/dev/tdfx/tdfx_linux.c
dcui/FreeBSD-9.3_kernel
bsd-3-clause
2,886
89
codeparrot/github-code
632d97606783acdb45f579f4db601b4af0f628c03300bff2d52e374ecb7652db
module Mistral.Schedule.Value ( Env , groupEnv , lookupEnv , bindType , bindValue , bindParam , NodeTags , bindNode , lookupTag, lookupTags , Value(..) , SNetwork(..), mapWhen, modifyNode , SNode(..), addTask , STask(..), hasConstraints , SConstraint(..), target ) where import Mistral...
Haskell
src/Mistral/Schedule/Value.hs
GaloisInc/mistral
bsd-3-clause
5,624
186
codeparrot/github-code
95a992d117788cce65cc84fda2b7b9753c4419a3f9c27b60fc596e7a1ca363d0
/* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in bin...
C
freebsd4/sys/boot/common/interp_backslash.c
MarginC/kame
bsd-3-clause
3,531
166
codeparrot/github-code
d1971b24a46e29f4a0b9cc821a4cfa7f894a774339dc7303185b0ecce1fe14c3
#include "ADTFPinMessageEncoder.h" using namespace A2O; ADTFPinMessageEncoder::ADTFPinMessageEncoder(IAction::Ptr action, ICarMetaModel::ConstPtr carMetaModel) : _action(action) { // Create output pins const std::vector<IServoDriveConfig::ConstPtr>& servoDriveConfigs = carMetaModel->getServoDrive...
C++
src/aadcUser/src/HSOG_Runtime/adtf/encoder/ADTFPinMessageEncoder.cpp
AppliedAutonomyOffenburg/AADC_2015_A2O
bsd-3-clause
3,690
120
codeparrot/github-code
93d5c46de27d844da98278d85510af76a8bd0fa80ef9f814330e0dffda320c30
{-# LANGUAGE ParallelListComp #-} module OldHMM (Prob, HMM(..), train, bestSequence, sequenceProb) where import qualified Data.Map as M import Data.List (sort, groupBy, maximumBy, foldl') import Data.Maybe (fromMaybe, fromJust) import Data.Ord (comparing) import Data.Function (on) import Control.Monad import ...
Haskell
OldHMM.hs
mikeizbicki/hmm
bsd-3-clause
5,845
134
codeparrot/github-code
44e7922f9f260c2c2156068565c28657774d24a962752b3d752a8ccebb684308
<?php namespace app\modules\admin\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Trigger; /** * TriggerSearch represents the model behind the search form about `app\models\Trigger`. */ class TriggerSearch extends Trigger { /** * @inheritdoc */ public function...
PHP
modules/admin/models/TriggerSearch.php
CyanoFresh/SmartHome
bsd-3-clause
1,914
77
codeparrot/github-code
d100a0dd1a3d2dd45c8e93da8b262ed8b86c64250b52adf4d79a0ebc9a50a7c9
// 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 <stdlib.h> #include "base/basictypes.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/strings/string_util.h" #in...
C++
chrome/common/net/url_fixer_upper_unittest.cc
ChromiumWebApps/chromium
bsd-3-clause
20,955
540
codeparrot/github-code
5c28282ad859ee28ad535a65efe7a8235fb8d4b6145e78cf9b4998f55ed4d549
#<pycode(py_choose)> class Choose: """ Choose - class for choose() with callbacks """ def __init__(self, list, title, flags=0, deflt=1, icon=37): self.list = list self.title = title self.flags = flags self.x0 = -1 self.x1 = -1 self.y0 = -1 self.y1 = -1 self.width = -1 self...
Python
pywraps/py_choose.py
nihilus/src
bsd-3-clause
1,595
87
codeparrot/github-code
839369871a0f5b1472b0cd42ebb645d54e13b2bf9903696abd1085eca0b4d27d
using System.Collections.Generic; using System.Web; using System.Web.UI; using ServiceStack.Common.Web; namespace ServiceStack.WebHost.Endpoints.Support.Metadata.Controls { internal class Soap12OperationControl : OperationControl { public Soap12OperationControl() { EndpointType = EndpointType.Soap12; } ...
C#
src/ServiceStack.WebHost.Endpoints/Support/Metadata/Controls/Soap12OperationControl.cs
firstsee/ServiceStack
bsd-3-clause
908
40
codeparrot/github-code
3b2bee2d1a553b699d00807ef7627279623bba670854041ccabd5654e0315376
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_ #define CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_ #in...
C
chrome/browser/ash/crostini/crostini_engagement_metrics_service.h
nwjs/chromium.src
bsd-3-clause
2,046
61
codeparrot/github-code
6c824daba10fee2a4c05ef685b3e93b61771825d7f8618f1229bb95575112d1a
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>second_derivative &mdash; MetPy 0.8</title> ...
HTML
v0.8/api/generated/metpy.calc.second_derivative.html
metpy/MetPy
bsd-3-clause
25,580
450
codeparrot/github-code
89caba18d10d9513184c6ad0ab1aaf1967fa5f3c88bedb628cbb34e3858bc5b9
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/drive/drive_api_util.h" #include <string> #include "base/files/file.h" #include "base/logging.h" #include "base/md5.h" #inc...
C++
chrome/browser/drive/drive_api_util.cc
patrickm/chromium.src
bsd-3-clause
19,627
572
codeparrot/github-code
ec163b75929d5dd7ef6249c4f605ec7490f5284ef082e261a826a256119ef1e0
/* * Software License Agreement (New BSD License) * * Copyright (c) 2013, Keith Leung, Felipe Inostroza * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source c...
C++
src/analysis2dSim.cpp
RangerKD/RFS-SLAM
bsd-3-clause
12,152
431
codeparrot/github-code
f29daf1ada9bb4bc1fbcfabcf3d570eebee4e05902bbae88905bcb70ec7c3656
/* * Copyright (C) 2007 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++
src/webkit/Source/WebCore/dom/TextEvent.cpp
klim-iv/phantomjs-qt5
bsd-3-clause
4,309
123
codeparrot/github-code
d02fc9b910cf8ec380d36d84a46e06cf3fb7f0df7d5e639ab08fc576081b46e5
// 1000-page badge // Awarded when total read page count exceeds 1000. var sys = require('sys'); var _ = require('underscore'); var users = require('../../users'); var badge_template = require('./badge'); // badge key, must be unique. var name = "1000page"; exports.badge_info = { id: name, name: "...
JavaScript
badger/badges/1000page.js
scsibug/read52
bsd-3-clause
1,422
52
codeparrot/github-code
bf629c3431ecb2584d832ccce88e74b5c7e08894010dbff0a61d8401adb1a3ae
/*================================================================================ Copyright (c) 2012 Steve Jin. 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 re...
Java
src/com/vmware/vim25/StaticRouteProfile.java
xebialabs/vijava
bsd-3-clause
1,954
48
codeparrot/github-code
7c0fd9a6104929641290f18ff63c66e73815770697156619c86d3ff673b6f534
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
C
FreeRTOS/FreeRTOS/Demo/Common/Full/death.c
jedediahfrey/STM32F4-Discovery_FW_V1.1.0_Makefiles
bsd-3-clause
9,302
242
codeparrot/github-code
ffbfb76e2abaf027a4c2a51f149562a5140bfc5cad5b503e4da34e4ee80e8f9e
package com.krishagni.catissueplus.core.biospecimen.events; import java.math.BigDecimal; import java.util.Date; import java.util.List; import com.krishagni.catissueplus.core.administrative.events.StorageLocationSummary; import com.krishagni.catissueplus.core.common.events.UserSummary; import com.krishagni.catissueplu...
Java
WEB-INF/src/com/krishagni/catissueplus/core/biospecimen/events/SpecimenAliquotsSpec.java
krishagni/openspecimen
bsd-3-clause
5,811
299
codeparrot/github-code
d4e70f0b982ab5a79a6c59f614ed57ec8699031507e9e6c4740b0cd4b99d07de
// $Id: MainClass.java,v 1.6 2003/10/07 21:46:08 idgay Exp $ /* tab:4 * "Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without writte...
Java
tools/java/net/tinyos/tinydb/topology/MainClass.java
fresskarma/tinyos-1.x
bsd-3-clause
4,833
137
codeparrot/github-code
e113499f8118919fec76307eb52e833b5ec5d7e01e6c6506e254186d907b245f
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; using System.Collections.Specialized; using System.Security.Cryptography; using System.Web; namespace BotR.API { public class BotRAPI { private string _apiURL = ""; ...
C#
BotRAPI.cs
bitsontherun/botr-api-dotnet
bsd-3-clause
5,582
164
codeparrot/github-code
d61cc953a6f500103642606d86174a8739b9ebd28673ca6f1ea3b1e09bd09cca
/* prevent execution of jQuery if included more than once */ if(typeof window.jQuery == "undefined") { /* * jQuery 1.1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-04-03 22:27:21 $ * $...
JavaScript
WebRoot/js/lib/jquery.js
NCIP/eagle
bsd-3-clause
59,266
2,246
codeparrot/github-code
c28e9576fa01016c4f6d7e4c24f636a263ecd3b17f6f9d07bb393325c45c77a7
# Author: Immanuel Bayer # License: BSD 3 clause import ffm import numpy as np from .base import FactorizationMachine from sklearn.utils.testing import assert_array_equal from .validation import check_array, assert_all_finite class FMRecommender(FactorizationMachine): """ Factorization Machine Recommender with ...
Python
fastFM/bpr.py
ibayer/fastFM-fork
bsd-3-clause
2,859
93
codeparrot/github-code
d144f286742d4b07ecb3758656d86f0e16fec7af312323e5659b37797831933b
#include "torch-moveit.h" #include <moveit/planning_scene_interface/planning_scene_interface.h> #include "utils.h" typedef std::shared_ptr<moveit_msgs::CollisionObject> CollisionObjectPtr; MOVIMP(CollisionObjectPtr*, CollisionObject, new)() { CollisionObjectPtr *p = new CollisionObjectPtr(new moveit_msgs::Collision...
C++
src/collision_object.cpp
Xamla/torch-moveit
bsd-3-clause
2,089
73
codeparrot/github-code
3eebdd589fae068f927c0098616a3bacf20f3676c0e5fe4d2f34393fb2056a0c
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>relative_humidity_from_dewpoint &mdash; MetP...
HTML
v0.11/api/generated/metpy.calc.relative_humidity_from_dewpoint.html
metpy/MetPy
bsd-3-clause
17,008
377
codeparrot/github-code
b900eb03e2aeaabff8eb4719b2a771fa13c8f9e23e022314b53da5e296152df2
Order.class_eval do after_create :create_tax_charge! alias original_generate_order_number generate_order_number def generate_order_number return original_generate_order_number unless Spree::Config[:running_order_numbers] year = Time.now.year if last = Order.last num = last.number[5..9].to_...
Ruby
app/models/order_decorator.rb
ArjanL/spree-vat-fix
bsd-3-clause
1,533
45
codeparrot/github-code
0a7b9f58cfab74a1826b787dbe09bbf4651db6ff536968bb204df44c97522b56
#------------------------------------------------------------------------------ # Copyright (c) 2007, Riverbank Computing Limited # All rights reserved. # # This software is provided without warranty under the terms of the BSD license. # However, when used with the GPL version of PyQt the additional terms described in ...
Python
pyface/ui/qt4/python_editor.py
geggo/pyface
bsd-3-clause
6,248
187
codeparrot/github-code
73e40f18cb79c2d7c6c8f0b0692af608211026958ddec24be19467e2df277cd3
#include <iostream> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <errno.h> using namespace std; int main(int argc, char** argv) { if(argc <= 1) { cout << "Nothing passed in to argv." << endl; ...
C++
src/dir_code.cpp
cdixi001/rshell
bsd-3-clause
991
48
codeparrot/github-code
f2053c24b11af9fff8deb06670b3246b56ce126941a80ecac1490a45ead26283
/* $OpenBSD: tls_server.c,v 1.4 2015/02/07 06:19:26 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice a...
C
src/C/libressl/libressl-2.1.6/tls/tls_server.c
GaloisInc/hacrypto
bsd-3-clause
3,555
146
codeparrot/github-code
71cf7cc57d0a1c1891168ba424e8bba7deae3f6766e413ead9734b5566918390
import argparse import glob import hashlib import json import os IRMAS_INDEX_PATH = '../mirdata/indexes/irmas_index.json' def md5(file_path): """Get md5 hash of a file. Parameters ---------- file_path: str File path. Returns ------- md5_hash: str md5 hash of data in file_...
Python
scripts/legacy/make_irmas_index.py
mir-dataset-loaders/mirdata
bsd-3-clause
6,590
168
codeparrot/github-code
47e6a090394f06dfcb756357a10f052b153193bdd41a2ea7cd5a9d406aa3917a
# frozen_string_literal: true require 'rack/handler' module Rack module Handler module Puma DEFAULT_OPTIONS = { :Verbose => false, :Silent => false } def self.config(app, options = {}) require 'puma' require 'puma/configuration' require 'puma/log_write...
Ruby
lib/rack/handler/puma.rb
puma/puma
bsd-3-clause
3,562
115
codeparrot/github-code
c808a205ff75cb63974521d0b3029ff3a7f09f2e8db87dd50901f5cdba367352
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>SetStartupInfo</title> <meta http-equiv="Content-Type" Content="text/html; charset=Windows-1251"> <link rel="stylesheet" type="text/css" href="../../styles/styles.css"> <script language="javascript" src='../links.js' type="text/javascr...
HTML
enc/enc_rus/meta/exported_functions/setstartupinfo.html
data-man/FarAS
bsd-3-clause
2,279
77
codeparrot/github-code
845c782b17c91f8fa76956b47fca308d6998bc19034470544732b6107fa423eb
/* * Copyright (c) 2005, Regents of the University of California * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * ...
Java
src/main/java/blog/model/AtomicFormula.java
BayesianLogic/blog
bsd-3-clause
5,685
196
codeparrot/github-code
02421966cfc481c2fba7bf9039fdf5c9451ebe61ee79e46bdebd59055892e314
from numpy import array, zeros, ones, sqrt, ravel, mod, random, inner, conjugate from scipy.sparse import csr_matrix, csc_matrix, coo_matrix, bmat, eye from scipy import rand, mat, real, imag, linspace, hstack, vstack, exp, cos, sin, pi from pyamg.util.linalg import norm import pyamg from scipy.optimize import fminboun...
Python
Examples/ComplexSymmetric/one_D_helmholtz.py
pombreda/pyamg
bsd-3-clause
3,892
127
codeparrot/github-code
27e88bfe4ce9ce4610adef508f8067a7c1e7660825a94e9b66cda3047a545ba0
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_struct_54a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml Template File: sources-sinks-54a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Rout...
C++
xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s07/CWE762_Mismatched_Memory_Management_Routines__new_free_struct_54a.cpp
JianpingZeng/xcc
bsd-3-clause
2,842
106
codeparrot/github-code
7a4b30088413d8e03909fbde23194fea7dc4d2e5ff8a9cddd5160b9cd1217d1a
<?php namespace backend\controllers; use Yii; use backend\models\Status; use backend\models\search\StatusSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\filters\AccessControl; use common\models\PermissionHelpers; /** * StatusController implements the CRUD actio...
PHP
backend/controllers/StatusController.php
AntoshaPro/intranet.portal
bsd-3-clause
4,310
151
codeparrot/github-code