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 |
|---|---|---|---|---|---|
public class Test {
public int anObject;
public void method() {
}
}
public class Test1 extends Test {
public void method() {
System.out.println(<selection>1 + 2</selection>);
System.out.println(anObject);
}
} | consulo/consulo-groovy | testdata/refactoring/introduceParameter/conflictingField/ConflictingFieldMyClass.java | Java | apache-2.0 | 245 |
.navicon-dashboard {
background-image:url(images/menu.dashboard.png) !important;
}
.navicon-dashboard:hover {
background-position:0 -30px !important;
} | austinsc/Orchard | src/Orchard.Web/Core/Dashboard/styles/menu.dashboard-admin.css | CSS | bsd-3-clause | 159 |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Generates requests to send to PayPal
*/
class WC_Gateway_Paypal_Request {
/**
* Stores line items to send to PayPal
* @var array
*/
protected $line_items = array();
/**
* Pointer to gateway making the request
* @var WC_... | ORNChurch/ornchurch.org | wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php | PHP | gpl-2.0 | 11,195 |
using System;
using NUnit.Framework;
using OpenQA.Selenium.Environment;
namespace OpenQA.Selenium
{
[TestFixture]
public class DriverDisposalTest : DriverTestFixture
{
[Test]
[IgnoreBrowser(Browser.Safari)]
public void ShouldOpenAndCloseBrowserRepeatedly()
{
for ... | jerome-jacob/selenium | dotnet/test/common/DriverDisposalTest.cs | C# | apache-2.0 | 5,804 |
<?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\Form\Tests\Extension\Core\Type;
use Symfony\Component... | adiIspas/Hootsuite_Backend_API | web_server/code/vendor/symfony/symfony/src/Symfony/Component/Form/Tests/Extension/Core/Type/TimezoneTypeTest.php | PHP | mit | 1,188 |
<li>Uno</li>
<li>Dos</li>
<li>Tres</li>
<li>Cuatro</li>
<li>Cinco</li>
<li>Seis</li> | february29/Learning | web/vue/AccountBook-Express/node_modules/pug/test/output/block-code.html | HTML | mit | 85 |
# Copyright (C) 2001-2006 Python Software Foundation
# Author: Ben Gertzfield, Barry Warsaw
# Contact: email-sig@python.org
__all__ = [
'Charset',
'add_alias',
'add_charset',
'add_codec',
]
import email.base64mime
import email.quoprimime
from email import errors
from email.encoders import encode_... | zephyrplugins/zephyr | zephyr.plugin.jython/jython2.5.2rc3/Lib/email/charset.py | Python | epl-1.0 | 15,684 |
// $Id: imce_wysiwyg.js,v 1.3.4.1 2010/02/21 00:07:04 sun Exp $
/**
* Wysiwyg API integration helper function.
*/
function imceImageBrowser(field_name, url, type, win) {
// TinyMCE.
if (win !== 'undefined') {
win.open(Drupal.settings.imce.url + encodeURIComponent(field_name), '', 'width=760,height=560,resiza... | MarleneWilliams/drupal-6-gatewaychurch | sites/all/new-modules/imce_wysiwyg/js/imce_wysiwyg.js | JavaScript | gpl-2.0 | 702 |
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "1.9" do
describe "Dir#to_path" do
it "needs to be reviewed for spec completeness"
end
end
| takano32/rubinius | spec/ruby/core/dir/to_path_spec.rb | Ruby | bsd-3-clause | 175 |
/*
*
* Copyright 2014, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... | KeyTalk/ApplicationInterfaceGateway | vendor/src/github.com/coreos/etcd/Godeps/_workspace/src/google.golang.org/grpc/interop/server/server.go | GO | bsd-3-clause | 6,144 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | strahanjen/strahanjen.github.io | elasticsearch-master/buildSrc/src/test/java/org/elasticsearch/test/NamingConventionsCheckBadClasses.java | Java | bsd-3-clause | 2,059 |
/******************************************************************************
*
* Copyright(c) 2009-2010 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundati... | WhiteBearSolutions/WBSAirback | packages/wbsairback-kernel-image/wbsairback-kernel-image-3.2.43/drivers/net/wireless/rtlwifi/rtl8192cu/phy.c | C | apache-2.0 | 18,974 |
var WritableStream = require('stream').Writable
|| require('readable-stream').Writable,
inherits = require('util').inherits;
var StreamSearch = require('streamsearch');
var PartStream = require('./PartStream'),
HeaderParser = require('./HeaderParser');
var B_ONEDASH = new Buffer('-'),
... | kuligowski/ImageGallery | server/node_modules/multer/node_modules/busboy/node_modules/dicer/lib/Dicer.js | JavaScript | mit | 4,504 |
/*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-5.4/drivers/ntb/hw/intel/ntb_hw_gen3.c | C | gpl-2.0 | 18,054 |
/*
Copyright 2016 The Kubernetes 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 law or agreed to in writing, ... | ironcladlou/origin | vendor/k8s.io/kubernetes/staging/src/k8s.io/client-go/util/workqueue/delaying_queue_test.go | GO | apache-2.0 | 6,073 |
/*
* Count register synchronisation.
*
* All CPUs will have their count registers synchronised to the CPU0 next time
* value. This can cause a small timewarp for CPU0. All other CPU's should
* not have done anything significant (but they may have had interrupts
* enabled briefly - prom_smp_finish() should not be ... | mkvdv/au-linux-kernel-autumn-2017 | linux/arch/mips/kernel/sync-r4k.c | C | gpl-3.0 | 2,928 |
require 'rexml/document'
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
# Initialization Options
# :login Your store number
# :pem The text of your linkpoint PEM file. Note
# this is not the path to file, but its
# ... | camelpunch/simply_agile | vendor/plugins/active_merchant/lib/active_merchant/billing/gateways/linkpoint.rb | Ruby | bsd-3-clause | 15,718 |
/*
Copyright © 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technology, European Research Consortium
for Informatics and Mathematics, Keio University). All
Rights Reserved. This work is distributed under the W3C® Software License [1] in the
hope that it will be useful, but WITHOUT ANY WARRANTY; wi... | scheib/chromium | third_party/blink/web_tests/dom/legacy_dom_conformance/xhtml/level2/events/dispatchEvent01.js | JavaScript | bsd-3-clause | 2,914 |
#include "clar_libgit2.h"
static git_repository *_repo;
static git_commit *commit;
void test_graph_descendant_of__initialize(void)
{
git_oid oid;
cl_git_pass(git_repository_open(&_repo, cl_fixture("testrepo.git")));
git_oid_fromstr(&oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644");
cl_git_pass(git_commit_lookup... | cwahbong/nodegit | vendor/libgit2/tests/graph/descendant_of.c | C | mit | 1,470 |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../../shared/complex/numeric/imag', __FILE__)
ruby_version_is "1.9" do
describe "Numeric#imag" do
it_behaves_like(:numeric_imag, :imag)
end
end
| takano32/rubinius | spec/ruby/core/numeric/imag_spec.rb | Ruby | bsd-3-clause | 241 |
<?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 ... | tesler/cspt-moodle | moodle/availability/condition/completion/tests/condition_test.php | PHP | mit | 19,088 |
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, 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 version 2 of the License, or
* (at your opt... | go2ev-devteam/Gplus_2159_0801 | openplatform/sdk/os/kernel-2.6.32/drivers/staging/vt6655/mib.c | C | gpl-2.0 | 19,603 |
require "spec_helper"
describe Mongoid::Relations::Builders do
class TestClass
include Mongoid::Document
end
let(:klass) do
TestClass
end
let(:relation) do
Mongoid::Relations::Embedded::One
end
describe ".builder" do
let(:metadata) do
Mongoid::Relations::Metadata.new(
:... | DanielVartanov/mongoid | spec/unit/mongoid/relations/builders_spec.rb | Ruby | mit | 2,396 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doc... | m00re/ns-3-stdma | sources/doc/tutorial/Makefile | Makefile | gpl-2.0 | 5,358 |
/* IP tables module for matching the value of the IPv4 and TCP ECN bits
*
* (C) 2002 by Harald Welte <laforge@gnumonks.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.
*/
... | blueskycoco/d2 | net/ipv4/netfilter/ipt_ecn.c | C | gpl-2.0 | 3,085 |
/* mt6627_fm_config.c
*
* (C) Copyright 2011
* MediaTek <www.MediaTek.com>
* hongcheng <hongcheng.xia@MediaTek.com>
*
* FM Radio Driver
*
* 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... | bq/aquaris-E4 | drivers/misc/mediatek/fmradio/mt6627/pub/mt6627_fm_config.c | C | gpl-2.0 | 5,715 |
#include <linux/init.h>
#include <linux/pci.h>
/* PCI interrupt pins */
#define PCIA 1
#define PCIB 2
#define PCIC 3
#define PCID 4
/* This table is filled in by interrogating the PIIX4 chip */
static char pci_irq[5] = {
};
static char irq_tab[][5] __initdata = {
/* INTA INTB INTC INTD */
{0, 0, ... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/arch/mips/pci/fixup-malta.c | C | gpl-2.0 | 3,224 |
<?php
/**
* Smarty Internal Plugin
*
* @package Smarty
* @subpackage Cacher
*/
/**
* Cache Handler API
*
* @package Smarty
* @subpackage Cacher
* @author Rodney Rehm
*/
abstract class Smarty_CacheResource {
/**
* cache for Smarty_CacheResource instances
* @var array
*/
public static $resources = ar... | MetSystem/fis | test/libs/smarty-3.1.5/sysplugins/smarty_cacheresource.php | PHP | mit | 11,323 |
#undef MMC_STRPCL
#undef MMC_STAT
#undef MMC_CLKRT
#undef MMC_SPI
#undef MMC_CMDAT
#undef MMC_RESTO
#undef MMC_RDTO
#undef MMC_BLKLEN
#undef MMC_NOB
#undef MMC_PRTBUF
#undef MMC_I_MASK
#undef END_CMD_RES
#undef PRG_DONE
#undef DATA_TRAN_DONE
#undef MMC_I_REG
#undef MMC_CMD
#undef MMC_ARGH
#undef MMC_ARGL
#undef MMC_RES... | impedimentToProgress/UCI-BlueChip | snapgear_linux/linux-2.6.21.1/drivers/mmc/pxamci.h | C | mit | 2,801 |
<?php
sspmod_cdc_Server::processRequest(); | REI-Systems/GovDashboard-Community | webapp/sites/all/libraries/simplesamlphp/modules/cdc/www/server.php | PHP | gpl-3.0 | 43 |
// 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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_EXTERNAL_DATA_MANAGER_H_
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_EXTERNAL_DATA_MANAG... | s20121035/rk3288_android5.1_repo | external/chromium_org/components/policy/core/common/cloud/mock_cloud_external_data_manager.h | C | gpl-3.0 | 1,454 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | mbaluch/keycloak | testsuite/integration-arquillian/test-apps/cors/angular-product/src/main/webapp/lib/angular/angular-route.js | JavaScript | apache-2.0 | 33,181 |
#!/usr/bin/perl -w
#
# Copyright 2005-2009 - Steven Rostedt
# Licensed under the terms of the GNU GPL License version 2
#
# It's simple enough to figure out how this works.
# If not, then you can ask me at stripconfig@goodmis.org
#
# What it does?
#
# If you have installed a Linux kernel from a distribution
# tha... | talnoah/android_kernel_htc_dlx | virt/scripts/kconfig/streamline_config.pl | Perl | gpl-2.0 | 10,861 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'newpage', 'hu', {
toolbar: 'Új oldal'
});
| vousk/jsdelivr | files/ckeditor/4.3.0/plugins/newpage/lang/hu.js | JavaScript | mit | 217 |
/** common.h
*
* @copyright
* Copyright (C) 2010-2013, Intel Corporation
* All rights reserved.
*
* @copyright
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source cod... | Iotlab-404/LFS | usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include/cilk/common.h | C | gpl-3.0 | 12,478 |
.mejs-container {
position: relative;
background: #000;
font-family: Helvetica, Arial;
}
.mejs-container-fullscreen {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
}
.mejs-container-fullscreen .mejs-mediaelement,
.mejs-container-fullscreen video {
width: 100%;
height: 100%;
}
/* ... | janpaepke/cdnjs | ajax/libs/mediaelement/2.1.1/mediaelementplayer.css | CSS | mit | 12,505 |
/******************************************************************************
*
* Copyright(c) 2009-2012 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundati... | mericon/Xp_Kernel_LGH850 | virt/drivers/net/wireless/rtlwifi/rtl8723ae/table.h | C | gpl-2.0 | 1,743 |
// basic uses of function literals with overloads
var f: {
(x: string): string;
(x: number): number;
} = (x) => x;
var f2: {
<T>(x: string): string;
<T>(x: number): number;
} = (x) => x;
var f3: {
<T>(x: T): string;
<T>(x: T): number;
} = (x) => x;
var f4: {
<T>(x: stri... | progre/TypeScript | tests/cases/conformance/types/specifyingTypes/typeLiterals/functionLiteralForOverloads.ts | TypeScript | apache-2.0 | 366 |
enum E {
A,
B
}
enum E2 {
A,
B
}
var e: E;
var e2: E2;
e = E2.A;
e2 = E.A;
e = <void>null;
e = {};
e = '';
function f<T>(a: T) {
e = a;
} | yortus/TypeScript | tests/cases/conformance/types/primitives/enum/invalidEnumAssignments.ts | TypeScript | apache-2.0 | 182 |
# generated from catkin/cmake/template/pkgConfig-version.cmake.in
set(PACKAGE_VERSION "0.0.0")
set(PACKAGE_VERSION_EXACT False)
set(PACKAGE_VERSION_COMPATIBLE False)
if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
set(PACKAGE_VERSION_EXACT True)
set(PACKAGE_VERSION_COMPATIBLE True)
endif()
if("$... | FRC900/2016VisionCode | zebROS_ws/devel/share/goal_detection/cmake/goal_detectionConfig-version.cmake | CMake | mit | 426 |
interface I {
D?<T>();
} | enginekit/TypeScript | tests/cases/conformance/parser/ecmascript5/MethodSignatures/parserMethodSignature4.ts | TypeScript | apache-2.0 | 28 |
class Post
include Mongoid::Document
include Mongoid::Attributes::Dynamic
field :title, type: String
field :content, type: String
field :rating, type: Integer
field :person_title, type: String, default: ->{ person.title if ivar(:person) }
attr_accessor :before_add_called, :after_add_called, :before_remo... | hashrocketeer/mongoid | spec/app/models/post.rb | Ruby | mit | 1,283 |
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head>
<!-- Basic... | zhouhuiqiong/201602node_homework | 第2组 刘成军/高姗/第二周作业/public/Font-Awesome-master/Font-Awesome-master/src/3.2.1/icon/compass/index.html | HTML | mit | 10,096 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSON 3</title>
<link rel="stylesheet" href="page/style.css" media="screen">
</head>
<body>
<ul id="navigation">
<li><a href="#section_1">JSON 3</a></li>
<li><a href="#section_2">Changes from JSON 2</a></li>
<li><a href="#s... | frangucc/gamify | www/lib/json3/index.html | HTML | mit | 10,133 |
/* MN10300 Watchdog timer
*
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
* - Derived from arch/i386/kernel/nmi.c
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as publis... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.14/arch/mn10300/kernel/mn10300-watchdog.c | C | gpl-2.0 | 4,919 |
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/sched.h>
#include <asm/uaccess.h>
#define CREATE_TRACE_POINTS
#include <trace/events/kmem.h>
/**
* kstrdup - allocate space for and copy an existing string
* @s: the string to dup... | megraf/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/mm/util.c | C | gpl-2.0 | 7,118 |
namespace Contoso.Core
{
using System;
using System.IO;
/// <summary>
/// CSV Logger
/// </summary>
public class CsvLogger : LoggerBase
{
#region Fields
/// <summary>
/// The CSV header
/// </summary>
private const string CsvHeader = "Timestamp,User... | yagoto/PnP | Samples/Core.BulkUserProfileUpdater/Logger/CsvLogger.cs | C# | mit | 2,631 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Example</title>
</head>
<body>
<script>
var myObject = {
x: 5,
y: 10
};
console.log(myObject);
console.log("x = " + myObject.x);
console.log("y = " + myObject["y"]);
</script>
</body>
<... | neelshah23/screencasts | introToD3/examples/code/snapshot41/index.html | HTML | mit | 327 |
<!DOCTYPE html>
<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. -->
<html>
<head>
<title>Referrer-Policy: Referrer Policy is set to 'origin-only'</title>
<meta name="description" content="Check that all subresources in... | youtube/cobalt | third_party/web_platform_tests/referrer-policy/origin-only/meta-referrer/cross-origin/http-http/img-tag/generic.swap-origin-redirect.http.html | HTML | bsd-3-clause | 1,965 |
/* -*- linux-c -*-
* sysctl_net_core.c: sysctl interface to net core subsystem.
*
* Begun April 1, 1996, Mike Shaver.
* Added /proc/sys/net/core directory entry (empty =) ). [MS]
*/
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <linux/module.h>
#include <linux/socket.h>
#include <linux/netdevice.h>
#in... | AOSP-bacon/android_kernel_oneplus_msm8974 | net/core/sysctl_net_core.c | C | gpl-2.0 | 5,988 |
-- Summon minions
DELETE FROM `spell_script_names` WHERE `spell_id`=59910;
INSERT INTO `spell_script_names`(`spell_id`,`ScriptName`) VALUE
(59910,'spell_summon_minions');
-- Heroic spells
DELETE FROM `spelldifficulty_dbc` WHERE `id` IN (49198,49034,49037,50089,49668,51363) OR `spellid0` IN (49198,49034,49037,50089,496... | lovequilt/TrinityCore | sql/old/4.3.4/TDB1_to_TDB2_updates/world/213_2013_01_04_02_world_novos_the_summoner.sql | SQL | gpl-2.0 | 3,360 |
/* Area: ffi_call, unwind info
Purpose: Check if the unwind information is passed correctly.
Limitations: none.
PR: none.
Originator: Andreas Tobler <andreast@gcc.gnu.org> 20061213 */
/* { dg-do run } */
#include "ffitest.h"
static int checking(int a __UNUSED__, short b __UNUSED__,
signed char c ... | fernandoandreotti/cibim | vendor/ruby/2.4.0/gems/ffi-1.9.23/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest_ffi_call.cc | C++ | apache-2.0 | 1,036 |
@import url(http://fonts.googleapis.com/css?family=News+Cycle:400,700);
@import url(http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
/**
* A simple theme for reveal.js presentations, similar
* to the default theme. The accent color is darkblue.
*
* This theme is Copyright (C) 2012 Owen Ve... | dongweiming/blog | zongjie/css/theme/simple.css | CSS | mit | 3,862 |
<?php
namespace Anax\MVC;
/**
* Helpers for redirecting to other pages and controllers.
*
*/
trait TRedirectHelpers
{
/**
* Redirect to current or another route.
*
* @param string $route the route to redirect to,
* null to redirect to current route, "" to redirect to baseurl.
*
... | donami/ctable | vendor/anax/mvc/src/MVC/TRedirectHelpers.php | PHP | mit | 613 |
/*=============================================================================
Copyright (c) 2001-2008 Joel de Guzman
Copyright (c) 2001-2008 Hartmut Kaiser
http://spirit.sourceforge.net/
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.... | titanmonsta/fluorescence | winbuild/include/boost/spirit/core/scanner/skipper_fwd.hpp | C++ | gpl-3.0 | 1,131 |
/**
* Continues an observable sequence that is terminated by an exception with the next observable sequence.
*
* @example
* 1 - res = Rx.Observable.catchException(xs, ys, zs);
* 2 - res = Rx.Observable.catchException([xs, ys, zs]);
* @returns {Observable} An observable sequence ... | drleewarden/2014-bootstrap | wp-content/themes/arcade-basic/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/src/core/linq/observable/catch.js | JavaScript | gpl-2.0 | 635 |
/*
* Header file for dma buffer sharing framework.
*
* Copyright(C) 2011 Linaro Limited. All rights reserved.
* Author: Sumit Semwal <sumit.semwal@ti.com>
*
* Many thanks to linaro-mm-sig list, and specially
* Arnd Bergmann <arnd@arndb.de>, Rob Clark <rob@ti.com> and
* Daniel Vetter <daniel@ffwll.ch> for their ... | mericon/Xp_Kernel_LGH850 | virt/include/linux/dma-buf.h | C | gpl-2.0 | 8,177 |
/**
* @file fairqueue_test.c
* @author Ambroz Bizjak <ambrop7@gmail.com>
*
* @section LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright... | Jigsaw-Code/outline-client | third_party/badvpn/examples/fairqueue_test.c | C | apache-2.0 | 4,461 |
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _get = function get(object, property, receiver) { var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { ... | AMoo-Miki/cdnjs | ajax/libs/alt/0.14.4/alt.js | JavaScript | mit | 18,625 |
//// 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 OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#pragma once
#i... | srinivashappy/Windows-universal-samples | Samples/SimpleCommunication/common/MediaExtensions/Microsoft.Samples.SimpleCommunication/StspMediaStream.h | C | mit | 4,872 |
/**
* 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... | ZhangXFeng/hadoop | src/hadoop-mapreduce1-project/src/contrib/failmon/src/java/org/apache/hadoop/contrib/failmon/LogParser.java | Java | apache-2.0 | 6,141 |
class Jq < Formula
desc "Lightweight and flexible command-line JSON processor"
homepage "https://stedolan.github.io/jq/"
url "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz"
sha256 "c4d2bfec6436341113419debf479d833692cc5cdab7eb0326b5a4d4fbe9f493c"
bottle do
cellar :any
revision... | baldwicc/homebrew | Library/Formula/jq.rb | Ruby | bsd-2-clause | 1,240 |
// linux/mksysnum.pl -Wall -Werror -static -I/tmp/include -m64 /tmp/include/asm/unistd.h
// Code generated by the command above; see README.md. DO NOT EDIT.
// +build amd64,linux
package unix
const (
SYS_READ = 0
SYS_WRITE = 1
SYS_OPEN = 2
SYS_CLOSE ... | ooclab/otunnel | vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go | GO | mit | 11,485 |
// +build !linux
/*
Copyright 2014 The Kubernetes 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 law or agre... | kubernetes/autoscaler | vertical-pod-autoscaler/e2e/vendor/k8s.io/kubernetes/pkg/util/selinux/selinux_unsupported.go | GO | apache-2.0 | 1,101 |
/*
* Copyright (C) 2007, 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | klim-iv/phantomjs-qt5 | src/webkit/Source/WebCore/Modules/webdatabase/SQLTransaction.h | C | bsd-3-clause | 4,326 |
/*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | klim-iv/phantomjs-qt5 | src/webkit/Source/JavaScriptCore/API/JSBase.h | C | bsd-3-clause | 6,964 |
/*
* rwlock3_t.c
*
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
* Copyright(C) 1999,2005 Pthreads-win32 contributors
*
* Contact Email: rpj@callisto.canberra.edu.au
... | vrtadmin/clamav-devel | win32/3rdparty/pthreads/tests/rwlock3_t.c | C | gpl-2.0 | 2,508 |
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.gen.entity;
import java.util.List;
import org.hibernate.validator.constraints.Length;
import com.google.common.collect.Lists;
import com.thinkgem.jeesite.common.pe... | southwolf/jeesite | src/main/java/com/thinkgem/jeesite/modules/gen/entity/GenTable.java | Java | apache-2.0 | 4,996 |
<!---
# license: 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 Licens... | circular-code/ImageStream | www/plugins/cordova-plugin-device-orientation/doc/zh/README.md | Markdown | mit | 6,255 |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example15</title>
<script src="../../../angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="docsScopeProblemExample">
<div ng-controller="NaomiController">
<my-customer></my-custo... | orYoffe/wordpress | wp-content/themes/new_theme/js/libs/angular-1.4.1/docs/examples/example-example15/index.html | HTML | gpl-2.0 | 426 |
#ifndef EFSW_MUTEXIMPLWIN_HPP
#define EFSW_MUTEXIMPLWIN_HPP
#include <efsw/base.hpp>
#if EFSW_PLATFORM == EFSW_PLATFORM_WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
namespace efsw { namespace Platform {
class MutexImpl
{
public:
MutexImpl();
~MutexImpl();
void... | diegostamigni/efsw | src/efsw/platform/win/MutexImpl.hpp | C++ | mit | 409 |
/**
* 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... | YMartsynkevych/camel | camel-core/src/main/java/org/apache/camel/Expression.java | Java | apache-2.0 | 1,637 |
/*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | pietern/kubernetes | pkg/clientauth/clientauth_test.go | GO | apache-2.0 | 1,784 |
/*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Released under the terms of the GNU GPL v2.0.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LKC_DIRECT_LINK
#include "lkc.h"
#define DEBUG_EXPR 0
struct expr *expr_alloc_symbol(struct symbol *sym)
{
struct expr *e = malloc(si... | kyak/openwrt-xburst | scripts/config/expr.c | C | gpl-2.0 | 26,452 |
require 'spec_helper'
require 'email'
describe Email do
describe "is_valid?" do
it 'treats a nil as invalid' do
expect(Email.is_valid?(nil)).to eq(false)
end
it 'treats a good email as valid' do
expect(Email.is_valid?('sam@sam.com')).to eq(true)
end
it 'treats a bad email as inval... | Procurem/Contraints | spec/components/email/email_spec.rb | Ruby | gpl-2.0 | 1,085 |
///////////////////////////////////////////////////////////////////////////////
// Name: wx/choicebk.h
// Purpose: wxChoicebook: wxChoice and wxNotebook combination
// Author: Vadim Zeitlin
// Modified by: Wlodzimierz ABX Skiba from wx/listbook.h
// Created: 15.09.04
// Copyright: (c) Vadim Zeitli... | mishin/dwimperl-windows | strawberry-perl-5.20.0.1-32bit-portable/perl/site/lib/Alien/wxWidgets/msw_3_0_2_uni_gcc_3_4/include/wx/choicebk.h | C | gpl-2.0 | 4,601 |
# $Id: __init__.py 7646 2013-04-17 14:17:37Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
This package contains Docutils parser modules.
"""
__docformat__ = 'reStructuredText'
import sys
from docutils import Component
if sys.version_info < (2... | JulienMcJay/eclock | windows/Python27/Lib/site-packages/docutils/parsers/__init__.py | Python | gpl-2.0 | 1,657 |
/*======================================================================
An elsa_cs PCMCIA client driver
This driver is for the Elsa PCM ISDN Cards, i.e. the MicroLink
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
excep... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/drivers/isdn/hisax/elsa_cs.c | C | gpl-2.0 | 9,442 |
/*
* bootstrap-table - v1.11.0 - 2016-07-02
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2016 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.fn.bootstrapTable.locales["ko-KR"]={formatLoadingMessage:function(){return"데이터를 불러오는 중입니다..."},formatRecordsPerPage:function(a){return"페이지 당 "+... | jesusignazio/zocoyula | vendors/bootstrap-table/locale/bootstrap-table-ko-KR.min.js | JavaScript | apache-2.0 | 815 |
/*
* datastream.h
*
*/
struct buffer_head *befs_read_datastream(struct super_block *sb,
const befs_data_stream *ds,
befs_off_t pos, uint *off);
int befs_fblock2brun(struct super_block *sb, const befs_data_stream *data,
befs_blocknr_t fblock, befs_block_run *run);
size_t befs_read_lsymlink(struc... | mkvdv/au-linux-kernel-autumn-2017 | linux/fs/befs/datastream.h | C | gpl-3.0 | 536 |
/*
* QEMU Bluetooth HCI logic.
*
* Copyright (C) 2007 OpenMoko, Inc.
* Copyright (C) 2008 Andrzej Zaborowski <balrog@zabor.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 Software Foundation; either ... | whitestonelee/tlb_analyzer | qemu/hw/bt-hci.c | C | gpl-3.0 | 69,187 |
/* */
require("../../modules/js.array.statics");
module.exports = require("../../modules/$").core.Array.filter;
| pauldijou/outdated | test/basic/jspm_packages/npm/core-js@0.9.18/library/fn/array/filter.js | JavaScript | apache-2.0 | 113 |
var parent = require('../../es/reflect');
module.exports = parent;
| BigBoss424/portfolio | v8/development/node_modules/jimp/node_modules/core-js/stable/reflect/index.js | JavaScript | apache-2.0 | 68 |
/*
* Virtio SCSI HBA driver
*
* Copyright IBM Corp. 2010
* Copyright Red Hat, Inc. 2011
*
* Authors:
* Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
* Paolo Bonzini <pbonzini@redhat.com>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-leve... | prasidh09/cse506 | unionfs-3.10.y/drivers/scsi/virtio_scsi.c | C | gpl-2.0 | 26,923 |
#ifndef __LIS3LV02D_H_
#define __LIS3LV02D_H_
struct lis3lv02d_platform_data {
/* please note: the 'click' feature is only supported for
* LIS[32]02DL variants of the chip and will be ignored for
* others */
#define LIS3_CLICK_SINGLE_X (1 << 0)
#define LIS3_CLICK_DOUBLE_X (1 << 1)
#define LIS3_CLICK_SINGLE_Y (1 <... | wkritzinger/asuswrt-merlin | release/src-rt-7.x.main/src/linux/linux-2.6.36/include/linux/lis3lv02d.h | C | gpl-2.0 | 2,306 |
var a: [] = [];
var a: [Foo<T>] = [foo];
var a: [number] = [123];
var a: [number, string] = [123, "duck"];
| jaredly/babel | test/fixtures/generation/flow/tuples/expected.js | JavaScript | mit | 107 |
/* mbed Microcontroller Library
* Copyright (c) 2006-2012 ARM Limited
*
* 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... | ruriwo/ErgoThumb072_firmware | tmk_core/tool/mbed/mbed-sdk/libraries/dsp/dsp/FIR_f32.h | C | gpl-2.0 | 1,765 |
#ifndef _M68K_BITOPS_H
#define _M68K_BITOPS_H
/*
* Copyright 1992, Linus Torvalds.
*
* 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.
*/
#ifndef _LINUX_BITOPS_H
#error only <linux/bitops.h> can ... | mkvdv/au-linux-kernel-autumn-2017 | linux/arch/m68k/include/asm/bitops.h | C | gpl-3.0 | 12,484 |
// Copyright ©2014 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package path_test
import (
"math"
"reflect"
"testing"
"github.com/gonum/graph"
"github.com/gonum/graph/concrete"
"github.com/gonum/graph/path"
"git... | cdrage/kedge | vendor/github.com/gonum/graph/path/a_star_test.go | GO | apache-2.0 | 7,212 |
#ifndef __LINUX_RTNETLINK_H
#define __LINUX_RTNETLINK_H
#include <linux/mutex.h>
#include <linux/netdevice.h>
#include <linux/wait.h>
#include <uapi/linux/rtnetlink.h>
extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo);
extern int rtnl_unicast(struct sk_buff *skb, struct ne... | mikedlowis-prototypes/albase | source/kernel/include/linux/rtnetlink.h | C | bsd-2-clause | 4,090 |
<?php
/*
* Copyright 2010 Google Inc.
*
* 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 agreed t... | monokal/docker-orangehrm | www/symfony/plugins/orangehrmOpenidAuthenticationPlugin/lib/vendor/GoogleAPIClient/Service/Gmail.php | PHP | gpl-2.0 | 58,081 |
/*
* Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved.
*
* 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 modified under those terms.
*
* This program is distributed in the ... | geminy/aidear | oss/linux/linux-4.7/drivers/staging/gdm724x/gdm_lte.c | C | gpl-3.0 | 24,428 |
<li>
<a href="#glyphicons">Glyphicons</a>
<ul class="nav">
<li><a href="#glyphicons-glyphs">Available glyphs</a></li>
<li><a href="#glyphicons-how-to-use">How to use</a></li>
<li><a href="#glyphicons-examples">Examples</a></li>
</ul>
</li>
<li>
<a href="#dropdowns">Dropdowns</a>
<ul class="nav">
... | bocharsky-bw/bionic-symfony | web/libs/bootstrap-3.1.1/docs/_includes/nav-components.html | HTML | mit | 5,109 |
/*
* Intel Skylake I2S Machine Driver for NAU88L25+SSM4567
*
* Copyright (C) 2015, Intel Corporation. All rights reserved.
*
* Modified from:
* Intel Skylake I2S Machine Driver for NAU88L25 and SSM4567
*
* Copyright (C) 2015, Intel Corporation. All rights reserved.
*
* This program is free software; you c... | boddob/linux | sound/soc/intel/boards/skl_nau88l25_ssm4567.c | C | gpl-2.0 | 18,917 |
/*
* linux/arch/arm/mach-nspire/nspire.c
*
* Copyright (C) 2013 Daniel Tang <tangrs@tangrs.id.au>
*
* 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/init.... | BPI-SINOVOIP/BPI-Mainline-kernel | linux-4.19/arch/arm/mach-nspire/nspire.c | C | gpl-2.0 | 1,647 |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | wjiangjay/origin | vendor/github.com/google/cadvisor/events/handler_test.go | GO | apache-2.0 | 6,285 |
// 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.
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using Xunit;
namespace Sys... | dotnet-bot/corefx | src/System.Linq.Expressions/tests/Dynamic/CallSiteBinderDefaultBehaviourTests.cs | C# | mit | 2,276 |
/*
* Kprobes-based tracing events
*
* Created by Masami Hiramatsu <mhiramat@redhat.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 Foundation.
*
* This program is distributed in th... | systemdaemon/systemd | src/linux/kernel/trace/trace_kprobe.c | C | gpl-2.0 | 37,034 |
/*
* Device tables which are exported to userspace via
* scripts/mod/file2alias.c. You must keep that file in sync with this
* header.
*/
#ifndef LINUX_MOD_DEVICETABLE_H
#define LINUX_MOD_DEVICETABLE_H
#ifdef __KERNEL__
#include <linux/types.h>
typedef unsigned long kernel_ulong_t;
#endif
#define PCI_ANY_ID (~0... | SanDisk-Open-Source/SSD_Dashboard | uefi/linux-source-3.8.0/include/linux/mod_devicetable.h | C | gpl-2.0 | 16,853 |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... | raviagarwal7/buck | third-party/java/dx/src/com/android/dx/rop/cst/Zeroes.java | Java | apache-2.0 | 1,902 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.