code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
package ca.omny.request;
public class ApiResponse {
Object response;
int statusCode;
boolean encodeAsJson;
String contentType;
public ApiResponse(String response, int statusCode) {
this.response = response;
this.statusCode = statusCode;
this.encodeAsJson = false;
}
... | omnycms/omny-cms | libraries/omny-extension-points/src/main/java/ca/omny/request/ApiResponse.java | Java | agpl-3.0 | 1,197 |
#
# DO NOT MODIFY!!!!
# This file is automatically generated by racc 1.4.5
# from racc grammer file "ROR.racc".
#
require 'racc/parser'
#
# (generated by racc 1.4.5)
#
require '/usr/bin/ROR.rex.rb'
require 'cgi'
class ROTR < Racc::Parser
##### racc 1.4.5 generates ###
racc_reduce_table = [
0, 0, :racc_error,
4... | Adjamo/ROFL-On-Rails | ROR/ROR.tab.rb | Ruby | agpl-3.0 | 30,563 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_71) on Tue Aug 04 22:15:38 BST 2015 -->
<title>M-Index</title>
<meta name="date" content="2015-08-04">
<link rel="stylesheet" ty... | mmckenzie70/stockcontrol | doc/index-files/index-9.html | HTML | agpl-3.0 | 7,304 |
<?php
/**
* OpenEyes.
*
* (C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011
* (C) OpenEyes Foundation, 2011-2013
* This file is part of OpenEyes.
* OpenEyes 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 Softw... | FiviumAustralia/OpenEyes | protected/tests/unit/models/DrugSetTest.php | PHP | agpl-3.0 | 2,678 |
namespace Quest.Lib.Northgate
{
#if NG_RES_HANDLING
public class ResourcePosition
{
public string Callsign { get; internal set; }
public string Organisation { get; internal set; }
public DateTime LastFix { get; internal set; }
public Vector Vector { get; internal set; }
}
#... | Extentsoftware/Quest | src/Quest.Lib/Northgate/ResourcePosition.cs | C# | agpl-3.0 | 330 |
@charset "UTF-8";
/*=== GENERAL */
/*============*/
html, body {
background: #fafafa;
height: 100%;
font-family: "OpenSans", "Cantarell", "Helvetica", "Arial", "PingFang SC", "Microsoft YaHei", sans-serif;
}
/*=== Links */
a, button.as-link {
color: #2980b9;
outline: none;
}
/*=== Forms */
legend {
margin: 20p... | aledeg/FreshRSS | p/themes/Flat/flat.rtl.css | CSS | agpl-3.0 | 18,119 |
/*
* LIMES Core Library - LIMES – Link Discovery Framework for Metric Spaces.
* Copyright © 2011 Data Science Group (DICE) (ngonga@uni-paderborn.de)
*
* 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 Sof... | dice-group/LIMES | limes-core/src/main/java/org/aksw/limes/core/measures/mapper/topology/CrossesMapper.java | Java | agpl-3.0 | 2,374 |
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Pu... | maljac/odoo-addons | partner_person/__openerp__.py | Python | agpl-3.0 | 2,095 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'ug', {
copy: 'كۆچۈر',
copyError: 'تور كۆرگۈڭىزنىڭ بىخەتەرلىك تەڭشىكى تەھرىرلىگۈچنىڭ كۆچۈر مەشغۇلاتىنى ئۆزلۈكىدىن ئىجرا قىلىشىغا ... | afshinnj/php-mvc | assets/framework/ckeditor/plugins/clipboard/lang/ug.js | JavaScript | agpl-3.0 | 1,499 |
package uk.ac.sanger.mig.aker.services;
import java.io.File;
import java.io.IOException;
import uk.ac.sanger.mig.aker.domain.requests.OrderRequest;
import uk.ac.sanger.mig.aker.messages.Order;
/**
* @author pi1
* @since February 2015
*/
public interface WorkOrderService {
/**
* Send an order to a specific Rab... | wtsi-mig/aker-prototype | src/main/java/uk/ac/sanger/mig/aker/services/WorkOrderService.java | Java | agpl-3.0 | 1,035 |
/**
* 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.
*
... | opensourceBIM/BIMserver | PluginBase/generated/org/bimserver/models/ifc4/IfcWorkSchedule.java | Java | agpl-3.0 | 3,936 |
package org.bimserver.database.actions;
/******************************************************************************
* 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
* published by... | opensourceBIM/BIMserver | BimServer/src/org/bimserver/database/actions/BimDatabaseAction.java | Java | agpl-3.0 | 5,624 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- very ... | ezzye/ucrecovery | www/index.html | HTML | agpl-3.0 | 1,679 |
Registrants = new Meteor.Collection("registrants");
Registrants.allow({
// User must be logged in to register
insert: function (userId, doc) {
return !! userId;
}
});
Registrants.attachSchema(new SimpleSchema({
'first_name' : {
type: String,
label: "First Name",
max: 20... | quaker-io/pym-2015 | both/collections/registrants.js | JavaScript | agpl-3.0 | 7,333 |
"""
Tests suite for the views of the private messages app.
"""
from django.test import TestCase, Client
from django.conf import settings
from django.core.urlresolvers import reverse
from django.contrib.auth import get_user_model
from django.utils import timezone
from ..models import (PrivateMessage,
... | TamiaLab/carnetdumaker | apps/privatemsg/tests/test_views.py | Python | agpl-3.0 | 30,624 |
using System;
using System.Xml.Serialization;
namespace OfflineServer.Servers.Http.Responses
{
public static class VirtualItemType
{
public static readonly String powerup = "powerup";
public static readonly String amplifier = "amplifier";
public static readonly String skillMod = "skill... | berkay2578/nfsw-server | OfflineServer/Servers/Http/Responses/InventoryItemTrans.cs | C# | agpl-3.0 | 1,775 |
/*
* mudraw -- command line tool for drawing and converting documents
*/
#include "mupdf/fitz.h"
#if FZ_ENABLE_PDF
#include "mupdf/pdf.h" /* for pdf output */
#endif
#ifndef DISABLE_MUTHREADS
#include "mupdf/helpers/mu-threads.h"
#endif
#include <string.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h... | sebras/mupdf | source/tools/mudraw.c | C | agpl-3.0 | 62,849 |
/*
* Copyright (C) 2011-2017 Cojen.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 p... | cojen/Tupl | src/main/java/org/cojen/tupl/io/FileIO.java | Java | agpl-3.0 | 8,110 |
<?php
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the... | yinhm/sugarcrm | modules/UserPreferences/controller.php | PHP | agpl-3.0 | 2,758 |
# -*- coding: utf-8 -*-
# Copyright 2019 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields, api
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.multi
@api.depends(
"product_id",
)
def... | open-synergy/opnsynid-purchase-workflow | purchase_order_line_allowed_uom/models/purchase_order_line.py | Python | agpl-3.0 | 2,605 |
import {
ArcaneIntellect,
CancelledCasts,
DivertedEnergy,
ElementalBarrier,
FocusMagic,
GroundingSurge,
IreOfTheAscended,
MirrorImage,
RuneOfPower,
ShiftingPower,
SiphonedMalice,
TempestBarrier,
} from '@wowanalyzer/mage';
import CoreCombatLogParser from 'parser/core/CombatLogParser';
import Ar... | yajinni/WoWAnalyzer | analysis/magefrost/src/CombatLogParser.ts | TypeScript | agpl-3.0 | 3,317 |
/*
* 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-account/src/main/java/com/axelor/apps/account/service/payment/paymentvoucher/PayVoucherElementToPayService.java | Java | agpl-3.0 | 2,238 |
define(['handlebars', 'marked'], function(Handlebars, marked) {
return function(value) {
return new Handlebars.SafeString(marked(value));
};
});
| grouan/udata | js/templates/helpers/md.js | JavaScript | agpl-3.0 | 163 |
package com.tesora.dve.server.messaging;
/*
* #%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 ... | Tesora/tesora-dve-pub | tesora-dve-core/src/main/java/com/tesora/dve/server/messaging/WorkerManagerRequest.java | Java | agpl-3.0 | 1,226 |
/**
* 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... | uniteddiversity/mycollab | mycollab-services/src/main/java/com/esofthead/mycollab/module/project/dao/ItemTimeLoggingMapper.java | Java | agpl-3.0 | 5,778 |
<?php
// created: 2012-09-05 05:35:43
$mod_strings = array (
'LBL_ID' => 'ID',
'LBL_DATE_ENTERED' => 'Date Created',
'LBL_DATE_MODIFIED' => 'Date Modified',
'LBL_MODIFIED' => 'Modified By',
'LBL_MODIFIED_ID' => 'Modified By Id',
'LBL_MODIFIED_NAME' => 'Modified By Name',
'LBL_CREATED' => 'Created By',
'... | minh10huy/HiringBossCRM | cache/modules/Meetings/language/en_us.lang.php | PHP | agpl-3.0 | 4,147 |
<?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 | modules/Releases/Save.php | PHP | agpl-3.0 | 3,041 |
// ----------> GENERATED FILE - DON'T TOUCH! <----------
// generator: ilarkesto.mda.legacy.generator.GwtServiceCallGenerator
package scrum.client.communication;
import java.util.*;
@com.google.gwt.user.client.rpc.RemoteServiceRelativePath("scrum")
public class TouchLastActivityServiceCall
exte... | JavierPeris/kunagi | src/generated/java/scrum/client/communication/TouchLastActivityServiceCall.java | Java | agpl-3.0 | 1,052 |
/*
* Radio device interface with sample rate conversion
*
* Copyright (C) 2011-2014 Free Software Foundation, Inc.
* Copyright (C) 2015 Ettus Research LLC
*
* Author: Tom Tsou <tom@tsou.cc>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General P... | ttsou/osmo-trx | Transceiver52M/radioInterfaceResamp.cpp | C++ | agpl-3.0 | 6,195 |
/*
* The Exomiser - A tool to annotate and prioritize genomic variants
*
* Copyright (c) 2016-2021 Queen Mary University of London.
* Copyright (c) 2012-2016 Charité Universitätsmedizin Berlin and Genome Research Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms o... | exomiser/Exomiser | exomiser-data-genome/src/test/java/org/monarchinitiative/exomiser/data/genome/config/Hg19ConfigTest.java | Java | agpl-3.0 | 7,963 |
/*
Code for Life
Copyright (C) 2016, Ocado Innovation 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 3 of the
License, or (at your option) any later version.
This pro... | CelineBoudier/rapid-router | game/static/game/js/messages.js | JavaScript | agpl-3.0 | 2,408 |
# frozen_string_literal: true
module Decidim
module Admin
# A command with all the business logic to transfer a managed user.
class TransferUser < Rectify::Command
# Public: Initializes the command.
#
# form
# user - The current user
# managed_user - The managed User
... | AjuntamentdeBarcelona/decidim | decidim-admin/app/commands/decidim/admin/transfer_user.rb | Ruby | agpl-3.0 | 1,852 |
import { Box } from './Box';
export const ColorBox = props => {
const { color, ...rest } = props;
return (
<Box
inline
width={2}
height={2}
lineHeight={2}
color={color}
backgroundColor={color}
content="."
{...rest} />
);
};
| AnturK/-tg-station | tgui-next/packages/tgui/components/ColorBox.js | JavaScript | agpl-3.0 | 283 |
<?php
/* Copyright (C) 2016 Stephan Kreutzer
*
* This file is part of refugee-it.de.
*
* 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 Free Software Foundation.
*
* refugee... | refugee-it/website | index.php | PHP | agpl-3.0 | 2,613 |
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SPECS from 'common/SPECS';
import { calculateSecondaryStatDefault, calculatePrimaryStat } from 'common/stats';
import { formatMilliseconds } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Cor... | hasseboulen/WoWAnalyzer | src/Parser/Core/Modules/StatTracker.js | JavaScript | agpl-3.0 | 24,273 |
from openerp.osv import fields,osv
import time
import openerp.addons.decimal_precision as dp
from openerp.tools.translate import _
from openerp import pooler
from openerp import netsvc
import base64
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
from openerp.addons.Edumedi... | trabacus-softapps/docker-edumedia | additional_addons/Edumedia_India/ed_sale.py | Python | agpl-3.0 | 56,005 |
<?php
/**
* Enlight
*
* 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://enlight.de/license
* If you did not receive a copy of the license and are unable ... | lmaslag/test | engine/Library/Enlight/Template/Plugins/modifier.translate.php | PHP | agpl-3.0 | 1,390 |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Taken from https://tip.golang.org/src/cmd/internal/browser/browser.go?m=text
// Package browser provides utilities for interacting with users' browsers.
pac... | sebn/cozy-stack | cmd/browser/browser.go | GO | agpl-3.0 | 1,201 |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "S1AP-IEs"
* found in "../support/s1ap-r16.4.0/36413-g40.asn"
* `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-UPER`
*/
#include "S1AP_HFNModified.h"
int
S1AP_HFNModif... | acetcom/nextepc | lib/asn1c/s1ap/S1AP_HFNModified.c | C | agpl-3.0 | 2,194 |
/*
* TeleStax, Open Source Cloud Communications
* Copyright 2011-2018, Telestax Inc and individual contributors
* by the @authors tag.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; eit... | RestComm/jss7 | tools/simulator/core/src/main/java/org/restcomm/protocols/ss7/tools/simulator/tests/lcs/LCSClientTypeEnumerated.java | Java | agpl-3.0 | 3,436 |
//==>
//==> MessageBar helper
function MessageBar() {
this.show = function(className, text, interval, isHtml) {
var id = "loadingWidget_" + className;
if ($('#'+id).length == 0)
$('<div id="'+id+'" class="messageBar"></div>').prependTo("body").click(function(){messageBar.hide(className)});
... | d120/pyophase | ophasebase/static/ophasebase/js/helper.js | JavaScript | agpl-3.0 | 19,869 |
/*************************************************************************\
* Copyright (C) Michael Kerrisk, 2016. *
* *
* This program is free software. You may use, modify, and redistribute it *
* under the term... | jetm/tlpi | altio/demo_sigio.c | C | agpl-3.0 | 2,817 |
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | moskiteau/KalturaGeneratedAPIClientsJava | src/main/java/com/kaltura/client/types/KalturaAssetParamsOutput.java | Java | agpl-3.0 | 4,069 |
/*
* log.js
*
* Copyright (C) 2009-13 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 FITNESS FOR A PARTI... | ekergy/shiny-ekergy | lib/core/log.js | JavaScript | agpl-3.0 | 578 |
/* Copyright 2016 icasdri
This file is part of PostMaker.
PostMaker 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.
PostMaker is di... | icasdri/PostMaker | workers/gmail.js | JavaScript | agpl-3.0 | 3,408 |
<?php
class smpl_HopDongDichVu_Sample{
function getType() {
return 'Contracts';
}
function getBody() {
$d_image = explode('?',SugarThemeRegistry::current()->getImageURL('company_logo.png'));
return '
<table cellpadding="0" cellspacing="0... | sysraj86/carnivalcrm | modules/AOS_PDF_Templates/samples/smpl_HopDongDichVu_Sample.php | PHP | agpl-3.0 | 3,479 |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | ging/isabel | lib/ffmpeg/Win32/src/ffmpeg/libavutil/samplefmt.h | C | agpl-3.0 | 2,391 |
from requests import post
import io
import base64
class ZivService(object):
def __init__(self, cnc_url, user=None, password=None, sync=True):
self.cnc_url = cnc_url
self.sync = sync
self.auth = None
if user and password:
self.auth = (user,password)
def send_cycle(se... | gisce/primestg | primestg/ziv_service.py | Python | agpl-3.0 | 959 |
/*
* COMA 3.0 Community Edition
*
* 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 ... | epu-ntua/FITMAN-SeMa | coma-engine/src/test/java/de/wdilab/coma/center/reuse/TMappingReuse.java | Java | agpl-3.0 | 9,833 |
<?php
use humhub\widgets\ActiveForm;
use yii\helpers\Url;
$animation = $model->hasErrors() ? 'shake' : 'fadeIn';
?>
<div class="modal-dialog modal-dialog-small animated <?= $animation ?>">
<div class="modal-content">
<?php $form = ActiveForm::begin(); ?>
<div class="modal-header">
... | GreenVolume/humhub-themes-MadeHub | views/space/create/create.php | PHP | agpl-3.0 | 2,793 |
/** @file
* @brief PostList class implementing unweighted Query::OP_OR
*/
// Copyright 2017,2018 Olly Betts
// @license GNU GPL
//
#include <xapian-internal.h>
#pragma hdrstop
#include "boolorpostlist.h"
#include "heap.h"
#include "postlisttree.h"
using namespace std;
BoolOrPostList::~BoolOrPostList()
{
if(plist) ... | papyrussolution/OpenPapyrus | Src/OSF/xapian/xapian-core/matcher/boolorpostlist.cc | C++ | agpl-3.0 | 6,263 |
# frozen_string_literal: true
require "spec_helper"
require "decidim/api/test/type_context"
require "decidim/core/test/shared_examples/attachable_interface_examples"
module Decidim
module Conferences
describe ConferenceType, type: :graphql do
include_context "with a graphql class type"
let(:model)... | decidim/decidim | decidim-conferences/spec/types/conference_type_spec.rb | Ruby | agpl-3.0 | 5,524 |
;************************* memcmp64.asm *************************************
; Author: Agner Fog
; Date created: 2013-10-03
; Last modified: 2013-10-03
; Description:
; Faster version of the standard memcmp function:
;
; int A_memcmp (const void * ptr1, const void * ptr2, size_t count);
;
; Compares... | papyrussolution/OpenPapyrus | Src/OSF/ASMLIB/memcmp64.asm | Assembly | agpl-3.0 | 10,258 |
nashal_race_coordinator = Creature:new {
objectName = "@event_perk:name_race_droid",
socialGroup = "",
faction = "",
level = 100,
chanceHit = 1,
damageMin = 645,
damageMax = 1000,
baseXp = 9429,
baseHAM = 24000,
baseHAMmax = 30000,
armor = 0,
resists = {0,0,0,0,0,0,0,0,-1},
meatType = "",
meatAmount = 0,
... | lasko2112/legend-of-hondo | MMOCoreORB/bin/scripts/mobile/misc/nashalracecoordinator.lua | Lua | agpl-3.0 | 771 |
/**
* Created by JetBrains PhpStorm.
* User: JK
* Date: 1/12/12
* Time: 10:04 AM
*/
(function () {
tinymce.create("tinymce.plugins.fixed", {
init:function (editor, url) {
var color, classes;
//get color
color = editor.getParam("fixed_content_color", "y... | sysraj86/carnivalcrm | modules/Tours/js/tinymce/plugins/fixed/editor_plugin_src.js | JavaScript | agpl-3.0 | 1,366 |
<?php
trace(__FILE__,'begin');
set_page_title(lang('project links'));
project_tabbed_navigation(PROJECT_TAB_LINKS);
project_crumbs(array(
array(lang('links'), get_url('links', 'index')),
array(lang('index'))
));
if (ProjectLink::canAdd(logged_user(), active_project())) {
add_page_action(lang('... | dbernar1/Project-Pier-0.8.6 | application/plugins/links/views/index.php | PHP | agpl-3.0 | 1,790 |
"""
Tests for send_email_base_command
"""
import datetime
from unittest import skipUnless
import ddt
import pytz
from django.conf import settings
from mock import DEFAULT, Mock, patch
from openedx.core.djangoapps.schedules.management.commands import SendEmailBaseCommand
from openedx.core.djangoapps.site_configurati... | stvstnfrd/edx-platform | openedx/core/djangoapps/schedules/management/commands/tests/test_send_email_base_command.py | Python | agpl-3.0 | 2,135 |
/*
* 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... | ebonnet/Silverpeas-Core | core-services/calendar/src/main/java/org/silverpeas/core/calendar/model/Priority.java | Java | agpl-3.0 | 3,837 |
#include <sstream>
#include "PPEMarkedContent.h"
#include "PPTName.h"
#include "PPTDictionary.h"
//
// PPEMarkedContent
//
///////////////////////////////////////////////////////
PPEMarkedContent::PPEMarkedContent(PPTName *tag, PPTDictionary *property, PPContext *gcontext) : PPElement(gcontext)
{
_t... | Neo-Angel/PDFPlus | src/Element/PPEMarkedContent.cpp | C++ | agpl-3.0 | 1,569 |
(function() {
'use strict';
var DEFAULT_LIST_CONFIG = {
'priority': [
'priority',
'urgency'
],
'firstLine': [
'wordcount',
'slugline',
'highlights',
'headline',
'versioncreated'
],
'secon... | vladnicoara/superdesk-client-core | scripts/superdesk-search/react.js | JavaScript | agpl-3.0 | 81,717 |
require "rails_helper"
RSpec.describe BulkImportWorker, type: :job do
let(:subject) { BulkImportWorker }
let(:instance) { subject.new }
let(:bulk_import) { FactoryBot.create(:bulk_import, progress: "pending", kind: kind) }
let(:kind) { nil }
let!(:black) { FactoryBot.create(:color, name: "Black") } # Because... | bikeindex/bike_index | spec/workers/bulk_import_worker_spec.rb | Ruby | agpl-3.0 | 30,742 |
@font-face {
font-family: "lato";
font-style: normal;
font-stretch: normal;
font-weight: 400;
src: local("Lato"), url("../fonts/LatoLatin-Regular.woff") format("woff");
}
@font-face {
font-family: "lato";
font-style: italic;
font-stretch: normal;
font-weight: 400;
src: local("Lato"), url("../fonts/LatoLatin-I... | Alkarex/FreshRSS | p/themes/Mapco/mapco.rtl.css | CSS | agpl-3.0 | 31,222 |
# coding: utf-8
def configure(app):
if app.config.get('DEBUG_TOOLBAR_ENABLED'):
try:
from flask_debugtoolbar import DebugToolbarExtension
DebugToolbarExtension(app)
except ImportError:
app.logger.info('flask_debugtoolbar is not installed')
if app.config.get... | Spotipo/spotipo | unifispot/ext/development.py | Python | agpl-3.0 | 902 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Alert } from 'react-bootstrap';
import { scanFile } from '../actions/fileActions';
import * as types from '../actions/ActionTypes';
class Notification extends React.Component {
constructor(props) {
su... | ComPlat/chemotion_ELN | app/packs/src/components/chemscanner/containers/NotificationContainer.js | JavaScript | agpl-3.0 | 1,582 |
#ifndef SERVER_MISC_STRUCTS_H_
#define SERVER_MISC_STRUCTS_H_
#ifndef _TIME_H
#include <time.h>
#endif
#include <string.h>
#include <stdint.h>
#include "misc/parse.h"
#include "misc/spells.h"
class sstring;
// forward declarations
class TObj;
class TBeing;
class TMonster;
class TPerson;
class TRoom;
class TThing... | grimhaven/grimhaven | server/misc/structs.h | C | agpl-3.0 | 11,239 |
/**
* Created by mark.feder on 10/13/2015.
*/
(function (mw, $) {
"use strict";
mw.KIVQApi = function (embedPlayer) {
return this.init(embedPlayer);
};
if (!(mw.KIVQApi.prototype = {
bindPostfix: '.KIVQApi',
init: function (embedPlayer) {
var _this ... | joanpuigsanz/mwEmbed | modules/Quiz/resources/IVQApiCall.js | JavaScript | agpl-3.0 | 5,376 |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'language', 'pt-br', {
button: 'Configure o Idioma',
remove: 'Remover Idioma'
} );
| afshinnj/php-mvc | assets/framework/ckeditor/plugins/language/lang/pt-br.js | JavaScript | agpl-3.0 | 284 |
import json
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.urls import reverse
from django.db import models
from django.utils.html import strip_tags
from opaque_keys.edx.django.models import CourseKeyField
from six import text_type
class Note(models.Model):... | jolyonb/edx-platform | lms/djangoapps/notes/models.py | Python | agpl-3.0 | 3,401 |
module PdfHelpers
def pdf_file_name(record)
date = record.try(:pdf_updated_at) || record.updated_at
"#{record.model_name.human}-#{record.id}-#{date.strftime '%F'}.pdf"
end
def render_to_pdf(action = "#{action_name}.html")
html = render_to_string(action: action, layout: WickedPdf.config[:layout])
... | panter/aoz-003 | app/controllers/concerns/pdf_helpers.rb | Ruby | agpl-3.0 | 769 |
**Description:** Describe in a couple of sentences what this PR adds
**JIRA:** Link to JIRA ticket
**Merge deadline:** List merge deadline (if any)
**Configuration instructions:** List any non-trivial configuration
instructions (if any).
**Testing instructions:**
1. Open page A
2. Do thing B
3. Expect C to happen
... | Livit/Livit.Learn.EdX | .github/PULL_REQUEST_TEMPLATE.md | Markdown | agpl-3.0 | 785 |
<!DOCTYPE html>
<html lang="en"
>
<head>
<title>40123224 cdw11 報告 - CDW11 網頁 (虎尾科大MDE)</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<styl... | 40323240/personal-cdw11 | static/blog/40123224-cdw11-bao-gao.html | HTML | agpl-3.0 | 33,568 |
# frozen_string_literal: true
class AboutController < ApplicationController
before_action :set_body_classes
before_action :set_instance_presenter, only: [:show, :more, :terms]
def show
if @instance_presenter.contact_account
redirect_to short_account_path(@instance_presenter.contact_account)
retu... | rutan/mastodon | app/controllers/about_controller.rb | Ruby | agpl-3.0 | 1,060 |
/*
* Copyright 2014, Kaazing Corporation. All rights reserved.
*
* 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 a... | irina-mitrea-luxoft/k3po | k3po.pcap.converter/src/test/java/org/kaazing/k3po/pcap/converter/internal/AbstractTcpTest.java | Java | agpl-3.0 | 4,188 |
Backbone.SIXHIARA = Backbone.SIXHIARA || {};
Backbone.SIXHIARA.ButtonSaveView = Backbone.View.extend({
events: {
"click": "save"
},
initialize: function() {
this.$el.prop('disabled', true);
this.listenTo(this.model, 'aChangeHappens', function(){
this.$el.prop('disabled'... | iCarto/utentes-ui | views/common/ButtonSaveView.js | JavaScript | agpl-3.0 | 1,314 |
{% from "macros/_form.html" import render_field, render_label, render_input, render_button with context %}
{% set label_width = 'col-sm-2' %}
{% set control_width = 'col-sm-6' %}
{% macro render_field_default(field, offset='', control_class=control_width, group='') %}
{%if offset%}{% set control_class = control_wi... | poppingtonic/call-power | call_server/templates/campaign/form.html | HTML | agpl-3.0 | 8,399 |
<?php
// created: 2015-09-15 18:06:35
$dictionary['AOS_Quotes']['fields']['po_number_c']['inline_edit']='1';
$dictionary['AOS_Quotes']['fields']['po_number_c']['labelValue']='po number';
?> | chemspace/chemspaceCRM | custom/Extension/modules/AOS_Quotes/Ext/Vardefs/sugarfield_po_number_c.php | PHP | agpl-3.0 | 192 |
/**
* Axelor Business Solutions
*
* Copyright (C) 2005-2016 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 distr... | donsunsoft/axelor-development-kit | axelor-core/src/main/java/com/axelor/db/Query.java | Java | agpl-3.0 | 21,355 |
# -*- coding: utf-8 -*-
"""
Basic unit tests for LibraryContentBlock
Higher-level tests are in `cms/djangoapps/contentstore/tests/test_libraries.py`.
"""
import six
from bson.objectid import ObjectId
from fs.memoryfs import MemoryFS
from lxml import etree
from mock import Mock, patch
from search.search_engine_base i... | stvstnfrd/edx-platform | common/lib/xmodule/xmodule/tests/test_library_content.py | Python | agpl-3.0 | 26,994 |
/*
Copyright (c) 2000-2013 "independIT Integrative Technologies GmbH",
Authors: Ronald Jeninga, Dieter Stubler
schedulix Enterprise Job Scheduling System
independIT Integrative Technologies GmbH [http://www.independit.de]
mailto:contact@independit.de
This file is part of schedulix
schedulix is free software:
you c... | schedulix/schedulix | sql/pg_gen/RESOURCE_REQ_STATES.sql | SQL | agpl-3.0 | 2,817 |
{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block head_title %}{% if article %}{% trans "Édition de l’article" %}{% else %}{% trans "Nouvel article" %}{% endif %}{% endblock %}
{% block bootstrap3_extra_head %}
{{ form.media.css }}
{% endblock %}
{% block body_end %}
{{ form.media.js }}
{% endbl... | defivelo/db | apps/article/templates/article/article_form.html | HTML | agpl-3.0 | 899 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | kangkot/scylla | exceptions/exceptions.cc | C++ | agpl-3.0 | 1,823 |
/*
* Copyright 2021 Cojen.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 program is... | cojen/Tupl | src/main/java/org/cojen/tupl/RowScanner.java | Java | agpl-3.0 | 2,126 |
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
include 'include/meta.php';
include 'include/ifmobi.php';
?>
<meta name="Author" content="Anthony Baldwin" />
<title>12Press - Who is an Addict?</title>
</head>
<body>
<?php
include 'include/header.php';
... | tonybaldwin/12press | who.php | PHP | agpl-3.0 | 1,084 |
/* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: t; tab-width: 8; -*- */
/* cairo - a vector graphics library with display and print output
* Copyright � 2006, 2007 Mozilla Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General ... | papyrussolution/OpenPapyrus | Src/OSF/CAIRO-1160/SRC/cairo-quartz-surface.c | C | agpl-3.0 | 75,645 |
/*
* This file is part of Relaxe.
* Copyright (c) 2014 Topi Nieminen
* Author: Topi Nieminen <topi.nieminen@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 version 3
* as published by the Free Software Foundation.
... | tjn/relaxe | src/test/java/com/appspot/relaxe/meta/EnvironmentTest.java | Java | agpl-3.0 | 2,643 |
perl jopply-sys.pl
perl jopply-sys.pl --lanid
perl jopply-sys.pl --n=lrare,cad --lanid=12
perl jopply-sys.pl --nyckelord=lrare,cad --lanid=12 --epost --verbose
perl jopply-sys.pl --n=lrare,cad --lanid=12 --w
perl jopply-sys.pl --n=lrare,cad --lanid=12 --w --e
perl jopply-sys.pl --ann=2621881
perl jopply-sys.... | mobluse/jopply | test/test-sys.bat | Batchfile | agpl-3.0 | 329 |
/* Copyright 2014 by Martin Gijsen (www.DeAnalist.nl)
*
* This file is part of the PowerTools engine.
*
* The PowerTools engine 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... | MartinGijsen/PowerTools | power-tools-parent/power-tools-engine/src/main/java/org/powertools/engine/Arguments.java | Java | agpl-3.0 | 2,755 |
#!/usr/bin/env bash
###############################################################################
# geo-infra Scripts and templates to create and manage geoportals
# Copyright (c) 2015-2016, sigeom sa
# Copyright (c) 2015-2016, Ioda-Net Sàrl
#
# Contact : contact (at) geoportal (dot) xyz
# Repository : https://gith... | ioda-net/geo-infra | tasks/deploy.sh | Shell | agpl-3.0 | 11,321 |
/*
* TeleStax, Open Source Cloud Communications Copyright 2012.
* and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser ... | RestComm/jss7 | map/map-impl/src/test/java/org/restcomm/protocols/ss7/map/service/mobility/subscriberManagement/SSCamelDataTest.java | Java | agpl-3.0 | 4,559 |
"""
Test the views of jurisdiction models
"""
# Django
from django.test import TestCase
# Third Party
from nose.tools import assert_is_not, eq_
# MuckRock
from muckrock.core.test_utils import http_get_response
from muckrock.jurisdiction import factories, views
class TestExemptionDetailView(TestCase):
"""The ex... | MuckRock/muckrock | muckrock/jurisdiction/tests/test_views.py | Python | agpl-3.0 | 3,078 |
/* CarRideDAO.java
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Copyright Ⓒ 2014-2015 Universiteit Gent
*
* This file is part of the Degage Web Application
*
* Corresponding author (see also AUTHORS.txt)
*
* Kris Coolsaet
* Department of Applied Mathematics, Computer Science and Statis... | kcoolsae/Degage | db/src/main/java/be/ugent/degage/db/dao/CarRideDAO.java | Java | agpl-3.0 | 2,555 |
<?php
namespace SPHERE\Application\Api\Setting\UserAccount;
use MOC\V\Core\FileSystem\FileSystem;
use SPHERE\Application\IModuleInterface;
use SPHERE\Application\IServiceInterface;
use SPHERE\Application\Setting\User\Account\Account;
use SPHERE\Application\Setting\User\Account\Service\Entity\TblUserAccount;
use SPHER... | BozzaCoon/SPHERE-Framework | Application/Api/Setting/UserAccount/AccountUserExcel.php | PHP | agpl-3.0 | 2,242 |
MWF.xApplication.service = MWF.xApplication.service || {};
MWF.xApplication.service.ServiceManager = MWF.xApplication.service.ServiceManager || {};
MWF.xApplication.service.ServiceManager.options = {
"multitask": false,
"executable": true
}; | o2oa/o2oa | o2web/source/x_component_service_ServiceManager/package.js | JavaScript | agpl-3.0 | 249 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2012:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redis... | wbsavage/shinken | shinken/objects/item.py | Python | agpl-3.0 | 45,311 |
# Authors
* Andy: <info@andreasseiler.com>
| raceface2nd/owngantt | AUTHORS.md | Markdown | agpl-3.0 | 45 |
/*
* 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-core/src/main/java/org/kuali/kfs/gl/businessobject/LedgerBalanceTypeSummaryTotalLine.java | Java | agpl-3.0 | 2,094 |
<?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 ... | WhiteLabelReady/WhiteLabelTransfer | library/Zend/Db/Adapter/Db2/Exception.php | PHP | agpl-3.0 | 1,455 |
/**
* Node JS intro
*
* This step covers:
* - bootstrap CSS
* - rendering a form
*/
var express = require('express');
// create server
var server = express();
server.get('/', function(req, res) {
res.render(__dirname + '/views/form.jade');
});
// start
server.listen(3000);
| hiddentao/nodejs-intro | step12/index.js | JavaScript | agpl-3.0 | 293 |
package horizon.geotagger.view;
import horizon.geotagger.model.Tag;
import java.util.List;
import android.graphics.drawable.Drawable;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;
public class TagOverlay
extends ItemizedOverlay<... | madiarsa/GeoTagger | android-client/src/horizon/geotagger/view/TagOverlay.java | Java | agpl-3.0 | 810 |
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
import itertools
from datetime import timedelta
import ddt
from django.core.exceptions import ValidationError
from django.test import T... | proversity-org/edx-platform | common/djangoapps/course_modes/tests/test_models.py | Python | agpl-3.0 | 21,323 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.