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 |
|---|---|---|---|---|---|
# Copyright 2019 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... | tensorflow/tensorflow | tensorflow/lite/testing/op_tests/batch_to_space_nd.py | Python | apache-2.0 | 4,144 |
<?php
/*
* This file is part of the Respect\Rest package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Respect\Rest\Routines;
use Respect\Rest\Request;
/** Routine that runs before the route matching */
interface Prox... | googlecodelabs/cloud-lamp-migration | web/core/vendor/respect/rest/library/Respect/Rest/Routines/ProxyableWhen.php | PHP | apache-2.0 | 436 |
using FluentValidation;
using Nop.Admin.Models.Settings;
using Nop.Core.Domain.Orders;
using Nop.Services.Localization;
using Nop.Web.Framework.Validators;
namespace Nop.Admin.Validators.Settings
{
public class RewardPointsSettingsValidator : BaseNopValidator<RewardPointsSettingsModel>
{
public Reward... | jornfilho/nopCommerce | source/Presentation/Nop.Web/Administration/Validators/Settings/RewardPointsSettingsValidator.cs | C# | apache-2.0 | 849 |
package ca.uhn.fhir.model.dstu3.composite;
import java.util.List;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Descript... | eug48/hapi-fhir | hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu3/composite/CodingDt.java | Java | apache-2.0 | 11,977 |
/*
* Licensed to DuraSpace under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* DuraSpace licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file excep... | dbernstein/fcrepo4 | fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/exception/TransactionNotFoundException.java | Java | apache-2.0 | 1,665 |
// 不再赘述
var path = require('path')
// 加载 confi.index.js
var config = require('../config')
// 使用一些小工具
var utils = require('./utils')
// 加载 webpack
var webpack = require('webpack')
// 加载 webpack 配置合并工具
var merge = require('webpack-merge')
// 加载 webpack.base.conf.js
var baseWebpackConfig = require('./webpack.base.conf')
/... | huang303513/WebBasicCommonDemos | vue-cli2.0的webpack配置分析/lessproject/build/webpack.prod.conf.js | JavaScript | apache-2.0 | 4,179 |
// Example repl is a simple REPL (read-eval-print loop) for GO using
// http://github.com/0xfaded/eval to the heavy lifting to implement
// the eval() part.
//
// The intent here is to show how more to use the library, rather than
// be a full-featured REPL.
//
// A more complete REPL including command history, tab com... | CodyGuo/godebug | Godeps/_workspace/src/github.com/0xfaded/eval/demo/repl.go | GO | apache-2.0 | 6,199 |
/*
* 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 n... | mahak/hbase | hbase-common/src/main/java/org/apache/hadoop/hbase/io/encoding/DiffKeyDeltaEncoder.java | Java | apache-2.0 | 19,734 |
package store
import (
"strconv"
"strings"
"github.com/docker/swarmkit/api"
"github.com/docker/swarmkit/api/naming"
memdb "github.com/hashicorp/go-memdb"
)
const tableTask = "task"
func init() {
register(ObjectStoreConfig{
Table: &memdb.TableSchema{
Name: tableTask,
Indexes: map[string]*memdb.IndexSch... | mstanleyjones/docker | vendor/github.com/docker/swarmkit/manager/state/store/tasks.go | GO | apache-2.0 | 7,821 |
/*
Copyright 2017 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, ... | ravilr/kubernetes | pkg/proxy/service.go | GO | apache-2.0 | 17,273 |
<?php
/* *
* 类名:AlipayNotify
* 功能:支付宝通知处理类
* 详细:处理支付宝各接口通知返回
* 版本:3.2
* 日期:2011-03-25
* 说明:
* 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
* 该代码仅供学习和研究支付宝接口使用,只是提供一个参考
*************************注意*************************
* 调试通知返回时,可查看或改写log日志的写入TXT里的数据,来检查通知返回是否正常
*/
namespace Addons\Payment\Co... | lovebull/wild_weiphp | Addons/Payment/Controller/Alipay/AlipayNotify.class.php | PHP | apache-2.0 | 5,320 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.eas.opc.da.dcom;
import org.jinterop.dcom.common.JIException;
import org.jinterop.dcom.core.JIStruct;
import org.jinterop.dcom.core.JIVariant;
/**
*
* @author pk
*/
public class OPCITEMSTATE
{
privat... | altsoft/PlatypusJS | opc-da/src/main/java/com/eas/opc/da/dcom/OPCITEMSTATE.java | Java | apache-2.0 | 1,334 |
/* Copyright (c) 2016 PaddlePaddle 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 applicable law or... | Canpio/Paddle | paddle/fluid/operators/fill_zeros_like_op.cc | C++ | apache-2.0 | 2,212 |
#region Using
using System;
#endregion
namespace PPWCode.Util.OddsAndEnds.I.DateTimeProvider
{
public class GenuineDateTimeProvider : IDateTimeProvider
{
public GenuineDateTimeProvider()
{
}
public static IDateTimeProvider CreateInstance()
{
... | jandppw/ppwcode-recovered-from-google-code | dotnet/Util/OddsAndEnds/I/2.n/2.1.1/src/I/DateTimeProvider/GenuineDateTimeProvider.cs | C# | apache-2.0 | 577 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | libosu/elasticsearch | src/main/java/org/elasticsearch/rest/action/admin/cluster/node/restart/RestNodesRestartAction.java | Java | apache-2.0 | 3,716 |
/*************************GO-LICENSE-START*********************************
* Copyright 2015 ThoughtWorks, 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... | ketan/functional-tests | src/test/java/com/thoughtworks/cruise/api/response/BuildCause.java | Java | apache-2.0 | 1,969 |
var assert = require('assert');
var util = require('util');
var events = require('events');
var utils = require('../../lib/utils');
var helper = require('../test-helper');
var InetAddress = require('../../lib/types').InetAddress;
describe('InetAddress', function () {
describe('constructor', function () {
it('sh... | thiagoveras/nodejs-driver | test/unit/inet-address-tests.js | JavaScript | apache-2.0 | 4,324 |
# Copyright 2015 CloudByte Inc.
# 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 b... | nikesh-mahalka/cinder | cinder/volume/drivers/cloudbyte/cloudbyte.py | Python | apache-2.0 | 38,259 |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.CodeAnalysis.Editor.CSharp.SignatureHelp;
using Microsoft.CodeAnalysis.Editor.UnitTests.SignatureHelp;
using... | Inverness/roslyn | src/EditorFeatures/CSharpTest/SignatureHelp/ElementAccessExpressionSignatureHelpProviderTests.cs | C# | apache-2.0 | 27,540 |
// Copyright (c) Microsoft. 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.Collections.Generic;
using Microsoft.CodeAnalysis;
namespace a2md
{
public sealed class DescriptorEqualityComparer : IEqualit... | heejaechang/roslyn-analyzers | tools/a2md/DescriptorEqualityComparer.cs | C# | apache-2.0 | 807 |
/*
* Copyright 2018-present Facebook, 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... | LegNeato/buck | src/com/facebook/buck/core/build/engine/RuleDepsCache.java | Java | apache-2.0 | 865 |
package brooklyn.util.text;
import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
/** wraps a call to {@link String#format(String, Object...)} in a toString, i.e. using %s syntax,
* useful for places where we want deferred evaluation
* (e.g. as message to {@link Preconditions} to ski... | rhodgin/brooklyn | utils/common/src/main/java/brooklyn/util/text/FormattedString.java | Java | apache-2.0 | 892 |
package recreate
import (
"fmt"
"time"
"github.com/golang/glog"
kapi "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
kclient "github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubectl"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/G... | pombredanne/atomic-enterprise | pkg/deploy/strategy/recreate/recreate.go | GO | apache-2.0 | 6,924 |
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | Multi-Support/jbpm | jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/ProcessStorageEnvironmentBuilder.java | Java | apache-2.0 | 1,369 |
<?php
final class PHUIHeaderView extends AphrontTagView {
const PROPERTY_STATUS = 1;
private $header;
private $tags = array();
private $image;
private $imageURL = null;
private $imageEditURL = null;
private $subheader;
private $headerIcon;
private $noBackground;
private $bleedHeader;
private $p... | freebsd/phabricator | src/view/phui/PHUIHeaderView.php | PHP | apache-2.0 | 12,343 |
/*
* 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 ... | jbonofre/beam | sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/impl/interpreter/operator/string/BeamSqlOverlayExpressionTest.java | Java | apache-2.0 | 3,880 |
var V;
function F() {
}
;
var C = (function () {
function C() {
}
C.prototype.pF = function () {
};
C.prototype.rF = function () {
};
C.prototype.pgF = function () {
};
C.prototype.psF = function (param) {
};
C.prototype.rgF = function () {
};
C.prototype.rsF = functi... | vcsjones/typescript | tests/baselines/reference/giant.commonjs.js | JavaScript | apache-2.0 | 5,825 |
/**
* Copyright 2010-2016 Boxfuse GmbH
*
* 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... | nathanvick/flyway | flyway-core/src/main/java/org/flywaydb/core/api/MigrationVersion.java | Java | apache-2.0 | 6,513 |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | rainerh/camunda-bpm-platform | engine/src/test/java/org/camunda/bpm/engine/test/authorization/history/HistoricIncidentAuthorizationTest.java | Java | apache-2.0 | 14,196 |
<?php
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) {
exit;
}
/**
* Main Widget Template
*
*
* @file sidebar.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.0
* @filesour... | Doap/sinkjuice.com | wp-content/themes/prensiguia/sidebar-ciencia.php | PHP | apache-2.0 | 1,336 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.or... | wso2/siddhi | modules/siddhi-core/src/test/java/io/siddhi/core/managment/AsyncTestCase.java | Java | apache-2.0 | 15,834 |
/*
* 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 ... | afinka77/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheEntrySerializablePredicate.java | Java | apache-2.0 | 4,293 |
/*
* Copyright 2009 The Closure Compiler 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... | GoogleChromeLabs/chromeos_smart_card_connector | third_party/closure-compiler/src/src/com/google/javascript/jscomp/testing/SimpleSourceExcerptProvider.java | Java | apache-2.0 | 1,757 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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 applicabl... | vichoward/python-neutronclient | neutronclient/neutron/v2_0/credential.py | Python | apache-2.0 | 2,705 |
/**
* @license
* Copyright 2016 Google Inc. 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 requir... | jacksonic/vjlofvhjfgm | src/foam/graphics/StereoCView.js | JavaScript | apache-2.0 | 1,166 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | gingerwizard/elasticsearch | server/src/main/java/org/elasticsearch/search/aggregations/pipeline/PercentilesBucketPipelineAggregator.java | Java | apache-2.0 | 2,793 |
// Generated by xsd compiler for android/java
// DO NOT CHANGE!
package com.ebay.trading.api;
/**
*
* The status of gallery image generation. That status will return either a value of 'Success' or
* a value that indicates why the gallery image has not been generated.
*
*/
public enum Galle... | uaraven/nano | sample/webservice/eBayDemoApp/src/com/ebay/trading/api/GalleryStatusCodeType.java | Java | apache-2.0 | 2,546 |
var path = require('path');
var assign = require('object-assign');
var forEachBail = require('enhanced-resolve/lib/forEachBail');
var basename = require('enhanced-resolve/lib/getPaths').basename;
module.exports = function (modulesToResolveToEs5) {
return {
apply: doApply.bind(this, modulesToResolveToEs5)
... | BabylonJS/Babylon.js | Tools/WebpackPlugins/viewerResolve.js | JavaScript | apache-2.0 | 1,075 |
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.tasks.config;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.*;
i... | siosio/intellij-community | plugins/tasks/tasks-core/src/com/intellij/tasks/config/RecentTaskRepositories.java | Java | apache-2.0 | 3,466 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.copier.snapshot.reader;
import java.util.Map;
import com.opengamma.core.marketdatasnapshot.CurveKey;
import com.opengamma.core.marketdatasnapshot... | DevStreet/FinanceAnalytics | projects/OG-Integration/src/main/java/com/opengamma/integration/copier/snapshot/reader/SnapshotReader.java | Java | apache-2.0 | 1,187 |
/**
* 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... | RallySoftware/avro | lang/c++/impl/parsing/ValidatingCodec.cc | C++ | apache-2.0 | 14,444 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.option.pricing.tree;
/**
* A call has payoff max[S1 * S2 - K, 0], while a put pays off max[K - S1 * S2, 0] at expiry
*/
public cla... | jeorme/OG-Platform | projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/model/option/pricing/tree/ProductOptionFunctionProvider.java | Java | apache-2.0 | 2,452 |
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.component.factory.engine;
import java.util.LinkedHashMap;
import java.util.Map;
import org.joda.beans.Bean;
import org.joda.beans.BeanBuilder;
import org.joda... | jeorme/OG-Platform | projects/OG-Component/src/main/java/com/opengamma/component/factory/engine/MarketDataProviderResolverComponentFactory.java | Java | apache-2.0 | 22,810 |
/*
* Copyright 2013-present Facebook, 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... | marcinkwiatkowski/buck | src/com/facebook/buck/dalvik/DalvikStatsCache.java | Java | apache-2.0 | 1,893 |
package policybased
import (
"errors"
"fmt"
"sort"
kapi "k8s.io/kubernetes/pkg/api"
kapierrors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/rest"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/client/retry"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/registry/gener... | fabric8io/gofabric8 | vendor/github.com/openshift/origin/pkg/authorization/registry/rolebinding/policybased/virtual_storage.go | GO | apache-2.0 | 12,439 |
/*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2015 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License... | lgrill-pentaho/big-data-plugin | api/runtimeTest/src/test/java/org/pentaho/runtime/test/action/impl/LoggingRuntimeTestActionHandlerImplTest.java | Java | apache-2.0 | 5,458 |
/*
* Copyright 2016 The Cartographer 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... | af-silva/cartographer_ros | cartographer_ros/src/ros_log_sink.cc | C++ | apache-2.0 | 2,260 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.marketdata.live;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.opengamma.engine.view.ViewProcess;
import c... | jeorme/OG-Platform | projects/OG-Engine/src/main/java/com/opengamma/engine/marketdata/live/ViewProcessAvailabilityNotificationListener.java | Java | apache-2.0 | 2,195 |
# 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 u... | cpcloud/arrow | ruby/red-arrow/test/test-map-data-type.rb | Ruby | apache-2.0 | 1,264 |
package com.google.api.ads.dfp.jaxws.v201411;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ReportJobStatus.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="Repo... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201411/ReportJobStatus.java | Java | apache-2.0 | 1,274 |
// ----------------------------------------------------------------------------------
//
// 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... | hovsepm/azure-powershell | src/ResourceManager/SiteRecovery/Commands.SiteRecovery/RecoveryPlan/EditAzureSiteRecoveryRecoveryPlan.cs | C# | apache-2.0 | 9,317 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding-for-await/ary-ptrn-rest-ary-rest.case
// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template
/*---
description: Rest element containing a rest element (for-await-of statement)
esid: sec-for-in-and-for-of-sta... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-await-of/async-gen-dstr-const-ary-ptrn-rest-ary-rest.js | JavaScript | bsd-2-clause | 2,180 |
cask 'progressive-downloader' do
version '2.11.3'
sha256 'ca8c5ef946b8c745837d39980b5d8c95d3f15ad28d8f531289163cf6079760b6'
url "https://www.macpsd.net/update/#{version}/PSD.dmg"
name 'Progressive Downloader'
homepage 'https://www.macpsd.net/'
depends_on macos: '>= :mavericks'
app 'Progressive Download... | muan/homebrew-cask | Casks/progressive-downloader.rb | Ruby | bsd-2-clause | 547 |
'''
Created on = '10/1/13'
Author = 'mmunn'
Unit test : EUCA-7710 missing input validation on CLC
setUp : Install Credentials, starts instance
test : run euca-bundle-instance, euca-attach-volume and euca-dettach-volume with bad input parameters
for bucket,prefix... | nagyistoce/eutester | testcases/cloud_admin/3-4/Euca7710.py | Python | bsd-2-clause | 4,008 |
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... | guorendong/iridium-browser-ubuntu | third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js | JavaScript | bsd-3-clause | 57,639 |
#! /usr/bin/env python
#
# fits2pdf.py -- Image a FITS file as a PDF.
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
"""
$ ./fits2pdf.py <fitsfile> <output.pdf>
"""... | rajul/ginga | scripts/fits2pdf.py | Python | bsd-3-clause | 1,754 |
#!/usr/bin/env vpython3
# Copyright 2021 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 unittest
from blinkpy.web_tests.stale_expectation_removal import builders
from unexpected_passes_common import constants
from... | chromium/chromium | third_party/blink/tools/blinkpy/web_tests/stale_expectation_removal/builders_unittest.py | Python | bsd-3-clause | 2,804 |
// Copyright 2018 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.
// Package lockedfile creates and manipulates files whose contents should only
// change atomically.
package lockedfile
import (
"fmt"
"io"
"io/ioutil"
"os... | akutz/go | src/cmd/go/internal/lockedfile/lockedfile.go | GO | bsd-3-clause | 5,191 |
<?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... | jupeter/zf1 | tests/Zend/View/Helper/InlineScriptTest.php | PHP | bsd-3-clause | 3,820 |
module.exports = {
test: {
options: {
port: 8000,
keepalive: true,
hostname: 'localhost',
livereload: 35728,
open: 'http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/test.html'
}
},
dev: {
options:... | TBAPI-0KA/vizabi | grunt/config/connect.js | JavaScript | bsd-3-clause | 536 |
# Generated by Django 2.2.6 on 2019-11-05 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scanners', '0013_auto_20191105_1522'),
]
operations = [
migrations.AlterField(
model_name='scannerrule',
name='actio... | eviljeff/olympia | src/olympia/scanners/migrations/0014_alter_action_choices_on_scannerrule.py | Python | bsd-3-clause | 536 |
// © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
#include "unicode/utypes.h"
#if !UCONFIG_NO_FORMATTING
#include "cstring.h"
#include "unicode/ures.h"
#include "uresimp.h"
#include "charstr.h"
#include "number_formatimpl.h"
#include "unicode/numfmt.h"
#i... | endlessm/chromium-browser | third_party/icu/source/i18n/number_formatimpl.cpp | C++ | bsd-3-clause | 21,061 |
# Generic tests that all raw classes should run
from os import path as op
from numpy.testing import assert_allclose
from mne.datasets import testing
from mne.io import Raw
def _test_concat(reader, *args):
"""Test concatenation of raw classes that allow not preloading"""
data = None
for preload in (True, ... | trachelr/mne-python | mne/io/tests/test_raw.py | Python | bsd-3-clause | 1,809 |
class CreateSpreePromotionCategories < ActiveRecord::Migration[4.2]
def change
create_table :spree_promotion_categories do |t|
t.string :name
t.timestamps null: false, precision: 6
end
add_column :spree_promotions, :promotion_category_id, :integer
add_index :spree_promotions, :promotion_c... | ayb/spree | core/db/migrate/20140715182625_create_spree_promotion_categories.rb | Ruby | bsd-3-clause | 341 |
<?php
namespace Vmwarephp;
use Vmwarephp\Exception as Ex;
class Vhost {
private $service;
function __construct($host, $username, $password) {
$this->host = $host;
$this->username = $username;
$this->password = $password;
}
function getPort() {
$port = parse_url($this->host, PHP_URL_PORT);
return $port... | mattiasgeniar/vmwarephp | library/Vmwarephp/Vhost.php | PHP | bsd-3-clause | 1,379 |
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef GRAPHLAB_LOGGER_LOG_ROTATE_HPP
#define GRAPHLAB_LOGGER_LOG_ROTATE_HPP
#include <cstddef>
#include <string>
namespace graphlab {... | dato-code/SFrame | oss_src/logger/log_rotate.hpp | C++ | bsd-3-clause | 1,524 |
//===----- CGOpenMPRuntime.cpp - Interface to OpenMP Runtimes -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | dededong/goblin-core | riscv/llvm/3.5/cfe-3.5.0.src/lib/CodeGen/CGOpenMPRuntime.cpp | C++ | bsd-3-clause | 7,142 |
package org.hisp.dhis.datastatistics;
/*
* Copyright (c) 2004-2017, University of Oslo
* 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 ... | vmluan/dhis2-core | dhis-2/dhis-api/src/main/java/org/hisp/dhis/datastatistics/DataStatistics.java | Java | bsd-3-clause | 8,631 |
package org.hisp.dhis.report;
/*
* Copyright (c) 2004-2017, University of Oslo
* 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... | troyel/dhis2-core | dhis-2/dhis-api/src/main/java/org/hisp/dhis/report/ReportService.java | Java | bsd-3-clause | 6,363 |
/*
* Copyright (c) 2011-2012 ARM Limited
* 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 hardware implementation of the ... | aferr/LatticeMemCtl | src/mem/bus.cc | C++ | bsd-3-clause | 17,480 |
/*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | endlessm/chromium-browser | third_party/webrtc/modules/audio_processing/aec3/signal_dependent_erle_estimator.cc | C++ | bsd-3-clause | 17,930 |
/*
* (C) 1999-2003 Lars Knoll (knoll@kde.org)
* Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved.
*
* 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 the Free Software Foundation; either
* ver... | guorendong/iridium-browser-ubuntu | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp | C++ | bsd-3-clause | 15,007 |
/**
* Copyright 2013-2015, 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.
*
* @emails react-co... | camsong/react | src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js | JavaScript | bsd-3-clause | 8,182 |
import sys
import re
from functools import wraps
from unittest import TestCase
from scrapy.http import Request
from scrapy.utils.spider import iterate_spider_output
from scrapy.utils.python import get_spec
class ContractsManager(object):
contracts = {}
def __init__(self, contracts):
for contract in ... | 1900/scrapy | scrapy/contracts/__init__.py | Python | bsd-3-clause | 4,024 |
/**
* 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... | zeke/react | src/renderers/dom/client/syntheticEvents/SyntheticWheelEvent.js | JavaScript | bsd-3-clause | 2,006 |
package org.hisp.dhis.reporting.dataset.action;
/*
* Copyright (c) 2004-2017, University of Oslo
* 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... | troyel/dhis2-core | dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/dataset/action/GetDataSetReportOptionsAction.java | Java | bsd-3-clause | 7,482 |
// Copyright 2010 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.
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
// Generic expression parser/evaluator
type Value interface {
String() string
BinaryOp... | Triskite/willstone-goclone | doc/talks/io2010/eval2.go | GO | bsd-3-clause | 4,858 |
#region License
//
// Copyright (c) 2013, Kooboo team
//
// Licensed under the BSD License
// See the file LICENSE.txt for details.
//
#endregion
using Kooboo.CMS.Common.Persistence.Non_Relational;
using Kooboo.CMS.Sites.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.... | lingxyd/CMS | Kooboo.CMS/Kooboo.CMS.SitesProviders/Kooboo.CMS.Sites.Persistence.EntityFramework/LabelProvider/LabelProvider.cs | C# | bsd-3-clause | 6,921 |
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SelectTypeExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='Select'
description='Defau... | aabustamante/Semantic-UI-React | docs/app/Examples/addons/Select/Types/index.js | JavaScript | mit | 450 |
<?php
/**
* This file is part of PDepend.
*
* PHP Version 5
*
* Copyright (c) 2008-2013, Manuel Pichler <mapi@pdepend.org>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Re... | drentas/JenkinsTest | vendor/pdepend/pdepend/src/test/php/PDepend/Source/AST/ASTParameterTest.php | PHP | mit | 8,342 |
import six
import signal
import logging
import warnings
from twisted.internet import reactor, defer
from zope.interface.verify import verifyClass, DoesNotImplement
from scrapy.core.engine import ExecutionEngine
from scrapy.resolver import CachingThreadedResolver
from scrapy.interfaces import ISpiderLoader
from scrapy... | bdh1011/wau | venv/lib/python2.7/site-packages/scrapy/crawler.py | Python | mit | 11,081 |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Legacy product contains all deprecated methods for this class and can be
* removed in the future.
*/
include_once( WC_ABSPATH . 'includes/legacy/abstract-wc-legacy-product.php' );
/**
* Abstract Product Class
*
* The WooCommerce product class handles individu... | hai2219/tantap-shop | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php | PHP | mit | 49,196 |
# coding: utf-8
require 'test_helper'
class GarantiTest < Test::Unit::TestCase
def setup
@original_kcode = nil
Base.mode = :test
@gateway = GarantiGateway.new(login: 'a', password: 'b', terminal_id: 'c', merchant_id: 'd')
@credit_card = credit_card(4242424242424242)
@amount = 1000 # 1000 cents... | atxwebs/active_merchant | test/unit/gateways/garanti_test.rb | Ruby | mit | 4,823 |
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require 'redis/objects'
class Roster
include Redis::Objects
counter :available_slots, :start => 10
counter :pitchers, :limit => :max_pitchers
counter :basic
hash_key :contact_information, :marshal_keys=>{'updated_at'=>true}
lock :resort, :... | timrourke/rchat | vendor/cache/ruby/2.2.0/gems/redis-objects-1.2.0/spec/redis_objects_model_spec.rb | Ruby | mit | 37,399 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// <Area> Nullable - Box-Unbox </Area>
// <Title> Nullable type with unbox box expr </Title>
// <Description>
// checking type of byte using is operator
// </Descrip... | ktos/coreclr | tests/src/JIT/jit64/valuetypes/nullable/box-unbox/value/box-unbox-value003.cs | C# | mit | 987 |
require 'fog/aws/models/dns/record'
module Fog
module DNS
class AWS
class Records < Fog::Collection
attribute :is_truncated, :aliases => ['IsTruncated']
attribute :max_items, :aliases => ['MaxItems']
attribute :name
attribute :next_record_name, ... | jonpstone/portfolio-project-rails-mean-movie-reviews | vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.0/lib/fog/aws/models/dns/records.rb | Ruby | mit | 4,370 |
(function () {
'use strict';
/**
* @ngdoc overview
* @name ui.grid.edit
* @description
*
* # ui.grid.edit
*
* <div class="alert alert-success" role="alert"><strong>Stable</strong> This feature is stable. There should no longer be breaking api changes without a deprecation warning.</div>
*
... | Lincoln-xzc/angular-ui-grid | src/features/edit/js/gridEdit.js | JavaScript | mit | 48,612 |
/*************************************************************************/
/* thread_posix.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | okamstudio/godot | drivers/unix/thread_posix.cpp | C++ | mit | 5,278 |
///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 - 2016 Esri. 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
//
// h... | cmccullough2/cmv-wab-widgets | wab/2.3/jimu.js/ConfigManager.js | JavaScript | mit | 39,282 |
'use strict';
var fs = require('fs');
var path = require('path');
var walk = require('pug-walk');
module.exports = load;
function load(ast, options) {
load.validateOptions(options);
// clone the ast
ast = JSON.parse(JSON.stringify(ast));
return walk(ast, function (node) {
if (node.str === undefined) {
... | ajredovan/.tour | tour_v1/node_modules/pug-loader/index.js | JavaScript | mit | 2,820 |
namespace TestStack.BDDfy
{
public class AndGivenAttribute : ExecutableAttribute
{
public AndGivenAttribute() : this(null) { }
public AndGivenAttribute(string stepTitle) : base(ExecutionOrder.ConsecutiveSetupState, stepTitle) { }
}
} | sebgod/TestStack.BDDfy | src/TestStack.BDDfy/Scanners/StepScanners/ExecutableAttribute/GwtAttributes/AndGivenAttribute.cs | C# | mit | 264 |
package org.spongycastle.crypto.engines;
import org.spongycastle.crypto.BlockCipher;
import org.spongycastle.crypto.CipherParameters;
import org.spongycastle.crypto.DataLengthException;
import org.spongycastle.crypto.params.KeyParameter;
import org.spongycastle.crypto.params.TweakableBlockCipherParameters;
/**
* Imp... | Skywalker-11/spongycastle | core/src/main/java/org/spongycastle/crypto/engines/ThreefishEngine.java | Java | mit | 51,043 |
/*globals Handlebars */
require("ember-handlebars/ext");
/**
@module ember
@submodule ember-handlebars
*/
/**
@private
Find templates stored in the head tag as script tags and make them available
to `Ember.CoreView` in the global `Ember.TEMPLATES` object. This will be run
as as jQuery DOM-ready callback.
... | chancancode/ember.js | packages/ember-handlebars/lib/loader.js | JavaScript | mit | 2,142 |
var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat.distribution');
require('../env.js');
suite.addBatch({
'normal pdf': {
'topic': function() {
return jStat;
},
//Checked against R's dnorm(x, mean, sd)
'check pdf calculation': function(jStat) {
... | akrawitz/jstat | test/distribution/normal-test.js | JavaScript | mit | 923 |
require 'spec_helper'
describe UserDecorator do
describe "#display_name" do
subject{ user.display_name }
context 'when profile_type is personal' do
context "when we only have a full name" do
let(:user){ create(:user, name: nil, full_name: "Full Name") }
it{ should == 'Full Name' }
... | jinutm/silverclass | spec/decorators/user_decorator_spec.rb | Ruby | mit | 5,001 |
<?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... | ramonornela/Zebra | library/Zend/Paginator/Exception.php | PHP | mit | 1,050 |
package hep.aida.ref;
import hep.aida.IHistogram1D;
import hep.aida.IHistogram2D;
/**
* Convenient histogram utilities.
*/
class Util
{
/**
* Creates a new utility object.
*/
public Util() {}
/**
* Returns the index of the in-range bin containing the maxBinHeight().
*/
public int max... | tobyclemson/msci-project | vendor/colt-1.2.0/src/hep/aida/ref/Util.java | Java | mit | 2,854 |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Extensions;
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osuTK.Graphics;
namespace osu.Game.Overlays.Dashboard.Fri... | ppy/osu | osu.Game/Overlays/Dashboard/Friends/FriendsOnlineStatusItem.cs | C# | mit | 1,270 |
// Project Orleans Cloud Service SDK ver. 1.0
//
// Copyright (c) .NET Foundation
//
// All rights reserved.
//
// MIT License
//
// 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 wit... | cbredlow/orleans | src/ClientGenerator/CodeGeneratorBase.cs | C# | mit | 13,358 |
# -*- coding: utf-8 -*-
from django.db import models, migrations
def migrate_requested_on(apps, schema_editor):
Changeset = apps.get_model("changeset", "Changeset")
for changeset in Changeset.objects.all():
if not changeset.requested_on:
changeset.requested_on = changeset.committed_on
... | tzhaoredhat/automation | pdc/apps/changeset/migrations/0005_changeset_requested_on_data_migration.py | Python | mit | 543 |