code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Data
{
[Flags]
public enum DataRowAction
{
Nothing = 0, // 0 0x00
... | nbarbettini/corefx | src/System.Data.Common/src/System/Data/DataRowAction.cs | C# | mit | 614 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.Storage;
using Windows.Storage.Streams;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
namespac... | williamsrz/Windows-universal-samples | xaml_xamluibasics/CS/AppUIBasics/Common/SuspensionManager.cs | C# | mit | 12,098 |
! PR fortran/16861
! { dg-do run }
module foo
integer :: i
end module foo
module bar
contains
subroutine baz(j)
use foo
integer, dimension(i) :: j
integer :: n
do n = 1, i
if (j(n) /= n**2) call abort
end do
end subroutine baz
end module bar
subroutine quus()
use foo
use bar
i ... | selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/gfortran.dg/pr16861.f90 | FORTRAN | gpl-3.0 | 451 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\VarDumper\Caster;
use Symfony\Component\VarDumper\Clo... | bkostrowiecki/devnote | www/vendor/symfony/var-dumper/Caster/AmqpCaster.php | PHP | gpl-3.0 | 6,693 |
import * as dedent from 'dedent';
const lines: string = dedent`
first
second
third
`;
const text: string = dedent(`
A test argument.
`);
| markogresak/DefinitelyTyped | types/dedent/dedent-tests.ts | TypeScript | mit | 155 |
/* $Id: sph_jh.h 216 2010-06-08 09:46:57Z tp $ */
/**
* JH interface. JH is a family of functions which differ by
* their output size; this implementation defines JH for output
* sizes 224, 256, 384 and 512 bits.
*
* ==========================(LICENSE BEGIN)============================
*
* Copyright (c) 2007-201... | RalfFreeh2/Ralf | x6/sph_jh.h | C | gpl-2.0 | 4,079 |
/*
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice a... | keeeener/nicki | kernel/drivers/staging/prima/CORE/WDI/WPAL/inc/wlan_qct_pal_status.h | C | gpl-2.0 | 3,112 |
var test = require('tape');
var oldToNew = require('../index').oldToNew;
var newToOld = require('../index').newToOld;
test('plugin mappings exist', function(t) {
t.plan(2);
t.equal('cordova-plugin-device', oldToNew['org.apache.cordova.device']);
t.equal('org.apache.cordova.device', newToOld['cordova-plug... | zendey/Zendey | zendey/platforms/android/cordova/node_modules/cordova-common/node_modules/cordova-registry-mapper/tests/test.js | JavaScript | gpl-3.0 | 337 |
/*
* MPLS GSO Support
*
* Authors: Simon Horman (horms@verge.net.au)
*
* 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 later ve... | tusharbehera/linux | net/mpls/mpls_gso.c | C | gpl-2.0 | 2,665 |
#!/bin/bash
export ARG="$1"
curl -s "https://github.com/meteor/meteor/commit/$(git log --format=%H -1 --author "$1")" | perl -nle 'm!<span class="author-name"><a href="/([^"]+)"! and do { my $name = $1; $ENV{ARG} =~ /(<.+>)/; print "GITHUB: $name $1"; exit 0 }'
| sitexa/meteor | scripts/admin/find-author-github.sh | Shell | mit | 263 |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2018 Oleksij Rempel <linux@rempel-privat.de>
*
* Driver for Alcor Micro AU6601 and AU6621 controllers
*/
/* Note: this driver was created without any documentation. Based
* on sniffing, testing and in some cases mimic of original driver.
* As soon as some o... | GuillaumeSeren/linux | drivers/mmc/host/alcor.c | C | gpl-2.0 | 29,650 |
/*!
* Qoopido.js library v3.4.3, 2014-6-11
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*//*!
* Qoopido.js library
*
* version: 3.4.3
* date: 2014-6-11
* author: Dirk Lueth <info@qoopido.com>
* website: https://github.com/dlueth/qoopido.js
*
* Copyright (c) 2014 Dir... | tonytomov/cdnjs | ajax/libs/qoopido.js/3.4.3/support/element/canvas/todataurl.js | JavaScript | mit | 903 |
// SPDX-License-Identifier: GPL-2.0
/* Copyright(c) 2009-2012 Realtek Corporation.*/
#include "../wifi.h"
#include "../usb.h"
#include "reg.h"
#include "led.h"
static void _rtl92cu_init_led(struct ieee80211_hw *hw,
struct rtl_led *pled, enum rtl_led_pin ledpin)
{
pled->hw = hw;
pled->ledpin = ledpin;
ple... | HinTak/linux | drivers/net/wireless/realtek/rtlwifi/rtl8192cu/led.c | C | gpl-2.0 | 2,997 |
var a = {
echo(c) {
return c;
}
};
assert.strictEqual(a.echo(1), 1);
| stefanpenner/6to5 | test/fixtures/esnext/es6-object-concise/method-arguments.js | JavaScript | mit | 78 |
/**
* @file
* This file contains most of the code for the configuration page.
*/
// Create the drupal ShareThis object for clean code and namespacing:
var drupal_st = {
// These are handlerd for updating the widget pic class.
multiW: function() {
jQuery(".st_widgetPic").addClass("st_multi");
},
classicW: fun... | otavanopisto/pajav2 | sites/default/modules/sharethis/ShareThisForm.js | JavaScript | gpl-2.0 | 3,308 |
/* linux/arch/arm/mach-s3c2440/mach-osiris.c
*
* Copyright (c) 2005,2008 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <ben@simtec.co.uk>
*
* 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 t... | felixhaedicke/nst-kernel | src/arch/arm/mach-s3c2440/mach-osiris.c | C | gpl-2.0 | 9,761 |
// 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.
#ifndef CONTENT_SHELL_APP_PATHS_MAC_H_
#define CONTENT_SHELL_APP_PATHS_MAC_H_
namespace base {
class FilePath;
}
// Sets up base::mac::FrameworkBundle.
... | ssaroha/node-webrtc | third_party/webrtc/include/chromium/src/content/shell/app/paths_mac.h | C | bsd-2-clause | 690 |
// PR c++/56998
class Secret;
char IsNullLiteralHelper(Secret* p);
char (&IsNullLiteralHelper(...))[2];
struct C
{
int val() { return 42; }
};
template <typename T>
unsigned f()
{
return sizeof(IsNullLiteralHelper(C().val()));
}
| selmentdev/selment-toolchain | source/gcc-latest/gcc/testsuite/g++.dg/template/overload13.C | C++ | gpl-3.0 | 236 |
#ifndef HEADER_CURL_LDAP_H
#define HEADER_CURL_LDAP_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| ... | Noah-Huppert/Website-2013 | vhosts/www.noahhuppert.com/htdocs/trex/deps/curl/lib/curl_ldap.h | C | mit | 1,408 |
/*
* Copyright 1992, Linus Torvalds.
* Copyright 2010 Tilera Corporation. 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.
*
* This program is di... | chaoling/test123 | linux-2.6.39/arch/tile/include/asm/bitops.h | C | gpl-2.0 | 3,162 |
/* SPDX-License-Identifier: GPL-2.0 */
/* $Id: entity.h,v 1.4 2004/03/21 17:26:01 armin Exp $ */
#ifndef __DIVAS_USER_MODE_IDI_ENTITY__
#define __DIVAS_USER_MODE_IDI_ENTITY__
#define DIVA_UM_IDI_RC_PENDING 0x00000001
#define DIVA_UM_IDI_REMOVE_PENDING 0x00000002
#define DIVA_UM_IDI_TX_FLOW_CONTROL 0x00000004
#d... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/isdn/hardware/eicon/entity.h | C | gpl-2.0 | 879 |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2013 by John Crispin <john@phrozen.org>
*/
#include <linux/clockchips.h>
#include <linux/clocksource.h>
#include <linux/in... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/arch/mips/ralink/cevt-rt3352.c | C | gpl-2.0 | 3,859 |
/*
* 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 later version.
*/
#ifndef _ASM_GENERIC_PCI_BRIDGE_H
#define _ASM_GENERIC_PCI_BR... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/include/asm-generic/pci-bridge.h | C | apache-2.0 | 1,410 |
<?php
/**
* Autorunner which runs all tests cases found in a file
* that includes this module.
* @package SimpleTest
* @version $Id: autorun.php 1721 2008-04-07 19:27:10Z lastcraft $
*/
require_once dirname(__FILE__) . '/unit_tester.php';
require_once dirname(__FILE__) . '/mock_objects.php';
require_once... | timjaeger/launcheffect | wp-content/themes/launcheffect/inc/campaignmonitor/tests/simpletest/autorun.php | PHP | gpl-2.0 | 2,729 |
<?php
/*
Requires PHP5, uses built-in DOM extension.
To be used in PHP4 scripts using DOMXML extension: allows PHP4/DOMXML scripts to run on PHP5/DOM.
(Optional: requires PHP5/XSL extension for domxml_xslt functions, PHP>=5.1 for XPath evaluation functions, and PHP>=5.1/libxml for DOMXML error reports)
Typical use... | dhamma-dev/SEA | web/auth/cas/CAS/CAS/domxml-php4-to-php5.php | PHP | gpl-3.0 | 22,868 |
CodeMirror.defineMode("clike", function(config, parserConfig) {
var indentUnit = config.indentUnit,
keywords = parserConfig.keywords || {},
blockKeywords = parserConfig.blockKeywords || {},
atoms = parserConfig.atoms || {},
hooks = parserConfig.hooks || {},
multiLineStrings = parserConfi... | kylesawatsky/sl-website | wp-content/uploads/wp-clone/wpclone_backup/wp-content/plugins/debug-bar-console/codemirror/mode/clike.js | JavaScript | gpl-2.0 | 8,404 |
/*
* Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
* Copyright 2001-2008 S3 Graphics, Inc. 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;
* either ... | chaoling/test123 | linux-2.6.39/drivers/video/via/hw.c | C | gpl-2.0 | 73,941 |
/*==================================================
Copyright (c) 2013-2015 司徒正美 and other contributors
http://www.cnblogs.com/rubylouvre/
https://github.com/RubyLouvre
http://weibo.com/jslouvre/
Released under the MIT license
avalon.modern.shim.js(无加载器版本) 1.44 built in 2015.6.17
support IE10+ and other brows... | dada0423/cdnjs | ajax/libs/avalon.js/1.4.4/avalon.modern.shim.js | JavaScript | mit | 152,012 |
<?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... | mattsimpson/entrada-1x | www-root/core/library/Zend/Memory/Value.php | PHP | gpl-3.0 | 4,163 |
jQuery.keyboard.language.pt={language:"Portuguese",display:{a:"✔:Aceitar (Shift+Enter)",accept:"Aceitar:Concluir (Shift+Enter)",alt:"AltGr:Carateres Adicionais/CTRL+ALT",b:"←:Retroceder",bksp:"← Bksp:Retroceder",c:"✖:Cancelar/Escape (Esc)",cancel:"Cancel:Cancelar/Escape(Esc)",clear:"C:Limpar",combo:"ö:Acentuação Automá... | dlueth/cdnjs | ajax/libs/virtual-keyboard/1.23.5/languages/pt.min.js | JavaScript | mit | 857 |
/*
* LCD panel driver for Sharp LS037V7DW01
*
* Copyright (C) 2008 Nokia Corporation
* Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
*
* 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 F... | chaoling/test123 | linux-2.6.39/drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c | C | gpl-2.0 | 5,203 |
//******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | danielpunkass/WinObjC | Frameworks/include/CGColorSpaceInternal.h | C | mit | 1,016 |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
class ModuleDependencyTemplateAsRequireId {
apply(dep, source, outputOptions, requestShortener) {
if(!dep.range) return;
const comment = outputOptions.pathinfo ?
`/*! ${requestShortener... | shikun2014010800/manga | web/console/node_modules/webpack/lib/dependencies/ModuleDependencyTemplateAsRequireId.js | JavaScript | mit | 669 |
/*
* mm/truncate.c - code for taking down pages from address_spaces
*
* Copyright (C) 2002, Linus Torvalds
*
* 10Sep2002 Andrew Morton
* Initial version.
*/
#include <linux/kernel.h>
#include <linux/backing-dev.h>
#include <linux/mm.h>
#include <linux/swap.h>
#include <linux/module.h>
#include <linux/pagemap.h... | felixhaedicke/nst-kernel | src/mm/truncate.c | C | gpl-2.0 | 13,303 |
/**
* @author alteredq / http://alteredqualia.com/
*
* AudioObject
*
* - 3d spatialized sound with Doppler-shift effect
*
* - uses Audio API (currently supported in WebKit-based browsers)
* https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
*
* - based on Doppler effect demo from Chromium
... | thijskrooswijk/vis | threejs/AudioObject.js | JavaScript | mit | 4,794 |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_POWERPC_SECTIONS_H
#define _ASM_POWERPC_SECTIONS_H
#ifdef __KERNEL__
#include <linux/elf.h>
#include <linux/uaccess.h>
#define arch_is_kernel_initmem_freed arch_is_kernel_initmem_freed
#include <asm-generic/sections.h>
extern bool init_mem_is_free;
static inline ... | CSE3320/kernel-code | linux-5.8/arch/powerpc/include/asm/sections.h | C | gpl-2.0 | 2,472 |
/*! formstone v0.5.16 [tabs.css] 2015-05-21 | MIT License | formstone.it */
/**
* @class
* @name .fs-tabs-element
* @type element
* @description Target elmement
*/
/**
* @class
* @name .fs-tabs
* @type element
* @description Base widget class
*/
/**
* @class
* @name .fs-tabs.fs-tabs-enabled
*... | gregorypratt/jsdelivr | files/formstone/0.5.16/css/tabs.css | CSS | mit | 2,165 |
/*
* linux/arch/arm/kernel/signal.c
*
* Copyright (C) 1995-2009 Russell King
*
* 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.
*/
#include <linux/errno.h>
#include <linux/sig... | Carlstark/SAMA5D4-XULT | linux-at91-linux-3.10/arch/arm/kernel/signal.c | C | gpl-2.0 | 16,691 |
/*
* Backlight Driver for HP Jornada 680
*
* Copyright (c) 2005 Andriy Skulysh
*
* Based on Sharp's Corgi Backlight Driver
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/drivers/video/backlight/hp680_bl.c | C | gpl-2.0 | 4,175 |
[?php
require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorConfiguration.class.php');
require_once(dirname(__FILE__).'/../lib/Base<?php echo ucfirst($this->moduleName) ?>GeneratorHelper.class.php');
/**
* <?php echo $this->getModuleName() ?> actions.
*
* @package ##PROJEC... | monokal/docker-orangehrm | www/symfony/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/template/actions/actions.class.php | PHP | gpl-2.0 | 2,247 |
/*!
* tablesorter pager plugin
* updated 5/3/2012
*/
;(function($) {
$.extend({tablesorterPager: new function() {
this.defaults = {
// target the pager markup
container: null,
// use this format: "http:/mydatabase.com?page={page}&size={size}"
// where {page} is replaced by the page number and {size}... | Dervisevic/cdnjs | ajax/libs/jquery.tablesorter/2.2/addons/pager/jquery.tablesorter.pager.js | JavaScript | mit | 12,968 |
(function(definition) {
// RequireJS.
if (typeof define === 'function') {
define(definition);
// CommonJS and <script>.
} else {
definition();
}
})(function() {
'use strict';
var globall = (typeof global === 'undefined') ? window : global;
var global_isNaN = globall.isNaN;
var global_isFinite... | pcarrier/cdnjs | ajax/libs/es6-shim/0.1.0/es6-shim.js | JavaScript | mit | 6,147 |
<?php
/*
Plugin Name: Grunion Contact Form
Description: Add a contact form to any post, page or text widget. Emails will be sent to the post's author by default, or any email address you choose. As seen on WordPress.com.
Plugin URI: http://automattic.com/#
AUthor: Automattic, Inc.
Author URI: http://automattic.com/
... | cashmanbiz/rainbow | wp-content/plugins/jetpack/modules/contact-form/grunion-contact-form.php | PHP | gpl-2.0 | 66,028 |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not dis... | yxiong/xyMatlabUtils-release | xyCppUtils/ThirdParty/eigen/test/eigen2/eigen2_unalignedassert.cpp | C++ | mit | 2,638 |
/*
* Copyright (C) 2018 Advanced Micro Devices, Inc.
*
* 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, modi... | CSE3320/kernel-code | linux-5.8/drivers/gpu/drm/amd/include/asic_reg/mp/mp_11_0_offset.h | C | gpl-2.0 | 36,143 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\db\sqlite;
use yii\base\NotSupportedException;
use yii\db\Expression;
use yii\db\TableSchema;
use yii\db\ColumnSchema;
use yii\db\Transaction;
/**
* Sc... | Dareen/desyii2 | www/default/vendor/yiisoft/yii2/db/sqlite/Schema.php | PHP | mit | 10,034 |
#!/usr/bin/env perl
#
# ====================================================================
# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
# project. The module is, however, dual licensed under OpenSSL and
# CRYPTOGAMS licenses depending on where you obtain it. For further
# details see http://www.open... | teeple/pns_server | work/install/node-v0.10.25/deps/openssl/openssl/crypto/modes/asm/ghash-x86.pl | Perl | gpl-2.0 | 39,585 |
<!doctype html>
006-1
<script>
onpagehide = function() {
onpagehide = null;
setTimeout(function() {
parent.t.done()
}, 1000);
}
onload = function() {
if (!parent.loaded) {
parent.loaded = true;
setTimeout(parent.t.step_func(
function() {
location="006-2.html?" +... | youtube/cobalt | third_party/web_platform_tests/html/browsers/browsing-the-web/unloading-documents/unload/006-1.html | HTML | bsd-3-clause | 374 |
CC = $(CROSS_COMPILE)gcc
BUILD_FLAGS = -DKTEST
CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
LDFLAGS += -lrt -lpthread
# these are all "safe" tests that don't modify
# system time or require escalated privledges
TEST_PROGS = posix_timers nanosleep nsleep-lat set-timer-lat mqueue-lat \
inconsistency-check ... | jumpnow/linux | tools/testing/selftests/timers/Makefile | Makefile | gpl-2.0 | 955 |
/*
* Copyright (C) 2007
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 S... | lxl1140989/dmsdk | uboot/u-boot-dm6291/post/lib_powerpc/fpu/980619-1.c | C | gpl-2.0 | 1,471 |
/*--------------------------------------------------------------------------*/
/* FileName : Tcc353x_pal_tccspi.c */
/* Description : Interface Function */
/*--------------------------------------------------------------------------*/
... | blastagator/LGG2_Kernel | drivers/broadcast/oneseg/tcc3530/Tcc353xDriver/PAL/tcc353x_pal_tccspi.c | C | gpl-2.0 | 15,946 |
import baseGet from './_baseGet.js';
/**
* Gets the value at `path` of `object`. If the resolved value is
* `undefined`, the `defaultValue` is returned in its place.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path ... | MacroLin/practice | webpack+react(练习)/node_modules/.4.17.4@lodash-es/get.js | JavaScript | mit | 882 |
<?php
/*
* ACF Attachment Form Class
*
* All the logic for adding fields to attachments
*
* @class acf_form_attachment
* @package ACF
* @subpackage Forms
*/
if( ! class_exists('acf_form_attachment') ) :
class acf_form_attachment {
/*
* __construct
*
* This function will setup the class functionalit... | amirus2303/projet-test-gulp | wp-content/upgrade/Advanced.Custom.Fields.Pro_.v5.3.0/Advanced.Custom.Fields.Pro.v5.3.0/advanced-custom-fields-pro/forms/attachment.php | PHP | gpl-2.0 | 4,658 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 License, or
// (at your option) any later version.
//
// Moodle... | rafaelperazzo/ufca-web | moodle/mod/lesson/editpage_form.php | PHP | gpl-3.0 | 1,997 |
/* drivers/misc/lowmemorykiller.c
*
* The lowmemorykiller driver lets user-space specify a set of memory thresholds
* where processes with a range of oom_score_adj values will get killed. Specify
* the minimum oom_score_adj values in
* /sys/module/lowmemorykiller/parameters/adj and the number of free pages in
* /... | sktjdgns1189/android_kernel_kttech_s220 | drivers/staging/android/lowmemorykiller.c | C | gpl-2.0 | 5,605 |
/*
* Scalar fixed time AES core transform
*
* Copyright (C) 2017 Linaro Ltd <ard.biesheuvel@linaro.org>
*
* 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.
*/
#include <crypto/a... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/crypto/aes_ti.c | C | gpl-2.0 | 12,621 |
<?php
/**
* @package Joomla.Site
* @subpackage com_weblinks
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$class = ' class="first"';
if (count($this->items[... | laureduchemin/Tutorat-Informatique | tmp/td-okini-2/html/com_weblinks/categories/default_items.php | PHP | gpl-2.0 | 1,719 |
/* --------------------------------- SHS.CC ------------------------------- */
/*
* NIST proposed Secure Hash Standard.
*
* Written 2 September 1992, Peter C. Gutmann.
* This implementation placed in the public domain.
*
* Comments to pgut1@cs.aukuni.ac.nz
*/
// Force C++ compiler to use Java-style EH, so we ... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/libjava/gnu/gcj/io/shs.cc | C++ | gpl-2.0 | 8,681 |
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
# Add more helper methods to be used by all tests here...
end
| ywjno/bootstrap-timepicker-rails-addon | testapp/rails5/test/test_helper.rb | Ruby | mit | 212 |
/* bnx2x_sp.c: Broadcom Everest network driver.
*
* Copyright (c) 2011-2013 Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2, avail... | systemdaemon/systemd | src/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c | C | gpl-2.0 | 169,975 |
/* linux/arch/arm/mach-s5p64x0/include/mach/s5p64x0-clock.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Header file for s5p64x0 clock support
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ver... | JijonHyuni/HyperKernel-JB | virt/arch/arm/mach-s5p64x0/include/mach/s5p64x0-clock.h | C | gpl-2.0 | 1,596 |
#!/usr/bin/env node
'use strict';
var fs = require('fs');
var stdin = require('get-stdin');
var pkg = require('./package.json');
var stripIndent = require('./');
var argv = process.argv.slice(2);
var input = argv[0];
function help() {
console.log([
'',
' ' + pkg.description,
'',
' Usage',
' strip-inden... | yuyang545262477/Resume | 项目三jQueryMobile/node_modules/strip-indent/cli.js | JavaScript | mit | 823 |
/*
* Copyright 2008 Analog Devices Inc.
*
* Licensed under the GPL-2 or later
*/
#ifndef _BF518_IRQ_H_
#define _BF518_IRQ_H_
#include <mach-common/irq.h>
#define NR_PERI_INTS (2 * 32)
#define IRQ_PLL_WAKEUP BFIN_IRQ(0) /* PLL Wakeup Interrupt */
#define IRQ_DMA0_ERROR BFIN_IRQ(1) /* DMA Error 0 (generic) */
... | AiJiaZone/linux-4.0 | virt/arch/blackfin/mach-bf518/include/mach/irq.h | C | gpl-2.0 | 6,694 |
<?php
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +------... | heqiaoliu/Viral-Dark-Matter | tmp/install_4f209c9de9bf1/libraries/phpxmlrpc/compat/var_export.php | PHP | gpl-2.0 | 4,172 |
/**
* 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... | tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/util/TestCyclicIteration.java | Java | apache-2.0 | 2,331 |
"""
Generic relations
Generic relations let an object have a foreign key to any object through a
content-type/object-id field. A ``GenericForeignKey`` field can point to any
object, be it animal, vegetable, or mineral.
The canonical example is tags (although this example implementation is *far*
from complete).
"""
f... | megaumi/django | tests/generic_relations/models.py | Python | bsd-3-clause | 4,327 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Routing\Tests\Loader;
use Symfony\Component\Routing\L... | savez/presence-detector | ws/vendor/symfony/routing/Symfony/Component/Routing/Tests/Loader/AnnotationClassLoaderTest.php | PHP | gpl-2.0 | 2,200 |
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is great... | AusQB/ABInteriors | www/public_html/themes/third_party/freeform/fancybox/jquery.fancybox-1.3.4.js | JavaScript | apache-2.0 | 28,243 |
/*!
{
"name": "ES5 String.prototype.contains",
"property": "contains",
"authors": ["Robert Kowalski"],
"tags": ["es6"]
}
!*/
/* DOC
Check if browser implements ECMAScript 6 `String.prototype.contains` per specification.
*/
define(['Modernizr', 'is'], function(Modernizr, is) {
Modernizr.addTest('contains', is(... | CardiacAtlasProject/CAPServer2.0 | xpacs/src/main/webapp/bower_components/modernizr/feature-detects/es6/contains.js | JavaScript | apache-2.0 | 365 |
/*
* 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 later version.
*
* Robert Olsson <robert.olsson@its.uu.se> Uppsala U... | tohenk/android_kernel_samsung_smdk4x12 | net/ipv4/fib_trie.c | C | gpl-2.0 | 63,049 |
! { dg-do compile }
! { dg-options "-std=f95 -Wall" }
!
! PR fortran/34495
!
! Check for invalid Fortran 95 initialization expressions
!
program main
implicit none
real, parameter :: r1 = real(33) ! { dg-error "Fortran 2003: Function 'real' as initialization expression" }
real, parameter :: r2 = dble(33) !... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gfortran.dg/initialization_16.f90 | FORTRAN | gpl-2.0 | 758 |
program trivial
end
| SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gfortran.dg/debug/trivial.f | FORTRAN | gpl-2.0 | 32 |
/* { dg-do preprocess } */
/* { dg-options "-P -dU" } */
/* { dg-final { scan-file-not cmdlne-dU-23.i "__FILE__" } } */
#ifdef __FILE__
#endif
| SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/gcc.dg/cpp/cmdlne-dU-23.c | C | gpl-2.0 | 143 |
/*
* ALSA driver for the Aureal Vortex family of soundprocessors.
* Author: Manuel Jander (mjander@embedded.cl)
*
* This driver is the result of the OpenVortex Project from Savannah
* (savannah.nongnu.org/projects/openvortex). I would like to thank
* the developers of OpenVortex, Jeff Muizelaar and Kester Maddo... | prasidh09/cse506 | unionfs-3.10.y/sound/pci/au88x0/au88x0.c | C | gpl-2.0 | 9,956 |
DELETE FROM `spell_dbc` WHERE `id`=18350;
INSERT INTO `spell_dbc` (`id`,`Effect1`,`EffectImplicitTargetA1`,`Comment`) VALUES
(18350,3,1,'Soul Preserver trinket spell');
DELETE FROM `spell_script_names` WHERE `spell_id`=18350;
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(18350,'spell_gen_soul_pres... | Kirshan/ALiveCoreRC2 | sql/updates/world/2011_08_01_03_world_spell_misc.sql | SQL | gpl-2.0 | 329 |
<!doctype html>
<title>CodeMirror: ASCII Armor (PGP) mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="asciiarmor.js"></script>
<style>.CodeMirror {background: #f8f8f... | zhanglei13/zeppelin | zeppelin-client/src/asserts/codemirror-5.10/mode/asciiarmor/index.html | HTML | apache-2.0 | 1,289 |
/*
* leds-lm3533.c -- LM3533 LED driver
*
* Copyright (C) 2011-2012 Texas Instruments
*
* Author: Johan Hovold <jhovold@gmail.com>
*
* 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; e... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/drivers/leds/leds-lm3533.c | C | gpl-2.0 | 18,041 |
/**
* Handsontable 0.10.5
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Mar 31 2014 14:19:47 GMT+0200 (CEST)
*/
/*jsli... | eis4vn/eis4vn.github.io | src/handsontable/jquery.handsontable.js | JavaScript | gpl-3.0 | 421,284 |
///////////////////////////////////////////////////////////////////////////////
/// \file complex.hpp
///
// Copyright 2005 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_NUMERIC_FUN... | hpl1nk/nonamegame | xray/SDK/include/boost/accumulators/numeric/functional/complex.hpp | C++ | gpl-3.0 | 2,316 |
/*
* # Semantic UI
* https://github.com/Semantic-Org/Semantic-UI
* http://www.semantic-ui.com/
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Standard
*******************************/
/*--------------... | aranoah/seats-reservation-system | public/Semantic-UI-1.5.2/dist/components/menu.css | CSS | apache-2.0 | 31,971 |
/*
* Copyright 2011-2012, Meador Inge, Mentor Graphics Corporation.
*
* Some ideas based on un-pushed work done by Vivek Mahajan, Jason Jin, and
* Mingkai Hu from Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | prasidh09/cse506 | unionfs-3.10.y/arch/powerpc/sysdev/mpic_msgr.c | C | gpl-2.0 | 7,032 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Events - jQuery Mobile Demos</title>
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">... | bhabanism/Threatmeter | www/js/vendor/jquery.mobile-1.4.5/demos/page-events/alertevents-3.php | PHP | bsd-3-clause | 54,637 |
/*
* Copyright 2012-2014 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... | rokn/Count_Words_2015 | testing/spring-boot-master/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/method/InvalidMethodConfig.java | Java | mit | 1,186 |
/* Alpha VMS external format of Extended Global Symbol Directory.
Copyright 2010 Free Software Foundation, Inc.
Written by Tristan Gingold <gingold@adacore.com>, AdaCore.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
... | GarethNelson/Zoidberg | userland/newlib/include/vms/egsd.h | C | gpl-2.0 | 1,981 |
.highlight .hll { background-color: #ffc; }
.highlight .c { color: #999; } /* Comment */
.highlight .err { color: #a00; background-color: #faa } /* Error */
.highlight .k { color: #069; } /* Keyword */
.highlight .o { color: #555 } /* Operator */
.highlight .cm { color: #09f; font-style: italic } /* Comment.Multiline *... | danmiley/danmiley.github.io | www/public/css/syntax.css | CSS | mit | 3,479 |
#include <linux/i2c.h>
#include <linux/sii8240.h>
#include "../../video/edid.h"
struct sii8240_platform_data *platform_init_data(struct i2c_client *client);
/*
int platform_ap_hdmi_hdcp_auth(struct sii8240_data *sii8240);
void platform_mhl_hpd_handler(bool value);
bool platform_hdmi_hpd_status(void);
*/
| SM-G920P/G920P-MM | drivers/video/mhl/sii8240/sii8240_platform.h | C | gpl-2.0 | 307 |
<?php
/*
* $Id: Interface.php 3882 2008-02-22 18:11:35Z jwage $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED... | Althenar/library | www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php | PHP | gpl-3.0 | 1,914 |
/* Copyright (c) 2012, 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 the hope... | AOSP-JF/platform_kernel_samsung_jf | arch/arm/mach-msm/rpm-smd.c | C | gpl-2.0 | 24,854 |
/*
* Freescale MMA9553L Intelligent Pedometer driver
* Copyright (c) 2014, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This progra... | publicloudapp/csrutil | linux-4.3/drivers/iio/accel/mma9553.c | C | mit | 33,626 |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 BayLibre, SAS
* Author: Maxime Jourdan <mjourdan@baylibre.com>
*/
#include <media/v4l2-mem2mem.h>
#include <media/videobuf2-dma-contig.h>
#include "vdec_helpers.h"
#include "dos_regs.h"
#include "codec_h264.h"
#define SIZE_EXT_FW (20 * SZ_1K)
#define SI... | CSE3320/kernel-code | linux-5.8/drivers/staging/media/meson/vdec/codec_h264.c | C | gpl-2.0 | 15,177 |
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF lice... | painless-software/painless-continuous-delivery | {{cookiecutter.project_slug}}/_/frameworks/SpringBoot/mvnw.cmd | Batchfile | apache-2.0 | 6,608 |
YUI.add('oop', function(Y) {
/**
* Supplies object inheritance and manipulation utilities. This adds
* additional functionaity to what is provided in yui-base, and the
* methods are applied directly to the YUI instance. This module
* is required for most YUI components.
* @module oop
*/
var L = Y.Lang,
... | dryajov/cdnjs | ajax/libs/yui/3.1.2/oop/oop-debug.js | JavaScript | mit | 12,875 |
/*
* idprom.c: Routines to load the idprom into kernel addresses and
* interpret the data contained within.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au)
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include ... | talnoah/android_kernel_htc_dlx | virt/arch/m68k/sun3/idprom.c | C | gpl-2.0 | 4,541 |
/* $Id: t4.h,v 1.1.1.1 1999/07/27 21:50:27 mike Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that (i) th... | xbmc/atv2 | xbmc/lib/cximage-6.0/tiff/t4.h | C | gpl-2.0 | 11,289 |
from contextlib import contextmanager
from .termui import get_terminal_size
from .parser import split_opt
from ._compat import term_len
# Can force a width. This is used by the test system
FORCED_WIDTH = None
def measure_table(rows):
widths = {}
for row in rows:
for idx, col in enumerate(row):
... | wildchildyn/autism-website | yanni_env/lib/python3.6/site-packages/click/formatting.py | Python | gpl-3.0 | 8,889 |
/*
* Copyright (C) 2010 Francisco Jerez.
* All Rights Reserved.
*
* 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,... | prasidh09/cse506 | unionfs-3.10.y/drivers/gpu/drm/nouveau/core/subdev/fb/nv30.c | C | gpl-2.0 | 4,495 |
/*
* vivid-core.c - A Virtual Video Test Driver, core initialization
*
* Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
*
* This program is free software; you may redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwa... | systemdaemon/systemd | src/linux/drivers/media/platform/vivid/vivid-core.c | C | gpl-2.0 | 47,731 |
/*
* linux/drivers/mmc/core/sd_ops.h
*
* Copyright 2006-2007 Pierre Ossman
*
* 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 ... | JijonHyuni/HyperKernel-JB | virt/drivers/mmc/core/sd_ops.c | C | gpl-2.0 | 7,846 |
/* Copyright (c) 2011-2015, 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 the... | shakalaca/ASUS_ZenFone_ZE601KL | kernel/drivers/media/platform/msm/camera_v2/sensor/io/msm_camera_i2c.h | C | gpl-2.0 | 5,162 |
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU Genera... | 21zaber/Utils | wifi-fix/include/rtw_led.h | C | gpl-3.0 | 7,950 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.