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) 2013-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | deadman96385/android_kernel_nextbit_msm8992 | drivers/cpufreq/cpufreq_persistent_stats.c | C | gpl-2.0 | 14,594 |
#!/usr/bin/env python3
# encoding: utf-8
"""
This parser uses the --preprocess option of wesnoth so a working
wesnoth executable must be available at runtime if the WML to parse
contains preprocessing directives.
Pure WML can be parsed as is.
For example:
wml = ""
[unit]
id=elve
name=Elve
... | spixi/wesnoth | data/tools/wesnoth/wmlparser3.py | Python | gpl-2.0 | 27,879 |
<?php
/*
$Id: loginbox.php,v 1.2 2004/03/29 00:18:17 ccwjr Exp $
CRE Loaded, Open Source E-Commerce Solutions
http://www.creloaded.com
Copyright (c) 2007 CRE Loaded
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
define('BOX_HEADING_LOGIN_BOX_MY_ACCOUNT','My Account Info');... | loadedcommerce/Loaded6CE | Loaded_Commerce_CE/includes/languages/english/loginbox.php | PHP | gpl-2.0 | 822 |
/*
*
* Copyright 2009-2016, LabN Consulting, L.L.C.
*
*
* 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.
*
* Th... | freerangerouting/frr | bgpd/rfapi/vnc_import_bgp.h | C | gpl-2.0 | 2,809 |
#include "cm_local.h"
#include "cm_patch.h"
//#define CULL_BBOX
/*
This file does not reference any globals, and has these entry points:
void CM_ClearLevelPatches( void );
struct patchCollide_s *CM_GeneratePatchCollide( int width, int height, const vec3_t *points );
void CM_TraceThroughPatchCollide( traceWork_t *t... | abergmeier/jedi_outcast | code/qcommon/cm_patch.cpp | C++ | gpl-2.0 | 74,740 |
/*
* Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either ver... | 123xlex/TrinityCore | src/common/Platform/ServiceWin32.h | C | gpl-2.0 | 1,071 |
/*
* Copyright (c) 2010, 2013, 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 | src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/linker/NashornBottomLinker.java | Java | gpl-2.0 | 14,098 |
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta content="charset=utf-8">
<title>FlexSlider 2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<!-- Syntax Highlighter -->
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
... | sunlight25/d8 | web/themes/contrib/zircon/assets/includes/flexslider/demo/video.html | HTML | gpl-2.0 | 7,522 |
<?php
/*
* Copyright 2010-2011 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the... | wshearn/openshift-quickstart-modx | php/core/model/aws/services/ec2.class.php | PHP | gpl-2.0 | 256,814 |
/* $Id: exitcodes.h,v 1.7 2005/08/31 17:36:11 kloczek Exp $ */
/*
* Exit codes used by shadow programs
*/
#define E_SUCCESS 0 /* success */
#define E_NOPERM 1 /* permission denied */
#define E_USAGE 2 /* invalid command syntax */
#define E_BAD_ARG 3 /* invalid argument to option */
#de... | rhuitl/uClinux | user/shadow/lib/exitcodes.h | C | gpl-2.0 | 561 |
/* $Id: bwtwofb.c,v 1.13 2000/02/14 02:50:25 davem Exp $
* bwtwofb.c: BWtwo frame buffer driver
*
* Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
* Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
* Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
* Copyright (C) 1998 Pavel Machek (pavel@... | QiuLihua83/linux-2.4.0 | drivers/video/bwtwofb.c | C | gpl-2.0 | 6,975 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | FPLD/project0 | vendor/magento/zendframework1/library/Zend/Gdata/Health/Query.php | PHP | gpl-2.0 | 2,102 |
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | MaddTheSane/scummvm | engines/scumm/imuse/instrument.h | C | gpl-2.0 | 2,273 |
#! /usr/bin/env bash
set -e
cd $(dirname $0)/..
doxygen
chmod -R g+rx doc/
| OursDesCavernes/springlobby | tools/update-docs.sh | Shell | gpl-2.0 | 78 |
/*
* Copyright (C) 2008-2013 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 GNU General Public License as published by the
* Free Software ... | TrinityDeveloper/TrinityCore | src/server/scripts/EasternKingdoms/Stratholme/boss_timmy_the_cruel.cpp | C++ | gpl-2.0 | 2,422 |
/*****************************************************************************/
// Copyright 2006-2007 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in
// accordance with the terms of the Adobe license agreement accompanying it.
/***********... | centic9/digikam-ppa | extra/kipi-plugins/dngconverter/dngwriter/extra/dng_sdk/dng_mosaic_info.h | C | gpl-2.0 | 8,235 |
/*
* linux/arch/arm/mach-at91/board-csb337.c
*
* Copyright (C) 2005 SAN People
*
* 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) a... | kidmaple/CoolWall | linux-2.6.x/arch/arm/mach-at91/board-csb337.c | C | gpl-2.0 | 4,777 |
/*
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#define CONFIG_SYS_NS16550_COM1 NV_ADDRESS_MAP_APB_UARTB_BASE
| chpec/uboot-ac100 | include/configs/chromeos/tegra2/wario/parts/uart.h | C | gpl-2.0 | 250 |
/* Assembler interface for targets using CGEN. -*- C -*-
CGEN: Cpu tools GENerator
THIS FILE IS MACHINE GENERATED WITH CGEN.
- the resultant file is machine generated, cgen-asm.in isn't
Copyright (C) 1996-2017 Free Software Foundation, Inc.
This file is part of libopcodes.
This library is free sof... | totalspectrum/binutils-propeller | opcodes/ip2k-asm.c | C | gpl-2.0 | 24,746 |
<?php
use Twig\Node\Expression\Binary\MatchesBinary;
class_exists('Twig\Node\Expression\Binary\MatchesBinary');
@trigger_error('Using the "Twig_Node_Expression_Binary_Matches" class is deprecated since Twig version 2.7, use "Twig\Node\Expression\Binary\MatchesBinary" instead.', \E_USER_DEPRECATED);
if (false) {
... | tobiasbuhrer/tobiasb | vendor/twig/twig/lib/Twig/Node/Expression/Binary/Matches.php | PHP | gpl-2.0 | 494 |
/*
* f_mass_storage.c -- Mass Storage USB Composite Function
*
* Copyright (C) 2003-2008 Alan Stern
* Copyright (C) 2009 Samsung Electronics
* Author: Michal Nazarewicz <mina86@mina86.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modific... | mericon/Xp_Kernel_LGH850 | virt/drivers/usb/gadget/function/f_mass_storage.c | C | gpl-2.0 | 123,279 |
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2015-2016 The fiat-crypto Authors.
* Copyright (C) 2018-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*
* This is a machine-generated formally verified implementation of Curve25519
* ECDH from: <https://github.com/mit-plv/fiat-crypto>.... | WireGuard/WireGuard | src/crypto/zinc/curve25519/curve25519-fiat32.c | C | gpl-2.0 | 30,164 |
/*
* Copyright (c) 2007 Mellanox Technologies. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this sou... | XXLRay/linux-2.6.32-rhel6.x86_64 | drivers/net/mlx4/en_main.c | C | gpl-2.0 | 8,619 |
<?php
/*
Copyright 2009, idesigneco.com
http://idesigneco.com
*/
class IDE_Validator {
public static function validate($method, $data, $arguments = null) {
$method = '_'.$method;
if(method_exists('IDE_Validator', $method)) {
return self::$method($data, $arguments);
}
}
private static function _... | CoHoop/CoHoop-Blog | wp-content/themes/econews/admin/IDE_Validator.class.php | PHP | gpl-2.0 | 1,253 |
<? /*
LibreSSL - CAcert web application
Copyright (C) 2004-2008 CAcert 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 program is distrib... | BenBE/CAcert | stamp/displogo.php | PHP | gpl-2.0 | 1,971 |
#!/usr/bin/env bash
plan 20
. "$LIB_DIR/report_formatting.sh"
is \
"$(shorten 10485760 1)" \
"10.0M" \
"10485760, 1 precision, default divisor => 10.0M"
is \
"$(shorten 3145728000 1)" \
"2.9G" \
"3145728000, 1 precis... | fipar/percona-toolkit | t/lib/bash/report_formatting.sh | Shell | gpl-2.0 | 2,654 |
<?php
# TemaTres : aplicación para la gestión de lenguajes documentales # #
# #
# Copyright (C) 2004-2008 Diego Ferreyra tematres@r020.com.ar
# Distribuido bajo Licencia GNU Public License, versión 2 (de junio de 1.991) Free Software... | SIBiUSP/tematres | version181/src/install.php | PHP | gpl-2.0 | 22,231 |
<?php
/** This file is part of KCFinder project
*
* @desc Settings panel functionality
* @package KCFinder
* @version 2.31
* @author Pavel Tzonkov <pavelc@users.sourceforge.net>
* @copyright 2010, 2011 KCFinder Project
* @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
* @l... | loadedcommerce/Loaded6CE | Loaded_Commerce_CE/admin/editors/kcfinder/js/browser/settings.js | JavaScript | gpl-2.0 | 3,422 |
var http = require('http');
function jsonHttpRequest(host, port, data, callback){
var options = {
hostname: host,
port: port,
path: '/json_rpc',
method: 'POST',
headers: {
'Content-Length': data.length,
'Content-Type': 'application/json',
... | xpbcreator/pebblepool | lib/apiInterfaces.js | JavaScript | gpl-2.0 | 2,222 |
// you need the Oopo ps3libraries to work with freetype
#include <ft2build.h>
#include <freetype/freetype.h>
#include <freetype/ftglyph.h>
#include "ttf_render.h"
/******************************************************************************************************************************************************/
/... | Alexandersss/IRISMAN-UNOFFICIAL | source/ttf_render.c | C | gpl-3.0 | 14,796 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MissionPlanner;
using GMap.NET;
using GMap.NET.WindowsForms;
using GMap.NET.WindowsForms.Markers;
using MissionPlann... | marcoarruda/MissionPlanner | ExtLibs/Grid/Grid.cs | C# | gpl-3.0 | 22,856 |
<?php
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
* Copyright (c) 2001-2014 *
* ... | imagesdesmaths/spip | plugins-dist/dump/prive/squelettes/contenu/restaurer_fonctions.php | PHP | gpl-3.0 | 1,631 |
----------------------------------
-- Area: Kuftal Tunnel
-- NM: Amemet
-- ToDo: Amemet should walk in a big circle
-----------------------------------
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob,killer,ally)
-- Set Amemet's Window Open Time
... | nesstea/darkstar | scripts/zones/Kuftal_Tunnel/mobs/Amemet.lua | Lua | gpl-3.0 | 696 |
/**
* Module dependencies
*/
var XMLHttpRequest = require('xmlhttprequest-ssl');
var XHR = require('./polling-xhr');
var JSONP = require('./polling-jsonp');
var websocket = require('./websocket');
/**
* Export transports.
*/
exports.polling = polling;
exports.websocket = websocket;
/**
* Polli... | tohshige/test | used12_1801_bak/node_modules/engine.io-client/lib/transports/index.js | JavaScript | gpl-3.0 | 1,140 |
describe('Application controller', function(){
beforeEach(module('mpk'));
var scope, applicationController, kanbanRepositoryMock, themesProviderMock, window;
var renamer, saver;
beforeEach(inject(function($rootScope, $controller, $window){
renamer = jasmine.createSpy('Kanban Rename Function');
saver = jas... | Khamull/my-personal-kanban | test/spec/controllers/ApplicationControllerSpec.js | JavaScript | gpl-3.0 | 2,691 |
#
# CBRAIN Project
#
# Copyright (C) 2008-2012
# The Royal Institution for the Advancement of Learning
# McGill University
#
# 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 ... | crocodoyle/cbrain | BrainPortal/db/migrate/20110506152411_remove_bourreau_tool_join.rb | Ruby | gpl-3.0 | 1,215 |
<!--
Autor=Javier Cancela
Fecha= 17/02/2016
Licencia=GPL v3
Versión=1.0
Descripción=
Copyright (C) 2016 Javier Cancela
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 Foundat... | cancelajavi/2-DAW | Tema5/plantillaPaco/vista/html/enlace_inicio.html | HTML | gpl-3.0 | 866 |
--TEST--
Test xml_get_error_code() function : error conditions
--SKIPIF--
<?php
if (!extension_loaded("xml")) {
print "skip - XML extension not loaded";
}
?>
--FILE--
<?php
/* Prototype : proto int xml_get_error_code(resource parser)
* Description: Get XML parser error code
* Source code: ext/xml/xml.c
* Ali... | tukusejssirs/eSpievatko | spievatko/espievatko/prtbl/srv/php-5.5.11/ext/xml/tests/xml_get_error_code_error.phpt | PHP | gpl-3.0 | 1,204 |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\console\controllers;
use Yii;
use yii\base\InvalidConfigException;
use yii\base\InvalidParamException;
use yii\console\Controller;
use yii\console\Except... | Pgans/yii2a-devices | vendor/yiisoft/yiisoft/yii2/console/controllers/FixtureController.php | PHP | gpl-3.0 | 17,131 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration |
\\ / A nd | For copyright notice see file Copyright
\\/ M anipulation |
---------------------... | Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.1 | src/finiteVolume/finiteVolume/d2dt2Schemes/d2dt2Scheme/d2dt2Scheme.H | C++ | gpl-3.0 | 5,948 |
<?php
/*
* Copyright 2014 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... | ftisunpar/BlueTape | vendor/google/apiclient-services/src/Google/Service/Document/GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment.php | PHP | gpl-3.0 | 1,066 |
#!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, 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 3 of the Lic... | simonwydooghe/ansible | lib/ansible/modules/network/fortios/fortios_firewall_ssl_server.py | Python | gpl-3.0 | 15,241 |
body {
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
-webkit-user-select: none;
background-color:#32383d;
font-family: 'RobotoRegular', 'Droid Sans', 'Segoe UI', Segoe, 'San Francisco', 'Helvetica Neue', Helvetica, Arial, Geneva, sans-serif;
font-size:12px;
}
.app {
backgroun... | ch0c4/todobetaserie | www/css/index.css | CSS | gpl-3.0 | 1,242 |
CCOLLECT_CONF=./conf ./ccollect.sh daily -v remote1
| greendeath/ccollect | test/remote.sh | Shell | gpl-3.0 | 52 |
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2011, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and binary fo... | RobsonRojas/frertos-udemy | Keil-FreeRTOS-Sample-Project/Keil-FreeRTOS/FreeRTOSv9.0.0/FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained_IAR_Keil/libchip_samv7/include/pio_it.h | C | gpl-3.0 | 3,373 |
/**
* 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.ui.io/src/com/aptana/ide/ui/io/internal/FileSystemObjectPropertyTester.java | Java | gpl-3.0 | 2,631 |
<?php
/**
* Users Online Module 1.2
* $Id: mod_comprofileronline.php 1838 2012-09-27 14:28:21Z beat $
*
* @version 1.2
* @package Community Builder 1.2
* @Copyright (C) 2004-2011 Beat and 2000 - 2003 Miro International Pty Ltd
* @ All rights reserved
* @ Mambo Open Source is Free Software
* @ Released under ... | rboomsma/barspelers | modules/mod_comprofileronline/mod_comprofileronline.php | PHP | gpl-3.0 | 3,166 |
<?php
// This file is part of Moodle - https://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... | markn86/moodle | install/lang/el/install.php | PHP | gpl-3.0 | 12,875 |
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
from django.contrib.auth.models import User
from account.models import Account
class Migration(DataMigration):
def forwards(self, orm):
# we need to associate each user to an account o... | GISPPU/GrenadaLandInformation | geonode/people/migrations/0003_link_users_to_account.py | Python | gpl-3.0 | 10,196 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Prototype Unit test file | Number</title>
<meta http-equiv="content-type" content="text/html; charset=ut... | Yukarumya/Yukarum-Redfoxes | dom/tests/mochitest/ajax/prototype/test/unit/tmp/number_test.html | HTML | mpl-2.0 | 1,159 |
<html>
<head>
<title>Iframe test for bug 304459</title>
</head>
<body">
<script>
Object.prototype.x = "oops";
</script>
</body>
</html>
| Yukarumya/Yukarum-Redfoxes | dom/tests/mochitest/bugs/iframe_bug304459-1.html | HTML | mpl-2.0 | 139 |
/**
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* ba... | openelisglobal/openelisglobal-core | app/src/us/mn/state/health/lims/systemuser/valueholder/SystemUser.java | Java | mpl-2.0 | 2,524 |
<%! from django.utils.translation import ugettext as _ %>
<%! from datetime import datetime, timedelta %>
<%! import pytz %>
<%page args="section_data"/>
<%include file="add_coupon_modal.html" args="section_data=section_data" />
<%include file="edit_coupon_modal.html" args="section_data=section_data" />
<%include file=... | jswope00/griffinx | lms/templates/instructor/instructor_dashboard_2/e-commerce.html | HTML | agpl-3.0 | 28,417 |
module Spec
module Example
module Subject
module ExampleGroupMethods
# Defines an explicit subject for an example group which can then be the
# implicit receiver (through delegation) of calls to +should+.
#
# == Examples
#
# describe CheckingAccount, "with $... | ging/vcc | vendor/gems/rspec-1.3.1/lib/spec/example/subject.rb | Ruby | agpl-3.0 | 3,848 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | acontes/programming | src/Examples/org/objectweb/proactive/examples/readers/ReadCanvas.java | Java | agpl-3.0 | 3,705 |
/**
* Copyright (C) 2009-2013 FoundationDB, LLC
*
* 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 option) any later version.
*
* Thi... | AydinSakar/sql-layer | src/test/java/com/foundationdb/sql/optimizer/ViewTest.java | Java | agpl-3.0 | 2,378 |
/**
* Shopware 4
* Copyright © shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission a... | Chaz0r/test | templates/_default/backend/index/app.js | JavaScript | agpl-3.0 | 2,751 |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2008, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... | ilyessou/jfreechart | tests/org/jfree/chart/plot/junit/SpiderWebPlotTests.java | Java | lgpl-2.1 | 12,593 |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2013, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreech... | sternze/CurrentTopics_JFreeChart | source/org/jfree/chart/renderer/category/CategoryStepRenderer.java | Java | lgpl-2.1 | 13,685 |
// ---------------------------------------------------------------------
//
// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | jperryhouts/dealii | tests/mappings/mapping_q1_eulerian.cc | C++ | lgpl-2.1 | 3,231 |
/***************************************************************************
* Copyright (c) 2008 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. *
* ... | sanguinariojoe/FreeCAD | src/Base/BoundBoxPyImp.cpp | C++ | lgpl-2.1 | 18,177 |
description(
"This test checks that iterating a large array backwards works correctly."
);
var bytes = new Array();
function prepare(nbytes) {
var i = nbytes - 1;
while (i >= 0) {
bytes[i] = new Number(i);
i -= 1;
}
}
function verify(nbytes) {
var i = nbytes - 1;
while (i >= 0) {
... | youfoh/webkit-efl | LayoutTests/fast/js/script-tests/array-iterate-backwards.js | JavaScript | lgpl-2.1 | 560 |
////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2001
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks.imports.avoidstarimport;
import com.puppycrawl.tools.checks... | jochenvdv/checkstyle | src/test/resources/com/puppycrawl/tools/checkstyle/checks/imports/avoidstarimport/InputAvoidStarImportDefault.java | Java | lgpl-2.1 | 3,561 |
//---------------------------- spherical_manifold_01.cc ---------------------------
// Copyright (C) 2011 - 2015 by the mathLab team.
//
// This file is subject to LGPL and may not be distributed
// without copyright and license information. Please refer
// to the file deal.II/doc/license.html for the t... | natashasharma/dealii | tests/manifold/spherical_manifold_02.cc | C++ | lgpl-2.1 | 1,788 |
/*
* Copyright (C) 2005-2013 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
* (at y... | Tybion/community-edition | projects/remote-api/source/java/org/alfresco/repo/web/auth/BasicAuthCredentials.java | Java | lgpl-3.0 | 2,349 |
/*
* Copyright (C) 2006, 2007, 2008, 2009 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 li... | nawawi/wkhtmltopdf | webkit/Source/WebCore/html/ImageDocument.h | C | lgpl-3.0 | 2,619 |
'use strict';
var ExtractTextPlugin = require('extract-text-webpack-plugin')
module.exports = {
entry: {
'index': './index.styl',
'index-no-normalize': './style/index.styl'
},
output: {
filename: 'index.css'
},
module: {
loaders: [
{
test... | odedgol/trackingUi | node_modules/react-input-field/build-style.config.js | JavaScript | unlicense | 524 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.CodeAnalysis.Diagnostics.Telemetry
{
/// <summary>
/// Contains the counts of registered actions for an analyzer.
/// </summa... | VPashkov/roslyn | src/Compilers/Core/Portable/DiagnosticAnalyzer/AnalyzerActionCounts.cs | C# | apache-2.0 | 3,138 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.spatial;
import org.apache.lucene... | robin13/elasticsearch | x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/LocalStateSpatialPlugin.java | Java | apache-2.0 | 1,211 |
<?php
abstract class PhabricatorEditEngineSettingsPanel
extends PhabricatorSettingsPanel {
final public function processRequest(AphrontRequest $request) {
$viewer = $this->getViewer();
$user = $this->getUser();
if ($user && ($user->getPHID() === $viewer->getPHID())) {
$is_self = true;
} els... | dannysu/phabricator | src/applications/settings/panel/PhabricatorEditEngineSettingsPanel.php | PHP | apache-2.0 | 1,888 |
#include <ctype.h>
#include <dirent.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <confd.h>
#include "linuxcfg_api.h"
#include "utils.h"
void find_process_ids(inode_pid_pair_t * pairs, int size)
{
char name[1024];
DIR *dir;
struct dirent *d;
int pid = 0;
... | kimjinyong/i2nsf-framework | Hackathon-111/SecurityController/confd-6.6/examples.confd/linuxcfg/ipmibs/utils.c | C | apache-2.0 | 12,990 |
var NAME = "InvalidDerefInputError";
var MESSAGE = "Deref can only be used with a non-primitive object from get, set, or call.";
/**
* An invalid deref input is when deref is used with input that is not generated
* from a get, set, or a call.
*
* @param {String} message
* @private
*/
function InvalidDerefInputErr... | darioajr/falcor | lib/errors/InvalidDerefInputError.js | JavaScript | apache-2.0 | 708 |
/*
* IzPack - Copyright 2001-2012 Julien Ponge, All Rights Reserved.
*
* http://izpack.org/
* http://izpack.codehaus.org/
*
* 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
*
* htt... | codehaus/izpack | izpack-api/src/main/java/com/izforge/izpack/api/installer/InstallerRequirementDisplay.java | Java | apache-2.0 | 943 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Source listing for Daytime.3</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../../boost_asi... | NixaSoftware/CVis | venv/bin/doc/html/boost_asio/tutorial/tutdaytime3/src.html | HTML | apache-2.0 | 18,297 |
/*
* 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, software
* distribut... | totticarter/presto | presto-main/src/main/java/com/facebook/presto/operator/PagesIndex.java | Java | apache-2.0 | 14,085 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using KafkaNet.Common;
using KafkaNet.Statistics;
namespace KafkaNet.Protocol
{
public class ProduceRequest : BaseRequest, IKafkaRequest<ProduceResponse>
{
/// <summary>
/// Provide a hint to the broker c... | CenturyLinkCloud/kafka-net | src/kafka-net/Protocol/ProduceRequest.cs | C# | apache-2.0 | 7,324 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Http.Description;
using _02aContentNegotation.Models;
namespace _02aContentNegotation.Controllers
{
public class DemoController : ApiController
{
private static readonly List<DemoItem> Items;
... | brianbrawe/MVA-WebAPIDesign | 02 - Basic Design/02aContentNegotation/Controllers/DemoController.cs | C# | apache-2.0 | 2,348 |
package org.pitest.maven;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.File;
import org.junit.Test;
public class PathToJavaClassConverterTest {
private static final String SRC = new File("src/java"... | michaelmnich/pitest-lib | pitest-maven/src/test/java/org/pitest/maven/PathToJavaClassConverterTest.java | Java | apache-2.0 | 1,854 |
---
title: "Custom window patterns"
---
<!--
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, so... | lukecwik/incubator-beam | website/www/site/content/en/documentation/patterns/custom-windows.md | Markdown | apache-2.0 | 5,337 |
using System;
using System.Collections.Generic;
using System.Linq;
using Android.Content;
using Android.OS;
using Android.Util;
using Android.Widget;
using EstimoteSdk;
using JavaObject = Java.Lang.Object;
namespace Estimotes.Droid
{
class FindSpecificBeacon : BeaconFinder, BeaconManager.IRangingListener
{
... | OctanMan/Estimotes-Xamarin | samples/Estimotes.Droid/FindSpecificBeacon.cs | C# | apache-2.0 | 2,365 |
/*
* 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 ... | ArvinDevel/onlineAggregationOnSparkV2 | core/src/main/scala/org/apache/spark/FutureAction.scala | Scala | apache-2.0 | 10,744 |
"""Support for ZHA covers."""
from __future__ import annotations
import asyncio
import functools
import logging
from zigpy.zcl.foundation import Status
from homeassistant.components.cover import (
ATTR_CURRENT_POSITION,
ATTR_POSITION,
DEVICE_CLASS_DAMPER,
DEVICE_CLASS_SHADE,
DOMAIN,
CoverEnti... | lukas-hetzenecker/home-assistant | homeassistant/components/zha/cover.py | Python | apache-2.0 | 10,222 |
/*
* 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 ... | WangTaoTheTonic/flink | flink-contrib/flink-storm-examples/src/main/java/org/apache/flink/storm/wordcount/BoltTokenizerWordCount.java | Java | apache-2.0 | 4,236 |
/*
* Copyright 2012, 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 conditio... | thecocce/show-java | app/src/main/java/org/jf/dexlib2/util/FieldUtil.java | Java | apache-2.0 | 2,416 |
/*
* 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 ... | 1haodian/spark | sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/GenerateSafeProjection.scala | Scala | apache-2.0 | 7,022 |
/**
******************************************************************************
* @file stm32l5xx_hal_usart.c
* @author MCD Application Team
* @brief USART HAL module driver.
* This file provides firmware functions to manage the following
* functionalities of the Universal Synchro... | mbedmicro/mbed | targets/TARGET_STM/TARGET_STM32L5/STM32Cube_FW/STM32L5xx_HAL_Driver/stm32l5xx_hal_usart.c | C | apache-2.0 | 123,962 |
/*
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.management.relation;
import java.util.ArrayList; // for Javadoc
import java.util.List;
... | shun634501730/java_source_cn | src_en/javax/management/relation/RelationType.java | Java | apache-2.0 | 1,475 |
###### What does your Pull Request do (check all that apply)?
Choose the most relevant items and use the following title template to name
your Pull Request.
- [ ] New Instant Answer: **`New {IA Name} Instant Answer`**
- [ ] Improvement
- [ ] Bug fix: **`{IA Name}: Fix {Issue number or one-line description}`**
... | whalenrp/zeroclickinfo-spice | .github/PULL_REQUEST_TEMPLATE.md | Markdown | apache-2.0 | 928 |
#include "cbase.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
// Dummy classes for entities that are created clientside. Stops warnings about unknown entities when loading the map
class CASW_Snow_Volume_Dummy : public CServerOnlyPointEntity
{
DECLARE_CLASS( CASW_Snow_Vo... | ppittle/AlienSwarmDirectorMod | trunk/src/game/server/swarm/asw_clientside_dummies.cpp | C++ | apache-2.0 | 790 |
#region Copyright
//=======================================================================================
// Microsoft Azure Customer Advisory Team
//
// This sample is supplemental to the technical guidance published on my personal
// blog at http://blogs.msdn.com/b/paolos/.
//
// Author: Paolo Salvatori
//=====... | kdcllc/ServiceBusExplorer | src/Helpers/OnOffDeviceBrokeredMessageGenerator.cs | C# | apache-2.0 | 9,240 |
/*
* 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 ... | Fabryprog/camel | components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsBinding.java | Java | apache-2.0 | 5,027 |
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* excep... | keshvari/cas | cas-server-core/src/test/java/org/jasig/cas/authentication/principal/SimpleWebApplicationServiceImplTests.java | Java | apache-2.0 | 4,203 |
/*
* Copyright 2000-2014 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... | MichaelNedzelsky/intellij-community | python/src/com/jetbrains/python/buildout/BuildoutFacet.java | Java | apache-2.0 | 14,105 |
# Update a user
{generate_api_description(/users/{user_id}:patch)}
## Usage examples
{start_tabs}
{tab|python}
{generate_code_example(python)|/users/{user_id}:patch|example}
{tab|curl}
{generate_code_example(curl)|/users/{user_id}:patch|example}
{end_tabs}
## Parameters
{generate_api_arguments_table|zulip.yaml... | showell/zulip | templates/zerver/api/update-user.md | Markdown | apache-2.0 | 593 |
<?php
/*
* This file is part of the overtrue/socialite.
*
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Overtrue\Socialite\Providers;
use Overtrue\Socialite\AccessTokenInterface;
use Overtrue\Socialit... | evoshop/evo_maa | vendor/overtrue/socialite/src/Providers/FacebookProvider.php | PHP | apache-2.0 | 4,034 |
package plugins
import (
"bytes"
"encoding/json"
"io"
"io/ioutil"
"net/http"
"net/url"
"time"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/plugins/transport"
"github.com/docker/go-connections/sockets"
"github.com/docker/go-connections/tlsconfig"
)
const (
defaultTimeOut = 30
)
// NewClient... | runshenzhu/swarmkit | vendor/github.com/docker/docker/pkg/plugins/client.go | GO | apache-2.0 | 4,564 |
using System;
using System.Linq;
using Nop.Core.Domain.Customers;
using Nop.Core.Domain.Localization;
using Nop.Core.Domain.Polls;
using Nop.Tests;
using NUnit.Framework;
namespace Nop.Data.Tests.Polls
{
[TestFixture]
public class PollPersistenceTests : PersistenceTest
{
[Test]
public void... | jornfilho/nopCommerce | source/Tests/Nop.Data.Tests/Polls/PollPersistenceTests.cs | C# | apache-2.0 | 4,677 |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not ... | kishorvpatil/incubator-storm | storm-client/src/jvm/org/apache/storm/streams/processors/ProcessorContext.java | Java | apache-2.0 | 1,963 |
/**
* 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... | mahak/hbase | hbase-common/src/main/java/org/apache/hadoop/hbase/types/OrderedFloat32.java | Java | apache-2.0 | 3,048 |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LIC... | flingone/frameworks_base_cmds_remoted | libs/boost/libs/geometry/test/robustness/overlay/areal_areal/intersects.cpp | C++ | apache-2.0 | 5,584 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.