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
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2019 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
kingthorin/zap-extensions
addOns/ascanrulesBeta/src/main/java/org/zaproxy/zap/extension/ascanrulesBeta/HexString.java
Java
apache-2.0
1,851
/* * 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 ...
deltaprojects/druid
processing/src/main/java/org/apache/druid/query/aggregation/post/ExpressionPostAggregator.java
Java
apache-2.0
8,546
/* * 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 ...
DoudTechData/ignite
modules/yardstick/src/main/java/org/apache/ignite/yardstick/IgniteNode.java
Java
apache-2.0
7,875
/****************************************************************************** * Copyright (c) 2006, 2010 VMware Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distr...
eclipse/gemini.blueprint
core/src/main/java/org/eclipse/gemini/blueprint/service/importer/support/internal/aop/StaticServiceReferenceProxy.java
Java
apache-2.0
2,728
# Copyright 2016 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...
hfp/tensorflow-xsmm
tensorflow/python/kernel_tests/conv_ops_3d_test.py
Python
apache-2.0
27,016
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apac...
AzureAutomationTeam/azure-powershell
src/ResourceManager/Sql/Commands.Sql/AdvancedThreatProtection/Services/SqlAdvancedThreatProtectionAdapter.cs
C#
apache-2.0
4,342
/* * Copyright 2012-2013 the original author or 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 ap...
10045125/spring-boot
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java
Java
apache-2.0
1,069
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.engine.view.compilation; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList; import java.util.Set; import java.util.concurren...
jeorme/OG-Platform
projects/OG-Engine/src/main/java/com/opengamma/engine/view/compilation/ViewCompilationContext.java
Java
apache-2.0
5,308
/** * 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...
shakamunyi/hadoop-20
src/hdfs/org/apache/hadoop/hdfs/server/datanode/BlockWithChecksumFileReader.java
Java
apache-2.0
24,443
/** * Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.analytics.model.forex.forward; import java.util.Collections; import java.util.Set; import com.google.common.collect.Iterables; import com.opengamma....
jeorme/OG-Platform
projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/model/forex/forward/FXForwardPointsMethodPresentValueFunction.java
Java
apache-2.0
6,310
/* * Copyright 2002-2012 the original author or 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 ap...
sunpy1106/SpringBeanLifeCycle
src/main/java/org/springframework/beans/factory/xml/NamespaceHandlerSupport.java
Java
apache-2.0
5,803
/** * Derby - Class org.apache.derbyTesting.functionTests.tests.lang.PrecedenceTest * * 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 licen...
scnakandala/derby
java/testing/org/apache/derbyTesting/functionTests/tests/lang/PrecedenceTest.java
Java
apache-2.0
2,454
// Copyright JS Foundation and other contributors, http://js.foundation // // 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 r...
jerryscript-project/jerryscript
tests/jerry/regression-test-issue-3935.js
JavaScript
apache-2.0
716
/** * 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...
songweijia/fffs
sources/hadoop-2.4.1-src/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/Jets3tNativeFileSystemStore.java
Java
apache-2.0
14,116
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
llvm-mirror/libcxx
test/libcxx/iterators/prev.debug1.pass.cpp
C++
apache-2.0
1,215
# Copyright 2014-2015 Canonical Limited. # # 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 ...
CanonicalBootStack/charm-hacluster
tests/charmhelpers/__init__.py
Python
apache-2.0
1,285
/* * 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 ...
MuShiiii/commons-io
src/test/java/org/apache/commons/io/output/TeeOutputStreamTest.java
Java
apache-2.0
4,322
/* * 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 ...
belliottsmith/cassandra
test/unit/org/apache/cassandra/auth/CassandraRoleManagerTest.java
Java
apache-2.0
7,254
aws_iam_user 'test-kitchen-user' do aws_access_key node['aws_test']['key_id'] aws_secret_access_key node['aws_test']['access_key'] action :create end aws_iam_user 'test-kitchen-user' do aws_access_key node['aws_test']['key_id'] aws_secret_access_key node['aws_test']['access_key'] action :delete end
vishnuzimbra/zimbra
test/fixtures/cookbooks/aws_test/recipes/iam_user.rb
Ruby
apache-2.0
313
import {verifyNoBrowserErrors} from 'angular2/src/testing/e2e_util'; import {Promise} from 'angular2/src/core/facade/async'; describe('WebWorkers Kitchen Sink', function() { afterEach(() => { verifyNoBrowserErrors(); browser.ignoreSynchronization = false; }); var selector = "hello-app .greeting"; var U...
hankduan/angular
modules/playground/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.ts
TypeScript
apache-2.0
1,788
<?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...
tsugiproject/tsugi
vendor/google/apiclient-services/src/Google/Service/CloudKMS/KeyOperationAttestation.php
PHP
apache-2.0
1,447
/** * Copyright 2015-2017 Red Hat, Inc, and individual contributors. * * 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 require...
swarmsandbox/wildfly-swarm
fractions/javaee/datasources/src/main/java/org/wildfly/swarm/datasources/runtime/drivers/Hive2DriverInfo.java
Java
apache-2.0
1,490
// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.ebay.trading.api; import java.io.Serializable; import com.leansoft.nano.annotation.*; import java.util.List; /** * * Indicates whether Contact Seller is enabled for Classified Ads. * Added for EbayMotors Pro users. * */ public class EB...
uaraven/nano
sample/webservice/eBayDemoApp/src/com/ebay/trading/api/EBayMotorsProBestOfferEnabledDefinitionType.java
Java
apache-2.0
509
package useridentitymapping import ( "fmt" kapi "k8s.io/kubernetes/pkg/api" kerrs "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/rest" "k8s.io/kubernetes/pkg/runtime" "k8s.io/kubernetes/pkg/util" "k8s.io/kubernetes/pkg/util/fielderrors" "k8s.io/kubernetes/pkg/util/sets" "github.com/openshift/...
vongalpha/origin
pkg/user/registry/useridentitymapping/rest.go
GO
apache-2.0
10,722
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apa...
dulems/azure-powershell
src/ResourceManager/TrafficManager/Commands.TrafficManager2/Endpoint/RemoveAzureTrafficManagerEndpointConfig.cs
C#
apache-2.0
2,353
cask 'hunt-x' do version :latest sha256 :no_check url 'http://huntx.mobilefirst.in/Apps/Hunt%20X.zip' name 'Hunt X' homepage 'http://huntx.mobilefirst.in/' license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder app 'Hunt X.app' end
jppelteret/homebrew-cask
Casks/hunt-x.rb
Ruby
bsd-2-clause
307
// This file was procedurally generated from the following sources: // - src/dstr-binding-for-await/obj-ptrn-prop-ary.case // - src/dstr-binding-for-await/default/for-await-of-async-func-var.template /*--- description: Object binding pattern with "nested" array binding pattern not using initializer (for-await-of statem...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-await-of/async-func-dstr-var-obj-ptrn-prop-ary.js
JavaScript
bsd-2-clause
1,967
class Evernote < Cask url 'https://www.evernote.com/about/download/get.php?file=EvernoteMac' appcast 'http://update.evernote.com/public/ENMac/EvernoteMacUpdate.xml' homepage 'https://evernote.com/' version 'latest' sha256 :no_check link 'Evernote.app' end
tonyseek/homebrew-cask
Casks/evernote.rb
Ruby
bsd-2-clause
268
/* * Copyright 2010-2017 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bx#license-bsd-2-clause */ #include "test.h" #include <bx/handlealloc.h> #include <bx/hash.h> TEST_CASE("HandleListT", "") { bx::HandleListT<32> list; list.pushBack(16); REQUIRE(list.getFront() == 16); REQ...
mmicko/bx
tests/handle_test.cpp
C++
bsd-2-clause
2,557
class Libwebsockets < Formula desc "C websockets server library" homepage "https://libwebsockets.org" url "https://github.com/warmcat/libwebsockets/archive/v3.1.0.tar.gz" sha256 "db948be74c78fc13f1f1a55e76707d7baae3a1c8f62b625f639e8f2736298324" head "https://github.com/warmcat/libwebsockets.git" bottle do ...
adamliter/homebrew-core
Formula/libwebsockets.rb
Ruby
bsd-2-clause
1,637
#ifndef SM_PYTHON_ID_HPP #define SM_PYTHON_ID_HPP #include <numpy_eigen/boost_python_headers.hpp> #include <boost/python/to_python_converter.hpp> #include <Python.h> #include <boost/cstdint.hpp> namespace sm { namespace python { // to use: sm::python::Id_python_converter<FrameId>::register_converter(); ...
ethz-asl/Schweizer-Messer
sm_python/include/sm/python/Id.hpp
C++
bsd-3-clause
2,754
// 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 "ui/message_center/views/message_popup_collection.h" #include "base/containers/cxx20_erase.h" #include "base/memory/raw_ptr.h" #include "bas...
chromium/chromium
ui/message_center/views/message_popup_collection_unittest.cc
C++
bsd-3-clause
38,889
// Copyright (c) 2006-2008 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 "base/thread_local.h" #include <pthread.h> #include "base/logging.h" namespace base { // static void ThreadLocalPlatform::AllocateSl...
balena/sandboxed
chrome/base/thread_local_posix.cc
C++
bsd-3-clause
826
// 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 "third_party/blink/renderer/core/paint/paint_invalidator.h" #include "base/trace_event/trace_event.h" #include "third_party/abseil-cpp/absl/type...
chromium/chromium
third_party/blink/renderer/core/paint/paint_invalidator.cc
C++
bsd-3-clause
15,422
// Copyright 2015 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/html_viewer/layout_test_content_handler_impl.h" #include <utility> #include "base/bind.h" #include "base/macros.h" #include "compon...
js0701/chromium-crosswalk
components/html_viewer/layout_test_content_handler_impl.cc
C++
bsd-3-clause
4,105
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
js0701/chromium-crosswalk
third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp
C++
bsd-3-clause
3,311
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Benchmarks.Data { [Tabl...
sumeetchhetri/FrameworkBenchmarks
frameworks/CSharp/aspnetcore/Benchmarks/Data/Fortune.cs
C#
bsd-3-clause
902
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Text.Json; using System.Threading.Tasks; using Benchmarks.Configuration; using Benchmarks.Data; using Microsoft.AspNetCore.Bu...
sumeetchhetri/FrameworkBenchmarks
frameworks/CSharp/aspnetcore/Benchmarks/Middleware/MultipleUpdatesRawMiddleware.cs
C#
bsd-3-clause
2,038
/* * Copyright (c) 2010-2014 ARM Limited * Copyright (c) 2012-2013 AMD * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a...
BellScurry/gem5-fault-injection
src/cpu/o3/fetch_impl.hh
C++
bsd-3-clause
54,320
/* * Copyright (c) 2001-2005 The Regents of The University of Michigan * Copyright (c) 2010 Advanced Micro Devices, 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...
bxshi/gem5
src/sim/sim_object.cc
C++
bsd-3-clause
4,656
<?php /** * @package yii2-grid * @author Kartik Visweswaran <kartikv2@gmail.com> * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015 * @version 3.0.8 */ namespace kartik\grid; use kartik\base\AssetBundle; /** * Asset bundle for GridView Widget (for exporting content) * * @author...
hucongyang/yii
vendor/kartik-v/yii2-grid/GridExportAsset.php
PHP
bsd-3-clause
631
#include <walle/sys/wallesys.h> using namespace std; /// Web Application Library namaspace namespace walle { namespace sys { bool Filesystem::fileExist( const string &file ) { if ( ::access(file.c_str(),F_OK) == 0 ) return true; else return false; } bool Filesystem::isLink( const string &file ) { struct sta...
lilothar/walle-c11
walle/sys/Filesystem.cpp
C++
bsd-3-clause
5,052
// Copyright (c) 2012 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 "base/strings/utf_string_conversions.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/profile_sync_service.h" #i...
sgraham/nope
chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc
C++
bsd-3-clause
12,107
# Copyright 2020 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. """Utilities to process compresssed files.""" import contextlib import logging import os import pathlib import re import shutil import struct import tempfil...
chromium/chromium
tools/binary_size/libsupersize/zip_util.py
Python
bsd-3-clause
5,188
package cucumber.runtime.xstream; import cucumber.deps.com.thoughtworks.xstream.converters.SingleValueConverter; import java.util.ArrayList; import java.util.List; class ListConverter implements SingleValueConverter { private final String delimiter; private final SingleValueConverter delegate; public Li...
VivaceVivo/cucumber-mod-DI
core/src/main/java/cucumber/runtime/xstream/ListConverter.java
Java
mit
1,391
package com.external.activeandroid.serializer; /* * Copyright (C) 2010 Michael Pardo * * 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....
darlk/BeeFramework_Android
src/com/external/activeandroid/serializer/UtilDateSerializer.java
Java
mit
1,106
<?php namespace Oro\Bundle\TranslationBundle\Tests\Unit\Command; use Symfony\Component\Console\Tester\CommandTester; use Symfony\Bundle\FrameworkBundle\Console\Application; use Oro\Bundle\TranslationBundle\Tests\Unit\Command\Stubs\TestKernel; use Oro\Bundle\TranslationBundle\Command\OroTranslationPackCommand; class...
northdakota/platform
src/Oro/Bundle/TranslationBundle/Tests/Unit/Command/OroTranslationPackCommandTest.php
PHP
mit
7,533
class AddSomeIndices < ActiveRecord::Migration def change add_index :updates, :created_at add_index :observations, :created_at add_index :observations, :observed_on add_index :identifications, :created_at end end
lucas-ez/inaturalist
db/migrate/20150319205049_add_some_indices.rb
Ruby
mit
233
require File.expand_path('../../test_helper.rb', __FILE__) require File.expand_path('../freeradius_stats.rb', __FILE__) class FreeradiusStatsTest < Test::Unit::TestCase def setup @options = parse_defaults("freeradius_stats") end def teardown end def test_clean_run # Stub the plugin instance where ...
pingdomserver/scout-plugins
freeradius_stats/test.rb
Ruby
mit
1,566
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Diagnostics; using System.IO.PortsTests; using System.Text; using System.Threading; using System.Thread...
Jiayili1/corefx
src/System.IO.Ports/tests/SerialPort/Read_char_int_int_Generic.cs
C#
mit
18,965
<?php namespace Kunstmaan\CacheBundle\Form\Varnish; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; /** * Class BanType. */ class BanType extends AbstractT...
mwoynarski/KunstmaanBundlesCMS
src/Kunstmaan/CacheBundle/Form/Varnish/BanType.php
PHP
mit
844
package org.robolectric.shadows; import android.widget.ArrayAdapter; import org.robolectric.annotation.Implements; import org.robolectric.annotation.RealObject; import org.robolectric.util.ReflectionHelpers; @SuppressWarnings("UnusedDeclaration") @Implements(ArrayAdapter.class) public class ShadowArrayAdapter<T> exte...
spotify/robolectric
shadows/framework/src/main/java/org/robolectric/shadows/ShadowArrayAdapter.java
Java
mit
620
require File.dirname(__FILE__) + '/../spec_helper' describe CodeFormatter do def format(text) CodeFormatter.new(text).to_html end it "determines language based on file path" do formatter = CodeFormatter.new("") formatter.language("unknown").should eq("unknown") formatter.language("hello.rb").sho...
nischay13144/railscasts
spec/lib/code_formatter_spec.rb
Ruby
mit
1,988
require "libxml" require "active_support/core_ext/object/blank" require "stringio" module ActiveSupport module XmlMini_LibXMLSAX #:nodoc: extend self # Class that will build the hash while the XML document # is being parsed using SAX events. class HashBuilder include LibXML::XML::SaxParser::Ca...
arjes/rails
activesupport/lib/active_support/xml_mini/libxmlsax.rb
Ruby
mit
2,092
"""Individual test""" import datetime from django.test import TransactionTestCase from django.contrib.auth.models import User from apps.managers.player_mgr.models import Profile from apps.utils import test_utils from apps.managers.challenge_mgr.models import RoundSetting class OverallPrizeTest(TransactionTestCase):...
vijayanandau/KnowledgeShare
makahiki/apps/widgets/prizes/tests/individual_prize_tests.py
Python
mit
5,225
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y) es5id: 11.10.2_A3_T2.3 description: > Type(x) is different from Type(y) and both types vary between Number (primitive ...
PiotrDabkowski/Js2Py
tests/test_cases/language/expressions/bitwise-xor/S11.10.2_A3_T2.3.js
JavaScript
mit
802
/** * @license * Copyright Google Inc. 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 {runServer} from '../../src/protractor/utils'; describe('Bazel protractor utils', () => { it('should be a...
petebacondarwin/angular
packages/bazel/test/protractor-utils/index_test.ts
TypeScript
mit
557
require 'mws/feeds/client'
jack0331/peddler
lib/mws/feeds.rb
Ruby
mit
27
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; usi...
genlu/roslyn
src/VisualStudio/Core/Test.Next/Services/PerformanceTrackerServiceTests.cs
C#
mit
7,698
<?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...
ramonornela/Zebra
library/Zend/Gdata/YouTube/Extension/ReleaseDate.php
PHP
mit
1,444
/** * @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 {state, style, trigger} from '@angular/animations'; import {Component, ContentChildren, Directive, EventEmitte...
ocombe/angular
packages/core/test/acceptance/inherit_definition_feature_spec.ts
TypeScript
mit
155,194
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); tslib_1.__exportStar(require("./2.9/type"), exports); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGUudHMiXSwibmFtZXMiOltdLCJ...
AxelSparkster/axelsparkster.github.io
node_modules/tsutils/typeguard/type.js
JavaScript
mit
357
import requests from django.utils.translation import ugettext as _ from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from ..base import ProviderException from .provider import DoubanProvider class DoubanOAuth2Adapter(OAuth2Adapter): pro...
okwow123/djangol2
example/env/lib/python2.7/site-packages/allauth/socialaccount/providers/douban/views.py
Python
mit
1,354
class Role < ActiveRecord::Base has_and_belongs_to_many :users before_validation :camelize_title validates_uniqueness_of :title def camelize_title(role_title = self.title) self.title = role_title.to_s.camelize end def self.[](title) find_or_create_by_title(title.to_s.camelize) end end
clanplaid/wow.clanplaid.net
vendor/plugins/authentication/app/models/role.rb
Ruby
mit
313
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Linq; using Roslyn.Test.Utilities; using Xunit; nam...
abock/roslyn
src/Compilers/Core/CodeAnalysisTest/MetadataReferences/MetadataReferencePropertiesTests.cs
C#
mit
4,674
package com.frostwire.jlibtorrent; import com.frostwire.jlibtorrent.swig.dht_lookup_vector; import com.frostwire.jlibtorrent.swig.dht_routing_bucket_vector; import com.frostwire.jlibtorrent.swig.session_status; import java.util.ArrayList; import java.util.List; /** * Contains session wide state and counters. * * ...
tchoulihan/frostwire-jlibtorrent
src/com/frostwire/jlibtorrent/SessionStatus.java
Java
mit
9,844
var assert = require('assert'); var jsv = require('jsverify'); var R = require('..'); var eq = require('./shared/eq'); describe('compose', function() { it('is a variadic function', function() { eq(typeof R.compose, 'function'); eq(R.compose.length, 0); }); it('performs right-to-left function composit...
angeloocana/ramda
test/compose.js
JavaScript
mit
1,837
/* * The MIT License * * Copyright (c) 2011, CloudBees, Inc. * * 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...
Vlatombe/jenkins
core/src/main/java/hudson/cli/Connection.java
Java
mit
9,707
#include <utilities.h> #include <fstream> namespace Utilities { namespace Math { double degreesToRadians(double angle) { return (angle * PI) / 180; } double radiansToDegrees(double angle) { return angle * (180/PI); } } namespace...
velocic/opengl-tutorial-solutions
22-loading-3d-models/src/utilities.cpp
C++
mit
909
var Emitter = require("events").EventEmitter; var shared; function Bank(options) { this.address = options.address; this.io = options.io; this.io.i2cConfig(); } Bank.prototype.read = function(register, numBytes, callback) { if (register) { this.io.i2cRead(this.address, register, numBytes, callback); } el...
manorius/printing_with_node
node_modules/johnny-five/lib/evshield.js
JavaScript
mit
6,044
/******************************************************************************* * Copyright (c) 2012-2017 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 ...
gazarenkov/che-sketch
ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/gutter/Gutters.java
Java
epl-1.0
1,006
/******************************************************************************* * Copyright (c) 2012-2017 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 ...
gazarenkov/che-sketch
wsmaster/che-core-api-ssh-shared/src/main/java/org/eclipse/che/api/ssh/shared/Constants.java
Java
epl-1.0
1,038
<?php $HOME = realpath(dirname(__FILE__)) . "/../../../.."; require_once($HOME . "/tests/class/Common_TestCase.php"); /* * This file is part of EC-CUBE * * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved. * * http://www.lockon.co.jp/ * * This program is free software; you can redistribute it and/or ...
mnmn111/ec-cube-global
tests/class/util/SC_Utils/SC_Utils_getRealURLTest.php
PHP
gpl-2.0
2,732
<?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 an...
T0MM0R/magento
web/lib/Zend/Validate/Barcode/Gtin14.php
PHP
gpl-2.0
1,429
<?php /** * @file * Contains \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate. */ namespace Drupal\devel_generate\Plugin\DevelGenerate; use Drupal\comment\CommentManagerInterface; use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Datetime\DateFormatterInterface; use Drupal\Core\Entity\Entit...
eric-shell/badcamp-d8
modules/devel/devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php
PHP
gpl-2.0
16,625
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
TaymourReda/-https-github.com-adempiere-adempiere
base/src/org/compiere/model/X_AD_ImpFormat.java
Java
gpl-2.0
6,439
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2009 Eric Lafortune (eric@graphics.cornell.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publ...
shakalaca/ASUS_ZenFone_A450CG
external/proguard/src/proguard/obfuscate/MappingPrinter.java
Java
gpl-2.0
4,505
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
vanfanel/scummvm
engines/ags/engine/ac/dynobj/cc_gui.cpp
C++
gpl-2.0
1,695
<?php namespace app\models; use Yii; /** * This is the model class for table "rel_job". * * @property integer $rj_id * @property string $positiontype * @property string $rj_name * @property string $rj_dep * @property string $work_type * @property string $max_salary * @property string $work_city * @property...
zyweb/group5
models/RelJob.php
PHP
gpl-2.0
2,597
/* * Copyright (c) 2001-2008 Caucho Technology, Inc. All rights reserved. * * The Apache Software License, Version 1.1 * * 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 mu...
mdaniel/svn-caucho-com-resin
modules/hessian/src/com/caucho/hessian/io/AbstractStreamSerializer.java
Java
gpl-2.0
3,888
<?php defined( 'ABSPATH' ) or exit() ?> <div class="wrap eventrocket cleanup"> <h2> <?php _e( 'Event Data Cleanup', 'eventrocket' ) ?> </h2> <?php if ( ! $in_progress ): ?> <p> <?php _e( 'There may be occasions where you want to remove all traces of The Events Calendar and associated ' . 'plugins from the ...
evamichalcak/doartystuff
wp-content/plugins/event-rocket/templates/cleanup-screen.php
PHP
gpl-2.0
2,765
// license:BSD-3-Clause // copyright-holders:Curt Coder /* TODO: - tape input/output - PL-80 plotter - serial printer - thermal printer */ #include "includes/comx35.h" #include "formats/imageutl.h" #include "softlist.h" /**************************************************************************...
h0tw1r3/mame
src/mame/drivers/comx35.cpp
C++
gpl-2.0
23,542
var app = angular.module('site', ['ui.bootstrap', 'ngAria']); app.factory('Backend', ['$http', function($http) { var get = function(url) { return function() { return $http.get(url).then(function(resp) { return resp.data; }); } ...
Gelvazio/ORGANIZACOES
microsoft.github.io/microsoft.github.io-master/js/main.js
JavaScript
gpl-2.0
3,518
# Copyright (c) 2016--2017 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 received a cop...
ogajduse/spacewalk
backend/cdn_tools/manifest.py
Python
gpl-2.0
13,620
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sales\Service\V1; use Magento\TestFramework\TestCase\WebapiAbstract; class OrderHoldTest extends WebapiAbstract { const SERVICE_VERSION = 'V1'; const SERVICE_NAME = 'salesOrderManagement...
FPLD/project0
vendor/magento/magento2-base/dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/OrderHoldTest.php
PHP
gpl-2.0
1,240
package main import ( log "github.com/AcalephStorage/consul-alerts/Godeps/_workspace/src/github.com/Sirupsen/logrus" consulapi "github.com/AcalephStorage/consul-alerts/Godeps/_workspace/src/github.com/hashicorp/consul/api" ) const LockKey = "consul-alerts/leader" type LeaderElection struct { lock *consu...
hoist/consul-alerts
leader-election.go
GO
gpl-2.0
1,548
/* * Copyright (c) 1998, 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 ...
md-5/jdk10
src/java.desktop/share/classes/javax/swing/plaf/basic/package-info.java
Java
gpl-2.0
2,590
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
WensiWu/openfoam-extend-foam-extend-3.1
src/foam/matrices/Matrix/MatrixI.H
C++
gpl-3.0
3,618
using UnityEngine; /// <summary> /// Functionality common to both NGUI and 2D sprites brought out into a single common parent. /// Mostly contains everything related to drawing the sprite. /// </summary> public abstract class UIBasicSprite : UIWidget { public enum Type { Simple, Sliced, Tiled, Filled, Adv...
artandrtom/MyRepository
RacingCars/RacingCars/Assets/NGUI/Scripts/Internal/UIBasicSprite.cs
C#
gpl-3.0
25,566
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.0
src/meshTools/PointEdgeWave/PointEdgeWave.C
C++
gpl-3.0
34,391
using System; using System.Linq; using System.Windows.Forms; using Rubberduck.Parsing.Grammar; using Rubberduck.Parsing.Symbols; using Rubberduck.Refactorings.Rename; namespace Rubberduck.UI.Refactorings { public partial class RenameDialog : Form, IRenameView { public RenameDialog() { ...
ptwales/Rubberduck
RetailCoder.VBE/UI/Refactorings/RenameDialog.cs
C#
gpl-3.0
2,733
/******************************************************************************* ** ** Photivo ** ** Copyright (C) 2008 Jos De Laender <jos.de_laender@telenet.be> ** Copyright (C) 2012-2013 Michael Munzert <mail@mm-log.com> ** ** This file is part of Photivo. ** ** Photivo is free software: you can redistribute it and/...
tectronics/photivo
Sources/ptImage8.cpp
C++
gpl-3.0
3,515
PhishingFramework::Application.routes.draw do devise_for :admins # image tracking routes. get '/reports/image/:uid.png' => 'reports#image' # only allow emails to be send from POST request post '/email/preview_email/:id' => 'email#preview', as: 'preview_email' post '/email/test_email/:id' => 'email#test', a...
zhuyue1314/phishing-frenzy
config/routes.rb
Ruby
gpl-3.0
2,411
<?php /* ---------------------------------------------------------------------- * app/controllers/find/BrowseObjectsController.php * ---------------------------------------------------------------------- * CollectiveAccess * Open-source collections management software * --------------------------------------------...
libis/ca_babtekst
app/controllers/find/BrowseObjectsController.php
PHP
gpl-3.0
4,873
package org.thoughtcrime.securesms.crypto; import androidx.annotation.NonNull; import org.thoughtcrime.securesms.util.Hex; import java.io.IOException; public class DatabaseSecret { private final byte[] key; private final String encoded; public DatabaseSecret(@NonNull byte[] key) { this.key = key; t...
jtracey/Signal-Android
src/org/thoughtcrime/securesms/crypto/DatabaseSecret.java
Java
gpl-3.0
627
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.1
src/finiteVolume/interpolation/surfaceInterpolation/schemes/UpwindFitScheme/UpwindFitData.C
C++
gpl-3.0
5,777
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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. # # This program is distrib...
Microvellum/Fluid-Designer
win64-vc/2.78/scripts/freestyle/styles/long_anisotropically_dense.py
Python
gpl-3.0
3,125
#!/usr/bin/python # # 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 distribut...
hryamzik/ansible
lib/ansible/modules/network/nxos/nxos_install_os.py
Python
gpl-3.0
19,714
<?php /* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2016 Frédéric France <frederic.france@free.fr> * * 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 Soft...
tomours/dolibarr
htdocs/compta/paiement_charge.php
PHP
gpl-3.0
10,955
# # Copyright (C) 1997-2016 JDE Developers Team # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program...
fqez/JdeRobot
src/libs/comm_py/comm/ice/navdataIceClient.py
Python
gpl-3.0
4,847