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 |
|---|---|---|---|---|---|
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v20.2.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... | sufuf3/cdnjs | ajax/libs/ag-grid/21.0.0/lib/dragAndDrop/dragService.js | JavaScript | mit | 13,765 |
<?php
namespace Kunstmaan\AdminBundle\Helper\Menu;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
/**
* SettingsMenuAdaptor to add the Settings MenuItem to the top menu and build the Settings tree
*/
class SettingsMenuAdaptor implement... | Kunstmaan/KunstmaanBundlesCMS | src/Kunstmaan/AdminBundle/Helper/Menu/SettingsMenuAdaptor.php | PHP | mit | 2,981 |
/* http://keith-wood.name/calculator.html
Catalan initialisation for the jQuery calculator extension
Written by Esteve Camps (ecamps at google dot com) June 2010. */
(function($) { // hide the namespace
$.calculator.regionalOptions['ca'] = {
decimalChar: ',',
buttonText: '...', buttonStatus: 'Obrir la... | rsantellan/ventanas-html-proyecto | ventanas/src/AppBundle/Resources/public/admin/vendor/calculator/jquery.calculator-ca.js | JavaScript | mit | 1,535 |
/**
* EditorCommands.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class enables you to add custom editor commands and it contains
* overrides for nati... | michalgraczyk/calculus | web/js/tiny_mce/js/tinymce/classes/EditorCommands.js | JavaScript | mit | 29,362 |
// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"
using Perspex.Media;
usin... | danwalmsley/Perspex | src/Perspex.HtmlRenderer/Adapters/FontAdapter.cs | C# | mit | 2,736 |
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
describe "<%= class_name %>", ActiveSupport::TestCase do
# Replace this with your real tests.
it "should be true" do
assert true
end
end
| claudiobm/ClockingIT-In-CapellaDesign | vendor/plugins/test_spec_on_rails/lib/generators/model/templates/unit_test.rb | Ruby | mit | 233 |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Internals\Options
*/
/**
* Option: wpseo.
*/
class WPSEO_Option_Wpseo extends WPSEO_Option {
/**
* @var string Option name.
*/
public $option_name = 'wpseo';
/**
* @var array Array of defaults for the option.
* Shouldn't be requested direc... | mandino/hotelmilosantabarbara.com | wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option-wpseo.php | PHP | mit | 10,210 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | utils/eclipselink.utils.workbench.test/utility/source/org/eclipse/persistence/tools/workbench/test/utility/events/ReflectiveListChangeListenerTests.java | Java | epl-1.0 | 22,586 |
/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* 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 ... | bartlomiej-laczkowski/che | wsmaster/che-core-api-machine-shared/src/main/java/org/eclipse/che/api/machine/shared/dto/MachineConfigDto.java | Java | epl-1.0 | 2,478 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | utils/eclipselink.utils.workbench.test/mappingsplugin/source/org/eclipse/persistence/tools/workbench/test/mappingsmodel/query/MWUserDefinedQueryKeyTests.java | Java | epl-1.0 | 2,104 |
/*******************************************************************************
* Copyright (c) 2006, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | RallySoftware/eclipselink.runtime | jpa/org.eclipse.persistence.jpa.jpql/src/org/eclipse/persistence/jpa/jpql/parser/FunctionsReturningNumericsBNF.java | Java | epl-1.0 | 3,120 |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | gameduell/eclipselink.runtime | foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/oxm/annotations/XmlCustomizer.java | Java | epl-1.0 | 1,534 |
<?php
/**
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version 2014.11.1
* @package kernel
*/
$tpl = eZTemplate::factory();
$Module = $Params['Module'];
$roleID = $Params['RoleID'];
$in... | CG77/ezpublish-legacy | kernel/role/edit.php | PHP | gpl-2.0 | 30,498 |
<?php
/**
* @file
* Contains \Drupal\user\Form\UserPasswordForm.
*/
namespace Drupal\user\Form;
use Drupal\Core\Field\Plugin\Field\FieldType\EmailItem;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageManager;
use Drupal\user\UserStorageControllerInterface;
use Sy... | allgood2386/lexrants-me | core/modules/user/lib/Drupal/user/Form/UserPasswordForm.php | PHP | gpl-2.0 | 4,512 |
<?php
/**
* This is a helper class for WordPress that allows format HTML tags, including inputs, textareas, etc
*
* @author Rinat Khaziev
* @version 0.1
*/
class Html_Helper {
function __construct() {
}
/**
* Render multiple choice checkboxes
*
* @param string $name
* @param string $description
*... | Luckynumberseven/project2 | wp-content/plugins/frontend-uploader/lib/php/class-html-helper.php | PHP | gpl-2.0 | 6,132 |
<?php
/**
* @package EasyBlog
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyBlog is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative ... | david-strejc/octopus | components/com_easyblog/themes/nomad/blog.item.photo.php | PHP | gpl-2.0 | 5,596 |
#include "gtest/gtest.h"
#include "llt_mockcpp.h"
#include <stdio.h>
#include <stdlib.h>
//½¨ÒéÕâÑùÒýÓ㬱ÜÃâÏÂÃæÓùؼü×ÖʱÐèÒª¼Óǰ׺ testing::
using namespace testing;
#ifdef __cplusplus
extern "C"
{
#endif
extern unsigned int uttest_OM_AcpuCallBackMsgProc_case1(void);
extern unsigned int ut... | slade87/ALE21-Kernel | drivers/hisi/modem_hi6xxx/oam/comm/acore/om/uttest_omappoutside.cpp | C++ | gpl-2.0 | 2,725 |
/*
SESC: Super ESCalar simulator
Copyright (C) 2005 University of California, Santa Cruz
Contributed by Jose Renau
This file is part of SESC.
SESC 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;
eithe... | dilawar/sesc | src_without_LF/libpower/cacti/cacti_setup.cpp | C++ | gpl-2.0 | 23,999 |
/*
* Copyright (c) 2018, 2019, 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 ... | md-5/jdk10 | test/jdk/sun/security/tools/keytool/NssTest.java | Java | gpl-2.0 | 2,505 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ChapterMarker.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Publ... | Rodeo314/hb-saintdev | win/CS/HandBrake.ApplicationServices/Services/Encode/Model/Models/ChapterMarker.cs | C# | gpl-2.0 | 2,905 |
// clang-format off
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of ... | akohlmey/lammps | src/nstencil_half_multi_3d_tri.cpp | C++ | gpl-2.0 | 3,559 |
<?php
/**
* File containing the eZXHTMLXMLOutput class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
* @package kernel
*/
class eZXHTMLXMLOutput extends eZXMLO... | guillaumelecerf/ezpublish-legacy | kernel/classes/datatypes/ezxmltext/handlers/output/ezxhtmlxmloutput.php | PHP | gpl-2.0 | 27,406 |
/*
* Copyright (c) 2019, 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 Softwa... | md-5/jdk10 | test/jdk/sun/security/mscapi/ProviderClassOption.java | Java | gpl-2.0 | 1,509 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2011-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | vishwaAbhinav/OpenNMS | opennms-webapp/src/main/java/org/opennms/web/alarm/filter/NegativeEventParmLikeFilter.java | Java | gpl-2.0 | 2,058 |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.3 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------... | tomlagier/NoblePower | wp-content/plugins/civicrm/civicrm/CRM/Core/I18n/SchemaStructure_3_4_0.php | PHP | gpl-2.0 | 7,148 |
<?php
// phpcs:ignoreFile -- compatibility library for PHP 5-7.1
if (class_exists('ParagonIE_Sodium_Core_ChaCha20_IetfCtx', false)) {
return;
}
/**
* Class ParagonIE_Sodium_Core32_ChaCha20_IetfCtx
*/
class ParagonIE_Sodium_Core32_ChaCha20_IetfCtx extends ParagonIE_Sodium_Core32_ChaCha20_Ctx
{
/**
* Par... | tstephen/srp-digital | wp-content/plugins/wordfence/crypto/vendor/paragonie/sodium_compat/src/Core32/ChaCha20/IetfCtx.php | PHP | gpl-2.0 | 1,562 |
#ifndef NETWORK_RULES_HPP
#define NETWORK_RULES_HPP
#include <map>
#include "ReactionRule.hpp"
#include "generator.hpp"
class NetworkRules
{
public:
typedef ReactionRule reaction_rule_type;
typedef SpeciesTypeID species_id_type;
typedef abstract_limited_generator<reaction_rule_type> reaction_rule_generato... | navoj/ecell4 | ecell4/egfrd/legacy/NetworkRules.hpp | C++ | gpl-2.0 | 821 |
""" color scheme source data """
schemes = {'classic': [(255, 237, 237),
(255, 224, 224),
(255, 209, 209),
(255, 193, 193),
(255, 176, 176),
(255, 159, 159),
(255, 142, 142),
(255, 126, 126),
(255, 110, 110),
... | ashmastaflash/IDCOAS | integration/heatmaps/heatmap/colorschemes.py | Python | gpl-2.0 | 33,688 |
<?php
/**
* File containing the ezpOauthBadRequestException class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version 2014.11.1
* @package kernel
*/
/**
* This is the base excepti... | CG77/ezpublish-legacy | kernel/private/rest/classes/exceptions/bad_request.php | PHP | gpl-2.0 | 558 |
class Organization::Public::Piece::AllGroupsController < Sys::Controller::Public::Base
def pre_dispatch
@piece = Organization::Piece::AllGroup.where(id: Page.current_piece.id).first
render :text => '' unless @piece
@item = Page.current_item
end
def index
sys_group_codes = @piece.content.root_sys... | tao-k/zomeki | app/controllers/organization/public/piece/all_groups_controller.rb | Ruby | gpl-3.0 | 441 |
package org.ovirt.engine.ui.uicommonweb.models.templates;
import org.ovirt.engine.core.common.businessentities.VmBase;
import org.ovirt.engine.core.common.businessentities.VmTemplate;
import org.ovirt.engine.core.compat.Version;
import org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor;
import org.ovirt.engine.u... | jtux270/translate | ovirt/3.6_source/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/templates/ExistingBlankTemplateModelBehavior.java | Java | gpl-3.0 | 2,954 |
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.ComponentModel.Design;
using Microsoft.Win32;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell;
us... | UlyssesWu/dnSpy | ILSpy.AddIn/ILSpyAddInPackage.cs | C# | gpl-3.0 | 6,884 |
package fr.xephi.authme.data.limbo.persistence;
import org.junit.Test;
import java.util.HashSet;
import java.util.Set;
import static fr.xephi.authme.data.limbo.persistence.SegmentSize.EIGHT;
import static fr.xephi.authme.data.limbo.persistence.SegmentSize.FOUR;
import static fr.xephi.authme.data.limbo.persistence.Se... | Xephi/AuthMeReloaded | src/test/java/fr/xephi/authme/data/limbo/persistence/SegmentNameBuilderTest.java | Java | gpl-3.0 | 5,364 |
/*
* Copyright (C) 2015 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... | syslover33/ctank | java/android-sdk-linux_r24.4.1_src/sources/android-23/android/os/storage/VolumeRecord.java | Java | gpl-3.0 | 4,577 |
#include "AtomicMaker.h"
#include <string>
void AtomicMaker::readParam(std::istream& in)
{
read<Boundary>(in, "boundary", boundary_);
readParamComposite(in, random_);
read<int>(in, "nMolecule", nMolecule_);
}
void AtomicMaker::writeConfig(std::ostream& out)
{
Vector r;
Vector v;
int iMol;
... | jmysona/testing2 | src/draft/tools/atomicMaker/AtomicMaker.cpp | C++ | gpl-3.0 | 898 |
/*
* Copyright (c) 2002-2005 The Regents of The University of Michigan
* 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
* not... | vineodd/PIMSim | GEM5Simulation/gem5/src/dev/net/etherdump.cc | C++ | gpl-3.0 | 3,646 |
namespace ArdupilotMega.Antenna
{
partial class Tracker
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summa... | trunet/ardupilot | Tools/ArdupilotMegaPlanner/Antenna/Tracker.Designer.cs | C# | gpl-3.0 | 15,376 |
#!/usr/bin/python
#
# GEOMTERY.OUT to OpenDX
#
# Created: April 2009 (AVK)
# Modified: February 2012 (AVK)
#
import math
import sys
def r3minv(a, b):
t1 = a[0][2] * (a[1][0] * a[2][1] - a[1][1] * a[2][0]) + \
a[0][1] * (a[1][2] * a[2][0] - a[1][0] * a[2][2]) + \
a[0][0] * (a[1][1] * a[2][2]... | rgvanwesep/exciting-plus-rgvw-mod | utilities/geometry2dx__mtrx.py | Python | gpl-3.0 | 20,319 |
#Copyright (C) 2014 Marc Herndon
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License,
#version 2, as published by the Free Software Foundation.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without ... | scith/htpc-manager_ynh | sources/libs/pySMART/attribute.py | Python | gpl-3.0 | 3,070 |
define([
'angular'
, './view-rubberband-controller'
, './view-rubberband-directive'
], function(
angular
, Controller
, directive
) {
"use strict";
return angular.module('mtk.viewRubberband', [])
.controller('ViewRubberbandController', Controller)
.directive('mtkViewRubberb... | jeroenbreen/metapolator | app/lib/ui/metapolator/view-rubberband/view-rubberband.js | JavaScript | gpl-3.0 | 354 |
from .main import Sabnzbd
def start():
return Sabnzbd()
config = [{
'name': 'sabnzbd',
'groups': [
{
'tab': 'downloaders',
'list': 'download_providers',
'name': 'sabnzbd',
'label': 'Sabnzbd',
'description': 'Use <a href="http://sabnzbd.or... | jerbob92/CouchPotatoServer | couchpotato/core/downloaders/sabnzbd/__init__.py | Python | gpl-3.0 | 2,548 |
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | vineodd/PIMSim | GEM5Simulation/gem5/src/systemc/tests/systemc/1666-2011-compliance/sync_reset/sync_reset.cpp | C++ | gpl-3.0 | 11,660 |
// Copyright 2016 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 "blimp/common/compositor/reference_tracker.h"
#include <stdint.h>
#include <algorithm>
#include <unordered_set>
#include <vector>
#include "tes... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/blimp/common/compositor/reference_tracker_unittest.cc | C++ | gpl-3.0 | 6,177 |
// UK lang variables
tinyMCE.addI18n('pt.codehighlighting',{
codehighlighting_desc : "Code Highlighting",
codehighlighting_title : "Code Highlighting",
codehighlighting_langaugepicker : "Choose the language",
codehighlighting_pagecode : "Paste your code here",
codehighlighting_button_desc: "Insert code",
codehig... | ahilles107/Newscoop | newscoop/js/tinymce/plugins/codehighlighting/langs/pt.js | JavaScript | gpl-3.0 | 494 |
// Copyright 2008 the V8 project authors. 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 ... | victorzhao/miniblink49 | v8_4_5/test/mjsunit/array-length.js | JavaScript | gpl-3.0 | 4,264 |
//
// DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
//
// @Authors:
// christiank
// dinwiggy
//
// Copyright 2004-2010 by OM International
//
// This file is part of OpenPetra.org.
//
// OpenPetra.org is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Pu... | tpokorra/openpetra.js | csharp/ICT/Petra/Client/MPartner/Gui/UC_IndividualData_PreviousExperience.ManualCode.cs | C# | gpl-3.0 | 9,535 |
/*
* This file is part of the PulseView project.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
*
* 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 2 of th... | uwehermann/pulseview | pv/data/analogsegment.hpp | C++ | gpl-3.0 | 2,563 |
/*************************************************************************
* Copyright 2009-2014 Eucalyptus Systems, 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; version 3 of the ... | eethomas/eucalyptus | clc/modules/msgs/src/main/java/com/eucalyptus/ws/EucalyptusRemoteFault.java | Java | gpl-3.0 | 4,910 |
package org.ovirt.engine.ui.uicommonweb.models.providers;
import org.ovirt.engine.core.common.action.AddExternalSubnetParameters;
import org.ovirt.engine.core.common.action.VdcActionType;
import org.ovirt.engine.core.common.action.VdcReturnValueBase;
import org.ovirt.engine.core.common.businessentities.network.Network... | jtux270/translate | ovirt/3.6_source/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/providers/NewExternalSubnetModel.java | Java | gpl-3.0 | 3,910 |
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Guzzle\Http\Url;
class media_adapter extends media_abstract
{
/**
* Constructor
*
* Enfor... | nmaillat/Phraseanet | lib/classes/media/adapter.php | PHP | gpl-3.0 | 556 |
<?php
/**
* File: table_easywi_statistics.php.
* Author: Ulrich Block
* Date: 17.10.15
* Contact: <ulrich.block@easy-wi.com>
*
* This file is part of Easy-WI.
*
* Easy-WI 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 ... | TR-Host/easy-wi-mirror | web/stuff/data/table_easywi_statistics.php | PHP | gpl-3.0 | 8,010 |
/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open public transport:
... | TeXitoi/navitia | source/calendar/calendar.cpp | C++ | agpl-3.0 | 2,441 |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2012 OpenERP S.A (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | poiesisconsulting/openerp-restaurant | portal/__openerp__.py | Python | agpl-3.0 | 2,288 |
"""
Unit tests for the asset upload endpoint.
"""
from datetime import datetime
from io import BytesIO
from pytz import UTC
import json
from django.conf import settings
from contentstore.tests.utils import CourseTestCase
from contentstore.views import assets
from contentstore.utils import reverse_course_url
from xmodul... | beni55/edx-platform | cms/djangoapps/contentstore/views/tests/test_assets.py | Python | agpl-3.0 | 15,204 |
define(['angular'], function(angular) {
'use strict';
return angular.module('superdesk.services.storage', [])
/**
* LocalStorage wrapper
*
* it stores data as json to keep its type
*/
.service('storage', function() {
/**
* Get item f... | plamut/superdesk | client/app/scripts/superdesk/services/storage.js | JavaScript | agpl-3.0 | 1,250 |
<?php
/*
* StatusNet - the distributed open-source microblogging tool
* Copyright (C) 2008-2010, StatusNet, Inc.
*
* 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 Software Foundation, either version 3 o... | gayathri6/stepstream_salute | lib_old/oembedhelper.php | PHP | agpl-3.0 | 12,206 |
// Copyright (c) 2013-2017 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package netsync
import (
"container/list"
"net"
"sync"
"sync/atomic"
"time"
"github.com/btcsuite/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg"
"github.c... | adrianbrink/tendereum | vendor/github.com/cosmos/tendereum/vendor/github.com/btcsuite/btcd/netsync/manager.go | GO | agpl-3.0 | 46,884 |
<?php
/** This file is part of KCFinder project
*
* @desc Autoload classes magic function
* @package KCFinder
* @version 2.21
* @author Pavel Tzonkov <pavelc@users.sourceforge.net>
* @copyright 2010 KCFinder Project
* @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
* @lice... | yscdaxian/goweb | limesurvey/admin/scripts/kcfinder/core/autoload.php | PHP | agpl-3.0 | 3,384 |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
erpnext.POS = Class.extend({
init: function(wrapper, frm) {
this.wrapper = wrapper;
this.frm = frm;
this.wrapper.html('<div class="container">\
<div class="row" style="margin: -... | Tejal011089/Medsyn2_app | accounts/doctype/sales_invoice/pos.js | JavaScript | agpl-3.0 | 17,987 |
/*
* eXist Open Source Native XML Database
* Copyright (C) 2010 The eXist Project
* http://exist-db.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 version 2
* ... | shabanovd/exist | extensions/svn/src/org/exist/versioning/svn/xquery/SVNCleanup.java | Java | lgpl-2.1 | 3,112 |
// ---------------------------------------------------------------------
//
// Copyright (C) 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Public Li... | shakirbsm/dealii | tests/manifold/spherical_manifold_04.cc | C++ | lgpl-2.1 | 2,888 |
package org.jaudiotagger.issues;
import org.jaudiotagger.AbstractTestCase;
import org.jaudiotagger.audio.AudioFile;
import org.jaudiotagger.audio.AudioFileIO;
import org.jaudiotagger.tag.FieldKey;
import java.io.File;
/**
* Test deletions of ID3v1 tag
*/
public class Issue383Test extends AbstractTestCa... | nhminus/jaudiotagger-androidpatch | srctest/org/jaudiotagger/issues/Issue383Test.java | Java | lgpl-2.1 | 2,217 |
/**
*
* Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) ... | paulklinkenberg/Lucee4 | lucee-java/lucee-core/src/lucee/runtime/functions/query/QueryDeleteRow.java | Java | lgpl-2.1 | 1,691 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made avail... | ivassile/wildfly-core | server/src/main/java/org/jboss/as/server/deployment/DeploymentFullReplaceHandler.java | Java | lgpl-2.1 | 12,747 |
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file may be used unde... | ostash/qt-creator-i18n-uk | src/plugins/projectexplorer/currentprojectfind.cpp | C++ | lgpl-2.1 | 3,806 |
package org.intermine.sql.writebatch;
/*
* Copyright (C) 2002-2015 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/less... | tomck/intermine | intermine/objectstore/main/src/org/intermine/sql/writebatch/BatchWriterPostgresCopyImpl.java | Java | lgpl-2.1 | 11,352 |
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* ... | vigourouxjulien/thelia | setup/update.php | PHP | lgpl-3.0 | 9,119 |
/*
* 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
* (at y... | Tybion/community-edition | projects/repository/source/java/org/alfresco/filesys/repo/rules/operations/OpenFileOperation.java | Java | lgpl-3.0 | 2,566 |
//
// Copyright (c) Microsoft and contributors. 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 requi... | nemanja88/azure-powershell | src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSetVM/VirtualMachineScaleSetVMGetMethod.cs | C# | apache-2.0 | 9,368 |
/* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.utilities.status;
public class ServerState {
public static final ServerSt... | andreasnef/fcrepo | fcrepo-server/src/main/java/org/fcrepo/server/utilities/status/ServerState.java | Java | apache-2.0 | 1,711 |
#region License
//
// Copyright (c) 2018, Fluent Migrator 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 ... | eloekset/fluentmigrator | test/FluentMigrator.Tests/Integration/Processors/Oracle/OracleNative/OracleColumnTests.cs | C# | apache-2.0 | 1,137 |
#include "cbase.h"
#include "asw_weapon_hornet_barrage.h"
#ifdef CLIENT_DLL
#include "c_asw_player.h"
#include "c_asw_marine.h"
#include "c_asw_alien.h"
#include "asw_input.h"
#include "prediction.h"
#else
#include "asw_marine.h"
#include "asw_player.h"
#include "asw_alien.h"
#include "particle_parse.h"
#include "te_e... | ppittle/AlienSwarmDirectorMod | trunk/src/game/shared/swarm/asw_weapon_hornet_barrage.cpp | C++ | apache-2.0 | 5,658 |
# Copyright 2013 OpenStack Foundation.
# 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 req... | pnavarro/neutron | neutron/tests/unit/test_wsgi.py | Python | apache-2.0 | 26,842 |
/**
* Licensed to the Rhiot under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in co... | jasonchaffee/camel-labs | gateway/components/camel-pi4j/src/main/java/io/rhiot/component/pi4j/i2c/driver/BMP180Value.java | Java | apache-2.0 | 1,355 |
# Copyright 2014, Rackspace, US, 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 w... | BiznetGIO/horizon | openstack_dashboard/api/rest/urls.py | Python | apache-2.0 | 1,231 |
/*
* Copyright 2012-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spring-projects/spring-boot | buildSrc/src/main/java/org/springframework/boot/build/test/IntegrationTestPlugin.java | Java | apache-2.0 | 3,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 ... | ydai1124/gobblin-1 | gobblin-core-base/src/main/java/gobblin/writer/MultiWriterWatermarkTracker.java | Java | apache-2.0 | 5,266 |
/*
* 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 ... | lql5083psu/incubator-mnemonic | mnemonic-memory-services/mnemonic-java-vmem-service/src/main/java/org/apache/mnemonic/service/memory/internal/BufferBlockInfo.java | Java | apache-2.0 | 2,204 |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | jfrazelle/kubernetes | staging/src/k8s.io/apiextensions-apiserver/test/integration/finalization_test.go | GO | apache-2.0 | 5,811 |
// Code generated by counterfeiter. DO NOT EDIT.
package mock
import (
"sync"
)
type Writer struct {
WriteFileStub func(string, string, []byte) error
writeFileMutex sync.RWMutex
writeFileArgsForCall []struct {
arg1 string
arg2 string
arg3 []byte
}
writeFileReturns struct {
result1 error
}
... | stemlending/fabric | internal/peer/lifecycle/chaincode/mock/writer.go | GO | apache-2.0 | 3,051 |
/*
* 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 ... | firzhan/wso2-ode | jbi-karaf-commands/src/main/java/org/apache/ode/karaf/commands/OdeCommandsBase.java | Java | apache-2.0 | 3,894 |
package com.taobao.zeus.jobs.sub;
import java.io.File;
import java.io.FileFilter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
impor... | wwzhe/dataworks-zeus | web/.externalToolBuilders/schedule/src/main/java/com/taobao/zeus/jobs/sub/MapReduceJob.java | Java | apache-2.0 | 3,072 |
/**
* 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... | vega113/incubator-wave | wave/src/test/java/com/google/wave/api/data/converter/v22/EventDataConverterV22Test.java | Java | apache-2.0 | 5,547 |
/*
* 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... | johtani/elasticsearch | src/test/java/org/elasticsearch/threadpool/UpdateThreadPoolSettingsTests.java | Java | apache-2.0 | 12,249 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | electrum/presto | core/trino-main/src/main/java/io/trino/operator/SplitOperatorInfo.java | Java | apache-2.0 | 1,565 |
package org.grobid.core.utilities;
/**
* This class contains all the keys of the properties files.
*
* @author Damien Ridereau
*/
public interface GrobidPropertyKeys {
public static final String PROP_GROBID_IS_CONTEXT_SERVER = "grobid.is.context.server";
public static final String PROP_TMP_PATH = "grobid... | Lilykos/grobid | grobid-core/src/main/java/org/grobid/core/utilities/GrobidPropertyKeys.java | Java | apache-2.0 | 3,430 |
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | mbiarnes/drools-wb | drools-wb-screens/drools-wb-dtable-xls-editor/drools-wb-dtable-xls-editor-backend/src/main/java/org/drools/workbench/screens/dtablexls/backend/server/conversion/builders/GuidedDecisionTableActivationGroupBuilder.java | Java | apache-2.0 | 2,570 |
/**
* Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* 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
... | pkocandr/indy | core/src/test/java/org/commonjava/indy/core/inject/ExpiringMemoryNotFoundCacheTest.java | Java | apache-2.0 | 3,446 |
/*
* 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 ... | dlnufox/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheTxRecoveryFuture.java | Java | apache-2.0 | 15,947 |
/* 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... | ghchinoy/tensorflow | tensorflow/core/kernels/reduction_ops_gpu_int.cu.cc | C++ | apache-2.0 | 2,716 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("OSharp.Autofac")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("柳柳软件")]
[assembly: Ass... | BiaoLiu/osharp-2015.8.28 | src/OSharp.Autofac/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,374 |
/**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.sesame.graph;
/**
* Provides IDs for function instances.
* <p>
* If two functions are logically equal they will be assigned the same ID. This is used by the... | jeorme/OG-Platform | sesame/sesame-engine/src/main/java/com/opengamma/sesame/graph/FunctionIdProvider.java | Java | apache-2.0 | 810 |
/**
* Copyright 2010 The Apache Software Foundation
*
* 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... | indi60/hbase-pmc | target/hbase-0.94.1/hbase-0.94.1/src/test/java/org/apache/hadoop/hbase/client/TestMetaScanner.java | Java | apache-2.0 | 3,874 |
/*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | romartin/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-project-backend/src/main/java/org/kie/workbench/common/stunner/bpmn/project/backend/service/ProjectOpenReusableSubprocessServiceImpl.java | Java | apache-2.0 | 3,469 |
require('jasmine-beforeall');
var h = require('./helpers.js');
describe('', function() {
afterAll(function(){
h.afterAllTeardown();
});
// This UI test suite expects to be run as part of hack/test-end-to-end.sh
// It requires the example project be created with all of its resources in order to pass
des... | mnagy/origin | assets/test/integration/e2e.js | JavaScript | apache-2.0 | 2,284 |
class SearchController < ApplicationController
using ArrayItemWrapper
def index
q, limit, type = search_params.values_at(:q, :limit, :type)
respond_with perform_search(q, limit, type).merge(q: q)
end
private
def perform_search(q, limit, *types)
types = %w(template local_image remote_image) if ... | rheinwein/panamax-api | app/controllers/search_controller.rb | Ruby | apache-2.0 | 1,231 |
/*
* Copyright 2010 Utkin Dmitry
*
* 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 agr... | gale320/staff | das/common/src/ProviderFactory.cpp | C++ | apache-2.0 | 4,315 |
/*
* This file is part of the select element layoutObject in WebCore.
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
* 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
*... | zero-rp/miniblink49 | third_party/WebKit/Source/core/layout/LayoutMenuList.cpp | C++ | apache-2.0 | 22,827 |
/**
* 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... | pkletsko/camel | components/camel-dropbox/src/test/java/org/apache/camel/component/dropbox/integration/producer/DropboxProducerGetFolderTest.java | Java | apache-2.0 | 5,497 |
/*
* Copyright 2018, OpenCensus 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 ag... | bogdandrutu/opencensus-java | contrib/appengine_standard_util/src/main/java/io/opencensus/contrib/appengine/standard/util/AppEngineCloudTraceContextUtils.java | Java | apache-2.0 | 3,787 |