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
7a97e54d8812df6626a9bbc892b5e5880514303359d53c45950a812f8341e14c
/** @module breeze **/ var EntityAction = (function () { /** EntityAction is an 'Enum' containing all of the valid actions that can occur to an 'Entity'. @class EntityAction @static **/ var entityActionMethods = { isAttach: function () { return !!this.isAttach; }, isDetach: function ()...
JavaScript
src/a30_entityAction.js
edigitalresearch/breeze.js
mit
3,146
143
codeparrot/github-code
f823a7e34f8053d44f9bd5d28eae98b5c458e4d675bdc8bc08cc29337d6e976b
/** * Globalize v1.4.0-alpha.2 * * http://github.com/jquery/globalize * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2018-03-09T13:51Z */ /*! * Globalize v1.4.0-alpha.2 2018-03-09T13:51Z Released under the MIT license * http://gi...
JavaScript
ajax/libs/globalize/1.4.0-alpha.2/globalize/date.js
ahocevar/cdnjs
mit
74,633
3,115
codeparrot/github-code
a0de15c37fe478cfa53e470fb2e1419b122d9ed6dc54dbce3a8e83bf66824cce
import util from "../utils"; class ApplicationService { getServiceFramework(controller) { let sf = util.utilities.sf; sf.moduleRoot = "PersonaBar"; sf.controller = controller; return sf; } getGeneralSettings(callback) { const sf = this.getServiceFramework("SEO"); ...
JavaScript
src/Modules/Settings/Dnn.PersonaBar.Seo/Seo.Web/src/services/applicationService.js
dnnsoftware/Dnn.AdminExperience.Extensions
mit
2,914
83
codeparrot/github-code
24e245041c3e23b8718b7d11fd39d0eefd249a860615b7ca9ceecb032296ea1e
<?php namespace Neos\Flow\Http\Helper; /* * This file is part of the Neos.Flow package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * source code. ...
PHP
Neos.Flow/Classes/Http/Helper/MediaTypeHelper.php
daniellienert/flow-development-collection
mit
4,432
107
codeparrot/github-code
290282c769e75baaa71523832fc08a8e676ccbb6efc36f4ccc0c80381a52fceb
/* * Copyright (C) 2013 The Libphonenumber Authors * * 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 applicable la...
Java
lib/fakie/js/java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberInfo.java
yoolk/fakie
mit
18,190
420
codeparrot/github-code
1064bec042b430511d5bbf43b71ae6fd9a9a4a31106d087100bd91cca81eb850
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hello MUI</title> <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> ...
HTML
examples/hello-mui/examples/setting.html
chuz/mui
mit
24,942
845
codeparrot/github-code
3ab935d84c7e6117b6e386593730a4f9801121c56709343f4f13f9200043a1d6
#![crate_name = "uu_tee"] /* * This file is part of the uutils coreutils package. * * (c) Aleksander Bielawski <pabzdzdzwiagief@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ extern crate getopts; #[macro_use] extern...
Rust
src/tee/tee.rs
keunwoo/coreutils
mit
5,243
174
codeparrot/github-code
d395d7635d97a40d69099076949de04eadd5fd83dccce1b9b610a969a79c70ef
// Copyright (c) 2014-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chain.h> #include <util.h> #include <test/test_bitcoin.h> #include <vector> #include <boost/test/unit_test.hpp> ...
C++
src/test/skiplist_tests.cpp
h4x3rotab/BTCGPU
mit
7,701
181
codeparrot/github-code
aa546caf49487c1611c5641d2fbc88890c5ab19e0a0bd784e2bfcbc9d8284892
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ 'use strict'; // THIS CHECK SHOULD BE THE FIRST THING IN THIS FILE // This is to ensure that we catch env issues b...
JavaScript
gulpfile.js
chalin/angular
mit
1,800
45
codeparrot/github-code
646858c2c6850bceb1636edf6618a31a827cea4241343abf39c90004487431c3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>URI Class : CodeIgniter User Guide</title> <...
HTML
user_guide/libraries/uri.html
rafaellimati/limajacket
mit
9,148
252
codeparrot/github-code
a5dfe4576a3d1293ab27a17074c66f5418440e02947680feaaada8707f3d43c6
<?php namespace Oro\Bundle\EmailBundle\Provider; class VariablesProvider { /** @var SystemVariablesProviderInterface[] */ protected $systemVariablesProviders = []; /** @var EntityVariablesProviderInterface[] */ protected $entityVariablesProviders = []; /** * @param SystemVariablesProviderIn...
PHP
src/Oro/Bundle/EmailBundle/Provider/VariablesProvider.php
Djamy/platform
mit
4,230
136
codeparrot/github-code
c50cf2f71fe7d7cae7853bba6fbab8a8ed1a556cb91a8b53a9175cf3606284ca
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
C
py/objclosure.c
bvernoux/micropython
mit
3,801
99
codeparrot/github-code
0de1a529b33b9d3bb018423377d89499db748d6a96ab4623ad271a4fc806ff42
// Copyright (c) 2010 Satoshi Nakamoto // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_RPC_H #define BITCOIN_RPC_H #include "json/json_spirit.h" void ThreadRPCServer(void* parg); json_spirit::Array RPCC...
C
src/bitcoinrpc.h
sysbot/namecoinq
mit
3,548
71
codeparrot/github-code
1be9ca5c7954bce8cfd93f72e8a4e4a80f8fe9f4b9f9cd1e49d46c9573bf2e73
// Copyright 2015 Reborndb Org. All Rights Reserved. // Licensed under the MIT (MIT-LICENSE.txt) license. package resp import ( "bufio" "bytes" "strconv" "github.com/juju/errors" "github.com/ngaut/log" ) type encoder struct { w *bufio.Writer } var ( imap []string ) func init() { imap = make([]string, 1024...
GO
redis/resp/encoder.go
reborndb/go
mit
3,278
167
codeparrot/github-code
6405578204a151b2413e9e7471724e556fb1848035be072d6fb6e9fbe896db9c
import { installation as ActionTypes, extension as ExtensionActionTypes } from "constants/actionTypes"; import { InstallationService } from "services"; const installationActions = { parsePackage(file, callback, errorCallback) { return (dispatch) => { InstallationService.parsePackage(file, (data)...
JavaScript
src/Modules/Settings/Dnn.PersonaBar.Extensions/Extensions.Web/src/actions/installation.js
dnnsoftware/Dnn.AdminExperience.Extensions
mit
4,016
131
codeparrot/github-code
4a3633eb61313d4bf07893334c71d429b7d1cc5085bf73c6908c3ae4794b0475
<?php namespace PSU\Rave; class Phone extends \PSU\Phone { public $aliases = array(); /** * constructor */ public function __construct( $data = null ) { // in the event that 'source' wasn't passed in, // prepare a default source user $default_user = \PSU::nvl( $_SESSION['wp_id'], 'script' ); $default...
PHP
lib/PSU/Rave/Phone.php
bscoleman-psu/plymouth-webapp
mit
10,486
397
codeparrot/github-code
6ea3a1fd3b108d19546fca50dc09d3716f00d17ddecadd39ea381899ddaefbfe
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>jQuery Impromptu States Example - Loan Calculator</title> ...
HTML
src/demos/loan_calculator.html
trentrichardson/jQuery-Impromptu
mit
3,828
105
codeparrot/github-code
81e0b671937592faaede49360980548e1efd1777ac511f909738be6f66a0f878
<!doctype html> <html> <head> <title>Lactate</title> <meta charset = 'utf-8'/> <link href='polymerase.png' rel='icon'/> <link href='style.css' rel='stylesheet'/> <link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700' rel='stylesheet' type='text/css'> <link href='http://fon...
HTML
test/files/landing page.html
wltsmrz/Lactate
mit
15,885
240
codeparrot/github-code
9b37b41b40270995187ce5f20fc463991599f33114872ec8e6c0f01e71498665
'use strict'; /* Controllers */ app // Flot Chart controller .controller('FlotChartDemoCtrl', ['$scope', function($scope) { $scope.d = [ [1,6.5],[2,6.5],[3,7],[4,8],[5,7.5],[6,7],[7,6.8],[8,7],[9,7.2],[10,7],[11,6.8],[12,7] ]; $scope.d0_1 = [ [0,7],[1,6.5],[2,12.5],[3,7],[4,9],[5,6],[6,11],[7,6.5],[8,8]...
JavaScript
public/src/js/controllers/chart.js
tahirakhan/bilal-cattle-farm
mit
1,725
63
codeparrot/github-code
46f64dd827c615412cb0af19fec549b275c60adc8a9376c2a888d6b267dbb63c
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2015, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of...
PHP
system/libraries/Session/drivers/Session_memcached_driver.php
binshen/oa
mit
9,332
364
codeparrot/github-code
d9bb6f7705e90443c86d9c012e6552bdd69b7eaa74ce5b6013818b5dc325e892
/* * reserved comment block * DO NOT REMOVE OR ALTER! */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under ...
Java
jdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/jaxp/validation/ErrorHandlerAdaptor.java
YouDiSN/OpenJDK-Research
gpl-2.0
2,810
84
codeparrot/github-code
dd353c668c10f219a18b692de91dc2dbf900469abeecdc5286b04f7891f2b0f3
/* $Id: cosa.c,v 1.31 2000/03/08 17:47:16 kas Exp $ */ /* * Copyright (C) 1995-1997 Jan "Yenya" Kasprzak <kas@fi.muni.cz> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either vers...
C
linux-2.6.18-xen.hg/drivers/net/wan/cosa.c
zhoupeng/spice4xen
gpl-2.0
59,788
2,086
codeparrot/github-code
a901bd9c4533d60e1f56e3bad715e4d7a523a3220ca7d2f4b8781399651c2679
# -*- coding: utf-8 -*- """ *************************************************************************** lasoverlapPro.py --------------------- Date : October 2014 Copyright : (C) 2014 by Martin Isenburg Email : martin near rapidlasso point com *************...
Python
python/plugins/processing/algs/lidar/lastools/lasoverlapPro.py
pavlova-marina/QGIS
gpl-2.0
4,596
97
codeparrot/github-code
b77735b2cc828cb8b2253096068eeb98f170a6df6af1145137045b8ea1554849
/* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license information, please read the * LICENSE.txt file ...
JavaScript
typo3_src-7.3.1/typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Util/String.js
Loopshape/Portfolio
gpl-2.0
1,882
65
codeparrot/github-code
572b9de46337d55fea799da8e804ee4170a121564dc288b9442c17c66843c579
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed i...
C++
storage/myisam/ha_myisam.cc
tangtang2013/MySQL-Research
gpl-2.0
77,068
2,389
codeparrot/github-code
85cd5b545debe92f6f0401c8f6faf2ce3d175a549fa98b0eccfcf20d1fa69d65
#include <linux/kernel.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/spinlock.h> #include <linux/device.h> #include <linux/err.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/gpio.h> #include <linux/of_gpio.h> #include <linux/idr.h> #include <...
C
drivers/gpio/gpiolib.c
bhree/android_kernel_jena_msm7x27a
gpl-2.0
46,029
1,882
codeparrot/github-code
66faef7a6fceacb98a969e8560a4f0984ba6ef72f604c1c362f9d4b722f37382
/********************************************************************\ * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License as * * published by the Free Software Foundation; either version 2 of * * the License, or (at your option) any...
C
src/import-export/csv-export/gncmod-csv-export.c
jhs-s/gnucash-aqplus
gpl-2.0
2,817
91
codeparrot/github-code
38a9faf4fa2f45fe9b1ab342c9ac56d2d04c4874f344f187019cb4525f199531
#ifndef __LINUX_UIO_H #define __LINUX_UIO_H #include <linux/compiler.h> #include <linux/types.h> /* * Berkeley style UIO structures - Alan Cox 1994. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Softwa...
C
include/linux/uio.h
davidmueller13/arter97_bb
gpl-2.0
1,338
57
codeparrot/github-code
b0246d83234360ed819149298468eb61d6c7c5206c672d89c98ca93738fd1829
/* * Copyright (C) 2005-2018 Team Kodi * This file is part of Kodi - https://kodi.tv * * SPDX-License-Identifier: GPL-2.0-or-later * See LICENSES/README.md for more information. */ #pragma once #include <utility> #include <vector> #include "RenderInfo.h" #include "utils/Geometry.h" #include "VideoShaders/S...
C
xbmc/cores/VideoPlayer/VideoRenderers/BaseRenderer.h
PIPplware/xbmc
gpl-2.0
4,153
127
codeparrot/github-code
e4b9bba9a19e8fd25875ac157949557dc0b8ffc376b6396eee1a16aa84b2e716
<?php /** * PHP OpenCloud library. * * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information. * @license https://www.apache.org/licenses/LICENSE-2.0 * @author Glen Campbell <glen.campbell@rackspace.com> * @author Jamie Hannaford <jamie.hannaford@rackspace.com> */ namespace OpenCloud\Cloud...
PHP
wp_bkp/html/wp-content/plugins/updraftplus/oc/rs/lib/OpenCloud/CloudMonitoring/Resource/AgentHost.php
sohilgupta/datamelons
gpl-2.0
1,300
51
codeparrot/github-code
e47033c21d9b4566c470c5350d0bd362dcbc6308c8af2c205cc0a29e094cc0bf
/*************************************************************************** qgserrordialog.cpp - error description ------------------- begin : October 2012 copyright : (C) October 2012 Radim Blazek email : radi...
C++
src/gui/qgserrordialog.cpp
sebastic/QGIS
gpl-2.0
2,866
80
codeparrot/github-code
7271b88e50a37ff8ed0d5652e443c2b49454065195ca7a2045fbce232e2318cb
/* * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in ...
C
drivers/usb/gadget/f_rmnet.c
FireLord1/android_kernel_motorola_msm8916
gpl-2.0
40,655
1,513
codeparrot/github-code
2af5d4391030d3b601a448cefb16ceb59080a2d9faded57547e1ad1223fea80b
#!/usr/bin/perl # Copyright 2008 SARL Biblibre # # This file is part of Koha. # # Koha is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version....
Perl
misc/cronjobs/serialsUpdate.pl
MASmedios/koha
gpl-2.0
3,040
96
codeparrot/github-code
3e6d88d051e78358a1e2e1ec59ef970b8c7308ee7faf339d8e6b12817e02cb55
#ifndef _XEN_EVENTS_H #define _XEN_EVENTS_H #include <linux/interrupt.h> #include <xen/interface/event_channel.h> #include <asm/xen/hypercall.h> #include <asm/xen/events.h> unsigned xen_evtchn_nr_channels(void); int bind_evtchn_to_irq(unsigned int evtchn); int bind_evtchn_to_irqhandler(unsigned int evtchn, ...
C
include/xen/events.h
actzendaria/xgt
gpl-2.0
4,227
127
codeparrot/github-code
f3a296f38029da74302127748f3803d4a630cd5c6a0f9e05c521b1ab68e9548c
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
C
engines/testbed/testsuite.h
somaen/scummvm
gpl-2.0
6,169
199
codeparrot/github-code
e01bc339f251911622945033942ea164377b0ed7589c6181d101e1f69e57c1b4
# # # Copyright (c) 2008 Marcus Huewe # Copyright (c) 2008 Martin Mohring # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be ...
Perl
src/backend/Meta/Rpmmd.pm
b1-systems/open-build-service
gpl-2.0
6,894
166
codeparrot/github-code
159c3e5b8a5d0f9bd7f1675a999b6e2e827c3e41273b558153b590113d4e862b
<html> <head> <title>pcre_get_named_substring specification</title> </head> <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB"> <h1>pcre_get_named_substring man page</h1> <p> Return to the <a href="index.html">PCRE index page</a>. </p> <p> This page is part of the PCRE HTML documentat...
HTML
pcre/doc/html/pcre_get_named_substring.html
ottok/mariadb-galera-10.0
gpl-2.0
2,413
69
codeparrot/github-code
76646a20f222d3a9a67bf82856097ec45e770692d8a833c63e8b0cc4ff394886
/* * ALSA driver for ATI IXP 150/200/250 AC97 modem controllers * * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either versio...
C
sound/pci/atiixp_modem.c
shichao-an/linux-2.6.11.12
gpl-2.0
36,373
1,346
codeparrot/github-code
82ab86b0ed524e2e53313f1b45219499389e319e2e0dde2edfeab2548027661c
/* Copyright (c) 1997-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the...
C
uefi/userspace/glibc/nis/nis_file.c
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
2,543
103
codeparrot/github-code
008d4c964d7eeaa51fbc57062ee920c37e8f13910d59e712d0b3f3ad073ef686
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 ...
C++
stereoEnhancer/JuceLibraryCode/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp
aneeshvartakavi/VSTPlugins
gpl-2.0
25,385
761
codeparrot/github-code
dc8b66bef5c236cf203cf8faed4fee297940b699701f3fcc0a42c452354204a4
/* Copyright (C) 2009-2015 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the Lic...
C
gdb/arch/aarch64-insn.c
rmbq/hjl-binutils
gpl-2.0
11,363
390
codeparrot/github-code
94ce0759661b08edcad7cfd6fc96c5e228e567fda3dd2d18fe5f8127b32f8309
/* Declarations for handling faults in the signal thread. Copyright (C) 1994-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by t...
C
uefi/userspace/glibc/hurd/hurdfault.h
SanDisk-Open-Source/SSD_Dashboard
gpl-2.0
1,867
51
codeparrot/github-code
b576435fe072e1ec28552711f738a027f07c70310444ef6f9b718aaee62cee46
/* Compare strings while treating digits characters numerically. Copyright (C) 1997, 2002, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jean-François Bignolles <bignolle@ecoledoc.ibp.fr>, 1997. The GNU C Library is free software; you can redistribute it and/or ...
C
string/strverscmp.c
pirix/glibc-pirix
gpl-2.0
3,132
110
codeparrot/github-code
c4cd61965349afb18ef038185a74c8bfb73d1df1c5b98b4b67da8c95b5598672
<html> <head> <title>TenderReport</title> </head> <body> <div style="text-align:center;"> <h2>TenderReport</h2> <a href="#change_log">Revised: 14Feb2013</a> </div> <p> Tender reporting needs and conventions can vary pretty widely. If the included reports don't meet your needs, you can create a custom one. Just creat...
HTML
documentation/IS4C/developer/api/tenderreport.html
joelbrock/HARVEST_CORE
gpl-2.0
1,410
43
codeparrot/github-code
d032c8331a1187af1e827369a955b22e66a2a39c6f627c45dcbaa51001eb9417
// SPDX-License-Identifier: GPL-2.0 /* * This file is part of STM32 ADC driver * * Copyright (C) 2016, STMicroelectronics - All Rights Reserved * Author: Fabrice Gasnier <fabrice.gasnier@st.com>. * * Inspired from: fsl-imx25-tsadc * */ #include <linux/clk.h> #include <linux/interrupt.h> #include <linux/irqchip...
C
drivers/iio/adc/stm32-adc-core.c
Pingmin/linux
gpl-2.0
22,736
863
codeparrot/github-code
d7184540888ff2416abd6adec1cbe002ceb3ead7a9b2730fd72d2b63ec8fafff
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
C++
src/MetalinkParserStateMachine.cc
bright-sparks/aria2
gpl-2.0
14,573
563
codeparrot/github-code
fe62363ebedbb762abb7e622defd34dbb580eece02e1d1cf572975c534235322
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 1998, 1999, 2000 * Sleepycat Software. All rights reserved. * * $Id: EnvExample.cpp,v 11.12 2000/10/27 20:32:00 dda Exp $ */ #include "db_config.h" #ifndef NO_SYSTEM_INCLUDES #include <sys/types.h> #include <errno.h> #include ...
C++
user/mysql/bdb/examples_cxx/EnvExample.cpp
rhuitl/uClinux
gpl-2.0
2,767
123
codeparrot/github-code
f2a0da5be6f8a4e7b13c3522e40d92f53a01ba4bb3435c58f6bd5bcf84b50b28
DV.Schema.helpers = { HOST_EXTRACTOR : (/https?:\/\/([^\/]+)\//), annotationClassName: '.DV-annotation', // Bind all events for the docviewer // live/delegate are the preferred methods of event attachment bindEvents: function(context){ var boundZoom = this.events.compile('zoom'); var ...
JavaScript
viewers/apps/src/nytDocumentViewer/public/javascripts/DV/helpers/helpers.js
cloudbearings/providence
gpl-3.0
19,944
504
codeparrot/github-code
87dd521c0c62f044bb8cb921e4173836a4c2c78b5d8cfc6b80f69a6836322ec1
#include <string> #include <opm/common/OpmLog/OpmLog.hpp> #include "export.hpp" namespace { void info(const std::string& msg) { OpmLog::info(msg); } void warning(const std::string& msg) { OpmLog::warning(msg); } void error(const std::string& msg) { OpmLog::error(msg); } void problem(const std::string...
C++
python/cxx/log.cpp
bska/opm-common
gpl-3.0
898
50
codeparrot/github-code
a523f8c1b1ad9de48fbca6eb357b85b8c6218e63bdba8608df382f02c157db57
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
Python
nupic/encoders/coordinate.py
david-ragazzi/nupic
gpl-3.0
6,560
209
codeparrot/github-code
c0a1cec6507e5e2af6bb8613a341f35e374b0435b1c05d2afea1a3afd849306a
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL...
C++
src/JuceLibraryCode/modules/juce_gui_basics/layout/juce_Viewport.cpp
deeuu/LoudnessMeters
gpl-3.0
15,506
434
codeparrot/github-code
8109164867ea642f2959d5738748a668eaf0aa1197069003733026e49e8f3cdc
/******************************************************************************/ #ifdef JEMALLOC_H_TYPES #endif /* JEMALLOC_H_TYPES */ /******************************************************************************/ #ifdef JEMALLOC_H_STRUCTS #endif /* JEMALLOC_H_STRUCTS */ /*******************************************...
C
thirdparty/jemalloc/include/jemalloc/internal/huge.h
linghegu/gsnetwork
gpl-3.0
1,411
37
codeparrot/github-code
932d20a61d079185dde2f0ea55419baedfdd855fb48f7cb4a8030706c4440432
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
Python
nupic/research/monitor_mixin/metric.py
david-ragazzi/nupic
gpl-3.0
2,865
98
codeparrot/github-code
472ac510b9606f8e836952eadb895716aeb9adbe861d2ec77fb815ddddd66858
/* * Copyright 2015-2016 the original author or authors * * This software is licensed under the Apache License, Version 2.0, * the GNU Lesser General Public License version 2 or later ("LGPL") * and the WTFPL. * You may choose either license to govern your use of this software only * upon the condition that you ...
Java
src/main/java/eu/siacs/conversations/utils/AndroidUsingExecLowPriority.java
Kandru/KandruIM
gpl-3.0
2,702
93
codeparrot/github-code
a7bc1bf12ed16daf22a4f5809f0105895bc4430fd9abc8f238bf0c42c8fe39bf
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef MAKEFILECREATOR_H #define MAKEFILECREATOR_H #ifdef _WIN32 #pragma once #endif #include "utlvector.h" ...
C
utils/vprojtomake/makefilecreator.h
Entropy-Soldier/ges-legacy-code
gpl-3.0
1,680
64
codeparrot/github-code
0cc384e356a711c2760264b861285e353c2e205efe77f1cf94974a066ea8dc45
// Plugin: jQuery.scrollSpeed // Source: github.com/nathco/jQuery.scrollSpeed // Author: Nathan Rutzky // Update: 1.0.2 (function($) { jQuery.scrollSpeed = function(step, speed, easing) { var $document = $(document), $window = $(window), $body = $('html, body'), ...
JavaScript
web/libs/jQuery.scrollSpeed/jQuery.scrollSpeed.js
haas26u/zu-store
gpl-3.0
2,827
98
codeparrot/github-code
386e91ed0240f82456a3ee346da5e2de0caad711f7adb68383ab78c0c3c4b0fa
/* Copyright (c) Business Objects 2006. All rights reserved. */ /* ================================================================================ ParameterUI Widget for displaying and editing parameter values. Contains one or many ParameterValueRows and, optionally, UI that allows rows to be added. ===============...
JavaScript
aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/ParameterUI.js
johndavedecano/tanghalangpasigenyo
gpl-3.0
12,193
405
codeparrot/github-code
f96ce490d0de3ff87b743e5a69bf881f408fb11684a026ee846373b187164ed4
<?php /** * @package api * @subpackage objects * @deprecated use KalturaRule instead */ class KalturaPreviewRestriction extends KalturaSessionRestriction { /** * The preview restriction length * * @var int */ public $previewLength; private static $mapBetweenObjects = array ( "previewLength", ); ...
PHP
api_v3/lib/types/accessControl/KalturaPreviewRestriction.php
ivesbai/server
agpl-3.0
663
34
codeparrot/github-code
4536e4222be81ce8acadbd04588ee0efdf540e4166fbd16ed36c113a7ef3f243
/* * jPOS Project [http://jpos.org] * Copyright (C) 2000-2015 Alejandro P. Revilla * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your ...
Java
jpos/src/main/java/org/jpos/iso/ISOFieldValidator.java
imam-san/jPOS-1
agpl-3.0
6,106
183
codeparrot/github-code
414a22aa8c2b827a1dd8679ee8674a23362e57df86ea0be6eb200208ea316787
package models import ( "koding/db/mongodb/modelhelper" "net" "socialapi/config" "socialapi/request" "github.com/koding/logging" ) // Client holds the contextual requester/client info type Client struct { // Account holds the requester info Account *Account // IP is remote IP of the requester IP net.IP /...
GO
go/src/socialapi/models/context.go
acbodine/koding
agpl-3.0
2,142
108
codeparrot/github-code
c3ddc64ed750379e11a9999933c3afd00f7d3171f77cf2595c8c584d5d4238cc
/* Copyright 2008-2015 Clipperz Srl This file is part of Clipperz, the online password manager. For further information about its features and functionalities please refer to http://www.clipperz.com. * Clipperz is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Pub...
JavaScript
frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js
gcsolaroli/password-manager
agpl-3.0
2,902
85
codeparrot/github-code
ac3b5b01d01f975ddc7f7a0aaf485ca2be454fb44cb3b223c15253b7c9bd9bed
module ExercismWeb module Routes class User < Core # User's profile page. # This is going to get a serious overhaul. get '/:username' do |username| please_login user = ::User.find_by_username(username) if user title(user.username) erb :"user/show", lo...
Ruby
app/routes/user.rb
nathanbwright/exercism.io
agpl-3.0
1,214
45
codeparrot/github-code
36e6809db8e4274f5438bd7e683082878f5ce44513286ab7b2b535f167f7bfb4
#* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.html import matp...
Python
python/mms/ConvergencePlot.py
harterj/moose
lgpl-2.1
3,697
128
codeparrot/github-code
a3acf722a35e7cbc7d2782b1c2a62cf8d750569c232cc7e1cb3c1fd4260974e7
/* variance_AD.c -- Adjoint of the lateral variance of outgoing photons Copyright (C) 2011 Robin Hogan <r.j.hogan@reading.ac.uk> This library is free software; 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...
C
external/adept/adept-1.0/multiscatter/variance_AD.c
NumPDEClassTTU/femus
lgpl-2.1
2,524
75
codeparrot/github-code
495dbdf09f194a2a0c536ca44ee0f5ea476076e55db6505369ee4f4fa7ffb887
<?php /*************************************************************************************/ /* This file is part of the Thelia package. */ /* */ /* Copyright (c) OpenStudio ...
PHP
core/lib/Thelia/Core/Event/Address/AddressCreateOrUpdateEvent.php
adirkuhn/thelia
lgpl-3.0
5,242
269
codeparrot/github-code
3a636f601b451431e09c9f739cdece152b0042293255c4f2b0e5c1c4339cbdf0
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.or...
Java
components/org.wso2.carbon.business.rules.core/src/main/java/org/wso2/carbon/business/rules/core/datasource/util/BusinessRuleDatasourceUtils.java
minudika/carbon-analytics
apache-2.0
1,886
60
codeparrot/github-code
1b7cf7103b901b19efa47697136a9c6eb1465ab143378c9800c6587aa3d5ac1a
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
extensions-core/druid-basic-security/src/main/java/org/apache/druid/security/basic/authentication/validator/MetadataStoreCredentialsValidator.java
nishantmonu51/druid
apache-2.0
3,346
90
codeparrot/github-code
72f377a36fbf7c3f1bc49fea5abc376d69536ac21e00c94781c58f8609f8cbe4
/* * Copyright 2000-2017 JetBrains s.r.o. * * 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 applicable law or agre...
Java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/dataFlow/reachingDefs/ReachingDefinitionsCollector.java
asedunov/intellij-community
apache-2.0
17,084
457
codeparrot/github-code
1569d5c51f2a75f9bd13159048bb85c9e2741c0221410343f310ce57d5de22b5
/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2016, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, w...
C++
lib/assimp-3.2/tools/assimp_cmd/CompareDump.cpp
EmilNorden/candle
apache-2.0
29,850
951
codeparrot/github-code
cd45ef7b14fd1635e9a7e8e48395b11cb39b8b33980bffcc334f2ea1205b1768
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
geode-core/src/integrationTest/java/org/apache/geode/internal/offheap/TxReleasesOffHeapOnCloseJUnitTest.java
masaki-yamakawa/geode
apache-2.0
2,545
65
codeparrot/github-code
e527d39c52121e4781bc31dcf8c352b44c32a85f64e85694be8b93bfc64b5ea9
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/OakCodecTest.java
trekawek/jackrabbit-oak
apache-2.0
1,500
41
codeparrot/github-code
27ed5904fd9b5894792a1b96b59dad1b259d36aee8f1f11b9d26056bc7771b66
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/drag_drop/drag_drop_tracker.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/test/ash_test_base.h" #include "b...
C++
src/ash/drag_drop/drag_drop_tracker_unittest.cc
plxaye/chromium
apache-2.0
8,093
203
codeparrot/github-code
88aab2eee3ba22af19fb112437e8c77e046081489347900d329f5c384c4b314c
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
Java
java/server/test/org/openqa/testing/FakeHttpServletResponse.java
twalpole/selenium
apache-2.0
5,143
220
codeparrot/github-code
4cd0580865235fcb03cacdbd4e3de9300e9ca628ff8966e0735535cea578e8e1
/* * Copyright 2018 The Netty Project * * The Netty Project licenses this file to you 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
handler/src/main/java/io/netty/handler/ssl/DefaultOpenSslKeyMaterial.java
doom369/netty
apache-2.0
3,553
127
codeparrot/github-code
ed6ca656e0b2e2a3e3816bc4f83049b28b908d5dd12de92721f431f0cd9b061a
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_SHADER_PROGRAMS_MAC_H_ #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_SHADER_...
C
src/content/browser/renderer_host/compositing_iosurface_shader_programs_mac.h
plxaye/chromium
apache-2.0
2,397
62
codeparrot/github-code
9e74c28dff1aa23f0cf142706a20d473a5a4c73c51b64855807a316c1b8af947
package com.box.androidsdk.content.models; import com.eclipsesource.json.JsonObject; import com.eclipsesource.json.JsonValue; import java.util.Map; /** * Class that represents a collection on Box. */ public class BoxCollection extends BoxEntity { /** * Constructs an empty BoxCollection object. */ ...
Java
box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxCollection.java
MariusVolkhart/box-android-sdk
apache-2.0
1,723
68
codeparrot/github-code
bc87b206da7e9ddc8504590042a8c15e81e27cea3d7bbdc9751f968bbdc4520a
const test = require('ava'); const {replaceUrls, toInaboxDocument} = require('../app-utils'); test('replaceUrls("minified", ...)', async (t) => { const mode = 'minified'; t.is( replaceUrls( mode, '<script src="https://cdn.ampproject.org/v0.js"></script>' ), '<script src="/dist/v0.js"></scri...
JavaScript
build-system/server/test/app-utils.test.js
honeybadgerdontcare/amphtml
apache-2.0
10,266
371
codeparrot/github-code
66786e25b46a1d8dbcabbc35bb5ee2c7a1408b97433209af565c0224b904ef7e
/* RunTime Type Identification Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Mostly written by Jason Merrill (jason@cygnus.com). This file is part of GCC. GCC is free software; you can redistribute it and/o...
C
gccsrc/gcc-4.7.2/gcc/cp/rtti.c
the-linix-project/linix-kernel-source
bsd-2-clause
47,693
1,593
codeparrot/github-code
258e25ead357f37ead59aa2a090dd02782e6787ff39e3a688686440ffeb98459
/* * Copyright (C) 2007 Henry Mason (hmason@mac.com) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of so...
C
Source/core/events/MessageEvent.h
hgl888/blink-crosswalk-efl
bsd-3-clause
7,504
149
codeparrot/github-code
cd45b4616f1dd3995e488e9d018379f56b79d14920ef21daa51d9a19c7a935df
""" This provides some useful code used by other modules. This is not to be used by the end user which is why it is hidden. """ import string, sys class LinkError(Exception): pass def refine_import_err(mod_name, extension_name, exc): """ Checks to see if the ImportError was because the library itself was...
Python
Wrapping/Python/vtk/__helper.py
b3c/VTK-5.8
bsd-3-clause
981
34
codeparrot/github-code
f23acf2a7898adbac4e7d9e62c16c7d962f134b78c919faf42e2dadc7bbd0298
""" A sub-package for efficiently dealing with polynomials. Within the documentation for this sub-package, a "finite power series," i.e., a polynomial (also referred to simply as a "series") is represented by a 1-D numpy array of the polynomial's coefficients, ordered from lowest order term to highest. For example, a...
Python
numpy/polynomial/__init__.py
simongibbons/numpy
bsd-3-clause
6,774
186
codeparrot/github-code
80ff48833dc95ed4357da450d864aeb5744ef51c278efbd3fd8fb29e417c016b
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
C++
third_party/llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/allocate_shared_cxx03.pass.cpp
youtube/cobalt
bsd-3-clause
2,588
119
codeparrot/github-code
78588f23ec14652905aca1476e57a4fcbde5e416c7aefaf647bb01321ee564e7
// 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 "third_party/blink/renderer/controller/oom_intervention_impl.h" #include <algorithm> #include <memory> #include <utility> #include "base/bind.h...
C++
third_party/blink/renderer/controller/oom_intervention_impl.cc
scheib/chromium
bsd-3-clause
11,560
306
codeparrot/github-code
85232276934c16e1161435b9e7e33d28496e8af2848342e927e41580b2b1b741
// Copyright 2015 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 "modules/navigatorconnect/ServicePort.h" #include "bindings/core/v8/ScriptValue.h" #include "bindings/core/v8/SerializedScriptValueFactory.h" #i...
C++
third_party/WebKit/Source/modules/navigatorconnect/ServicePort.cpp
js0701/chromium-crosswalk
bsd-3-clause
2,473
86
codeparrot/github-code
1aadb43fa896ce23351ff6ee011c020c749ada1a68dd9491ca4a950491008050
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/device/geolocation/wifi_data_provider.h" #include "base/bind.h" #include "base/callback.h" #include "base/location.h" #include "base/t...
C++
services/device/geolocation/wifi_data_provider.cc
scheib/chromium
bsd-3-clause
1,569
54
codeparrot/github-code
53ef2182b6be4a7456288916849c2efcc21c9ce28d1d10c2d31e0268406aebee
package hello; import static hello.Helper.getQueries; import static hello.Helper.randomWorld; import static hello.Helper.sendException; import static hello.Helper.sendJson; import com.mongodb.async.client.MongoCollection; import com.mongodb.async.client.MongoDatabase; import com.mongodb.client.model.Filters; import c...
Java
frameworks/Java/undertow/src/main/java/hello/UpdatesMongoAsyncHandler.java
k-r-g/FrameworkBenchmarks
bsd-3-clause
3,233
101
codeparrot/github-code
ca123d47ce7380cef3e576b8f50dd6a3ff6dfc5c1ce92f5a2bc2091dc1d14924
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICU...
C#
SharedContent/cs/Logging/MediaPlayerLogger.cs
oldnewthing/Windows-universal-samples
mit
12,945
246
codeparrot/github-code
9eca01cd50e02006608e01630a4b778886b601aaa79c617bcd3c06fdd0c393be
import merge from "ember-data/system/merge"; import RootState from "ember-data/system/model/states"; import Relationships from "ember-data/system/relationships/state/create"; import Snapshot from "ember-data/system/snapshot"; import EmptyObject from "ember-data/system/empty-object"; var Promise = Ember.RSVP.Promise; v...
JavaScript
packages/ember-data/lib/system/model/internal-model.js
Kuzirashi/data
mit
20,528
746
codeparrot/github-code
76783a6ecb24eaee3892673ccd3364df8c4de48e24d0b68265a5394b63e12ee1
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Bond.Expressions { using System.Linq.Expressions; /// <summary> /// Helpers for creating loop expression trees /// </summary> internal st...
C#
cs/src/core/expressions/ControlExpression.cs
jdubrule/bond
mit
1,408
43
codeparrot/github-code
be71dd7b38e84a3e3ced56e0509776f8cab6467495df951cdf2b98c2ba333b80
module Gitlab module Metrics # Rack middleware for tracking Rails requests. class RackMiddleware CONTROLLER_KEY = 'action_controller.instance' def initialize(app) @app = app end # env - A Hash containing Rack environment details. def call(env) trans = transacti...
Ruby
lib/gitlab/metrics/rack_middleware.rb
jrjang/gitlab-ce
mit
1,094
48
codeparrot/github-code
fef111ba2555fcef27034322ad85d5dfc0c3b42e9a98f5f68fc048d2a2cd83c7
/* * Copyright 2012-2015 the original author or authors. * * 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...
Java
testing/spring-boot-master/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/repackage/RepackageTask.java
rokn/Count_Words_2015
mit
7,655
264
codeparrot/github-code
8d42041eeb8b58e377f0aa04ead6c1a03126f5a005b87f051cc76d06cbdcf00f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="robots" content="index, follow, all" /> <title>Thelia\Controller\Admin\CouponController | </title> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css"> ...
HTML
api/2.1.0-alpha2/Thelia/Controller/Admin/CouponController.html
Mertiozys/thelia.github.io
mit
20,232
564
codeparrot/github-code
5367d4dbc0c4671cf72d5616e832501f8c625d264f3b0fbcbbdf44922d0a3106
/* * The MIT License * * Copyright 2018 Victor Martinez. * * 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, copy,...
Java
test/src/test/java/hudson/cli/ListJobsCommandTest.java
oleg-nenashev/jenkins
mit
6,254
142
codeparrot/github-code
694409b19e924f38fba9fe5b9ee36c12c76d1ecaece804c05068036b69aba0b1
/* flatpickr v4.2.1, @license MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.sv = {}))); }(this, (function (exports) { 'use strict'; var fp = typeof wi...
JavaScript
ajax/libs/flatpickr/4.2.1/l10n/sv.js
extend1994/cdnjs
mit
1,633
71
codeparrot/github-code
94c3f128af2c7ebdca15668d49b0609f712a0dd69ba6b99df77b8490f5302f02
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
C++
engines/glk/glulx/serial.cpp
somaen/scummvm
gpl-2.0
20,624
990
codeparrot/github-code
af5a100ad6be1fdba8b3abe98d1077d5aca02f96d4a093e7de3630ce8cf06b7b
/* * Copyright (c) 2010 Patrick McHardy <kaber@trash.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module....
C
net/netfilter/xt_CT.c
anasanzari/Cowcopy
gpl-2.0
10,282
444
codeparrot/github-code
e847c4f4aab141d4c41ef79b7e1189d759e5e58851a1bea5f09b4eaf066c5996
<?php defined("SYSPATH") or die("No direct script access."); /** * Gallery - a web based photo album viewer and editor * Copyright (C) 2000-2013 Bharat Mediratta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fr...
PHP
modules/gallery/libraries/Form_Uploadify.php
phamtuanchip/gallary
gpl-2.0
2,546
72
codeparrot/github-code
bb89cc18364f6faaacbc876876716542e88ae08fb24a9c446a42171b40ecde42
/* * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community; see the CONTRIBUTORS file for full * details. Many organizations have provided support for...
C
src/CacheManager.h
hkerem/squid3-ssl
gpl-2.0
3,627
103
codeparrot/github-code
ea626346a25890a4f08f19c75bccd2ecb24b730f4f556067afc0ef25b096a39d
<?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
wecenter/system/Zend/Validate/Barcode/AdapterAbstract.php
default1406/PhyLab
gpl-2.0
7,539
316
codeparrot/github-code
111335cd9fe42031df0a0977ad0238634624fae5a4d44753d36afc11ebce37ef
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to th...
Java
src/java.base/share/classes/jdk/internal/org/objectweb/asm/commons/Remapper.java
FauxFaux/jdk9-jdk
gpl-2.0
9,445
268
codeparrot/github-code