repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Kogser/bitcoin
src/qt/locale/bitcoin_ky.ts
9346
<TS language="ky" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Жаң даректи жасоо</translation> </message> <message> <source>&amp;Delete</source> <translation>Ө&amp;чүрүү</translation> </message> ...
mit
cbingos/hongmafund
crispy_forms/templatetags/crispy_forms_filters.py
3494
# -*- coding: utf-8 -*- from django.conf import settings from django.forms import forms from django.forms.formsets import BaseFormSet from django.template import Context from django.template.loader import get_template from django.utils.functional import memoize from django.utils.safestring import mark_safe from django ...
mit
mheld/mongoid
lib/mongoid/extensions.rb
3476
# encoding: utf-8 require "mongoid/extensions/time_conversions" require "mongoid/extensions/array/accessors" require "mongoid/extensions/array/assimilation" require "mongoid/extensions/array/conversions" require "mongoid/extensions/array/parentization" require "mongoid/extensions/set/conversions" require "mongoid/exten...
mit
mocsy/coreclr
tests/src/CoreMangLib/cti/system/collections/generic/dictionary/dictionaryidictionarycontains.cs
4278
using System; using System.Collections; using System.Collections.Generic; /// <summary> /// System.Collections.IDictionary.Contains(System.Object) /// </summary> public class DictionaryIDictionaryContains { #region Public Methods public bool RunTests() { bool retVal = true; TestLibrary.Te...
mit
marksmeltzer/corefx
src/System.Security.Principal.Windows/src/System/Security/Principal/TokenAccessLevels.cs
1220
// 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 System.Security.Principal { [Serializable] [Flags] public enum TokenAccessLevels { ...
mit
zakkyzebra/Blog
public/ckeditor/build-config.js
2435
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
mit
fredcollet/Sylius
src/Sylius/Bundle/UserBundle/spec/Form/Type/UserLoginTypeSpec.php
1197
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace spec\Sylius\Bundle\UserBundle\Form\Type; use PhpSpec\ObjectBehavior; use Prophecy\Argument;...
mit
avinashsivaraman/railscasts-episodes
episode-203/detour/test/functional/info_controller_test.rb
164
require 'test_helper' class InfoControllerTest < ActionController::TestCase # Replace this with your real tests. test "the truth" do assert true end end
mit
tsingfeng/ss-panel-v3-mod
app/Models/PasswordReset.php
148
<?php namespace App\Models; class PasswordReset extends Model { protected $connection = "default"; protected $table = 'ss_password_reset'; }
mit
SpoonLabs/astor
examples/Math-0c1ef/src/main/java/org/apache/commons/math3/optimization/univariate/BaseUnivariateOptimizer.java
4001
/* * 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 ...
gpl-2.0
dantaylorseo/TailoredWebsite
clients/hpb/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-shipping.php
4825
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <tr class="shipping <?php echo ( ! empty( $class ) ) ? $class : ''; ?>" data-order_item_id="<?php echo $item_id; ?>"> <td class="check-column"><input type="checkbox" /></td> <td class="thumb"><div></div></td> <td class="name"> <div c...
gpl-2.0
chemissi/P2
src/public/app/code/core/Mage/Core/Model/Mysql4/Store/Group/Collection.php
1219
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
gpl-2.0
tkxhoa/movie
wp-content/plugins/postman-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Imap.php
27920
<?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...
gpl-2.0
PrasadG193/gcc_gimple_fe
libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/02.cc
1256
// Copyright (C) 2004-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your op...
gpl-2.0
pengshp/codelite
sdk/codelite_cppcheck/lib/checktype.cpp
11016
/* * Cppcheck - A tool for static C/C++ code analysis * Copyright (C) 2007-2015 Daniel Marjamäki and Cppcheck team. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of th...
gpl-2.0
adrian17/gcc
libstdc++-v3/testsuite/ext/pb_ds/example/trie_dna.cc
3208
// -*- C++ -*- // Copyright (C) 2005-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version 3...
gpl-2.0
mnjkumar426/phptest
wp-content/plugins/wordpress-seo/admin/pages/metas.php
12276
<?php /** * @package Admin */ if ( ! defined( 'WPSEO_VERSION' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 Forbidden' ); exit(); } global $wpseo_admin_pages; $options = WPSEO_Options::get_all(); $wpseo_admin_pages->admin_header( true, WPSEO_Options::get_group_name( 'wpseo_titles' ), 'wpseo_ti...
gpl-2.0
leaubout/P2
src/public/app/code/core/Mage/Sales/Model/Quote/Payment.php
7164
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
gpl-2.0
holidayfun/inspectIT
inspectIT/src/info/novatec/inspectit/rcp/repository/service/storage/StorageTimerDataAccessService.java
1976
package info.novatec.inspectit.rcp.repository.service.storage; import info.novatec.inspectit.cmr.service.ITimerDataAccessService; import info.novatec.inspectit.communication.data.TimerData; import info.novatec.inspectit.indexing.aggregation.Aggregators; import info.novatec.inspectit.indexing.query.factory.impl.TimerDa...
agpl-3.0
upsafety/ToCiteWiki
lib/ical/iCal/Alarm.php
3081
<?php /* PHP iCal Interface Library Copyright (C) 2005 Gregory Szorc <gregory.szorc@case.edu> 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 t...
lgpl-2.1
stephenc/maven
maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java
19637
package org.apache.maven.plugin.descriptor; /* * 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 ...
apache-2.0
winger007/zstack
plugin/virtualRouterProvider/src/main/java/org/zstack/network/service/virtualrouter/portforwarding/PortForwardingRemoveVirtualRouterFirewallFlow.java
2697
package org.zstack.network.service.virtualrouter.portforwarding; import org.springframework.beans.factory.annotation.Autowire; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Configurable; import org.zstack.appliancevm.ApplianceVmFacade; import org.zst...
apache-2.0
minestarks/TypeScript
tests/cases/fourslash/formattingOnSingleLineBlocks.ts
167
/// <reference path='fourslash.ts' /> ////class C ////{} ////if (true) ////{} format.document(); verify.currentFileContentIs( `class C { } if (true) { }`);
apache-2.0
ensouza93/quickstart
wsba-participant-completion-simple/src/test/java/org/jboss/as/quickstarts/wsba/participantcompletion/simple/ClientStub.java
1572
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
apache-2.0
bonifacechacha/spring-android-samples
spring-android-showcase/client/src/org/springframework/android/showcase/AbstractAsyncListActivity.java
1877
/* * Copyright 2010-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
apache-2.0
binhn/fabric
vendor/github.com/Shopify/sarama/decompress.go
1240
package sarama import ( "bytes" "compress/gzip" "fmt" "io/ioutil" "sync" "github.com/eapache/go-xerial-snappy" "github.com/pierrec/lz4" ) var ( lz4ReaderPool = sync.Pool{ New: func() interface{} { return lz4.NewReader(nil) }, } gzipReaderPool sync.Pool ) func decompress(cc CompressionCodec, data [...
apache-2.0
tomzhang/kubernetes
pkg/kubelet/server/stats/summary.go
4866
/* Copyright 2016 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, ...
apache-2.0
c-knowles/kube-aws
vendor/github.com/aws/aws-sdk-go/service/migrationhub/service.go
3188
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package migrationhub import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" "github.com/...
apache-2.0
gfyoung/elasticsearch
x-pack/plugin/sql/src/main/java/org/elasticsearch/xpack/sql/plan/logical/OrderBy.java
1683
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.sql.plan.logical; import java.util.List; impo...
apache-2.0
shahrzadmn/vaadin
uitest/src/com/vaadin/tests/tickets/Ticket2204.java
5640
package com.vaadin.tests.tickets; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.vaadin.data.Item; import com.vaadin.data.util.BeanItem; import com.vaadin.server.LegacyApplication; import com.vaadin.ui.AbstractOrderedLayout; import com.vaadin.ui.AbstractS...
apache-2.0
hwstreaming/flink
flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/NullValueSerializer.java
2268
/* * 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
coding0011/elasticsearch
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/authc/kerberos/KerberosRealmCacheTests.java
9075
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.security.authc.kerberos; import org.elastics...
apache-2.0
c9n/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/AppSchedulingInfo.java
16764
/** * 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
DCSaunders/tensorflow
tensorflow/core/kernels/reverse_op.cc
11332
/* Copyright 2015 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 applicable law or a...
apache-2.0
paveldk/nativescript-bootstrap
tns_modules/ui/button/button.ios.js
1838
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var common = require("ui/button/button-common"); var stateChanged = require("ui/core/control-state-cha...
bsd-2-clause
endlessm/chromium-browser
third_party/llvm/compiler-rt/test/asan/TestCases/Windows/dll_noreturn.cpp
891
// RUN: %clang_cl_asan -Od %p/dll_host.cpp -Fe%t // RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <process.h> void noreturn_f() { int subscript = -1; char buffer[42]; buffer[subscript] = 42; _exit(1); // CHECK: AddressSanitizer: stack-buffer-underflow on addr...
bsd-3-clause
korealerts1/sentry
src/sentry/exceptions.py
445
from __future__ import absolute_import class InvalidData(Exception): pass class InvalidInterface(InvalidData): pass class InvalidRequest(Exception): pass class InvalidOrigin(InvalidRequest): def __init__(self, origin): self.origin = origin def __str__(self): return "Invalid ...
bsd-3-clause
mediathread/mdtprint
app/bower_components/phantom/src/qt/src/gui/kernel/qdesktopwidget_s60.cpp
9072
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees ...
mit
ralzate/Produccion
vendor/bundle/ruby/2.2.0/gems/fog-storm_on_demand-0.1.1/lib/fog/support/storm_on_demand/requests/add_transaction_feedback.rb
312
module Fog module Support class StormOnDemand class Real def add_transaction_feedback(options = {}) request( :path => "/Support/Ticket/addTransactionFeedback", :body => Fog::JSON.encode(:params => options) ) end end end end end
mit
Kotpes/kateoleshova
web/app/plugins/advanced-custom-fields-pro/core/field.php
8707
<?php if( ! class_exists('acf_field') ) : class acf_field { // vars var $name = '', $label = '', $category = 'basic', $defaults = array(), $l10n = array(), $public = true; /* * __construct * * This construcor registeres many actions and filters * * @type function * @date 5/03/2014 * @si...
mit
fatihwk/Rocket.Chat
packages/rocketchat-lib/server/methods/saveSetting.js
969
/* eslint new-cap: 0 */ Meteor.methods({ saveSetting(_id, value, editor) { if (Meteor.userId() === null) { throw new Meteor.Error('error-action-not-allowed', 'Editing settings is not allowed', { method: 'saveSetting' }); } if (!RocketChat.authz.hasPermission(Meteor.userId(), 'edit-privileged-setting'...
mit
JayCanuck/enyo-2-components
bookmarklet/bookmarklet-bootplate/enyo/source/package.js
61
enyo.depends( "kernel", "ajax", "dom", "touch", "ui" );
mit
subhasisghosal/NDL_ErrorLogAnalysisPortal
LogAnalysisServer/node_modules/mongoose/lib/aggregate.js
21647
/*! * Module dependencies */ var AggregationCursor = require('./cursor/AggregationCursor'); var PromiseProvider = require('./promise_provider'); var Query = require('./query'); var eachAsync = require('./services/cursor/eachAsync'); var util = require('util'); var utils = require('./utils'); var read = Query.prototy...
mit
alexwiese/EasyNetQ
Source/EasyNetQ.Hosepipe/MessageReader.cs
1735
using System; using System.Collections.Generic; using System.IO; namespace EasyNetQ.Hosepipe { public class MessageReader : IMessageReader { public IEnumerable<HosepipeMessage> ReadMessages(QueueParameters parameters) { return ReadMessages(parameters, null); } publ...
mit
StudioBOZ/thirdClass
app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Wishlist/Grid/Renderer/Description.php
1457
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
mit
chemissi/P2
src/public/lib/Zend/Gdata/YouTube/ActivityFeed.php
1905
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
gpl-2.0
MonsieurTweek/PitchMyGame
lib/ezc/Template/src/syntax_trees/tst/nodes/negate_operator.php
937
<?php /** * File containing the ezcTemplateNegateOperatorTstNode class * * @package Template * @version //autogen// * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License * @access private */ /** * Fetching of property value in an expre...
gpl-2.0
Devportobello/joomla-cms
layouts/joomla/toolbar/slider.php
708
<?php /** * @package Joomla.Site * @subpackage Layout * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('JPATH_BASE') or die; JHtml::_('behavior.core'); $doTask = $displayData[...
gpl-2.0
chemissi/P2
src/public/lib/Zend/Search/Lucene/Storage/File/Memory.php
17696
<?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...
gpl-2.0
photodude/joomla-cms
administrator/components/com_content/views/article/tmpl/edit.php
5545
<?php /** * @package Joomla.Administrator * @subpackage com_content * * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\Registry\Registry; // Include ...
gpl-2.0
FauxFaux/jdk9-jdk
src/java.base/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java
15959
/* * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gpl-2.0
kalxas/QGIS
src/gui/editorwidgets/qgsrangeconfigdlg.cpp
7706
/*************************************************************************** qgsrangeconfigdlgbase.cpp -------------------------------------- Date : 5.1.2014 Copyright : (C) 2014 Matthias Kuhn Email : matthias at opengis dot ch ****************************...
gpl-2.0
DaikiMaekawa/online-marshmallow-editor
src/theme-dawn.js
4152
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 sou...
gpl-3.0
pmauduit/georchestra
mapfishapp/src/main/webapp/lib/proj4js/lib/defs/EPSG23032.js
80
Proj4js.defs["EPSG:23032"] = "+proj=utm +zone=32 +ellps=intl +units=m +no_defs";
gpl-3.0
sankha93/servo
components/script/dom/webgltexture.rs
14208
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://www.khronos.org/registry/webgl/specs/latest/1.0/webgl.idl use canvas_traits::CanvasMsg; use dom::bindin...
mpl-2.0
daniel-samson/SuiteCRM
include/SuiteEditor/SuiteEditorSettingsForDirectHTML.php
2973
<?php /** * * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd. * Copyright (C) 2011 - 2018 SalesAgility Ltd. * * This program is f...
agpl-3.0
faulteh/gnu-social
lib/filenoticestream.php
3137
<?php /** * StatusNet - the distributed open-source microblogging tool * Copyright (C) 2011, StatusNet, Inc. * * Stream of notices that reference an URL * * PHP version 5 * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as p...
agpl-3.0
nonoz/mastodon
spec/controllers/tags_controller_spec.rb
2102
require 'rails_helper' RSpec.describe TagsController, type: :controller do render_views describe 'GET #show' do let!(:tag) { Fabricate(:tag, name: 'test') } let!(:local) { Fabricate(:status, tags: [ tag ], text: 'local #test') } let!(:remote) { Fabricate(:status, tags: [ tag ], text: 'remote #tes...
agpl-3.0
harterj/moose
test/src/materials/RandomMaterial.C
897
//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgpl-2.1.html #in...
lgpl-2.1
icomms/rapidsms
apps/django_extensions/management/commands/runjob.py
2260
from django.core.management.base import LabelCommand from optparse import make_option from django_extensions.management.jobs import get_job, print_jobs class Command(LabelCommand): option_list = LabelCommand.option_list + ( make_option('--list', '-l', action="store_true", dest="list_jobs", help...
lgpl-3.0
chbatey/kubernetes
pkg/kubectl/cmd/logs_test.go
3997
/* Copyright 2014 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
kelltrick/roslyn
src/EditorFeatures/CSharpTest/DocumentationComments/XmlTagCompletionTests.cs
6201
// 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.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Commands; using Microsoft.CodeAnalysis.Editor.CSharp.DocumentationComments; using Microsoft...
apache-2.0
rvansa/JGroups
src/org/jgroups/annotations/MBean.java
748
package org.jgroups.annotations; import java.lang.annotation.*; /** * Optional annotation that exposes all public methods in the class * hierarchy (excluding Object) as MBean operations. All methods * are exposed if and only if exposeAll attribute is true. * <p> * * If a more fine grained MBean attribute and...
apache-2.0
yhakusyaku/chef-repo
cookbooks/powershell/providers/default.rb
3602
# # Author:: Seth Chisamore (<schisamo@opscode.com>) # Copyright:: Copyright (c) 2011-2012 Opscode, Inc. # License:: Apache License, Version 2.0 # # 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 a...
apache-2.0
pwoodworth/intellij-community
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/SMTestLocator.java
2205
/* * Copyright 2000-2015 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
nvoron23/titan
titan-core/src/main/java/com/thinkaurelius/titan/graphdb/vertices/StandardVertex.java
3423
package com.thinkaurelius.titan.graphdb.vertices; import com.google.common.base.Preconditions; import com.google.common.base.Predicate; import com.thinkaurelius.titan.diskstorage.Entry; import com.thinkaurelius.titan.diskstorage.EntryList; import com.thinkaurelius.titan.diskstorage.keycolumnvalue.SliceQuery; import co...
apache-2.0
bac/horizon
horizon/templatetags/shellfilter.py
1161
# 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 under the Li...
apache-2.0
ogrisel/scikit-learn
benchmarks/bench_glmnet.py
3872
""" To run this, you'll need to have installed. * glmnet-python * scikit-learn (of course) Does two benchmarks First, we fix a training set and increase the number of samples. Then we plot the computation time as function of the number of samples. In the second benchmark, we increase the number of dimensions of...
bsd-3-clause
code4sac/ohana-api
spec/support/shared_contexts/rake.rb
584
require 'rake' shared_context 'rake' do let(:rake) { Rake::Application.new } let(:task_name) { self.class.top_level_description } let(:task_path) { "lib/tasks/#{task_name.split(':').first}" } subject { rake[task_name] } def loaded_files_excluding_current_rake_file $LOADED_FEATURES.reject { ...
bsd-3-clause
jbehave/jbehave-core
jbehave-core/src/main/java/org/jbehave/core/junit/AnnotatedEmbedderUtils.java
2883
package org.jbehave.core.junit; import org.jbehave.core.embedder.EmbedderClassLoader; import org.junit.runner.RunWith; public class AnnotatedEmbedderUtils { public static AnnotatedEmbedderRunner annotatedEmbedderRunner(String annotatedClassName, EmbedderClassLoader classLoader) { Class<?> run...
bsd-3-clause
jottenlips/aima-python
submissions/Miles/puzzles.py
3467
import search from math import (cos, pi) alabama_map = search.UndirectedGraph(dict( Birmingham=dict(Tuscaloosa=45, Auburn=120, Montgomery=86, Huntsville=90, Mobile=219, Dothan=197), Tuscaloosa=dict(Birmingham=45, Auburn=160, Montgomery=110, Huntsville=140, Mobile=211, Dothan=227), Auburn=dict(Birmingham=12...
mit
drian84/testsvn
concrete/core/helpers/number.php
2791
<?php defined('C5_EXECUTE') or die('Access Denied'); class Concrete5_Helper_Number { /** Rounds the value only out to its most significant digit. * @param string $value * @return number */ public function flexround($value) { $v = explode('.', $value); $p = 0; for ($i = 0; $i < strlen($v[1]); $i++) { if...
mit
peteryule/monotouch-samples
CustomCollectionViewLayoutAttributes/AppDelegate.cs
941
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; using CoreGraphics; namespace SimpleCollectionView { [Register ("AppDelegate")] public partial class AppDelegate : UIApplicationDelegate { UIWindow window; UICollectionViewController simpleCol...
mit
dsebastien/DefinitelyTyped
types/reactstrap/lib/CardGroup.d.ts
380
import * as React from 'react'; import { CSSModule } from '../index'; export interface CardGroupProps extends React.HTMLAttributes<HTMLElement> { [key: string]: any; tag?: string | React.ReactType; className?: string; cssModule?: CSSModule; } declare class CardGroup<T = {[key: string]: any}> extends R...
mit
markogresak/DefinitelyTyped
types/gapi.client.webrisk/index.d.ts
690
// Type definitions for non-npm package Web Risk API v1 1.0 // Project: https://cloud.google.com/web-risk/ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok> // Nick Amoscato <https://github.com/namoscato> // Declan Vong <https://github.com/declanvong> // Definitions: ht...
mit
peteryule/monotouch-samples
MTGKTapper/MTGKTapper/MTGKTapperViewController.designer.cs
2066
// WARNING // // This file has been generated automatically by Xamarin Studio to store outlets and // actions made in the UI designer. If it is removed, they will be lost. // Manual changes to this file may not be handled correctly. // using Foundation; using System.CodeDom.Compiler; namespace MTGKTapper { [Register ...
mit
justinwm/astor
examples/math_0c1e6fb/src/main/java/org/apache/commons/math3/linear/Array2DRowFieldMatrix.java
23181
/* * 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 ...
gpl-2.0
yuanmouren1hao/CDML-SEU
lib/exe/ajax.php
11247
<?php /** * DokuWiki AJAX call handler * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Andreas Gohr <andi@splitbrain.org> */ if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); require_once(DOKU_INC.'inc/init.php'); //close session session_write_close(); header('Co...
gpl-2.0
samurai0000000/qemu
android/base/containers/PodVector_unittest.cpp
3387
// Copyright 2014 The Android Open Source Project // // This software is licensed under the terms of the GNU General Public // License version 2, as published by the Free Software Foundation, and // may be copied, distributed, and modified under those terms. // // This program is distributed in the hope that it will be...
gpl-2.0
fwartner/paste
assets/ace/src/mode-makefile.js
11458
define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var reservedKeywords = exports.reservedK...
gpl-2.0
summerpulse/openjdk7
hotspot/src/share/vm/oops/typeArrayKlass.hpp
3917
/* * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
gpl-2.0
Qalthos/ansible
lib/ansible/modules/network/aci/mso_schema_site_anp_epg.py
6362
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Dag Wieers (@dagwieers) <dag@wieers.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_ve...
gpl-3.0
sammarshallou/moodle
lib/yui/3.2.0/build/datatype/lang/datatype-date_hi-IN.js
1205
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.2.0 build: 2676 */ YUI.add("lang/datatype-date-format_hi-IN",function(A){A.Intl.add("datatype-date-format","hi-IN",{"a":["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],"A":...
gpl-3.0
BuchuBaron/d8-bootstrap-template
profiles/badger/modules/paragraphs/src/Tests/ParagraphsWidgetButtonsTest.php
5626
<?php namespace Drupal\paragraphs\Tests; use Drupal\field_ui\Tests\FieldUiTestTrait; /** * Tests paragraphs widget buttons. * * @group paragraphs */ class ParagraphsWidgetButtonsTest extends ParagraphsTestBase { use FieldUiTestTrait; /** * Tests the widget buttons of paragraphs. */ public function ...
gpl-3.0
zcopley/StatusNet
actions/apitimelineretweetedbyme.php
2435
<?php /** * StatusNet, the distributed open-source microblogging tool * * Show authenticating user's most recent repeats * * PHP version 5 * * LICENCE: 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 S...
agpl-3.0
liggitt/origin
vendor/k8s.io/kubernetes/cmd/kube-controller-manager/app/patch_gc.go
3029
package app import ( "k8s.io/kubernetes/cmd/kube-controller-manager/app/config" "k8s.io/kubernetes/pkg/apis/componentconfig" ) func applyOpenShiftGCConfig(controllerManager *config.Config) error { // TODO make this configurable or discoverable. This is going to prevent us from running the stock GC controller // ...
apache-2.0
maxamillion/origin
vendor/github.com/influxdata/influxdb/cmd/influx_inspect/verify/verify.go
2696
package verify import ( "flag" "fmt" "hash/crc32" "io" "os" "path/filepath" "text/tabwriter" "time" "github.com/influxdata/influxdb/tsdb/engine/tsm1" ) // Command represents the program execution for "influx_inspect verify". type Command struct { Stderr io.Writer Stdout io.Writer } // NewCommand returns ...
apache-2.0
agrare/manageiq
spec/models/miq_widget/report_content_spec.rb
3355
RSpec.describe MiqWidget, "::ReportContent" do let(:vm_count) { 2 } let(:widget) do MiqWidget.sync_from_hash(YAML.load(" description: report_vendor_and_guest_os title: Vendor and Guest OS content_type: report options: :col_order: - name - vendor_display :row_count: #{...
apache-2.0
ayermac/cblog
thinkphp/library/think/Build.php
7591
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2017 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
apache-2.0
droyad/roslyn
src/Scripting/Test/ScriptEngine.cs
10239
// 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.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Reflection; using ...
apache-2.0
q4-public/alexa-workshop-2017
src/node_modules/aws-sdk/lib/dynamodb/converter.js
9801
var AWS = require('../core'); var util = AWS.util; var typeOf = require('./types').typeOf; var DynamoDBSet = require('./set'); var NumberValue = require('./numberValue'); AWS.DynamoDB.Converter = { /** * Convert a JavaScript value to its equivalent DynamoDB AttributeValue type * * @param data [any] The data...
apache-2.0
danielknorr/CTK
Libs/Core/Testing/Cpp/ctkHighPrecisionTimerTest.cpp
1432
/*========================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
apache-2.0
yuxuac/docs.particular.net
samples/versioning/Version_3/V1.Messages/ISomethingHappened.cs
172
using NServiceBus; #region V1Message namespace V1.Messages { public interface ISomethingHappened : IEvent { int SomeData { get; set; } } } #endregion
apache-2.0
vinodkc/spark
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSourceProvider.scala
33130
/* * 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
minestarks/TypeScript
tests/baselines/reference/useSharedArrayBuffer3.js
264
//// [useSharedArrayBuffer3.ts] var foge = new SharedArrayBuffer(1024); var bar = foge.slice(1, 10); var len = foge.byteLength; //// [useSharedArrayBuffer3.js] var foge = new SharedArrayBuffer(1024); var bar = foge.slice(1, 10); var len = foge.byteLength;
apache-2.0
Natrezim/perun
perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/json/securityTeamsManager/RemoveUserFromBlacklist.java
3098
package cz.metacentrum.perun.webgui.json.securityTeamsManager; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.json.client.JSONNumber; import com.google.gwt.json.client.JSONObject; import com.google.gwt.user.client.ui.HTML; import cz.metacentrum.perun.webgui.client.PerunWebSession; import cz....
bsd-2-clause
georgemarshall/django
django/core/management/commands/sqlflush.py
946
from django.core.management.base import BaseCommand from django.core.management.sql import sql_flush from django.db import DEFAULT_DB_ALIAS, connections class Command(BaseCommand): help = ( "Returns a list of the SQL statements required to return all tables in " "the database to the state they wer...
bsd-3-clause
nyotis/blaze-lib
blazetest/src/mathtest/dmatdmatadd/UDaLDb.cpp
4020
//================================================================================================= /*! // \file src/mathtest/dmatdmatadd/UDaLDb.cpp // \brief Source file for the UDaLDb dense matrix/dense matrix addition math test // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is par...
bsd-3-clause
agencja-acclaim/gulp-bower-webapp
wp-content/plugins/updraftplus/example-decrypt.php
1107
<?php // @codingStandardsIgnoreStart /* To dump the decrypted file using the given key on stdout, call: rijndael_decrypt_file('../path/to/file.crypt' , 'mykey'); Thus, here are the easy instructions: 1) Add a line like the above into this PHP file (not inside these comments, but outside) e.g. rijndael_decrypt_file('...
mit
royvandewater/trading-post
vendor/github.com/lestrrat/go-jwx/internal/rsautil/rsautil.go
2161
package rsautil import ( "crypto/rsa" "encoding/json" "math/big" "github.com/lestrrat/go-jwx/buffer" ) type rawkey struct { N buffer.Buffer `json:"n"` E buffer.Buffer `json:"e"` D buffer.Buffer `json:"d"` P buffer.Buffer `json:"p"` Q buffer.Buffer `json:"q"` Dp buffer.Buffer `json:"dp"` Dq buffer.Buf...
mit