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 |
|---|---|---|---|---|---|
/* Copyright (c) 2010-2011, Code Aurora Forum. 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 ho... | Danile71/u8850_kernel | drivers/video/msm/vidc_old/1080p/ddl/vcd_ddl_properties.c | C | gpl-2.0 | 57,246 |
/* ResidualVM - A 3D game interpreter
*
* ResidualVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms ... | firesock/residualvm | engines/grim/costume/lua_var_component.h | C | gpl-2.0 | 1,284 |
/*
* Copyright 2014 Samsung Electronics Co., Ltd.
* http://www.samsung.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.
*/
#ifndef __CORESIGHT_REGS_H
#define __CORESIGHT_... | cile381/s7_flat_kernel | arch/arm64/include/asm/core_regs.h | C | gpl-2.0 | 5,795 |
package DBI::ProfileDumper;
use strict;
=head1 NAME
DBI::ProfileDumper - profile DBI usage and output data to a file
=head1 SYNOPSIS
To profile an existing program using DBI::ProfileDumper, set the
DBI_PROFILE environment variable and run your program as usual. For
example, using bash:
DBI_PROFILE=2/DBI::Profil... | mishin/dwimperl-windows | strawberry-perl-5.20.0.1-32bit-portable/perl/vendor/lib/DBI/ProfileDumper.pm | Perl | gpl-2.0 | 10,386 |
! { dg-do run }
! { dg-options "-pedantic-errors -mdalign" { target sh*-*-* } }
! Tests the fix for PR37614, in which the alignment of commons followed
! g77 rather than the standard or other compilers.
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
subroutine foo (z)
real(8) x, y, z
common i(8)
equival... | Gurgel100/gcc | gcc/testsuite/gfortran.dg/common_align_2.f90 | FORTRAN | gpl-2.0 | 690 |
<?php
/**
* @package Joomla.Installation
* @subpackage Application
*
* @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
// Global definitions
$parts = explode(DIRECTORY_SEPARAT... | brianteeman/joomla-cms | installation/includes/defines.php | PHP | gpl-2.0 | 1,205 |
/* ========================================================================== */
/* === colamd - a sparse matrix column ordering algorithm =================== */
/* ========================================================================== */
/*
colamd: An approximate minimum degree column ordering algorithm.
... | dilawar/sesc | src_without_LF/libsuperlu/old_colamd.c | C | gpl-2.0 | 79,574 |
//
// Thread_WIN32.h
//
// $Id: //poco/1.3/Foundation/include/Poco/Thread_WIN32.h#7 $
//
// Library: Foundation
// Package: Threading
// Module: Thread
//
// Definition of the ThreadImpl class for WIN32.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission... | vcazan/openFloor | openCVBlobTracking/libs/poco/include/Poco/Thread_WIN32.h | C | gpl-3.0 | 4,204 |
# Copyright 2015 Abhijit Menon-Sen <ams@2ndQuadrant.com>
#
# This file is part of Ansible
#
# Ansible 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 ... | tux-00/ansible | test/units/inventory/test_inventory.py | Python | gpl-3.0 | 5,504 |
// Copyright 2015 Canonical Ltd.
// Copyright 2015 Cloudbase Solutions SRL
// Licensed under the AGPLv3, see LICENCE file for details.
package openstack_test
import (
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/os"
gc "gopkg.in/check.v1"
"github.com/juju/juju/cloudconfig... | mjs/juju | provider/openstack/userdata_test.go | GO | agpl-3.0 | 1,653 |
import unittest
from scrapy.contrib.downloadermiddleware.redirect import RedirectMiddleware
from scrapy.spider import BaseSpider
from scrapy.exceptions import IgnoreRequest
from scrapy.http import Request, Response, HtmlResponse, Headers
class RedirectMiddlewareTest(unittest.TestCase):
def setUp(self):
s... | mzdaniel/oh-mainline | vendor/packages/scrapy/scrapy/tests/test_downloadermiddleware_redirect.py | Python | agpl-3.0 | 7,244 |
/*
* Copyright 1999-2011 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | zhushuchen/Ocean | 项目源码/dubbo/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/filter/GenericImplFilter.java | Java | agpl-3.0 | 8,743 |
package com.mossle.ext.message;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.Topic;
public class ProxyTopic implements Topic {
private Map<MessageConsumer, List<String>> map = n... | callmeyan/lemon | src/main/java/com/mossle/ext/message/ProxyTopic.java | Java | apache-2.0 | 1,306 |
// "Sort content" "true"
enum e {
Foo,
Bar,<caret>
Baz;
}
| siosio/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/sortContent/beforeEnum.java | Java | apache-2.0 | 65 |
/** PURE_IMPORTS_START .._Subscriber PURE_IMPORTS_END */
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b)
if (b.hasOwnProperty(p))
d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype,... | rospilot/rospilot | share/web_assets/nodejs_deps/node_modules/rxjs/_esm5/operators/scan.js | JavaScript | apache-2.0 | 4,477 |
---
layout: doc_page
---
Druid vs Spark
==============
Druid and Spark are complementary solutions as Druid can be used to accelerate OLAP queries in Spark.
Spark is a general cluster computing framework initially designed around the concept of Resilient Distributed Datasets (RDDs).
RDDs enable data reuse by persis... | tubemogul/druid | docs/content/comparisons/druid-vs-spark.md | Markdown | apache-2.0 | 1,528 |
/*
* Copyright (C) 2009 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... | haikuowuya/android_system_code | src/android/webkit/ValueCallback.java | Java | apache-2.0 | 888 |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | asedunov/intellij-community | platform/platform-impl/src/com/intellij/internal/validation/TestDialogWithValidationAction.java | Java | apache-2.0 | 1,085 |
/**
* 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... | flange/drift-dev | kafka/00-kafka_2.11-0.10.1.0/libs/tmp/kafka/producer/ProducerPool.scala | Scala | apache-2.0 | 3,012 |
/*
Copyright 2021 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, ... | xychu/kubernetes | staging/src/k8s.io/kubectl/pkg/cmd/create/create_secret_tls.go | GO | apache-2.0 | 7,809 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
* notation to look up non numeric property names.
*
* @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js
* @description String object indexing returns undefined if the ... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js | JavaScript | bsd-3-clause | 521 |
// Copyright 2014 The b 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 b
import (
"bytes"
"fmt"
"io"
"math"
"path"
"runtime"
"runtime/debug"
"strings"
"testing"
"github.com/flynn/flynn/Godeps/_workspace/src/githu... | GrimDerp/flynn | Godeps/_workspace/src/github.com/cznic/b/all_test.go | GO | bsd-3-clause | 20,505 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-33.js
* @description Object.defineProperty - 'Attributes' is a Function object which implements its own [[Get]] method to access the 'enumerable' property (8.10.5 step 3.a)
*/
function testcase() {
... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-33.js | JavaScript | bsd-3-clause | 675 |
//
// UYLAppDelegate.h
// Collection
//
// Created by Keith Harrison http://useyourloaf.com
// Copyright (c) 2013 Keith Harrison. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistrib... | Arul15/All_CodeExamples-master | Collection/Collection/UYLAppDelegate.h | C | bsd-3-clause | 1,750 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js
* @description Object.getOwnPropertyDescriptor returns data desc for functions on built-ins (SyntaxError.prototype.constructor)
*/
function testcase() {
var desc = Object.getOwnPropertyDescri... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-173.js | JavaScript | bsd-3-clause | 572 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js
* @description Array.isArray must exist as a function taking 1 parameter
*/
function testcase() {
if (Array.isArray.length === 1) {
return true;
}
}
runTestCase(testcase);
| Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.3/15.4.3.2/15.4.3.2-0-2.js | JavaScript | bsd-3-clause | 306 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-c-iii-2.js
* @description Array.prototype.map - value of returned array element equals to 'mappedValue'
*/
function testcase() {
function callbackfn(val, idx, obj) {
return val;... | Oceanswave/NiL.JS | Tests/tests/sputnik/ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-8-c-iii-2.js | JavaScript | bsd-3-clause | 533 |
//=================================================================================================
/*!
// \file src/blaze/Mat3Mat3Mult.cpp
// \brief Source file for the 3-dimensional matrix/matrix multiplication benchmark
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This file is part of the... | yzxyzh/blaze-lib | blazemark/src/main/Mat3Mat3Mult.cpp | C++ | bsd-3-clause | 12,502 |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pastetext', 'el', {
button: 'Επικόλληση ως απλό κείμενο',
title: 'Επικόλληση ως απλό κείμενο'
} );
| aodarc/flowers_room | styleguides/static/ckeditor/ckeditor/plugins/pastetext/lang/el.js | JavaScript | mit | 320 |
/**
* Prev Rollover
* (c) 2013 Bill, BunKat LLC.
*
* Determines if a value will cause a particualr constraint to rollover to the
* previous largest time period. Used primarily when a constraint has a
* variable extent.
*
* Later is freely distributable under the MIT license.
* For all details and documentation:
* h... | nmccann/later | src/date/prevrollover.js | JavaScript | mit | 574 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Source: src/pixi/renderers/canvas/utils/CanvasMaskManager.js</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/default.css"... | erbridge/fatal-attraction | lib/phaser/docs/src_pixi_renderers_canvas_utils_CanvasMaskManager.js.html | HTML | mit | 36,044 |
@description Simulate an update on a fixture.
@function can.fixture.types.Store.update
@parent can.fixture.types.Store
@signature `store.update(request, callback)`
@param {Object} request Parameters for the request.
@param {Function} callback A function to call with the updated item and headers.
@body
`store.update(re... | marlncpe/canjs | util/fixture/doc/update.md | Markdown | mit | 568 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v10.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __prot... | BenjaminVanRyseghem/cdnjs | ajax/libs/ag-grid/10.1.0/lib/filter/baseFilter.js | JavaScript | mit | 13,527 |
<?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\Bundle\FrameworkBundle\DependencyInjection\Compiler;
use Symfon... | SrGio/GestorFCT | vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConstraintValidatorsPass.php | PHP | mit | 1,558 |
export function foo4() {};
export const { a: [{ foo4: foo }], b, c: { foo2: [{ foo3: foo4 }] } } = bar;
| wcjohnson/babylon-lightscript | test/fixtures/es2015/modules/duplicate-named-export-destructuring13/actual.js | JavaScript | mit | 104 |
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{graphnvd3}prestashop>graphnvd3_a9f70dff230e6fc8e878043486e6cddf'] = 'NVD3 Charts';
return $_MODULE;
| victorespnt/v-eshop | prestashop/modules/graphnvd3/translations/en.php | PHP | mit | 159 |
/**
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
.js-calendar {
box-shadow: 0 0 15px 4px rgba(0,0,0,.15) !important;
}
.calendar-container {
float: left;
min-width: 160px;
padding: 0;
list-st... | IOC/joomla3 | media/system/css/fields/calendar.css | CSS | gpl-2.0 | 4,279 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2012 Advanced Micro Devices, Inc.
*
* 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 ... | BTDC/coreboot | src/mainboard/lenovo/g505s/BiosCallOuts.c | C | gpl-2.0 | 8,486 |
/**
* Copyright (c) 2009--2010 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | xkollar/spacewalk | java/code/src/com/redhat/rhn/common/hibernate/DuplicateObjectException.java | Java | gpl-2.0 | 1,534 |
/* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu>
* Patrick Schaaf <bof@bof.de>
* Martin Josefsson <gandalf@wlug.westbo.se>
* Copyright (C) 2003-2013 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
*
* This program is free software; you can redistribute it and/or modify
* it und... | djbw/linux | net/netfilter/ipset/ip_set_bitmap_ipmac.c | C | gpl-2.0 | 11,840 |
require 'drb/drb'
require 'rinda/tuplespace'
uri = ARGV.shift
DRb.start_service(uri, Rinda::TupleSpace.new)
puts DRb.uri
DRb.thread.join
| atmark-techno/atmark-dist | user/ruby/ruby-2.1.2/sample/drb/rinda_ts.rb | Ruby | gpl-2.0 | 138 |
/*
* Copyright 2009 Freescale Semicondutor, Inc.
*
* 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.
*
* provides ... | stevelord/PR30 | linux-2.6.31/arch/powerpc/include/asm/ppc-opcode.h | C | gpl-2.0 | 3,442 |
#!/bin/bash
set -e
source ./scripts/mod_helpers.sh
if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then
compr=".gz"
else
compr=""
fi
for driver in $(find ${BACKPORT_DIR} -type f -name *.ko); do
mod_name=${driver/${BACKPORT_DIR}/${KLIB}${KMODDIR}}${compr}
echo " uninstall" $mod_name
rm -f $mod_name
don... | tank0412/android_kernel_xiaomi_latte | uefi/cht/modules/iwlwifi/scripts/uninstall.sh | Shell | gpl-2.0 | 322 |
// SPDX-License-Identifier: GPL-2.0
/*
* Intel SOC Telemetry debugfs Driver: Currently supports APL
* Copyright (c) 2015, Intel Corporation.
* All Rights Reserved.
*
* This file provides the debugfs interfaces for telemetry.
* /sys/kernel/debug/telemetry/pss_info: Shows Primary Control Sub-Sys Counters
* /sys/ke... | c0d3z3r0/linux-rockchip | drivers/platform/x86/intel_telemetry_debugfs.c | C | gpl-2.0 | 27,264 |
<?php
/** Abkhazian (Аҧсшәа)
*
* See MessagesQqq.php for message documentation incl. usage of parameters
* To improve a translation please visit http://translatewiki.net
*
* @ingroup Language
* @file
*
*/
$fallback = 'ru';
$namespaceNames = array(
NS_MEDIA => 'Амедиа',
NS_SPECIAL => 'Цас... | shayzluf/lazoozweb | wiki/languages/messages/MessagesAb.php | PHP | gpl-2.0 | 3,170 |
<?php
/**
* This file is automatically @generated by {@link GeneratePhonePrefixData}.
* Please don't modify it directly.
*/
return array (
86159 => 'China Mobile',
);
| CTSATLAS/wordpress | wp-content/plugins/constant-contact-api/vendor/giggsey/libphonenumber-for-php/src/libphonenumber/carrier/data/en/86159.php | PHP | gpl-2.0 | 173 |
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_SWAP_H
#define _LINUX_SWAP_H
#include <linux/spinlock.h>
#include <linux/linkage.h>
#include <linux/mmzone.h>
#include <linux/list.h>
#include <linux/memcontrol.h>
#include <linux/sched.h>
#include <linux/node.h>
#include <linux/fs.h>
#include <linux/atomic.h>
#inc... | GuillaumeSeren/linux | include/linux/swap.h | C | gpl-2.0 | 22,389 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
\\/ M anipulation |
-------------... | OpenFOAM/OpenFOAM-2.3.x | src/lagrangian/intermediate/parcels/Templates/MPPICParcel/MPPICParcelTrackingDataI.H | C++ | gpl-3.0 | 7,540 |
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/game/CRenderWare.h
* PURPOSE: RenderWare engine interface
*
* Multi Theft Auto is available from http://www.multi... | BozhkoAlexander/mtasa-blue | MTA10/sdk/game/CRenderWare.h | C | gpl-3.0 | 5,828 |
//@tag dom,core
//@define Ext.DomHelper
//@define Ext.core.DomHelper
//@require Ext.dom.AbstractElement-traversal
/**
* @class Ext.DomHelper
* @extends Ext.dom.Helper
* @alternateClassName Ext.core.DomHelper
* @singleton
*
* The DomHelper class provides a layer of abstraction from DOM and transparently supports ... | Webcampak/v2.0 | src/www/interface/extjs/src/dom/Helper.js | JavaScript | gpl-3.0 | 16,761 |
describe("", function() {
var rootEl;
beforeEach(function() {
rootEl = browser.rootEl;
browser.get("build/docs/examples/example-select-unknown-value-required/index.html");
});
it('should show the error message when the unknown option is selected', function() {
var error = element(by.className('er... | gplv2/grbtool | public/js/angular-1.7.8/docs/ptore2e/example-select-unknown-value-required/default_test.js | JavaScript | gpl-3.0 | 631 |
<?php
/* Copyright (C) 2009 Laurent Destailleur <eldy@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 as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any la... | atm-robin/dolibarr | htdocs/core/modules/modWebServices.class.php | PHP | gpl-3.0 | 3,044 |
// META: script=websocket.sub.js
var testOpen = async_test("Send binary data on a WebSocket - Blob - Connection should be opened");
var testMessage = async_test("Send binary data on a WebSocket - Blob - Message should be received");
var testClose = async_test("Send binary data on a WebSocket - Blob - Connection should... | pyfisch/servo | tests/wpt/web-platform-tests/websockets/Send-binary-blob.any.js | JavaScript | mpl-2.0 | 1,162 |
import unittest
class StringProcessingTestBase(unittest.TestCase):
# The backslash character. Needed since there are limitations when
# using backslashes at the end of raw-strings in front of the
# terminating " or '.
bs = "\\"
# Basic test strings all StringProcessing functions should test.
... | yland/coala | tests/parsing/StringProcessing/StringProcessingTestBase.py | Python | agpl-3.0 | 5,848 |
// Copyright 2012, 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
// hook provides types that define the hooks known to the Uniter
package hook
import (
"fmt"
"gopkg.in/juju/charm.v6-unstable/hooks"
"gopkg.in/juju/names.v2"
)
// TODO(fwereade): move these definitions to juju/char... | marcmolla/juju | worker/uniter/hook/hook.go | GO | agpl-3.0 | 2,610 |
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2010-2013 Andy Green <andy@warmcat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software F... | maws/libwebsockets | lib/handshake.c | C | lgpl-2.1 | 6,468 |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | devigned/azure-powershell | src/ResourceManager/Compute/Stack/Commands.Compute/Extension/SqlServer/AzureVMSqlServerPrivateSettings.cs | C# | apache-2.0 | 1,337 |
package water.util;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
/**
* Simple Timer class.
**/
public class Timer {
private static final DateTimeFormatter longFormat = DateTimeFormat.forPattern("dd-MMM HH:mm:ss.SSS");
private static f... | PawarPawan/h2o-v3 | h2o-core/src/main/java/water/util/Timer.java | Java | apache-2.0 | 1,562 |
/*
* 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 ... | Mega-DatA-Lab/mxnet | src/operator/tensor/broadcast_reduce_op_index.cc | C++ | apache-2.0 | 5,691 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_11) on Tue Aug 12 11:16:05 PDT 2014 -->
<title>com.microsoft.windowsazure.mobileservices.table.sync.synchandler</title>
<meta name="date" conte... | paulbatum/azure-mobile-services | sdk/android/src/sdk/doc/com/microsoft/windowsazure/mobileservices/table/sync/synchandler/package-frame.html | HTML | apache-2.0 | 1,587 |
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
fn main() {
if true { return }
match () {
() => { static MAGIC: usize = 0; }
}
}
| aidancully/rust | src/test/ui/issues/issue-16452.rs | Rust | apache-2.0 | 167 |
package org.jetbrains.debugger;
import com.intellij.openapi.util.Condition;
import com.intellij.openapi.util.Conditions;
import com.intellij.ui.SimpleTextAttributes;
import com.intellij.xdebugger.frame.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.concurre... | akosyakov/intellij-community | platform/script-debugger/debugger-ui/testSrc/org/jetbrains/debugger/TestCompositeNode.java | Java | apache-2.0 | 4,343 |
#!/usr/bin/env bash
################################################################################
# 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. T... | StephanEwen/incubator-flink | flink-python/pyflink/bin/pyflink-udf-runner.sh | Shell | apache-2.0 | 1,977 |
-- verify that resource group gucs all exist,
-- in case any of them are removed by accident.
-- do not care about the values / ranges / types
-- start_ignore
\! gpconfig -s gp_resgroup_print_operator_memory_limits;
-- end_ignore
\! echo $?;
-- start_ignore
\! gpconfig -s gp_resgroup_memory_policy_auto_fixed_mem;
-- ... | 50wu/gpdb | src/test/regress/sql/resource_group_gucs.sql | SQL | apache-2.0 | 695 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | sajeetharan/pentaho-kettle | ui/src/org/pentaho/di/ui/job/entries/pgpverify/JobEntryPGPVerifyDialog.java | Java | apache-2.0 | 20,639 |
# Development report for 22 May 2017
The tenth weekly development report. Feel free to send PRs if you want to add to these reports (or correct them).
There is now a new [linuxkit/virtsock] repository that contains Go bindings and sample code for
Hyper-V sockets and virtio sockets.
A [SIG Security](https://github.c... | JohnnyLeone/linuxkit | reports/2017-05-22.md | Markdown | apache-2.0 | 11,820 |
cask :v1 => 'retroarch' do
version '1.0.0.2'
if MacOS.release <= :snow_leopard
sha256 'a3ebc3a46d674433a1bf40c1b948021e752919b4b43da853fd73fb508bf40982'
url "http://buildbot.libretro.com/stable/OSX/RetroArch-OSX10.6-x86-v#{version}.zip"
else
sha256 '9d2232663f5dade1b4f648cc0cf0bb605c630b1c6bcbfe5ddce... | joaoponceleao/homebrew-cask | Casks/retroarch.rb | Ruby | bsd-2-clause | 630 |
<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2014, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
namespace PHPCI\Plugin;
use Exception;
use b8\View;
use PHPCI\Builder;
use PHPCI\Helper\Lang... | nelsonyang0710/PHPCI | PHPCI/Plugin/Email.php | PHP | bsd-2-clause | 5,888 |
/**
* Utility functions for jazzing up HTMLForm elements.
*/
( function ( mw, $ ) {
/**
* jQuery plugin to fade or snap to visible state.
*
* @param {boolean} instantToggle [optional]
* @return {jQuery}
*/
$.fn.goIn = function ( instantToggle ) {
if ( instantToggle === true ) {
return $(this).show()... | BRL-CAD/web | wiki/resources/mediawiki/mediawiki.htmlform.js | JavaScript | bsd-2-clause | 3,804 |
{% extends "account/base.html" %}
{% load url from future %}
{% load i18n %}
{% block head_title %}{% trans "Sign Out" %}{% endblock %}
{% block content %}
<h1>{% trans "Sign Out" %}</h1>
<p>{% trans 'Are you sure you want to sign out?' %}</p>
<form method="post" action="{% url 'account_logout' %}">
{% csrf_toke... | fpytloun/waliki | waliki_project/waliki_project/templates/allauth/account/logout.html | HTML | bsd-3-clause | 565 |
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://crbug.com/1180286">
<meta name="assert" content="The renderer should not crash.">
<span>This test passes if the renderer does not crash.</span>
<div>
<option></option>
</div>
<style>
div {
... | chromium/chromium | third_party/blink/web_tests/external/wpt/shadow-dom/event-on-pseudo-element-crash.html | HTML | bsd-3-clause | 550 |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | mxOBS/deb-pkg_trusty_chromium-browser | third_party/libc++/trunk/test/thread/futures/futures.shared_future/ctor_future.pass.cpp | C++ | bsd-3-clause | 1,627 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Text Decoration Test: text-decoration-thickness respects variable font properties</title>
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property">
<meta name="assert" content="text-decoration-thickness from-font re... | nwjs/chromium.src | third_party/blink/web_tests/external/wpt/css/css-text-decor/reference/text-decoration-thickness-from-font-variable-ref.html | HTML | bsd-3-clause | 1,245 |
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: 'object-fit: scale-down' on img element, with a PNG image and with various 'object-position' values</title>
<link rel=... | scheib/chromium | third_party/blink/web_tests/external/wpt/css/css-images/object-fit-scale-down-png-001i.html | HTML | bsd-3-clause | 2,752 |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* Crypto user configuration API.
*
* Copyright (C) 2011 secunet Security Networks AG
* Copyright (C) 2011 Steffen Klassert <steffen.klassert@secunet.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms... | CSE3320/kernel-code | linux-5.8/include/uapi/linux/cryptouser.h | C | gpl-2.0 | 5,336 |
*> \brief <b> DGGSVD computes the singular value decomposition (SVD) for OTHER matrices</b>
*
* =========== DOCUMENTATION ===========
*
* Online html documentation available at
* http://www.netlib.org/lapack/explore-html/
*
*> \htmlonly
*> Download DGGSVD + dependencies
*> <a href="http://www.netlib.org/... | LighthouseHPC/lighthouse | src/Dlighthouse/media/Doxygen/lapack/dggsvd.f | FORTRAN | mit | 13,994 |
import * as React from "react";
import {
channel,
ContextWithTheme,
Theme,
themeListener,
ThemeProvider,
withTheme
} from "theming";
// Typings currently accept non-plain-objects while they get rejected at runtime.
// There exists currently no typing for plain objects.
const runtimeErrorTheme: Theme = [];
... | borisyankov/DefinitelyTyped | types/theming/theming-tests.tsx | TypeScript | mit | 2,125 |
module Fog
module Ecloud
class Model < Fog::Model
attr_accessor :loaded
alias_method :loaded?, :loaded
def reload
instance = super
@loaded = true
instance
end
def load_unless_loaded!
unless @loaded
reload
end
end
end
end... | aamin005/Firdowsspace | vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/model.rb | Ruby | mit | 325 |
Meteor.methods({
getStatistics(refresh) {
if (!Meteor.userId()) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'getStatistics' });
}
if (RocketChat.authz.hasPermission(Meteor.userId(), 'view-statistics') !== true) {
throw new Meteor.Error('error-not-allowed', 'Not allowed', { met... | pitamar/Rocket.Chat | packages/rocketchat-statistics/server/methods/getStatistics.js | JavaScript | mit | 480 |
<?php
/*
* This file is part of the Sonata project.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace Sonata\IntlBundle\Tests\Timezone;
use Sonata\IntlBundle\Ti... | firestorm23/gyrolab-ste | vendor/sonata-project/intl-bundle/Tests/Timezone/LocaleBasedTimezoneDetectorTest.php | PHP | mit | 1,511 |
#include "pch.h"
using namespace concurrency;
using namespace Microsoft::WRL;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Devices::AllJoyn;
using namespace org::alljoyn::ControlPanel;
std::map<alljoyn_busobject, WeakReference*> PropertyProducer::SourceObjects;
std::map<allj... | tjaffri/msiot-samples | AllJoyn/Samples/MyLivingRoom/Models/org.alljoyn.ControlPanel/PropertyProducer.cpp | C++ | mit | 12,471 |
$(document).ready(() => {
const config: DataTables.Settings = {
// FixedColumns extension options
fixedColumns: {
heightMatch: 'semiauto',
leftColumns: 2,
rightColumns: 1
}
};
});
| dsebastien/DefinitelyTyped | types/datatables.net-fixedcolumns/datatables.net-fixedcolumns-tests.ts | TypeScript | mit | 248 |
// 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.Diagnostics;
using System.Reflection.Runtime.General;
namespace System.Reflection.Runtime.BindingFlagS... | zenos-os/zenos | vendor/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/BindingFlagSupport/Shared.cs | C# | mit | 9,059 |
/*
* ioreq.h: I/O request definitions for device models
* Copyright (c) 2004, Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including withou... | SunnyRaj/evade-4.6 | xen/include/public/hvm/ioreq.h | C | gpl-2.0 | 4,923 |
#include "base/arch.h"
#if defined(_M_IX86) || defined(_M_X64)
#include <emmintrin.h>
#include "fast_matrix.h"
void fast_matrix_mul_4x4_sse(float *dest, const float *a, const float *b) {
int i;
__m128 a_col_1 = _mm_loadu_ps(a);
__m128 a_col_2 = _mm_loadu_ps(&a[4]);
__m128 a_col_3 = _mm_loadu_ps(&a[8]);
__m128 ... | libretro/PSP1 | native/math/fast/fast_matrix_sse.c | C | gpl-2.0 | 707 |
/*
* S390 version
*
* Derived from "include/asm-i386/mmu_context.h"
*/
#ifndef __S390_MMU_CONTEXT_H
#define __S390_MMU_CONTEXT_H
#include <asm/pgalloc.h>
#include <linux/uaccess.h>
#include <linux/mm_types.h>
#include <asm/tlbflush.h>
#include <asm/ctl_reg.h>
static inline int init_new_context(struct task_stru... | minipli/linux-grsec | arch/s390/include/asm/mmu_context.h | C | gpl-2.0 | 4,282 |
#include <xen/types.h>
#include <xen/sched.h>
#include "mcaction.h"
#include "vmce.h"
#include "mce.h"
static struct mcinfo_recovery *
mci_action_add_pageoffline(int bank, struct mc_info *mi,
uint64_t mfn, uint32_t status)
{
struct mcinfo_recovery *rec;
if (!mi)
return NULL;
... | flexiant/xen | xen/arch/x86/cpu/mcheck/mcaction.c | C | gpl-2.0 | 4,135 |
/**********************************************************************
Audacity: A Digital Audio Editor
Internat.h
Markus Meyer
Dominic Mazzoni (Mac OS X code)
**********************************************************************/
#ifndef __AUDACITY_INTERNAT__
#define __AUDACITY_INTERNAT__
#include <wx/... | Marcusz97/CILP_Facilitatore_Audacity | src/Internat.h | C | gpl-2.0 | 3,707 |
/* eggaccelerators.h
* Copyright (C) 2002 Red Hat, Inc.
* Developed by Havoc Pennington
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (a... | herzi/monkey-bubble | src/ui/eggaccelerators.h | C | gpl-2.0 | 3,086 |
/*****************************************************************************
* *
* File: sge.c *
* $Revision: 1.26 $ *
* $... | kzlin129/tt-gpl | go12/linux-2.6.28.10/drivers/net/chelsio/sge.c | C | gpl-2.0 | 59,944 |
/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under ... | md-5/jdk10 | src/java.xml/share/classes/com/sun/org/apache/xml/internal/utils/ListingErrorHandler.java | Java | gpl-2.0 | 18,873 |
/*
* Copyright (C) 2011-2014 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;... | profglavcho/test | arch/arm/mach-mt6582/sprout/lcm/nt35590_dsi_cmd_6571_fwvga.c | C | gpl-2.0 | 8,397 |
/*
* cynapses libc functions
*
* Copyright (c) 2008-2013 by Andreas Schneider <asn@cryptomilk.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Li... | mnutt/owncloud-client | csync/src/std/c_macro.h | C | gpl-2.0 | 3,057 |
/*
* Copyright (c) 2002, 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 ... | md-5/jdk10 | test/jdk/javax/sound/sampled/LinuxCrash/ClipLinuxCrash.java | Java | gpl-2.0 | 5,675 |
// SPDX-License-Identifier: GPL-2.0
#include <subcmd/parse-options.h>
#include "evsel.h"
#include "cgroup.h"
#include "evlist.h"
#include "rblist.h"
#include "metricgroup.h"
#include "stat.h"
#include <linux/zalloc.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h... | GuillaumeSeren/linux | tools/perf/util/cgroup.c | C | gpl-2.0 | 10,742 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/* Copyright (C) 2017-2018 Netronome Systems, Inc. */
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <linux/bpf.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <bpf/bpf.h>
#include <bpf/libbpf.h>
#include "main.h"
... | chenshuo/linux-study | tools/bpf/bpftool/main.c | C | gpl-2.0 | 9,549 |
---
layout: compress
---
{% include _header.html %}
<main>
<div class="row">
<div class="medium-8 columns">
<a href="{{site.baseUrl}}/news.html" class="button tiny"><i class="fa fa-chevron-left"></i> Back</a><br/>
<article class="post" itemscope itemtype="http://schema.org/Blo... | SzwedzikPL/ACE3 | docs/_layouts/post.html | HTML | gpl-2.0 | 1,067 |
-----------------------------------------
-- Spell: Huton: San
-- Deals wind damage to an enemy and lowers its resistance against ice.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------... | UnknownX7/darkstar | scripts/globals/spells/huton_san.lua | Lua | gpl-3.0 | 1,271 |
# Copyright (c) 2018 Cisco and/or its affiliates.
#
# This file is part of Ansible
#
# Ansible 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 v... | Jorge-Rodriguez/ansible | test/units/modules/network/ftd/test_ftd_configuration.py | Python | gpl-3.0 | 5,145 |
# -*- coding: utf-8 -*-
# Copyright (C) 2006-2010 Søren Roug, European Environment Agency
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at you... | ashang/calibre | src/odf/opendocument.py | Python | gpl-3.0 | 26,274 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.