repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
gwittel/platform | reporting/src/main/java/com/proofpoint/reporting/ReportUtils.java | 3030 | /*
* Copyright 2018 Proofpoint, 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 agree... | apache-2.0 |
lshain-android-source/tools-idea | xml/impl/src/com/intellij/codeInsight/template/emmet/nodes/MulOperationNode.java | 1941 | /*
* Copyright 2000-2010 JetBrains s.r.o.
*
* 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 agre... | apache-2.0 |
tlong2/amphtml | validator/java/src/test/java/dev/amp/validator/utils/AttributeSpecUtilsTest.java | 16381 | /*
*
* ====================================================================
* 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
*
* Unles... | apache-2.0 |
openstack/powervc-driver | nova-powervc/test/hostmaintenanceclient/v1_1/__init__.py | 27 | # Copyright 2014 IBM Corp.
| apache-2.0 |
keith-turner/accumulo | core/src/test/java/org/apache/accumulo/core/client/lexicoder/SequenceLexicoderTest.java | 3192 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
gladyscarrizales/manifoldcf | connectors/filenet/build-stub/src/main/java/com/filenet/api/collection/PropertyDescriptionList.java | 1073 | /* $Id: AccessPermissionList.java 1342799 2012-05-25 20:25:51Z kwright $ */
/**
* 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... | apache-2.0 |
wwjiang007/flink | flink-end-to-end-tests/flink-end-to-end-tests-pulsar/src/test/java/org/apache/flink/tests/util/pulsar/common/FlinkContainerWithPulsarEnvironment.java | 2311 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
jrwest/cassandra | test/simulator/main/org/apache/cassandra/simulator/systems/Failures.java | 2043 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
palecur/elasticsearch | test/framework/src/main/java/org/elasticsearch/test/rest/section/DoSection.java | 6660 | /*
* 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... | apache-2.0 |
aslakknutsen/fabric8 | sandbox/fabric/fabric-commands/src/main/java/io/fabric8/commands/support/PidCompleter.java | 4775 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat 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.org/licenses/LICENSE-2.0
*
* Unless r... | apache-2.0 |
Uli1/node-gdal | deps/libgdal/gdal/frmts/pdf/pdfcreatecopy.cpp | 180224 | /******************************************************************************
* $Id: pdfcreatecopy.cpp 28780 2015-03-26 12:29:35Z rouault $
*
* Project: PDF driver
* Purpose: GDALDataset driver for PDF dataset.
* Author: Even Rouault, <even dot rouault at mines dash paris dot org>
*
***********************... | apache-2.0 |
ebyhr/presto | core/trino-main/src/main/java/io/trino/sql/planner/optimizations/OptimizerStats.java | 1314 | /*
* 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
* distribut... | apache-2.0 |
lutts/testability-explorer | eclipse-plugin/plugins/com.google.test.metric.eclipse.ui/src/main/java/com/google/test/metric/eclipse/ui/plugin/Activator.java | 2728 | /*
* Copyright 2009 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 to i... | apache-2.0 |
nugget/home-assistant | homeassistant/components/binary_sensor/command_line.py | 3447 | """
Support for custom shell commands to retrieve values.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.command_line/
"""
import logging
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validati... | apache-2.0 |
frett/cas | api/cas-server-core-api-util/src/main/java/org/apereo/cas/DistributedCacheManager.java | 2715 | package org.apereo.cas;
import lombok.val;
import java.io.Closeable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Optional;
import java.util.function.Predicate;
/**
* This is {@link DistributedCacheManager} that acts as a facade for a cache implementation.
... | apache-2.0 |
brettsam/azure-mobile-apps-net-server | src/Microsoft.Azure.Mobile.Server.Authentication/IAppServiceTokenHandler.cs | 3295 | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cl... | apache-2.0 |
robertwb/incubator-beam | runners/core-java/src/main/java/org/apache/beam/runners/core/metrics/SimpleStateRegistry.java | 3019 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache-2.0 |
mingjian2049/zstack | sdk/src/main/java/org/zstack/sdk/UpdateEcsInstanceVncPasswordAction.java | 2501 | package org.zstack.sdk;
import java.util.HashMap;
import java.util.Map;
public class UpdateEcsInstanceVncPasswordAction extends AbstractAction {
private static final HashMap<String, Parameter> parameterMap = new HashMap<>();
public static class Result {
public ErrorCode error;
public UpdateE... | apache-2.0 |
alvarosimon/one | src/onedb/local/4.10.3_to_4.11.80.rb | 8285 | # -------------------------------------------------------------------------- #
# Copyright 2002-2016, OpenNebula Project, OpenNebula Systems #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# no... | apache-2.0 |
gehaisong/ofbiz-16.11.02 | framework/base/src/main/java/org/apache/ofbiz/base/location/StandardUrlLocationResolver.java | 1350 | /*******************************************************************************
* 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... | apache-2.0 |
PivotalSarge/geode-native | src/cppcache/src/AppDomainContext.cpp | 1098 | /*
* 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 ... | apache-2.0 |
benjyw/kythe | kythe/cxx/indexer/cxx/testdata/basic/anonymous_namespace_header.cc | 437 | // The anonymous namespace is common among headers but distinct in TUs.
#pragma kythe_claim
#include "header.h"
//- @namespace ref CcNamespace
namespace { }
#include "footer.h"
#example header.h
#pragma kythe_claim
//- @namespace=HeaderDecl ref HNamespace
//- !{ HeaderDecl ref CcNamespace }
namespace { }
#example foo... | apache-2.0 |
manishgupta88/carbondata | core/src/main/java/org/apache/carbondata/core/datamap/status/DataMapStatus.java | 936 | /*
* 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 ... | apache-2.0 |
triggerNZ/intellij-scala | test/org/jetbrains/plugins/scala/annotator/gutter/PrefaceImportTest.scala | 619 | package org.jetbrains.plugins.scala.annotator.gutter
/**
* Pavel.Fatin, 21.01.2010
*/
class PrefaceImportTest extends LineMarkerTestBase {
protected override def getBasePath = super.getBasePath + "/preface/import/"
def testBlock = doTest
def testClass = doTest
def testFunctionDeclaration = doTest
def tes... | apache-2.0 |
org-scn-design-studio-community/sdkpackage1.6 | src/org.scn.community.m.basics/os/sapui5/suite/MonitoringContentRenderer-dbg.js | 2357 | /*!
* SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2013 SAP AG. All rights reserved
*/
jQuery.sap.declare("sap.suite.ui.commons.MonitoringContentRenderer");
jQuery.sap.require("sap.ui.core.Renderer");
/**
* @class MonitoringContent renderer.
* @static
*/
sap.suite.ui.commons.MonitoringContent... | apache-2.0 |
jpodeszwik/mifos | application/src/test/java/org/mifos/schedule/HolidayAndWorkingDaysAndMoratoriaScheduledDateGenerationTest.java | 38435 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* 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
*
* Unl... | apache-2.0 |
ederign/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-lienzo-extensions/src/main/java/org/kie/workbench/common/stunner/lienzo/toolbox/items/AbstractPrimitiveItem.java | 1056 | /*
* Copyright 2017 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
baslr/ArangoDB | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/language/expressions/instanceof/S11.8.6_A6_T2.js | 540 | // Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
Only Function objects implement [[HasInstance]] and can be proper
ShiftExpression for the "instanceof" operator consequently
es5id: 11.8.6_A6_T2
description: Checkin... | apache-2.0 |
ddd332/presto | presto-main/src/main/java/com/facebook/presto/execution/QueryStats.java | 10007 | /*
* 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
* distribut... | apache-2.0 |
dslab-epfl/asap | lib/Transforms/IPO/DeadArgumentElimination.cpp | 44780 | //===-- DeadArgumentElimination.cpp - Eliminate dead arguments ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | bsd-2-clause |
mikem/homebrew-cask | Casks/macspice.rb | 415 | cask 'macspice' do
version '3.1.15'
sha256 'c12699e694d415ef7711e45d3f348e84202188014e679d505a2d5f126c84f77c'
url "http://www.macspice.com/mirror/binaries/v#{version}/MacSpice3f5.dmg"
appcast 'http://www.macspice.com/AppCast-v2.xml',
checkpoint: '0d57f4a640d1d4991aab10d13a744be9d2afcec1b9ee1621ea5668... | bsd-2-clause |
seebcioo/slick | slick/src/main/scala/slick/ast/Comprehension.scala | 4794 | package slick.ast
import TypeUtil.typeToTypeUtil
import Util._
import slick.util.ConstArray
/** A SQL comprehension */
final case class Comprehension(sym: TermSymbol, from: Node, select: Node, where: Option[Node] = None,
groupBy: Option[Node] = None, orderBy: ConstArray[(Node, Ordering)... | bsd-2-clause |
bcg62/homebrew-core | Formula/meson-internal.rb | 1778 | class MesonInternal < Formula
include Language::Python::Virtualenv
desc "Fast and user friendly build system"
homepage "https://mesonbuild.com/"
url "https://github.com/mesonbuild/meson/releases/download/0.46.1/meson-0.46.1.tar.gz"
sha256 "19497a03e7e5b303d8d11f98789a79aba59b5ad4a81bd00f4d099be0212cee78"
... | bsd-2-clause |
janeen666/mi-instrument | mi/dataset/driver/ctdmo_ghqr/imodem/test/test_ctdmo_ghqr_imodem_recovered_driver.py | 917 | #!/usr/bin/env python
import os
import unittest
from mi.core.log import get_logger
from mi.dataset.dataset_driver import ParticleDataHandler
from mi.dataset.driver.ctdmo_ghqr.imodem.ctdmo_ghqr_imodem_recovered_driver import parse
from mi.dataset.driver.ctdmo_ghqr.imodem.resource import RESOURCE_PATH
__author__ = 'mwo... | bsd-2-clause |
ulule/pybbm | pybb/contrib/ban/compat.py | 225 | import django
__all__ = ['User']
# Django 1.5+ compatibility
if django.VERSION >= (1, 5):
from django.contrib.auth import get_user_model
User = get_user_model()
else:
from django.contrib.auth.models import User
| bsd-2-clause |
leoj3n/homebrew-cask | Casks/kismac.rb | 212 | class Kismac < Cask
url 'http://update.kismacmirror.com/binaries/KisMAC-0.3.3.dmg'
homepage 'http://kismac-ng.org/'
version '0.3.3'
sha1 '798056ecc6b604ffd7d3df23e220d3efa4b6c775'
link 'KisMAC.app'
end
| bsd-2-clause |
tidepool-org/platform | vendor/github.com/cloudevents/sdk-go/v2/client/client_observed.go | 2476 | package client
import (
"context"
"github.com/cloudevents/sdk-go/v2/event"
"github.com/cloudevents/sdk-go/v2/extensions"
"github.com/cloudevents/sdk-go/v2/observability"
"github.com/cloudevents/sdk-go/v2/protocol"
"go.opencensus.io/trace"
)
// NewObserved produces a new client with the provided transport object... | bsd-2-clause |
miataru/miataru-client-csharp | Json.NET/Source/Newtonsoft.Json/Serialization/ExpressionValueProvider.cs | 4236 | #region License
// Copyright (c) 2007 James Newton-King
//
// 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,
/... | bsd-2-clause |
slivas/hoz | vendor/codeception/codeception/bin/build.php | 233 | <?php
chdir(__DIR__.'/..');
system('php bin/update_docs.php');
system('php bin/build_site.php');
system('php bin/build_git.php');
// system('php bin/build_pear.php');
system('php bin/compile.php');
system('php bin/release_phar.php'); | bsd-3-clause |
michaelrice/yavijava | src/main/java/com/vmware/vim25/InvalidCAMServer.java | 2025 | /*================================================================================
Copyright (c) 2013 Steve Jin. 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 re... | bsd-3-clause |
fregaham/KiWi | src/model/kiwi/model/activity/DeleteActivity.java | 2473 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008-2009, The KiWi Project (http://www.kiwi-project.eu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | bsd-3-clause |
chromium/chromium | chrome/browser/resources/history/history_clusters/page_favicon.ts | 2131 | // 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 './shared_vars.js';
import {getFaviconForPageURL} from 'chrome://resources/js/icon.js';
import {Url} from 'chrome://resources/mojo/url/mojom/url.m... | bsd-3-clause |
whitefire/zf2 | library/Zend/Service/WindowsAzure/RetryPolicy/RetryN.php | 2750 | <?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... | bsd-3-clause |
chromium/chromium | device/vr/openxr/openxr_input_helper.cc | 10199 | // Copyright 2019 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 "device/vr/openxr/openxr_input_helper.h"
#include "device/gamepad/public/cpp/gamepad.h"
#include "device/vr/openxr/openxr_util.h"
#include "devi... | bsd-3-clause |
Serebriakov/micromod | micromod/compiler/Row.java | 1533 | package micromod.compiler;
public class Row implements Element {
private int rowIdx;
private Pattern parent;
public Row( Pattern parent ) {
this.parent = parent;
}
public String getToken() {
return "Row";
}
public Element getParent() {
return parent;
}
public Element getSibling() {
return null;... | bsd-3-clause |
imella/spree | core/app/models/spree/promotion/rules/user.rb | 828 | module Spree
class Promotion
module Rules
class User < PromotionRule
belongs_to :user, class_name: "::#{Spree.user_class}"
has_many :promotion_rule_users, class_name: 'Spree::PromotionRuleUser',
foreign_key: :promotion_rule_id,
... | bsd-3-clause |
shimib/scala | test/files/run/reflection-companiontype.scala | 912 | import scala.reflect.runtime.universe._
import scala.reflect.runtime.{currentMirror => cm}
class C
object C
object Test extends App {
type T = C
println("TypeRefs")
println(showRaw(typeOf[C].companion, printKinds = true))
println(showRaw(typeOf[C].companion.companion, printKinds = true))
println(showRaw(ty... | bsd-3-clause |
mdiggory/dryad-repo | dspace/modules/xmlui/src/main/java/org/dspace/app/xmlui/aspect/administrative/FlowItemUtils.java | 27061 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.xmlui.aspect.administrative;
import java.io.IOException;
import java.io.InputSt... | bsd-3-clause |
rwatson/chromium-capsicum | base/waitable_event_unittest.cc | 2625 | // 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/time.h"
#include "base/waitable_event.h"
#include "base/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
using b... | bsd-3-clause |
nvie/GitPython | git/test/test_db.py | 939 | # test_repo.py
# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
from git.db import GitCmdObjectDB
from git.exc import BadObject
from git.test.lib import TestBase
f... | bsd-3-clause |
ArturGaspar/scrapy | tests/test_downloadermiddleware_httpproxy.py | 6474 | import os
import sys
from functools import partial
from twisted.trial.unittest import TestCase, SkipTest
from scrapy.downloadermiddlewares.httpproxy import HttpProxyMiddleware
from scrapy.exceptions import NotConfigured
from scrapy.http import Response, Request
from scrapy.spiders import Spider
from scrapy.crawler imp... | bsd-3-clause |
SitePen/mayhem-bower | _debug/ui/dom/events/PointerManager.ts | 15288 | import domUtil = require('../util');
import has = require('../../../has');
import lang = require('dojo/_base/lang');
import ui = require('../../interfaces');
import util = require('../../../util');
enum Keys {
ALT = 18,
COMMAND_LEFT = 91,
COMMAND_RIGHT = 93,
CONTROL = 17,
META = 224,
SHIFT = 16
}
interface Touc... | bsd-3-clause |
MakMukhi/grpc | src/boringssl/gen_build_yaml.py | 5374 | #!/usr/bin/env python2.7
# Copyright 2015, 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 lis... | bsd-3-clause |
kf6kjg/halcyon | OpenSim/Region/Physics/ConvexDecompositionDotNet/ConvexBuilder.cs | 13638 | /* The MIT License
*
* Copyright (c) 2010 Intel Corporation.
* All rights reserved.
*
* Based on the convexdecomposition library from
* <http://codesuppository.googlecode.com> by John W. Ratcliff and Stan Melax.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | bsd-3-clause |
jamestwebber/scipy | scipy/io/matlab/tests/test_streams.py | 7761 | """ Testing
"""
from __future__ import division, print_function, absolute_import
import os
import sys
import zlib
from io import BytesIO
if sys.version_info[0] >= 3:
cStringIO = BytesIO
else:
from cStringIO import StringIO as cStringIO
from tempfile import mkstemp
from contextlib import contextmanager
im... | bsd-3-clause |
firebug/firebug-lite | content/firediff/content/firediff-original/diffModule.js | 15727 | /* See license.txt for terms of usage */
FBL.ns(function() { with (FBL) {
var Events = FireDiff.events,
Path = FireDiff.Path;
function revertChange(curChange, context) {
var ownerDoc, rootPath;
if (curChange.changeType == "CSS") {
rootPath = Path.getTopPath(curChange.xpath);
ownerDoc = Pat... | bsd-3-clause |
w3villa/spree_wholesale | app/overrides/wholesale-my-orders.rb | 310 | #insert_before :account_my_orders, 'hooks/wholesale_customer'
Deface::Override.new(:virtual_path => 'spree/users/show',
:name => 'wholesale-my-orders',
:insert_before => "[data-hook='account_my_orders'], #account_my_orders[data-hook]",
:partial => "spree/hooks/wholesale_customer",
:disabled => false)
| bsd-3-clause |
thor/django-localflavor | localflavor/cu/models.py | 2799 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db.models import CharField
from django.utils.translation import ugettext as _
from .choices import PROVINCE_CHOICES, REGION_CHOICES
from .forms import CUIdentityCardNumberField as CUIdentityCardNumberFormField
from .forms import CUPostalCodeF... | bsd-3-clause |
AndyDiamondstein/vitess | go/vt/binlog/tables_filter_test.go | 3165 | // Copyright 2012, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package binlog
import (
"testing"
binlogdatapb "github.com/youtube/vitess/go/vt/proto/binlogdata"
)
var testTables = []string{
"included1",
"included2",
}
... | bsd-3-clause |
yiisoft/yii2-app-advanced | common/tests/_support/UnitTester.php | 622 | <?php
namespace common\tests;
/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookFo... | bsd-3-clause |
adirkuhn/expressoDrupal | core/vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicyInterface.php | 584 | <?php
/*
* This file is part of Twig.
*
* (c) 2009 Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Interfaces that all security policy classes must implements.
*
* @package twig
* @author Fabien ... | gpl-2.0 |
EPTamminga/Dnn.Platform | Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Recyclebin/Prompt/Commands/PurgeUser.cs | 1796 | // 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
namespace Dnn.PersonaBar.Recyclebin.Components.Prompt.Commands
{
using System.Collections.Generic;
usi... | mit |
modwizcode/SpongeCommon | src/main/java/org/spongepowered/common/event/RegisteredListener.java | 4284 | /*
* This file is part of Sponge, 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 "Softwar... | mit |
linyows/forever | node_modules/flatiron/node_modules/director/lib/director/http/methods.js | 1482 | /*!
* Express - router - methods
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*
* Adapted for SS
* (C) 2011 Nodejitsu Inc. <info@nodejitsu.com>
*
*/
/**
* Hypertext Transfer Protocol -- HTTP/1.1
* http://www.ietf.org/rfc/rfc2616.txt
*/
var RFC2616 = ['OPTIONS', 'GET', 'POST', 'PUT... | mit |
StartupWeekend/engine | app/controllers/locomotive/api/tokens_controller.rb | 1939 | module Locomotive
module Api
class TokensController < Locomotive::Api::BaseController
skip_before_filter :require_account, :require_site, :set_current_thread_variables
def create
begin
token = Account.create_api_token(params[:email], params[:password], params[:api_key])
r... | mit |
clausjensen/Merchello | src/Merchello.Core/Models/EntityBase/IDateStamped.cs | 544 | namespace Merchello.Core.Models.EntityBase
{
using System;
using System.Runtime.Serialization;
/// <summary>
/// Represents an entity that is date stamped.
/// </summary>
public interface IDateStamped
{
/// <summary>
/// Gets or sets the Created Date
/// </summary>
... | mit |
Sorsly/subtle | google-cloud-sdk/lib/googlecloudsdk/third_party/apis/servicemanagement/v1/resources.py | 1875 | # Copyright 2015 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 required by applicable law or ag... | mit |
appfs/appfs | RayChew/Ex2/html/search/functions_5.js | 294 | var searchData=
[
['reportparseexception',['reportParseException',['../classParserErrorHandler.html#a7e9893b8664f42e38cecb483f0d26791',1,'ParserErrorHandler']]],
['reseterrors',['resetErrors',['../classParserErrorHandler.html#afcd94fcf4b801a4767a90b88721b432c',1,'ParserErrorHandler']]]
];
| mit |
Akhenoth/Factorian | concrete/vendor/mlocati/concrete5-translation-library/src/Parser/DynamicItem/Tree.php | 588 | <?php
namespace C5TL\Parser\DynamicItem;
/**
* Extract translatable data from AttributeSets.
*/
class Tree extends DynamicItem
{
/**
* {@inheritdoc}
*
* @see \C5TL\Parser\DynamicItem::getParsedItemNames()
*/
public function getParsedItemNames()
{
return function_exists('t') ?... | mit |
fakelbst/Chrome-Last.fm-Scrobbler | src/connectors/rtbf.js | 240 | 'use strict';
Connector.playerSelector = '.player';
Connector.artistSelector = '.program-info .artist-name';
Connector.trackSelector = '.program-info .title-name';
Connector.isPlaying = () => $('.player-controls a').hasClass('paused');
| mit |
liu78778/node-webkit | src/api/window_bindings.cc | 8151 | // Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// 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... | mit |
ramassin/glm | glm/gtx/dual_quaternion.hpp | 9782 | ///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... | mit |
kerrishotts/Mastering-PhoneGap-Code-Package | logology/test/NotesModel.js | 2882 | /*
* Logology testing suite
*
* This suite tests the basic features of Logology. Don't assume that this test suite
* is in any way complete; as bugs are discovered, new tests will be added.
*
* Author: Kerri Shotts <kerrishotts@gmail.com>
* http://www.photokandy.com/books/mastering-phonegap
*
* MIT ... | mit |
jzawadzki/symfony | src/Symfony/Component/Form/Tests/AbstractBootstrap4LayoutTest.php | 31231 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Tests;
use Symfony\Component\Form\FormError;
/*... | mit |
jweather/sonic-pi | app/server/vendor/parslet/spec/acceptance/examples_spec.rb | 969 | require 'spec_helper'
require 'open3'
describe "Regression on" do
Dir["example/*.rb"].each do |example|
context example do
# Generates a product path for a given example file.
def product_path(str, ext)
str.
gsub('.rb', ".#{ext}").
gsub('example/','example/output/')
... | mit |
phusion/passenger | src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp | 31972 | //
// basic_serial_port.hpp
// ~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or c... | mit |
cgiganti/chartmaster | node_modules/prova/node_modules/run-serially/node_modules/iter/lib/serial.js | 414 | var nextTick = require("just-next-tick");
module.exports = serial;
function serial (from, to, chain) {
nextTick(next);
var i = from;
function next(){
if (i >= to) {
chain.complete() && chain.complete()();
return;
}
chain.step()(function(error){
if (error) {
chain.error()... | mit |
motion3/dino_rumble | pygame/tests/surface_test.py | 96274 | import os
if __name__ == '__main__':
import sys
pkg_dir = os.path.split(os.path.abspath(__file__))[0]
parent_dir, pkg_name = os.path.split(pkg_dir)
is_pygame_pkg = (pkg_name == 'tests' and
os.path.split(parent_dir)[1] == 'pygame')
if not is_pygame_pkg:
sys.path.insert(0,... | mit |
juliomiguel1/redsocialclase | src/main/webapp/js/directives.js | 2449 | /*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* openAUSIAS: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Java and jQuery
* openAUSIAS is distributed under the MIT License (MIT)
* Sources at https://github.com/rafa... | mit |
codeck/XChange | xchange-coinsetter/src/main/java/com/xeiam/xchange/coinsetter/service/polling/CoinsetterPriceAlertServiceRaw.java | 1736 | package com.xeiam.xchange.coinsetter.service.polling;
import java.io.IOException;
import java.util.UUID;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.coinsetter.CoinsetterException;
import com.xeiam.xchange.coinsetter.dto.pricealert.request.CoinsetterPriceAlertRequest;
import com.xeiam.xchange.coinsett... | mit |
fmustaf/Samples | eShopOnContainers-dev/test/Services/FunctionalTests/Extensions/HttpClientExtensions.cs | 485 | using Microsoft.AspNetCore.TestHost;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
namespace FunctionalTests.Extensions
{
static class HttpClientExtensions
{
public static HttpClient CreateIdempotentClient(this TestServer server)
{
var cl... | mit |
cyberCBM/GroPhoManager | external/Exiv2/include/exiv2/easyaccess.hpp | 3860 | // ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2013 Andreas Huggel <ahuggel@gmx.net>
*
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... | mit |
stoplightio/gitlabhq | lib/gitlab/git/user.rb | 971 | # frozen_string_literal: true
module Gitlab
module Git
class User
attr_reader :username, :name, :email, :gl_id
def self.from_gitlab(gitlab_user)
new(gitlab_user.username, gitlab_user.name, gitlab_user.commit_email, Gitlab::GlId.gl_id(gitlab_user))
end
def self.from_gitaly(gitaly... | mit |
hennevogel/osem | db/migrate/20140305102505_use_vdays_vpositions_defaults.rb | 409 | # frozen_string_literal: true
class UseVdaysVpositionsDefaults < ActiveRecord::Migration
def up
change_column :conferences, :use_vpositions, :boolean, default: false
change_column :conferences, :use_vdays, :boolean, default: false
end
def down
change_column :conferences, :use_vpositions, :boolean, d... | mit |
jaredthirsk/Core | src/LionFire.Structures/Serialization/SerializeDefaultAttribute.cs | 592 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LionFire
{
[AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
public sealed class SerializeDefaultValueAttribute : Attribute
{
readonly bool? serializeDefaultValue;
... | mit |
elitemn/GalaxyExplorer | Assets/Scripts/OrbitUpdater.cs | 8030 | // Copyright Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using UnityEngine;
public class OrbitUpdater : MonoBehaviour
{
/// <summary>
/// Semi-major axis, km / DistanceScaleFactor
/// </summary>
p... | mit |
carldai0106/aspnetboilerplate | test/Abp.Zero.SampleApp.Tests/Users/UserOrganizationUnit_Tests.cs | 5998 | using System.Linq;
using System.Threading.Tasks;
using Abp.Configuration;
using Abp.IdentityFramework;
using Abp.Organizations;
using Abp.Zero.Configuration;
using Abp.Zero.SampleApp.MultiTenancy;
using Abp.Zero.SampleApp.Users;
using Microsoft.AspNet.Identity;
using Shouldly;
using Xunit;
namespace Abp.Zero.SampleAp... | mit |
iBenza/rendezvous | db/migrate/20131130111339_add_devise_to_users.rb | 1702 | class AddDeviseToUsers < ActiveRecord::Migration
def self.up
change_table(:users) do |t|
## Database authenticatable
t.string :email, null: false, default: ''
t.string :encrypted_password, null: false, default: ''
## Recoverable
t.string :reset_password_token
t.da... | mit |
eytanbiala/fastlane | lib/fastlane/actions/commit_version_bump.rb | 6430 | module Fastlane
module Actions
# Commits the current changes in the repo as a version bump, checking to make sure only files which contain version information have been changed.
class CommitVersionBumpAction < Action
def self.run(params)
require 'xcodeproj'
require 'pathname'
req... | mit |
Ladas/fog | lib/tasks/changelog_task.rb | 5644 | require "rake"
require "rake/tasklib"
module Fog
module Rake
class ChangelogTask < ::Rake::TaskLib
def initialize
desc "Update the changelog since the last release"
task(:changelog) do
@changelog = []
@changelog << release_header
process_commits
@c... | mit |
kevinansfield/Ghost | core/server/api/canary/pages.js | 5728 | const models = require('../../models');
const common = require('../../lib/common');
const urlUtils = require('../../lib/url-utils');
const ALLOWED_INCLUDES = ['tags', 'authors', 'authors.roles'];
const UNSAFE_ATTRS = ['status', 'authors', 'visibility'];
module.exports = {
docName: 'pages',
browse: {
op... | mit |
ap3h3ad/roll20-character-sheets | Palladium Rifts by Grinning Gecko/src/js/utils.js | 10271 | /**
* Aggregates repeating values
* @param {string[]} destinations An array of field names to output to
* @param {string} section A repeating section name
* @param {string[]} fields An array of fields to aggregate into the associated destination
* @param {...any} extras Some extra stuff
* If an extra is an objec... | mit |
hnliji1107/photo-blog | libs/sysplugins/smarty_internal_config.php | 9638 | <?php
/**
* Smarty Internal Plugin Config
*
* @package Smarty
* @subpackage Config
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Config
*
* Main class for config variables
*
* @package Smarty
* @subpackage Config
*
* @property Smarty_Config_Source $source
* @property Smarty_Config_Compiled $compi... | mit |
mixonic/ember.js | tests/node/template-compiler-test.js | 1763 | const path = require('path');
const distPath = path.join(__dirname, '../../dist');
let templateCompiler;
QUnit.module('ember-template-compiler.js', function () {
QUnit.module('modern', function (hooks) {
hooks.beforeEach(function () {
this.templateCompilerPath = path.resolve(path.join(distPath, 'ember-te... | mit |
huoxudong125/helix-toolkit | Source/HelixToolkit.Wpf/Exporters/Exporters.cs | 2579 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="Exporters.cs" company="Helix Toolkit">
// Copyright (c) 2014 Helix Toolkit contributors
// </copyright>
// <summary>
// Contains a list of all supported exporters.
// </... | mit |
SidHarder/meetings | client/jspm_packages/npm/core-js@2.1.0/library/fn/array/copy-within.js | 121 | /* */
require('../../modules/es6.array.copy-within');
module.exports = require('../../modules/_core').Array.copyWithin;
| mit |
gabrielstuff/fusejs | src/lang/hash.js | 9364 | /*------------------------------- LANG: HASH -------------------------------*/
fuse.Hash = (function() {
function Klass() { }
function Hash(object) {
return setWithObject((new Klass).clear(), object);
}
function merge(object) {
return setWithObject(this.clone(), object);
}
f... | mit |
tullyhansen/botwiki.org | vendor/composer/autoload_namespaces.php | 333 | <?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Twig_' => array($vendorDir . '/twig/twig/lib'),
'ParsedownExtra' => array($vendorDir . '/erusev/parsedown-extra'),
'Parsedown' => array($vendorDir . '/erusev/par... | mit |
xsmart/opencvr | 3rdparty/live555/liveMedia/VideoRTPSink.cpp | 1364 | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | mit |
steedos/pushd | node_modules/node-gcm/lib/constants.js | 1487 | /*!
* node-gcm
* Copyright(c) 2013 Marcus Farkas <toothlessgear@finitebox.com>
* MIT Licensed
*/
var Constants = {
'GCM_SEND_ENDPOINT' : 'android.googleapis.com',
'GCM_SEND_ENDPATH' : '/gcm/send',
'PARAM_REGISTRATION_ID' : 'registration_id',
'PARAM_COLLAPSE_KEY' : 'collapse_key',
'PARAM_DE... | mit |