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 |
|---|---|---|---|---|---|
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../../config/environment.rb", __FILE__)
require "rails/test_help"
Rails.backtrace_cleaner.remove_silencers!
| DouglasAllen/site-camping | vendor/gems/ruby/2.2.0/gems/mab-0.0.3/test/rails/test/helper.rb | Ruby | mit | 193 |
using namespace System;
using namespace NETGeographicLib;
int main(array<System::String ^> ^/*args*/)
{
try {
Geodesic^ geod = gcnew Geodesic(); // WGS84
const double lat0 = 48 + 50/60.0, lon0 = 2 + 20/60.0; // Paris
Gnomonic^ proj = gcnew Gnomonic(geod);
{
// Sample for... | JanEicken/MA | libs/GeographicLib-1.43/dotnet/examples/ManagedCPP/example-Gnomonic.cpp | C++ | mit | 986 |
(function () {
'use strict';
function ContentEditController($rootScope, $scope, $routeParams, $q, $timeout, $window, $location, appState, contentResource, entityResource, navigationService, notificationsService, angularHelper, serverValidationManager, contentEditingHelper, treeService, fileManager, formHelper, umb... | abryukhov/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/common/directives/components/content/edit.controller.js | JavaScript | mit | 13,245 |
<?php
defined('C5_EXECUTE') or die("Access Denied.");
Loader::controller('/profile/edit');
Loader::model('user_private_message');
class ProfileMessagesController extends ProfileEditController {
public function __construct() {
parent::__construct();
}
public function on_start() {
parent::on_start();
$this... | clejer/concrete_ | concrete/controllers/profile/messages.php | PHP | mit | 5,679 |
#!/usr/bin/python
# coding=utf-8
################################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from mock import Mock
from mock import patch
try:
from cStringIO import StringIO
StringIO # work... | datafiniti/Diamond | src/collectors/filestat/test/testfilestat.py | Python | mit | 1,903 |
var tns = (function (){
// keys
if (!Object.keys) {
Object.keys = function (object) {
var keys = [];
for (var name in object) {
if (Object.prototype.hasOwnProperty.call(object, name)) {
keys.push(name);
}
}
return keys;
};
}
// ChildNode.r... | jonobr1/cdnjs | ajax/libs/tiny-slider/2.7.3/tiny-slider.js | JavaScript | mit | 89,288 |
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Package\Archiver;
use Symfony\C... | minhnguyen-balance/oro_platform | vendor/composer/composer/src/Composer/Package/Archiver/BaseExcludeFilter.php | PHP | mit | 3,939 |
function dec(target, name, descriptor) {
assert(target);
assert.equal(typeof name, "string");
assert.equal(typeof descriptor, "object");
target.decoratedProps = (target.decoratedProps || []).concat([name]);
let value = descriptor.value;
Object.assign(descriptor, {
enumerable: name.indexOf("enum") !== ... | ccschneidr/babel | packages/babel-plugin-transform-decorators/test/fixtures/object-methods/mutate-descriptor/exec.js | JavaScript | mit | 2,375 |
import chainer
from chainer import backend
from chainer import utils
def sign(x):
"""Elementwise sign function.
For a given input :math:`x`, this function returns :math:`sgn(x)`
defined as
.. math::
sgn(x) = \\left \\{ \\begin{array}{cc}
-1 & {\\rm if~x < 0} \\\\
0 & {\\rm i... | okuta/chainer | chainer/functions/math/sign.py | Python | mit | 893 |
require "acts-as-taggable-on"
require "calagator/tag_model_extensions"
ActsAsTaggableOn::Tag.send :include, Calagator::TagModelExtensions
| kerrizor/calagator | config/initializers/load_tag_model_extensions.rb | Ruby | mit | 138 |
/*
Language: Lisp
Description: Generic lisp syntax
Author: Vasily Polovnyov <vast@whiteants.net>
Category: lisp
*/
function lisp(hljs) {
var LISP_IDENT_RE = '[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*';
var MEC_RE = '\\|[^]*?\\|';
var LISP_SIMPLE_NUMBER_RE = '(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|... | ealbertos/dotfiles | vscode.symlink/extensions/bierner.markdown-preview-github-styles-0.2.0/node_modules/highlight.js/lib/languages/lisp.js | JavaScript | mit | 2,398 |
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
*
* Copyright 2008-2016 Freescale Semiconductor Inc.
* Copyright 2016,2019 NXP
*/
#ifndef __RTA_STORE_CMD_H__
#define __RTA_STORE_CMD_H__
extern enum rta_sec_era rta_sec_era;
static const uint32_t store_src_table[][2] = {
/*1*/ { KEY1SZ, LDST_CLASS_1_CC... | john-mcnamara-intel/dpdk | drivers/common/dpaax/caamflib/rta/store_cmd.h | C | mit | 5,412 |
/*!
* OOUI v0.27.2
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2018-06-06T16:16:14Z
*/
/**
* WikimediaUI Base v0.10.0
* Wikimedia Foundation user interface base variables
*/
.oo-ui-to... | joeyparrish/cdnjs | ajax/libs/oojs-ui/0.27.2/oojs-ui-toolbars-wikimediaui.css | CSS | mit | 19,286 |
define(
//begin v1.x content
{
"field-quarter-short-relative+0": "detta kv.",
"field-quarter-short-relative+1": "nästa kv.",
"field-tue-relative+-1": "tisdag förra veckan",
"field-year": "år",
"field-wed-relative+0": "onsdag denna vecka",
"field-wed-relative+1": "onsdag nästa vecka",
"field-minute": "minut",
"f... | cdnjs/cdnjs | ajax/libs/dojo/1.17.1/cldr/nls/sv/dangi.js | JavaScript | mit | 7,152 |
/**
* Copyright (c) 2010-2019 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | afuechsel/openhab2 | addons/binding/org.openhab.binding.dsmr/src/main/java/org/openhab/binding/dsmr/internal/device/DSMRSerialAutoDevice.java | Java | epl-1.0 | 9,975 |
/**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | johannrichard/openhab2-addons | addons/binding/org.openhab.binding.yamahareceiver/src/main/java/org/openhab/binding/yamahareceiver/internal/state/ZoneControlState.java | Java | epl-1.0 | 1,158 |
/**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | aogorek/openhab2-addons | addons/binding/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcMessageBase.java | Java | epl-1.0 | 1,148 |
/*
*/
#include <linux/init.h>
#include <linux/cache.h>
#include <linux/sched.h>
#include <lin... | holyangel/LGE_G3 | arch/alpha/kernel/irq_i8259.c | C | gpl-2.0 | 3,962 |
/*
* (C) Copyright IBM Deutschland Entwicklung GmbH 2006
*
* Author: Maxim Shchetynin <maxim@de.ibm.com>
*
* Axon DDR2 device driver.
* It registers one block device per Axon's DDR2 memory bank found on a system.
* Block devices are called axonram?, their major and minor numbers are
* available in /proc/devices... | curbthepain/revkernel_us990 | arch/powerpc/sysdev/axonram.c | C | gpl-2.0 | 9,433 |
/*
* Copyright (C) 2012-2013 JadeCore <http://www.pandashan.com/>
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the ... | DeActiveDev/Core | src/server/scripts/Pandaria/HeartOfFear/boss_unsok.cpp | C++ | gpl-2.0 | 1,576 |
// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "Core/HW/SI/SI_DeviceKeyboard.h"
#include <cstring>
#include "Common/ChunkFile.h"
#include "Common/CommonTypes.h"
#include "Common/Logging/Log.h"
#include "Common/Swap.h"
#include "Core/HW/GCKeyboa... | TwitchPlaysPokemon/dolphinWatch | Source/Core/Core/HW/SI/SI_DeviceKeyboard.cpp | C++ | gpl-2.0 | 13,504 |
// SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/ext4/namei.c
*
* Copyright (C) 1992, 1993, 1994, 1995
* Remy Card (card@masi.ibp.fr)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et Marie Curie (Paris VI)
*
* from
*
* linux/fs/minix/namei.c
*
* Copyright (C) 1991, 1992 Linus Torvald... | val2k/linux | fs/ext4/namei.c | C | gpl-2.0 | 104,545 |
<?php
if (!get_option('users_can_register')) return;
add_action('login_enqueue_scripts','sfc_register_enqueue_scripts');
function sfc_register_enqueue_scripts() {
wp_enqueue_script('jquery');
}
add_action('sfc_login_new_fb_user', 'sfc_register_redirect');
function sfc_register_redirect() {
wp_redirect(s... | tahitinuiarena/site | wp-content/plugins/simple-facebook-connect/sfc-register.php | PHP | gpl-2.0 | 3,192 |
<?php
namespace Illuminate\Queue\Console;
use Exception;
use RuntimeException;
use Illuminate\Queue\IronQueue;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
/**
* @deprecated since version 5.1
*/
class SubscribeCommand extends Co... | SalocinDotTEN/FindRecycler-AHKL15 | vendor/laravel/framework/src/Illuminate/Queue/Console/SubscribeCommand.php | PHP | gpl-2.0 | 3,476 |
/**********************************************************************\
* gnc-tree-view-account.h -- GtkTreeView implementation to display *
* accounts in a GtkTreeView. *
* Copyright (C) 2003,2005,2006 David Hampton <hampton@employees.org> *
* ... | muehlburger/gnucash | gnucash/gnome-utils/gnc-tree-view-account.h | C | gpl-2.0 | 20,464 |
/**
* @package AcyMailing for Joomla!
* @version 4.8.1
* @author acyba.com
* @copyright (C) 2009-2014 ACYBA S.A.R.L. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
@import url("module_default_radial_black.css");
.acymailing_module .inputbox:hover{
border:... | marcialsoto/cienciactiva | media/com_acymailing/css/module_default_radial_blue.css | CSS | gpl-2.0 | 2,751 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Qt 4.4: Draggable Icons Example</title>
<link href="classic.css" rel="stylesheet" type="text/css" />
</h... | radekp/qtmoko | doc/html/draganddrop-draggableicons.html | HTML | gpl-2.0 | 6,846 |
<?php
$lang = array(
#Texts
'text_puke' => "Puke",
'text_nfofor' => "NFO for ",
'text_forbest' => "For best visual result, install the ",
'text_linedraw' => "MS Linedraw",
'text_font' => " font",
'text_stdhead' => "View Nfo"
);
?>
| TTsWeb/U-232-V4 | lang/2/lang_viewnfo.php | PHP | gpl-2.0 | 237 |
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* 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 ... | YouDiSN/OpenJDK-Research | jdk9/hotspot/src/share/vm/adlc/main.cpp | C++ | gpl-2.0 | 21,875 |
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* 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 Softwa... | YouDiSN/OpenJDK-Research | jdk9/jdk/test/sun/tools/jhsdb/HeapDumpTest.java | Java | gpl-2.0 | 4,479 |
/*****************************************************************************
* $Id: hash.h 2950 2005-01-18 20:09:32Z dun $
*****************************************************************************
* Copyright (C) 2003-2005 The Regents of the University of California.
* Produced at Lawrence Livermore Nation... | garlick/gpib-utils | liblsd/hash.h | C | gpl-2.0 | 7,009 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Manager of RPC calls from plugins.
"""
from golismero.api.config import Config
__license__ = """
GoLismero 2.0 - The web knife - Copyright (C) 2011-2014
Golismero project site: https://github.com/golismero
Golismero project mail: contact@golismero-project.com
This p... | golismero/golismero | golismero/managers/rpcmanager.py | Python | gpl-2.0 | 10,792 |
/*
comedi/drivers/ni_labpc.c
Driver for National Instruments Lab-PC series boards and compatibles
Copyright (C) 2001, 2002, 2003 Frank Mori Hess <fmhess@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License a... | holyangel/LGE_G3 | drivers/staging/comedi/drivers/ni_labpc.c | C | gpl-2.0 | 62,708 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Qt 4.4: Main Window</title>
<link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
... | librelab/qtmoko-test | doc/html/demos-mainwindow.html | HTML | gpl-2.0 | 2,720 |
using System;
namespace Server.Items
{
[Flipable( 0xC12, 0xC13 )]
public class BrokenArmoireComponent : AddonComponent
{
public override int LabelNumber { get { return 1076262; } } // Broken Armoire
public BrokenArmoireComponent() : base( 0xC12 )
{
}
public BrokenArmoireComponent( Serial serial ) : base... | jackuoll/Pre-AOS-RunUO | Scripts/Items/Special/Broken Furniture Collection/BrokenArmoire.cs | C# | gpl-2.0 | 1,896 |
/**********************************************************************
Audacity: A Digital Audio Editor
ExpandingToolBar.cpp
Dominic Mazzoni
*******************************************************************//**
\class ExpandingToolBar
\brief A smart ToolBar class that has a "MainPanel" which is always
d... | oneminot/audacity | src/widgets/ExpandingToolBar.cpp | C++ | gpl-2.0 | 33,841 |
<?php
/**
* TestLink Open Source Project - http://testlink.sourceforge.net/
* This script is distributed under the GNU General Public License 2 or later.
*
* Filename $RCSfile: reqExport.php,v $
*
* @version $Revision: 1.10 $
* @modified $Date: 2010/03/21 19:28:34 $ by $Author: franciscom $
*
* Allows users to... | qasourceinc/TestLink_1.9.5_QASourceContribution | lib/requirements/reqExport.php | PHP | gpl-2.0 | 4,583 |
/* Basic IPA utilities for type inheritance graph construction and
devirtualization.
Copyright (C) 2013-2015 Free Software Foundation, Inc.
Contributed by Jan Hubicka
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as ... | nguyentu1602/gcc | gcc/ipa-devirt.c | C | gpl-2.0 | 126,410 |
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it ... | erpcya/adempierePOS | base/src/org/compiere/model/MInOutLineMA.java | Java | gpl-2.0 | 4,940 |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | jcarlson23/lammps | src/KSPACE/pair_lj_charmm_coul_msm.h | C | gpl-2.0 | 2,192 |
#include "conf.h"
int *video_quality = &conf.video_quality;
int *video_mode = &conf.video_mode;
long def_table1[9]={0x2000,0x38D,0x788,0x5800,0x9C5,0x14B8,0x10000,0x1C6A,0x3C45};
long def_table2[9]={0x1CCD,-0x2E1,-0x579,0x4F33,-0x7EB,-0xF0C,0xE666,-0x170A,-0x2BC6};
long table1[9], table2[9];
void change_video_ta... | arne182/chdk-eyefi | platform/a700/sub/100b/movie_rec.c | C | gpl-2.0 | 37,022 |
<?php
/**
* base class to choose the language
*
* @since 1.2
*/
abstract class PLL_Choose_Lang {
public $links_model, $model, $options;
public $curlang;
/**
* constructor
*
* @since 1.2
*
* @param object $polylang
*/
public function __construct( &$polylang ) {
$this->links_model = &$polylang->li... | petersondrs/interage-consultoria | wp-content/plugins/polylang/frontend/choose-lang.php | PHP | gpl-2.0 | 10,845 |
// -*- C++ -*-
// Copyright (C) 2005-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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... | mickael-guene/gcc | libstdc++-v3/testsuite/util/native_type/native_tree_tag.hpp | C++ | gpl-2.0 | 1,637 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* NetworkManager -- Network link manager
*
* 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 th... | heftig/NetworkManager | src/firewall-manager/nm-firewall-manager.h | C | gpl-2.0 | 3,094 |
#include <lwk/types.h>
long
sys_getgroups(int n, gid_t gids[])
{
return 0;
}
| jnouyang/kitten | kernel/linux_syscalls/getgroups.c | C | gpl-2.0 | 79 |
// license:BSD-3-Clause
// copyright-holders:Bryan McPhail
/***************************************************************************
Desert Assault Video emulation - Bryan McPhail, mish@tendril.co.uk
I'm not sure if one of the alpha blending effects is correct (mode 0x8000,
the usual mode 0x4000 should be c... | GiuseppeGorgoglione/mame | src/mame/video/dassault.cpp | C++ | gpl-2.0 | 5,152 |
// { dg-do run { target c++11 } }
// 2007-10-12 Paolo Carlini <pcarlini@suse.de>
//
// Copyright (C) 2007-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public Li... | mickael-guene/gcc | libstdc++-v3/testsuite/25_algorithms/is_heap/1.cc | C++ | gpl-2.0 | 1,437 |
/*
$Id: sdt.h,v 1.5 2006/01/02 18:24:24 rasc Exp $
DVBSNOOP
a dvb sniffer and mpeg2 stream analyzer tool
http://dvbsnoop.sourceforge.net/
(c) 2001-2006 Rainer.Scherg@gmx.de (rasc)
*/
void section_SDT (u_char *b, int len);
| a4tunado/dvbsnoop | src/sections/sdt.h | C | gpl-2.0 | 239 |
/*
* Copyright (C) 2010-2015 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
*
* A ... | kszaq/linux-amlogic | drivers/amlogic/gpu/ump/linux/ump_ukk_wrappers.c | C | gpl-2.0 | 7,996 |
/***************************************************************************
tag: Peter Soetens Wed Apr 17 16:01:31 CEST 2002 TimerThread.cpp
TimerThread.cpp - description
-------------------
begin : Wed April 17 2002
copyright : (C) ... | shyamalschandra/rtt | rtt/extras/TimerThread.cpp | C++ | gpl-2.0 | 7,933 |
/* Copyright (c) 2011-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... | androidrbox/android_kernel_amazon_bueller | drivers/media/video/msm/csi/msm_ispif.c | C | gpl-2.0 | 25,457 |
/*
* #%L
* Bio-Formats Plugins for ImageJ: a collection of ImageJ plugins including the
* Bio-Formats Importer, Bio-Formats Exporter, Bio-Formats Macro Extensions,
* Data Browser and Stack Slicer.
* %%
* Copyright (C) 2006 - 2015 Open Microscopy Environment:
* - Board of Regents of the University of Wisconsin-... | dgault/bioformats | components/bio-formats-plugins/src/loci/plugins/util/WindowTools.java | Java | gpl-2.0 | 6,353 |
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or dis... | rimistri/mediatek | mt6732/mediatek/platform/mt6752/lk/include/platform/mtk_wdt.h | C | gpl-2.0 | 5,400 |
/****************************************************************************
**
** This file is part of the Qt Extended Opensource Package.
**
** Copyright (C) 2009 Trolltech ASA.
**
** Contact: Qt Extended Information (info@qtextended.org)
**
** This file may be used under the terms of the GNU General Public License
... | liuyanghejerry/qtextended | src/plugins/drmagent/bscidrmagent/bscidrmcontentplugin.h | C | gpl-2.0 | 4,944 |
/*
* (C) Copyright IBM Corporation 2004, 2005
* 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 t... | TurboVNC/turbovnc | unix/Xvnc/extras/Mesa/src/glx/indirect_vertex_array_priv.h | C | gpl-2.0 | 9,350 |
# test2
test2
| monilitocastro/test2 | deletethis.md | Markdown | gpl-2.0 | 14 |
/* Copyright (C) 2000-2006 MySQL AB
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 in the hope that it will be useful,
but WITHO... | ottok/mariadb-galera-10.0 | storage/heap/_check.c | C | gpl-2.0 | 5,942 |
<?php
/**
* @package Joomla.Administrator
* @subpackage Template.hathor
*
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$listOrder = $this->escape($this->state->get('list.... | zero-24/joomla-cms | administrator/templates/hathor/html/com_cache/cache/default.php | PHP | gpl-2.0 | 3,019 |
/****************************************************************************
*
* Copyright (c) DiBcom SA. All rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES ... | fefifofum/android_kernel_bq_maxwell2plus_3.0.8 | drivers/media/dvb/rkdtv/DIBCom1009XH/Bridge/Common/Dragonfly/DibBridgeDragonfly.c | C | gpl-2.0 | 39,664 |
jQuery.fn.nextInArray = function(element) {
var nextId = 0;
for(var i = 0; i < this.length; i++) {
if(this[i] == element) {
nextId = i + 1;
break;
}
}
if(nextId > this.length-1)
nextId = 0;
return this[nextId];
};
jQuery.fn.clearForm = function() {
re... | nikakoss/arsenal-media.net | wp-content/plugins/google-maps-ready/js/common.js | JavaScript | gpl-2.0 | 12,013 |
/*
mxb - v4l2 driver for the Multimedia eXtension Board
Copyright (C) 1998-2003 Michael Hunold <michael@mihu.de>
Visit http://www.mihu.de/linux/saa7146/mxb/
for further details about this card.
This program is free software; you can redistribute it and/or modify
it under the terms of ... | ipwndev/DSLinux-Mirror | linux-2.6.x/drivers/media/video/mxb.c | C | gpl-2.0 | 30,749 |
<?php
namespace Drupal\yamlform\Tests;
/**
* Tests for form block.
*
* @group YamlForm
*/
class YamlFormBlockTest extends YamlFormTestBase {
/**
* Tests form block.
*/
public function testBlock() {
// Place block.
$block = $this->drupalPlaceBlock('yamlform_block');
// Check contact form.
... | dbethala/longwood-volunteers | modules/yamlform/src/Tests/YamlFormBlockTest.php | PHP | gpl-2.0 | 1,363 |
/*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* Fil... | jonathonfigueroa/calendarinfusion_3.0b1 | public/scripts/fckeditor/editor/dialog/fck_universalkey/fck_universalkey.css | CSS | gpl-2.0 | 1,040 |
<?php
namespace Drupal\KernelTests\Core\Test;
use Drupal\FunctionalTests\BrowserMissingDependentModuleMethodTest;
use Drupal\FunctionalTests\BrowserMissingDependentModuleTest;
use Drupal\KernelTests\KernelTestBase;
use PHPUnit\Framework\SkippedTestError;
/**
* @group Test
* @group FunctionalTests
*
* @coversDefa... | tobiasbuhrer/tobiasb | web/core/tests/Drupal/KernelTests/Core/Test/BrowserTestBaseTest.php | PHP | gpl-2.0 | 2,447 |
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Http;
defined('JPATH_PLATFORM') or die;
use Joomla\Registry\Registry;
use Joomla\CMS\Uri\... | zero-24/joomla-cms | libraries/src/Http/TransportInterface.php | PHP | gpl-2.0 | 1,521 |
/* Target-dependent code for GNU/Linux, architecture independent.
Copyright (C) 2009-2015 Free Software Foundation, Inc.
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... | npe9/binutils-gdb | gdb/linux-tdep.h | C | gpl-2.0 | 1,705 |
/**
* @file
* Packet buffer management
*
* Packets are built from the pbuf data structure. It supports dynamic
* memory allocation for packet contents or can reference externally
* managed packet contents both in RAM and ROM. Quick allocation for
* incoming packets is provided through pools with fixed sized pbuf... | jnouyang/kitten | net/pbuf.c | C | gpl-2.0 | 39,009 |
/*
*/
/*
* Copyright (C) 2000 - 2011, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binar... | holyangel/LGE_G3 | include/acpi/acoutput.h | C | gpl-2.0 | 11,379 |
/*
LUFA Library
Copyright (C) Dean Camera, 2014.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purp... | ruriwo/ErgoThumb072_firmware | tmk_core/protocol/lufa/LUFA-git/Demos/Device/LowLevel/MassStorage/Lib/DataflashManager.c | C | gpl-2.0 | 19,637 |
/*
* Renesas SuperH DMA Engine support
*
* base is drivers/dma/flsdma.c
*
* Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
* Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved.
* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved.
*
* This is free software; y... | aicjofs/android_kernel_lge_v500_stock | drivers/dma/shdma.c | C | gpl-2.0 | 39,306 |
/*
* Core maple bus functionality
*
* Copyright (C) 2007 - 2009 Adrian McMenamin
* Copyright (C) 2001 - 2008 Paul Mundt
* Copyright (C) 2000 - 2001 YAEGASHI Takeshi
* Copyright (C) 2001 M. R. Brown
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPY... | holyangel/LGE_G3 | drivers/sh/maple/maple.c | C | gpl-2.0 | 21,950 |
/*
* OMAP5 thermal driver.
*
* Copyright (C) 2011-2012 Texas Instruments Inc.
* Contact:
* Eduardo Valentin <eduardo.valentin@ti.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and ... | bsmitty83/kernel_omap | drivers/thermal/omap5-bg-sen-data.c | C | gpl-2.0 | 13,846 |
// Copyright (C) 2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your option)... | xinchoubiology/gcc | libstdc++-v3/testsuite/performance/28_regex/range.cc | C++ | gpl-2.0 | 1,349 |
/* Copyright (c) 2014-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... | jcadduono/android_kernel_lge_msm8996 | drivers/media/platform/msm/camera_v2/sensor/iris/msm_iris.h | C | gpl-2.0 | 1,746 |
/*
* linux/fs/ext4/xattr.c
*
* Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
*
* Fix by Harrison Xing <harrison@mountainviewdata.com>.
* Ext4 code with a lot of help from Eric Jarman <ejarman@acm.org>.
* Extended attributes for symlinks and special files added per
* suggestion of Luka Renko <lu... | davidmueller13/AK-Flo | fs/ext4/xattr.c | C | gpl-2.0 | 43,253 |
/*
* SuperH interrupt controller module
*
* Copyright (c) 2007 Magnus Damm
* Based on sh_timer.c and arm_timer.c by Paul Brook
* Copyright (c) 2005-2006 CodeSourcery.
*
* This code is licensed under the GPL.
*/
#include "sh_intc.h"
#include "hw.h"
#include "sh.h"
//#define DEBUG_INTC
//#define DEBUG_INTC_SOUR... | SSLab-NTHU/qemu-guest-armvisor | hw/sh_intc.c | C | gpl-2.0 | 12,189 |
/*
* array.h - useful array handling header
*
* Copyright © 2009 Julien Danjou <julien@danjou.info>
* Copyright © 2008 Pierre Habouzit <madcoder@debian.org>
*
* 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 ... | Asido/AwesomeWM | common/array.h | C | gpl-2.0 | 8,691 |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Preview;
use Twilio\Domain;
use Twilio\Exceptions\TwilioException;
use Twilio\Rest\Preview\HostedNumbers\HostedNumberOrderList;
use Twilio\Version;
/**
* @property \Twilio\Rest\P... | Haynie-Research-and-Development/jarvis | web/webapi/sms/vendor/twilio/sdk/Twilio/Rest/Preview/HostedNumbers.php | PHP | gpl-2.0 | 2,570 |
<?php
/* pluginbuddy_ui class
*
* Handles typical user interface items used in WordPress development.
*
* @author Dustin Bolton
* @version 1.0.0
*/
class pb_backupbuddy_ui {
private $_tab_interface_tag = '';
/* pluginbuddy_ui->start_metabox()
*
* Starts a metabox. Use with end_metabox().
* @see... | ghostego/viscom-new | wp-content/plugins/backupbuddy/pluginbuddy/classes/ui.php | PHP | gpl-2.0 | 24,642 |
/*
* Copyright (C) 2008 Analog Devices Inc.
* Licensed under the GPL-2 or later.
*/
#ifndef _MACH_GPIO_H_
#define _MACH_GPIO_H_
#define MAX_BLACKFIN_GPIOS 48
#define GPIO_PF0 0
#define GPIO_PF1 1
#define GPIO_PF2 2
#define GPIO_PF3 3
#define GPIO_PF4 4
#define GPIO_PF5 5
#define GPIO_PF6 6
#define GPIO_PF7 7
#de... | holyangel/LGE_G3 | arch/blackfin/mach-bf561/include/mach/gpio.h | C | gpl-2.0 | 1,299 |
/* dsdefs.h
*
* This is a "dummy" version of stdio.h etc. for systems which lack one.
* Rename it is stdio.h if needed.
*
* Functions printf() and sprintf() are defined here, but neither
* of them do anything useful.
*
* Version 1.2 Dag Bruck
* 1.3 Dag Bruck Updated for DYMOLA_DSPACE.
*
* Copyrigh... | SmarTS-Lab/iTesla_RaPId | Examples/line_equivalent/FMU/~FMUOutput/sources/dsdefs.h | C | gpl-3.0 | 991 |
""" Encoding Aliases Support
This module is used by the encodings package search function to
map encodings names to module names.
Note that the search function converts the encoding names to lower
case and replaces hyphens with underscores *before* performing the
lookup.
"""
aliases = {
# La... | remybaranx/qtaste | tools/jython/lib/Lib/encodings/aliases.py | Python | gpl-3.0 | 2,790 |
<?php
require_once "$CFG->dirroot/lib/formslib.php";
require_once "$CFG->dirroot/mod/facetoface/lib.php";
class mod_facetoface_sitenotice_form extends moodleform {
function definition()
{
$mform =& $this->_form;
$mform->addElement('header', 'general', get_string('general', 'form'));
... | mynameisdongyoung/Face-to-Face2.0 | sitenotice_form.php | PHP | gpl-3.0 | 1,228 |
/*******************************************************************************
* You may amend and distribute as you like, but don't remove this header!
*
* EPPlus provides server-side generation of Excel 2007/2010 spreadsheets.
* See http://www.codeplex.com/EPPlus for details.
*
* Copyright (C) 2011 Jan Käll... | wtsi-swat/eq_exporter | epplus_90cfd9a3a979/EPPlus/ConditionalFormatting/Rules/ExcelConditionalFormattingTop.cs | C# | gpl-3.0 | 4,023 |
<?php
//============================================================+
// File name : example_052.php
// Begin : 2009-05-07
// Last Update : 2009-09-30
//
// Description : Example 052 for TCPDF class
// Certification Signature (experimental)
//
// Author: Nicola Asuni
//
// (c) Copyright:
// ... | mfandrade/siac | vendors/tcpdf/examples/example_052.php | PHP | gpl-3.0 | 3,586 |
// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -Wno-signed-unsigned-wchar -verify=allow-signed -DSKIP_ERROR_TESTS %s
// allow-signed-no-diagnostics
wchar_t x;
void f(wchar_t p) {
wchar_t x;
unsigned wchar_t y; // expected-error {{'wchar_t' cannot be signed or unsigned}}
signed wchar... | sabel83/metashell | 3rd/templight/clang/test/SemaCXX/wchar_t.cpp | C++ | gpl-3.0 | 1,004 |
<!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">
<HEAD >
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>unixODBC</TITLE>
<META NAME="generator" CONTENT="SlickEdit">
<!... | TextusData/Mover | thirdparty/unixODBC-2.3.1/doc/index.html | HTML | gpl-3.0 | 8,359 |
var Deferred = require('./')
var assert = require('assert')
var d = new Deferred()
var t = require('tap')
t.match(d, {
resolve: Function,
reject: Function,
promise: Object
})
| gerrytucker78/emse_capstone_project | services/node_modules/nodeunit/node_modules/tap/node_modules/trivial-deferred/test.js | JavaScript | gpl-3.0 | 181 |
<?php
/**
* The template for displaying product widget entries.
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-widget-reviews.php
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your them... | Ninos/woocommerce | templates/content-widget-reviews.php | PHP | gpl-3.0 | 1,305 |
/**
* Aptana Studio
* Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
* Please see the license.html included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
... | HossainKhademian/Studio3 | plugins/com.aptana.core/src/com/aptana/core/internal/resources/Messages.java | Java | gpl-3.0 | 969 |
/* radare2 - LGPL - Copyright 2017 - condret */
#include <r_util.h>
#include <r_types.h>
ut32 get_msb(ut32 v) {
int i;
for (i = 31; i > (-1); i--) {
if (v & (0x1 << i)) {
return (v & (0x1 << i));
}
}
return 0;
}
R_API RIDPool* r_id_pool_new(ut32 start_id, ut32 last_id) {
RIDPool* pool = NULL;
if (start_... | Maijin/radare2 | libr/util/idpool.c | C | gpl-3.0 | 4,681 |
url: http://sanskrit.inria.fr/cgi-bin/SKT/sktreader?t=VH;lex=SH;cache=f;st=t;us=f;cp=t;text=tathaastu;topic=;abs=f;allSol=2;mode=p;cpts=<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>Sanskrit Reader Companion</title>
<meta name="author" content="Gérard Huet">
<meta property="dc:datecopyrighted" content... | sanskritiitd/sanskrit | uohCorpus.fil/uoh/uoh.filteredcorpus.txt_output/upamiti-3_ext.txt.out.dict_16534_inr.html | HTML | gpl-3.0 | 3,697 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* 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 License, or
* (at your option) any later version.
*
* ... | Lobz/reforged-pixel-dungeon | src/com/shatteredpixel/shatteredpixeldungeon/scenes/InterlevelScene.java | Java | gpl-3.0 | 7,657 |
-- predictability
SET synchronous_commit = on;
DROP TABLE IF EXISTS replication_example;
SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding');
CREATE TABLE replication_example(id SERIAL PRIMARY KEY, somedata int, text varchar(120));
INSERT INTO replication_example(somedata) VALUES... | Postgres-XL/Postgres-XL | contrib/test_decoding/sql/rewrite.sql | SQL | mpl-2.0 | 1,989 |
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
#... | ddrmanxbxfr/servo | python/servo/bootstrap_commands.py | Python | mpl-2.0 | 14,058 |
/* TL.Point
Inspired by Leaflet
TL.Point represents a point with x and y coordinates.
================================================== */
TL.Point = function (/*Number*/ x, /*Number*/ y, /*Boolean*/ round) {
this.x = (round ? Math.round(x) : x);
this.y = (round ? Math.round(y) : y);
};
TL.Point.prototype = {
a... | tkandala/TimelineJS3 | source/js/dom/TL.Point.js | JavaScript | mpl-2.0 | 1,360 |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SE... | jazkarta/edx-platform-for-isc | common/test/db_cache/bok_choy_schema.sql | SQL | agpl-3.0 | 138,342 |
// Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package model_test
import (
"errors"
gc "gopkg.in/check.v1"
"gopkg.in/juju/names.v2"
"github.com/juju/juju/api"
jujucloud "github.com/juju/juju/cloud"
"github.com/juju/juju/environs/config"
"github.com/juju/juju/test... | gabriel-samfira/juju | cmd/juju/model/fakeenv_test.go | GO | agpl-3.0 | 4,463 |
<?php return array(
'field workspace description' => '説明',
'workspace description' => 'ワークスペースの説明',
'add new workspace' => '新しいワークスペースを追加',
'add your first workspace' => '最初のワークスペースを追加',
'you have no workspaces yet' => 'まだワークスペースがありません',
'filter by workspaces' => 'ワークスペースで絞り込み',
'filter by tags' => 'タグで絞り込み',
);... | md11235/fengoffice | plugins/workspaces/language/ja_jp/lang.php | PHP | agpl-3.0 | 468 |
#!/bin/sh
# Copyright (c) 2015, 2016 Sébastien Combéfis, Virginie Van den Schrieck
# 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... | UCL-INGI/Informatique-1 | old_pythia/88_java/run.sh | Shell | agpl-3.0 | 959 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.