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.nexusplay.containers;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.sql.SQLException;
import org.apache.commons.io.IOUtils;
import com.nexusplay.db.SubtitlesD... | AlexCristian/NexusPlay | src/com/nexusplay/containers/Change.java | Java | agpl-3.0 | 4,573 |
from ctypes import *
import ctypes.util
import threading
import os
import sys
from warnings import warn
from functools import partial
import collections
import re
import traceback
# vim: ts=4 sw=4 et
if os.name == 'nt':
backend = CDLL('mpv-1.dll')
fs_enc = 'utf-8'
else:
import locale
lc, enc = locale... | Frechdachs/python-mpv | mpv.py | Python | agpl-3.0 | 42,232 |
/*
* The Kuali Financial System, a comprehensive financial management system for higher education.
*
* Copyright 2005-2017 Kuali, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundat... | quikkian-ua-devops/will-financials | kfs-purap/src/main/java/org/kuali/kfs/module/purap/document/validation/impl/RequisitionNewIndividualItemValidation.java | Java | agpl-3.0 | 2,205 |
<?php
/**
* plentymarkets shopware connector
* Copyright © 2013 plentymarkets GmbH
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public Li... | k-30/plentymarkets-shopware-connector | Components/Soap/Models/PlentySoapObject/ItemBase.php | PHP | agpl-3.0 | 3,646 |
# -*- coding: utf-8 -*-
"""
2020-09-07 Cornelius Kölbel <cornelius.koelbel@netknights.it>
Add exception
2017-04-26 Friedrich Weber <friedrich.weber@netknights.it>
Make it possible to check for correct LDAPS/STARTTLS settings
2017-01-08 Cornelius Kölbel <cornelius.koelbel@netknights.it>
... | privacyidea/privacyidea | tests/ldap3mock.py | Python | agpl-3.0 | 28,972 |
package storage
import (
"fmt"
"strings"
"time"
mgo "github.com/ilius/mgo"
"github.com/ilius/mgo/bson"
)
func ModifyIndexTTL(db mgo.Database, collection string, index mgo.Index) error {
keyInfo, err := mgo.ParseIndexKey(index.Key)
if err != nil {
return err
}
expireAfterSeconds := int(index.ExpireAfter / ... | ilius/starcal-server | pkg/scal/storage/index_ttl.go | GO | agpl-3.0 | 1,140 |
/**
* Copyright (C) 2000 - 2012 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... | NicolasEYSSERIC/Silverpeas-Core | web-core/src/main/java/com/stratelia/silverpeas/peasCore/SilverpeasWebUtil.java | Java | agpl-3.0 | 5,021 |
/*
* Copyright (c) 2012 - 2020 Splice Machine, Inc.
*
* This file is part of Splice Machine.
* Splice Machine is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the Free Software Foundation, either
* version 3, or (at your option) ... | splicemachine/spliceengine | splice_si_api/src/main/java/com/splicemachine/si/impl/Tracer.java | Java | agpl-3.0 | 4,164 |
/*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein are proprie... | rahith/ComtalkA-S | src/java/com/sapienter/jbilling/server/user/CompanyWS.java | Java | agpl-3.0 | 3,574 |
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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... | phenotips/variant-store | integration/api/src/main/java/org/phenotips/variantStoreIntegration/VariantStoreVariant.java | Java | agpl-3.0 | 3,411 |
/*
* Created on 20/giu/2010
*
* Copyright 2010 by Andrea Vacondio (andrea.vacondio@gmail.com).
*
* This file is part of the Sejda source code
*
* 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 Softwa... | torakiki/sejda | sejda-model/src/main/java/org/sejda/model/exception/TaskWrongPasswordException.java | Java | agpl-3.0 | 1,584 |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | partner partnerclient plan', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let model = st... | appknox/irene | tests/unit/models/partner/partnerclient-plan-test.js | JavaScript | agpl-3.0 | 404 |
/*
* Copyright (C) 2000 - 2016 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... | auroreallibe/Silverpeas-Core | core-services/personalOrganizer/src/main/java/org/silverpeas/core/personalorganizer/service/JournalDAO.java | Java | agpl-3.0 | 30,469 |
/**
* Copyright (C) 2000 - 2013 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 specia... | CecileBONIN/Silverpeas-Core | lib-core/src/main/java/com/stratelia/webactiv/beans/admin/SpaceProfileInstManager.java | Java | agpl-3.0 | 14,175 |
package org.bimserver.database.query.literals;
/******************************************************************************
* Copyright (C) 2009-2019 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
* publi... | opensourceBIM/BIMserver | BimServer/src/org/bimserver/database/query/literals/StringLiteral.java | Java | agpl-3.0 | 1,207 |
<?php
/*********************************************************************************
* The contents of this file are subject to the SugarCRM Master Subscription
* Agreement ("License") which can be viewed at
* http://www.sugarcrm.com/crm/en/msa/master_subscription_agreement_11_April_2011.pdf
* By installing or... | harish-patel/ecrm | modules/Roles/language/nb_NO.lang.php | PHP | agpl-3.0 | 2,968 |
<?php
/**
* Manager for Plus
*
* !! Most of Plus is handled via Discovery or Wire\Paywall !!
*/
namespace Minds\Core\Plus;
use Minds\Core\Di\Di;
use Minds\Core\Config;
use Minds\Core\Data\ElasticSearch;
use Minds\Core\Data\Cassandra;
use Minds\Core\Wire\Paywall\PaywallEntityInterface;
use Minds\Core\Rewards\Contri... | Minds/engine | Core/Plus/Manager.php | PHP | agpl-3.0 | 8,138 |
# -*- coding: utf-8 -*-
"""
Models for Student Identity Verification
This is where we put any models relating to establishing the real-life identity
of a student over a period of time. Right now, the only models are the abstract
`PhotoVerification`, and its one concrete implementation
`SoftwareSecurePhotoVerification`... | jolyonb/edx-platform | lms/djangoapps/verify_student/models.py | Python | agpl-3.0 | 40,982 |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | alanjw/GreenOpenERP-Win-X86 | openerp/addons/stock/stock.py | Python | agpl-3.0 | 163,768 |
/********
* This file is part of Ext.NET.
*
* Ext.NET 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.
*
... | codeyu/Ext.NET.Community | Ext.Net/Factory/Config/RadialAxisConfig.cs | C# | agpl-3.0 | 3,283 |
package uploads
import (
"context"
"errors"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"sync"
"time"
"github.com/go-kit/log/level"
"github.com/prometheus/client_golang/prometheus"
"github.com/grafana/loki/pkg/storage/chunk"
"github.com/grafana/loki/pkg/storage/chunk/local"
chunk_util "github.com/g... | grafana/loki | pkg/storage/stores/shipper/uploads/table_manager.go | GO | agpl-3.0 | 7,136 |
/*
* SessionShiny.cpp
*
* 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 License.... | nvoron23/rstudio | src/cpp/session/modules/shiny/SessionShiny.cpp | C++ | agpl-3.0 | 3,808 |
from django import forms
# future use | DemocracyFoundation/Epitome | Agora/forms.py | Python | agpl-3.0 | 40 |
/**
* 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 ... | shenan4321/BIMplatform | generated/cn/dlb/bim/models/ifc4/IfcSubContractResourceTypeEnum.java | Java | agpl-3.0 | 7,689 |
# frozen_string_literal: true
require 'rails_helper'
describe Api::LessonsController, type: :request do
include RequestSpecUserSetup
context 'is not logged in' do
it 'can not create' do
post '/api/lessons', {}
expect(response.status).to eq 401
end
context 'data exists' do
let(:less... | NullVoxPopuli/aeonvera | app/resources/api/lessons/request_spec.rb | Ruby | agpl-3.0 | 4,322 |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
global $mod_strings;
$module_menu = Array(
Array("index.php?module=Teams&action=EditView&return_module=Teams&return_action=DetailView", $mod_strings['LNK_NEW_TEAM'], "CreateTeams"),
Array("index.php?module=Teams&action=index", $mod_strin... | harish-patel/ecrm | modules/Teams/Menu.php | PHP | agpl-3.0 | 565 |
///*
// * Tanaguru - Automated webpage assessment
// * Copyright (C) 2008-2017 Tanaguru.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
// * Lic... | Tanaguru/Tanaguru | rules/rgaa3-2017/src/test/java/org/tanaguru/rules/rgaa32017/Rgaa32017Rule100901Test.java | Java | agpl-3.0 | 5,642 |
import { NPS } from './NPS'
export default NPS
| botpress/botpress | packages/ui-admin/src/app/NetPromoterScore/NetPromotingScore/index.tsx | TypeScript | agpl-3.0 | 47 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... | renderpci/dedalo-4 | lib/Zend/Media/Id3/Frame/Tpos.php | PHP | agpl-3.0 | 3,380 |
<?php
/* @var $this AenderungsantraegeController */
/* @var $model Aenderungsantrag */
$this->breadcrumbs = array(
Yii::t('app', 'Administration') => $this->createUrl('/admin/index'),
$model->label(2) => array('index'),
Yii::t('app', 'Create'),
);
$this->menu = array(
array('label' => $model->label... | joriki/antragsgruen | protected/views/admin/aenderungsantraege/create.php | PHP | agpl-3.0 | 639 |
'use strict';
/**
* @ngdoc directive
* @name GO.Core.CustomFields.goCustomFieldsEdit
*
* @description
* Prints custom fields form fieldsets.
*
*
* @param {string} ngModel The customFields model property of the model the customFields belong to
* @param {string} serverModel The custom fields server model.
*... | Intermesh/groupoffice-webclient | app/core/directives/custom-fields/custom-fields-edit-directive.js | JavaScript | agpl-3.0 | 5,358 |
/*
Copyright (C) 2017 Cloudbase Solutions SRL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distribute... | aznashwan/coriolis-web | src/components/molecules/DropdownFilter/DropdownFilter.tsx | TypeScript | agpl-3.0 | 4,086 |
"""
Block Depth Transformer
"""
from __future__ import absolute_import
from openedx.core.djangoapps.content.block_structure.transformer import BlockStructureTransformer
class BlockDepthTransformer(BlockStructureTransformer):
"""
Keep track of the depth of each block within the block structure. In case
o... | ESOedX/edx-platform | lms/djangoapps/course_api/blocks/transformers/block_depth.py | Python | agpl-3.0 | 2,059 |
#!/usr/bin/env ruby
# Exit codes:
# 0 Test run successful (even with reruns)
# 1 Unspecified error
# 2 Linting failed
# 4 No profile given
# 8 Gettext isn't installed
# 16 Gettext files did not validate
# 32 Cucumber failed
# 64 Rspec failed
# TODO: Use Open4 to continuously flush STDOUT output from the ... | psy-q/vinylla | bin/run_tests.rb | Ruby | agpl-3.0 | 2,817 |
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import ast
from odoo import api, exceptions, models, _
class MailComposeMessage(models.TransientModel):
_inherit = 'mail.compose.message'
@api.model
def _get_priorities(self):
"""
Load priorities... | mozaik-association/mozaik | mail_job_priority/wizards/mail_compose_message.py | Python | agpl-3.0 | 1,920 |
<?php
/**
* @package Billing
* @copyright Copyright (C) 2012-2016 BillRun Technologies Ltd. All rights reserved.
* @license GNU Affero General Public License Version 3; see LICENSE.txt
*/
/**
* This is a prototype for a services action.
*
*/
abstract class Billrun_ActionManagers_Services_... | BillRun/system | library/Billrun/ActionManagers/Services/Action.php | PHP | agpl-3.0 | 905 |
/*
* _ _ _
* | | | | | |
* | | __ _| |__ ___ ___ __ _| |_ Labcoat (R)
* | |/ _` | '_ \ / __/ _ \ / _` | __| Powerful development environment for Quirrel.
* | | (_| | |_) | (_| (_) | (_| | |_ Copyright (C) 2010 - 2013... | precog/labcoat-legacy | js/ace/mode/csharp.js | JavaScript | agpl-3.0 | 2,838 |
/*
* Copyright 2013 Anton Tananaev (anton.tananaev@gmail.com)
*
* 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 b... | datamatica-pl/traccar-orm | src/main/java/pl/datamatica/traccar/model/Device.java | Java | agpl-3.0 | 23,210 |
# -*- encoding: utf-8 -*-
##############################################################################
#
# res_partner
# Copyright (c) 2013 Codeback Software S.L. (http://codeback.es)
# @author: Miguel García <miguel@codeback.es>
# @author: Javier Fuentes <javier@codeback.es>
#
# This program is fr... | codeback/openerp-cbk_company_web_discount | res_company.py | Python | agpl-3.0 | 1,385 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | reidab/icecondor-server-rails | public/javascripts/ace/ace/search.js | JavaScript | agpl-3.0 | 9,844 |
/**
* Copyright (C) 2000 - 2013 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 specia... | CecileBONIN/Silverpeas-Core | ejb-core/node/src/main/java/com/stratelia/webactiv/util/node/model/NodeSelection.java | Java | agpl-3.0 | 3,220 |
import React, { useState } from 'react';
import { connect, ConnectedProps } from 'react-redux';
import { TimeZone } from '@grafana/data';
import { CollapsableSection, Field, Input, RadioButtonGroup, TagsInput } from '@grafana/ui';
import { selectors } from '@grafana/e2e-selectors';
import { FolderPicker } from 'app/cor... | grafana/grafana | public/app/features/dashboard/components/DashboardSettings/GeneralSettings.tsx | TypeScript | agpl-3.0 | 5,865 |
# Copyright (c) 2016 Sebastian Kanis
# This file is part of pi-led-control.
# pi-led-control 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 ve... | s0riak/pi-led-control | src/server/programs/scheduledprogram.py | Python | agpl-3.0 | 1,953 |
/**
* Based conceptually on the _.extend() function in underscore.js ( see http://documentcloud.github.com/underscore/#extend for more details )
* Copyright (C) 2012 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955
*
* This program is free software: you can redistribute it and/or mo... | 4poc/anpaste | app/lib/deep_extend_underscore_mixin.js | JavaScript | agpl-3.0 | 2,385 |
package output;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collections;
import javax.swing.JOptionPane;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Eleme... | YvonneTunnat/File-Format-Utilities | master/pdf-tools/src/main/java/output/XmlParserJhove.java | Java | agpl-3.0 | 6,325 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import django_pgjson.fields
import django.utils.timezone
import django.db.models.deletion
import djorm_pgarray.fields
import taiga.projects.history.models
class Migration(migratio... | 19kestier/taiga-back | taiga/projects/migrations/0001_initial.py | Python | agpl-3.0 | 6,634 |
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: gallery_settings.php
| Author: PHP-Fusion Development Team
+----------------------... | Talocha/PHP-Fusion | infusions/gallery/admin/gallery_settings.php | PHP | agpl-3.0 | 11,482 |
class Transfer < Entry
state_machine :initial => :open, :namespace => :transfer do
event :close do
transition :paid => :closed
end
state :open, :value => 400
state :closed, :value => 430
end
def required_account_types
[BankAccount, CreditCard]
end
end
| MHMDhub/regdel | app/models/entries/transfer.rb | Ruby | agpl-3.0 | 291 |
import CodeClipboard from './CodeClipboard';
export default CodeClipboard; | StarterInc/Ignite | src/docs/src/components/CodeClipboard/index.js | JavaScript | agpl-3.0 | 75 |
/*
* $Id: CardCollectionDao.java 475 2005-12-08 23:44:08 -0800 (Thu, 08 Dec 2005) ivaynberg $
* $Revision: 475 $
* $Date: 2005-12-08 23:44:08 -0800 (Thu, 08 Dec 2005) $
*
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "L... | AlienQueen/HatchetHarry | src/main/java/org/alienlabs/hatchetharry/persistence/dao/CardCollectionDao.java | Java | agpl-3.0 | 2,144 |
/*
* Copyright (C) 2011-2013 The Animo Project
* http://animotron.org
*
* This file is part of Animotron.
*
* Animotron 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... | animotron/core | src/main/java/org/animotron/cache/Cache.java | Java | agpl-3.0 | 1,548 |
<?php
/*
* This file is part of Kelinux-php.
* Copyright (C) 2012 Carlos Garcia Gomez neorazorx@gmail.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the... | NeoRazorX/kelinux-php | core/ke_model.php | PHP | agpl-3.0 | 1,890 |
// ----------> GENERATED FILE - DON'T TOUCH! <----------
// generator: ilarkesto.mda.legacy.generator.EntityGenerator
package scrum.server.collaboration;
import java.util.*;
import ilarkesto.persistence.*;
import ilarkesto.core.logging.Log;
import ilarkesto.base.*;
import ilarkesto.base.time.*;
import ilark... | hogi/kunagi | src/generated/java/scrum/server/collaboration/GComment.java | Java | agpl-3.0 | 13,504 |
const { Array } = require.main.require('./Tag/Classes');
class GetTag extends Array {
constructor(client) {
super(client, {
name: 'get',
args: [
{
name: 'array'
}, {
name: 'index'
}
],
minArgs: 2, maxArgs: 2
});
}
async execute(ctx, arg... | Ratismal/blargbot | Production/Tags/Array/Get.js | JavaScript | agpl-3.0 | 619 |
/*
This file is part of the Juju GUI, which lets users view and manage Juju
environments within a graphical interface (https://launchpad.net/juju-gui).
Copyright (C) 2012-2013 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License... | jrwren/juju-gui | test/test_browser_charm_details.js | JavaScript | agpl-3.0 | 25,436 |
import React, { useMemo } from 'react';
import { cx, css } from '@emotion/css';
import { MenuItem, WithContextMenu, MenuGroup, useTheme2 } from '@grafana/ui';
import { SelectableValue, GrafanaTheme2 } from '@grafana/data';
import { Seg } from './Seg';
import { unwrap } from './unwrap';
import { toSelectableValue } from... | grafana/grafana | public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/PartListSection.tsx | TypeScript | agpl-3.0 | 3,719 |
export const BattleAvatarNumbers = {
1: 'lucas',
2: 'dawn',
3: 'youngster-gen4',
4: 'lass-gen4dp',
5: 'camper',
6: 'picnicker',
7: 'bugcatcher',
8: 'aromalady',
9: 'twins-gen4dp',
10: 'hiker-gen4',
11: 'battlegirl-gen4',
12: 'fisherman-gen4',
13: 'cyclist-gen4',
14: 'cyclistf-gen4',
15: 'blackbelt-gen4dp... | shoedrip-unbound/dogars | src/Shoedrip/dexdata.ts | TypeScript | agpl-3.0 | 5,687 |
class Waypoint < ActiveRecord::Base
belongs_to :open_capacity
belongs_to :location, :validate => true, :dependent => :destroy
end
| rideconnection/clearinghouse | app/models/waypoint.rb | Ruby | agpl-3.0 | 134 |
# frozen_string_literal: true
# == Schema Information
#
# Table name: packages
#
# id :integer not null, primary key
# name :string(255)
# initial_price :decimal(, )
# at_the_door_price :decimal(, )
# attendee_limit :integer
# expires_at :dateti... | NullVoxPopuli/aeonvera | app/models/specs/package_spec.rb | Ruby | agpl-3.0 | 4,412 |
# -*- coding: utf-8 -*-
# Copyright 2016 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'OAuth2 Disable Login with Odoo.com',
'version': '10.0.1.0.0',
'category': 'Tools',
'author': 'Onestein',
'license': 'AGPL-3',
'depends': [... | VitalPet/addons-onestein | auth_oauth_disable_login_with_odoo/__manifest__.py | Python | agpl-3.0 | 394 |
public class Generic{
public static void main(String[] args){
Car <String> car1 = new Car <String> ();
car1.setName("Buick");
car1.setPrice("100");
System.out.printf("name=%s,price=%s\n",car1.getName(),car1.getPrice());
Car <Integer> car2 = new Car <Integer> ();
car2.setName(001);
car2.setPrice(100);
... | 314942468GitHub/JavaLearnning | src/Generic.java | Java | agpl-3.0 | 963 |
<?php
/**
* Created by iluxovi4
* Protected by SugarTalk.ru
*/
$dictionary['RealtyTemplates']['fields']['realtytemplates_contracts'] =
array (
'name' => 'realtytemplates_contracts',
'type' => 'link',
'relationship' => 'realtytemplates_contracts',
'source'=>'non-db',
'vname... | MarStan/sugar_work | custom/Extension/modules/RealtyTemplates/Ext/Vardefs/realty_contracts.php | PHP | agpl-3.0 | 362 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-11-22 07:11
from __future__ import unicode_literals
from django.core.management.sql import emit_post_migrate_signal
from django.db import migrations
def add_executive_group(apps, schema_editor):
# create group
db_alias = schema_editor.connection.al... | uclouvain/OSIS-Louvain | base/migrations/0208_create_role_executive.py | Python | agpl-3.0 | 951 |
import * as React from 'react';
import renderOrder from '../renderOrder';
import { RenderLayer } from '../browser_utils/Utils';
import { SharedState } from '../citybound';
import { shadersForLandUses } from './stripedShaders';
import colors from '../colors';
export const LAND_USES = [
"Residential",
"Commercia... | citybound/citybound | cb_browser_ui/src/planning_browser/ZonePlanningLayers.tsx | TypeScript | agpl-3.0 | 2,016 |
<?php
App::uses('AppController', 'Controller');
App::uses('Folder', 'Utility');
App::uses('File', 'Utility');
/**
* Attributes Controller
*
* @property Attribute $Attribute
*/
class AttributesController extends AppController {
public $components = array('Security', 'RequestHandler', 'Cidr');
public $paginate =... | 0x0mar/MISP | app/Controller/AttributesController.php | PHP | agpl-3.0 | 85,681 |
// Protocol Buffers for Go with Gadgets
//
// Copyright (c) 2013, The GoGo Authors. All rights reserved.
// http://github.com/gogo/protobuf
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributio... | disorganizer/brig | vendor/gx/ipfs/QmdxUuburamoF6zF9qjeQC4WYcWGbWuRmdLacMEsW8ioD8/gogo-protobuf/protoc-gen-gogo/generator/helper.go | GO | agpl-3.0 | 13,043 |
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package api
import (
"bufio"
"io"
"io/ioutil"
"net/http"
"os"
"strconv"
"strings"
"time"
l4g "github.com/alecthomas/log4go"
"github.com/gorilla/mux"
"github.com/mattermost/platform/einterfaces"
"github... | daizenberg/platform | api/admin.go | GO | agpl-3.0 | 21,623 |
// (c) Copyright Fernando Luis Cacciola Carballal 2000-2004
// Use, modification, and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See library home page at http://www.boost.org/libs/numeric/conv... | jbruestle/aggregate_btree | tiny_boost/boost/numeric/conversion/cast.hpp | C++ | agpl-3.0 | 2,229 |
/*
Copyright 2011-2012 Frederic Menou and others referred in AUTHORS file.
This file is part of Magrit.
Magrit 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 ... | ptitfred/magrit | server/sshd/src/main/java/org/kercoin/magrit/sshd/Server.java | Java | agpl-3.0 | 4,603 |
/**
* BLOCK: blocks
*
* Registering a basic block with Gutenberg.
* Simple block, renders and saves the same content without any interactivity.
*/
import "./editor.scss";
import "./style.scss";
import React from "react";
import Select from "react-select";
const {
PanelBody,
PanelRow,
ServerSideRender,
TextCon... | opencredit/badgeos | includes/blocks/src/evidence-block/block.js | JavaScript | agpl-3.0 | 6,640 |
<?php
/**
* @package WordPress
* @subpackage Fast_Blog_Theme
* @since Fast Blog 1.0
*/
?>
<!-- Sidebar -->
<ul id="sidebar" class="<?php fastblog_option('sidebar'); ?>">
<?php dynamic_sidebar('sidebar'); ?>
</ul>
<!-- // Sidebar --> | iwxfer/wordpress | wp-content/themes/fastblog/sidebar.php | PHP | agpl-3.0 | 238 |
# -*- coding: utf-8 -*-
from openerp import models, fields
class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line"
name = fields.Char(
string='Memo',
required=False,
default="",
)
| houssine78/addons | account_bank_statement_line_memo/models/models.py | Python | agpl-3.0 | 251 |
# -*- coding: utf-8 -*-
# Etalage -- Open Data POIs portal
# By: Emmanuel Raviart <eraviart@easter-eggs.com>
#
# Copyright (C) 2011, 2012 Easter-eggs
# http://gitorious.org/infos-pratiques/etalage
#
# This file is part of Etalage.
#
# Etalage is free software; you can redistribute it and/or modify
# it under the term... | Gentux/etalage | etalage/contexts.py | Python | agpl-3.0 | 7,875 |
<?php
/**
* StatusNet, the distributed open-source microblogging tool
*
* Subscribe to a peopletag
*
* PHP version 5
*
* LICENCE: 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, ei... | ZealIndustries/white-glint | actions/subscribepeopletag.php | PHP | agpl-3.0 | 5,342 |
/*
* Copyright (C) 2013 OpenJST Project
*
* 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 progra... | devmix/openjst | protocol/basic/commons/src/main/java/org/openjst/protocols/basic/encoder/ProtocolEncoder.java | Java | agpl-3.0 | 2,229 |
package com.thegame.server.presentation.exceptions;
import com.thegame.server.common.exceptions.TypifiedException;
/**
* @author e103880
*/
public class PresentationException extends TypifiedException{
private final PresentationExceptionType exceptionType;
private final Object[] arguments;
pu... | bernatmv/thegame | server/server-presentation/src/main/java/com/thegame/server/presentation/exceptions/PresentationException.java | Java | agpl-3.0 | 1,333 |
/**
* @ngdoc service
* @name ftepApp.SubscriptionService
* @description
* # SubscriptionService
* Service for subscriptions.
*/
'use strict';
define(['../ftepmodules', 'traversonHal'], function (ftepmodules, TraversonJsonHalAdapter) {
ftepmodules.service('SubscriptionService', [ 'ftepProperties', '$q', 'tra... | cgi-eoss/ftep | f-tep-portal/src/main/resources/app/scripts/services/subscriptionservice.js | JavaScript | agpl-3.0 | 4,930 |
var request = require("request");
var yaml = require("js-yaml");
var jsonfile = require("jsonfile");
request("https://raw.githubusercontent.com/unitedstates/congress-legislators/master/legislators-current.yaml", function(error, response, body) {
if (!error && response.statusCode == 200) {
var legislators = yaml... | EdenSG/democracy.io | bin/update-congress.js | JavaScript | agpl-3.0 | 1,161 |
/**
* 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
*/
if(!Ckeditor) var Ckeditor = {};
Ckeditor.Files ... | timble/openpolice-platform | component/ckeditor/resources/assets/js/ckeditor.files.js | JavaScript | agpl-3.0 | 2,785 |
var articles = null;
function restore_all_articles_view() {
$("#allbtn").button('toggle');
$('#articleslist').empty();
$('#articleslist').append(articles);
$('#filterwarning').hide();
}
function switch_category(category) {
if (typeof category != "undefined") {
$("#articleslist").empty();
var filtere... | gfidente/opinoid | webapp/static/js/country.js | JavaScript | agpl-3.0 | 1,017 |
/*
Copyright (c) 2014-2022 AscEmu Team <http://www.ascemu.org>
This file is released under the MIT license. See README-MIT for more information.
*/
#include "WowCrypt.hpp"
#include <algorithm>
#include <openssl/hmac.h>
WowCrypt::WowCrypt()
{
m_isInitialized = false;
m_clientWotlkDecryptKey.x = 0;
m_clie... | AscEmu/AscEmu | src/shared/Auth/WowCrypt.cpp | C++ | agpl-3.0 | 5,007 |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license a... | Sparfel/iTop-s-Portal | library/Zend/Service/Amazon/ResultSet.php | PHP | agpl-3.0 | 4,003 |
from django.contrib.auth.decorators import login_required
from django.shortcuts import get_object_or_404
from django.http import HttpResponseRedirect, Http404
from django.db.models import Q
from django.contrib import messages
from cc.general.util import render
import cc.ripple.api as ripple
from cc.profile.models impo... | rfugger/villagescc | cc/relate/views.py | Python | agpl-3.0 | 5,122 |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* The contents of this file are subject to the SugarCRM Master Subscription
* Agreement ("License") which can be viewed at
* http://www.sugarcrm.com/crm/e... | harish-patel/ecrm | metadata/linked_documentsMetaData.php | PHP | agpl-3.0 | 4,059 |
/**
* 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 | common/src/main/java/nl/mpi/yams/common/data/DataNodeHighlight.java | Java | agpl-3.0 | 1,663 |
# -*- coding: utf-8 -*-
##############################################################################
#
# Ingenieria ADHOC - ADHOC SA
# https://launchpad.net/~ingenieria-adhoc
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public Lice... | adhoc-dev/odoo-logistic | addons/logistic_x/__init__.py | Python | agpl-3.0 | 1,161 |
/*
* JBILLING CONFIDENTIAL
* _____________________
*
* [2003] - [2012] Enterprise jBilling Software Ltd.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Enterprise jBilling Software.
* The intellectual and technical concepts contained
* herein a... | rahith/ComtalkA-S | src/java/com/sapienter/jbilling/server/pluggableTask/admin/PluggableTaskBL.java | Java | agpl-3.0 | 10,431 |
<?php
define('DB_ADAPTER', 'mysql');
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', 'e3i71BFGRqda3');
define('DB_NAME', 'ppdev_mf');
define('DB_PREFIX', 'pp088_');
define('DB_CHARSET', 'utf8');
define('DB_PERSIST', false);
return true;
?>
| pjsangat/ppdev | config/config_mf.php | PHP | agpl-3.0 | 295 |
class CreateDidNotVotes < ActiveRecord::Migration[4.2]
def change
create_table :did_not_votes do |t|
t.references :user
t.references :motion
t.timestamps
end
add_index :did_not_votes, :user_id
add_index :did_not_votes, :motion_id
end
end
| piratas-ar/loomio | db/migrate/20120501012737_create_did_not_votes.rb | Ruby | agpl-3.0 | 277 |
module Isi
module FreeChat
Isi::db_hello __FILE__, name
require 'pathname'
ModuleRootDir = Pathname(__FILE__).dirname + name.split('::').last
# require all files for this module
require ModuleRootDir + 'protocol' # this should include everything else
require ModuleRootDir + 'free_cha... | HistoricalValue/freechat | isi/freechat.rb | Ruby | agpl-3.0 | 385 |
# Copyright 2015-2018 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from . import mass_reconcile
from . import advanced_reconciliation
| OCA/bank-statement-reconcile | account_mass_reconcile_ref_deep_search/models/__init__.py | Python | agpl-3.0 | 171 |
# == Schema Information
#
# Table name: terms
#
# id :integer not null, primary key
# sourced_id :string
# title :string
# start_at :datetime
# end_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
class Term < ApplicationRecord
has_many... | lepo-project/lepo | app/models/term.rb | Ruby | agpl-3.0 | 2,652 |
OC.L10N.register(
"templateeditor",
{
"Could not load template" : "امکان بارگذاری قالب وجود ندارد",
"Saved" : "ذخیره شد",
"Reset" : "تنظیم مجدد",
"An error occurred" : "یک خطا رخ داده است",
"Sharing email - public link shares (HTML)" : "ایمیل اشتراک گذاری-لینک عمومی اشتراک گذاری(HTML)",
... | jacklicn/owncloud | apps/templateeditor/l10n/fa.js | JavaScript | agpl-3.0 | 1,324 |
# -*- coding: utf-8 -*-
# © 2014 Elico Corp (https://www.elico-corp.com)
# Licence AGPL-3.0 or later(http://www.gnu.org/licenses/agpl.html)
import invoice
| Elico-Corp/openerp-7.0 | sale_bom_split_anglo_saxon/__init__.py | Python | agpl-3.0 | 158 |
<?php
/*
* This file is part of the FOSUserBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FOS\UserBundle\Model;
/**
* Interface to be impl... | lolostates/Lap | vendor/bundles/FOS/UserBundle/Model/GroupManagerInterface.php | PHP | agpl-3.0 | 1,483 |
/*
* StatusBarWidget.java
*
* Copyright (C) 2009-11 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY OR FITNE... | Sage-Bionetworks/rstudio | src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/status/StatusBarWidget.java | Java | agpl-3.0 | 1,945 |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'cs', {
options: 'Nastavení speciálních znaků',
title: 'Výběr speciálního znaku',
toolbar: 'Vložit speciální znak... | astrobin/astrobin | astrobin/static/astrobin/ckeditor/plugins/specialchar/lang/cs.js | JavaScript | agpl-3.0 | 339 |
/*
* 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... | MiguelSMendoza/Kunagi | WEB-INF/classes/scrum/client/communication/Pinger.java | Java | agpl-3.0 | 4,177 |
<?php
//============================================================+
// File name : tce_page_timer.php
// Begin : 2004-04-29
// Last Update : 2010-10-05
//
// Description : Display timer (date-time + countdown).
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecn... | satheesh586/raudra | shared/code/tce_page_timer.php | PHP | agpl-3.0 | 2,069 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2017... | VietOpenCPS/opencps-v2 | modules/backend-api-rest/src/main/java/org/opencps/api/dossierlog/model/DossierLogResultsModel.java | Java | agpl-3.0 | 2,858 |