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 nars.clock;
/** nanosecond accuracy */
public class RealtimeNSClock extends RealtimeClock {
public RealtimeNSClock(boolean updatePerCycle) {
super(updatePerCycle);
}
@Override
protected long getRealTime() {
return System.nanoTime();
}
@Override
protected float uni... | printedheart/opennars | nars_logic/src/main/java/nars/clock/RealtimeNSClock.java | Java | agpl-3.0 | 384 |
/**
* 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 ... | boob-sbcm/3838438 | src/main/java/com/rapidminer/operator/learner/functions/kernel/jmysvm/svm/SVMregression.java | Java | agpl-3.0 | 9,029 |
# encoding: utf-8
class Api::EpisodesController < Api::BaseController
include ApiUpdatedSince
api_versions :v1
represent_with Api::EpisodeRepresenter
find_method :find_by_guid
filter_resources_by :podcast_id
after_action :process_media, only: [:create, :update]
after_action :publish, only: [:create, :u... | PRX/feeder.prx.org | app/controllers/api/episodes_controller.rb | Ruby | agpl-3.0 | 1,756 |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... | turtles2/Sublist-Manager | config/app.php | PHP | agpl-3.0 | 9,485 |
/*********************************************************************************
* Ephesoft is a Intelligent Document Capture and Mailroom Automation program
* developed by Ephesoft, Inc. Copyright (C) 2010-2012 Ephesoft Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the... | kuzavas/ephesoft | dcma-validation/src/main/java/com/ephesoft/dcma/validation/service/ValidationServiceImpl.java | Java | agpl-3.0 | 2,528 |
const { GenericCommand } = require('../../models/')
const videos = [
'https://www.pornhub.com/view_video.php?viewkey=ph5a5a31a130d7b',
'https://www.pornhub.com/view_video.php?viewkey=ph5925ca42189b1',
'https://www.pornhub.com/view_video.php?viewkey=ph58a2743e7bc0a',
'https://www.pornhub.com/view_video.php?viewk... | melmsie/Dank-Memer | src/commands/nsfwCommands/mcporn.js | JavaScript | agpl-3.0 | 1,202 |
#!/usr/bin/env python
import networkx as nx
import matplotlib.pyplot as plt
import matplotlib.colors as colors
from infomap import infomap
"""
Generate and draw a network with NetworkX, colored
according to the community structure found by Infomap.
"""
def findCommunities(G):
"""
Partition network with the Infoma... | nicktimko/infomap | examples/python/example-networkx.py | Python | agpl-3.0 | 2,366 |
class CreateTaggeds < ActiveRecord::Migration
def self.up
create_table :taggeds do |t|
t.references :tag
t.references :proposicao
t.timestamps
end
end
def self.down
drop_table :taggeds
end
end
| pbelasco/pub_data_brasil | db/migrate/20091027191715_create_taggeds.rb | Ruby | agpl-3.0 | 233 |
package info.nightscout.androidaps.plugins.InsulinFastacting;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import com.jjoe64.graphview.GraphView;
import com.jjoe64.graphview.series.DataPoint;
import com.jjoe64.graphview.series.LineGraphSeries;
import java.util.Arra... | RoumenGeorgiev/AndroidAPS | app/src/main/java/info/nightscout/androidaps/plugins/InsulinFastacting/ActivityGraph.java | Java | agpl-3.0 | 2,815 |
# -*- coding: utf-8 -*-
###############################################################################
#
# ODOO (ex OpenERP)
# Open Source Management Solution
# Copyright (C) 2001-2015 Micronaet S.r.l. (<http://www.micronaet.it>)
# Developer: Nicola Riolini @thebrush (<https://it.linkedin.com/in/thebrush>)
# This pro... | Micronaet/micronaet-migration | label_easy/__openerp__.py | Python | agpl-3.0 | 1,694 |
package wp.core;
public class UserDisabledException extends Exception {
public UserDisabledException (String userId) {
super("User " + userId + " is disabled.");
}
}
| WebPredict/brave-new-code | src/main/java/wp/core/UserDisabledException.java | Java | agpl-3.0 | 172 |
class AddMotionLastViewedAtToMotionReadLogs < ActiveRecord::Migration[4.2]
class MotionReadLog < ActiveRecord::Base
end
def up
add_column :motion_read_logs, :motion_last_viewed_at, :datetime
MotionReadLog.reset_column_information
MotionReadLog.where(:motion_last_viewed_at => nil).update_all :motion_la... | piratas-ar/loomio | db/migrate/20121008010612_add_motion_last_viewed_at_to_motion_read_logs.rb | Ruby | agpl-3.0 | 679 |
import { ActivatedRoute, ParamMap, Router } from '@angular/router';
import { Component, OnInit } from '@angular/core';
import { TranslateService, LangChangeEvent } from '@ngx-translate/core';
import { BehaviorSubject, combineLatest, throwError } from 'rxjs';
import { EditLogApiOptions } from './EditLogApiOptions.class... | SciencesPo/isari | client/src/app/isari-logs/isari-logs.component.ts | TypeScript | agpl-3.0 | 4,092 |
/*
Copyright 2011 Daniel Lombraña González
Users_Widget.js is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Users_Widget.js is distribu... | teleyinex/boinc-widgets | project_stats.js | JavaScript | agpl-3.0 | 4,398 |
# frozen_string_literal: true
module Decidim
module Budgets
# This cell renders the budget item list in the budgets list
class BudgetListItemCell < BaseCell
delegate :voting_finished?, to: :controller
property :title
alias budget model
private
def card_class
["card--l... | mainio/decidim | decidim-budgets/app/cells/decidim/budgets/budget_list_item_cell.rb | Ruby | agpl-3.0 | 857 |
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 |
/*
Copyright 2008 Clipperz Srl
This file is part of Clipperz Community Edition.
Clipperz Community Edition is a web-based password manager and a
digital vault for confidential data.
For further information about its features and functionalities please
refer to http://www.clipperz.com
* Clipperz Community Edition is ... | weisslj/clipperz-communityEdition | js/src/Clipperz/PM/Components/Panels/ContactsPanel.js | JavaScript | agpl-3.0 | 3,757 |
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 |
<?php
namespace Concerto\PanelBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table
* @ORM\Entity(repositoryClass="Concerto\PanelBundle\Repository\TestSessionRepository")
*/
class TestSession extends AEntity {
const STATUS_RUNNING = 0;
const STATUS_SERIALIZED = 1;
/**
* @ORM\ManyToOn... | davidstillwell/concerto-platform | src/Concerto/PanelBundle/Entity/TestSession.php | PHP | agpl-3.0 | 9,985 |
/*
* 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 |
<?php
use IFW\App;
/**
* Global IFW class with static functions to access the application instance.
*
* eg. IFW::app()->config() access the application configuration
*/
class IFW {
private static $app;
/**
* Register the application instance
*
* @param App $app
* @throws Exception
*/
public static ... | Intermesh/groupoffice-server | lib/IFW.php | PHP | agpl-3.0 | 613 |
# 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 |
/*
* Copyright 2015 - 2017 AZYVA INC. INC.
*
* This file is part of Dragom.
*
* Dragom 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 ... | azyva/dragom-api | src/main/java/org/azyva/dragom/model/config/NodeConfigTransferObject.java | Java | agpl-3.0 | 7,040 |
<?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 |
/*
* NASA Worldview
*
* This code was originally developed at NASA/Goddard Space Flight Center for
* the Earth Science Data and Information System (ESDIS) project.
*
* Copyright (C) 2013 - 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
*... | cchang3/worldview-design | src/animation-module/code/web/js/proj/wv.proj.js | JavaScript | agpl-3.0 | 885 |
/*
* 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 |
package com.tesora.dve.sql;
/*
* #%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 Soft... | Tesora/tesora-dve-pub | tesora-dve-core/src/test/java/com/tesora/dve/sql/FunctionsTest.java | Java | agpl-3.0 | 26,017 |
<?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 |