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 |
|---|---|---|---|---|---|
package com.x.cms.assemble.control.jaxrs.viewfieldconfig;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import javax.servlet.http.HttpServletRequest;
import com.x.base.core.container.EntityManagerContainer;
import com.x.base.core.container.factory.EntityManagerContainerFactory;
import... | o2oa/o2oa | o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewfieldconfig/ActionListByViewId.java | Java | agpl-3.0 | 2,946 |
<section id="principal" class="drm">
<div id="application_drm">
<?php if (!$isTeledeclarationMode): ?>
<?php include_partial('drm/header', array('drm' => $drm)); ?>
<ul id="recap_infos_header">
<li>
<label>Nom de l'opérateur : </label><?php echo $d... | 24eme/acVinDRMPlugin | modules/drm_validation/templates/updateEtablissementSuccess.php | PHP | agpl-3.0 | 4,662 |
/**
* Copyright (C) 2013-2014 Spark Labs, Inc. All rights reserved. - https://www.spark.io/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program ... | SreejitS/spark-server | views/api_v1.js | JavaScript | agpl-3.0 | 18,143 |
# frozen_string_literal: true
module Decidim
module Meetings
# This controller is the abstract class from which all other controllers of
# this engine inherit.
#
# Note that it inherits from `Decidim::Components::BaseController`, which
# override its layout and provide all kinds of useful methods... | decidim/decidim | decidim-meetings/app/controllers/decidim/meetings/directory/application_controller.rb | Ruby | agpl-3.0 | 501 |
class TutorialProgressesController < ApplicationController
before_filter :admin_required
# GET /tutorial_progresses
# GET /tutorial_progresses.json
def index
@tutorial_progresses = TutorialProgress.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @tutorial_... | zmdroid/Airesis | app/controllers/tutorial_progresses_controller.rb | Ruby | agpl-3.0 | 2,464 |
/*
* SessionRnwWeave.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public Licen... | nvoron23/rstudio | src/cpp/session/modules/tex/SessionRnwWeave.hpp | C++ | agpl-3.0 | 2,449 |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... | ronancpl/MapleSolaxiaV2 | src/net/server/channel/handlers/UseItemHandler.java | Java | agpl-3.0 | 4,510 |
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.phpfusion.com/
+--------------------------------------------------------+
| Filename: gallery/photo_submit.php
| Author: Core Development Team (coredevs@phpfusion.com)
+--... | php-fusion/PHP-Fusion | infusions/gallery/photo_submit.php | PHP | agpl-3.0 | 7,592 |
/**
* Copyright (C) 2000 - 2011 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 spe... | stephaneperry/Silverpeas-Core | war-core/src/main/java/com/silverpeas/socialNetwork/myProfil/control/SocialNetworkService.java | Java | agpl-3.0 | 6,341 |
class MH_Intel
{
idd=-1;
fadein = 0;
duration = 1e+1000;
fadeout = 0;
movingEnable=1;
name="IntelDisplay";
enableSimulation=1;
onLoad="uiNamespace setVariable [""mh_inteldialog"", _this select 0]";
onUnLoad="uiNamespace setVariable [""mh_inteldialog"", nil]";
class controls
... | mtusnio/Manhunt | ManhuntUI.hpp | C++ | agpl-3.0 | 751 |
import loadPolyfills from '../mastodon/load_polyfills';
import ready from '../mastodon/ready';
window.addEventListener('message', e => {
const data = e.data || {};
if (!window.parent || data.type !== 'setHeight') {
return;
}
ready(() => {
window.parent.postMessage({
type: 'setHeight',
id:... | WitchesTown/mastodon | app/javascript/packs/public.js | JavaScript | agpl-3.0 | 4,984 |
<?php
use Maslosoft\EmbeDi\EmbeDi;
use Maslosoft\Ilmatar\Widgets\Interfaces\ButtonInterface;
use Maslosoft\Ilmatar\Widgets\Menu\ActionButton;
use Maslosoft\Ilmatar\Widgets\Menu\DropDownButton;
use Maslosoft\Ilmatar\Widgets\Menu\Toolbar;
?>
<?php
/* @var $this Toolbar */
?>
<?php if ($this->floating): ?>
<div class="o... | Maslosoft/IlmatarWidgets | src/Menu/views/toolbar.php | PHP | agpl-3.0 | 1,672 |
'use strict';
define(['bitcoinjs-lib', 'crypto-js', 'sjcl'],
function(Bitcoin, CryptoJS, sjcl) {
function TLCrypto() {
}
TLCrypto.wordsToBytes = function(words) {
var bytes = []
for (var b = 0; b < words.length * 32; b += 8) {
bytes.push((words[b >>... | arcbit/arcbit-web | src/js/model/TLCrypto.js | JavaScript | agpl-3.0 | 1,918 |
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | kaltura/KalturaGeneratedAPIClientsAndroid | KalturaClient/src/main/java/com/kaltura/client/types/WatchLaterUserEntry.java | Java | agpl-3.0 | 2,657 |
/*global plupload */
/*global qiniu */
function FileProgress(file, targetID) {
this.fileProgressID = file.id;
this.file = file;
this.opacity = 100;
this.height = 0;
this.fileProgressWrapper = $('#' + this.fileProgressID);
if (!this.fileProgressWrapper.length) {
// <div class="... | edxzw/edx-platform | cms/static/cms/js/ui.js | JavaScript | agpl-3.0 | 16,012 |
OC.L10N.register(
"settings",
{
"Enabled" : "Aktiviert",
"Not enabled" : "Nicht aktiviert",
"Wrong password" : "Falsches Passwort",
"Saved" : "Gespeichert",
"No user supplied" : "Kein Benutzer angegeben",
"Unable to change password" : "Passwort konnte nicht geändert werden",
"Authent... | whitekiba/server | settings/l10n/de_DE.js | JavaScript | agpl-3.0 | 36,870 |
<?php
namespace SPHERE\Application\People\Relationship;
use SPHERE\Application\Corporation\Company\Company;
use SPHERE\Application\Corporation\Company\Service\Entity\TblCompany;
use SPHERE\Application\People\Meta\Common\Common;
use SPHERE\Application\People\Person\Person;
use SPHERE\Application\People\Person\Service\E... | hannesk001/SPHERE-Framework | Application/People/Relationship/Service.php | PHP | agpl-3.0 | 20,135 |
class ResetSearch025 < ActiveRecord::Migration[5.0]
def change
UserIndex.reset!
end
end
| myplaceonline/myplaceonline_rails | db/migrate/20170205065206_reset_search025.rb | Ruby | agpl-3.0 | 96 |
/**
* Copyright (C) 2013 The Language Archive, Max Planck Institute for
* Psycholinguistics
*
* 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 (at your o... | TheLanguageArchive/YAMS | web/src/main/java/nl/mpi/yams/client/ui/SearchWidgetsPanel.java | Java | agpl-3.0 | 11,217 |
package com.welaika.menadi.db;
import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import com.activeandroid.query.Select;
import java.util.ArrayList;
import java.util.List;
@Table(name = "RelatorsEvents")
public class RelatorEvent extends Model {
... | welaika/menadi | Menadi/src/main/java/com/welaika/menadi/db/RelatorEvent.java | Java | agpl-3.0 | 1,447 |
#!/usr/bin/python3
###### Памятка по статусам #####
# OK -- сервис онлайн, обрабатывает запросы, получает и отдает флаги.
# MUMBLE -- сервис онлайн, но некорректно работает
# CORRUPT -- сервис онлайн, но установленные флаги невозможно получить.
# DOWN -- сервис оффлайн.
from sys import argv
from socket import socket, ... | jollheef/tin_foil_hat | checker/python-api/dummy_checker.py | Python | agpl-3.0 | 4,904 |
/*
* StuReSy - Student Response System
* Copyright (C) 2012-2014 StuReSy-Team
*
* 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 opti... | sturesy/client | src/src-main/sturesy/util/Version.java | Java | agpl-3.0 | 1,852 |
<?
/**
* Nooku Framework - http://www.nooku.org
*
* @copyright Copyright (C) 2011 - 2017 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license GNU AGPLv3 <https://www.gnu.org/licenses/agpl.html>
* @link https://github.com/timble/openpolice-platform
*/
?>
<div class="scopebar">
<div class="scop... | timble/openpolice-platform | application/admin/component/categories/view/categories/templates/default_scopebar.html.php | PHP | agpl-3.0 | 1,269 |
# Fat Free CRM
# Copyright (C) 2008-2011 by Michael Dvorkin
#
# 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.
#
#... | nazeels/fat_free | app/inputs/date_pair_input.rb | Ruby | agpl-3.0 | 2,789 |
package edu.arizona.kfs.sys.dataaccess.impl;
import java.util.HashMap;
import java.util.Map;
import org.kuali.kfs.coreservice.framework.parameter.ParameterService;
import edu.arizona.kfs.sys.batch.BuildingImportStep;
import edu.arizona.kfs.sys.dataaccess.BuildingAndRoomImportsDao;
public class BuildingAndRoomImport... | quikkian-ua-devops/will-financials | kfs-core/src/main/java/edu/arizona/kfs/sys/dataaccess/impl/BuildingAndRoomImportsDaoOjb.java | Java | agpl-3.0 | 1,215 |
from django.db import models
from submissions.models.utils import strip_punc
from django.contrib.auth.models import User
from submissions.models.album import Album
from django.contrib.contenttypes.models import ContentType
class Track(models.Model):
"""
A single track(song) for an album.
"""
URL_CHOICE... | tsoporan/tehorng | submissions/models/track.py | Python | agpl-3.0 | 1,835 |
import { Pipe, PipeTransform } from '@angular/core';
import { AppLocalization } from '@kaltura-ng/mc-shared';
import { KalturaMediaType } from 'kaltura-ngx-client';
import { KalturaMediaEntry } from 'kaltura-ngx-client';
import { KalturaExternalMediaEntry } from 'kaltura-ngx-client';
@Pipe({ name: 'entryDuration' })
e... | kaltura/kmc-ng | src/shared/content-shared/entries/pipes/entry-duration.pipe.ts | TypeScript | agpl-3.0 | 1,191 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Deck'
db.create_table(u'djecks_anki_deck', (
... | bdunnette/djecks_anki | migrations/0002_auto__add_deck.py | Python | agpl-3.0 | 1,388 |
<?php
# FFMPEG SETTING 404_pal
$vb = '960k'; # video rate kbs
$s = '540x404'; # scale
$g = 75; # keyframes interval (gob)
$vcodec = 'libx264'; # default libx264
$progresivo = "-vf yadif"; # desentrelazar
$gamma_y = "0.97"; # correccion de luminancia
$gamma_u = "1.01"; # correccion de B-y
$g... | renderpci/dedalo-4 | lib/dedalo/media_engine/lib/ffmpeg_settings/404_pal_4x3.php | PHP | agpl-3.0 | 752 |
/*
* ################################################################
*
* 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
... | nmpgaspar/PainlessProActive | src/Extensions/org/objectweb/proactive/extensions/calcium/system/ProxyFile.java | Java | agpl-3.0 | 11,732 |
from bottle import request
class BottleHelper:
"""map Apify methods to Bottle magic
and other helpers"""
def __init__(self, app):
self.app = app
def route(self, path, function, methods=['GET']):
self.app.route(path, method=methods, callback=function)
def request(self, items=None)... | abondis/api-hi | api_hi/helpers/bottle.py | Python | agpl-3.0 | 816 |
<?php
namespace Minds\Core\Payments\Stripe\Customers;
use Minds\Core\Di\Di;
use Minds\Core\Payments\Stripe\Instances\CustomerInstance;
use Minds\Core\Payments\Stripe\Instances\PaymentMethodInstance;
class Manager
{
/** @var Lookup $lookup */
private $lookup;
private $customerInstance;
private $paym... | Minds/engine | Core/Payments/Stripe/Customers/Manager.php | PHP | agpl-3.0 | 1,899 |
import mongoose from 'mongoose';
import Boom from 'boom';
import Bounce from 'bounce';
import { log, logErr } from '../../shared/utils';
import eventStore from '../stores/eventStore';
import alertStore from '../stores/alertStore';
import userStore from '../stores/userStore';
const ObjectId = mongoose.Types.ObjectId;
... | Cosecha/redadalertas-api | src/server/app/api/controllers/alertController.js | JavaScript | agpl-3.0 | 3,644 |
namespace IntranetGJAK.Models
{
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using IntranetGJAK.Models.JSON.Blueimp_FileUpload;
using IntranetGJAK;
... | j2ghz/IntranetGJAK | IntranetGJAK/Models/File.cs | C# | agpl-3.0 | 2,432 |
from django.core.management.base import BaseCommand, CommandError
from voty.initproc.models import Quorum, IssueSupportersQuorum, IssueVotersQuorum
from django.contrib.auth import get_user_model
from django.utils import timezone
from datetime import date
from math import ceil
"""
- Bis 99 Abstimmungsberechtigten 10 Pe... | DemokratieInBewegung/abstimmungstool | voty/initproc/management/commands/set_quorum.py | Python | agpl-3.0 | 2,590 |
/*
* Axelor Business Solutions
*
* Copyright (C) 2019 Axelor (<http://axelor.com>).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed... | ama-axelor/axelor-business-suite | axelor-bank-payment/src/main/java/com/axelor/apps/bankpayment/db/repo/MoveBankPaymentRepository.java | Java | agpl-3.0 | 1,337 |
<?php declare(strict_types=1);
/**
* @author Nicolas CARPi <nico-git@deltablot.email>
* @copyright 2012 Nicolas CARPi
* @see https://www.elabftw.net Official website
* @license AGPL-3.0
* @package elabftw
*/
namespace Elabftw\Services;
use function dirname;
use Elabftw\Exceptions\DatabaseErrorException;
use Ela... | elabftw/elabftw | src/tools/cleanup.php | PHP | agpl-3.0 | 1,014 |
package mkl.testarea.itext5.content;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.junit.BeforeClass;
import org.junit.Test;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.it... | mkl-public/testarea-itext5 | src/test/java/mkl/testarea/itext5/content/CellsWithPercentileBackground.java | Java | agpl-3.0 | 2,894 |
using Pathfindax.Nodes;
namespace Pathfindax.Factories
{
public class NodeGridCollisionMask
{
public int Width { get; private set; }
public int Height { get; private set; }
public NodeGridCollisionLayer[] Layers { get; private set; }
public NodeGridCollisionMask(PathfindaxCollisionCategory collisionCategor... | Barsonax/Pathfindax | src/Pathfindax/Factories/NodeGridCollisionMask.cs | C# | agpl-3.0 | 933 |
package main
import (
"github.com/datatogether/api/apiutil"
"github.com/datatogether/core"
"net/http"
)
func CollectionHandler(w http.ResponseWriter, r *http.Request) {
switch r.Method {
case "OPTIONS":
EmptyOkHandler(w, r)
case "GET":
GetCollectionHandler(w, r)
default:
NotFoundHandler(w, r)
}
}
func ... | archivers-space/archivers-api | collection_handlers.go | GO | agpl-3.0 | 1,335 |
/**
* Copyright (C) 2001-2017 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 ... | cm-is-dog/rapidminer-studio-core | src/main/java/com/rapidminer/gui/viewer/ANOVAMatrixViewerTableModel.java | Java | agpl-3.0 | 2,174 |
import ENV from 'irene/config/environment';
class ENVHandler {
constructor(envHandlerConst) {
this.envHandlerConst = envHandlerConst;
}
isRuntimeAvailable() {
return !(typeof runtimeGlobalConfig == 'undefined');
}
getEnv(env_key) {
const host_key = 'IRENE_API_HOST';
this.assertEnvKey(env_ke... | appknox/irene | app/initializers/irene.js | JavaScript | agpl-3.0 | 4,399 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2011... | StratusLab/claudia | clotho/src/main/java/org/dmtf/schemas/wbem/wscim/_1/cim_schema/_2/cim_softwarefeature/ProductName.java | Java | agpl-3.0 | 1,261 |
# Copyright (c) 2015 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher.
from UM.Scene.SceneNode import SceneNode
from UM.Resources import Resources
from UM.Math.Color import Color
from UM.Math.Vector import Vector
from UM.Mesh.MeshData import MeshData
import numpy
class ConvexHullNode(SceneNo... | quillford/Cura | cura/ConvexHullNode.py | Python | agpl-3.0 | 2,406 |
# Copyright (C) 2015 Linaro Limited
#
# Author: Stevan Radakovic <stevan.radakovic@linaro.org>
#
# This file is part of Lava Server.
#
# Lava Server is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3
# as published by the Free Software Foundat... | Linaro/lava-server | lava_results_app/views/chart/forms.py | Python | agpl-3.0 | 2,583 |
<?php /* Smarty version Smarty-3.1.12, created on 2015-11-09 19:00:26
compiled from "/home/gam/themes/Frontend/Bare/frontend/listing/filter/facet-value-list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:11956854235640df3a270b21-87257079%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty... | gamchantoi/AgroSHop-UTUAWARDS | var/cache/production_201510221322/templates/frontend_Responsive_id_ID_1/97/7c/fe/977cfeb9bb070320a1c6f58c27362cf6c3284590.snippet.facet-value-list.tpl.php | PHP | agpl-3.0 | 5,114 |
#
# Copyright (C) 2011 - 2015 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas 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, version 3 of the License.
#
# Canvas is distributed in the hop... | AndranikMarkosyan/lms | app/controllers/provisional_grades_controller.rb | Ruby | agpl-3.0 | 8,598 |
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
// Copyright (C) 2010 Winch Gate Property Limited
//
// 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 ... | osgcc/ryzom | ryzom/client/src/interface_v3/reflect.cpp | C++ | agpl-3.0 | 4,462 |
OC.L10N.register(
"deck",
{
"Deck" : "Deck",
"Personal" : "Personal",
"Finished" : "Terminado",
"To review" : "Para revisar",
"Action needed" : "Acción requerida",
"Later" : "Después",
"copy" : "copiar",
"Done" : "Hecho",
"The uploaded file exceeds the MAX_FILE_SIZE directive... | nextcloud/deck | l10n/es_AR.js | JavaScript | agpl-3.0 | 1,856 |
<?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Joas Schilling <coding@schilljs.com>
* @author Morris Jobke <hey@morrisjobke.de>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, versi... | Ardinis/server | apps/updatenotification/lib/Notification/Notifier.php | PHP | agpl-3.0 | 5,672 |
var error = require('parts/error');
exports.create = function(callback, millisec, cyclic){
if(typeof(setInterval) == 'undefined'
&&typeof(setTimeout) == 'undefined')
return new error('not supported', 'this platform is not supported timer functionality');
var id = cyclic ? setInterval(callback, millis... | ixdu/capsule | modules/timer.js | JavaScript | agpl-3.0 | 457 |
# coding: utf-8
from django.contrib.auth.models import User, Permission
from django.urls import reverse
from django.utils import timezone
from rest_framework import status
from kpi.constants import (
ASSET_TYPE_COLLECTION,
PERM_CHANGE_ASSET,
PERM_MANAGE_ASSET,
PERM_VIEW_ASSET,
)
from kpi.models import ... | kobotoolbox/kpi | kpi/tests/api/v2/test_api_permissions.py | Python | agpl-3.0 | 34,731 |
class CreateExports < ActiveRecord::Migration[4.2]
def change
create_table :exports do |t|
t.references :organization, index: true
t.references :user, index: true
t.text :file
t.integer :file_format, default: 0
t.integer :kind, default: 0
t.integer :progress, default: 0
t... | bikeindex/bike_index | db/migrate/20180918220604_create_exports.rb | Ruby | agpl-3.0 | 421 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package netkuliTesting;
/**
*
* @author Phildor92 <phillip.evans09@hotmail.com>
*/
public class NetkulixGUI extends javax.swing.JFr... | RealN-RnD/Test-Automation-C | src/netkuliTesting/NetkulixGUI.java | Java | agpl-3.0 | 9,645 |
/*
* 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-war/src/main/java/org/silverpeas/web/notificationserver/channel/silvermail/requesthandlers/ReadMessage.java | Java | agpl-3.0 | 2,242 |
/*******************************************************************************
* gvGeoportal is sponsored by the General Directorate for Information
* Technologies (DGTI) of the Regional Ministry of Finance and Public
* Administration of the Generalitat Valenciana (Valencian Community,
* Spain), managed by gvSIG ... | gvSIGAssociation/gvsig-web | src/main/java/es/gva/dgti/gvgeoportal/security/SafeLoginController.java | Java | agpl-3.0 | 1,419 |
require 'spec_helper'
describe Email do
describe "create!" do
it "should set the default app if none is given" do
email = FactoryGirl.create(:email, app_id: nil)
email.app.should be_default_app
end
context "One email is created" do
before :each do
FactoryGirl.create(:email,
... | WebsterFolksLabs/cuttlefish | spec/models/email_spec.rb | Ruby | agpl-3.0 | 6,425 |
/* Copyright (C) 2006-2016 Patrick G. Durand
*
* 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.
*
* Yo... | pgdurand/Bioinformatics-UI-API | src/bzh/plealog/bioinfo/ui/feature/FeatureStatusViewer.java | Java | agpl-3.0 | 4,589 |
<?php
/**
* Copyright (c) 2015 ScientiaMobile, 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 later version.
*
*... | mimmi20/Wurfl | src/Configuration/FileConfig.php | PHP | agpl-3.0 | 2,589 |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_EXCEPTIONS_HPP_
#define RDB_PROTOCOL_EXCEPTIONS_HPP_
#include <string>
#include "utils.hpp"
#include "rdb_protocol/bt.hpp"
#include "rpc/serialize_macros.hpp"
namespace query_language {
/* Thrown if the client sends a malformed or nonsensic... | AtnNn/rethinkdb | src/rdb_protocol/exceptions.hpp | C++ | agpl-3.0 | 1,921 |
/*
* 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/security/authentication/password/PasswordEncryptionProvider.java | Java | agpl-3.0 | 3,947 |
__author__ = 'c.brett'
| Spycho/aimmo | aimmo-game/simulation/test/__init__.py | Python | agpl-3.0 | 23 |
import Ember from 'ember';
import _validate from 'ember-simple-validate/utils/validate';
import Validator from 'ember-simple-validate/lib/validator';
var get = Ember.get;
var set = Ember.set;
var validValidator = function(validator) {
return validator instanceof Validator;
};
export default Ember.Mixin.create({
... | ChinookBook/ember-simple-validate | addon/mixins/simple-validation-mixin.js | JavaScript | agpl-3.0 | 2,032 |
# -*- coding: utf-8 -*-
# setup.py
# Copyright (C) 2013 LEAP
#
# 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, or
# (at your option) any later version.
#
# This ... | kalikaneko/leap_mx | setup.py | Python | agpl-3.0 | 2,678 |
module FeatureFlags
# TODO: remove unused feature flags after like December 2019
AVAILABLE_FRONTEND_FEATURES = ['subscriptions', 'assessments', 'custom_sidebar',
'canvas_render', 'snapshots', 'enable_all_buttons',
'video_recording', 'goals', 'app_connections', 'translation', 'geo_sideb... | CoughDrop/coughdrop | lib/feature_flags.rb | Ruby | agpl-3.0 | 3,182 |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* This ... | hirakc/eur_crm | modules/Administration/vardefs.php | PHP | agpl-3.0 | 5,819 |
<?php
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.
return [
'discussion-votes' => [
'update' => [
'error' => 'נכשל בעדכון הצבעה',
],
],
'discussio... | LiquidPL/osu-web | resources/lang/he-IL/beatmaps.php | PHP | agpl-3.0 | 14,321 |
import _ from 'lodash';
import React from 'react';
import {PreviewModal} from '../previewModal';
SendItem.$inject = ['$q', 'api', 'desks', 'notify', 'authoringWorkspace',
'superdeskFlags', '$location', 'macros', '$rootScope', 'deployConfig',
'authoring', 'send', 'editorResolver', 'confirm', 'archiveService',
... | jerome-poisson/superdesk-client-core | scripts/apps/authoring/authoring/directives/SendItem.js | JavaScript | agpl-3.0 | 35,674 |
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl>
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @license GNU AGPL version 3... | andreas-p/nextcloud-server | apps/files_versions/lib/Listener/LoadSidebarListener.php | PHP | agpl-3.0 | 1,562 |
/** The FlamingLayer Class **/
/**
* @constructor
* @augments Layer
* @description The superclass for all flamingolayers
* @param id The id of the layer
* @param options The options to be given to the layer
* @param flamingoObject The flamingo object of the layer
*
*/
Ext.define("viewer.viewer... | mvdstruijk/flamingo | viewer/src/main/webapp/viewer-html/common/viewercontroller/flamingo/FlamingoLayer.js | JavaScript | agpl-3.0 | 5,324 |
<?php
namespace ShiftBundle\Controller\Admin;
use Laminas\Mail\Message;
use Laminas\View\Model\ViewModel;
use ShiftBundle\Entity\RegistrationShift;
use ShiftBundle\Entity\Shift\Registered;
/**
* RegistrationSubscriptionController
*
* @author Pieter Maene <pieter.maene@litus.cc>
*/
class RegistrationSubscriptionC... | LitusProject/Litus | module/ShiftBundle/Controller/Admin/RegistrationSubscriptionController.php | PHP | agpl-3.0 | 5,908 |
namespace '/storages' do
get do
@storages = Storage.all
return_resource object: @storages
end
post do
@storage = Storage.create!(params[:storage])
return_resource object: @storage
end
before %r{\A/(?<id>\d+)/?.*} do
@storage = Storage.find(params[:id])
end
namespace '/:id' do
de... | virtapi/virtapi | controllers/storage_controller.rb | Ruby | agpl-3.0 | 569 |
<?php
#
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
# This file is part of the Emulab network testbed software.
#
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free S... | nmc-probe/emulab-nome | www/netemu.php3 | PHP | agpl-3.0 | 1,261 |
from django import template
register = template.Library()
@register.simple_tag
def keyvalue(dict, key):
return dict[key]
| routetopa/tet | tet/browser/templatetags/keyvalue.py | Python | agpl-3.0 | 127 |
<?php
namespace Zco\Bundle\GroupesBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints as Assert;
final c... | zcorrecteurs/zcorrecteurs.fr | src/Zco/Bundle/GroupesBundle/Form/GroupType.php | PHP | agpl-3.0 | 1,347 |
/*
* TeleStax, Open Source Cloud Communications
* Copyright 2012, Telestax Inc 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... | RestComm/jss7 | cap/cap-api/src/main/java/org/restcomm/protocols/ss7/cap/api/service/circuitSwitchedCall/primitive/CollectedInfo.java | Java | agpl-3.0 | 1,352 |
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import re
def camelcase_to_snakecase(string_to_convert):
"""
Convert CamelCase st... | suutari/shoop | shuup/admin/utils/str_utils.py | Python | agpl-3.0 | 605 |
package com.tesora.dve.errmap;
/*
* #%L
* Tesora Inc.
* Database Virtualization Engine
* %%
* Copyright (C) 2011 - 2014 Tesora Inc.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free S... | Tesora/tesora-dve-pub | tesora-dve-common/src/main/java/com/tesora/dve/errmap/OneParamErrorCode.java | Java | agpl-3.0 | 910 |
/*
* Kuali Coeus, a comprehensive research administration system for higher education.
*
* Copyright 2005-2016 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 Foundation, eithe... | mukadder/kc | coeus-impl/src/main/java/org/kuali/kra/iacuc/IacucProtocolForm.java | Java | agpl-3.0 | 16,703 |
<?php
class sfGuardGroupUtf8Table extends sfGuardGroupTable
{
public static function getInstance()
{
return Doctrine_Core::getTable('sfGuardGroupUtf8');
}
} | simonoche/wterritoires | lib/model/doctrine/sfGuardGroupUtf8Table.class.php | PHP | agpl-3.0 | 183 |
<?php
require_once("conf.php");
$text = $head;
$text .= $body;
$text .= menu("");
$text .= main();
$text .= $foot;
echo gzipoutput($text);
// ===========================================================================
function main()
{
global $email, $pass, $pass2, $mysql_db, $name;
if (($email != "") and ($... | jbreitbart/priceguard_classic | branches/first/anmelden.php | PHP | agpl-3.0 | 4,179 |
import * as React from 'react';
import _ from 'lodash';
import {
civicSortValue,
DEFAULT_ANNOTATION_DATA,
GenericAnnotation,
IAnnotation,
USE_DEFAULT_PUBLIC_INSTANCE_FOR_ONCOKB,
oncoKbAnnotationSortValue,
} from 'react-mutation-mapper';
import { CancerStudy, StructuralVariant } from 'cbioportal-... | cBioPortal/cbioportal-frontend | src/pages/patientView/structuralVariant/column/AnnotationColumnFormatter.tsx | TypeScript | agpl-3.0 | 9,418 |
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'repository/tag query' do
let(:context) { {} }
let(:query_string) do
<<-QUERY
query ($repositoryId: ID!, $name: String!) {
repository(id: $repositoryId) {
tag(name: $name) {
name
target {
id
... | ontohub/ontohub-backend | spec/graphql/queries/repository/tag_query_spec.rb | Ruby | agpl-3.0 | 1,684 |
<?php
/*
Question2Answer (c) Gideon Greenspan
http://www.question2answer.org/
File: qa-include/qa-ajax-version.php
Version: See define()s at top of qa-include/qa-base.php
Description: Server-side response to Ajax version check requests
This program is free software; you can redistribute it and... | teleiakaipavla/diafthoratelos.gr | php/wordpress/qa/qa-include/qa-ajax-version.php | PHP | agpl-3.0 | 2,412 |
# -*- coding: utf-8 -*-
import os.path
import posixpath
import re
import urllib
from docutils import nodes
from sphinx import addnodes, util
from sphinx.locale import admonitionlabels
def _parents(node):
while node.parent:
node = node.parent
yield node
class BootstrapTranslator(nodes.NodeVisitor... | xujb/odoo | doc/_extensions/odoo/translator.py | Python | agpl-3.0 | 26,143 |
"""Laposte XML -> Python."""
from datetime import datetime
from lxml import objectify
from ...codec import DecoderGetLabel
from ...codec import DecoderGetPackingSlip
import base64
class _UNSPECIFIED:
pass
def _get_text(xml, tag, default=_UNSPECIFIED):
"""
Returns the text content of a tag to avoid retu... | akretion/roulier | roulier/carriers/laposte_fr/decoder.py | Python | agpl-3.0 | 4,729 |
"""alloccli subcommand for editing alloc reminders."""
from alloc import alloc
import re
class reminder(alloc):
"""Add or edit a reminder."""
# Setup the options that this cli can accept
ops = []
ops.append(('', 'help ', 'Show this help.'))
ops.append(('q', 'quiet ', 'Run with... | mattcen/alloc | bin/alloccli/reminder.py | Python | agpl-3.0 | 3,917 |
import React from 'react';
import { DragSource, DropTarget } from 'react-dnd';
import { compose } from 'redux';
import DragDropItemTypes from './DragDropItemTypes';
import { HeaderDeleted, HeaderNormal } from './SampleDetailsContainersAux';
const orderSource = {
beginDrag(props) {
const { container, sample } = p... | ComPlat/chemotion_ELN | app/packs/src/components/SampleDetailsContainersDnd.js | JavaScript | agpl-3.0 | 2,510 |
<?php
/**
* @author Jaap Jansma <jaap.jansma@civicoop.org>
* @license AGPL-3.0
*/
class CRM_Oppgavexml_LoadQueue {
const QUEUE_NAME = 'no.maf.oppgavexml.load.queue';
private $queue;
static $singleton;
/**
* @return CRM_Queuehowto_Helper
*/
public static function singleton() {
if (!self::$sing... | CiviCooP/no.maf.oppgavexml | CRM/Oppgavexml/LoadQueue.php | PHP | agpl-3.0 | 716 |
# -*- coding: utf-8 -*-
# (c) 2017 Daniel Campos - AvanzOSC
# (c) 2017 Alfredo de la Fuente - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import fields, models, api, exceptions, _
import base64
import cStringIO
import tempfile
import csv
class ImportPriceFile(models.Transien... | esthermm/odoo-addons | product_supplierinfo_import/wizard/import_price_files.py | Python | agpl-3.0 | 6,282 |
package gdev.gawt;
import gdev.gawt.utils.ItemList;
import gdev.gen.AssignValueException;
import gdev.gen.IComponentData;
import gdev.gen.IComponentListener;
import gdev.gen.NotValidValueException;
import gdev.gfld.GFormEnumerated;
import gdev.gfld.GFormField;
import java.awt.Dimension;
import java.awt.Font;
import j... | semantic-web-software/dynagent | Elecom/src/gdev/gawt/GListBox.java | Java | agpl-3.0 | 26,370 |
var round = function(number, increment, offset) {
return Math.ceil((number - offset) / increment) * increment + offset;
};
Partup.client.chatmessages = {
groupByDelay: function(messages, options) {
var delay = options.seconds ? options.seconds * 1000 : 1000;
var outputArray = [];
messag... | part-up/part-up | app/packages/partup-client-base/client/chatmessages.js | JavaScript | agpl-3.0 | 2,893 |
/*
* DataCruncher
* Copyright (c) Mario Altimari. All rights reserved.
*
* 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 ... | see-r/SeerDataCruncher | src/main/java/com/datacruncher/datastreams/DatastreamsInput.java | Java | agpl-3.0 | 18,067 |
<?php
/**
* Copyright 2015-2018 ppy Pty. Ltd.
*
* This file is part of osu!web. osu!web is distributed with the hope of
* attracting more community contributions to the core ecosystem of osu!.
*
* osu!web is free software: you can redistribute it and/or modify
* it under the terms of the Affero G... | kj415j45/osu-web | resources/lang/zh/beatmaps.php | PHP | agpl-3.0 | 10,212 |
""" IMAPClient wrapper for the Nilas Sync Engine. """
import contextlib
import re
import time
import imaplib
import imapclient
# Even though RFC 2060 says that the date component must have two characters
# (either two digits or space+digit), it seems that some IMAP servers only
# return one digit. Fun times.
imaplib.I... | gale320/sync-engine | inbox/crispin.py | Python | agpl-3.0 | 34,132 |
class TripPurpose < ApplicationRecord
acts_as_paranoid # soft delete
has_paper_trail
validates :name, presence: true, uniqueness: { :case_sensitive => false, conditions: -> { where(deleted_at: nil) } }
def self.by_provider(provider)
hidden_ids = HiddenLookupTableValue.hidden_ids self.table_name, provide... | camsys/ridepilot | app/models/trip_purpose.rb | Ruby | agpl-3.0 | 441 |
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | kaltura/KalturaGeneratedAPIClientsCsharp | KalturaClient/Types/AccessControlContextTypeHolder.cs | C# | agpl-3.0 | 2,292 |
define(function (require) {
'use strict';
var Vector2 = require('vector2-node');
/**
* Returns a new unit vector in the direction specified by the angle
*/
Vector2.fromAngle = function(angle) {
return new Vector2(1, 0).rotate(angle);
};
Vector2.prototype.toString = function(pr... | Connexions/simulations | common/math/vector2.js | JavaScript | agpl-3.0 | 731 |
<?php
//
require('../config.php');
require('../db_lib.php');
$db = new db();
// If the user clicked one of the buttons
if ((isset($_GET['submit'])) || (isset($_GET['prev'])) || (isset($_GET['next']))) {
$where = '';
$start_date = htmlspecialchars($_GET['start_date'], ENT_QUOTES);
if ($start_date != '... | rolencea/org.civicrm.civisocial2 | twitterAPI/civisocialtwitter/report/search_dms.php | PHP | agpl-3.0 | 2,051 |
const ERR = require('async-stacktrace');
const _ = require('lodash');
const async = require('async');
const sqldb = require('../prairielib/lib/sql-db');
module.exports = {
pages(chosenPage, count, pageSize) {
let lastPage = Math.ceil(count / pageSize);
if (lastPage === 0) lastPage = 1;
let currPage = N... | PrairieLearn/PrairieLearn | lib/paginate.js | JavaScript | agpl-3.0 | 1,786 |