repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
xorgy/phoronix-test-suite
pts-core/objects/phodevi/parsers/phodevi_bsd_parser.php
2403
<?php /* Phoronix Test Suite URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/ Copyright (C) 2009 - 2013, Phoronix Media Copyright (C) 2009 - 2013, Michael Larabel phodevi_bsd_parser.php: General parsing functions specific to BSD This program is free software; you can redistribute it and/or mod...
gpl-3.0
zarelit/nodeshot
nodeshot/community/notifications/tasks.py
1088
from celery import task from django.core import management from .settings import TEXTS @task def purge_notifications(): """ deletes old notifications """ management.call_command('purge_notifications') # ------ Asynchronous tasks ------ # @task def create_notifications(users, notification_model, n...
gpl-3.0
IvenBach/Rubberduck
Rubberduck.VBEditor.VBA/SafeComWrappers/VB/Control.cs
1211
using Rubberduck.VBEditor.SafeComWrappers.Abstract; using VB = Microsoft.Vbe.Interop; // ReSharper disable once CheckNamespace - Special dispensation due to conflicting file vs namespace priorities namespace Rubberduck.VBEditor.SafeComWrappers.VBA { public class Control : SafeComWrapper<VB.Forms.Control>, IControl...
gpl-3.0
mateor/pdroid
android-2.3.4_r1/tags/1.26/frameworks/base/media/libstagefright/codecs/aacdec/tns_ar_filter.cpp
14127
/* ------------------------------------------------------------------ * Copyright (C) 1998-2009 PacketVideo * * 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.o...
gpl-3.0
opedroso/czmq
bindings/jni/czmq-jni/src/test/java/org/zeromq/czmq/ZuuidTest.java
547
/* ################################################################################ # THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY # # Read the zproject/README.md for information about making permanent changes. # ##########################################################################...
mpl-2.0
alesstimec/juju
environs/manual/winrmprovisioner/provisioner_test.go
2642
package winrmprovisioner_test import ( "bytes" "fmt" "io" jc "github.com/juju/testing/checkers" gc "gopkg.in/check.v1" "github.com/juju/juju/apiserver/params" "github.com/juju/juju/environs/manual" "github.com/juju/juju/environs/manual/winrmprovisioner" ) type TestClientAPI struct{} func (t TestClientAPI) ...
agpl-3.0
acbodine/koding
go/src/koding/remoteapi/client/j_compute_stack/j_compute_stack_some_responses.go
2825
package j_compute_stack // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" "koding/remoteapi/models" ) // JComputeStackSomeReader is a Re...
agpl-3.0
hackathon-oscs/rede-osc
lib/noosfero/constants.rb
148
module Noosfero::Constants EMAIL_FORMAT = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i INTEGER_FORMAT = /\A\d*\Z/i PROFILE_PER_PAGE = 10 end
agpl-3.0
UniversityOfHawaii/kfs
kfs-kc/src/main/java/org/kuali/kra/external/sponsor/SponsorWebService.java
1615
/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2014 The Kuali Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Softw...
agpl-3.0
UniversityOfHawaii/kfs
kfs-ar/src/main/java/org/kuali/kfs/module/ar/document/service/PredeterminedBillingScheduleMaintenanceService.java
1353
/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2014 The Kuali Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Softw...
agpl-3.0
closeio/nylas
migrations/versions/096_migrate_secret_data.py
2459
"""migrate_secret_data Revision ID: 38c29430efeb Revises: 1683790906cf Create Date: 2014-09-18 03:03:42.131932 """ # revision identifiers, used by Alembic. revision = '38c29430efeb' down_revision = '1683790906cf' import sqlalchemy as sa def upgrade(): from inbox.config import config import nacl.secret ...
agpl-3.0
UniversityOfHawaii/kfs
kfs-core/src/main/java/org/kuali/kfs/fp/document/validation/event/CheckEvent.java
1195
/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2014 The Kuali Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Softw...
agpl-3.0
mhelmetag/exercism.io
app/routes/notifications.rb
433
module ExercismWeb module Routes class Notifications < Core get '/notifications' do please_login inbox = ExercismWeb::Presenters::Inbox.new(current_user) erb :"notifications/index", locals: { inbox: inbox } end post '/notifications/read' do please_login ...
agpl-3.0
Totallicks/totallicks-tuxguitar
TuxGuitar/src/org/herac/tuxguitar/gui/undo/undoables/track/UndoableTrackInfo.java
2695
package org.herac.tuxguitar.gui.undo.undoables.track; import org.herac.tuxguitar.gui.TuxGuitar; import org.herac.tuxguitar.gui.undo.CannotRedoException; import org.herac.tuxguitar.gui.undo.CannotUndoException; import org.herac.tuxguitar.gui.undo.UndoableEdit; import org.herac.tuxguitar.gui.undo.undoables.UndoableCaret...
lgpl-2.1
whdc/ieo-beast
src/dr/util/TabularData.java
650
package dr.util; /** * Tabular data provider * * A very modest start. will evolve further according to needs. * * @author Joseph Heled */ public abstract class TabularData { public abstract int nColumns(); public abstract String columnName(int nColumn); public abstract int nRows(); public abs...
lgpl-2.1
sanguinariojoe/FreeCAD
src/Base/Persistence.cpp
4558
/*************************************************************************** * Copyright (c) 2011 Jürgen Riegel <juergen.riegel@web.de> * * * * This file is part of the FreeCAD CAx development system. * * ...
lgpl-2.1
LLNL/spack
var/spack/repos/builtin/packages/r-irdisplay/package.py
905
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RIrdisplay(RPackage): """An interface to the rich display capabilities of Jupyter front-e...
lgpl-2.1
arildb/tiki-azure
lib/graph-engine/gd.php
7415
<?php // (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: gd.php 44444 2013-01-05 21:24:24Z changi67 $ /* This...
lgpl-2.1
hellcoderz/thebeast
src/thebeast/pml/NotInTypeException.java
476
package thebeast.pml; /** * Created by IntelliJ IDEA. User: s0349492 Date: 21-Jan-2007 Time: 20:36:02 */ public class NotInTypeException extends RuntimeException { private String name; private Type type; public NotInTypeException(String name, Type type) { super(name + " is not a member of " + type.getNa...
lgpl-3.0
takeshineshiro/python-mode
pymode/libs/pylint/checkers/strings.py
26724
# Copyright (c) 2009-2010 Arista Networks, Inc. - James Lingard # Copyright (c) 2004-2013 LOGILAB S.A. (Paris, FRANCE). # Copyright 2012 Google Inc. # # http://www.logilab.fr/ -- mailto:contact@logilab.fr # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Publ...
lgpl-3.0
andrealmeid/ToT
node_modules/big-rat/abs.js
166
'use strict' var sign = require('./sign') var neg = require('./neg') module.exports = abs function abs(a) { if(sign(a) < 0) { return neg(a) } return a }
unlicense
adrpar/crate
sql-parser/src/main/java/io/crate/sql/tree/AlterTable.java
2939
/* * Licensed to CRATE Technology GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not us...
apache-2.0
leandrocr/kops
vendor/github.com/miekg/coredns/middleware/etcd/cname_test.go
2542
// +build etcd package etcd // etcd needs to be running on http://localhost:2379 import ( "testing" "github.com/coredns/coredns/middleware/etcd/msg" "github.com/coredns/coredns/middleware/pkg/dnsrecorder" "github.com/coredns/coredns/middleware/test" "github.com/miekg/dns" ) // Check the ordering of returned ...
apache-2.0
gochist/horizon
openstack_dashboard/dashboards/project/images/images/forms.py
11395
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
apache-2.0
jomarko/drools
drools-cdi/src/test/java/org/drools/cdi/kproject/KieProjectRuntimeModulesTest.java
8909
/* * 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 a...
apache-2.0
hupda-edpe/c
engine/src/test/java/org/camunda/bpm/engine/test/authorization/service/MyTaskService.java
926
/* 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...
apache-2.0
terryturner/VRPinGMapFx
GMapsFX/src/main/java/com/lynden/gmapsfx/service/elevation/LocationElevationRequest.java
1071
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.lynden.gmapsfx.service.elevation; import com.lynden.gmapsfx.javascript.JavascriptObject; import com.lynden.gmapsfx.javasc...
apache-2.0
UP-nxt/cmis-ruby
lib/ext/hash/keys.rb
5549
class Hash # Returns a new hash with all keys converted using the +block+ operation. # # hash = { name: 'Rob', age: '28' } # # hash.transform_keys { |key| key.to_s.upcase } # => {"NAME"=>"Rob", "AGE"=>"28"} # # If you do not provide a +block+, it will return an Enumerator # for chaining with other met...
apache-2.0
koscejev/camel
camel-core/src/main/java/org/apache/camel/processor/RecipientList.java
10987
/** * 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
amckee23/drools
drools-workbench-models/drools-workbench-models-guided-template/src/test/java/org/drools/workbench/models/guided/template/backend/TemplateIntegrationTest.java
5626
/* * Copyright 2015 JBoss Inc * * 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, software * distributed under th...
apache-2.0
SHASHANKB/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/WholeStageCodegenSuite.scala
8794
/* * 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
anoordover/camel
components/camel-micrometer/src/main/java/org/apache/camel/component/micrometer/routepolicy/MicrometerRoutePolicyService.java
1428
/** * 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
edolganov/live-chat-engine
components/db-main/src/och/comp/db/main/table/remtoken/UpdateRemTokenDate.java
1130
/* * Copyright 2015 Evgeny Dolganov (evgenij.dolganov@gmail.com). * * 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 requi...
apache-2.0
sushrutikhar/grill
lens-server-api/src/test/java/org/apache/lens/server/api/driver/MockDriver.java
12134
/** * 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
basoundr/roslyn
src/Compilers/Core/Portable/PEWriter/PeWriter.cs
70173
// 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 System.Diagnostics; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.R...
apache-2.0
lukiano/finagle
finagle-core/src/test/scala/com/twitter/finagle/util/AsyncLatchTest.scala
1397
package com.twitter.finagle.util import org.scalatest.FunSuite import org.scalatest.junit.JUnitRunner import org.junit.runner.RunWith @RunWith(classOf[JUnitRunner]) class AsyncLatchTest extends FunSuite { test("when count=0, AsyncLatch should execute waiters immediately") { val latch = new AsyncLatch(0) var...
apache-2.0
alexksikes/elasticsearch
src/main/java/org/elasticsearch/common/lucene/docset/MatchDocIdSet.java
4481
/* * 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
Eric-Zhong/boxbilling
src/bb-modules/Example/Api/Admin.php
774
<?php /** * BoxBilling * * @copyright BoxBilling, Inc (http://www.boxbilling.com) * @license Apache-2.0 * * Copyright BoxBilling, Inc * This source file is subject to the Apache-2.0 License that is bundled * with this source code in the file LICENSE */ /** * Example module Admin API * * API can be acces...
apache-2.0
mdaniel/intellij-community
java/java-tests/testData/refactoring/makeClassStatic/Simple1_after.java
374
public class YoYo { int y; static class YoYoYo { private final YoYo anObject; public YoYoYo(YoYo anObject) { this.anObject = anObject; } void foo (){ YoYo yoYoy = anObject; int t = anObject.y; int t1 = yoYoy.y; anObjec...
apache-2.0
neurodebian/htcondor
src/condor_startd.V6/VMManager.cpp
5212
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
apache-2.0
sreekantch/JellyFish
db/migrate/20150106035615_add_index_on_order_item_port_and_host.rb
129
class AddIndexOnOrderItemPortAndHost < ActiveRecord::Migration def change add_index :order_items, [:port, :host] end end
apache-2.0
adessaigne/camel
components/camel-xmlsecurity/src/test/java/org/apache/camel/component/xmlsecurity/XmlSignatureTest.java
81164
/* * 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
apache/incubator-apex-malhar
library/src/main/java/org/apache/apex/malhar/lib/testbench/CollectorTestSink.java
2065
/** * 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
apixandru/intellij-community
platform/platform-impl/src/com/intellij/openapi/editor/impl/ImmediatePainter.java
15068
/* * Copyright 2000-2017 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
halfhp/j2objc
jre_emul/Classes/com/google/j2objc/security/IosRSAKeyPairGenerator.java
4015
/* * 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
lampepfl/dotty
tests/run-macros/quote-indexed-map-by-name/quoted_2.scala
116
object Test { def main(args: Array[String]): Unit = { Index.succ["bar", "foo", ("bar", ("baz", Unit))] } }
apache-2.0
dongjiaqiang/mina
core/src/test/java/org/apache/mina/util/ByteBufferDumperTest.java
4431
/** * 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
minishift/minishift
vendor/github.com/containers/storage/pkg/ostree/ostree.go
5220
// +build ostree package ostree import ( "fmt" "golang.org/x/sys/unix" "os" "path/filepath" "runtime" "syscall" "time" "unsafe" "github.com/containers/storage/pkg/idtools" "github.com/containers/storage/pkg/system" glib "github.com/ostreedev/ostree-go/pkg/glibobject" "github.com/ostreedev/ostree-go/pkg/o...
apache-2.0
alphaBenj/zipline
zipline/utils/final.py
3879
from abc import ABCMeta, abstractmethod from six import with_metaclass, iteritems # Consistent error to be thrown in various cases regarding overriding # `final` attributes. _type_error = TypeError('Cannot override final attribute') def bases_mro(bases): """ Yield classes in the order that methods should be...
apache-2.0
mihn/sputnik
src/main/java/pl/touk/sputnik/review/Paths.java
333
package pl.touk.sputnik.review; public interface Paths { public static final String ENTRY_REGEX = ".*src/(main|test)/java/"; public static final String JAVA = "java/"; public static final String SRC_MAIN = "src/main/"; public static final String SRC_TEST = "src/test/"; public static final String D...
apache-2.0
medicayun/medicayundicom
dcm4che14/tags/DCM4JBOSS_2_4_5/src/java/org/dcm4che/srom/PNameContent.java
2688
/*$Id: PNameContent.java 3493 2002-07-14 16:03:36Z gunterze $*/ /***************************************************************************** * * * Copyright (c) 2001,2002 by TIANI MEDGRAPH AG <gunter.zeilinger@tiani.com>* * ...
apache-2.0
nstopkimsk/pinpoint
profiler/src/main/java/com/navercorp/pinpoint/profiler/sender/UdpDataSenderType.java
133
package com.navercorp.pinpoint.profiler.sender; /** * @Author Taejin Koo */ public enum UdpDataSenderType { OIO, NIO; }
apache-2.0
Huawei-OSG/kubernetes
cmd/libs/go2idl/generator/execute.go
8507
/* Copyright 2015 The Kubernetes 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 ag...
apache-2.0
eyakubovich/rkt
Godeps/_workspace/src/github.com/vishvananda/netlink/nl/xfrm_linux.go
6360
package nl import ( "bytes" "net" "unsafe" ) // Infinity for packet and byte counts const ( XFRM_INF = ^uint64(0) ) // Message Types const ( XFRM_MSG_BASE = 0x10 XFRM_MSG_NEWSA = 0x10 XFRM_MSG_DELSA = 0x11 XFRM_MSG_GETSA = 0x12 XFRM_MSG_NEWPOLICY = 0x13 XFRM_MSG_DELPOLICY = 0x1...
apache-2.0
wsargent/playframework
documentation/manual/working/javaGuide/main/forms/code/javaguide/forms/html/User.java
477
/* * Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> */ package javaguide.forms.html; public class User { private String email; private String password; public void setEmail(String email) { this.email = email; } public String getEmail() { return email; } ...
apache-2.0
medicayun/medicayundicom
dcm4jboss-cdw/tags/DCM4CHEE_CDW_2_13_1/src/java/org/dcm4chex/cdw/mbean/DirRecordFactory.java
5370
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
apache-2.0
sergecodd/FireFox-OS
B2G/gecko/mobile/android/base/httpclientandroidlib/HttpStatus.java
7827
/* * ==================================================================== * 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 ...
apache-2.0
denis-vilyuzhanin/gwtbootstrap3-extras
src/main/java/org/gwtbootstrap3/extras/toggleswitch/client/ui/ToggleSwitchRadio.java
1082
package org.gwtbootstrap3.extras.toggleswitch.client.ui; /* * #%L * GwtBootstrap3 * %% * Copyright (C) 2013 - 2014 GwtBootstrap3 * %% * 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 *...
apache-2.0
zwejra/perun
perun-base/src/main/java/cz/metacentrum/perun/core/api/exceptions/WrongAttributeAssignmentException.java
1579
package cz.metacentrum.perun.core.api.exceptions; import cz.metacentrum.perun.core.api.AttributeDefinition; /** * Thrown while assigning attribute to wrong entity. For example if you try to set value for the facility to attribute which is only for resources. * * @author Slavek Licehammer */ public class WrongAttr...
bsd-2-clause
RJHsiao/homebrew-cask
Casks/debookee.rb
1113
cask 'debookee' do version '6.2.0' sha256 '3b40caf5c9662d6dcf127b2d05474fa6d855fdc944558dfbb243ea3b0df5ced5' # iwaxx.com/debookee was verified as official when first introduced to the cask url 'https://www.iwaxx.com/debookee/debookee.zip' appcast 'https://www.iwaxx.com/debookee/appcast.php', checkp...
bsd-2-clause
tuwien-geoweb-2015/g01-block4
node_modules/openlayers/node_modules/closure-util/node_modules/get-down/test/lib/misc.spec.js
3847
var fs = require('fs'); var mock = require('mock-fs'); var misc = require('../../lib/misc'); var assert = require('../helper').assert; describe('misc', function() { describe('copy()', function() { beforeEach(function() { mock({ dir: { source1: 'one content', source2: 'two co...
bsd-2-clause
devmynd/homebrew-cask
lib/hbc/utils/tty.rb
2784
# originally from Homebrew utils.rb class Hbc::Utils::Tty COLORS = { black: 0, red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, white: 7, default: 9, }.freeze ...
bsd-2-clause
joone/chromium-crosswalk
third_party/WebKit/Source/core/animation/AnimationEffectTest.cpp
28166
/* * Copyright (c) 2013, 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 conditi...
bsd-3-clause
scheib/chromium
chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchTestBridge.java
1460
// Copyright 2018 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. package org.chromium.chrome.browser.offlinepages.prefetch; import org.chromium.base.annotations.JNINamespace; /** Prefetch test Java to native bridge. *...
bsd-3-clause
aaron-goshine/react
src/renderers/dom/stack/client/wrappers/ReactDOMSelect.js
5936
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
bsd-3-clause
jcabdala/atlantisapp
atlantis/assets/assets/plugins/tables/datatables/tabletools/TableTools.min.js
29682
// Simple Set Clipboard System // Author: Joseph Huckaby var ZeroClipboard_TableTools={version:"1.0.4-TableTools2",clients:{},moviePath:"",nextId:1,$:function(a){"string"==typeof a&&(a=document.getElementById(a));a.addClass||(a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addC...
bsd-3-clause
Workday/OpenFrame
printing/metafile_skia_wrapper.cc
1241
// 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 "printing/metafile_skia_wrapper.h" #include "skia/ext/platform_canvas.h" #include "skia/ext/refptr.h" #include "third_party/skia/include/core...
bsd-3-clause
amikey/chromium
libcef_dll/ctocpp/dictionary_value_ctocpp.cc
12823
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
bsd-3-clause
vsekhar/elastic-go
src/cmd/compile/internal/ssa/passbm_test.go
3205
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ssa import ( "cmd/compile/internal/types" "fmt" "testing" ) const ( blockCount = 1000 passCount = 15000 ) type passFunc func(*Func) func Benchm...
bsd-3-clause
luizvarela/grafos_java
src/prefuse/action/assignment/DataShapeAction.java
4385
package prefuse.action.assignment; import java.util.Map; import prefuse.Constants; import prefuse.data.tuple.TupleSet; import prefuse.util.DataLib; import prefuse.visual.VisualItem; /** * <p> * Assignment Action that assigns shape values for a group of items based upon * a data field. Shape values are...
bsd-3-clause
miguelsousa/robofab
Scripts/RoboFabIntro/intro_Kerning.py
2296
#FLM: RoboFab Intro, Kerning # # # demo of RoboFab kerning. # # # NOTE: this will mess up the kerning in your test font. from robofab.world import CurrentFont # (make sure you have a font with some kerning opened in FontLab) f = CurrentFont() # If you are familiar with the way RoboFog handled kerning, # you will ...
bsd-3-clause
manekinekko/angular
aio/content/examples/animations/src/app/app.component.1.ts
417
// #docplaster import { Component, HostBinding } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: 'app.component.html', styleUrls: ['app.component.css'], animations: [ // animation triggers go here ] }) export class AppComponent { @HostBinding('@.disabled') public animationsDisable...
mit
symfony/symfony
src/Symfony/Component/Config/Tests/Builder/Fixtures/NodeInitialValues.config.php
427
<?php use Symfony\Config\NodeInitialValuesConfig; return static function (NodeInitialValuesConfig $config) { $config->someCleverName(['second' => 'foo'])->first('bar'); $config->messenger() ->transports('fast_queue', ['dsn' => 'sync://']) ->serializer('acme'); $config->messenger() ...
mit
impedimentToProgress/Ratchet
llvm/lib/Transforms/IPO/PartialInlining.cpp
6319
//===- PartialInlining.cpp - Inline parts of functions --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
mit
benjaminhorner/codebutler
node_modules/grunt-bower/node_modules/bower/lib/core/resolvers/GitHubResolver.js
3922
var util = require('util'); var path = require('path'); var fs = require('graceful-fs'); var Q = require('q'); var mout = require('mout'); var request = require('request'); var progress = require('request-progress'); var replay = require('request-replay'); var GitRemoteResolver = require('./GitRemoteResolver'); var ext...
mit
mollstam/UnrealPy
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/construct-2.5.2/construct/protocols/layer3/dhcpv6.py
2854
""" the Dynamic Host Configuration Protocol (DHCP) for IPv6 http://www.networksorcery.com/enp/rfc/rfc3315.txt """ from construct import * from ipv6 import Ipv6Address import six dhcp_option = Struct("dhcp_option", Enum(UBInt16("code"), OPTION_CLIENTID = 1, OPTION_SERVERID = 2, OPTION_IA_N...
mit
sashberd/cdnjs
ajax/libs/ace/1.3.2/snippets/d.js
404
define("ace/snippets/d",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="",t.scope="d"}); (function() { window.require(["ace/snippets/d"], function(m) { if (typeof module == "object") { module.exports = m; ...
mit
mainio/concrete5
concrete/elements/preview_footer_required.php
120
<?php defined('C5_EXECUTE') or die('Access Denied.'); $v = View::getRequestInstance(); $v->markFooterAssetPosition();
mit
zenos-os/zenos
vendor/corert/src/Common/src/TypeSystem/NativeFormat/NativeFormatField.CodeGen.cs
530
// 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 Internal.TypeSystem.NativeFormat { partial class NativeFormatField { public override bool ...
mit
dev-kevin/questions
cake/libs/model/datasources/datasource.php
13638
<?php /** * DataSource base class * * PHP versions 4 and 5 * * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. ...
mit
hosamshahin/OpenDSA
SourceCode/Java/Lists/Link.java
597
/* *** ODSATag: Link *** */ class Link { // Singly linked list node class private Object e; // Value for this node private Link n; // Point to next node in list // Constructors Link(Object it, Link inn) { e = it; n = inn; } Link(Link inn) { e = null; n = inn; } Object element() { return e; } ...
mit
zbrown94/hackathonUI48
node_modules/geojson-area/test/basic.js
508
var gjArea = require('../'), assert = require('assert'); describe('geojson area', function() { it('computes the area of illinois', function() { var ill = require('./illinois.json'); assert.equal(gjArea.geometry(ill), 145978332359.37125); }); // http://www.wolframalpha.com/input/?i=surfa...
mit
hyonholee/azure-sdk-for-net
sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/BlobServicesOperationsExtensions.cs
9259
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // re...
mit
davidcbucher/heroku-buildpack-geo-python
vendor/distribute-0.6.34/release.py
4493
#!/usr/bin/env python """ Script to fully automate the release process. Requires Python 2.6+ with sphinx installed and the 'hg' command on the path. """ from __future__ import print_function import subprocess import shutil import os import sys import urllib2 import getpass import collections try: import keyring ex...
mit
february29/Learning
web/vue/AccountBook-Express/node_modules/msgpack-lite/test/13.decoder.js
839
#!/usr/bin/env mocha -R spec var assert = require("assert"); var msgpackJS = "../index"; var isBrowser = ("undefined" !== typeof window); var msgpack = isBrowser && window.msgpack || require(msgpackJS); var TITLE = __filename.replace(/^.*\//, ""); var source = {"foo": "bar"}; var packed = msgpack.encode(source); des...
mit
sancospi/jsdelivr
files/floating-label/1.0.1/floatingLabel.js
9307
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.floatingLabel ...
mit
sufuf3/cdnjs
ajax/libs/js-quantities/1.2.0/quantities.js
54953
/*! Copyright © 2006-2007 Kevin C. Olbrich Copyright © 2010-2013 LIM SAS (http://lim.eu) - Julien Sanchez 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 lim...
mit
flangelo/guacamole-client
guacamole/src/main/webapp/app/client/directives/guacThumbnail.js
5520
/* * Copyright (C) 2014 Glyptodon LLC * * 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, copy, modify, merge, publi...
mit
andycochran/foundation-sites
test/javascript/components/accordion.js
5611
describe('Accordion', function() { var plugin; var $html; var template = `<ul class="accordion" data-accordion> <li class="accordion-item is-active" data-accordion-item> <a href="#" class="accordion-title">Accordion 1</a> <div class="accordion-content" data-tab-content > <p>Panel 1. Lorem ipsum do...
mit
ChristopheB/framework
src/Illuminate/Support/Testing/Fakes/QueueFake.php
10713
<?php namespace Illuminate\Support\Testing\Fakes; use BadMethodCallException; use Closure; use Illuminate\Contracts\Queue\Queue; use Illuminate\Queue\QueueManager; use Illuminate\Support\Traits\ReflectsClosures; use PHPUnit\Framework\Assert as PHPUnit; class QueueFake extends QueueManager implements Queue { use ...
mit
uahengojr/NCA-Web-App
Admin HTML/vendor/holderjs/gulpfile.js
1873
var gulp = require('gulp'); var concat = require('gulp-concat'); var uglify = require('gulp-uglifyjs'); var header = require('gulp-header'); var jshint = require('gulp-jshint'); var todo = require('gulp-todo'); var gulputil = require('gulp-util'); var moment = require('moment'); var pkg = require('./package.json'); v...
mit
tempbottle/codis
pkg/utils/math2/math.go
874
// Copyright 2016 CodisLabs. All Rights Reserved. // Licensed under the MIT (MIT-LICENSE.txt) license. package math2 import ( "fmt" "time" ) func MaxInt(a, b int) int { if a > b { return a } else { return b } } func MinInt(a, b int) int { if a < b { return a } else { return b } } func MinMaxInt(v, ...
mit
Vegetam/BoostrapPageGenerator4
bootstap 4 alpha 6/ckeditor/plugins/smiley/plugin.js
3805
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'smiley', { requires: 'dialog', // jscs:disable maximumLineLength lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-...
mit
joeyparrish/cdnjs
ajax/libs/angular-ui-grid/4.4.0/ui-grid.expandable.js
21518
/*! * ui-grid - v4.4.0 - 2018-03-15 * Copyright (c) 2018 ; License: MIT */ (function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.expandable * @description * * # ui.grid.expandable * * <div class="alert alert-warning" role="alert"><strong>Alpha</strong> This feature is in deve...
mit
Fidur/concrete5
concrete/controllers/dialog/file/properties.php
3069
<?php namespace Concrete\Controller\Dialog\File; use \Concrete\Controller\Backend\UserInterface\File as BackendInterfaceFileController; use \Concrete\Core\Http\ResponseAssetGroup; use Permissions; use File; use FileAttributeKey; use \Concrete\Core\File\EditResponse as FileEditResponse; use Loader; use Exception; clas...
mit
sureshmohan/tilt-game-android
temple_core/src/main/java/temple/core/ui/form/validation/rules/EqualStringValidationRule.java
547
package temple.core.ui.form.validation.rules; import temple.core.common.interfaces.IHasValue; /** * Created by erikpoort on 29/07/14. * MediaMonks */ public class EqualStringValidationRule extends AbstractValidationRule implements IValidationRule { private final IHasValue _target2; public EqualStringValid...
mit
Hansoft/meteor
packages/modules/server.js
82
require("./install-packages.js"); require("./process.js"); require("./reify.js");
mit
enslyon/ensl
core/modules/language/tests/src/Kernel/OverriddenConfigImportTest.php
3431
<?php namespace Drupal\Tests\language\Kernel; use Drupal\Core\Config\ConfigImporter; use Drupal\Core\Config\StorageComparer; use Drupal\KernelTests\KernelTestBase; /** * Tests importing of config with language overrides. * * @group language */ class OverriddenConfigImportTest extends KernelTestBase { /** *...
gpl-2.0
enslyon/ensl
core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
32794
<?php namespace Drupal\KernelTests\Core\Config; use Drupal\entity_test\Entity\EntityTest; use Drupal\KernelTests\Core\Entity\EntityKernelTestBase; /** * Tests for configuration dependencies. * * @coversDefaultClass \Drupal\Core\Config\ConfigManager * * @group config */ class ConfigDependencyTest extends Entity...
gpl-2.0
amol-crescente/liveform
wp-content/themes/Avada/includes/class-avada-maintenance.php
1818
<?php class Avada_Maintenance { /** * Determines if we should activate the maintenance mode or not. * * @access private * @var bool */ private $maintenance = false; /** * The message that will be displayed to all non-admins. * This will be displayed on the frontend instead of the normal site. * ...
gpl-2.0