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
// Declare internals var internals = {}; // Plugin registration exports.register = function (plugin, options, next) { plugin.route({ path: '/test2', method: 'GET', handler: function (request, reply) { reply('testing123'); } }); plugin.route({ path: '/test2/path', method: 'GET', handler: function (request, ...
thebillkidy/WebRTC-Stream
server/node_modules/hapi/test/integration/pack/--test2/lib/index.js
JavaScript
apache-2.0
409
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
pivotal-amurmann/geode
geode-core/src/main/java/org/apache/geode/cache/query/internal/parse/ASTTypeCast.java
Java
apache-2.0
1,274
// Copyright (C) 2015 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Compound Assignment Operator evaluates its operands from left to right. description: > The left-hand side expression is evaluated before the right-hand side. Left-hand si...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/compound-assignment/S11.13.2_A7.6_T2.js
JavaScript
bsd-2-clause
974
/*! * FileInput Polish Translations * * This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://github.com/kartik-v/bootstrap-fileinput * * NOTE: this file must be saved in UTF-8 encoding. */...
OlliL/lalaMoneyflow
client/contrib/bootstrap-fileinput/js/locales/pl.js
JavaScript
bsd-2-clause
5,901
using UnityEngine; using System.Collections; /// <summary> /// Key input enumeration for easy input sending. /// </summary> public enum KeyInput { GoLeft = 0, GoRight, GoDown, Jump, Count }
tutsplus/A-Star-Pathfinding-for-Platformers
OneWayPlatforms/Assets/Scripts/KeyInput.cs
C#
bsd-2-clause
198
<?php namespace Aura\Web\Response; class CookiesTest extends \PHPUnit_Framework_TestCase { protected $cookies; protected function setUp() { $this->cookies = new Cookies; } public function testSetAndGet() { $this->cookies->set('foo', 'bar', '88', '/path', 'example.com'); ...
auraphp/Aura.Web
tests/Response/CookiesTest.php
PHP
bsd-2-clause
2,511
var path = require('path'); var url = require('url'); var closure = require('closure-util'); var nomnom = require('nomnom'); var log = closure.log; var options = nomnom.options({ port: { abbr: 'p', 'default': 4000, help: 'Port for incoming connections', metavar: 'PORT' }, loglevel: { abbr: ...
GistdaDev/ol3-cesium
build/serve.js
JavaScript
bsd-2-clause
1,218
#region BSD License /* Copyright (c) 2012, Clarius Consulting 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 cond...
austinvernsonger/clide
Src/Clide/VisualStudio/VsServiceProviderExtensions.cs
C#
bsd-2-clause
8,017
/** * This is specifically for the builder where the * dependencies have been resolved and you just want * to access the component.jsons locally. */ var semver = require('semver'); var fs = require('graceful-fs'); var join = require('path').join; var resolve = require('path').resolve; var debug = require('debug')(...
bmanth60/workflow-test
node_modules/component/node_modules/component-remotes/lib/remotes/local.js
JavaScript
bsd-3-clause
3,407
/* ========================================================================= * * * * OpenMesh * * Copyright (c) 2001-2015, RWTH-Aachen University * * ...
svn2github/OpenMesh2
src/OpenMesh/Tools/Decimater/BaseDecimaterT.hh
C++
bsd-3-clause
10,044
namespace Org.BouncyCastle.Crypto.Tls { /// <summary> /// RFC 2246 6.1 /// </summary> public enum CompressionMethod : byte { NULL = 0, /* * RFC 3749 2 */ DEFLATE = 1 /* * Values from 224 decimal (0xE0) through 255 decimal (0xFF) * inclusive are reserved for private use. ...
GaloisInc/hacrypto
src/C#/BouncyCastle/BouncyCastle-1.7/crypto/src/crypto/tls/CompressionMethod.cs
C#
bsd-3-clause
332
None #!/usr/bin/env python # -*- coding: utf-8 -*- import datetime import os # simple json is a python 2.5 library you need to install import json # json comes bundled with python 2.6. use one or the other #import json def run(): print "starting" from receiver.models import Submission from xformmanager....
commtrack/temp-aquatest
utilities/data_migration/data_export_script_new.py
Python
bsd-3-clause
4,187
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/base/metrics/cast_metrics_test_helper.h" #include "base/logging.h" #include "base/macros.h" #include "chromecast/base/metrics/cast_m...
axinging/chromium-crosswalk
chromecast/base/metrics/cast_metrics_test_helper.cc
C++
bsd-3-clause
2,506
#include <xpcc/architecture/platform.hpp> #include <xpcc/debug/logger.hpp> // ---------------------------------------------------------------------------- // Set the log level #undef XPCC_LOG_LEVEL #define XPCC_LOG_LEVEL xpcc::log::INFO typedef GpioInputC0 Adc1In; typedef GpioInputC2 Adc2In; typedef GpioInputB13 Ad...
dergraaf/xpcc
examples/stm32f3_discovery/adc/continous/main.cpp
C++
bsd-3-clause
2,861
/// /// \file /// /// This file is a part of pattern matching testing suite. /// /// \autor Yuriy Solodkyy <yuriy.solodkyy@gmail.com> /// /// This file is a part of the XTL framework (http://parasol.tamu.edu/xtl/). /// Copyright (C) 2005-2012 Texas A&M University. /// All rights reserved. /// #include "tes...
vscharf/Mach7
code/typeswitch/2012-06-11/synthetic_dynamic_cast_fast.cpp
C++
bsd-3-clause
25,748
""" Control global computation context """ from collections import defaultdict _globals = defaultdict(lambda: None) _globals['callbacks'] = set() class set_options(object): """ Set global state within controled context This lets you specify various global settings in a tightly controlled with block ...
wiso/dask
dask/context.py
Python
bsd-3-clause
1,121
package uatparse import ( "encoding/hex" "errors" "fmt" "io/ioutil" "strconv" "strings" ) const ( UPLINK_BLOCK_DATA_BITS = 576 UPLINK_BLOCK_BITS = (UPLINK_BLOCK_DATA_BITS + 160) UPLINK_BLOCK_DATA_BYTES = (UPLINK_BLOCK_DATA_BITS / 8) UPLINK_BLOCK_BYTES = (UPLINK_BLOCK_BITS / 8) UPLINK_FRAME_BLO...
ssokol/stratux
uatparse/uatparse.go
GO
bsd-3-clause
21,443
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkGradientShader.h" namespace skiagm { class FillTypePerspGM : public GM { SkPath fPath; public: FillTypePerspGM() {} void makePath() ...
CTSRD-SOAAP/chromium-42.0.2311.135
third_party/skia/gm/filltypespersp.cpp
C++
bsd-3-clause
4,675
/* * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> * Copyright (C) 2005 Eric Seidel <eric@webkit.org> * Copyright (C) 2013 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify ...
Workday/OpenFrame
third_party/WebKit/Source/platform/graphics/filters/FEDiffuseLighting.cpp
C++
bsd-3-clause
3,336
<?php // Version: 2.0; ManageMembers global $context; $txt['groups'] = 'Groups'; $txt['viewing_groups'] = 'Viewing Membergroups'; $txt['membergroups_title'] = 'Manage Membergroups'; $txt['membergroups_description'] = 'Membergroups are groups of members that have similar permission settings, appearance, or access rig...
Karpec/gizd
smf/Themes/default/languages/ManageMembers.english.php
PHP
bsd-3-clause
7,650
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {createElementWithClassName} from 'chrome://resources/js/util.m.js'; /** * Create by |LineChart.LineChart|. * Create a dummy scrollbar to show t...
chromium/chromium
chrome/browser/resources/chromeos/sys_internals/line_chart/scrollbar.js
JavaScript
bsd-3-clause
4,454
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
grace-/opencv-3.0.0-cvpr
opencv/modules/ml/src/knearest.cpp
C++
bsd-3-clause
16,081
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import { Context, DocumentRegistry, TextModelFactory } from '@jupyterlab/docregistry'; import * as Mock from '@jupyterlab/testutils/lib/mock'; import { UUID } from '@lumino/coreutils'; import { CellRenderer, Da...
jupyter/jupyterlab
packages/csvviewer/test/widget.spec.ts
TypeScript
bsd-3-clause
3,717
//===-- ProcessRunLock.cpp ------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
endlessm/chromium-browser
third_party/llvm/lldb/source/Host/common/ProcessRunLock.cpp
C++
bsd-3-clause
1,469
function safeMatchMedia(query) { var m = window.matchMedia(query); return !!m && m.matches; } define('capabilities', [], function() { var capabilities = { 'JSON': window.JSON && typeof JSON.parse == 'function', 'debug': (('' + document.location).indexOf('dbg') >= 0), 'debug_in_page'...
Joergen/zamboni
media/js/mkt/capabilities.js
JavaScript
bsd-3-clause
3,467
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "tools/gn/ninja_target_writer.h" #include <sstream> #include "base/files/file_util.h" #include "base/strings/string_util.h" #include "tools...
SaschaMester/delicium
tools/gn/ninja_target_writer.cc
C++
bsd-3-clause
9,381
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTileImageFilter.h" #include "SkColorSpaceXformer.h" #include "SkCanvas.h" #include "SkImage.h" #include "SkImageFilterPriv.h" #include "SkMatrix.h" #include "SkOff...
Hikari-no-Tenshi/android_external_skia
src/effects/imagefilters/SkTileImageFilter.cpp
C++
bsd-3-clause
5,247
from __future__ import unicode_literals from django.core.exceptions import PermissionDenied from django.core.mail import send_mail from django.core import validators from django.db import models from django.db.models.manager import EmptyManager from django.utils.crypto import get_random_string, salted_hmac from django...
pwmarcz/django
django/contrib/auth/models.py
Python
bsd-3-clause
17,843
from __future__ import absolute_import, unicode_literals from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404 from wagtail.wagtailadmin.forms import PageViewRestrictionForm from wagtail.wagtailadmin.modal_workflow import render_modal_workflow from wagtail.wagtailcore.mode...
chrxr/wagtail
wagtail/wagtailadmin/views/page_privacy.py
Python
bsd-3-clause
2,828
// // Copyright (c) 2004-2011 Jaroslaw Kowalski <jaak@jkowalski.net> // // 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 co...
jkowalski/NLog
src/NLog/Targets/ConsoleWordHighlightingRule.cs
C#
bsd-3-clause
6,309
package ibxm; /* A data array dynamically loaded from an InputStream. */ public class Data { private int bufLen; private byte[] buffer; private java.io.InputStream stream; public Data( java.io.InputStream inputStream ) throws java.io.IOException { bufLen = 1 << 16; buffer = new byte[ bufLen ]; stream = inp...
Arcnor/micromod
ibxm/src/main/java/ibxm/Data.java
Java
bsd-3-clause
4,767
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/spellcheck/browser/android/component_jni_registrar.h" #include "base/android/jni_android.h" #include "base/android/jni_registrar.h" ...
chromium/chromium
components/spellcheck/browser/android/component_jni_registrar.cc
C++
bsd-3-clause
833
export { enableDebugTools, disableDebugTools } from 'angular2/src/tools/tools';
binariedMe/blogging
node_modules/angular2/tools.d.ts
TypeScript
mit
80
class ValueQuestionPresenter < QuestionPresenter include ActionView::Helpers::NumberHelper def response_label(value) number_with_delimiter(value) end end
stwalsh/smart-answers
app/presenters/value_question_presenter.rb
Ruby
mit
165
#if !NETSTANDARD2_0 using OfficeDevPnP.Core.IdentityModel.WSTrustBindings; using System; using System.IdentityModel.Protocols.WSTrust; using System.IdentityModel.Tokens; using System.Net; using System.ServiceModel; using System.ServiceModel.Security; namespace OfficeDevPnP.Core.IdentityModel.TokenProviders.ADFS { ...
OfficeDev/PnP-Sites-Core
Core/OfficeDevPnP.Core/IdentityModel/TokenProviders/ADFS/UsernameMixed.cs
C#
mit
3,992
# -*- coding: utf-8 -*- """API Request cache tests.""" # # (C) Pywikibot team, 2012-2014 # # Distributed under the terms of the MIT license. # from __future__ import unicode_literals __version__ = '$Id$' # from pywikibot.site import BaseSite import scripts.maintenance.cache as cache from tests import _cache_dir fro...
valhallasw/pywikibot-core
tests/cache_tests.py
Python
mit
1,258
var expect = require('expect.js'); var path = require('path'); var fs = require('../extfs'); describe('extfs', function () { var rootPath = path.join(__dirname, '../'); it('should return all directories', function (done) { fs.getDirs(rootPath, function (err, dirs) { expect(dirs).to.be.an(Array); expect(dir...
codexar/npm-extfs
tests/extfsTest.js
JavaScript
mit
3,671
require 'set' require 'tsort' module Librarian class ManifestSet class GraphHash < Hash include TSort alias tsort_each_node each_key def tsort_each_child(node, &block) self[node].each(&block) end end class << self def shallow_strip(manifests, names) new(man...
phinze/librarian-puppet
vendor/librarian/lib/librarian/manifest_set.rb
Ruby
mit
3,434
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
hansbonini/cloud9-magento
www/app/code/core/Mage/CatalogSearch/Model/Session.php
PHP
mit
1,136
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
hansbonini/cloud9-magento
www/app/code/core/Mage/Rule/Block/Rule.php
PHP
mit
1,025
describe("BASIC CRUD SCENARIOS", function() { require("./basic"); }); describe("VALIDATE CRUD SCENARIOS", function() { require("./validation"); }); describe("REPORT SCENARIOS", function() { require("./report"); });
AndreaZain/dl-module
test/production/finishing-printing/monitoring-event/index.js
JavaScript
mit
228
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. ...
ScottHolden/azure-sdk-for-net
src/SDKs/Resource/Management.ResourceManager/Generated/Models/DeploymentOperation.cs
C#
mit
1,977
/** * The MIT License * Copyright (c) 2014-2016 Ilkka Seppälä * * 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, c...
Crossy147/java-design-patterns
factory-kit/src/main/java/com/iluwatar/factorykit/Bow.java
Java
mit
1,281
Dir[File.join(Rails.root, "lib", "core_ext", "*.rb")].each {|l| require l }
edurange/edurange
config/initializers/core_ext.rb
Ruby
mit
75
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.CompilerServices { using System; using System.Reflection; // This Enum matchs the miImpl flags defined in corhdr.h. It is used to specify // certain method properties. [F...
jelin1/llilum
Zelig/Zelig/RunTime/Framework/mscorlib/System/Runtime/CompilerServices/MethodImplAttribute.cs
C#
mit
2,378
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Threading; using Microsoft.Build.Fram...
nikson/msbuild
src/OrcasEngine/LocalProvider/LocalNode.cs
C#
mit
28,537
/** * @license * Copyright 2013 Palantir Technologies, 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...
AxelSparkster/axelsparkster.github.io
node_modules/tslint/lib/rules/noParameterPropertiesRule.d.ts
TypeScript
mit
911
<?php get_header(); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <article role="main" class="primary-content type-post" id="post-<?php the_ID(); ?>"> <header> <h1><?php the_title(); ?></h1> </header> <?php the_post_thumbnail('full');?> <...
evanhuntley/ftg
single.php
PHP
mit
1,237
'use strict'; describe('Controller: AboutCtrl', function () { // load the controller's module beforeEach(module('e01App')); var AboutCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AboutCtrl = $control...
malaniz/cursoAngular
cl06ClienteB/test/spec/controllers/about.js
JavaScript
mit
550
var searchData= [ ['digitalpin_2eh',['DigitalPin.h',['../_digital_pin_8h.html',1,'']]] ];
cnorfleet/Feeder
libraries/SdFatCopy/html/search/files_2.js
JavaScript
mit
92
namespace GraphQL.Types { public class UnionGraphType : GraphType { } }
bryanerayner/graphql-dotnet
src/GraphQL/Types/UnionGraphType.cs
C#
mit
87
package org.knowm.xchange.ripple; import static org.assertj.core.api.Assertions.assertThat; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.io.InputStream; impo...
timmolter/XChange
xchange-ripple/src/test/java/org/knowm/xchange/ripple/RippleAdaptersTest.java
Java
mit
24,065
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ScintillaNET { /// <summary> /// Lexer property types. /// </summary> public enum PropertyType { /// <summary> /// A Boolean property. This is the default. /// </summary> ...
cqwang/ScintillaNET
src/ScintillaNET/PropertyType.cs
C#
mit
623
from __future__ import print_function import sys def func(): print('{0}.{1}'.format(*sys.version_info[:2])) print(repr(sys.argv[1:])) print('Hello World') return 0
Teino1978-Corp/pre-commit
testing/resources/python3_hooks_repo/python3_hook/main.py
Python
mit
183
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import '@angular/compiler'; import * as fs from 'fs'; import * as path from 'path'; const UTF8 = { encoding: 'utf...
gkalpak/angular
packages/core/test/bundling/hello_world_r2/treeshaking_spec.ts
TypeScript
mit
923
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
NeoVand/networks3d
js/vendor/ndarray.js
JavaScript
mit
45,269
package com.aspose.cells.model; public class SideWall { private Link link = null; public Link getLink() { return link; } public void setLink(Link link) { this.link = link; } }
aspose-cells/Aspose.Cells-for-Cloud
SDKs/Aspose.Cells-Cloud-SDK-for-Java/src/main/java/com/aspose/cells/model/SideWall.java
Java
mit
210
class Admin::BaseController < ApplicationController end
HakubJozak/barbecue
test/dummy/app/controllers/admin/base_controller.rb
Ruby
mit
56
package com.punchthrough.bean.sdk.internal.upload.sketch; public enum SketchUploadState { INACTIVE, RESETTING_REMOTE, SENDING_START_COMMAND, SENDING_BLOCKS, FINISHED }
PunchThrough/bean-sdk-android
sdk/src/main/java/com/punchthrough/bean/sdk/internal/upload/sketch/SketchUploadState.java
Java
mit
173
define('lodash/internal/createWrapper', ['exports', 'lodash/internal/baseSetData', 'lodash/internal/createBindWrapper', 'lodash/internal/createHybridWrapper', 'lodash/internal/createPartialWrapper', 'lodash/internal/getData', 'lodash/internal/mergeData', 'lodash/internal/setData'], function (exports, _lodashInternalBas...
hoka-plus/p-01-web
tmp/babel-output_path-hOv4KMmE.tmp/lodash/internal/createWrapper.js
JavaScript
mit
3,598
// 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 Xunit; using System; using System.Collections; using System.Collections.Specialized; namespace System.Collect...
mafiya69/corefx
src/System.Collections.Specialized/tests/NameObjectCollectionBase/GetEnumeratorTests.cs
C#
mit
5,843
Clazz.declarePackage ("JU"); Clazz.load (["JU.V3"], "JU.Measure", ["java.lang.Float", "javajs.api.Interface", "JU.Lst", "$.P3", "$.P4", "$.Quat"], function () { c$ = Clazz.declareType (JU, "Measure"); c$.computeAngle = Clazz.defineMethod (c$, "computeAngle", function (pointA, pointB, pointC, vectorBA, vectorBC, as...
sandipde/Interactive-Sketchmap-Visualizer
static/jmol/j2s/JU/Measure.js
JavaScript
mit
15,234
/* ----------------------------------------------------------------------------- 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 ...
ruleless/ogre
PlugIns/BSPSceneManager/src/OgreQuake3Shader.cpp
C++
mit
11,012
import Ember from 'ember'; export default Ember.Object.extend({ content: {}, contentLength: 0, add: function(obj) { var id = this.generateId(); this.get('content')[id] = obj; this.incrementProperty("contentLength"); return id; }, getObj: function(key) { var res = this.get('content')[key...
bdvholmes/ember-drag-drop
app/models/obj-hash.js
JavaScript
mit
717
# Image Patches Differential Optical Flow Rotation/Scale # # This example shows off using your OpenMV Cam to measure # rotation/scale by comparing the current and the previous # image against each other. Note that only rotation/scale is # handled - not X and Y translation in this mode. # # However, this examples goes b...
openmv/openmv
scripts/examples/OpenMV/22-Optical-Flow/image-patches-differential-rotation-scale.py
Python
mit
3,596
import { Observable } from 'rxjs/Observable'; /** * @name Keyboard * @description * @usage * ```typescript * import { Keyboard } from 'ionic-native'; * * * * ``` */ export declare class Keyboard { /** * Hide the keyboard accessory bar with the next, previous and done buttons. * @param hide {bool...
Spect-AR/Spect-AR
node_modules/node_modules/ionic-native/dist/esm/plugins/keyboard.d.ts
TypeScript
mit
1,153
""" categories: Types,bytes description: Bytes subscr with step != 1 not implemented cause: Unknown workaround: Unknown """ print(b'123'[0:3:2])
cwyark/micropython
tests/cpydiff/types_bytes_subscrstep.py
Python
mit
145
require('ember-runtime/core'); require('ember-runtime/system/core_object'); require('ember-runtime/mixins/mutable_enumerable'); require('ember-runtime/mixins/copyable'); require('ember-runtime/mixins/freezable'); /** @module ember @submodule ember-runtime */ var get = Ember.get, set = Ember.set, guidFor = Ember.guidF...
teddyzeenny/ember.js
packages/ember-runtime/lib/system/set.js
JavaScript
mit
13,316
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="BoundingBoxWireFrameVisual3D.cs" company="Helix Toolkit"> // Copyright (c) 2014 Helix Toolkit contributors // </copyright> // <summary> // A visual element that shows a w...
DynamoDS/helix-toolkit
Source/HelixToolkit.Wpf/Visual3Ds/ScreenSpaceVisuals/BoundingBoxWireFrameVisual3D.cs
C#
mit
3,576
// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. // using UnityEngine; using System; using System.Collections.Generic; namespace HUX.Utility { public class AABBTree<T> where T : class { #region Private Class...
AllBecomesGood/Share-UpdateHolograms
ShareAndKeepSynced/Assets/MRDesignLab/HUX/Scripts/Utility/AABBTree.cs
C#
mit
8,882
/*! * Bootstrap-select v1.13.2 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2018 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (root === undefined && window !== undefi...
extend1994/cdnjs
ajax/libs/bootstrap-select/1.13.2/js/i18n/defaults-bg_BG.js
JavaScript
mit
1,838
require 'faraday' require 'json' module Twitter module REST module Response class ParseJson < Faraday::Response::Middleware WHITESPACE_REGEX = /\A^\s*$\z/ def parse(body) case body when WHITESPACE_REGEX, nil nil else JSON.parse(body, :s...
yukisako/omiyage
vendor/bundle/ruby/2.2.0/gems/twitter-5.15.0/lib/twitter/rest/response/parse_json.rb
Ruby
mit
746
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
kashike/SpongeAPI
src/main/java/org/spongepowered/api/event/item/inventory/ChangeInventoryEvent.java
Java
mit
1,942
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
RallySoftware/eclipselink.runtime
utils/eclipselink.utils.workbench/framework/source/org/eclipse/persistence/tools/workbench/framework/context/ExpandedResourceRepositoryApplicationContext.java
Java
epl-1.0
2,433
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
RallySoftware/eclipselink.runtime
foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/mappings/transformers/FieldTransformer.java
Java
epl-1.0
2,097
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
RallySoftware/eclipselink.runtime
foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/writing/ComplexUpdateTest.java
Java
epl-1.0
5,045
<?php /* Plugin Name: Black Studio TinyMCE Widget Plugin URI: https://wordpress.org/plugins/black-studio-tinymce-widget/ Description: Adds a new "Visual Editor" widget type based on the native WordPress TinyMCE editor. Version: 2.2.10 Author: Black Studio Author URI: http://www.blackstudio.it Requires at least: 3.1 Tes...
bbiehl/The-Bronze-Horse
wp-content/plugins/black-studio-tinymce-widget/black-studio-tinymce-widget.php
PHP
gpl-2.0
6,595
/*! PopUp Free - v4.7.11 * https://wordpress.org/plugins/wordpress-popup/ * Copyright (c) 2015; * Licensed GPLv2+ */ /*global window:false */ /*global document:false */ /*global wp:false */ /*global wpmUi:false */ /*global ace:false */ /** * Admin Javascript functions for PopUp */ jQuery(function init_admin() { ...
iAPT/producerroom
wp-content/plugins/wordpress-popup/js/popup-admin.js
JavaScript
gpl-2.0
15,341
goog.provide('ol.source.ImageVector'); goog.require('goog.asserts'); goog.require('goog.events'); goog.require('goog.events.EventType'); goog.require('goog.vec.Mat4'); goog.require('ol.dom'); goog.require('ol.extent'); goog.require('ol.render.canvas.ReplayGroup'); goog.require('ol.renderer.vector'); goog.require('ol.s...
henriquespedro/Autarquia-Livre
vendor/openlayers/ol/ol/source/imagevectorsource.js
JavaScript
gpl-2.0
8,407
/* * OCaml Support For IntelliJ Platform. * Copyright (C) 2010 Maxim Manuylov * * 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 optio...
emmeryn/intellij-ocaml
OCamlSources/src/manuylov/maxim/ocaml/lang/parser/psi/element/impl/OCamlParenthesesTypeParametersImpl.java
Java
gpl-2.0
1,487
// // Copyright (c) 2004-2006 Jaroslaw Kowalski <jaak@jkowalski.net> // // 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 co...
WCell/WCell
Libraries/Source/NLog/Targets/Wrappers/PostFilteringWrapper.cs
C#
gpl-2.0
7,654
//# LCExtension.cc: Extend an LCRegion along straight lines to other dimensions //# Copyright (C) 1998,2001 //# Associated Universities, Inc. Washington DC, USA. //# //# This library is free software; you can redistribute it and/or modify it //# under the terms of the GNU Library General Public License as published by ...
bmerry/casacore
lattices/LRegions/LCExtension.cc
C++
gpl-2.0
10,331
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-forwprop2" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ class YY { public: YY(const YY &v) { e[0] = v.e[0]; e[1] = v.e[1]; e[2] = v.e[2]; } double &y() { return e[1]; } double e[3]; }; class XX { public: YY direction() const ...
unofficial-opensource-apple/llvmgcc42
gcc/testsuite/g++.dg/tree-ssa/pr14814.C
C++
gpl-2.0
608
// methods (functions of objects) // see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions // http://www.ecma-international.org/ecma-262/6.0/#sec-method-definitions var Obj = { myMethod(a, b) { }, *myGenerator(a, b) { } }
masatake/ctags
Units/parser-javascript.r/js-methods.d/input.js
JavaScript
gpl-2.0
284
/* * Copyright (C) 2013 University of Dundee & Open Microscopy Environment. * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * ...
jballanc/openmicroscopy
components/tests/ui/library/java/src/org/openmicroscopy/shoola/keywords/ThumbnailCheckLibrary.java
Java
gpl-2.0
9,339
<?php /** * Akeeba Engine * The modular PHP5 site backup engine * @copyright Copyright (c)2009-2013 Nicholas K. Dionysopoulos * @license GNU GPL version 3 or, at your option, any later version * @package akeebaengine */ // Protection against direct access defined('AKEEBAENGINE') or die(); /** * Da...
effortlesssites/template
tmp/com_akeeba-3.9.2-core/backend/akeeba/abstract/driver.php
PHP
gpl-2.0
39,065
/* * Creado por SharpDevelop. * Usuario: jonathan * Fecha: 09/12/2013 * Hora: 11:17 p. m. * * Para cambiar esta plantilla use Herramientas | Opciones | Codificación | Editar Encabezados Estándar */ using System; using System.Drawing; using System.Windows.Forms; namespace Proyecto { /// <summary> /// Descrip...
csaldana/Proyecto-final
ZombieSystem1.2.0/Proyecto V 1.1.1/Zombie System V1.2/Zombie System V1.3/Proyecto/MenuConsulta.cs
C#
gpl-2.0
939
//----------------------------------------------------------------------------- // boost-libs variant/test/test8.cpp header file // See http://www.boost.org for updates, documentation, and revision history. //----------------------------------------------------------------------------- // // Copyright (c) 2003 // Eric ...
rprata/boost
libs/variant/test/test8.cpp
C++
gpl-2.0
2,621
/* * iaf_psc_alpha_presc.cpp * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST 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, o...
INM-6/nest-git-migration
precise/iaf_psc_alpha_presc.cpp
C++
gpl-2.0
18,368
/* Copyright (c) 2006-2009 by Jakob Schroeter <js@camaya.net> This file is part of the gloox library. http://camaya.net/gloox This software is distributed under a license. The full license agreement can be found in the file LICENSE in this distribution. This software may not be copied, modified, sold or dist...
segfault/gloox-clone
src/vcardupdate.cpp
C++
gpl-2.0
1,874
<?php /** * TestLink Open Source Project - http://testlink.sourceforge.net/ * $Id: keywordBarChart.php,v 1.16.2.1 2010/12/10 15:52:23 franciscom Exp $ * * @author Kevin Levy * * - PHP autoload feature is used to load classes on demand * * @internal revisions * */ require_once('../../config.inc.php'); requi...
TabbedOut/testlink-1.9.9
lib/results/keywordBarChart.php
PHP
gpl-2.0
3,079
require 'migrate' class RenameBugsToNotes < ActiveRecord::Migration def self.up rename_enumeration "map_bug_status_enum", "note_status_enum" rename_enumeration "map_bug_event_enum", "note_event_enum" rename_table :map_bugs, :notes rename_index :notes, "map_bugs_pkey", "notes_pkey" rename_index :...
anatoliegolovco/grmdemo
db/migrate/20110521142405_rename_bugs_to_notes.rb
Ruby
gpl-2.0
2,293
<?php /* V4.98 13 Feb 2008 (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved. Released under both BSD license and Lesser GPL library license. Whenever there is any discrepancy between the two licenses, the BSD license will take precedence. See License.txt. Set tabs to 4 for best viewing. ...
jcannava/bleedcrimson.net
photos/lib/adodb/perf/perf-mssql.inc.php
PHP
gpl-2.0
4,822
/* * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.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 of the License, or (at your * option) any later ve...
Effec7/Adamantium
src/server/scripts/Commands/cs_send.cpp
C++
gpl-2.0
10,199
<?php namespace TYPO3\CMS\Workspaces\Tests\Unit\Controller\Remote; /* * 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 cop...
morinfa/TYPO3.CMS
typo3/sysext/workspaces/Tests/Unit/Controller/Remote/RemoteServerTest.php
PHP
gpl-2.0
8,153
<?php /** * Summon record fallback loader * * PHP version 7 * * Copyright (C) Villanova University 2018. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This program ...
samueloph/vufind
module/VuFind/src/VuFind/Record/FallbackLoader/Summon.php
PHP
gpl-2.0
3,913
<?php /** * Side Box Template * * @copyright Copyright 2003-2020 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: DrByte 2020 Jun 19 Modified in v1.5.7 $ */ $content = ""; $content .= '<div id="' ....
barco57/zencart
includes/templates/responsive_classic/sideboxes/tpl_order_history.php
PHP
gpl-2.0
879
#include "expire-tiles.hpp" #include "options.hpp" #include <iterator> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> #include <stdexcept> #include <boost/format.hpp> #include <set> #define EARTH_CIRCUMFERENCE (40075016.68) namespace { void run_test(const char* test_name, void (*test...
MaxSem/osm2pgsql
tests/test-expire-tiles.cpp
C++
gpl-2.0
10,053
<?php /** * Customizer settings for this theme. * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ if ( ! class_exists( 'TwentyTwenty_Customize' ) ) { /** * CUSTOMIZER SETTINGS * * @since Twenty Twenty 1.0 */ class TwentyTwenty_Customize { /** * Register customizer o...
rasken2003/fuga-it-business
wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
PHP
gpl-2.0
14,593
class CreateArticlePage include PageObject page_url '<%=params[:article_name]%>' a(:doesnotexist_msg, text: 'Look for pages within Wikipedia that link to this title') end
paladox/mediawiki-extensions-MobileFrontend
tests/browser/features/support/pages/create_article_page.rb
Ruby
gpl-2.0
179