repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
part-up/part-up | app/packages/partup-server/api.js | 981 | var url = Npm.require('url');
var apiRoot = process.env.API_ROOT_URL;
var apiKey = process.env.API_KEY;
var apiOpts = { headers: { apikey: apiKey } };
var apiSecure = apiRoot && url.parse(apiRoot).protocol === 'https';
// Check event endpoint config
if (!apiRoot || !apiKey) {
Log.warn('Partup API not configured, ... | agpl-3.0 |
peterkshultz/gradecraft-development | spec/controllers/analytics_controller_spec.rb | 2976 | #spec/controllers/analytics_controller_spec.rb
require 'spec_helper'
describe AnalyticsController do
context "as a professor" do
before do
@course = create(:course_accepting_groups)
@professor = create(:user)
@professor.courses << @course
@membership = CourseMembership.where(user: @profe... | agpl-3.0 |
tinkerinestudio/Tinkerine-Suite | TinkerineSuite/Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/boolean_geometry.py | 7983 | """
This page is in the table of contents.
The xml.py script is an import translator plugin to get a carving from an Art of Illusion xml file.
An import plugin is a script in the interpret_plugins folder which has the function getCarving. It is meant to be run from the interpret tool. To ensure that the plugin works... | agpl-3.0 |
prefeiturasp/SME-SGP | Src/GestaoEscolar/WebControls/GraficoAtendimento/UCGraficoAtendimento.ascx.cs | 950 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GestaoEscolar.WebControls.GraficoAtendimento
{
public partial class UCGraficoAtendimento : System.Web.UI.UserControl
{
public void Carregar(int gra_id, i... | agpl-3.0 |
skylines-project/skylines | ember/app/routes/flight-upload.js | 777 | import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default class FlightUploadRoute extends Route {
@service ajax;
@service account;
@service session;
beforeModel(transition) {
this.session.requireAuthentication(transition, 'login');
}
async model() {
... | agpl-3.0 |
AdrianLxM/AndroidAPS | app/src/main/java/info/nightscout/androidaps/plugins/PumpDanaRS/comm/DanaRS_Packet_Notify_Alarm.java | 2847 | package info.nightscout.androidaps.plugins.PumpDanaRS.comm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import info.nightscout.androidaps.Config;
import info.nightscout.androidaps.MainApp;
import info.nightscout.androidaps.R;
import com.cozmo.danar.util.BleCommandUtil;
import info.nightscout.utils.NSUp... | agpl-3.0 |
Tesora/tesora-dve-pub | tesora-dve-message-api/src/main/java/com/tesora/dve/db/mysql/libmy/MyLoadDataResponse.java | 1405 | package com.tesora.dve.db.mysql.libmy;
/*
* #%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 th... | agpl-3.0 |
MatthiasKainer/robbie-the-robot | test/public/javascript/src/ast/testLoopParser.ts | 3828 | import { LoopParser } from "../../../../../public/javascript/src/ast/availableParsers";
import { ParsingService, WordService } from "../../../../../public/javascript/src/ast/parser";
import { Comparator, Operator, SyntaxNode } from "../../../../../public/javascript/src/ast/node";
import {
AssignmentNode,
Compar... | agpl-3.0 |
KadJ/amazon_new | cache/modules/Contacts/Contactvardefs.php | 37615 | <?php
$GLOBALS["dictionary"]["Contact"]=array (
'table' => 'contacts',
'audited' => true,
'unified_search' => true,
'full_text_search' => true,
'unified_search_default_enabled' => true,
'duplicate_merge' => true,
'fields' =>
array (
'id' =>
array (
'name' => 'id',
'vname' => 'LBL... | agpl-3.0 |
JonathanxD/TextLexer | src/main/java/com/github/jonathanxd/textlexer/ext/constructor/structure/StructureConstructor.java | 2881 | /*
* TextLexer - Lexical Analyzer API for Java! <https://github.com/JonathanxD/TextLexer>
* Copyright (C) 2016 TheRealBuggy/JonathanxD (https://github.com/JonathanxD/) <jonathan.scripter@programmer.net>
*
* GNU GPLv3
*
* This program is free software: you can redistribute it and/or modify
* it unde... | agpl-3.0 |
rgbconsulting/rgb-website | website_favicon/models/website_config.py | 384 | # -*- coding: utf-8 -*-
# See README file for full copyright and licensing details.
from openerp import fields, models, _
class Website(models.Model):
_inherit = 'website'
favicon = fields.Binary("Favicon ico")
class WebsiteConfig(models.TransientModel):
_inherit = 'website.config.settings'
favic... | agpl-3.0 |
ProtocolSupport/ProtocolSupportAntiBot | src/protocolsupportantibot/Settings.java | 5157 | package protocolsupportantibot;
import java.io.File;
import java.io.IOException;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.YamlConfiguration;
public class Settings {
public static int loginInterval = 50;
public static String loginIntervalMessage = ChatColor.AQUA + "Your connection is curre... | agpl-3.0 |
VibroAxe/athena | database/migrations/2015_04_19_123122_add_page_published_field.php | 552 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPagePublishedField extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('pages', function($table)
{
$table->integer('published')
->default(1)
... | agpl-3.0 |
shanghaiscott/templatewrapper | src/main/java/com/swdouglass/velocity/AbstractTemplate.java | 5913 | /*
* Copyright 2010, Scott Douglass <scott@swdouglass.com>
*
* 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.
*
*... | agpl-3.0 |
davecheney/juju | resource/api/helpers_test.go | 11305 | // Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package api_test
import (
"strings"
"time"
"github.com/juju/errors"
"github.com/juju/names"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
charmresource "gopkg.in/juju/charm.v6... | agpl-3.0 |
kaltura/KalturaGeneratedAPIClientsJava | src/main/java/com/kaltura/client/types/EventCuePointBaseFilter.java | 3305 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | agpl-3.0 |
friendica/friendica | tests/src/Module/Api/ApiResponseTest.php | 11595 | <?php
/**
* @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
* 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 ... | agpl-3.0 |
ONLYOFFICE/doc-builder-testing | asserts/js/docx/header/tables/add_table_in_header_right.js | 475 | builder.CreateFile("docx");
var oDocument = Api.GetDocument();
oDocument.CreateNewHistoryPoint();
var oTable, oTableRow, oCell, oCellContent, oRun, oDrawing;
var oParagraph = Api.CreateParagraph();
var oFinalSection = oDocument.GetFinalSection();
var oDocContent = oFinalSection.GetHeader("default", true);
oTable ... | agpl-3.0 |
LitusProject/Litus | module/LogisticsBundle/Hydrator/Article.php | 1352 | <?php
namespace LogisticsBundle\Hydrator;
use LogisticsBundle\Entity\Article as ArticleEntity;
class Article extends \CommonBundle\Component\Hydrator\Hydrator
{
private static $stdKeys = array('name', 'additional_info', 'spot', 'amount_owned', 'amount_available', 'internal_comment', 'alertMail', 'location');
... | agpl-3.0 |
liuning587/TCExam | shared/jscripts/vk/layouts/lithuanian.js | 251 | VirtualKeyboard.addLayout({code:'LT',name:'Lithuanian',normal:'`ąčęėįšųū90-ž\\qwertyuiop[]asdfghjkl;\'zxcvbnm,./',shift:{0:'~',9:'()_',13:'|',24:'{}',35:':"',44:'<>?'},alt:{1:'12345678',12:'=',16:'€'},shift_alt:{1:'!@#$%^&*',12:'+'}});
| agpl-3.0 |
alejandro-du/acomersedijo | src/dpasoftware/acomersedijo/accesoDatos/dao/impl/DaoMenu.java | 601 | package dpasoftware.acomersedijo.accesoDatos.dao.impl;
import java.util.List;
import dpasoftware.acomersedijo.accesoDatos.dao.IDaoMenu;
import dpasoftware.acomersedijo.accesoDatos.vo.Menu;
/**
*
* @author Alejandro
*/
public class DaoMenu extends AbstractDao<Menu> implements IDaoMenu {
private String lis... | agpl-3.0 |
retest/recheck | src/main/java/de/retest/recheck/review/counter/IntCounter.java | 468 | package de.retest.recheck.review.counter;
import java.util.function.IntConsumer;
public class IntCounter implements Counter {
private int count = 0;
private final IntConsumer listener;
public IntCounter( final IntConsumer listener ) {
this.listener = listener;
this.listener.accept( count );
}
@Override
... | agpl-3.0 |
MiguelSMendoza/Kunagi | WEB-INF/classes/ilarkesto/gwt/client/AGwtDao.java | 3882 | /*
* Copyright 2011 Witoslaw Koczewsi <wi@koczewski.de>, Artjom Kochtchi
*
* 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 l... | agpl-3.0 |
arkivverket/arkade5 | src/Arkivverket.Arkade.Core/Util/ArchivePart.cs | 364 | using Arkivverket.Arkade.Core.Resources;
namespace Arkivverket.Arkade.Core.Util
{
public class ArchivePart
{
public string SystemId { get; set; }
public string Name { get; set; }
public override string ToString()
{
return string.Format(Noark5Messages.ArchivePartSys... | agpl-3.0 |
PDI-DGS-Protolab/beta_program | register/models.py | 677 | from django.db import models
from django.contrib import admin
# Create your models here.
class BetaTester(models.Model):
email = models.EmailField(max_length=100, primary_key=True)
desc = models.CharField(max_length=250)
url = models.URLField(max_length=250, blank=True, null=True)
def load_from_fo... | agpl-3.0 |
chain/chain | vendor/github.com/facebook/rocksdb/util/rate_limiter.cc | 8398 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) ... | agpl-3.0 |
privacyidea/privacyidea | privacyidea/lib/privacyideaserver.py | 8930 | # -*- coding: utf-8 -*-
#
# 2017-08-24 Cornelius Kölbel <cornelius.koelbel@netknights.it>
# Remote privacyIDEA server
#
# This code is free software; you can redistribute it and/or
# modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
# License as published by the Free Software Foundation; e... | agpl-3.0 |
OxBRCInformatics/pedigree-editor-tool | js/queues.min.js | 612 | /*! pedigree-editor-tool - v1.3.1 - 2017-05-22
* https://github.com/OxBRCInformatics/pedigree-editor-tool#readme
* Copyright (c) 2017 Licensed AGPL-3.0 */
Queue=function(){this.data=[]},Queue.prototype={setTo:function(list){this.data=list.slice()},push:function(v){this.data.push(v)},pop:function(v){return this.data.s... | agpl-3.0 |
decidim/decidim | decidim-elections/spec/system/voting_spec.rb | 2102 | # frozen_string_literal: true
require "spec_helper"
describe "Voting", type: :system do
let!(:organization) { create(:organization) }
let!(:voting) { create(:voting, :published, organization: organization) }
let!(:user) { create :user, :confirmed, organization: organization }
before do
switch_to_host(org... | agpl-3.0 |
pyalot/WebGL-City-SSAO | glee/matrix.js | 18128 | /*
:copyright: 2011 by Florian Boesch <pyalot@gmail.com>.
:license: GNU AGPL3, see LICENSE for more details.
*/
(function(){
var fmt = function(value){
var str = value.toFixed(2);
while(str.length < 7){
str = ' ' + str;
}
return str;
}
var pi = Math.PI;
... | agpl-3.0 |
opensourceBIM/BIMserver | PluginBase/generated/org/bimserver/models/ifc4/impl/IfcProjectOrderImpl.java | 5576 | /**
* Copyright (C) 2009-2014 BIMserver.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 your option) any later version.
*
... | agpl-3.0 |
Gebesa-Dev/Addons-gebesa | mrp_gebesa/__openerp__.py | 964 | # -*- coding: utf-8 -*-
# © <2016> <César Barrón Bautista>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Gebesa MRP",
"summary": "Modify MRP's default behavior to adapt it to Gebesa",
"version": "9.0.1.0.0",
"category": "Uncategorized",
"website": "https://odoo-comm... | agpl-3.0 |
espona/ckanext-composite | ckanext/composite/tests/test_plugin.py | 97 | """Tests for plugin.py."""
import ckanext.composite.plugin as plugin
def test_plugin():
pass | agpl-3.0 |
ua-eas/ua-kfs-5.3 | work/src/org/kuali/kfs/coa/businessobject/options/AccountTypeCodeComparator.java | 1651 | /*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2014 The Kuali Foundation
*
* 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 Fre... | agpl-3.0 |
detrout/chwala | lib/file_locks.php | 9352 | <?php
/*
+--------------------------------------------------------------------------+
| This file is part of the Kolab File API |
| |
| Copyright (C) 2012-2013, Kolab Systems AG ... | agpl-3.0 |
pol-is/polisClientParticipation | js/views/conversation-stats-header.js | 1248 | // Copyright (C) 2012-present, The Authors. 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 in the hope that it will be useful, but WITHOUT ANY WARRANTY... | agpl-3.0 |
gabrys/wikidot | lib/ozone/php/core/Action.php | 1055 | <?php
/**
* Wikidot - free wiki collaboration software
* Copyright (c) 2008, Wikidot 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 (... | agpl-3.0 |
coorasse/Airesis | app/models/proposal_comment_search.rb | 3299 | class ProposalCommentSearch
attr_reader :section
def initialize(params, proposal, current_user = nil)
@proposal = proposal
@all = params[:all]
@view = params[:view]
@page = params[:page]
@comment_id = params[:comment_id].to_i
@section_id = params[:section_id]
@section = Section.find(@se... | agpl-3.0 |
Comunitea/CMNT_004_15 | project-addons/mrp_repair_custom/__init__.py | 983 | ##############################################################################
#
# Copyright (C) 2015 Comunitea Servicios Tecnológicos All Rights Reserved
# $Omar Castiñeira Saaevdra <omar@comunitea.com>$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | agpl-3.0 |
asm-helpful/helpful-web | db/migrate/20140626180318_drop_respond_laters_table.rb | 109 | class DropRespondLatersTable < ActiveRecord::Migration
def change
drop_table :respond_laters
end
end
| agpl-3.0 |
uniteddiversity/mycollab | mycollab-services/src/main/java/com/esofthead/mycollab/module/crm/dao/LeadMapper.java | 5377 | /**
* This file is part of mycollab-services.
*
* mycollab-services 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.
*
* mycolla... | agpl-3.0 |
Extentsoftware/Quest | src/Quest.LAS/Model/PermissionGroup.cs | 654 | #pragma warning disable 0649
using System;
namespace Quest.LAS.Model.Processor
{
internal class PermissionGroup
{
public DateTime? DateAdded;
public DateTime? DateUpdated;
public string Description;
public bool HasChangeMaxRecords;
public bool HasCrew;
public b... | agpl-3.0 |
melisamx/melisa-kernel | third_party/melisa-kernel/release/events/core.input.inyect_php.php | 201 | <?php
Event()->listen('core.input.inyect_php', function($field, &$value) {
return get_instance()->app->load()->libraries('Melisa\core\input\Inyect')
->init($field, $value);
});
| agpl-3.0 |
monicahq/monica | tests/cypress/integration/contacts/debts_spec.js | 1652 | describe('Debts', function () {
beforeEach(function () {
cy.login();
cy.createContact('John', 'Doe', 'Man');
});
it('lets you manage a debt', function () {
cy.url().should('include', '/people/h:');
cy.get('[cy-name=debt-blank-state]').should('be.visible');
// add a debt
cy.get('[cy-name=... | agpl-3.0 |
YellowDi/Sandbox | app/libraries/Captcha.php | 2570 | <?php
class Captcha
{
var $width='60';
var $num='4';
var $height='20';
var $name='randcode';
public function __construct($conf="")
{
if($conf!="")
{
foreach($conf as $key=>$value)
{
$this->$key=$value;
}
}
}
function show()
{
$CI = & get_instance();
$CI->l... | agpl-3.0 |
m-sc/yamcs | yamcs-xtce/src/main/java/org/yamcs/xtce/AggregateDataType.java | 11048 | package org.yamcs.xtce;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.yamcs.protobuf.Yamcs.Value;
import org.yamcs.protobuf.Yamcs.Value.Type;
import org.yamcs.xtce.util.AggregateMemberNames;
import com.google.gson.Gso... | agpl-3.0 |
cgi-eoss/fstep | fs-tep-worker/src/test/java/com/cgi/eoss/fstep/worker/worker/FstepWorkerIT.java | 3795 | package com.cgi.eoss.fstep.worker.worker;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assume.assumeTrue;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.UUID;
import org.junit.After;
import org.junit... | agpl-3.0 |
KWZwickau/KREDA-Sphere | Sphere/Common/Extension/Faker/Provider/cs_CZ/Internet.php | 1911 | <?php
namespace Faker\Provider\cs_CZ;
class Internet extends \Faker\Provider\Internet
{
protected static $freeEmailDomain = array(
'gmail.com',
'yahoo.com',
'seznam.cz',
'atlas.cz',
'centrum.cz',
'email.cz',
'post.cz'
);
protected static $tld = arr... | agpl-3.0 |
SCUEvals/scuevals-api | db/alembic/versions/20171012150636_add_university_id_to_major.py | 531 | """Add university id to Major
Revision ID: 3c13dfa66a11
Revises: 8e798b2a2354
Create Date: 2017-10-12 15:06:36.201364
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3c13dfa66a11'
down_revision = '8e798b2a2354'
branch_labels = None
depends_on = None
def upgra... | agpl-3.0 |
spyrosg/VISION-Cloud-Monitoring | vismo-core/src/main/java/gr/ntua/vision/monitoring/metrics/HostMemoryMetric.java | 176 | package gr.ntua.vision.monitoring.metrics;
/**
*
*/
public interface HostMemoryMetric {
/**
* @return the memory usage of the host.
*/
HostMemory get();
}
| agpl-3.0 |
B3Partners/geo-ov | src/main/webapp/openlayers/lib/OpenLayers/Format/WFST/v1.js | 16760 | /* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the 2-clause BSD license.
* See license.txt in the OpenLayers distribution or repository for the
* full text of the license. */
/**
* @requires OpenLayers/Format/XML.js
* @requires Open... | agpl-3.0 |
akuhtz/serial-communication-manager | tests/test57-list-usb-ports/src/test57/Test57.java | 4389 | /*
* This file is part of SerialPundit.
*
* Copyright (C) 2014-2018, Rishi Gupta. All rights reserved.
*
* The SerialPundit is DUAL LICENSED. It is made available under the terms of the GNU Affero
* General Public License (AGPL) v3.0 for non-commercial use and under the terms of a commercial
* license for com... | agpl-3.0 |
PeerBay/PeerSocial | web/bower_components/blob-util/bin/dev-server.js | 1493 | #!/usr/bin/env node
'use strict';
var HTTP_PORT = 8001;
var Promise = require('bluebird');
var request = require('request');
var http_server = require("http-server");
var fs = require('fs');
var indexfile = "./test/test.js";
var dotfile = "./test/.test-bundle.js";
var outfile = "./test/test-bundle.js";
var watchify ... | agpl-3.0 |
dzc34/Asqatasun | rules/rules-seo1.0/src/main/java/org/asqatasun/rules/seo/SeoRule05011.java | 2245 | /*
* 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... | agpl-3.0 |
NicolasEYSSERIC/Silverpeas-Components | kmelia/kmelia-ejb/src/main/java/com/silverpeas/kmelia/dao/TopicSearchDaoImpl.java | 3603 | /**
* 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... | agpl-3.0 |
David-Development/ownCloud-Account-Importer | src/main/java/com/nextcloud/android/sso/api/NextcloudRetrofitServiceMethod.java | 14852 | package com.nextcloud.android.sso.api;
import android.util.Log;
import androidx.annotation.Nullable;
import com.nextcloud.android.sso.aidl.NextcloudRequest;
import com.nextcloud.android.sso.helper.Okhttp3Helper;
import com.nextcloud.android.sso.helper.ReactivexHelper;
import com.nextcloud.android.sso.helper.Retrofit... | agpl-3.0 |
jzinedine/CMDBuild | core/src/main/java/org/cmdbuild/auth/AuthenticationStore.java | 218 | package org.cmdbuild.auth;
import org.cmdbuild.services.auth.UserType;
public interface AuthenticationStore {
UserType getType();
void setType(UserType type);
Login getLogin();
void setLogin(Login login);
}
| agpl-3.0 |
dmitr25/demobbed-viewer | js/nuEventsData/charm/loadEvent231062848.js | 16236 | demobbed.resetEvent();
demobbed.event().id(231062848);
demobbed.event().date(1222594299000);
demobbed.event().hitsTT()[0] = [
new HitTT(10000, -189.12, -477.78, 134.47),
new HitTT(10001, -186.48, -477.78, 33.95),
new HitTT(10002, -191.76, -477.78, 143.69),
new HitTT(10003, -191.43, -464.38, 9.95),
new HitTT... | agpl-3.0 |
horus68/SuiteCRM-Horus68 | tests/unit/modules/CampaignLog/CampaignLogTest.php | 2231 | <?php
class CampaignLogTest extends SuiteCRM\StateCheckerPHPUnitTestCaseAbstract
{
public function setUp()
{
parent::setUp();
global $current_user;
get_sugar_config_defaults();
$current_user = new User();
}
public function testCampaignLog()
{
//execute th... | agpl-3.0 |
akvo/akvo-sites-zz-template | code/wp-content/plugins/google-website-translator/classes/admin.class.php | 12679 | <?php
class PrisnaGWTAdmin {
public static function initialize() {
if (!is_admin())
return;
add_action('admin_init', array('PrisnaGWTAdmin', '_initialize'));
add_action('admin_head', array('PrisnaGWTAdmin', '_remove_messages'));
add_action('plugins_loaded', array('PrisnaGWTAdmin', 'initializeMenus'));
... | agpl-3.0 |
jgalle/DRC | app/controllers/glass_bottle_shapes_controller.rb | 2468 | class GlassBottleShapesController < ApplicationController
# GET /glass_bottle_shapes
# GET /glass_bottle_shapes.json
def index
@glass_bottle_shapes = GlassBottleShape.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @glass_bottle_shapes }
end
end
# G... | agpl-3.0 |
baca0/churming-server | routes/nation.js | 1152 | module.exports = function (app, Nation) {
app.get('/nations', function (req, res) {
Nation.find(function (err, countries) {
if (err) {
return res.status(500).send({error: 'database failure'});
}
res.send(countries);
})
});
app.get('/nation... | agpl-3.0 |
RainLoop/rainloop-webmail | dev/Stores/User/Folder.js | 6187 | import ko from 'ko';
import _ from '_';
import { settingsGet } from 'Storage/Settings';
import { FolderType } from 'Common/Enums';
import { UNUSED_OPTION_VALUE } from 'Common/Consts';
import { isArray, folderListOptionsBuilder } from 'Common/Utils';
import { getFolderInboxName, getFolderFromCacheList } from 'Common/C... | agpl-3.0 |
marek-stoj/justRead.it | Src/DotNet/JustReadIt.Core/Common/StringUtil.cs | 18095 | // Copyright (c) 2008 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | agpl-3.0 |
malexmave/pdok-mirror | controller/uploader.py | 9092 | # -*- encoding: utf-8 -*-
"""Upload files to InternetArchive.
Copyright (C) 2017 Max Maass
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... | agpl-3.0 |
openfisca/openfisca-matplotlib | openfisca_matplotlib/tests/test_dataframes.py | 2507 | # -*- coding: utf-8 -*-
from __future__ import division
import os
from openfisca_core.decompositions import get_decomposition_json
from openfisca_france import FranceTaxBenefitSystem
from openfisca_matplotlib.tests.test_graphs import create_simulation
from openfisca_matplotlib.dataframes import data_frame_from_de... | agpl-3.0 |
fengoffice/fengoffice | application/models/project_files/base/BaseProjectFiles.class.php | 7396 | <?php
/**
* ProjectFiles class
*
* @author Ilija Studen <ilija.studen@gmail.com>
*/
abstract class BaseProjectFiles extends ContentDataObjects {
/**
* Column name => Column type map
*
* @var array
* @static
*/
static private $columns = array(
'object_id' => DATA_TYPE_INTEGER,
... | agpl-3.0 |
torakiki/pdfsam | pdfsam-gui/src/test/java/org/pdfsam/ui/log/LogLevelTest.java | 1463 | /*
* This file is part of the PDF Split And Merge source code
* Created on 22/ago/2014
* Copyright 2017 by Sober Lemur S.a.s. di Vacondio Andrea (info@pdfsam.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
* publish... | agpl-3.0 |
JBetser/MiDax | IGApi/IGPublicPcl/dto/endpoint/marketdetails/v2/DepositBand.cs | 1221 | using System.Collections.Generic;
using dto.endpoint.auth.session;
namespace dto.endpoint.marketdetails.v2
{
/// <Summary>
///
/// IG API - Sample Client
///
/// Copyright 2014 IG Index
///
/// Licensed under the Apache License, Version 2.0 (the 'License')
/// You may not use this file except ... | agpl-3.0 |
refugee-it/note_system | web/custom/lang/de/nationality.lang.php | 1414 | <?php
/* Copyright (C) 2016-2017 Stephan Kreutzer
*
* This file is part of note system for refugee-it.de.
*
* note system for refugee-it.de is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3 or any later version,
* as published by the F... | agpl-3.0 |
Paperight/website | common/src/main/java/com/paperight/content/Article.java | 4933 | package com.paperight.content;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Pers... | agpl-3.0 |
ddmck/Empirical-Core | app/models/csv_exporter/standards/topic_student.rb | 834 | module CsvExporter::Standards
class TopicStudent
def header_row
[
'Page Title',
'Student Name',
'Activities',
'Average',
'Mastery Status'
]
end
def data_row(record, filters)
json_hash = ProgressReports::Standards::StudentSerializer.new(record).as_... | agpl-3.0 |
alexhuang888/xibo-cms | tests/integration/ResolutionTest.php | 8110 | <?php
/*
* Spring Signage Ltd - http://www.springsignage.com
* Copyright (C) 2015 Spring Signage Ltd
* (ResolutionTest.php)
*/
namespace Xibo\Tests\Integration;
use Xibo\Helper\Random;
use Xibo\OAuth2\Client\Entity\XiboResolution;
use Xibo\Tests\LocalWebTestCase;
/**
* Class ResolutionTest
* @package Xibo\Test... | agpl-3.0 |
RBSChange/modules.videos | actions/DisplayYoutubeVideoBoAction.class.php | 381 | <?php
/**
* videos_DisplayYoutubeVideoBoAction
* @package modules.videos.actions
*/
class videos_DisplayYoutubeVideoBoAction extends f_action_BaseAction
{
/**
* @param Context $context
* @param Request $request
*/
public function _execute($context, $request)
{
$request->setParameter("video", $this->getDoc... | agpl-3.0 |
ging/isabel | components/audio/app4/common/vumeter.cpp | 3353 | /////////////////////////////////////////////////////////////////////////
//
// ISABEL: A group collaboration tool for the Internet
// Copyright (C) 2009 Agora System S.A.
//
// This file is part of Isabel.
//
// Isabel is free software: you can redistribute it and/or modify
// it under the terms of the Affero GNU Ge... | agpl-3.0 |
mtlchun/edx | lms/djangoapps/student_account/test/test_views.py | 19573 | # -*- coding: utf-8 -*-
""" Tests for student account views. """
import re
from unittest import skipUnless
from urllib import urlencode
import json
import mock
import ddt
import markupsafe
from django.test import TestCase
from django.conf import settings
from django.core.urlresolvers import reverse
from django.core i... | agpl-3.0 |
chk1/openmensa | config/initializers/geocoder.rb | 398 | # config/initializers/geocoder.rb
Geocoder.configure(
# geocoding service
lookup: :nominatim,
http_headers: {'User-Agent' => 'RubyGeocoder openmensa.org / info@openmensa.org'},
# geocoding service request timeout, in seconds (default 3):
timeout: 3,
# set default units to kilometers:
units: :km,
# cac... | agpl-3.0 |
nekodex/osu-web | resources/views/layout/_nav2.blade.php | 7407 | {{--
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.
--}}
<div class="nav2 js-nav-button">
<div class="nav2__colgroup nav2__colgroup--menu js-nav-button--container">
<div class="... | agpl-3.0 |
myplaceonline/myplaceonline_rails | db/migrate/20160417200614_add_columns2_to_emails.rb | 116 | class AddColumns2ToEmails < ActiveRecord::Migration
def change
add_column :emails, :draft, :boolean
end
end
| agpl-3.0 |
django-rea/nrp | django_rea/valueaccounting/templatetags/footer_tag.py | 332 | from django import template
from django_rea.valueaccounting.models import HomePageLayout
register = template.Library()
def footer():
try:
layout = HomePageLayout.objects.get(id=1)
footer = layout.footer
except HomePageLayout.DoesNotExist:
footer = ""
return footer
register.simple... | agpl-3.0 |
shenan4321/BIMplatform | generated/cn/dlb/bim/models/ifc4/IfcOutletTypeEnum.java | 9774 | /**
* Copyright (C) 2009-2014 BIMserver.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 your option) any later version.
*
* This ... | agpl-3.0 |
grafana/grafana | public/app/features/runtime/init.ts | 1376 | import { PanelData } from '@grafana/data';
import { getDashboardSrv } from 'app/features/dashboard/services/DashboardSrv';
import { getTimeSrv } from 'app/features/dashboard/services/TimeSrv';
/**
* This will setup features that are accessible through the root window location
*
* This is useful for manipulating the... | agpl-3.0 |
kaltura/KalturaGeneratedAPIClientsCsharp | KalturaClient/Types/MetroPcsDistributionProfileBaseFilter.cs | 2340 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | agpl-3.0 |
cherrygirl/micronaet7 | Script/Analisi fatture IMAP/header_analisi_imap.py | 3358 | #!/usr/bin/python
# -*- encoding: utf-8 -*-
# Before export data with sprix 549
# Elaboration
# Auto open CSV files
import os
import sys
import imaplib
import email
import subprocess
# Access IMAP folder:
mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login('zipperr.fatture@gmail.com', 'password')
mail.list()
mail.s... | agpl-3.0 |
HelloLily/hellolily | lily/cases/admin.py | 3229 | from django.contrib import admin
from lily.tenant.admin import TenantFilter, TenantFilteredChoicesMixin, EstimateCountPaginator
from .models import Case, CaseType, CaseStatus
@admin.register(Case)
class CaseAdmin(TenantFilteredChoicesMixin, admin.ModelAdmin):
# List view settings.
list_max_show_all = 100
... | agpl-3.0 |
glidernet/python-ogn-client | tests/parser/test_utils.py | 3090 | import unittest
from datetime import datetime, timezone
from ogn.parser.utils import parseAngle, createTimestamp, CheapRuler, normalized_quality
class TestStringMethods(unittest.TestCase):
def test_parseAngle(self):
self.assertAlmostEqual(parseAngle('05048.30'), 50.805, 5)
def proceed_test_data(self... | agpl-3.0 |
Quickpaster/quickpaster | client/main.js | 1908 | import Tasks from './../tasks';
import { uuidToWriteable, uuidToUrlable } from './../lib/uuidGen';
import { initClientId, getClientId, clientIdNotifyConnected } from './lib/userId';
import start from './lib/engine';
import App from './app';
Meteor.startup(() => {
window.addEventListener('beforeunload', e => conso... | agpl-3.0 |
cointhink/rails | db/seeds.rb | 4746 | # Access Control
AclFlag.create({name:"blog"})
# Exchanges
[ [{name:'cointhink', display_name:'CoinThink',country_code: 'us', active: false}, 0.5],
[{name:'mtgox', display_name:'Mt. Gox',country_code: 'jp', active: false}, 0.6],
[{name:'bitstamp', display_name:'Bitstamp', country_code: 'si', active: tr... | agpl-3.0 |
open-dash/open-dash-diy | app/api/cameras.js | 1183 | const express = require('express');
const request = require('request');
const bodyParser = require('body-parser');
const app = express();
var SelfReloadJSON = require('self-reload-json');
const appRoot = require('app-root-path');
var settings = new SelfReloadJSON(appRoot + '/data/settings.json');
var cameras = new Self... | agpl-3.0 |
osuripple/pep.py | events/partLobbyEvent.py | 428 | from common.log import logUtils as log
from helpers import chatHelper as chat
def handle(userToken, _):
# Get usertoken data
username = userToken.username
# Remove user from users in lobby
userToken.leaveStream("lobby")
# Part lobby channel
# Done automatically by the client
chat.partChannel(channel="#lobby",... | agpl-3.0 |
Lidefeath/ACE | Source/ACE.Server/WorldObjects/Clothing.cs | 1700 | using ACE.Database.Models.Shard;
using ACE.Database.Models.World;
using ACE.DatLoader;
using ACE.DatLoader.FileTypes;
using ACE.Entity;
using ACE.Entity.Enum;
using ACE.Entity.Enum.Properties;
using System.IO;
namespace ACE.Server.WorldObjects
{
public class Clothing : WorldObject
{
/// <summary>
... | agpl-3.0 |
python27/AlgorithmSolution | hdoj/BigNum/N!.cpp | 1820 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#if 0
#define N 50050
int ret[N];
int tmp[N];
char strn[N];
int intn[N];
int pos = 0;
void product(int* A, int nA, int* B, int nB, int *C);
void nfrac(int n)
{
for (int i = 0; i < N; ++i) ret[i] = 0;
ret[0] = 1;
for (int i = n; i >= 1... | agpl-3.0 |
Micronaet/micronaet-bom | bom_half_worked/__init__.py | 1038 | # -*- coding: utf-8 -*-
###############################################################################
#
# Copyright (C) 2001-2014 Micronaet SRL (<http://www.micronaet.it>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License a... | agpl-3.0 |
RBSChange/modules.twitterconnect | actions/ResendTweetAction.class.php | 1129 | <?php
/**
* twitterconnect_ResendTweetAction
* @package modules.twitterconnect.actions
*/
class twitterconnect_ResendTweetAction extends f_action_BaseJSONAction
{
/**
* @param Context $context
* @param Request $request
*/
public function _execute($context, $request)
{
$result = array();
$module = $requ... | agpl-3.0 |
mumuki/mumuki-laboratory | app/controllers/api/roles_controller.rb | 1025 | module Api
class RolesController < BaseController
include WithUserParams
before_action :set_slug!
before_action :set_course!
before_action :set_user!, except: :create
before_action :authorize_janitor!
def create
@user = User.create_if_necessary(user_params)
@user.attach! role, @c... | agpl-3.0 |
diogo-andrade/DataHubSystem | petascope/src/main/java/petascope/swe/datamodel/AbstractSimpleComponent.java | 3136 | /*
* This file is part of rasdaman community.
*
* Rasdaman community 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.
*
* Rasdam... | agpl-3.0 |
md11235/fengoffice | language/fr_fr/lang.js | 39606 | locale = 'fr_fr';
addLangs({
'more info': 'Plus d\'Information',
'less info': 'Moins d\'Information',
'projects': 'Espaces de Travails',
'see more': 'Voir Plus',
'filter members': 'Filtrer les Membres',
'check in': '<b>S\'Enregistrer</b>',
'cannot check in': 'Impossible de s\'Enregistrer',
'add as new revision ... | agpl-3.0 |
gsnbng/erpnext | erpnext/loan_management/doctype/loan_interest_accrual/loan_interest_accrual.py | 7653 | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe, erpnext
from frappe import _
from frappe.model.document import Document
from frappe.utils import (nowdate, getdate, now_d... | agpl-3.0 |
yanlingling/xnjs | application/models/project_milestones/base/BaseProjectMilestone.class.php | 11137 | <?php
/**
* BaseProjectMilestone class
*
* @author Ilija Studen <ilija.studen@gmail.com>
*/
abstract class BaseProjectMilestone extends ProjectDataObject {
protected $objectTypeIdentifier = 'mi';
// -------------------------------------------------------
// Access methods
... | agpl-3.0 |
protyposis/Aurio | Aurio/Aurio.FFmpeg/VideoOutputConfig.cs | 2172 | //
// Aurio: Audio Processing, Analysis and Retrieval Library
// Copyright (C) 2010-2017 Mario Guggenberger <mg@protyposis.net>
//
// 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, e... | agpl-3.0 |