repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
sfshine/actor-platform | actor-apps/app-web/src/app/actions/DialogActionCreators.js | 1753 | import ActorClient from 'utils/ActorClient';
import ActorAppDispatcher from 'dispatcher/ActorAppDispatcher';
import ActorAppConstants from 'constants/ActorAppConstants';
const ActionTypes = ActorAppConstants.ActionTypes;
const DialogActionCreators = {
setDialogs(dialogs) {
ActorAppDispatcher.dispatch({
t... | mit |
rolandzwaga/DefinitelyTyped | types/react-virtualized/dist/es/WindowScroller.d.ts | 2630 | import { Validator, Requireable, PureComponent } from "react";
/**
* Specifies the number of miliseconds during which to disable pointer events while a scroll is in progress.
* This improves performance and makes scrolling smoother.
*/
export const IS_SCROLLING_TIMEOUT = 150;
export type WindowScrollerChildProps =... | mit |
extend1994/cdnjs | ajax/libs/bootstrap-table/1.15.2/locale/bootstrap-table-es-CR.js | 23475 | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
(global = global || self, factory(global.jQuery));
}(this, function ($) { 'use strict';
$ = $ && $.hasOwnProperty('def... | mit |
sevoku/oxyplot | Source/Examples/WPF/ExportDemo/IShell.cs | 410 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="IShell.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// -------------------------------------------------------------------------------------... | mit |
3meng/Windows-universal-samples | xaml_listview/SamplesPane.xaml.cs | 1587 | //*********************************************************
//
// 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 PARTICU... | mit |
como-quesito/angular-xeditable | starter/app.js | 268 | var app = angular.module("app", ["xeditable"]);
app.run(function(editableOptions) {
editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
});
app.controller('Ctrl', function($scope) {
$scope.user = {
name: 'awesome user'
};
}); | mit |
JoeMarion/JoeMarion.github.io | MakingitMarions/vendor/bundle/gems/maruku-0.7.0/lib/maruku/maruku.rb | 296 | # The public interface for Maruku.
#
# @example Render a document fragment
# Maruku.new("## Header ##").to_html
# # => "<h2 id='header'>header</h2>"
class Maruku < MaRuKu::MDDocument
def initialize(s = nil, meta = {})
super()
self.attributes.merge! meta
parse_doc(s) if s
end
end
| mit |
maxwhale/app | Public/static/js/easyui/plugins/jquery.progressbar.js | 2171 | /**
* jQuery EasyUI 1.4.2
*
* Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).addClass("progressbar");
$(_2).html("<di... | gpl-2.0 |
wiki1210/yokozuna | wp-content/plugins/facebook/admin/settings-debug.php | 16339 | <?php
/**
* Summarize the plugin configuration on a single page
*
* @since 1.1.6
*/
class Facebook_Settings_Debugger {
/**
* Page identifier
*
* @since 1.1.6
* @var string
*/
const PAGE_SLUG = 'facebook-debug';
/**
* HTML span noting a feature exists
*
* @since 1.1.6
* @var string
*/
cons... | gpl-2.0 |
weibocom/opendcp | jupiter/vendor/github.com/rackspace/gophercloud/rackspace/autoscale/v1/webhooks/results.go | 2627 | package webhooks
import (
"github.com/mitchellh/mapstructure"
"github.com/rackspace/gophercloud"
"github.com/rackspace/gophercloud/pagination"
)
type webhookResult struct {
gophercloud.Result
}
// Extract interprets any webhookResult as a Webhook, if possible.
func (r webhookResult) Extract() (*Webhook, error) ... | gpl-2.0 |
jcrosales/lemerywebsite | wp-content/plugins/the-events-calendar/views/modules/meta/map.php | 507 | <?php
/**
* Single Event Meta (Map) Template
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe-events/modules/meta/details.php
*
* @package TribeEventsCalendar
*/
$map = apply_filters( 'tribe_event_meta_venue_map', tribe_get_embedded_map() );
if ( empty( $map ) ) return;
?... | gpl-2.0 |
diegoacuna/wiki-parques-nacionales | includes/MimeMagic.php | 34503 | <?php
/**
* Module defining helper functions for detecting and dealing with mime types.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your opt... | gpl-2.0 |
YouDiSN/OpenJDK-Research | jdk9/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/LoaderDelegate.java | 3140 | /*
* Copyright (c) 2016, 2017, 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 ... | gpl-2.0 |
atosatto/ansible | lib/ansible/playbook/conditional.py | 10551 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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) an... | gpl-3.0 |
yclas/yclas | oc/vendor/authorize/lib/net/authorize/api/contract/v1/GetAUJobDetailsResponse.php | 1376 | <?php
namespace net\authorize\api\contract\v1;
/**
* Class representing GetAUJobDetailsResponse
*/
class GetAUJobDetailsResponse extends ANetApiResponseType
{
/**
* @property integer $totalNumInResultSet
*/
private $totalNumInResultSet = null;
/**
* @property \net\authorize\api\contract... | gpl-3.0 |
sestrella/ansible | lib/ansible/plugins/inventory/aws_ec2.py | 30217 | # Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
name: aws_ec2
plugin_type: inventory
short_description: EC2 inventor... | gpl-3.0 |
rcarrillocruz/ansible | test/units/modules/network/ios/test_ios_config.py | 6051 | #
# (c) 2016 Red Hat Inc.
#
# 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 version.
#
# Ansible is d... | gpl-3.0 |
Zeipt/Mycely_fdroid | platforms/android/assets/www/jxcore/node_modules/sodium/lib/keys/box-key.js | 942 | /**
* Created by bmf on 11/2/13.
*/
/* jslint node: true */
'use strict';
var util = require('util');
var binding = require('../../build/Release/sodium');
var KeyPair = require('./keypair');
var Box = function BoxKey(publicKey, secretKey, encoding) {
var self = this;
KeyPair.call(this);
self.init({
... | agpl-3.0 |
eripahle/framework | Samples/Imaging/Detection (Blobs)/Properties/Resources.Designer.cs | 3216 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | lgpl-2.1 |
GabeLoins/airpal | src/main/resources/assets/javascripts/app.js | 246 | /**
* App Bootstrap
*/
import 'es6-shim';
import 'whatwg-fetch';
import AirpalApp from './components/AirpalApp.jsx';
import React from 'react';
// Start the main app
React.render(
<AirpalApp />,
document.querySelector('.js-react-app')
);
| apache-2.0 |
Saltarelle/SaltarelleCompiler | Runtime/CoreLib.Tests/Core/Reflection/TypeSystemTests.cs | 3496 | using NUnit.Framework;
namespace CoreLib.Tests.Core.Reflection {
[TestFixture]
public class TypeSystemTests : CoreLibTestBase {
[Test]
public void CastToSerializableTypeIsANoOp() {
SourceVerifier.AssertSourceCorrect(@"
using System;
using System.Runtime.CompilerServices;
[Serializable]
sealed class R {}
pu... | apache-2.0 |
freebsd/phabricator | src/applications/policy/__tests__/PhabricatorPolicyTestObject.php | 1547 | <?php
/**
* Configurable test object for implementing Policy unit tests.
*/
final class PhabricatorPolicyTestObject
extends Phobject
implements
PhabricatorPolicyInterface,
PhabricatorExtendedPolicyInterface {
private $phid;
private $capabilities = array();
private $policies = array();
private $a... | apache-2.0 |
graydon/rust | src/test/ui/span/E0493.rs | 270 | struct Foo {
a: u32
}
impl Drop for Foo {
fn drop(&mut self) {}
}
struct Bar {
a: u32
}
impl Drop for Bar {
fn drop(&mut self) {}
}
const F : Foo = (Foo { a : 0 }, Foo { a : 1 }).1;
//~^ destructors cannot be evaluated at compile-time
fn main() {
}
| apache-2.0 |
surydana/xssprotect | test/com/blogspot/radialmind/html/NoXMLTest.java | 1843 | /**
* Copyright 2007 Gerard Toonstra
*
* Licensed under the terms of the Apache Software License v2
*
* This file is part of the XSS Protect library
*/
package com.blogspot.radialmind.html;
import java.io.StringReader;
import java.io.StringWriter;
import junit.framework.TestCase;
public class NoXMLTest exten... | apache-2.0 |
Nogrod/jint | Jint.Tests.Ecma/TestCases/ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js | 324 | /// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.5/15.5.4/15.5.4.20/15.5.4.20-4-3.js
* @description String.prototype.trim handles whitepace and lineterminators (\u0009abc)
*/
function testcase() {
if ("\u0009abc".trim() === "abc") {
return true;
}
}
runTestCase(testcas... | bsd-2-clause |
honestegg/jint | Jint.Tests.Ecma/TestCases/ch15/15.12/15.12.2/15.12.2-2-3.js | 1864 | /// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.12/15.12.2/15.12.2-2-3.js
* @description JSON.parse - parsing an object where property name ends with a null character
*/
function testcase() {
var result = true;
var nullChars = new Array();
nullChars[0... | bsd-2-clause |
chewett/d3 | test/test-exports.js | 378 | var tape = require("tape"),
d3 = require("../");
module.exports = function(moduleName) {
var module = require(moduleName);
tape("d3 exports everything from " + moduleName, function(test) {
for (var symbol in module) {
if (symbol !== "version") {
test.equal(symbol in d3, true, moduleName + " e... | bsd-3-clause |
eonezhang/sagan | sagan-site/src/test/java/sagan/blog/support/BlogControllerTests.java | 2906 | package sagan.blog.support;
import sagan.blog.Post;
import sagan.blog.PostMovedException;
import sagan.support.DateFactory;
import java.util.Collections;
import java.util.Locale;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
i... | bsd-3-clause |
Probo-Demos/drupal8 | core/modules/system/src/Tests/Form/StubForm.php | 1006 | <?php
/**
* @file
* Contains \Drupal\system\Tests\Form\StubForm.
*/
namespace Drupal\system\Tests\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
/**
* Provides a stub form for testing purposes.
*/
class StubForm extends FormBase {
/**
* The form array.
*
* @var array
... | gpl-2.0 |
jtourt/kanboard | tests/units/Analytic/UserDistributionAnalyticTest.php | 3059 | <?php
require_once __DIR__.'/../Base.php';
use Kanboard\Model\TaskCreationModel;
use Kanboard\Model\ProjectModel;
use Kanboard\Model\ProjectUserRoleModel;
use Kanboard\Model\UserModel;
use Kanboard\Analytic\UserDistributionAnalytic;
use Kanboard\Core\Security\Role;
class UserDistributionAnalyticTest extends Base
{
... | mit |
rajansingh10/corefx | src/System.Threading.Tasks.Dataflow/src/Base/DataflowBlock.cs | 172889 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// DataflowBlock.cs
//
//
// Common functionality for ITargetBlock, ISourc... | mit |
cake-build/cake | src/Cake.Common.Tests/Unit/Tools/XUnit/XUnitSettingsTests.cs | 1780 | // 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 Cake.Common.Tools.XUnit;
using Xunit;
namespace Cake.Common.Tests.Unit.Tools.XUnit
{
public sealed class... | mit |
SergeiShemshur/java-design-patterns | model-view-presenter/src/main/java/com/iluwatar/modelviewpresenter/FileSelectorPresenter.java | 1651 | package com.iluwatar.modelviewpresenter;
/**
* Every instance of this class represents the Presenter component in the
* Model-View-Presenter architectural pattern.
*
* It is responsible for reacting to the user's actions and update the View
* component.
*/
public class FileSelectorPresenter {
/**
* The View... | mit |
sherlock221/appframework2_1_0_update | plugins/af.selectBox.js | 11103 | /**
* copyright: 2011 Intel
* description: This script will replace all drop downs with friendly select controls. Users can still interact
* with the old drop down box as normal with javascript, and this will be reflected
*/
/* global af*/
/* global numOnly*/
(function($) {
/*jshint camelcase: false,
v... | mit |
cdnjs/cdnjs | ajax/libs/ag-grid/9.0.4/lib/widgets/component.js | 8408 | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v9.0.3
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto... | mit |
NorfairKing/sus-depot | shared/shared/vim/dotvim/bundle/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer/NRefactory/ICSharpCode.NRefactory.Tests/CSharp/Resolver/OverloadResolutionTests.cs | 13994 | // Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
//
// 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 us... | gpl-2.0 |
AftonTroll/WordPress-Android | WordPress/src/androidTest/monkeys/playstore-screenshots.py | 6139 | #! /usr/bin/env python
import sys
import os
import time
import settings
from subprocess import Popen, PIPE
from com.dtmilano.android.viewclient import ViewClient
# App actions
def action_login(device, serialno):
print("login")
device.type(settings.username)
device.press('KEYCODE_DPAD_DOWN')
device.ty... | gpl-2.0 |
YouDiSN/OpenJDK-Research | jdk9/jdk/src/jdk.localedata/share/classes/sun/text/resources/ext/FormatData_sv.java | 11341 | /*
* Copyright (c) 1997, 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 ... | gpl-2.0 |
ingagecreative/cg | wp-content/plugins/constant-contact-api/vendor/giggsey/libphonenumber-for-php/src/libphonenumber/geocoding/data/en/8627.php | 172 | <?php
/**
* This file is automatically @generated by {@link GeneratePhonePrefixData}.
* Please don't modify it directly.
*/
return array (
8627 => 'Wuhan, Hubei',
);
| gpl-2.0 |
gargsuchi/services-listener | core/modules/views/src/Plugin/views/display/Block.php | 11993 | <?php
/**
* @file
* Contains \Drupal\views\Plugin\views\display\Block.
*/
namespace Drupal\views\Plugin\views\display;
use Drupal\Component\Utility\String;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\Plugin\Block\ViewsBlock;
use Symfony\Component\Depend... | gpl-2.0 |
cccp/xy-VSFilter | src/apps/mplayerc/FileDropTarget.cpp | 2544 | /*
* Copyright (C) 2003-2006 Gabest
* http://www.gabest.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
* ... | gpl-2.0 |
drcrane/fred | src/freenet/support/compress/TooBigDictionaryException.java | 168 | package freenet.support.compress;
public class TooBigDictionaryException extends InvalidCompressedDataException {
private static final long serialVersionUID = -1L;
}
| gpl-2.0 |
Fusselwurm/ACE3 | addons/reload/CfgMagazines.hpp | 711 | class CfgMagazines {
class CA_Magazine;
class 150Rnd_762x51_Box: CA_Magazine { // Mag for Negev (LMG_Zafir) - 150Rnd_762x54_Box inherits from this
ACE_isBelt = 1;
};
class 100Rnd_65x39_caseless_mag;
class 200Rnd_65x39_cased_Box: 100Rnd_65x39_caseless_mag { // Mag for Stoner (LMG_Mk200)
... | gpl-2.0 |
maegibbons/librenms | includes/discovery/os/radlan.inc.php | 214 | <?php
if (!$os)
{
if (strstr($sysDescr, "Neyland 24T")) { $os = "radlan"; } /* Dell Powerconnect 5324 */
if (strstr($sysDescr, "AT-8000")) { $os = "radlan"; } /* Allied Telesis AT-8000 */
}
?> | gpl-3.0 |
tumbl3w33d/ansible | lib/ansible/modules/cloud/digital_ocean/digital_ocean_sshkey_info.py | 2469 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
'... | gpl-3.0 |
benjaminabel/pelican-plugins | assets/test_assets.py | 3831 | # -*- coding: utf-8 -*-
# from __future__ import unicode_literals
import hashlib
import locale
import os
from codecs import open
from tempfile import mkdtemp
from shutil import rmtree
import unittest
import subprocess
from pelican import Pelican
from pelican.settings import read_settings
from pelican.tests.support im... | agpl-3.0 |
havicon/mastodon | app/workers/pubsubhubbub/subscribe_worker.rb | 301 | # frozen_string_literal: true
class Pubsubhubbub::SubscribeWorker
include Sidekiq::Worker
sidekiq_options queue: 'push'
def perform(account_id)
account = Account.find(account_id)
logger.debug "PuSH re-subscribing to #{account.acct}"
::SubscribeService.new.call(account)
end
end
| agpl-3.0 |
sferich888/origin | vendor/github.com/alexbrainman/sspi/schannel/schannel_test.go | 1925 | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build windows
package schannel_test
import (
"fmt"
"io/ioutil"
"net"
"testing"
"github.com/alexbrainman/sspi/schannel"
)
func TestPackageInfo(t *te... | apache-2.0 |
CalculatedContent/chef-repo | cookbooks/passenger_apache2/test/cookbooks/passenger_apache2_test/recipes/package.rb | 1158 | #
# Cookbook Name:: passenger_apache2_test
# Recipe:: package
#
# Copyright 2013, Opscode, 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-... | apache-2.0 |
fengshao0907/nutz | test/org/nutz/aop/asm/test/Aop5.java | 69 | package org.nutz.aop.asm.test;
public abstract class Aop5 {
}
| apache-2.0 |
cevaris/pants | testprojects/maven_layout/provided_patching/three/src/main/java/org/pantsbuild/testproject/provided_patching/Shadow.java | 282 | // Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package org.pantsbuild.testproject.provided_patching;
public class Shadow {
public String getShadowVersion() {
return "Shadow Three";
}
} | apache-2.0 |
lichuqiang/kubernetes | pkg/kubelet/dockershim/libdocker/client.go | 4536 | /*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
felixrieseberg/flynn | Godeps/_workspace/src/github.com/flynn/docker-utils/sum/layer.go | 1954 | package sum
import (
"archive/tar"
"bytes"
"io"
"io/ioutil"
"path"
"github.com/flynn/flynn/Godeps/_workspace/src/github.com/docker/docker/pkg/tarsum"
)
// for existing usage
func SumAllDockerSave(saved io.Reader) (map[string]string, error) {
return SumAllDockerSaveVersioned(saved, tarsum.Version0)
}
// .. th... | bsd-3-clause |
githubmoros/myclinicsoft | vendor/google/apiclient-services/src/Google/Service/Dialogflow/GoogleCloudDialogflowV2ListContextsResponse.php | 1394 | <?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... | mit |
retailnext/dalli | test/helper.rb | 923 | $TESTING = true
require 'rubygems'
# require 'simplecov'
# SimpleCov.start
require 'minitest/pride'
require 'minitest/autorun'
require 'mocha/setup'
require 'mini_shoulda'
require 'memcached_mock'
WANT_RAILS_VERSION = ENV['RAILS_VERSION'] || '>= 3.0.0'
gem 'rails', WANT_RAILS_VERSION
require 'rails'
puts "Testing with... | mit |
jakzale/ogre | Tools/LightwaveConverter/src/lwEnvelope.cpp | 10021 | #include "lwEnvelope.h"
lwKey *lwEnvelope::addKey( float time, float value )
{
lwKey *key = new lwKey(time, value);
keys.insert(lower_bound(keys.begin(), keys.end(), key), key);
return key;
}
/*======================================================================
range()
Given the value v of a periodic functi... | mit |
mwarren/rubyspec | library/socket/unixsocket/open_spec.rb | 647 | require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../shared/new', __FILE__)
describe "UNIXSocket.open" do
it_behaves_like :unixsocket_new, :open
platform_is_not :windows do
before :each do
@path = SocketSpecs.socket_path
rm_r @path
@server = UNIXServer.... | mit |
zeropool/duktape | tests/ecmascript/test-dev-bound-functions.js | 2103 | /*===
args: 1 2 3 4
this: [object global]
args: f2 1 2 3
this: this-f2
args: f2 f3 1 2
this: this-f2
===*/
function orig(x,y,z,w) {
print('args:', x, y, z, w);
print('this:', this);
}
var f1, f2, f3, f4;
f1 = orig;
f2 = f1.bind('this-f2', 'f2');
f3 = f2.bind('this-f3', 'f3');
/* Plain function call, 'this' ... | mit |
Karneck/ACE3 | addons/goggles/RscTitles.hpp | 1244 | class RscTitles{
#include "define.hpp"
class RscACE_Goggles_BaseTitle{
idd = -1;
onLoad = "uiNamespace setVariable ['ACE_Goggles_Display', _this select 0]";
onUnload = "uiNamespace setVariable ['ACE_Goggles_Display', displayNull]";
fadeIn=0.5;
fadeOut=0.5;
mo... | gpl-2.0 |
R3nPi2/Drupal-8-Skeleton | core/modules/media/src/Plugin/media/Source/VideoFile.php | 1004 | <?php
namespace Drupal\media\Plugin\media\Source;
use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
use Drupal\media\MediaTypeInterface;
/**
* Media source wrapping around a video file.
*
* @see \Drupal\file\FileInterface
*
* @MediaSource(
* id = "video_file",
* label = @Translation("Video file")... | gpl-2.0 |
johnparker007/mame | src/devices/cpu/clipper/clipper.cpp | 53998 | // license:BSD-3-Clause
// copyright-holders:Patrick Mackinlay
/*
* An implementation of the Fairchild/Intergraph CLIPPER CPU family.
*
* Primary source: http://bitsavers.org/pdf/fairchild/clipper/Clipper_Instruction_Set_Oct85.pdf
*
* TODO:
* - unimplemented C400 instructions (cdb, cnvx[ds]w, loadts, waitd)
*... | gpl-2.0 |
eisbear2020/ZI | themes/contrib/bootstrap/src/Annotation/PluginCallback.php | 1818 | <?php
namespace Drupal\bootstrap\Annotation;
use Drupal\bootstrap\Bootstrap;
use Drupal\Component\Annotation\AnnotationInterface;
use Drupal\Component\Annotation\PluginID;
/**
* Defines a Plugin annotation object that just contains an ID.
*
* @Annotation
*
* @ingroup utility
*/
class PluginCallback extends Plu... | gpl-2.0 |
vikramaditya91/OpenFOAMVik | src/thermophysicalModels/specie/transport/sutherland/sutherlandTransport.H | 6362 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
--------... | gpl-3.0 |
Godin/checkstyle | src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammars/SemicolonBetweenImports.java | 295 | package com.puppycrawl.tools.checkstyle.grammars;
import java.util.Arrays;
;
import java.util.ArrayList;
/**
* Compilable by javac, but noncompilable by eclipse due to
* this <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=425140">bug</a>
*/
public class SemicolonBetweenImports
{
}
| lgpl-2.1 |
shlin/SHIH-WebSites | dal/mgt/editor/plugins/autogrow/fckplugin.js | 2347 | /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://ww... | unlicense |
LeoYao/voldemort | src/java/voldemort/store/CompositeVersionedPutVoldemortRequest.java | 1794 | /*
* Copyright 2013 LinkedIn, 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 to... | apache-2.0 |
qinqinnb/nutz | src/org/nutz/el/obj/AbstractObj.java | 676 | package org.nutz.el.obj;
import org.nutz.el.ElCache;
import org.nutz.lang.util.Context;
/**
* 对象
* @author juqkai(juqkai@gmail.com)
*/
public class AbstractObj implements Elobj{
private String val;
private ElCache ec;
public AbstractObj(String val) {
this.val = val;
}
public String getV... | apache-2.0 |
wangqianbo/bysj | giraph-core/src/main/java/org/apache/giraph/comm/package-info.java | 904 | /*
* 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 ... | apache-2.0 |
InMobi/falcon | oozie/src/main/java/org/apache/falcon/oozie/process/PigProcessWorkflowBuilder.java | 3198 | /**
* 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... | apache-2.0 |
ItsAsbreuk/itsa-cli | project-templates/reactfiber/externals/react-fiber/src/renderers/shared/shared/event/BrowserEventConstants.js | 2969 | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... | bsd-3-clause |
xuebingwu/kpLogo | include/boost/intrusive/any_hook.hpp | 10455 | /////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2006-2013
//
// Distributed under 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)
//
// See http://www.boost... | mit |
thejonanshow/my-boxen | vendor/bundle/ruby/2.3.0/gems/open4-1.3.4/samples/block.rb | 472 | require 'open4'
#
# when using block form the child process is automatically waited using
# waitpid2
#
status =
Open4::popen4("sh") do |pid, stdin, stdout, stderr|
stdin.puts "echo 42.out"
stdin.puts "echo 42.err 1>&2"
stdin.close
puts "pid : #{ pid }"
puts "stdout : #{ stdout.read.st... | mit |
markogresak/DefinitelyTyped | types/carbon__icons-react/lib/qr-code/32.d.ts | 55 | import { QrCode32 } from "../../";
export = QrCode32;
| mit |
markogresak/DefinitelyTyped | types/carbon__icons-react/lib/logo--openshift/24.d.ts | 69 | import { LogoOpenshift24 } from "../../";
export = LogoOpenshift24;
| mit |
mese79/three.js | test/unit/src/extras/curves/LineCurve3.js | 123 | /**
* @author TristanVALCKE / https://github.com/TristanVALCKE
*/
//Todo
console.warn("Todo: Unit tests of LineCurve3")
| mit |
coolweb/openhab | bundles/action/org.openhab.action.xmpp/src/main/java/org/openhab/action/xmpp/internal/XMPPConnect.java | 9247 | /**
* Copyright (c) 2010-2016, openHAB.org and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org... | epl-1.0 |
eyohansa/wesnoth | src/gui/dialogs/game_delete.hpp | 1031 | /*
Copyright (C) 2008 - 2015 by Jörg Hinrichs <joerg.hinrichs@alice-dsl.de>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundatio... | gpl-2.0 |
dmlloyd/openjdk-modules | langtools/test/tools/javac/TryWithResources/TwrAvoidNullCheck.java | 4800 | /*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | gpl-2.0 |
R3nPi2/Drupal-8-Skeleton | core/modules/editor/src/Entity/Editor.php | 4176 | <?php
namespace Drupal\editor\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\editor\EditorInterface;
/**
* Defines the configured text editor entity.
*
* @ConfigEntityType(
* id = "editor",
* label = @Translation("Text Editor"),
* label_collection = @Translation("Text Editors"),
* ... | gpl-2.0 |
ironclad88/JustZH | Scripts/Items/Champion Artifacts/Shared/DjinnisRing.cs | 1135 | using System;
namespace Server.Items
{
public class DjinnisRing : SilverRing
{
[Constructable]
public DjinnisRing()
{
this.Attributes.BonusInt = 5;
this.Attributes.SpellDamage = 10;
this.Attributes.CastSpeed = 2;
}
public DjinnisRing(... | gpl-3.0 |
recci/SuiteCRM | modules/FP_events/metadata/subpanels/default.php | 3082 | <?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
* SuiteCRM... | agpl-3.0 |
GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/@fortawesome/free-solid-svg-icons/faLayerGroup.d.ts | 398 | import { IconDefinition, IconPrefix, IconName } from "@fortawesome/fontawesome-common-types";
export const definition: IconDefinition;
export const faLayerGroup: IconDefinition;
export const prefix: IconPrefix;
export const iconName: IconName;
export const width: number;
export const height: number;
export const ligatu... | apache-2.0 |
manipopopo/tensorflow | tensorflow/contrib/autograph/utils/testing.py | 1235 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
tejima/OP3PKG | apps/pc_frontend/modules/community/templates/quitError.php | 404 | <?php if ($isAdmin): ?>
<?php $body = __('The administrator doesn\'t leave the %community%.') ?>
<?php else: ?>
<?php $body = __('You haven\'t joined this %community% yet.') ?>
<?php endif; ?>
<?php op_include_box('error', $body, array('title' => __('Errors'))) ?>
<?php use_helper('Javascript') ?>
<?php op_include_l... | apache-2.0 |
ilpbox/Orchestra | NodeBox-Muso/typings/node/node.d.ts | 90264 | // Type definitions for Node.js v4.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/borisyankov/DefinitelyTyped>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/************************************************
* ... | apache-2.0 |
ghedsouza/django | django/utils/dateparse.py | 4167 | """Functions to parse datetime objects."""
# We're using regular expressions rather than time.strptime because:
# - They provide both validation and parsing.
# - They're more flexible for datetimes.
# - The date/datetime/time constructors produce friendlier error messages.
import datetime
import re
from django.utils... | bsd-3-clause |
asifmadnan/arrayfire | src/backend/cuda/orb.hpp | 815 | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | bsd-3-clause |
ClauStan/StarLight | StarLight/StarLight/cameraclass.cpp | 2272 | ////////////////////////////////////////////////////////////////////////////////
// Filename: cameraclass.cpp
////////////////////////////////////////////////////////////////////////////////
#include "cameraclass.h"
CameraClass::CameraClass()
{
m_positionX = 0.0f;
m_positionY = 0.0f;
m_positionZ = 0.0f;
m_rotati... | mit |
ralzate/Produccion | vendor/bundle/ruby/2.1.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/memory_usage_detail.rb | 294 | module Fog
module Compute
class Ecloud
class MemoryUsageDetail < Fog::Ecloud::Model
identity :href
attribute :time, :aliases => :Time
attribute :value, :aliases => :Value
def id
href.scan(/\d+/)[0]
end
end
end
end
end
| mit |
andrewpsp/vagrant-aws | lib/vagrant-aws/action/message_not_created.rb | 296 | module VagrantPlugins
module AWS
module Action
class MessageNotCreated
def initialize(app, env)
@app = app
end
def call(env)
env[:ui].info(I18n.t("vagrant_aws.not_created"))
@app.call(env)
end
end
end
end
end
| mit |
beyondplus/cms | resources/views/auth/passwords/email.blade.php | 1896 | @extends('layouts.app')
<!-- Main Content -->
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Reset Password</div>
<div class="panel-body">
... | mit |
ilyhacker/module-zero | src/Abp.Zero.NHibernate/Zero/NHibernate/EntityMappings/ApplicationLanguageTextMap.cs | 520 | using Abp.Localization;
using Abp.NHibernate.EntityMappings;
namespace Abp.Zero.NHibernate.EntityMappings
{
public class ApplicationLanguageTextMap : EntityMap<ApplicationLanguageText, long>
{
public ApplicationLanguageTextMap()
: base("AbpLanguageTexts")
{
Map(x => x.Te... | mit |
HasanSa/hackathon | node_modules/react-helmet/node_modules/core-js/modules/_set-species.js | 363 | 'use strict';
var global = require('./_global')
, $ = require('./_')
, DESCRIPTORS = require('./_descriptors')
, SPECIES = require('./_wks')('species');
module.exports = function(KEY){
var C = global[KEY];
if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {
configurable: true,
... | mit |
dyeimys/republico | e2e/app.e2e-spec.ts | 307 | import { CoreUIPage } from './app.po';
describe('core-ui App', function() {
let page: CoreUIPage;
beforeEach(() => {
page = new CoreUIPage();
});
it('should display message saying app works', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('app works!');
});
});
| mit |
gcao/T.js | public/examples/ace-builds/src/mode-vhdl.js | 5365 | /* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2013, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributio... | mit |
parameshbabu/samples | AllJoyn/Platform/DeviceProviders/WorkItemQueue.cpp | 3501 | //
// Copyright (c) 2015, Microsoft Corporation
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... | mit |
falcontersama/chatbot | vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php | 1807 | <?php
namespace Illuminate\Foundation\Testing\Concerns;
use PHPUnit_Framework_Constraint_Not as ReverseConstraint;
use Illuminate\Foundation\Testing\Constraints\HasInDatabase;
trait InteractsWithDatabase
{
/**
* Assert that a given where condition exists in the database.
*
* @param string $table... | mit |
moveable-dev1/rep1 | Latest/wp-content/plugins/gravityforms/includes/api.php | 45628 | <?php
if ( ! class_exists( 'GFForms' ) ) {
die();
}
/**
* API for standard Gravity Forms functionality.
*
* Supports:
* - Forms
* - Entries
*
* @package Gravity Forms
* @subpackage GFAPI
* @since 1.8
* @access public
*/
class GFAPI {
// FORMS -------------------------------------------------... | gpl-2.0 |
emakis/erpnext | erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.js | 5857 | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.stock");
frappe.ui.form.on("Stock Reconciliation", {
onload: function(frm) {
frm.add_fetch("item_code", "item_name", "item_name");
// end of life
frm.set_que... | gpl-3.0 |
kuali/kc-rice | rice-middleware/it/kew/src/test/java/org/kuali/rice/kew/routemodule/TestRouteModule.java | 5545 | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | apache-2.0 |