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 |
|---|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int N;
cin >> N;
int sum = 0;
int arr[N];
for (int i = 0; i < N; i++) {
cin >> arr[i];
sum += arr[i];
}
int average = ((double) sum / N - (int) sum / N) >= 0.5 ? sum / N + 1 : ... | billchow98/billchow98-projects | OnlineJudgeSolutions/AtCoder/abc043c.cpp | C++ | agpl-3.0 | 439 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../img/clover.ico" />
<link rel="stylesheet" href="../../../aui/css/aui.min.css" media="all"/>
... | cm-is-dog/rapidminer-studio-core | report/html/com/rapidminer/repository/RepositoryTools.html | HTML | agpl-3.0 | 107,414 |
/* Unused, experimental code for adding project locations via
* clickable google map_
*/
var markers_position = [];
var map;
var geocoder = new google.maps.Geocoder();
var first = true;
$(document).ready( function() {
//change geolocate input value
$('div.outer_map form input[type="... | InterActionNGO/NGO-admin | public/app/javascripts/backoffice/project_map.js | JavaScript | agpl-3.0 | 3,672 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="image/x-icon" href="../favicon.ico" rel="icon" />
<link href="../src/tamination.css" type="text/css" rel="stylesheet" />
<link href="../src/jque... | bradchristie/taminations | c2/inlet.html | HTML | agpl-3.0 | 1,737 |
```java
package com.bio4j.blueprints.model.nodes;
import com.bio4j.blueprints.model.Vertex;
import com.bio4j.model.nodes.Consortium;
/**
* Models consortium entities that take part in publications.
* @author Pablo Pareja Tobes <ppareja@era7.com>
*/
public final class ConsortiumNode extends Vertex implements Cons... | bio4j/blueprints | docs/src/main/java/com/bio4j/blueprints/model/nodes/ConsortiumNode.java.md | Markdown | agpl-3.0 | 51,314 |
/*
* #%L
* Cantharella :: Data
* $Id: CantharellaStemmer.java 269 2014-05-07 08:14:00Z echatellier $
* $HeadURL: https://svn.codelutin.com/cantharella/trunk/cantharella.data/src/main/java/nc/ird/cantharella/data/model/search/CantharellaStemmer.java $
* %%
* Copyright (C) 2012 - 2013 IRD (Institut de Recherche pou... | acheype/cantharella | cantharella.data/src/main/java/nc/ird/cantharella/data/model/search/CantharellaStemmer.java | Java | agpl-3.0 | 7,537 |
// Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package table
import (
"bytes"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"gx/ipfs/QmbBhyDKsY4mbY6xsKt3qu9Y... | disorganizer/brig | vendor/gx/ipfs/QmbBhyDKsY4mbY6xsKt3qu9Y7FPvMJ6qbD8AMjYYvPRw1g/goleveldb/leveldb/table/table_test.go | GO | agpl-3.0 | 3,798 |
/* document_medium / dokumentmedium */
INSERT INTO document_medium (pk_document_medium_id, system_id, code,
description, deleted, version)
VALUES (1, '48e067ae-d794-4216-8a9d-7cb0ef03472c', 'Fysisk medium',
'Bare fysiske dokumenter', FALSE, 0);
INSERT INTO document_medium (pk_docum... | HiOA-ABI/nikita-noark5-core | src/main/resources/db/noark5_metadata_values.sql | SQL | agpl-3.0 | 22,832 |
/*********************************************************************************
* Ephesoft is a Intelligent Document Capture and Mailroom Automation program
* developed by Ephesoft, Inc. Copyright (C) 2015 Ephesoft Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the term... | ungerik/ephesoft | Ephesoft_Community_Release_4.0.2.0/source/gxt/gxt-core/src/main/java/com/ephesoft/gxt/core/shared/dto/propertyAccessors/ImportBatchClassSuperConfigProperties.java | Java | agpl-3.0 | 3,301 |
// Copyright 2011, 2012, 2013 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package ec2_test
import (
"fmt"
"net"
"regexp"
"sort"
"strings"
"github.com/juju/errors"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils"
"github.com/juju/utils/set"
"gopkg.in/amz.v3/aws"
... | cherylj/juju | provider/ec2/local_test.go | GO | agpl-3.0 | 36,055 |
The code needs a ES2015+ polyfill to work, for example
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
```js
require( 'babel-polyfill' ) ;
// or
import 'babel-polyfill' ;
```
Then
```js
const number = require( '@aureooms/js-parse' ) ;
// or
import number from '@aureooms/js-parse' ;
```
| aureooms/es-parse | doc/manual/usage.md | Markdown | agpl-3.0 | 298 |
import _ from 'lodash'
import Joi from 'joi'
import { findOrCreateUserByProfile } from '../user-service'
import request from 'request-promise'
const schema = Joi.object({
clientId: Joi.string().required(),
clientSecret: Joi.string().required(),
}).required()
exports.register = function (server, options, next)... | huitparfait/huitparfait | huitparfait-auth/src/providers/facebook.js | JavaScript | agpl-3.0 | 1,771 |
# -*- coding: utf-8 -*-
"""
Tests the "preview" selector in the LMS that allows changing between Staff, Learner, and Content Groups.
"""
from textwrap import dedent
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.pages.common.auto_auth import AutoAuthPa... | msegado/edx-platform | common/test/acceptance/tests/lms/test_lms_user_preview.py | Python | agpl-3.0 | 5,975 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (version 1.7.0_02) on Sat Apr 28 23:24:33 CEST 2012 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Clas... | AlienQueen/alienlabs-skeleton-for-wicket-spring-hibernate | lib/jaad-0.8.4-doc/net/sourceforge/jaad/mp4/boxes/impl/class-use/MediaDataBox.html | HTML | agpl-3.0 | 4,587 |
---
title: Episode 29
subtitle: Nachwuchs
datum: 23. Oktober 2019
layout: post
author: Birgit, Dominic, Friedl, Marco, Markus, Stefan und Steve
explicit: 'no'
duration: "01:03:15"
audio:
mp3: 3sh029_nachwuchs.mp3
chapters:
- '00:00:00.000 Vorgeplänkel'
- '00:00:59.000 Vorstellungsrunde'
- '00:03:57.000 Einspieler von... | 3schweinehunde/website-source | _posts/2019-10-23-episode29.md | Markdown | agpl-3.0 | 2,029 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from crm.models import Person
from geocodable.models import LocationAlias
import uuid
class Event(models.Model):
name = models.CharField(max_length=200)
timestamp = models.DateTimeFie... | tdfischer/organizer | events/models.py | Python | agpl-3.0 | 1,124 |
require "helper"
module Nokogiri
module XML
class TestEntityDecl < Nokogiri::TestCase
def setup
super
@xml = Nokogiri::XML(<<-eoxml)
<?xml version="1.0"?><?TEST-STYLE PIDATA?>
<!DOCTYPE staff SYSTEM "staff.dtd" [
<!ENTITY ent1 "es">
<!ENTITY nocontent >
]>
<root />
eoxml
... | ging/vcc | vendor/gems/nokogiri-1.4.1/test/xml/test_entity_decl.rb | Ruby | agpl-3.0 | 1,834 |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class ComponentShouldHaveTestBuilderModelStateExtensions
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="C... | ivaylokenov/MyTested.Mvc | docs/api/MyTested.AspNetCore.Mvc.ComponentShouldHaveTestBuilderModelStateExtensions.html | HTML | agpl-3.0 | 25,804 |
#ifndef _CASSANDRA_H
#define _CASSANDRA_H
#include <boost/bind.hpp>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <cql/cql.hpp>
#include <cql/cql_error.hpp>
#include <cql/cql_event.hpp>
#include <cql/cql_connection.hpp>
#include <cql/cql_session.hpp>
#include <cql/cql_cluster.hpp>
#include <cql/cql... | kkdawkins/manwe | gateway/src/cassandra.hpp | C++ | agpl-3.0 | 471 |
// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the pack... | LYY/code2docx | vendor/baliance.com/gooxml/schema/urn/schemas_microsoft_com/vml/Roundrect_test.go | GO | agpl-3.0 | 951 |
/**
* Copyright (c) 2002-2012 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 F... | dmontag/neo4j-enterprise | com/src/test/java/org/neo4j/com/MadeUpServerImplementation.java | Java | agpl-3.0 | 2,903 |
<?php
/**
* @file entitenj.class.php
* Définition de la classe entitenj
*/
/**
* Classe abstraite entitenj
* Classe gérant les entité non joueurs dont les informatiosn sotn réparties sur deux tables
*/
class entitenj extends entite
{
protected $incarn; ///< Objet contenant les informations sur une incarnation... | StarshineOnline/Starshine-Online | class/entitenj.class.php | PHP | agpl-3.0 | 4,726 |
export class TrainingCanceledError extends Error {
constructor() {
super('Training Canceled')
}
}
export class TrainingAlreadyStartedError extends Error {
constructor() {
super('Training Already Started')
}
}
| botpress/botpress | modules/nlu/src/backend/stan/errors.ts | TypeScript | agpl-3.0 | 226 |
/*! jQuery UI - v1.11.0 - 2014-08-12
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, droppable.js, resizable.js, selectable.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, menu.js, progressbar.js, selectmenu.js, slider.js, spinner.js, tabs.js, tooltip.j... | oposso-team/oposso | layout/scripts/jquery-ui.js | JavaScript | agpl-3.0 | 418,655 |
package io.hops.hopsworks.admin.project;
import io.hops.hopsworks.admin.lims.ClientSessionState;
import io.hops.hopsworks.admin.lims.MessagesController;
import io.hops.hopsworks.common.dao.project.team.ProjectTeamFacade;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
impo... | FilotasSiskos/hopsworks | hopsworks-admin/src/main/java/io/hops/hopsworks/admin/project/ProjectTeamController.java | Java | agpl-3.0 | 2,402 |
<?php
/**
* Doctrine ORM
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE. This license can also be viewed
* at http://hobodave.com/license.txt
*
* @category DoctrineExtensions
* @package DoctrineExtensions\Paginate
* @author ... | KWZwickau/KREDA-Sphere | Library/MOC-V/Component/Database/Vendor/Doctrine2ORM/2.5-Master/lib/Doctrine/ORM/Tools/Pagination/WhereInWalker.php | PHP | agpl-3.0 | 5,531 |
/* Layout */
body, nav, header, aside, figure, section, footer, article { margin: 0; padding: 5px; display: block; }
#branding { float: left; clear: left; width: 211px; }
#sidebar { float: left; clear: left; width: 211px; }
#container { width: 1000px; margin-left: 225px; }
#bigfooter { clear: both; margin-bottom: 20... | julienXX/linuxfr.org | public/stylesheets/contrib/red.css | CSS | agpl-3.0 | 2,226 |
/**
* 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/impl/IfcApprovalRelationshipImpl.java | Java | agpl-3.0 | 2,695 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (1.8.0_131) on Fri Jul 07 10:42:39 CEST 2017 -->
<title>Uses of Class de.hebis.it.hds.gnd.out.AutorityRecordFileWriter</title>
<meta name="date" conte... | HeBIS-VZ/GndAuthorityRecords | doc/de/hebis/it/hds/gnd/out/class-use/AutorityRecordFileWriter.html | HTML | agpl-3.0 | 4,606 |
Title: Cherrypy 使用手冊
Date: 2016-05-14 12:00
Category: Cherrypy
Tags: Python3, web-based
Author: kmol
Cherrypy 相關功能介紹
<!-- PELICAN_END_SUMMARY -->
## CherryPy 模組安裝:
pip install cherrypy
## CherryPy 程式架構
最簡單的 CherryPy 程式:
<pre class="brush: python">
#coding: utf-8
# 最簡單的 CherryPy 程式
# 導入 cherrypy 與 os 模組
import che... | cad-lab/manual | content/admin-20160514.md | Markdown | agpl-3.0 | 26,312 |
class CreateJourneyPattern < ActiveRecord::Migration
def self.up
create_table :journey_patterns do |t|
t.integer :route_id
t.string :destination
t.timestamps
end
add_column :route_segments, :journey_pattern_id, :integer
add_column :route_segments, :segment_order, :integer
end
de... | mysociety/fixmytransport | db/migrate/20110309102438_create_journey_pattern.rb | Ruby | agpl-3.0 | 480 |
<?php
require_once 'invalidparameterexception.php';
require_once 'Validate.php';
require_once 'helper.php';
/**
* OMB Notice representation
*
* This class represents an OMB notice.
*
* PHP version 5
*
* LICENSE: This program is free software: you can redistribute it and/or modify
* it under the terms of the GN... | singpolyma/mnw | extlib/libomb/notice.php | PHP | agpl-3.0 | 7,783 |
#include "Plater/PlaterObject.hpp"
#include "Geometry.hpp"
#include "ExPolygon.hpp"
#include "libslic3r.h"
#include "Log.hpp"
#include "misc_ui.hpp"
namespace Slic3r { namespace GUI {
Slic3r::ExPolygonCollection& PlaterObject::make_thumbnail(std::shared_ptr<Slic3r::Model> model, int obj_idx) {
// make method id... | lordofhyphens/Slic3r | src/GUI/Plater/PlaterObject.cpp | C++ | agpl-3.0 | 3,464 |
<?php
/**
* layer for input data
*/
abstract class BaseInputData
{
/**
* @param string $name
* @param string $type
* @param string $method
* @return mixed
*/
abstract public function getValue($name, $type = null, $method = null);
/**
* @access protected
*
* @param... | eliasrosa/webmail | pub/core/base/base_input_data.php | PHP | agpl-3.0 | 625 |
begin
require 'sass'
rescue LoadError
require 'rubygems'
require 'sass'
end
| anuragsolanki/ofri-Haus | vendor/gems/compass-0.10.5/lib/compass/dependencies.rb | Ruby | agpl-3.0 | 82 |
/*
* Copyright (c) 2005 University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
* This file is part of the Emulab network testbed software.
*
* This file is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by
* the Free So... | nmc-probe/emulab-nome | robots/rmcd/test_path.c | C | agpl-3.0 | 3,941 |
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
{% include "includes/office/pdf_style.css" %}
</style>
</head>
<body>
{% include "includes/office/pdf_header.html" %}
<h1 class="headline">L'entreprise <span class="company-name">{{ company.name }}</span> est recommandée (*) par La Bo... | StartupsPoleEmploi/labonneboite | labonneboite/web/templates/office/pdf_detail.html | HTML | agpl-3.0 | 1,868 |
import domObject = CKEDITOR.dom.domObject;
import editor = CKEDITOR.editor;
export class AntragsgruenEditor {
private editor: editor;
private $el: JQuery;
private static ckeditor_strip(html: string): string {
let tmp = document.createElement("div");
tmp.innerHTML = html;
if (tmp.t... | CatoTH/antragsgruen | web/typescript/shared/AntragsgruenEditor.ts | TypeScript | agpl-3.0 | 8,141 |
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2015 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free software: you can redistribute it and/or modify
... | TheIronBorn/qgroundcontrol | src/ui/QGCLinkConfiguration.cc | C++ | agpl-3.0 | 9,677 |
package xyz.gupton.nickolas.beepsky.music.commands;
import com.sedmelluq.discord.lavaplayer.player.AudioLoadResultHandler;
import com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers;
import com.sedmelluq.discord.lavaplayer.tools.FriendlyException;
import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist;
im... | CorruptComputer/PolizziaHut | src/main/java/xyz/gupton/nickolas/beepsky/music/commands/QueueCommand.java | Java | agpl-3.0 | 8,513 |
/*
* 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/Constant.java | Java | agpl-3.0 | 5,576 |
<?php
/*
Author: Lee Braiden
Author URI: http://www.kintassa.com
Copyright: Copyright (c) 2011 Kintassa.
License: All rights reserved. Contact Kintassa should you wish to license this product.
*/
?>
<div id="<?php echo $unique_id; ?>-wrapper" <?php echo $wrapper_cls . " " . $companion_sty; ?>>
<div id="<?php echo $un... | lee-b/lb-galleries | templates/applet_invalid__render.php | PHP | agpl-3.0 | 420 |
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package api
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"net/http"
"strings"
"testing"
"time"
)
func TestCreateChannel(t *te... | 42wim/platform | api/channel_test.go | GO | agpl-3.0 | 33,742 |
class CreateInfos < ActiveRecord::Migration
def change
create_table :infos do |t|
t.string :name
t.string :permalink
t.text :content
t.timestamps
end
add_index :infos, :permalink
end
end
| adejoux/djouxblog | db/migrate/20130721124001_create_infos.rb | Ruby | agpl-3.0 | 228 |
<?php
class DSRoute extends sfObjectRoute implements InterfaceTiersRoute {
protected $ds = null;
protected function getObjectForParameters($parameters) {
$matches = array();
if (preg_match('/^DS-(C?[0-9]{10})-([0-9]{4}[0-9]{2})-([0-9]{3})$/',$parameters['id'],$matches)) {
$identifiant = ... | 24eme/CIVA | project/plugins/acVinDSPlugin/lib/routing/DSRoute.class.php | PHP | agpl-3.0 | 1,341 |
// Copyright (C) 2013 - 2021 Tim Düsterhus
// Copyright (C) 2021 Maximilian Mader
//
// 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 opt... | wbbaddons/Tims-PackageServer | src/http/routes/assets.rs | Rust | agpl-3.0 | 2,408 |
<!DOCTYPE html>
<html lang="en"
>
<head>
<title>About - 40423125上課報告</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">
<link rel="canonical" hr... | 40423125/2017springcd_hw | blog/pages/about/index.html | HTML | agpl-3.0 | 10,975 |
/*****************************************************************************
@(#) $RCSfile: slpmod.c,v $ $Name: $($Revision: 1.1.2.3 $) $Date: 2011-09-02 08:46:55 $
-----------------------------------------------------------------------------
Copyright (c) 2008-2011 Monavacon Limited <http://www.monavacon.com... | 0x7678/openss7 | src/modules/slpmod.c | C | agpl-3.0 | 107,602 |
//var socket = io.connect('http://localhost:8081');
//////////////////////////////////////////////////////////////Player design//////////////////////////////////////////////////////////////
//$("#player_detect").css({ 'position': 'absolute','z-index': '10', 'background-color': 'green','height': '1.5%', 'width': '1%'... | necasjanz/Nelux-3d | interface/2dEnv.js | JavaScript | agpl-3.0 | 2,730 |
# pylint: disable=arguments-differ
""" Models for the shopping cart and assorted purchase types """
from collections import namedtuple
from datetime import datetime
from datetime import timedelta
from decimal import Decimal
import json
import analytics
from io import BytesIO
from django.db.models import Q, F
import py... | caesar2164/edx-platform | lms/djangoapps/shoppingcart/models.py | Python | agpl-3.0 | 91,861 |
class CreateAnalyticSequenceAndAnalyticSegmentTables < ActiveRecord::Migration[5.0]
def change
create_table :analytic_sequences do |t|
t.timestamps
end
create_table :analytic_segments do |t|
t.references :analytic_sequence, index: true, foreign_key: true, null: false
t.string :name, nul... | ekylibre/ekylibre | db/migrate/20210219172016_create_analytic_sequence_and_analytic_segment_tables.rb | Ruby | agpl-3.0 | 405 |
<a class="menu-item about" href="#about">{{i18n "more-menu.about"}}</a>
<a class="menu-item recommended-mobile-wallets" href="#recommended-mobile-wallets">{{i18n "more-menu.recommended-mobile-wallets"}}</a>
| Learn-by-doing/crypto-terminal | html/templates/more-menu.html | HTML | agpl-3.0 | 207 |
/*
* Copyright (C) 2005 Luca Veltri - University of Parma - Italy
*
* This file is part of MjSip (http://www.mjsip.org)
*
* MjSip is free software; you can redistribute it and/or modify
* it under the terms of the Affero GNU General Public License as published by
* the Free Software Foundation; either version ... | ging/isabel | components/gateway/GWSIP/mjsip_1.6/src/org/zoolu/sip/provider/SipProvider.java | Java | agpl-3.0 | 47,764 |
<?php
namespace Page\Responsive;
use Behat\Mink\Driver\SahiDriver;
use Behat\Mink\Element\NodeElement;
use Element\MultipleElement;
class Detail extends \Page\Emotion\Detail
{
/**
* Returns an array of all css selectors of the element/page
* @return array
*/
public function getCssSelectors()
... | Zwilla/shopware | tests/Mink/features/bootstrap/Page/Responsive/Detail.php | PHP | agpl-3.0 | 3,393 |
# --
# Kernel/Language/en.pm - provides en_US languag translation
# Copyright (C) 2001-2014 OTRS AG, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/a... | rahulvador/CoreHD | Kernel/Language/en.pm | Perl | agpl-3.0 | 5,251 |
/*******************************************************************************
Toutes les fonctions liées à la page pour le gestion des cadres des options,
demande d'un nouveau texte…
*******************************************************************************/
//cette fonction permet d'avoir un nouveau tex... | tazzon/dactylotest | dactylotest/js/functions_page_test.js | JavaScript | agpl-3.0 | 19,609 |
#
# Copyright (C) 2012 Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that ... | ottenhoff/canvas-lms | app/models/course.rb | Ruby | agpl-3.0 | 112,956 |
#!/bin/bash
# this script builds the project with a given profile
if [[ $0 != ./deploy/* ]]; then
echo "Please run this script from the root of our repository!"
exit -1
fi
PROFILE="$1"
BRANCH_NAME="$2"
if [ "${PROFILE}" = "unused" ]; then
PROFILE="dev"
fi
if [ "${BRANCH_NAME}" = "test" ]; then
PROFILE="test"
fi... | dzhw/metadatamanagement | deploy/build.sh | Shell | agpl-3.0 | 722 |
header {
width: 100%;
padding-top: 6px;
padding-bottom: 20px;
padding-left: 15px;
color: white;
}
header a:hover {
color: #B3B1B1;;
text-decoration: none;
}
header a:active {
color: #B3B1B1;;
}
header a {
color: #B3B1B1;
}
.barrier {
font-size: 24px;
}
... | galaxy-team/website | static/css/custom.css | CSS | agpl-3.0 | 1,144 |
package syncleus.dann.solve.vacuum;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import syncleus.dann.plan.agent.Action;
import syncleus.dann.search.framework.ActionsFunction;
/**
* Specifies the actions available to the agent at state s
*
* @author Andrew Brown
*/
public class ... | automenta/java_dann | src/syncleus/dann/solve/vacuum/VacuumWorldActions.java | Java | agpl-3.0 | 902 |
FactoryGirl.define do
factory :router do
context 'Router01'
routes [{ exten: '_X200', priority: 1}, {exten: '_X100', priority: 2}]
end
end
| digitalhelpersleague/asterism | spec/factories/routers.rb | Ruby | agpl-3.0 | 151 |
<?php
namespace Ladb\CoreBundle\Manager\Knowledge;
use Ladb\CoreBundle\Entity\Knowledge\Book;
use Ladb\CoreBundle\Utils\ReviewableUtils;
class BookManager extends AbstractKnowledgeManager {
const NAME = 'ladb_core.knowledge_book_manager';
public function delete(Book $book, $withWitness = true, $flush = true) {
... | lairdubois/lairdubois | src/Ladb/CoreBundle/Manager/Knowledge/BookManager.php | PHP | agpl-3.0 | 507 |
{- ORMOLU_DISABLE -}
-- Example 13 - the rounded union of a cube and a sphere.
import Control.Applicative (pure)
import Graphics.Implicit
out = union [
cube False (pure 20) -- same as (V3 20 20 20)
, translate (pure 20) $ sphere 15
]
main = writeSTL 1 "example13.stl" out
| colah/ImplicitCAD | Examples/example13.hs | Haskell | agpl-3.0 | 282 |
# Copyright 2010 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
import time
from datetime import date, datetime, timedelta
from optparse import make_option
import openid.store.nonce
from django.conf import settings
from django.core.management.... | miing/mci_migo | identityprovider/management/commands/cleanup.py | Python | agpl-3.0 | 4,126 |
.jasp-no-select {
-webkit-user-select: none;
}
body {
font-family: sans-serif ;
margin: 0 ;
cursor: default;
}
body:not(.windows) {
font-size: 12px ;
}
body.windows {
font-size: 12px ;
}
body.selected {
background-color: #E8E8E8 ;
}
h1, .h1-toolbar .jasp-menu {
font-size: 175% ;
}
h2, .h2-toolbar .jasp-me... | aknight1-uva/jasp-desktop | JASP-Desktop/html/css/theme-jasp.css | CSS | agpl-3.0 | 8,566 |
/*!
* Bootstrap v4.0.0-beta (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if (typeof jQuery === 'undefined') {
throw new Error('Bootstrap\'s JavaScript ... | fr3nchN/proactive | docs/js/bootstrap.js | JavaScript | agpl-3.0 | 111,393 |
DELETE FROM `weenie` WHERE `class_Id` = 33844;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (33844, 'ace33844-blackflame', 10, '2019-02-10 00:00:00') /* Creature */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (33844, 1, 16) /* ItemType - Crea... | ACEmulator/ACE-World | Database/3-Core/9 WeenieDefaults/SQL/Creature/Shadow/33844 Black Flame.sql | SQL | agpl-3.0 | 3,108 |
DELETE FROM `weenie` WHERE `class_Id` = 52221;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (52221, 'ace52221-frozenrecess', 7, '2019-02-10 00:00:00') /* Portal */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (52221, 1, 65536) /* ItemType - Porta... | ACEmulator/ACE-World | Database/3-Core/9 WeenieDefaults/SQL/Portal/Portal/52221 Frozen Recess.sql | SQL | agpl-3.0 | 2,189 |
# frozen_string_literal: true
require "spec_helper"
module Decidim
module ParticipatoryProcesses
module Admin
describe ParticipatoryProcessUserRoleForm do
let(:email) { "my_email@example.org" }
let(:name) { "John Wayne" }
let(:role) { "admin" }
let(:attributes) do
... | Hilfe/decidim | decidim-participatory_processes/spec/forms/participatory_process_user_role_form_spec.rb | Ruby | agpl-3.0 | 814 |
package cn.edu.seu.kse.lpmln.exception.antlrexception;
import org.antlr.v4.runtime.InputMismatchException;
/**
* Created by admin on 2017/8/30.
*/
public class AntlrInputMismatchException extends AntlrRecognitionException {
public AntlrInputMismatchException(InputMismatchException e){
super(e);
}
}... | wangbiu/lpmlnmodels | src/main/java/cn/edu/seu/kse/lpmln/exception/antlrexception/AntlrInputMismatchException.java | Java | agpl-3.0 | 321 |
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | moskiteau/KalturaGeneratedAPIClientsJava | src/main/java/com/kaltura/client/types/KalturaEntryContextDataResult.java | Java | agpl-3.0 | 7,054 |
We the People of the Free People's Republic of Loungistan, in Order to form a more perfect hackerspace, establish Justice, insure domestic Tranquility, provide for the common defense, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constituti... | Loungistan/constitution | constitution.md | Markdown | agpl-3.0 | 953 |
{% extends theme('layouts/1-column.html') %}
{% import 'macros/forms.html' as forms with context %}
{% set section_class = 'form' %}
{% block main_content %}
<div class="container auth-container">
<form class="form-horizontal validate col-md-offset-2 col-md-8"
action="{{ url_for('security.send_confirma... | etalab/udata | udata/templates/security/send_confirmation.html | HTML | agpl-3.0 | 863 |
# Modelo asociativo (no tiene datos propios) para los valores (clase y
# subclase) de Erosión en la ficha de Perfiles
class Erosion < ApplicationRecord
belongs_to :perfil, inverse_of: :erosion
belongs_to :clase, inverse_of: :erosiones, class_name: 'ClaseDeErosion'
belongs_to :subclase, inverse_of: :erosiones, cl... | INTA-Suelos/SiSinta | app/models/erosion.rb | Ruby | agpl-3.0 | 978 |
#pragma once
#include <string>
#include <vector>
#include <memory>
#include <map>
#include "BanList.h"
#include "entity/SMPlayer.h"
#include "plugin/PluginLoadOrder.h"
#include "minecraftpe/gamemode/GameType.h"
#include "minecraftpe/entity/EntityUniqueID.h"
class SMLevel;
class SMOptions;
class BanList;
class SMList... | Tom643/Servermanager | ServerManager/ServerManager.NativeActivity/servermanager/Server.h | C | agpl-3.0 | 3,424 |
# Copyright 2021 Alfredo de la Fuente - Avanzosc S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests import common
from odoo.tests import tagged
@tagged("post_install", "-at_install")
class TestNameCodeYearId(common.SavepointCase):
@classmethod
def setUpClass(cls):
sup... | avanzosc/odoo-addons | event_name_code_year_id/tests/test_event_name_code_year_id.py | Python | agpl-3.0 | 1,353 |
DELETE FROM `weenie` WHERE `class_Id` = 23268;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (23268, 'guppyred', 18, '2019-02-10 00:00:00') /* Food */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (23268, 1, 4194304) /* ItemType - CraftCookingBase */... | LtRipley36706/ACE-World | Database/3-Core/9 WeenieDefaults/SQL/Food/CraftCookingBase/23268 Red Guppy.sql | SQL | agpl-3.0 | 2,293 |
package lila.coach
import org.joda.time.{DateTime,Days}
import lila.user.User
case class Coach(
_id: Coach.Id, // user ID
listed: Coach.Listed,
available: Coach.Available,
approved: Coach.Approved,
profile: CoachProfile,
picturePath: Option[Coach.PicturePath],
nbReviews: Int,
createdA... | clarkerubber/lila | modules/coach/src/main/Coach.scala | Scala | agpl-3.0 | 1,222 |
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Logical OR.
*
* @package PHPUnit
* @subpackage Framework_Constraint
* @author... | KWZwickau/KREDA-Sphere | Library/MOC-V/Component/Database/Vendor/Doctrine2ORM/2.5-Master/vendor/phpunit/phpunit/src/Framework/Constraint/Or.php | PHP | agpl-3.0 | 3,291 |
var l_cache = SR.State.get('cache');
// language setting
var l_lang = require('./language')('english');
SR.Callback.onStart(function () {
});
var l_form = SR.State.get('FlexFormMap');
var l_accounts;
SR.Callback.onStart(function () {
l_form = SR.State.get('FlexFormMap');
l_accounts = SR.State.get('_accountMap'... | imonology/scalra | demo/lobby/router.js | JavaScript | agpl-3.0 | 2,280 |
// rhino.js
// 2009-09-11
/*
Copyright (c) 2002 Douglas Crockford (www.JSLint.com) Rhino Edition
*/
// This is the Rhino companion to fulljslint.js.
/*global JSLINT */
/*jslint rhino: true, strict: false */
(function (a) {
var e, i, input;
if (!a[0]) {
print("Usage: jslint.js file.js");
quit... | niavok/syj | scripts/rhino.js | JavaScript | agpl-3.0 | 1,212 |
jQuery(document).ready(function() {
jQuery('ul:checkboxList("reservation, reservation_has_user_list")').addFilter();
jQuery.fn.inval = function(options) {
var defaults = {
attribute: 'id',
expr: ''
};
var opts = jQuery.extend(defaults, options);
var result = $(this).attr(opts.attribute);
result ... | islog/tempos | web/js/reservation-helper.js | JavaScript | agpl-3.0 | 4,042 |
/* CrappyDBMS, a simple relational DBMS written in Java.
Copyright (C) 2008 Facundo Manuel Quiroga <facundoq@gmail.com>
This file is part of CrappyDBMS.
CrappyDBMS 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... | facundoq/toys | crappydbms/CrappyDBMS/src/org/crappydbms/queries/predicates/TruePredicate.java | Java | agpl-3.0 | 1,240 |
DELETE FROM `weenie` WHERE `class_Id` = 1705;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (1705, 'scrollitemenchantmentmasteryself', 34, '2019-02-10 00:00:00') /* Scroll */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (1705, 1, 8192) /* ItemTyp... | ACEmulator/ACE-World | Database/3-Core/9 WeenieDefaults/SQL/Scroll/Writable/01705 Scroll of Item Enchantment Mastery Self.sql | SQL | agpl-3.0 | 1,966 |
/*
* WEmu Scripts for WEmu MMORPG Server
* Copyright (C) 2008 WEmu Team
*
* 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
* any later version.
... | Tulba/wowtbc | src/scripts/src/QuestScripts/Zone/Loch_Modan.cpp | C++ | agpl-3.0 | 3,123 |
#!/usr/bin/env bash
#
# Copyright (C) 2015-2015: Alignak team, see AUTHORS.txt file for contributors
#
# This file is part of Alignak.
#
# Alignak 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 ... | Alignak-monitoring-contrib/alignak-backend | code_test.sh | Shell | agpl-3.0 | 1,596 |
<?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... | ftrotter/btg | trunk/ZendGdata-1.7.1+Health/tests/Zend/Gdata/BooksTest.php | PHP | agpl-3.0 | 1,090 |
{% load standing %}
{% load i18n %}
{% comment %}
The following variables are expected in the context:
election
election_data
post_data.id
post_data.label
post_label_shorter
candidacies
candidacies_might_stand_again
candidacies_not_standing_again
candidates_locked
show_co... | neavouli/yournextrepresentative | candidates/templates/candidates/_candidates_for_post.html | HTML | agpl-3.0 | 12,259 |
if (typeof Mapmaker === 'undefined') Mapmaker = {};
Mapmaker.TopicMappingView = (function($, famous) {
var Engine = famous.core.Engine;
var Surface = famous.core.Surface;
var ImageSurface = famous.surfaces.ImageSurface;
var Modifier = famous.core.Modifier;
var StateModifier = famous.modifiers.StateModifier;
var ... | metamaps/mapmaker | lib/views/topicMappingView.js | JavaScript | agpl-3.0 | 6,105 |
require 'digest/sha2'
class User < ActiveRecord::Base
has_many :club_members
has_many :clubs, :through => :club_members
has_many :competitors
has_many :teams
has_many :bills
belongs_to :country
validates_presence_of :country, :message => I18n.t('activerecord.errors.messages.mustbeselected'), :unless =... | snellen/o-events.net | app/models/user.rb | Ruby | agpl-3.0 | 3,621 |
try:
import serial # Python2
except ImportError:
from serial3 import * # Python3
from nupic.frameworks.opf.modelfactory import ModelFactory
import os,sys
ser = serial.Serial('/dev/ttyACM0', 9600)
def get_online(number_of_records=20):# 0 means forever
model = ModelFactory.loadFromCheckpoint(os.getcwd()... | lmaag182/nupic_physical | online.py | Python | agpl-3.0 | 994 |
// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package provider_test
import (
"github.com/juju/errors"
"github.com/juju/names"
jc "github.com/juju/testing/checkers"
gc "gopkg.in/check.v1"
"github.com/juju/juju/storage"
"github.com/juju/juju/storage/provider"
"gith... | cmars/juju | storage/provider/tmpfs_test.go | GO | agpl-3.0 | 6,948 |
<?php
/**
* TActiveRecordManager class file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2013 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id: TActiveRecordManager.php 3245 2013-01-07 20:23:32Z ctrlaltca $
* @package ... | rkorzeniewski/bacula | gui/baculum/framework/Data/ActiveRecord/TActiveRecordManager.php | PHP | agpl-3.0 | 4,194 |
/* Generated by Snowball 2.0.0 - https://snowballstem.org/ */
#include <xapian-internal.h>
#pragma hdrstop
#include "kraaij_pohlmann.sbl.h"
static const symbol s_pool[] = {
#define s_0_0 0
'n', 'd', 'e',
#define s_0_1 3
'e', 'n',
#define s_0_2 (s_0_3 + 1)
#define s_0_3 5
'\'', 's',
#define s_0_4 (s_0_5 + 1)
#define ... | papyrussolution/OpenPapyrus | Src/OSF/xapian/xapian-core/languages/kraaij_pohlmann.sbl.cc | C++ | agpl-3.0 | 33,359 |
DELETE FROM `weenie` WHERE `class_Id` = 25894;
INSERT INTO `weenie` (`class_Id`, `class_Name`, `type`, `last_Modified`)
VALUES (25894, 'orbnefaneblack', 35, '2019-02-10 00:00:00') /* Caster */;
INSERT INTO `weenie_properties_int` (`object_Id`, `type`, `value`)
VALUES (25894, 1, 32768) /* ItemType - Caster */
... | LtRipley36706/ACE-World | Database/3-Core/9 WeenieDefaults/SQL/Caster/Caster/25894 Nefane Pearl.sql | SQL | agpl-3.0 | 3,271 |
#pragma once
#include <QString>
#include <QByteArray>
class MotorFaultsMessage
{
public:
MotorFaultsMessage(QByteArray& messageData);
unsigned char M0ErrorFlags() const;
unsigned char M1ErrorFlags() const;
unsigned char M0LimitFlags() const;
unsigned char M1LimitFlags() const;
unsigned char M... | UCSolarCarTeam/Epsilon-Hermes | src/CommunicationLayer/MessagingFramework/MotorFaultsMessage.h | C | agpl-3.0 | 560 |
<?php
// Album titles
$locale['400'] = "Add Photo";
$locale['401'] = "Edit Photo";
$locale['402'] = "Current Photos";
$locale['403'] = "Serious Photoalbum Error";
// Album messages
$locale['410'] = "Photo(s) added";
$locale['411'] = "Photo updated";
$locale['412'] = "Photo thumbnail deleted";
$locale['413'] =... | Talocha/PHP-Fusion | locale/Malay/admin/photos.php | PHP | agpl-3.0 | 3,703 |
package tigase.xmpp.impl;
import com.quickblox.chat.utils.QBChatUtils;
import tigase.db.NonAuthUserRepository;
import tigase.db.TigaseDBException;
import tigase.disteventbus.EventBus;
import tigase.disteventbus.EventBusFactory;
import tigase.server.Message;
import tigase.server.Packet;
import tigase.server.Presence;
i... | QuickBlox/QuickBlox-Tigase-CustomFeatures | tigase-server/plugins/QBStatsCollector.java | Java | agpl-3.0 | 3,594 |
/*
* 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/authorization/RequisitionAccountingLineAuthorizer.java | Java | agpl-3.0 | 3,282 |
package com.tesora.dve.variables;
/*
* #%L
* Tesora Inc.
* Database Virtualization Engine
* %%
* Copyright (C) 2011 - 2014 Tesora Inc.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Fre... | Tesora/tesora-dve-pub | tesora-dve-core/src/main/java/com/tesora/dve/variables/VariableStore.java | Java | agpl-3.0 | 1,001 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.