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 |
|---|---|---|---|---|---|
/* 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/. */
pvc.BaseChart
.add({
/**
* A map of {@link pvc.visual.Role} by name.
* Do NOT modify the returned ob... | Abpaula/ccc | package-res/ccc/core/base/chart/chart.visualRoles.js | JavaScript | mpl-2.0 | 7,092 |
/**
* Add a context menu item to borderify the current tab.
*/
browser.menus.create({
id: "borderify-current-tab",
title: "Borderify current tab",
contexts: ["all"]
});
/**
* The borderify CSS.
*/
const borderCSS = 'body { border: 5px solid red };';
/*
* Borderifies the current tab, and, using setTabValue,... | mdn/webextensions-examples | session-state/background.js | JavaScript | mpl-2.0 | 1,698 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Outlook;
using Google.Apis.Calendar.v3.Data;
namespace OutlookGoogleCalendarSync.OutlookOgcs {
public interface Interface {
void Connect();
void Disconnect(Boolean onlyWhenNoGUI = f... | phw198/OutlookGoogleCalendarSync | src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookInterface.cs | C# | mpl-2.0 | 1,665 |
/*----------------------------------------------------------
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/.
----------------------------------------------------------*/
u... | EvilBeaver/OneScript | src/oscript/MeasureBehavior.cs | C# | mpl-2.0 | 1,029 |
/**
* An implementation for the IView, using SDL.
*
* License: Mozilla Public License Version 2.0 (https://www.mozilla.org/en-US/MPL/2.0/ OR See accompanying file LICENSE)
* Authors:
* - Dan Printzell
*/
#pragma once
#include <hydra/ext/api.hpp>
#include <hydra/view/view.hpp>
#include <memory>
namespace Hydra:... | HydraInteractive/Hydra | hydra_graphics/include/hydra/view/sdlview.hpp | C++ | mpl-2.0 | 433 |
define(['Container', 'NumberStyle'], function(Container, NumberStyle) {
/**
* Percentage, between cow and ship, that the beam should end at
* @const
* @type number
*/
var MAX_BEAM_DISTANCE = 100;
/**
* Percentage, between ship and cow, that the beam should start at
* @const
* @type number
... | BYU-ODH/vocal-abduction | app/js/Beam.js | JavaScript | mpl-2.0 | 8,135 |
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** Type: DCL ***
//
// ----------------------------------------------------------------------------
//
// This file is managed by Magic Modules (https://github.com/GoogleCloudPlatform/mag... | hashicorp/terraform-provider-google | google/resource_container_aws_node_pool_generated_test.go | GO | mpl-2.0 | 11,175 |
//go:build !consulent
// +build !consulent
package structs
import (
"hash"
"github.com/hashicorp/consul/acl"
"github.com/hashicorp/consul/types"
)
var emptyEnterpriseMeta = EnterpriseMeta{}
// EnterpriseMeta stub
type EnterpriseMeta struct{}
func (m *EnterpriseMeta) ToEnterprisePolicyMeta() *acl.EnterprisePoli... | hashicorp/consul | agent/structs/structs_oss.go | GO | mpl-2.0 | 5,467 |
var wirelib = (function() {
var canvas, context, width, height, lines = [], cx, cy, cz, fl = 250, interval,
loopCallback, running;
function initWithCanvas(aCanvas) {
canvas = aCanvas;
if(canvas !== undefined) {
width = canvas.width;
height = canvas.heig... | heliogabalo/The-side-of-the-source | Codigo/Games/Efects/3D-wirelib/wirelib.js | JavaScript | mpl-2.0 | 7,221 |
/**
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
*
* 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/.
*/
package org.seedstack.seed.web.int... | adrienlauer/seed | web/core/src/main/java/org/seedstack/seed/web/internal/websocket/SeedClientEndpointConfigurator.java | Java | mpl-2.0 | 837 |
function listener(details) {
let filter = browser.webRequest.filterResponseData(details.requestId);
let decoder = new TextDecoder("utf-8");
let encoder = new TextEncoder();
filter.ondata = event => {
let str = decoder.decode(event.data, {stream: true});
// Just change any instance of Example in ... | mdn/webextensions-examples | http-response/background.js | JavaScript | mpl-2.0 | 667 |
/**
* Created by slanska on 2016-12-30.
*/
///<reference path="../typings/tsd.d.ts"/>
import {TestService} from './helper';
describe('rolesManagement', () =>
{
it('create a new role', (done) =>
{
done();
});
it('delete non referenced role', (done) =>
{
done();
});
it('... | slanska/nauth2 | test/09_RoleManagement.ts | TypeScript | mpl-2.0 | 938 |
/**
* 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/.
*/
var caesar = require("./caesar");
exports["test encrypt/decrypt"] = function(assert) {
/* verify decrypting... | jeffreystarr/plainsight-addon | test/test-caesar.js | JavaScript | mpl-2.0 | 1,791 |
package main
import (
"context"
"fmt"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/i18n/gi18n"
)
func main() {
var (
orderId = 865271654
orderAmount = 99.8
)
fmt.Println(g.I18n().Tf(
gi18n.WithLanguage(context.TODO(), `en`),
`{#OrderPaid}`, orderId, orderAmount,
))
fmt.Println(g.I18n().... | EngineQ/gf | .example/i18n/gi18n/gi18n.go | GO | mpl-2.0 | 417 |
#include <iostream>
#include <cpplogger/cllogger.h>
#include <ccsseqqueue.h>
#include <cctest.h>
#include <functional>
#include <ffoption.h>
using namespace std;
int main(int argc, char** argv)
{
ff::CommandOption *ffop = ff::CommandOption::getInstance();
ffop->parseArgv(argc, argv);
ffop->debugOption()... | araraloren/FunctionFind | src/main.cpp | C++ | mpl-2.0 | 874 |
package main
import (
"fmt"
"testing"
)
var config ConfigFile = ConfigFile{}
var strmCfg = StreamConfig{
"streamName",
"name",
"type",
"url",
"StreamApiKey",
"RecordFormatString",
nil,
nil,
}
/*
* Valid configuration - take timestamp as is
*/
func TestValidateEmtpySrcDest(t *testing.T) {
var attrs = []A... | rem7/pushr | config_validate_timestamp_test.go | GO | mpl-2.0 | 3,623 |
<?php
namespace Honeybee\Infrastructure\Migration;
use Honeybee\Common\Error\RuntimeError;
use Honeybee\Common\Util\PhpClassParser;
use Honeybee\Common\Util\StringToolkit;
use Honeybee\Infrastructure\Config\ConfigInterface;
use Honeybee\ServiceLocatorInterface;
use Symfony\Component\Finder\Finder;
class FileSystemLo... | honeybee/honeybee | src/Infrastructure/Migration/FileSystemLoader.php | PHP | mpl-2.0 | 2,574 |
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Please refer to the README for information about making permanent changes. #
#############################################################################... | taotetek/zchannel | bindings/ruby/lib/zchannel/ffi.rb | Ruby | mpl-2.0 | 1,821 |
/*
* 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/.
*/
package com.volumetricpixels.questy.test;
import org.junit.Assert;
import org.junit.Test;
import com.volumetr... | VolumetricPixels/Questy | src/test/java/com/volumetricpixels/questy/test/EventsTest.java | Java | mpl-2.0 | 1,392 |
/* 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/. */
package etomica.data.meter;
import etomica.data.DataSourceScalar;
import etomica.integrator.IntegratorMD;
import ... | ajschult/etomica | etomica-core/src/main/java/etomica/data/meter/MeterKineticEnergyFromIntegrator.java | Java | mpl-2.0 | 1,108 |
/**
* The title screen.
*/
// SDK imports
import ui.View;
import ui.ImageView;
import ui.TextView as TextView;
import ui.widget.ButtonView as ButtonView;
exports = Class(ui.ImageView, function (supr) {
this.init = function (opts) {
this._config = JSON.parse(CACHE['resources/conf/config.json']);
... | spil-peter-forgacs/weebubble | src/TitleScreen.js | JavaScript | mpl-2.0 | 1,827 |
package org.mozilla.mozstumbler;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;
public class AboutActivity extends Activity {
private static final String ABOUT_PAGE_UR... | 5y/MozStumbler | src/org/mozilla/mozstumbler/AboutActivity.java | Java | mpl-2.0 | 1,423 |
#include "plastiqmethod.h"
#include "plastiqqvboxlayout.h"
#include "widgets/PlastiQQBoxLayout/plastiqqboxlayout.h"
#include <QVBoxLayout>
QHash<QByteArray, PlastiQMethod> PlastiQQVBoxLayout::plastiqConstructors = {
{ "QVBoxLayout()", { "QVBoxLayout", "", "QVBoxLayout*", 0, PlastiQMethod::Public, PlastiQMethod::... | ArtMares/PQStudio | Builder/plastiq/include/widgets/PlastiQQVBoxLayout/plastiqqvboxlayout.cpp | C++ | mpl-2.0 | 4,622 |
package arm
import (
"context"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer/builder/azure/common/constants"
)
type StepSetCertificate struct {
config *Config
say func(message string)
error func(e error)
}
func Ne... | ricardclau/packer | builder/azure/arm/step_set_certificate.go | GO | mpl-2.0 | 941 |
#include "stdafx.h"
#include "Map.h"
#include "ShapeEditor.h"
#include "EditorHelper.h"
#include "MeasuringHelper.h"
// *******************************************************
// OnSetCursor()
// *******************************************************
BOOL CMapView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UIN... | MapWindow/MapWinGIS | src/Control/Map_Cursors.cpp | C++ | mpl-2.0 | 5,919 |
window.onload = function() {
// We are the parent. Let's load the test.
if (parent == this || location.search.indexOf("worklet_iframe") == -1) {
SimpleTest.waitForExplicitFinish();
configureTest().then(() => {
var iframe = document.createElement('iframe');
iframe.src = location.href + "?worklet... | Yukarumya/Yukarum-Redfoxes | dom/worklet/tests/common.js | JavaScript | mpl-2.0 | 604 |
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Magic Modules and manual
// ... | terraform-providers/terraform-provider-google | google/resource_compute_router_nat_sweeper_test.go | GO | mpl-2.0 | 3,727 |
package openstack
import (
"context"
"fmt"
imageservice "github.com/gophercloud/gophercloud/openstack/imageservice/v2/images"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
)
type stepUpdateImageVisibility struct{}
func (s *stepUpdateImageVisibility... | ricardclau/packer | builder/openstack/step_update_image_visibility.go | GO | mpl-2.0 | 1,429 |
package common
import (
"context"
"fmt"
"log"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
)
// This step suppresses any messages that VMware product might show.
type StepSuppressMessages struct{}
func (s *StepSuppressMessages) Run(ctx context.Con... | ricardclau/packer | builder/vmware/common/step_suppress_messages.go | GO | mpl-2.0 | 846 |
package org.playorm.nio.test;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.logging.Logger;
import javax.net.ssl.SSLEngine;
import junit.framework.TestCase;
import org.playorm.nio.api.deprecated.ChannelServiceFactory;
import org.playorm.nio.api.libs.AsyncSSLEngine;
import org.playorm.nio.... | deanhiller/channelmanager2 | input/javasrc/org/playorm/nio/test/TestNewAsynchSSLEngine2.java | Java | mpl-2.0 | 15,075 |
/*此标记表明此文件可被设计器更新,如果不允许此操作,请删除此行代码.design by:agebull designer date:2019/4/10 10:44:52*/
#region
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Lin... | agebullhu/AgebullDesigner | demo/src/HPC/HpcUser/Model/Business/User/UserBusinessLogic.cs | C# | mpl-2.0 | 2,573 |
/*global define*/
define('app/reload-addon-reloaded-per-user', ['lodash', 'TelemetryPromises', 'DevToolsMetrics', 'LatestVersions', 'FIREFOX_RELEASES'],
function(_, T, DevToolsMetrics, LatestVersions, FIREFOX_RELEASES) {
var metric = 'DEVTOOLS_RELOAD_ADDON_RELOAD_PER_USER_FLAG';
var options = { sanitized: false };... | clarkbw/devtools-metrics | js/app/reload-addon-reloaded-per-user.js | JavaScript | mpl-2.0 | 1,694 |
package services.ntr.pms.model.history;
import java.sql.Timestamp;
import services.ntr.pms.service.information.Nameable;
public class TransactionHistory implements Nameable{
private int transactionId;
private int amount;
private String type;
private long payoutTime;
private long payerAccountId;
private String... | NYPD/pms | src/services/ntr/pms/model/history/TransactionHistory.java | Java | mpl-2.0 | 1,929 |
class A(object):
def something(self):
return 3 | caterinaurban/Typpete | typpete/unittests/inference/explicit_object_superclass.py | Python | mpl-2.0 | 58 |
package aws
import (
"errors"
"fmt"
"log"
"reflect"
"regexp"
"sort"
"strings"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/autoscaling"
"github.com/aws/aws-sdk-go/service/elbv2"
"github.com/hashicorp/terraform/helper/acctest"
... | nbaztec/terraform-provider-aws | aws/resource_aws_autoscaling_group_test.go | GO | mpl-2.0 | 65,747 |
/**
* Input Field for JSON-schema type:object.
*
* 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/.
*
* This Source Code includes react-jsonschema-form
* released u... | mozilla-iot/gateway | static/js/schema-form/object-field.js | JavaScript | mpl-2.0 | 4,632 |
require 'test_helper'
class ApplicationSettingTest < ActiveSupport::TestCase
teardown do
ApplicationSetting.update_settings ApplicationSetting.defaults
ApplicationSetting.apply!
end
describe "class methods" do
describe "::update_settings" do
it "should update only known params" do
Ap... | rideconnection/clearinghouse | test/unit/application_setting_test.rb | Ruby | agpl-3.0 | 2,462 |
# -*- coding: utf-8 -*-
# (c) 2015 Incaser Informatica S.L. - Sergio Teruel
# (c) 2015 Incaser Informatica S.L. - Carlos Dauden
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import models, fields, api
from openerp.tools.float_utils import float_round
import decimal
tipo_articulo = {'pr... | incaser/incaser-odoo-addons | export_sagelc/models/account_invoice.py | Python | agpl-3.0 | 10,115 |
/**
*/
package com.euclideanspace.casl.editor;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Var Decl</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <... | martinbaker/caslEdit | com.euclideanspace.casl/src-gen/com/euclideanspace/casl/editor/VarDecl.java | Java | agpl-3.0 | 3,054 |
/* This file is part of VoltDB.
* Copyright (C) 2008-2018 VoltDB 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 of the
* License, or (at your option) any la... | simonzhangsm/voltdb | src/frontend/org/voltdb/compiler/VoltCompilerReader.java | Java | agpl-3.0 | 1,169 |
/**
* Revenue Settlement and Sharing System GE
* Copyright (C) 2011-2014, Javier Lucio - lucio@tid.es
* Telefonica Investigacion y Desarrollo, S.A.
*
* 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 So... | telefonicaid/fiware-rss | rss-core/rss-dao/src/test/java/es/tid/fiware/rss/dao/impl/test/CountryDaoImplTest.java | Java | agpl-3.0 | 4,005 |
/*
* Ktunaxa Referral Management System.
*
* Copyright (C) see version control system
*
* 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 of the License, or
* (at y... | ktunaxa/rms | map/src/main/java/org/ktunaxa/referral/server/service/InMemoryCmisService.java | Java | agpl-3.0 | 5,229 |
from .sources import TestSources
__all__ = ["TestSources"]
| kaini/newslist | server/newslist/tests/__init__.py | Python | agpl-3.0 | 60 |
/*
All emon_widgets code is released under the GNU General Public License v3.
See COPYRIGHT.txt and LICENSE.txt.
Part of the OpenEnergyMonitor project:
http://openenergymonitor.org
Author: Trystan Lea: trystan.lea@googlemail.com
If you have any questions please get in touch, try the forums here:
... | thaipowertech/emoncms | Modules/vis/widget/vis_render.js | JavaScript | agpl-3.0 | 9,506 |
<?php
/*
* @author Anakeen
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
* @package FDL
*/
/**
* Modify family preferences
*
* @author Anakeen 2007
* @version $Id: generic_modprefs.php,v 1.2 2007/05/04 16:11:40 eric Exp $
* @license http://www.fsf.org/licensing... | Eric-Brison/dynacase-core | Action/Generic/generic_modprefs.php | PHP | agpl-3.0 | 2,008 |
/**
* Copyright (C) 2001-2020 by RapidMiner and the contributors
*
* Complete list of developers available at our web site:
*
* http://rapidminer.com
*
* 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 ... | rapidminer/rapidminer-studio | src/main/java/com/rapidminer/example/AttributeIterator.java | Java | agpl-3.0 | 2,654 |
/*
* Copyright (C) 2000 - 2021 Silverpeas
*
* 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 of the
* License, or (at your option) any later version.
*
* As a spec... | SilverDav/Silverpeas-Core | core-library/src/main/java/org/silverpeas/core/contribution/attachment/util/AttachmentSettings.java | Java | agpl-3.0 | 4,900 |
from django.apps import AppConfig
class ClassifConfig(AppConfig):
name = 'classif'
| bricaud/wevia | classif/apps.py | Python | agpl-3.0 | 89 |
const passport = require('../helpers/auth/passport_factory');
const logger = require('../../lib/logger');
const adminChecker = require('../helpers/auth/request_admin_checker');
const oauthConfig = require('../../config/oauth/oauth_config.js');
module.exports.logout = function(req, res) {
req.logout();
res.status(2... | cised-ca/social-enterprise-directory | api/controllers/account_controller.js | JavaScript | agpl-3.0 | 2,409 |
<?php
/**
* Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file. */
namespace Test\Files;
use OC\Cache\CappedMemoryCache;
use OC\Files\Cache\Watcher;
use OC\Files\Filesystem;
use OC\Files\Stora... | IljaN/core | tests/lib/Files/ViewTest.php | PHP | agpl-3.0 | 80,800 |
class CreateAddressGroups < ActiveRecord::Migration
def change
create_table :address_groups do |t|
t.string :name
t.timestamps
end
end
end
| camsys/ridepilot | db/migrate/20170625200226_create_address_groups.rb | Ruby | agpl-3.0 | 164 |
/*
* ProActive Parallel Suite(TM):
* The Open Source library for parallel and distributed
* Workflows & Scheduling, Orchestration, Cloud Automation
* and Big Data Analysis on Enterprise Grids & Clouds.
*
* Copyright (c) 2007 - 2017 ActiveEon
* Contact: contact@activeeon.com
*
* This library is free software: y... | ShatalovYaroslav/scheduling | scheduler/scheduler-api/src/test/java/org/ow2/proactive/scheduler/common/job/factories/spi/model/factory/CatalogObjectParserValidatorTest.java | Java | agpl-3.0 | 2,583 |
/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#include <cmath>
#include "BrokenExpDiskGeo... | SKIRT/SKIRT | SKIRTcore/BrokenExpDiskGeometry.cpp | C++ | agpl-3.0 | 5,220 |
/*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2017 Kuali, 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 Foundat... | quikkian-ua-devops/will-financials | kfs-kns/src/main/java/org/kuali/kfs/krad/datadictionary/validation/constraint/CommonLookup.java | Java | agpl-3.0 | 2,587 |
/*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2017 Kuali, 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 Foundat... | quikkian-ua-devops/will-financials | kfs-purap/src/test/java/org/kuali/kfs/module/purap/fixture/RequisitionAccountingLineFixture.java | Java | agpl-3.0 | 6,153 |
// Copyright 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package state
import (
"fmt"
"sort"
"time"
"github.com/juju/errors"
"github.com/juju/loggo"
"github.com/juju/names"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
gc "gopkg.in/check.v1"
"gopkg.in/juj... | cloud-green/juju | state/allwatcher_internal_test.go | GO | agpl-3.0 | 96,772 |
# -*- coding: utf-8 -*-
##############################################################################
#
# Product GTIN module for Odoo
# Copyright (C) 2004-2011 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2011 Camptocamp (<http://www.camptocamp.at>)
#
# This program is free software: you can redistr... | cgstudiomap/cgstudiomap | main/parts/product-attribute/product_gtin/product_gtin.py | Python | agpl-3.0 | 5,465 |
import { combineReducers } from 'redux'
const FETCH_ENTRIES = 'FETCH_ENTRIES'
const RECEIVE_ENTRIES = 'RECEIVE_ENTRIES'
const RECEIVE_MORE_ENTRIES = 'RECEIVE_MORE_ENTRIES'
const RECEIVE_ERROR = 'RECEIVE_ERROR'
const INSERT_ENTRIES = 'INSERT_ENTRIES'
const UPDATE_ENTRIES = 'UPDATE_ENTRIES'
const DELETE_ENTRY = 'DELETE_... | enguerran/cozy-files-v3 | src/photos/ducks/lists/index.js | JavaScript | agpl-3.0 | 5,918 |
class API::Logger
def initialize(app)
@app = app
end
def call(env)
payload = {
remote_addr: env['REMOTE_ADDR'],
request_method: env['REQUEST_METHOD'],
request_path: env['PATH_INFO'],
request_query: env['QUERY_STRING'],
x_organization: env['HTTP_X_ORGANIZATION']
}
... | Loos/bike_index | app/controllers/api/logger.rb | Ruby | agpl-3.0 | 745 |
import {
DataSourcePluginOptionsEditorProps,
onUpdateDatasourceJsonDataOptionChecked,
SelectableValue,
updateDatasourcePluginJsonDataOption,
} from '@grafana/data';
import { EventsWithValidation, InlineFormLabel, LegacyForms, regexValidation } from '@grafana/ui';
import React, { SyntheticEvent } from 'react';
i... | grafana/grafana | public/app/plugins/datasource/prometheus/configuration/PromSettings.tsx | TypeScript | agpl-3.0 | 5,824 |
/*=====================================================================
PIXHAWK Micro Air Vehicle Flying Robotics Toolkit
(c) 2009, 2010 PIXHAWK PROJECT <http://pixhawk.ethz.ch>
This file is part of the PIXHAWK project
PIXHAWK is free software: you can redistribute it and/or modify
it under the terms of th... | josephlewis42/UDenverQGC | src/ui/WaypointList.cc | C++ | agpl-3.0 | 20,720 |
<?php
// created: 2013-02-07 16:25:26
$sugar_config = array (
'admin_access_control' => false,
'admin_export_only' => false,
'cache_dir' => 'cache/',
'calculate_response_time' => true,
'calendar' =>
array (
'default_view' => 'week',
'show_calls_by_default' => true,
'show_tasks_by_default' => tr... | harish-patel/rrd | config.php | PHP | agpl-3.0 | 9,128 |
<?php
/**
* Data class for happenings
*
* PHP version 5
*
* @category Data
* @package StatusNet
* @author Evan Prodromou <evan@status.net>
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*
* StatusNet - the distributed open-source microblogging tool
* Cop... | gayathri6/stepstream_salute | plugins/Event/UserPoints.php | PHP | agpl-3.0 | 3,036 |
<?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2013 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of t... | jhuymaier/zurmo | app/protected/modules/zurmo/models/CurrencyValue.php | PHP | agpl-3.0 | 6,523 |
/*
* Copyright (C) 2015 DECOIT GmbH
*
* 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 of the License, or
* (at your option) any later version.
*
* This program i... | decoit/siem-gui-imonitor | src/main/java/de/decoit/siemgui/domain/rules/CorrelationRule.java | Java | agpl-3.0 | 1,269 |
(function () {
'use strict';
var WindowSize = Class.create({
width: function()
{
var myWidth = 0;
if (typeof(window.innerWidth) == 'number')
{
//Non-IE
myWidth = window.innerWidth;
}
else if (documen... | boa-project/boa | src/boa/plugins/gui.ajax/res/js/core/DateTimePicker.class.js | JavaScript | agpl-3.0 | 113,199 |
importPackage(Packages.tools);
var returnTo = new Array(103000100, 103000310);
var rideTo = new Array(103000310, 103000100);
var trainRide = new Array(103000301, 103000302);
var myRide;
var returnMap;
var exitMap;
var map;
var onRide;
//Time Setting is in millisecond
var rideTime = 10 * 1000;
function init() {
r... | ronancpl/MapleSolaxiaV2 | scripts/event/KerningTrain.js | JavaScript | agpl-3.0 | 2,133 |
// TriangleCanvas.js
import React from 'react';
import Trianglify from 'trianglify';
import './TriangleCanvas.scss';
/**
Canvas with Trianglify styling applied, equal in size to current window,
can be used as a sweet background.
Will automatically size to window's width and height.
@prop cellSize: cell_size optio... | uclaradio/uclaradio | client/react/frontpage/components/TriangleCanvas.js | JavaScript | agpl-3.0 | 1,331 |
<?php
namespace App\Services\Immoware24;
use App\Models\RentDefinition;
use Carbon\Carbon;
use Exception;
class RentalContractsMapper extends Mapper
{
protected $tenants;
protected $phones;
protected $faxs;
protected $emails;
protected $SEPAMandate;
protected $unit;
protected $start, $e... | BerlusGmbH/Berlussimo | app/Services/Immoware24/RentalContractsMapper.php | PHP | agpl-3.0 | 8,701 |
OC.L10N.register(
"workflowengine",
{
"Saved" : "Bewaard",
"Saving failed:" : "Opslaan mislukt:",
"File MIME type" : "Mimetype bestand",
"is" : "is",
"is not" : "is niet",
"matches" : "komt overeen",
"does not match" : "komt niet overeen",
"Example: {placeholder}" : "Bijvoorbeeld... | pixelipo/server | apps/workflowengine/l10n/nl.js | JavaScript | agpl-3.0 | 3,565 |
/*
* PHEX - The pure-java Gnutella-servent.
* Copyright (C) 2001 - 2007 Phex Development Group
*
* 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 the License, or
*... | deepstupid/phex | src/main/java/phex/http/Range.java | Java | agpl-3.0 | 4,812 |
using System.Collections.Generic;
namespace galaxy.core.misc.figuredata.types
{
class FigureSet
{
public SetType Type { get; set; }
public int PalletId { get; set; }
private Dictionary<int, Set> _sets;
public FigureSet(SetType type, int palletId)
{
this.Ty... | helloimcasper/GalaxyEmulator | galaxy.core/misc/figuredata/types/FigureSet.cs | C# | agpl-3.0 | 583 |
/*
* Copyright (c) 2012 - 2020 Splice Machine, Inc.
*
* This file is part of Splice Machine.
* Splice Machine 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, or (at your option) ... | splicemachine/spliceengine | splice_access_api/src/main/java/com/splicemachine/access/api/PartitionCreator.java | Java | agpl-3.0 | 2,043 |
<?php
/**
* zCorrecteurs.fr est le logiciel qui fait fonctionner www.zcorrecteurs.fr
*
* Copyright (C) 2012-2019 Corrigraphie
*
* 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, eit... | zcorrecteurs/monolith-www | src/Zco/Bundle/ContentBundle/Controller/SearchController.php | PHP | agpl-3.0 | 6,183 |
/*
* _ _ _
* | | | | | |
* | | __ _| |__ ___ ___ __ _| |_ Labcoat (R)
* | |/ _` | '_ \ / __/ _ \ / _` | __| Powerful development environment for Quirrel.
* | | (_| | |_) | (_| (_) | (_| | |_ Copyright (C) 2010 - 2013... | precog/labcoat-legacy | js/ace/model/editor.js | JavaScript | agpl-3.0 | 3,492 |
/***************************************************************************
helpaboutform.cpp - description
-------------------
begin : Tue Apr 22 2003
copyright : (C) 2003 by Lalescu Liviu
email : Please see ... | rodolforg/fet | src/interface/helpaboutform.cpp | C++ | agpl-3.0 | 41,583 |
/*
* Asqatasun - Automated webpage assessment
* Copyright (C) 2008-2019 Asqatasun.org
*
* 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 of the
* License, or (at y... | dzc34/Asqatasun | rules/rules-rgaa3.0/src/test/java/org/asqatasun/rules/rgaa30/Rgaa30Rule120302Test.java | Java | agpl-3.0 | 3,319 |
import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellIcon } from 'interface';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { Thres... | anom0ly/WoWAnalyzer | analysis/monkbrewmaster/src/modules/spells/BlackoutCombo.js | JavaScript | agpl-3.0 | 4,812 |
/*
* Claudia Project
* http://claudia.morfeo-project.org
*
* (C) Copyright 2010 Telefonica Investigacion y Desarrollo
* S.A.Unipersonal (Telefonica I+D)
*
* See CREDITS file for info about members and contributors.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Affe... | StratusLab/claudia | clotho/src/main/java/com/telefonica/claudia/slm/deployment/hwItems/NIC.java | Java | agpl-3.0 | 4,281 |
from LiSE import Engine
from LiSE.examples import kobold
from .util import ELiDEAppTest, window_with_widget, idle_until
class TestPythonEditor(ELiDEAppTest):
def setUp(self):
super().setUp()
with Engine(self.prefix) as eng:
kobold.inittest(eng)
def _get_actions_box(self):
... | LogicalDash/LiSE | ELiDE/ELiDE/tests/test_python_editor.py | Python | agpl-3.0 | 1,944 |
$(document).ready(function () {
var pathArray = window.location.pathname.split( '/' );
var targetname = pathArray[pathArray.length -1];
$('#targetloglist').DataTable({
'paging' : true,
'lengthChange': false,
'searching' : true,
'ordering' : true,
'order... | LibrIT/passhport | passhweb/app/static/librit/scripts/target_lastconnections.js | JavaScript | agpl-3.0 | 682 |
// Copyright (c) 2012, 2013 Pierre MOULON.
// 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/.
#include <cstdlib>
#include "openMVG/sfm/sfm.hpp"
#include "openMVG/sys... | rogermm14/rec3D | modifications_openmvg/main_IncrementalSfM.cpp | C++ | agpl-3.0 | 14,201 |
<?php
/**
* plentymarkets shopware connector
* Copyright © 2013 plentymarkets GmbH
*
* 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 Li... | k-30/plentymarkets-shopware-connector | Components/Soap/Models/PlentySoapResponse/AddItemAttributeValueSets.php | PHP | agpl-3.0 | 1,498 |
# -*- coding: utf-8 -*-
import minimongo
import osm
import pymongo.collection
import logging
import re
import stitch
def is_area(way):
return len(way.nodes)\
and way.nodes[0] == way.nodes[-1]\
and ('area' in way.tags and way.tags['area'] == 'yes'\
or (not 'highway' in way.tags\
... | larroy/osmtransform | planet/__init__.py | Python | agpl-3.0 | 7,567 |
<?php
/*
* Fusio
* A web-application to create dynamically RESTful APIs
*
* Copyright (C) 2015-2020 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* 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 F... | k42b3/fusio-impl | src/Event/Plan/Contract/UpdatedEvent.php | PHP | agpl-3.0 | 2,052 |
# Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 The Collaborative Software Foundation
#
# This file is part of TriSano.
#
# TriSano 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 versio... | JayBoyer/new-trisano | webapp/features/enhanced_step_definitions/event_encounter_delete_steps.rb | Ruby | agpl-3.0 | 1,391 |
<?php
/*
* FUPS: Forum user-post scraper. An extensible PHP framework for scraping and
* outputting the posts of a specified user from a specified forum/board
* running supported forum software. Can be run as either a web app or a
* commandline script.
*
* Copyright (C) 2013-2015 Laird Shaw.
*
* This program ... | ezeql/fups | common.php | PHP | agpl-3.0 | 15,661 |
<?php
//*****************************************************************************
// This will allow occurrences of a database table to be deleted.
// The identity of the selected occurrence(s) is passed from the previous screen.
//*****************************************************************************
$tabl... | apmuthu/radicore | radicore/menu/mnu_role(del1).php | PHP | agpl-3.0 | 526 |
<?php
include_once "lib/functions.php";
include_once "colpr-config.php";
if (!isset($_SESSION["usuario"])){
header( 'Location: login.php' );
}else{
$user=autentificado();
// Propuestas en orden cronológico del usuario
$consultaPropuestasUsuario =
'SELECT u.nombre, u.apellidos, p.id, p.titulo, p.comentarios, p.sum... | mperezfr/collaborative-documents | perfil.php | PHP | agpl-3.0 | 1,691 |
# -*- coding: utf-8 -*-
#
#
# Copyright 2015 Camptocamp SA
# Author: Alexandre Fayolle
#
# 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 of the
# Licens... | jorsea/vertical-ngo | logistic_order_donation_budget/model/sale_order.py | Python | agpl-3.0 | 1,300 |
/*
* Copyright 2012 McEvoy Software Ltd.
*
* 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 of the License, or
* (at your option) any later version.
* This p... | FullMetal210/milton2 | milton-server/src/main/java/io/milton/http/ExistingEntityHandler.java | Java | agpl-3.0 | 1,310 |
/*
* Asqatasun - Automated webpage assessment
* Copyright (C) 2008-2019 Asqatasun.org
*
* 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 of the
* License, or (at y... | dzc34/Asqatasun | rules/rules-accessiweb2.2/src/test/java/org/asqatasun/rules/accessiweb22/Aw22Rule04012Test.java | Java | agpl-3.0 | 3,499 |
from fabric.api import run, cd, env
from fabric import state
DISTANT_PATH = '/www-data/click-and-deploy'
def pull():
with cd(DISTANT_PATH):
run('git pull')
def restart_services():
run('sudo supervisorctl restart click-and-deploy')
def deploy():
pull()
restart_services()
| Cerkinfo/click-and-deploy | apps/recipies/self.py | Python | agpl-3.0 | 299 |
"""Offer Utility Methods. """
import logging
import string # pylint: disable=W0402
from decimal import Decimal
from urllib.parse import urlencode
import bleach
import waffle
from django.conf import settings
from django.template.loader import render_to_string
from django.utils.translation import ugettext as _
from e... | eduNEXT/edunext-ecommerce | ecommerce/extensions/offer/utils.py | Python | agpl-3.0 | 12,022 |
# -*- coding: utf-8 -*-
##############################################################################
#
# Author: Alessandro Camilli (a.camilli@yahoo.it)
# Copyright (C) 2014
# Associazione OpenERP Italia (<http://www.openerp-italia.org>)
#
# This program is free software: you can redistribute it and/o... | dhp-denero/LibrERP | l10n_it_spesometro/spesometro.py | Python | agpl-3.0 | 75,593 |
<?php
/**
* Database Table Schema Updater class
*
* @author GamiPress <contact@gamipress.com>, Ruben Garcia <rubengcdev@gamil.com>
*
* @since 1.0.0
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'CT_DataBase_Schema_Updater' ) ) :
class CT_DataBase_Schema_Updater {
... | rubengc/GamiPress | libraries/ct/includes/class-ct-database-schema-updater.php | PHP | agpl-3.0 | 11,917 |
# coding: utf-8
import sys
sys.path.append(".")
from workshop.en.i import *
DISCLOSE_SECRET_WORD = TRUE
"""
Some variables are now handled by the student. Names are free.
"""
"""
Can be omitted, as 'reset(…)' will be call before the variables
will be used.
"""
goodGuesses = ""
errorsAmount = 0
... | epeios-q37/epeios | other/exercises/Hangman/en/i.py | Python | agpl-3.0 | 1,604 |
<?php
namespace App\Repositories;
use App\Models\Leave;
use InfyOm\Generator\Common\BaseRepository;
class LeaveRepository extends BaseRepository
{
/**
* @var array
*/
protected $fieldSearchable = [
'start_date',
'end_date',
'approval_id',
'status',
'created_a... | kusumandaru/pa53 | app/Repositories/LeaveRepository.php | PHP | agpl-3.0 | 468 |
<?php
/*
------------------------------------------------------------------------
FusionInventory
Copyright (C) 2010-2013 by the FusionInventory Development Team.
http://www.fusioninventory.org/ http://forge.fusioninventory.org/
------------------------------------------------------------------------... | dethegeek/fusioninventory-for-glpi | inc/iprange_configsecurity.class.php | PHP | agpl-3.0 | 6,066 |
/*
* TeleStax, Open Source Cloud Communications Copyright 2012.
* and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser ... | RestComm/jss7 | map/map-api/src/main/java/org/restcomm/protocols/ss7/map/api/service/callhandling/RUFOutcome.java | Java | agpl-3.0 | 2,642 |