code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
#region Copyright and License Information
// Fluent Ribbon Control Suite
// http://fluent.codeplex.com/
// Copyright © Degtyarev Daniel, Rikker Serg. 2009-2010. All rights reserved.
//
// Distributed under the terms of the Microsoft Public License (Ms-PL).
// The license is available online http://fluent.codep... | wskplho/Fluent.Ribbon | Fluent/Controls/Backstage.cs | C# | mit | 22,640 |
import logging
import os
import ftplib
from urlparse import urlparse
from flexget import plugin
from flexget.event import event
log = logging.getLogger('ftp')
class OutputFtp(object):
"""
Ftp Download plugin
input-url: ftp://<user>:<password>@<host>:<port>/<path to file>
Example: ftp://... | thalamus/Flexget | flexget/plugins/output/ftp_download.py | Python | mit | 6,524 |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/build/v1/build_events.proto
/*
Package build is a generated protocol buffer package.
It is generated from these files:
google/devtools/build/v1/build_events.proto
google/devtools/build/v1/build_status.proto
google/devtools/build/v1/publish... | disintegration/bebop | vendor/google.golang.org/genproto/googleapis/devtools/build/v1/build_events.pb.go | GO | mit | 34,543 |
class AgentReemitJob < ActiveJob::Base
# Given an Agent, re-emit all of agent's events up to (and including) `most_recent_event_id`
def perform(agent, most_recent_event_id, delete_old_events = false)
# `find_each` orders by PK, so events get re-created in the same order
agent.events.where("id <= ?", most_re... | strugee/huginn | app/jobs/agent_reemit_job.rb | Ruby | mit | 435 |
<?php
namespace Josegonzalez\Upload\Validation\Traits;
trait ImageValidationTrait
{
/**
* Check that the file is above the minimum width requirement
*
* @param mixed $check Value to check
* @param int $width Width of Image
* @return bool Success
*/
public static function isAboveM... | Phillaf/cakephp-upload | src/Validation/Traits/ImageValidationTrait.php | PHP | mit | 2,309 |
/**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | Mr-Eskildsen/openhab2-addons | addons/binding/org.openhab.binding.nest.test/src/test/java/org/openhab/binding/nest/handler/NestStructureHandlerTest.java | Java | epl-1.0 | 5,857 |
/*
* IronJacamar, a Java EE Connector Architecture implementation
* Copyright 2014, Red Hat Inc, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or... | darranl/ironjacamar | common/src/main/java/org/ironjacamar/common/api/metadata/spec/Activationspec.java | Java | epl-1.0 | 1,596 |
/*
* Error.java
*
* Copyright (c) 2012 Mike Strobel
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A copy of the license can be found in the License.html file at the root of this distribution.
* By using this source code in any fashion, you are agreeing to be... | sgilda/windup | forks/procyon/Procyon.Reflection/src/main/java/com/strobel/reflection/Error.java | Java | epl-1.0 | 10,687 |
/*
* Copyright (c) 2012-2018 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API a... | akervern/che | multiuser/api/che-multiuser-api-organization/src/main/java/org/eclipse/che/multiuser/organization/api/resource/DefaultOrganizationResourcesProvider.java | Java | epl-1.0 | 3,553 |
class DropRepositoryReferencePublisherHref < ActiveRecord::Migration[5.2]
def change
remove_column :katello_repository_references, :publisher_href
end
end
| Katello/katello | db/migrate/20190513162209_drop_repository_reference_publisher_href.rb | Ruby | gpl-2.0 | 163 |
<?php
/*
Template Name: Content / Sidebar
*/
?><?php get_header(); ?>
<div id="container">
<section id="content">
<?php if( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="entry">
<?php if( esplanade_get_option( 'breadcrumbs' ) ) : ?>
... | sudocoda/boynamedsu-wp | wp-content/themes/esplanade/template-content-sidebar.php | PHP | gpl-2.0 | 1,162 |
// objective: allow linking to private virtual functions
// check: class_interface.xml
// config: EXTRACT_PRIV_VIRTUAL = YES
/** @brief An interface */
class Interface {
public:
/**
* @brief Load things.
*
* Calls @ref doLoad().
*/
void load();
private:
/**
* @brief Pure virtu... | ellert/doxygen | testing/080_extract_private_virtual.cpp | C++ | gpl-2.0 | 720 |
/*
* Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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... | Golrag/TrinityCore | src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp | C++ | gpl-2.0 | 7,268 |
/* This test script is part of GDB, the GNU debugger.
Copyright 2006-2017 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, ... | totalspectrum/binutils-propeller | gdb/testsuite/gdb.cp/ref-params.cc | C++ | gpl-2.0 | 1,600 |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.3 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------... | tomlagier/NoblePower | wp-content/plugins/civicrm/civicrm/CRM/Project/DAO/Task.php | PHP | gpl-2.0 | 8,570 |
<?php
/**
*
* Orders table
*
* @package VirtueMart
* @subpackage Orders
* @author RolandD
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version ma... | snake77se/proyectoszeppelin | tmp/install_546526882469b/administrator/components/com_virtuemart/tables/orders.php | PHP | gpl-2.0 | 6,575 |
<?php
global $siw_social_accounts;
extract($args);
$siw_title = empty($instance['title']) ? 'Follow Us' : apply_filters('widget_title', $instance['title']);
$siw_icons = $instance['icons'];
$siw_labels = $instance['labels'];
$siw_show_title = $instance['show_title'];
echo $before_widget;
if($siw_show_title == '') {
... | talhaobject90/quotekart | wp-content/plugins/social-media-icons-widget/lib/widget.php | PHP | gpl-2.0 | 2,863 |
<?php
/****************************************************
* @class : RSSFeedItem
* @parent : RSSFeedBase
* @abstract : no
* @aim : create a new item instance for the feed
* @author : Hugo 'Emacs' HAMON
* @email : webmaster[at]apprendre-php[dot]com
* @version : 1.0
* @changelog :
***************************... | Regis85/gepi | class_php/RSSFeed/RSSFeedItem.class.php | PHP | gpl-2.0 | 5,379 |
/* $Id: RTPathCopyComponents.cpp $ */
/** @file
* IPRT - RTPathCountComponents
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under ... | VirtualMonitor/VirtualMonitor | src/VBox/Runtime/common/path/RTPathCopyComponents.cpp | C++ | gpl-2.0 | 2,491 |
# -*- coding: utf-8 -*-
"""
***************************************************************************
extractprojection.py
---------------------
Date : September 2013
Copyright : (C) 2013 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
*****... | CS-SI/QGIS | python/plugins/processing/algs/gdal/extractprojection.py | Python | gpl-2.0 | 3,629 |
// license:BSD-3-Clause
// copyright-holders:Tomasz Slanina, Pierpaolo Prazzoli
/*
Dynamic Dice (??)
Driver by
Tomasz Slanina
Pierpaolo Prazzoli
--
Old, rusty, not working pcb :
Main PCB :
m5l8080ap (8080)
dy_1.bin (1H)
dy_2.bin (1L)
dy_3.bin (1P)
dip 6x (all off)
xtal 18.432 mhz
--
Sub PCB DYNA-529-8... | johnparker007/mame | src/mame/drivers/dynadice.cpp | C++ | gpl-2.0 | 9,210 |
/*
* pojos.ChannelAcquisitionData
*
*------------------------------------------------------------------------------
* Copyright (C) 2006-2008 University of Dundee. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | joshmoore/openmicroscopy | components/tools/OmeroJava/src/pojos/ChannelAcquisitionData.java | Java | gpl-2.0 | 11,290 |
<?php
/**
* @group edd_tax
*/
class Tests_Taxes extends EDD_UnitTestCase {
protected $_payment_id = null;
protected $_post = null;
public function setUp() {
parent::setUp();
$post_id = $this->factory->post->create( array( 'post_title' => 'Test Download', 'post_type' => 'download', 'post_status' => 'publi... | zackkatz/Easy-Digital-Downloads | tests/tests-tax.php | PHP | gpl-2.0 | 10,433 |
<?php
/**
* Class CRM_Core_CodeGen_Util_File
*/
class CRM_Core_CodeGen_Util_File {
/**
* @param $dir
* @param int $perm
*/
public static function createDir($dir, $perm = 0755) {
if (!is_dir($dir)) {
mkdir($dir, $perm, TRUE);
}
}
/**
* @param $dir
*/
public static function clea... | sharique/d7-civicrm | sites/all/modules/contrib/civicrm/CRM/Core/CodeGen/Util/File.php | PHP | gpl-2.0 | 2,238 |
// uniCenta oPOS - Touch Friendly Point Of Sale
// Copyright (c) 2009-2014 uniCenta & previous Openbravo POS works
// http://www.unicenta.com
//
// This file is part of uniCenta oPOS
//
// uniCenta oPOS is free software: you can redistribute it and/or modify
// it under the terms of the GNU General P... | sbandur84/micro-Blagajna | src-pos/com/openbravo/pos/forms/MenuElement.java | Java | gpl-3.0 | 1,074 |
/*
* Copyright 2012 Hannes Janetzek
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
* This program 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 ve... | hyl1987419/vtm | vtm/src/org/oscim/tiling/source/UrlTileDataSource.java | Java | gpl-3.0 | 3,375 |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* 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... | MIRAGE-Dev/packages_apps_Browser | src/com/android/browser/Preloader.java | Java | gpl-3.0 | 5,654 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration |
\\ / A nd | For copyright notice see file Copyright
\\/ M anipulation |
---------------------... | WensiWu/openfoam-extend-foam-extend-3.1 | src/foam/fields/FieldFields/vectorNFieldFields/TensorNFieldFields.C | C++ | gpl-3.0 | 6,042 |
import Ember from 'ember';
export default Ember.Controller.extend({
applicationController: Ember.inject.controller('application'),
stats: Ember.computed.reads('applicationController'),
config: Ember.computed.reads('applicationController.config'),
cachedLogin: Ember.computed('login', {
get() {
return ... | boehla/open-ethereum-pool | www/app/controllers/index.js | JavaScript | gpl-3.0 | 506 |
package de.rwth;
import gl.GL1Renderer;
import gl.Renderable;
import gl.scenegraph.MeshComponent;
import system.Setup;
import worldData.World;
import android.opengl.GLSurfaceView.Renderer;
import android.util.Log;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.... | sanyaade-g2g-repos/droidar | ModelLoaderAdapters/src/de/rwth/ModelLoader.java | Java | gpl-3.0 | 4,812 |
# -*- coding: utf-8 -*-
from ..internal.OCR import OCR
class GigasizeCom(OCR):
__name__ = "GigasizeCom"
__type__ = "ocr"
__version__ = "0.17"
__status__ = "testing"
__description__ = """Gigasize.com ocr plugin"""
__license__ = "GPLv3"
__authors__ = [("pyLoad Team", "admin@pyload.org")]
... | Arno-Nymous/pyload | module/plugins/captcha/GigasizeCom.py | Python | gpl-3.0 | 496 |
[{
Name: 'Weather Underground Widget',
Author: 'Generoso Martello',
Version: '2013-03-31',
GroupName: '',
IconImage: 'pages/control/widgets/homegenie/generic/images/wu_logo.png',
StatusText: '',
Description: '',
RenderView: function (cuid, module) {
var container = $(cuid);
... | AdnanSattar/HomeGenie | BaseFiles/Common/html/pages/control/widgets/weather/wunderground/conditions.js | JavaScript | gpl-3.0 | 6,270 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
-------------... | morgoth541/of_realFluid | src/thermophysicalModels/solidChemistryModel/ODESolidChemistryModel/ODESolidChemistryModelI.H | C++ | gpl-3.0 | 6,434 |
<?php
namespace Neos\Fusion\Tests\Functional\FusionObjects;
/*
* This file is part of the Neos.Fusion package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with... | klfman/neos-development-collection | Neos.Fusion/Tests/Functional/FusionObjects/ProcessorTest.php | PHP | gpl-3.0 | 1,986 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration |
\\ / A nd | For copyright notice see file Copyright
\\/ M anipulation |
---------------------... | Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.1 | applications/solvers/multiphase/twoPhaseEulerFoam/kineticTheoryModels/granularPressureModel/granularPressureModel/granularPressureModel.C | C++ | gpl-3.0 | 1,824 |
package us.mn.state.health.lims.observationhistorytype.daoImpl;
import java.util.List;
import org.hibernate.Query;
import us.mn.state.health.lims.common.daoimpl.GenericDAOImpl;
import us.mn.state.health.lims.common.exception.LIMSRuntimeException;
import us.mn.state.health.lims.common.log.LogEvent;
import us.mn.state... | mark47/OESandbox | app/src/us/mn/state/health/lims/observationhistorytype/daoImpl/ObservationHistoryTypeDAOImpl.java | Java | mpl-2.0 | 1,679 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | moliva/proactive | src/Tests/functionalTests/activeobject/async/TestAsync.java | Java | agpl-3.0 | 10,828 |
<?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 L... | auf/crm_auf_org | modules/sm_Responsable/metadata/searchdefs.php | PHP | agpl-3.0 | 3,113 |
/*!
* jQuery Password Strength plugin for Twitter Bootstrap
* Version: 3.0.4
*
* Copyright (c) 2008-2013 Tane Piper
* Copyright (c) 2013 Alejandro Blanco
* Dual licensed under the MIT and GPL licenses.
*/
(function (jQuery) {
// Source: src/i18n.js
var i18n = {};
(function (i18n, i18next) {
'use strict';
... | tejoesperanto/pasportaservo | pasportaservo/static/pwstrength/js/pwstrength-bootstrap.js | JavaScript | agpl-3.0 | 30,423 |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2012 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... | jrochas/scale-proactive | src/Extensions/org/objectweb/proactive/extensions/pamr/remoteobject/PAMRRemoteObjectFactory.java | Java | agpl-3.0 | 13,912 |
<?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... | SvenHerrmann/shopware | tests/Shopware/Tests/Components/Thumbnail/ManagerTest.php | PHP | agpl-3.0 | 7,418 |
# https://djangosnippets.org/snippets/2533/
import inspect
from django.utils.html import strip_tags
from django.utils.encoding import force_unicode
def process_docstring(app, what, name, obj, options, lines):
# This causes import errors if left outside the function
from django.db import models
# Only lo... | waseem18/oh-mainline | vendor/packages/django-http-proxy/docs/_ext/django_models.py | Python | agpl-3.0 | 1,773 |
<?php
$lang->cmd_generate_code = 'Tạo Code';
$lang->widget_name = 'Tên Widget';
$lang->widget_maker = 'Người tạo';
$lang->widget_license = 'Giấy phép';
$lang->widget_history = 'Lịch sử cập nhật';
$lang->widget_info = 'Thông tin Widget';
$lang->widget_cache = 'Bộ nhớ đệm';
$lang->widget_fix_width = 'Cố định chiều rộng';... | xetown/xe-core | modules/widget/lang/vi.php | PHP | lgpl-2.1 | 3,546 |
package org.alfresco.repo.action.executer;
import org.alfresco.error.AlfrescoRuntimeException;
import org.springframework.extensions.surf.util.I18NUtil;
public class MailActionExecuterMonitor
{
private MailActionExecuter mailActionExceuter;
public String sendTestMessage()
{
try
{
... | fxcebx/community-edition | projects/repository/source/java/org/alfresco/repo/action/executer/MailActionExecuterMonitor.java | Java | lgpl-3.0 | 1,066 |
<?php
$model = new shopProductModel();
$sql = "SELECT id FROM `shop_product_skus` WHERE count IS NULL LIMIT 1";
if ($model->query($sql)->fetchField() > 0) {
$model->correctCount();
}
| RomanNosov/convershop | wa-data/protected/wa-installer/backup/wa-apps/shop/lib/updates/5.2.4/1427271828.php | PHP | lgpl-3.0 | 187 |
/*
* bootstrap-table - v1.2.4 - 2014-10-08
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2014 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.extend(a.fn.bootstrapTable.defaults,{formatLoadingMessage:function(){return"Cargando, espere por favor..."},formatRecordsPerPage:function(a){ret... | bakasajoshua/web-lims-old | assets/bower_components/bootstrap-table/dist/locale/bootstrap-table-es_AR.min.js | JavaScript | lgpl-3.0 | 549 |
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
... | nguyentienlong/community-edition | projects/data-model/source/java/org/alfresco/repo/dictionary/M2NamedValue.java | Java | lgpl-3.0 | 2,109 |
/*
* 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 ... | jack-moseley/gobblin | gobblin-service/src/test/java/org/apache/gobblin/service/modules/restli/FlowConfigUtilsTest.java | Java | apache-2.0 | 6,005 |
/*
* Copyright 2014, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | aliosmanyuksel/show-java | app/src/main/java/org/jf/dexlib2/rewriter/ClassDefRewriter.java | Java | apache-2.0 | 5,065 |
//// [tests/cases/conformance/types/import/importTypeGenericTypes.ts] ////
//// [foo.ts]
interface Point<T> {
x: number;
y: number;
data: T;
}
export = Point;
//// [foo2.ts]
namespace Bar {
export interface I<T> {
a: string;
b: number;
data: T;
}
}
export namespace Ba... | Microsoft/TypeScript | tests/baselines/reference/importTypeGenericTypes.js | JavaScript | apache-2.0 | 2,330 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | mxm/incubator-beam | sdks/python/apache_beam/runners/direct/direct_metrics_test.py | Python | apache-2.0 | 9,689 |
import {expect} from 'chai';
import * as Rx from '../../dist/cjs/Rx';
declare const {hot, cold, expectObservable, expectSubscriptions, type};
declare const Symbol: any;
const Observable = Rx.Observable;
const queueScheduler = Rx.Scheduler.queue;
/** @test {zip} */
describe('Observable.zip', () => {
it('should comb... | saneyuki/RxJS | spec/observables/zip-spec.ts | TypeScript | apache-2.0 | 21,889 |
def load_current_resource
definition_directory = ::File.join(node["sensu"]["directory"], "conf.d", "mutators")
@definition_path = ::File.join(definition_directory, "#{new_resource.name}.json")
end
action :create do
mutator = Sensu::Helpers.select_attributes(
new_resource,
%w[command timeout]
)
defin... | sh88/aws_chef_repo | providers/mutator.rb | Ruby | apache-2.0 | 718 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# 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/... | tylertian/Openstack | openstack F/nova/nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py | Python | apache-2.0 | 14,592 |
/**
* 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... | tweise/apex-malhar | python/src/main/java/org/apache/apex/malhar/python/base/requestresponse/PythonInterpreterResponse.java | Java | apache-2.0 | 1,582 |
/**
* Yobi, Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author Yi EungJun
*
* 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/l... | ihoneymon/yobi | app/controllers/LabelApp.java | Java | apache-2.0 | 4,277 |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | jart/tensorflow | tensorflow/contrib/autograph/pyct/common_transformers/anf_test.py | Python | apache-2.0 | 1,708 |
package com.mapswithme.maps.search;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.CallSuper;
import android.support.annotation.Non... | goblinr/omim | android/src/com/mapswithme/maps/search/HotelsFilterView.java | Java | apache-2.0 | 10,253 |
#
# 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 ... | shahankhatch/aurora | src/main/python/apache/aurora/client/cli/update.py | Python | apache-2.0 | 18,361 |
# Copyright 2013-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | bjackman/workload-automation | wlauto/result_processors/standard.py | Python | apache-2.0 | 6,207 |
/*
* Copyright 2004 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | jimmytuc/closure-compiler | test/com/google/javascript/jscomp/RemoveUnusedVarsTest.java | Java | apache-2.0 | 24,407 |
/*
Copyright 2014 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, ... | timoreimann/kubernetes | pkg/kubectl/cmd/create_namespace_test.go | GO | apache-2.0 | 1,944 |
// { "framework": "Vue" }
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/****... | MrRaindrop/incubator-weex | ios/playground/bundlejs/vue/style/style-item.js | JavaScript | apache-2.0 | 3,888 |
/*
* Copyright 2000-2013 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... | goodwinnk/intellij-community | platform/util/src/com/intellij/util/io/RandomAccessFileInputStream.java | Java | apache-2.0 | 2,545 |
// @target: es5
let o = { a: 1, b: 'no' }
let o2 = { b: 'yes', c: true }
let swap = { a: 'yes', b: -1 };
let addAfter: { a: number, b: string, c: boolean } =
{ ...o, c: false }
let addBefore: { a: number, b: string, c: boolean } =
{ c: false, ...o }
// Note: ignore still changes the order that properties are p... | mkusher/TypeScript | tests/cases/conformance/types/spread/objectSpread.ts | TypeScript | apache-2.0 | 3,234 |
//// [inheritanceMemberAccessorOverridingAccessor.ts]
class a {
get x() {
return "20";
}
set x(aValue: string) {
}
}
class b extends a {
get x() {
return "20";
}
set x(aValue: string) {
}
}
//// [inheritanceMemberAccessorOverridingAccessor.js]
var __extends = (thi... | mihailik/TypeScript | tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js | JavaScript | apache-2.0 | 1,503 |
// Copyright (C) 2011 The Android Open Source Project
//
// 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 ... | m1kah/gerrit-contributions | gerrit-gwtui/src/main/java/com/google/gerrit/client/ui/ReviewerSuggestOracle.java | Java | apache-2.0 | 2,951 |
package org.bouncycastle.crypto.prng;
import java.security.SecureRandom;
import org.bouncycastle.crypto.BlockCipher;
import org.bouncycastle.crypto.params.KeyParameter;
import org.bouncycastle.util.Pack;
public class X931SecureRandomBuilder
{
private SecureRandom random; // JDK 1.1 complains on final.
... | thedrummeraki/Aki-SSL | src/org/bouncycastle/crypto/prng/X931SecureRandomBuilder.java | Java | apache-2.0 | 3,209 |
package io.pivotal.gemfire.spark.connector.javaapi;
import io.pivotal.gemfire.spark.connector.GemFireConnectionConf;
import io.pivotal.gemfire.spark.connector.streaming.GemFireDStreamFunctions;
import org.apache.spark.api.java.function.PairFunction;
import org.apache.spark.streaming.api.java.JavaDStream;
import java.u... | ysung-pivotal/incubator-geode | gemfire-spark-connector/gemfire-spark-connector/src/main/java/io/pivotal/gemfire/spark/connector/javaapi/GemFireJavaDStreamFunctions.java | Java | apache-2.0 | 3,026 |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | vdogaru/incubator-quarks | apps/runtime/src/main/java/org/apache/edgent/apps/runtime/JobMonitorAppEvent.java | Java | apache-2.0 | 3,846 |
/*
* Copyright 2012 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 in... | jesuscorral/irrduino | IrrduinoDroid/IrrduinoRemote/src/com/joefernandez/irrduino/android/remote/IrrduinoRemoteActivity.java | Java | apache-2.0 | 12,329 |
/*
* Copyright 2002-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | shivpun/spring-framework | spring-tx/src/main/java/org/springframework/dao/DataIntegrityViolationException.java | Java | apache-2.0 | 1,461 |
package org.apache.lucene.spatial.query;
/*
* 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... | smartan/lucene | src/test/java/org/apache/lucene/spatial/query/SpatialArgsParserTest.java | Java | apache-2.0 | 2,951 |
/*
* Licensed to ElasticSearch and Shay Banon 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... | Kreolwolf1/Elastic | src/main/java/org/elasticsearch/search/facet/histogram/HistogramFacetBuilder.java | Java | apache-2.0 | 5,903 |
/*
* 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 ... | vlsi/incubator-calcite | core/src/main/java/org/apache/calcite/plan/RelOptRuleOperandChildren.java | Java | apache-2.0 | 1,973 |
/*
* Created on May 31, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Art... | psiinon/zaproxy | zap/src/main/java/org/parosproxy/paros/core/proxy/ProxyThreadSSL.java | Java | apache-2.0 | 2,258 |
import Feature from '../src/ol/Feature.js';
import Map from '../src/ol/Map.js';
import Point from '../src/ol/geom/Point.js';
import VectorLayer from '../src/ol/layer/Vector.js';
import VectorSource from '../src/ol/source/Vector.js';
import View from '../src/ol/View.js';
import {Fill, RegularShape, Stroke, Style} from '... | adube/ol3 | examples/regularshape.js | JavaScript | bsd-2-clause | 2,662 |
class Openvpn < Formula
desc "SSL/TLS VPN implementing OSI layer 2 or 3 secure network extension"
homepage "https://openvpn.net/index.php/download/community-downloads.html"
url "https://swupdate.openvpn.org/community/releases/openvpn-2.4.2.tar.xz"
mirror "https://build.openvpn.net/downloads/releases/openvpn-2.4... | fvioz/homebrew-core | Formula/openvpn.rb | Ruby | bsd-2-clause | 3,601 |
cask 'sunsama' do
version '1.0.0'
sha256 'b110481cc0aa30db62cdcf1f3eb445a1da5bf2080b51f73190829665ae6511dd'
url "http://download.sunsama.com/desktop/Sunsama-#{version}.dmg"
appcast 'https://s3-us-west-2.amazonaws.com/download.sunsama.com/desktop/latest-mac.yml'
name 'Sunsama'
homepage 'https://app.sunsama.... | sscotth/homebrew-cask | Casks/sunsama.rb | Ruby | bsd-2-clause | 358 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/nacl/renderer/ppb_nacl_private_impl.h"
#include <numeric>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base... | Chilledheart/chromium | components/nacl/renderer/ppb_nacl_private_impl.cc | C++ | bsd-3-clause | 64,120 |
/*
* Copyright (c), Microsoft Open Technologies, 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... | hanmichael/redis | src/Win32_Interop/Win32_QFork.cpp | C++ | bsd-3-clause | 55,270 |
"""
Filtering and resampling data
=============================
Some artifacts are restricted to certain frequencies and can therefore
be fixed by filtering. An artifact that typically affects only some
frequencies is due to the power line.
Power-line noise is a noise created by the electrical network.
It is composed... | teonlamont/mne-python | tutorials/plot_artifacts_correction_filtering.py | Python | bsd-3-clause | 5,783 |
package com.example.test;
import android.support.test.runner.AndroidJUnit4;
import android.support.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.Assert;
@RunWith(AndroidJUnit4.class)
public class MainActivities {
@Rule
public Activ... | adsinc/android-sdk-plugin | sbt-test/android-sdk-plugin/android-test-kit/src/androidTest/java/com/example/test/MainActivities.java | Java | bsd-3-clause | 602 |
using System;
namespace HttpServer
{
/// <summary>
/// An unhandled exception have been caught by the system.
/// </summary>
public class ExceptionEventArgs : EventArgs
{
private readonly Exception _exception;
/// <summary>
/// Initializes a new instance of the <see cref="E... | kf6kjg/halcyon | ThirdParty/HttpServer/HttpServer/ExceptionEventArgs.cs | C# | bsd-3-clause | 721 |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | endlessm/chromium-browser | third_party/llvm/libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp | C++ | bsd-3-clause | 890 |
module.exports.middleware = function(req, res, next) {
req.rootUrl = function() {
var port = req.app.settings.port;
res.locals.requested_url = req.protocol + '://' + req.hostname + (port == 80 || port == 443 ? '' : ':' + port);
return req.protocol + "://" + req.get('host');
};
req.fullPath = function... | andrewvy/slack-pongbot | lib/url.js | JavaScript | isc | 387 |
// add_test.js
/* globals add */
describe('Addition', function () {
it('should add numbers', function () {
expect(add(2, 4)).toBe(6)
expect(add(2, 4)).not.toBe(2)
})
})
| dmitriz/baseline-utils | demo/min-karma-function_test.js | JavaScript | mit | 182 |
<?php
$container->loadFromExtension('security', array(
'firewalls' => array(
'main' => array(
'form_login' => array(
'login_path' => '/login',
),
'logout_on_user_change' => true,
),
),
'role_hierarchy' => array(
'FOO' => 'BAR',
... | smoers/bird | vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/Fixtures/php/merge_import.php | PHP | mit | 351 |
const common = require('../../../../lib/common');
const commands = require('../../../schema').commands;
const table = 'actions';
const message1 = `Adding table: ${table}`;
const message2 = `Dropping table: ${table}`;
module.exports.up = (options) => {
const connection = options.connection;
return connection.s... | dingotiles/ghost-for-cloudfoundry | versions/3.3.0/core/server/data/migrations/versions/2.14/1-add-actions-table.js | JavaScript | mit | 998 |
from django import template
register = template.Library()
@register.simple_tag(takes_context=True)
def table_specific(context, table_id):
"""Safely include a fragment specific to the given table, but handle no special info gracefully."""
try:
fragment_path = "table/specific/%s.html" % table_id
... | uscensusbureau/censusreporter | censusreporter/apps/census/templatetags/tabletags.py | Python | mit | 462 |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | xuleiboy1234/autoTitle | tensorflow/tensorflow/examples/get_started/regression/dnn_regression.py | Python | mit | 3,579 |
package org.spongycastle.bcpg;
import java.io.IOException;
import org.spongycastle.util.Arrays;
import org.spongycastle.util.Strings;
/**
* Basic type for a user ID packet.
*/
public class UserIDPacket
extends ContainedPacket
{
private byte[] idData;
public UserIDPacket(
BCPGInputS... | open-keychain/spongycastle | pg/src/main/java/org/spongycastle/bcpg/UserIDPacket.java | Java | mit | 1,216 |
class CreateStorytimeMedia < ActiveRecord::Migration
def change
create_table :storytime_media do |t|
t.string :file
t.references :user, index: true
t.timestamps
end
end
end
| Oliviergg/storytime | db/migrate/20140511200849_create_storytime_media.rb | Ruby | mit | 204 |
#include "allocator.hpp"
#include <string.h>
#include <assert.h>
#include <stdlib.h>
// Address sanitizer
#if defined(__has_feature)
# define ADDRESS_SANITIZER __has_feature(address_sanitizer)
#else
# if defined(__SANITIZE_ADDRESS__)
# define ADDRESS_SANITIZER 1
# else
# define ADDRESS_SANITIZER 0
# endif
#endif
/... | zeux/pugixml | tests/allocator.cpp | C++ | mit | 3,808 |
// Copyright (c) 2003 Daniel Wallin and Arvid Norberg
// 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,... | luabind/luabind | luabind/detail/policy.hpp | C++ | mit | 23,365 |
<?php
namespace Bigcommerce\Unit\Api;
use Bigcommerce\Api\Filter;
class FilterTest extends \PHPUnit_Framework_TestCase
{
public function testToQueryBuildsAnAppropriateQueryString()
{
$filter = new Filter(array('a' => 1, 'b' => 'orange'));
$this->assertSame('?a=1&b=orange', $filter->toQuery());... | lord2800/bigcommerce-api-php | test/Unit/Api/FilterTest.php | PHP | mit | 1,199 |
<?php
/*
* This file is part of jwt-auth
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Providers\Auth;
use Tymon\JWTAuth\Contracts\Providers\Auth;
use Cartalyst\S... | levieraf/jwt-auth | src/Providers/Auth/Sentinel.php | PHP | mit | 1,436 |
package org.spongycastle.asn1.cmp;
import java.util.Enumeration;
import org.spongycastle.asn1.ASN1EncodableVector;
import org.spongycastle.asn1.ASN1Object;
import org.spongycastle.asn1.ASN1Primitive;
import org.spongycastle.asn1.ASN1Sequence;
import org.spongycastle.asn1.ASN1TaggedObject;
import org.spongycastle.asn1... | Skywalker-11/spongycastle | core/src/main/java/org/spongycastle/asn1/cmp/PKIFreeText.java | Java | mit | 2,571 |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, 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 restrictio... | Bloodknight/Torque3D | Engine/source/platform/platformTimer.cpp | C++ | mit | 4,689 |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2014, 2018 Oracle and/or its affiliates.
// Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle
// Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
// Licensed under the Boost Software Lic... | nawawi/poedit | deps/boost/libs/geometry/test/algorithms/distance/distance_brute_force.hpp | C++ | mit | 34,417 |