code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2011 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obta... | bhlzlx/ogre | RenderSystems/GL/src/OgreGLDepthBuffer.cpp | C++ | mit | 4,568 |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | mobilecp/Windows-universal-samples | edpsamples/cs/scenario1_setup.xaml.cs | C# | mit | 1,622 |
package com.iluwatar;
public class Sergeant extends Unit {
public Sergeant(Unit ... children) {
super(children);
}
@Override
public void accept(UnitVisitor visitor) {
visitor.visitSergeant(this);
super.accept(visitor);
}
@Override
public String toString() {
return "sergeant";
}
}
... | zfu/java-design-patterns | visitor/src/main/java/com/iluwatar/Sergeant.java | Java | mit | 321 |
/*
Copyright
*/
//go:generate rm -vf autogen/gen.go
//go:generate go-bindata -pkg autogen -o autogen/gen.go ./static/... ./templates/...
//go:generate mkdir -p vendor/github.com/docker/docker/autogen/dockerversion
//go:generate cp script/dockerversion vendor/github.com/docker/docker/autogen/dockerversion/dockerversio... | dontrebootme/traefik | generate.go | GO | mit | 339 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace spec\Sylius\Bundle\CoreBundle\EventListener;
use Doctrine\ORM\Eve... | rainlike/justshop | vendor/sylius/sylius/src/Sylius/Bundle/CoreBundle/spec/EventListener/CanonicalizerListenerSpec.php | PHP | mit | 3,904 |
using System;
using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using DotSpatial.Controls;
using DotSpatial.Controls.Header;
using DotSpatial.Symbology;
namespace DotSpatial.Plugins.Contourer
{
public class Snapin : Extension
{
public override void Activate()
... | swsglobal/DotSpatial | Source/DotSpatial.Plugins.Contourer/Snapin.cs | C# | mit | 3,106 |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... | ptmt/flow-declarations | test/node/test-tls-friendly-error-message.js | JavaScript | mit | 1,945 |
Kanboard.App = function() {
this.controllers = {};
};
Kanboard.App.prototype.get = function(controller) {
return this.controllers[controller];
};
Kanboard.App.prototype.execute = function() {
for (var className in Kanboard) {
if (className !== "App") {
var controller = new Kanboard[cla... | fguillot/kanboard | assets/js/src/App.js | JavaScript | mit | 3,355 |
/*
* Should
* Copyright(c) 2010-2014 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
module.exports = function(should, Assertion) {
/**
* Assert given object is NaN
* @name NaN
* @memberOf Assertion
* @category assertion numbers
* @example
*
* (10).should.not.be.NaN();
* NaN.should... | XuanyuZhao1984/MeanJS_train1 | node_modules/should/lib/ext/number.js | JavaScript | mit | 3,086 |
<?php
/**
* Copyright 2011 Bas de Nooijer. 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 cond... | bitclaw/solr-test | www/vendor/solarium/solarium/tests/Solarium/Result/Select/FacetSetTest.php | PHP | mit | 2,846 |
using System;
using System.IO;
using System.Collections;
using System.Runtime.InteropServices;
namespace Earlab
{
public delegate void LogCallback(String LogMessage);
/// <summary>
/// DesktopEarlabDLL is a wrapper class that wraps the DesktopEarlabDLL.dll functionality
/// and exposes it to C# applicati... | AuditoryBiophysicsLab/EarLab | tags/release-2.2/EarLab ExperimentManager/DesktopEarlabDLL.cs | C# | mit | 5,656 |
class SurveyMrqAnswer < ActiveRecord::Base
acts_as_paranoid
attr_accessible :user_course_id, :question_id, :option_id, :selected_options, :survey_submission_id
belongs_to :user_course
belongs_to :question, class_name: "SurveyQuestion"
belongs_to :option, class_name: "SurveyQuestionOption"
belongs_to :surv... | nusedutech/coursemology.org | app/models/survey_mrq_answer.rb | Ruby | mit | 455 |
<?php
namespace Kendo\UI;
class SchedulerMessagesRecurrenceEditorMonthly extends \Kendo\SerializableObject {
//>> Properties
/**
* The text similar to "Day " displayed in the scheduler recurrence editor.
* @param string $value
* @return \Kendo\UI\SchedulerMessagesRecurrenceEditorMonthly
*/
pu... | deviffy/laravel-kendo-ui | wrappers/php/lib/Kendo/UI/SchedulerMessagesRecurrenceEditorMonthly.php | PHP | mit | 1,316 |
require 'oauth/signature/base'
module OAuth::Signature
class PLAINTEXT < Base
implements 'plaintext'
def signature
signature_base_string
end
def ==(cmp_signature)
signature == escape(cmp_signature)
end
def signature_base_string
secret
end
def secret
escape(... | maximilien/people_finder | vendor/plugins/oauth/lib/oauth/signature/plaintext.rb | Ruby | mit | 345 |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using COM = System.Runtime.InteropServices.ComTypes;
// Disable obsolete warnings about VarEnum and COM-marshaling APIs in CoreCLR
#pragma warning disable 618
... | JamesWTruher/PowerShell-1 | src/System.Management.Automation/engine/COM/ComInvoker.cs | C# | mit | 18,455 |
// 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.
#nullable enable
using System.Collections.Generic;
namespace Microsoft.CodeAnalysis.CSharp
{
public static pa... | jmarolf/roslyn | src/Compilers/CSharp/Portable/Syntax/SyntaxKindEqualityComparer.cs | C# | mit | 1,204 |
#!/usr/bin/env node
'use strict';
var fs = require('fs'),
path = require('path'),
exec = require('child_process').exec,
chalk = require('chalk'),
Table = require('cli-table');
var fileNames = [
'abc',
'amazon',
//'eloquentjavascript',
//'es6-draft',
'es6-table',
'google',
'html-minifier... | psychoss/html-minifier | benchmark.js | JavaScript | mit | 3,946 |
steal('can/util', 'can/observe', function(can) {
// ** - 'this' will be the deepest item changed
// * - 'this' will be any changes within *, but * will be the
// this returned
// tells if the parts part of a delegate matches the broken up props of the event
// gives the prop to use as 'this'
// - par... | SpredfastLegacy/canjs | observe/delegate/delegate.js | JavaScript | mit | 11,161 |
//-----------------------------------------------------------------------
// Copyright © Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands
{
using System;
using System.Collections.G... | KarolKaczmarek/PowerShell | src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs | C# | mit | 25,295 |
var name = "Wanderer";
var collection_type = 0;
var is_secret = 0;
var desc = "Visited 503 new locations.";
var status_text = "Gosh, where HAVEN'T you traveled? Your peregrinations have earned you this footworn-but-carefree Wanderer badge.";
var last_published = 1348803094;
var is_shareworthy = 1;
var url = "wande... | yelworc/eleven-gsjs | achievements/wanderer.js | JavaScript | mit | 1,587 |
using System;
using Avalonia.Controls.Primitives;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
using Avalonia.Platform;
using Avalonia.Rendering;
using Avalonia.UnitTests;
using Moq;
using Xunit;
namespace Avalonia.Controls.UnitTests
{
public class ContextMenuTests
{
private Mock<IPopupImpl> po... | AvaloniaUI/Avalonia | tests/Avalonia.Controls.UnitTests/ContextMenuTests.cs | C# | mit | 19,072 |
using System.Drawing;
namespace JR.DevFw.Framework.Graphic
{
/// <summary>
/// 绘图处理
/// </summary>
/// <param name="img"></param>
public delegate void ImageGraphicsHandler(Image img);
} | jrsix/devfw | src/core/J6.DevFw.Core/Framework/Graphic/ImageGraphicsHandler.cs | C# | mit | 217 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Cl... | mmitche/xunit-performance | samples/ClassLibrary.net46/Properties/AssemblyInfo.cs | C# | mit | 1,412 |
export default class ModelAccessor {
constructor() {
this.value = 10
}
get highCount() {
return this.value + 100
}
set highCount(v) {
this.value = v - 100
}
get doubleHigh() {
return this.highCount * 2
}
incr() {
this.value++
}
}
| nekronos/fuselibs-public | Source/Fuse.Models/Tests/UX/Accessor.js | JavaScript | mit | 255 |
namespace AngleSharp.Dom
{
using AngleSharp.Attributes;
using System;
/// <summary>
/// The Range interface represents a fragment of a document that can
/// contain nodes and parts of text nodes in a given document.
/// </summary>
[DomName("Range")]
public interface IRange
{
... | FlorianRappl/AngleSharp | src/AngleSharp/Interfaces/IRange.cs | C# | mit | 7,415 |
import { Template } from 'meteor/templating';
Template.messageAction.helpers({
isButton() {
return this.type === 'button';
},
areButtonsHorizontal() {
return Template.parentData(1).button_alignment === 'horizontal';
},
jsActionButtonClassname(processingType) {
return `js-actionButton-${ processingType || 's... | 4thParty/Rocket.Chat | app/message-action/client/messageAction.js | JavaScript | mit | 344 |
import fs from 'fs';
import url from 'url';
import path from 'path';
import mime from 'mime-types';
import gulp from 'gulp';
import createServerTask from './tasks/server';
import consoleArguments from './console-arguments';
import { adminBundle } from './admin-bundle.tasks';
import { dashboardBundle } from './dashboard... | Kunstmaan/KunstmaanBundlesCMS | groundcontrol/start-local.task.js | JavaScript | mit | 3,206 |
'use strict';
describe('Service: Initiatives', function () {
// instantiate service
var Initiatives,
Timeout,
cfg,
$httpBackend,
$rootScope,
tPromise;
// load the service's module
beforeEach(module('sumaAnalysis'));
beforeEach(inject(function (_$rootScope_, _$httpBackend_, _in... | cazzerson/Suma | analysis/test/js/spec/services/initiatives.js | JavaScript | mit | 2,143 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Component\Core\Model;
use Sylius\Component\Promotion\Model... | venyii/Sylius | src/Sylius/Component/Core/Model/PromotionCouponInterface.php | PHP | mit | 594 |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* Tabulator v4.0.2 (c) Oliver Folkerd */
var Ht... | joeyparrish/cdnjs | ajax/libs/tabulator/4.0.2/js/modules/html_table_import.js | JavaScript | mit | 4,916 |
<?php
/*
* This file is part of Rocketeer
*
* (c) Maxime Fabre <ehtnam6@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rocketeer\Binaries\PackageManagers;
use Rocketeer\Abstracts\AbstractPackageManager;
cla... | sbwdlihao/rocketeer | src/Rocketeer/Binaries/PackageManagers/Bundler.php | PHP | mit | 695 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... | arunetm/ChakraCore_0114 | test/Array/array_init.js | JavaScript | mit | 1,438 |
<?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\Debug\Tests\FatalErrorHandler;
use Symfony\Component\... | vith/symfony | src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php | PHP | mit | 7,910 |
require 'chunky_png'
require 'fileutils'
#COLOR_TRUE = ChunkyPNG::Color::rgba(224, 255, 255, 96) # for kunijiban
COLOR_TRUE = ChunkyPNG::Color::rgba(255, 255, 255, 0) # for ort
COLOR_FALSE = ChunkyPNG::Color::rgba(0, 0, 0, 128)
def _new_image
return ChunkyPNG::Image.new(256, 256, COLOR_FALSE)
end
def write(image, z... | hfu/octpng-bin | reduce.rb | Ruby | cc0-1.0 | 916 |
###########################################################
#
# Copyright (c) 2014, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | CeltonMcGrath/TACTIC | src/tactic/ui/widget/scrollbar_wdg.py | Python | epl-1.0 | 4,809 |
/*******************************************************************************
* Copyright (c) 2012-2015 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | Ori-Libhaber/che-core | ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/actions/SaveAllAction.java | Java | epl-1.0 | 3,624 |
$_L(["$wt.widgets.Layout"],"$wt.layout.FillLayout",["$wt.graphics.Point","$wt.layout.FillData"],function(){
c$=$_C(function(){
this.type=256;
this.marginWidth=0;
this.marginHeight=0;
this.spacing=0;
$_Z(this,arguments);
},$wt.layout,"FillLayout",$wt.widgets.Layout);
$_K(c$,
function(){
$_R(this,$wt.layout.Fi... | 01org/mayloon-portingtool | sources/net.sf.j2s.lib/j2slib/org/eclipse/swt/layout/FillLayout.js | JavaScript | epl-1.0 | 4,054 |
/*
* Created on May 13, 2003
*========================================================================
* Modifications history
*========================================================================
* $Log: PredicateWordRule.java,v $
* Revision 1.2 2003/05/30 20:53:09 agfitzp
* 0.0.2 : Outlining is now done ... | royleexhFake/mayloon-portingtool | net.sourceforge.jseditor/src-jseditor/net/sourceforge/jseditor/editors/PredicateWordRule.java | Java | epl-1.0 | 3,101 |
/*******************************************************************************
* Copyright (c) 2012-2015 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | aljiru/che-core | platform-api/che-core-api-core/src/test/java/org/eclipse/che/api/core/util/ProcessUtilTest.java | Java | epl-1.0 | 3,462 |
/**
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Eclipse Public License (EPL).
* Please see the license.txt included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
package com.python.pydev.refact... | rgom/Pydev | plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/wizards/rename/visitors/FindCallVisitor.java | Java | epl-1.0 | 2,648 |
package com.intel.ide.eclipse.mpt.classpath;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import com.intel.ide.eclipse.mpt.launching.J2SCyclicProjectUtils;
public class ContactedClasses extends... | royleexhFake/mayloon-portingtool | com.intel.ide.eclipse.mpt/src/com/intel/ide/eclipse/mpt/classpath/ContactedClasses.java | Java | epl-1.0 | 4,878 |
var path = require("path");
module.exports = {
entry: "./public/App.js",
output: {
filename: "bundle.js",
path: path.resolve(__dirname, "public")
}
}; | generalelectrix/wiggles | view/webpack.config.js | JavaScript | gpl-2.0 | 179 |
§ßU<?php exit; ?>a:1:{s:7:"content";a:0:{}} | nilmadhab/webtutplus | wp-content/cache/object/000000/e36/eb4/e36eb471ab990b405292d7034395335a.php | PHP | gpl-2.0 | 44 |
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div class="wf-container wf-clearfix">
*
* @package presscore
* @since presscore 0.1
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
?><!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" class="ancie... | wiljenum/wordpress-jo | wp-content/themes/dt-the7/header.php | PHP | gpl-2.0 | 2,604 |
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1997-2008 Morgan Stanley All rights reserved.
// See .../src/LICENSE for terms of distribution
//
//
///////////////////////////////////////////////////////////////////////////////
#include <MSGUI/MSRadioBox.H>
MSRadi... | rdm/aplus-fsf | src/MSGUI/MSRadioBox.C | C++ | gpl-2.0 | 1,875 |
<?php
/**
* @package Joomla.Platform
* @subpackage Twitter
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die();
/**
* Twitter API Search class for the Jooml... | waveywhite/joomla-cms | libraries/joomla/twitter/search.php | PHP | gpl-2.0 | 5,627 |
$(document).ready(function(){
// removing some column headers when there is at least one product
if ( $('#lines tbody tr.product').length > 0 )
{
$('#lines').addClass('with-product');
$('body').addClass('with-product');
}
if ( $('#lines tbody tr.ticket').length > 0 )
{
$('#lines').addClass('with... | Fabrice-li/e-venement | web/js/print-tickets.js | JavaScript | gpl-2.0 | 803 |
<?php
/**
* Class SlideshowPluginSlideInserter
*
* TODO This class will probably need to be renamed to SlideshowPluginSlideHandler to explain more functionality
* TODO than just inserting slides.
*
* @since 2.0.0
* @author Stefan Boonstra
*/
class SlideshowPluginSlideInserter
{
/** @var bool $local... | tzitziras/aluminet.gr | wp-content/plugins/slideshow-jquery-image-gallery/classes/SlideshowPluginSlideInserter.php | PHP | gpl-2.0 | 8,493 |
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateFieldWidgetSettingsTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
/**
* Migrate field widget settings.
*
* @group migrate_drupal
*/
class Migrat... | webflo/d8-core | modules/migrate_drupal/src/Tests/d6/MigrateFieldWidgetSettingsTest.php | PHP | gpl-2.0 | 5,460 |
/*
* Copyright (C) 2014 The Android Open Source Project
* Copyright (c) 2000, 2008, 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 Publi... | AdmireTheDistance/android_libcore | ojluni/src/main/java/java/nio/HeapLongBuffer.java | Java | gpl-2.0 | 6,185 |
<?
include('catalog.php');
$out = array();
foreach ($catalog as $row){
$hex = '';
foreach ($row['unicode'] as $cp) $hex .= sprintf('%x', $cp);
$html = "<span class=\"emoji emoji$hex\"></span>";
$out[] = array(
'name' => $row['char_name']['title'],
'unified' => $row['unicode'],
'docomo' => $... | kirvin/journeyof1000li | wp-content/plugins/twitter-tracker/emoji/data/build_table.php | PHP | gpl-2.0 | 2,108 |
<?php
/**
* @file
* Contains the UCXF_Field class.
*/
/**
* Base class for a Extra Fields Pane field
*/
class UCXF_Field {
// -----------------------------------------------------------------------------
// CONSTANTS
// -----------------------------------------------------------------------------
// Fiel... | alexey-kuznetsov/teploexpert | sites/all/modules/uc_extra_fields_pane/class/UCXF_Field.class.php | PHP | gpl-2.0 | 26,576 |
<?php
/**
* Solr Authority aspect of the Search Multi-class (Results)
*
* PHP version 5
*
* Copyright (C) Villanova University 2011.
*
* 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 Fou... | ebsco/vufind | module/VuFind/src/VuFind/Search/SolrAuth/Results.php | PHP | gpl-2.0 | 1,686 |
/*
* 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 ... | manjeetk09/GoogleScrapper | opennlp/tools/doccat/DocumentCategorizerContextGenerator.java | Java | gpl-2.0 | 1,622 |
using System;
using System.Collections;
namespace FSpot {
public class DirectoryAdaptor : GroupAdaptor {
System.Collections.DictionaryEntry [] dirs;
// FIXME store the Photo.Id list here not just the count
private class Group : IComparer {
public int Count = 1;
public int Compare (object obj1, object ob... | Hibary/facedetect-f-spot | src/DirectoryAdaptor.cs | C# | gpl-2.0 | 2,996 |
/*
* Copyright (c) 1997, 2018, 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 ... | JetBrains/jdk8u_jdk | src/share/classes/javax/crypto/CipherOutputStream.java | Java | gpl-2.0 | 8,241 |
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file ... | maddy2101/TYPO3.CMS | Build/Sources/TypeScript/install/Resources/Public/TypeScript/Module/Environment/EnvironmentCheck.ts | TypeScript | gpl-2.0 | 3,768 |
<?php
/*
HLstatsX Community Edition - Real-time player and clan rankings and statistics
Copyleft (L) 2008-20XX Nicholas Hastings (nshastings@gmail.com)
http://www.hlxcommunity.com
HLstatsX Community Edition is a continuation of
ELstatsNEO - Real-time player and clan rankings and statistics
Copyleft (L) 2008-2... | rcguy/insurgency-hlstatsx | web/pages/playerinfo_teams.php | PHP | gpl-2.0 | 7,693 |
#include "async.h"
class my_resizer_t : public vec_resizer_t {
public:
my_resizer_t () : vec_resizer_t () {}
size_t resize (u_int nalloc, u_int nwanted, int objid);
};
size_t
my_resizer_t::resize (u_int nalloc, u_int nwanted, int objid)
{
int exponent = fls (max (nalloc, nwanted));
int step;
if (exponent... | okws/sfslite | tests/test_vec.C | C++ | gpl-2.0 | 1,161 |
/*
Implement Github like autocomplete mentions
http://ichord.github.com/At.js
Copyright (c) 2013 chord.luo@gmail.com
Licensed under the MIT license.
*/
/*
本插件操作 textarea 或者 input 内的插入符
只实现了获得插入符在文本框中的位置,我设置
插入符的位置.
*/
/**
* --------------------
* Vanilla Forums NOTE:
* --------------------
*
* This fil... | rwmcoder/Vanilla | js/library/jquery.atwho.js | JavaScript | gpl-2.0 | 35,430 |
/*----------------------------------------------------------------------------------*/
//This code is part of a larger project whose main purpose is to entretain either //
//by working on it and helping it be better or by playing it in it's actual state //
// //
//Copyright (C... | rafadelahoz/projectpgz-dev | interprete/source/src/iPushable.cpp | C++ | gpl-2.0 | 3,637 |
/*
* Copyright (c) 1998-2012 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms of the GNU... | mdaniel/svn-caucho-com-resin | modules/jaxb/src/javax/xml/bind/annotation/XmlAccessType.java | Java | gpl-2.0 | 1,117 |
# Copyright (C) 2007 Rising Sun Pictures and Matthew Landauer
#
# 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... | Jonv/earth | db/migrate/014_watch_directory_key.rb | Ruby | gpl-2.0 | 1,094 |
<?php
/**
* HUBzero CMS
*
* Copyright 2005-2015 HUBzero Foundation, LLC.
*
* 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
... | kevinwojo/hubzero-cms | core/plugins/groups/memberoptions/memberoptions.php | PHP | gpl-2.0 | 6,730 |
/**
* Copyright (c) 2009--2012 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... | hustodemon/spacewalk | java/code/src/com/redhat/rhn/taskomatic/task/RhnQueueJob.java | Java | gpl-2.0 | 4,855 |
/*
*
* Copyright (c) 2003
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent version.
... | scs/uclinux | lib/boost/boost_1_38_0/libs/regex/example/snippets/regex_iterator_example.cpp | C++ | gpl-2.0 | 2,963 |
<?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... | omesan/SiteLegionTacticalPainball | plugins/system/rokupdater/lib/vendor/maciek-kemnitz/phpquery/phpQuery/phpQuery/Zend/Validate/Ip.php | PHP | gpl-2.0 | 1,777 |
<head>
<title>{#tagwrap_dlg.titleP}</title>
<script type="text/javascript" src="../../../tinymce/tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<link rel="stylesheet" type="text/css" href="css/tagwrap.css" />
</head>
<body>
<div class="y_logo_contener">
<img src="i... | gacarrigan/WP-Site | wp-content/plugins/ultimate-tinymce/addons/tagwrap/tags/p.php | PHP | gpl-2.0 | 1,842 |
'use strict';
const common = require('../common.js');
const bench = common.createBenchmark(main, {
pieces: [1, 4, 16],
pieceSize: [1, 16, 256],
withTotalLength: [0, 1],
n: [1024]
});
function main(conf) {
const n = +conf.n;
const size = +conf.pieceSize;
const pieces = +conf.pieces;
const list = new A... | domino-team/openwrt-cc | package/gli-pub/openwrt-node-packages-master/node/node-v6.9.1/benchmark/buffers/buffer-concat.js | JavaScript | gpl-2.0 | 563 |
/*
* Copyright (C) 2011 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... | 166MMX/openjdk.java.net-openjfx-8u40-rt | modules/web/src/main/native/Source/WebCore/inspector/WorkerRuntimeAgent.cpp | C++ | gpl-2.0 | 3,564 |
<?php
/*
$id author Puddled Internet - http://www.puddled.co.uk
email support@puddled.co.uk
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
$action = isset($_G... | loadedcommerce/loaded6 | 6.5/Loaded_Commerce_PRO_v6.5.2_Upgrade_from_all_Std_OR_Pro_versions/admin/returns_reasons.php | PHP | gpl-2.0 | 15,332 |
/*
* Copyright (c) 1998-2012 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms o... | WelcomeHUME/svn-caucho-com-resin | modules/resin/src/com/caucho/ejb/cfg/EjbJar.java | Java | gpl-2.0 | 5,125 |
function test() {
return (function foo(){}).name === 'foo' &&
(function(){}).name === '';
}
if (!test())
throw new Error("Test failed");
| Debian/openjfx | modules/web/src/main/native/Source/JavaScriptCore/tests/es6/function_name_property_function_expressions.js | JavaScript | gpl-2.0 | 153 |
FD40.ready(function($) {
var jQuery = $;// Catalan
jQuery.timeago.settings.strings = {
prefixAgo: "fa",
prefixFromNow: "d'aqui a",
suffixAgo: null,
suffixFromNow: null,
seconds: "menys d'1 minut",
minute: "1 minut",
minutes: "uns %d minuts",
hour: "1 hora",
hours: "unes %d hores",
day: "1 dia",
d... | BetterBetterBetter/WheresWalden | media/foundry/4.0/scripts/timeago/ca.js | JavaScript | gpl-2.0 | 450 |
/*
* JCE Editor 2.2.4
* @package JCE
* @url http://www.joomlacontenteditor.net
* @copyright Copyright (C) 2006 - 2012 Ryan Demmer. All rights reserved
* @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html... | ArtificialEX/jwexport | components/com_jce/editor/tiny_mce/themes/advanced/js/colorpicker.js | JavaScript | gpl-2.0 | 1,641 |
<?php
namespace Drupal\webform;
use Drupal\Core\Archiver\ArchiveTar;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\Subform... | msbtterswrth/mdspca-fosters | modules/webform/src/WebformSubmissionExporter.php | PHP | gpl-2.0 | 27,760 |
//-----------------------------------------------------------------------------
// Class: DummyAnimInstance
// Authors: Li, Xizhi
// Emails: LiXizhi@yeah.net
// Company: ParaEngine
// Date: 2014.9.21
//-----------------------------------------------------------------------------
#include "ParaEngine.h"
#include "ParaXM... | hetter/NPLRuntime | Client/trunk/ParaEngineClient/3dengine/DummyAnimInstance.cpp | C++ | gpl-2.0 | 1,763 |
package emu.project64.input;
import java.util.Set;
import emu.project64.AndroidDevice;
import emu.project64.input.map.TouchMap;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.Point;
import android.os.Vibrator;
import android.util.SparseIntArray;
import android.vie... | shygoo/project64 | Android/app/src/main/java/emu/project64/input/TouchController.java | Java | gpl-2.0 | 20,746 |
/*
* Copyright 2008 ZXing 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 ... | faarwa/EngSocP5 | zxing/core/test/src/com/google/zxing/aztec/AztecBlackBox1TestCase.java | Java | gpl-3.0 | 1,076 |
<?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 ... | CinecaElearning/moodle-logstore_xapi | src/loader/utils/filelib.php | PHP | gpl-3.0 | 830 |
/*
===========================================================================
Copyright (c) 2010-2014 Darkstar Dev Teams
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 versi... | FFXIOrgins/FFXIOrgins | src/map/packets/char_jobs.cpp | C++ | gpl-3.0 | 2,247 |
int r;
void turn(int i, int j, int x, int y, int z,int x0, int y0, int L, int W, int H) {
if (z==0) { int R = x*x+y*y; if (R<r) r=R;
} else {
if(i>=0 && i< 2) turn(i+1, j, x0+L+z, y, x0+L-x, x0+L, y0, H, W, L);
if(j>=0 && j< 2) turn(i, j+1, x, y0+W+z, y0+W-y, x0, y0+W, L, H, W);
if(i<=0 && i>-2) turn(i-1,... | kzoacn/Grimoire | Template/source/hints/长方体表面两点最短距离.cpp | C++ | gpl-3.0 | 802 |
/*
* 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 ... | tr4656/Hungry | src/org/apache/commons/io/filefilter/PrefixFileFilter.java | Java | gpl-3.0 | 7,155 |
/**
* This file is part of muCommander, http://www.mucommander.com
* Copyright (C) 2002-2010 Maxence Bernard
*
* muCommander 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... | jorgevasquezp/mucommander | src/main/com/mucommander/commons/file/filter/PathFilter.java | Java | gpl-3.0 | 1,047 |
<?php
// Text
$_['text_title'] = 'Credit or Debit Card (Processed securely by Perpetual Payments)';
$_['text_credit_card'] = 'Credit Card Details';
$_['text_transaction'] = 'Transaction ID:';
$_['text_avs'] = 'AVS/CVV:';
$_['text_avs_full_match'] = 'Full match';
$_['text_avs_not_match'] ... | mgraph/opencart | upload/catalog/language/english/payment/perpetual_payments.php | PHP | gpl-3.0 | 776 |
/**
* @file Visual mapping.
*/
define(function (require) {
var zrUtil = require('zrender/core/util');
var zrColor = require('zrender/tool/color');
var linearMap = require('../util/number').linearMap;
var each = zrUtil.each;
var isObject = zrUtil.isObject;
var CATEGORY_DEFAULT_VISUAL_INDEX = ... | mo-norant/FinHeartBel | website/node_modules/echarts/src/visual/VisualMapping.js | JavaScript | gpl-3.0 | 20,627 |
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, an... | Niky4000/UsefulUtils | projects/others/eclipse-platform-parent/eclipse.jdt.core-master/org.eclipse.jdt.core.tests.model/workspace/Formatter/test133/A_in.java | Java | gpl-3.0 | 5,799 |
var express = require('express')
var app = module.exports = express()
app.get('/404', require('lib/site/layout'))
app.get('*', function (req, res) {
res.redirect('/404')
})
| democracy-os-fr/democracyos | lib/site/error-pages/not-found/index.js | JavaScript | gpl-3.0 | 176 |
/**
* Copyright (C) 2013 - 2016 Johannes Taelman
*
* This file is part of Axoloti.
*
* Axoloti 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... | dkmorb/axoloti | src/main/java/axoloti/menus/PopulatePatchMenu.java | Java | gpl-3.0 | 2,367 |
<?php
require_once($GLOBALS['g_campsiteDir'].'/classes/Input.php');
require_once($GLOBALS['g_campsiteDir'].'/classes/Attachment.php');
require_once($GLOBALS['g_campsiteDir'].'/classes/Log.php');
require_once LIBS_DIR . '/MediaList/MediaList.php';
require_once LIBS_DIR . '/MediaPlayer/MediaPlayer.php';
$f_attachment_id... | danielhjames/Newscoop | newscoop/admin-files/media-archive/edit-attachment.php | PHP | gpl-3.0 | 4,566 |
<?php
/**
* Hoa
*
*
* @license
*
* New BSD License
*
* Copyright © 2007-2017, Hoa community. 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 ... | collectiveaccess/providence | vendor/hoa/stream/Wrapper/Exception.php | PHP | gpl-3.0 | 1,926 |
<?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/CloudKMS/AsymmetricSignResponse.php | PHP | gpl-3.0 | 1,469 |
using System.IO;
using System.Collections.Generic;
using System.Xml;
using PDollarGestureRecognizer;
namespace PDollarDemo
{
public class GestureIO
{
/// <summary>
/// Reads a multistroke gesture from an string representation of xml
/// </summary>
/// <param name="xml"></param>
/// <returns></returns... | vmohan7/NaviTouch | NaviTouch/Assets/NaviSDK/PDollarGestureRecognizer/GestureIO.cs | C# | gpl-3.0 | 4,722 |
/**
* L2FProd.com Common Components 7.3 License.
*
* Copyright 2005-2007 L2FProd.com
*
* 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/L... | pabalexa/calibre2opds | OpdsOutput/src/main/java/com/l2fprod/common/swing/plaf/ComponentAddon.java | Java | gpl-3.0 | 1,604 |
<?php
/* ----------------------------------------------------------------------
* themes/default/views/ca_objects_browse_html.php :
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* ------------------------------------------... | collectiveaccess/pawtucket | themes/white/views/Browse/browse_controls_html.php | PHP | gpl-3.0 | 5,886 |
#region netDxf library, Copyright (C) 2009-2018 Daniel Carvajal (haplokuon@gmail.com)
// netDxf library
// Copyright (C) 2009-2018 Daniel Carvajal (haplokuon@gmail.com)
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Pu... | virtualrobotix/MissionPlanner | ExtLibs/netDxf/Objects/UnderlayDefinition.cs | C# | gpl-3.0 | 2,898 |
/*
* Copyright (C) 2010 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... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/core/html/forms/URLInputType.cpp | C++ | gpl-3.0 | 2,803 |
/*
* Copyright (c) 2011 Matthew Francis
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | routeKIT/routeKIT | src/org/itadaki/bzip2/HuffmanAllocator.java | Java | gpl-3.0 | 6,762 |
/*
* #%~
* org.overture.ide.core
* %%
* Copyright (C) 2008 - 2014 Overture
* %%
* 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) an... | jmcPereira/overture | ide/core/src/main/java/org/overture/ide/core/resources/ModelBuildPath.java | Java | gpl-3.0 | 6,618 |
/* -*- c++ -*- */
/*
* Copyright 2013-2014 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your o... | surligas/cs436-gnuradio | gr-fec/lib/encoder_impl.cc | C++ | gpl-3.0 | 3,746 |