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 |
|---|---|---|---|---|---|
/*
html:after {
display: none;
content: '--small: (max-width: 500px) | --medium: (max-width: 1100px) | --large: (min-width: 1100px)';
}
*/
(function(window){
/*jshint eqnull:true */
'use strict';
var docElem = document.documentElement;
var create = function(){
if(!window.lazySizes || window.lazySizes.getCu... | georges5/bcangular | wp-content/plugins/wp-lazysizes-master/js/lazysizes/plugins/custommedia/ls.custommedia.js | JavaScript | gpl-2.0 | 2,072 |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'list', 'pt-br', {
bulletedlist: 'Lista sem números',
numberedlist: 'Lista numerada'
} );
| SeeyaSia/www | web/libraries/ckeditor/plugins/list/lang/pt-br.js | JavaScript | gpl-2.0 | 262 |
<?php
/**
* @version $Id: default.php 21463 2011-06-06 15:28:10Z dextercowley $
* @package Joomla.Installation
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<div id=... | heqiaoliu/Viral-Dark-Matter | tmp/install_4f20924cbb0a1/installation/views/license/tmpl/default.php | PHP | gpl-2.0 | 1,877 |
(function(){
// module factory: start
var moduleFactory = function($) {
// module body: start
var module = this;
$.require()
.script("moment")
.done(function() {
var exports = function() {
$.moment.lang('ar-ma', {
months : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".sp... | BetterBetterBetter/B3App | media/foundry/5.0/scripts/moment/ar-ma.js | JavaScript | gpl-2.0 | 2,156 |
require "test_helper"
module Api
class TracesControllerTest < ActionDispatch::IntegrationTest
##
# test all routes which lead to this controller
def test_routes
assert_routing(
{ :path => "/api/0.6/gpx/create", :method => :post },
{ :controller => "api/traces", :action => "create" }... | tomhughes/openstreetmap-website | test/controllers/api/traces_controller_test.rb | Ruby | gpl-2.0 | 15,842 |
<?php
/**
* @package EasyDiscuss
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* EasyDiscuss is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is deriv... | BetterBetterBetter/B3App | components/com_easydiscuss/models/labels.php | PHP | gpl-2.0 | 6,201 |
/**
* Playlist Loader
*/
import Event from '../events';
import EventHandler from '../event-handler';
import {ErrorTypes, ErrorDetails} from '../errors';
import URLHelper from '../utils/url';
import AttrList from '../utils/attr-list';
//import {logger} from '../utils/logger';
class PlaylistLoader extends EventHandler... | ChubbyArse/Emby | MediaBrowser.WebDashboard/dashboard-ui/bower_components/hls.js/src/loader/playlist-loader.js | JavaScript | gpl-2.0 | 10,482 |
/***************************************************************************
qgsmapthemes.cpp
--------------------------------------
Date : September 2014
Copyright : (C) 2014 by Martin Dobias
Email : wonder dot sk at gmail dot com
***********************************... | stevenmizuno/QGIS | src/app/qgsmapthemes.cpp | C++ | gpl-2.0 | 7,007 |
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Common\FormatConverter;
use PayPal\Validation\NumericValidator;
/**
* Class Currency
*
* Base object for all financial value related fields (balance, payment due, etc.)
*
* @package PayPal\Api
*
* @property string currency
* @property string v... | tectronics/tyres-wordpress | wp-content/plugins/directory/libraries/PayPal-PHP-SDK/lib/PayPal/Api/Currency.php | PHP | gpl-2.0 | 1,453 |
(function(){
var PushBullet = {};
PushBullet.init = function(clientId, redirectUri){
this.clientId = clientId;
this.redirectUri = redirectUri;
this.accessToken = localStorage.pushBulletAccessToken;
};
//tests if we are authorized
PushBullet.checkAuth = function(callback){
... | Belthazor2008/googulator | public_html/lib/pushbullet.js | JavaScript | gpl-3.0 | 3,181 |
/*
* Copyright (c) 2002-2005 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* not... | vineodd/PIMSim | GEM5Simulation/gem5/src/dev/net/etherbus.cc | C++ | gpl-3.0 | 3,498 |
<?php
/**
*
* @package mahara
* @subpackage blocktype-newviews
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
*
*/
defined('INTERNAL') ||... | piersharding/mahara | htdocs/blocktype/newviews/lib.php | PHP | gpl-3.0 | 3,184 |
package at.tyron.vintagecraft.Block.Utility;
import at.tyron.vintagecraft.VintageCraft;
import at.tyron.vintagecraft.Block.BlockContainerVC;
import at.tyron.vintagecraft.TileEntity.TECokeOvenDoor;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properti... | nanakisan/vintagecraft | src/main/java/at/tyron/vintagecraft/Block/Utility/BlockCokeOvenDoor.java | Java | gpl-3.0 | 7,072 |
package net.minecraft.world.chunk;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class BlockStatePalet... | Severed-Infinity/technium | build/tmp/recompileMc/sources/net/minecraft/world/chunk/BlockStatePaletteLinear.java | Java | gpl-3.0 | 2,268 |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | ovilab/atomify | libs/lammps/src/KOKKOS/neigh_list_kokkos.cpp | C++ | gpl-3.0 | 1,894 |
#include <stdio.h>
int modularInverse(int number, int mod);
void extendedEuclid(int, int, int* d, int* x, int* y);
int main()
{
int number, mod;
scanf("%d %d", &number, &mod);
int ans = modularInverse(number, mod);
if (ans == -1)
fprintf(stderr, "Couldn't calculate modular inverse!\n");
else... | OpenGenus/cosmos | code/mathematical_algorithms/src/modular_inverse/modular_inverse.cpp | C++ | gpl-3.0 | 1,064 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtQml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commerci... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/src/qml/qml/qqmldelayedcallqueue.cpp | C++ | gpl-3.0 | 7,883 |
import math
def PrimeFactors(num):
primeFactors = []
for i in range(2, int(math.sqrt(num)) + 1):
while num % i == 0:
primeFactors.append(i)
num //= i
if num > 2:
primeFactors.append(num)
return primeFactors
def main():
factors = PrimeFactors(36)
print(factors)
if __name__ == '__main__':
main()
| gauravsitlani/programming | prime_factors/prime_factors.py | Python | gpl-3.0 | 315 |
"""
Test of basic 1D plotting methods in MantidPlot
"""
import mantidplottests
from mantidplottests import *
from mantidplot import *
from PyQt4 import QtGui, QtCore
class MantidPlotMdiSubWindowTest(unittest.TestCase):
def test_table(self):
self.doTest( newTable() )
def test_graph(self):
se... | dymkowsk/mantid | MantidPlot/test/MantidPlotMdiSubWindowTest.py | Python | gpl-3.0 | 922 |
<?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... | areeves/openfisma | library/Zend/Pdf/Filter/Compression.php | PHP | gpl-3.0 | 15,570 |
/*
This file is part of ZAX.
ZAX 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.
ZAX is distributed in the hope that it will be useful... | inovex/zax | src/main/java/com/inovex/zabbixmobile/widget/PackageReplacedReceiver.java | Java | gpl-3.0 | 1,490 |
/**
* Copyright (C) 2005-2013, Stefan Strömberg <stefangs@nethome.nu>
*
* This file is part of OpenNetHome (http://www.nethome.nu)
*
* OpenNetHome 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... | stefangs/NetHomeServer | home-items/web-items/src/main/java/nu/nethome/home/items/web/servergui/HomeItemError.java | Java | gpl-3.0 | 1,950 |
import { Routes } from '@angular/router';
import {
auditsRoute,
configurationRoute,
docsRoute,
healthRoute,
logsRoute,
metricsRoute,
trackerRoute,
userMgmtRoute,
userDialogRoute
} from './';
import { UserRouteAccessService } from '../shared';
const ADMIN_ROUTES = [
auditsRoute... | SGKhmCs/wBoard | src/main/webapp/app/admin/admin.route.ts | TypeScript | gpl-3.0 | 659 |
var gr__expj_8h =
[
[ "gr_expj", "gr__expj_8h.html#a7d0144e5774158b746199c1da4d5b5ac", null ]
]; | aviralchandra/Sandhi | build/gr36/docs/doxygen/html/gr__expj_8h.js | JavaScript | gpl-3.0 | 100 |
#include "./class.h"
#include "../../util/trace.h"
#include "../../util/log.h"
#include <map>
#include <algorithm>
#include "../common/method.h"
#include "../common/property.h"
#include "../common/ref.h"
#include "./ivar.h"
#include "./protocol.h"
#include "../TopologySort.h"
extern std::map<const void*,Class> g_class... | magicpriest/darling-FC-edition | src/libobjcdarwin/new/class.cpp | C++ | gpl-3.0 | 3,116 |
/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | liyouchang/webrtc-qt | webrtc/test/channel_transport/channel_transport.cc | C++ | gpl-3.0 | 4,688 |
// ***************************************************************** -*- C++ -*-
/*
* Copyright (C) 2004-2017 Andreas Huggel <ahuggel@gmx.net>
*
* This program is part of the Exiv2 distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public... | aferrero2707/PhotoFlow | src/external/exiv2/include/exiv2/xmp.hpp | C++ | gpl-3.0 | 16,837 |
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
import uuid
import base64
import os
from django.contrib.gis.db import models
from treemap.models import User
class APIAccessCredential(models.Model):
access_key = models.CharFie... | ctaylo37/OTM2 | opentreemap/api/models.py | Python | gpl-3.0 | 1,113 |
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-08-14 18:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sessao', '0009_auto_20170619_1441'),
]
operations = [
migrations.AddField(
... | cmjatai/cmj | sapl/sessao/migrations/0010_auto_20170814_1804.py | Python | gpl-3.0 | 753 |
package com.nutiteq.utils;
import com.nutiteq.components.Envelope;
import com.nutiteq.components.MapPos;
import com.nutiteq.projections.Projection;
public class TileUtils {
private static final double TILESIZE = 256;
private static final double initialResolution = 2.0f * Math.PI * 6378137.0f
... | FAIMS/faims-android | faimsandroidapp/src/main/java/com/nutiteq/utils/TileUtils.java | Java | gpl-3.0 | 4,474 |
// RUN: %clang_cc1 -std=c++11 -triple x86_64-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix=LINUX
// RUN: %clang_cc1 -std=c++11 -triple x86_64-windows-pc -emit-llvm %s -o - | FileCheck %s --check-prefix=WINDOWS
int __attribute__((target("sse4.2"))) foo_overload(int) { return 0; }
int __attribute__((target(... | sabel83/metashell | 3rd/templight/clang/test/CodeGenCXX/attr-target-mv-overloads.cpp | C++ | gpl-3.0 | 3,859 |
/*
* #%L
* GeoWE Project
* %%
* Copyright (C) 2015 - 2016 GeoWE.org
* %%
* This file is part of GeoWE.org.
*
* GeoWE 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, ... | geowe/geowe-core | src/main/java/org/geowe/client/local/main/tool/project/OpenProjectTool.java | Java | gpl-3.0 | 5,059 |
<?php
/**
* The template for displaying all WooCommerce pages.
*
* @package zerif-lite
*/
get_header(); ?>
<div class="clear"></div>
</header> <!-- / END HOME SECTION -->
<?php zerif_after_header_trigger(); ?>
<div id="content" class="site-content">
<div class="container">
<div class="content-left-wrap col-... | Codeinwp/zerif-lite | woocommerce.php | PHP | gpl-3.0 | 594 |
namespace OmniXaml.Wpf
{
using System.Threading.Tasks;
using System.Windows;
using Services.Mvvm;
public class WpfWindow : Window, IView
{
public new Task ShowDialog()
{
return new Task(() => this.ShowDialog());
}
public void SetViewModel(object ... | grokys/OmniXAML | Source/OmniXaml.Wpf/WpfWindow.cs | C# | gpl-3.0 | 400 |
/*
* Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright not... | andrei14vl/cubrid | src/cci/cci_log.cpp | C++ | gpl-3.0 | 18,272 |
export function QuerySelectorAllIterate(el:HTMLElement, query:string) : HTMLElement[] {
let els :HTMLElement[] = [];
if ('function'==typeof el.matches) {
if (el.matches(query)) {
els.push(el);
}
} else if ('function'==typeof (el as any).matchesSelector) {
if ((el as any).matchesSelector(query)) {
els.pus... | katmutua/electric-book-gui | src/ts/querySelectorAll-extensions.ts | TypeScript | gpl-3.0 | 514 |
package de.persosim.simulator.tlv;
import java.util.Comparator;
import de.persosim.simulator.utils.Utils;
/**
* This class implements a comparator for sorting TLV data objects in DER-TLV
* order. Sorting is performed based on the sorting of tags. In detail tags
* again are sorted based on their indicated class an... | PersoSim/de.persosim.simulator | de.persosim.simulator/src/de/persosim/simulator/tlv/TlvDataObjectComparatorDer.java | Java | gpl-3.0 | 1,516 |
<?php
/*
* ©2013 Croce Rossa Italiana
*/
paginaPrivata();
caricaSelettore();
controllaParametri(['id'], 'attivita.gestione&err');
$a = Attivita::id($_GET['id']);
paginaAttivita($a);
if (!$a->haPosizione()) {
redirect('attivita.localita&id=' . $a->id);
}
$del = $me->delegazioni(APP_ATTIVITA);
$comitat... | CroceRossaCatania/gaia | inc/attivita.modifica.php | PHP | gpl-3.0 | 4,359 |
<?php
$rangeid=122;
$prevcid=126;
$prevwidth=754;
$interval=false;
$range=array (
32 =>
array (
0 => 286,
1 => 360,
2 => 414,
3 => 754,
4 => 572,
5 => 855,
6 => 702,
7 => 247,
),
40 =>
array (
0 => 351,
1 => 351,
'interval' => true,
),
42 =>
array (
0 =... | Tinchosan/wingpanel | admin/lib/vendor/mpdf/mpdf/tmp/ttfontdata/dejavusanscondensed.cw127.php | PHP | gpl-3.0 | 2,055 |
/* ************************************************************************
Copyright:
License:
Authors:
************************************************************************ */
qx.Theme.define("${Namespace}.theme.modern.Decoration",
{
decorations :
{
}
}); | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/component/skeleton/contribution/trunk/source/class/custom/theme/modern/Decoration.tmpl.js | JavaScript | gpl-3.0 | 280 |
<?php
include ('lib/twitese.php');
$title = "Settings";
include ('inc/header.php');
if (!loginStatus()) header('location: login.php');
?>
<script src="js/colorpicker.js"></script>
<script src="js/setting.js"></script>
<link rel="stylesheet" href="css/colorpicker.css" />
<div id="statuses" class="column round-left... | xctcc/embrr | setting.php | PHP | gpl-3.0 | 7,543 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | GDevs/mission-farpoint | ogre/RenderSystems/GLSupport/src/OgreGLRenderSystemCommon.cpp | C++ | gpl-3.0 | 6,592 |
// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2016-2017 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hop... | sergiocazzolato/snapd | interfaces/builtin/network_control.go | GO | gpl-3.0 | 11,137 |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/v8.h"
#include "src/arguments.h"
#include "src/compiler.h"
#include "src/deoptimizer.h"
#include "src/frames.h"
#include "src/full-codege... | zhangf911/fibjs | vender/v8/src/runtime/runtime-compiler.cc | C++ | gpl-3.0 | 15,913 |
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* sfCacheFilter deals with page caching and action ... | sandaru1/codejam | www/lib/symfony/filter/sfCacheFilter.class.php | PHP | gpl-3.0 | 6,072 |
package org.apache.bcel.generic;
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification... | miuirussia/KJBE | src/org/apache/bcel/generic/GETFIELD.java | Java | gpl-3.0 | 4,938 |
exports.play = 'afplay';
exports.raise_volume = 'osascript -e "set Volume 10"'; // unmutes as well | prey/prey-node-client | lib/agent/actions/alarm/mac.js | JavaScript | gpl-3.0 | 98 |
package de.metas.ui.web.window.exceptions;
import org.adempiere.exceptions.AdempiereException;
import de.metas.ui.web.window.datatypes.DocumentPath;
import de.metas.ui.web.window.model.Document;
/*
* #%L
* metasfresh-webui-api
* %%
* Copyright (C) 2016 metas GmbH
* %%
* This program is free software: you can r... | metasfresh/metasfresh-webui-api | src/main/java/de/metas/ui/web/window/exceptions/InvalidDocumentStateException.java | Java | gpl-3.0 | 1,498 |
/*
* 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 may ... | happyjack27/autoredistrict | src/org/apache/commons/math3/ode/FieldSecondaryEquations.java | Java | gpl-3.0 | 3,524 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja_JP" version="2.1">
<context>
<name>TestPlugin</name>
<message>
<location filename="../testplugin.cpp" line="122"/>
<source>Close</source>
<translation>閉じる</translation>
</message>
<message>
<location filename="../testplu... | ThaFireDragonOfDeath/qupzilla | src/plugins/TestPlugin/translations/ja_JP.ts | TypeScript | gpl-3.0 | 1,372 |
using GitCommands;
using GitCommands.Utils;
namespace GitUI.CommandsDialogs.SettingsDialog.Pages
{
public partial class FormBrowseRepoSettingsPage : SettingsPageWithHeader
{
public FormBrowseRepoSettingsPage()
{
InitializeComponent();
Text = "Browse repository window";
... | gencer/gitextensions | GitUI/CommandsDialogs/SettingsDialog/Pages/FormBrowseRepoSettingsPage.cs | C# | gpl-3.0 | 1,850 |
/*
* Copyright (C) 2012 Krawler Information Systems Pvt Ltd
* All rights reserved.
*
* 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 optio... | niuran1993/Deskera-HRMS | mavenTimesheet/src/test/java/com/mycompany/mavenTimesheet/AppTest.java | Java | gpl-3.0 | 1,470 |
#region using directives
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using PoGo.NecroBot.Logic.Event;
using PoGo.NecroBot.Logic.Logging;
using PoGo.NecroBot.Logic.Model.Settings;
using PokemonGo.RocketAPI.Exceptions;
#endregion
namespace PoGo.NecroBot.Logic.State
{
publi... | jjskuld/NecroBot | PoGo.NecroBot.Logic/State/StateMachine.cs | C# | gpl-3.0 | 3,212 |
module Genome
module Importers
module DSL
module WithDrugsAndGenes
attr_accessor :gene_claim, :drug_claim
def initialize(item_id, importer_instance, row_instance)
super(item_id, importer_instance, row_instance, 'interaction_claim')
end
def gene(column, opts = {}, &... | genome/dgi-db | lib/genome/importers/dsl/with_drugs_and_genes.rb | Ruby | gpl-3.0 | 1,201 |
package buildcraftAdditions.ModIntegration.Buildcraft.Triggers;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import buildcraft.api.statements.IStatementContainer;
import buildcraft.api.statements.IStatementParameter;
import buildcraftAdditions.tileEntities.TileCh... | AEnterprise/Buildcraft-Additions | src/main/java/buildcraftAdditions/ModIntegration/Buildcraft/Triggers/TriggerDoneCharging.java | Java | gpl-3.0 | 1,093 |
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include "AP_BattMonitor.h"
#include "AP_BattMonitor_Analog.h"
#include "AP_BattMonitor_SMBus.h"
#include "AP_BattMonitor_Bebop.h"
extern const AP_HAL::HAL& hal;
const AP_Param::GroupInfo AP_BattMonitor::var_info[] = {
// @Param: _MONIT... | Boyang--Li/ardupilot | libraries/AP_BattMonitor/AP_BattMonitor.cpp | C++ | gpl-3.0 | 14,002 |
using uint8_t = System.Byte;
using uint16_t = System.UInt16;
using uint32_t = System.UInt32;
using uint64_t = System.UInt64;
using int8_t = System.SByte;
using int16_t = System.Int16;
using int32_t = System.Int32;
using int64_t = System.Int64;
using float32 = System.Single;
using System;
using System.Linq;
using ... | ArduPilot/MissionPlanner | ExtLibs/DroneCAN/out/src/uavcan.protocol.debug.LogLevel.cs | C# | gpl-3.0 | 1,660 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2014, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
* ... | dibenede/NFD-NDNcomm2014 | tools/nfd-status.cpp | C++ | gpl-3.0 | 29,976 |
#include "MantidAPI/WorkspaceProperty.h"
#include "MantidAPI/WorkspaceFactory.h"
#include "MantidAPI/WorkspaceGroup.h"
#include "MantidSINQ/PoldiFitPeaks1D.h"
#include "MantidDataObjects/Workspace2D.h"
#include "MantidDataObjects/TableWorkspace.h"
#include "MantidAPI/FunctionFactory.h"
#include "MantidKernel/BoundedVa... | dymkowsk/mantid | Framework/SINQ/src/PoldiFitPeaks1D.cpp | C++ | gpl-3.0 | 7,337 |
<?php
/*
**************************************************************************************************************************
** CORAL Organizations Module v. 1.0
**
** Copyright (c) 2010 University of Notre Dame
**
** This file is part of CORAL.
**
** CORAL is free software: you can redistribute it and/or modif... | NathanAhlstrom/CORAL | usage/old/admin/classes/domain/ExternalLogin.php | PHP | gpl-3.0 | 1,138 |
using System;
using System.Collections.Generic;
using System.Linq;
using Challenger_Series.Utils;
using LeagueSharp;
using LeagueSharp.SDK;
using SharpDX;
using Color = System.Drawing.Color;
using Challenger_Series.Utils;
using System.Windows.Forms;
using LeagueSharp.Data.Enumerations;
using LeagueSharp.SDK.Enumeration... | saophaisau/port | Core/SDK Ports/ChallengerSeriesAIO/Plugins/Teemo.cs | C# | gpl-3.0 | 12,392 |
package ca.pfv.spmf.test;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP.AlgoSPAM_AGP;
import ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP.dataStructures.creators.AbstractionCreator;
import ca.pf... | ArneBinder/LanguageAnalyzer | src/main/java/ca/pfv/spmf/test/MainTestSPAM_AGP_FatBitMap_saveToMemory.java | Java | gpl-3.0 | 2,453 |
<?php
/* Copyright (C) 2017 Alexandre Spangaro <aspangaro@zendsi.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later ver... | guerrierk/dolibarr | htdocs/compta/bank/various_payment/document.php | PHP | gpl-3.0 | 3,783 |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle ... | jayuqar/moodle | user/tests/userlib_test.php | PHP | gpl-3.0 | 41,890 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WiimoteLib;
namespace WiiApi {
/// <summary>
/// Klasa koriscena za prikaz polozaja i orijentacije glave u prostoru. Sadrzi samo metode za dobavljanje informacija.
/// </summary>
public class PolozajGlave {
... | ljsimin/gimii | WiiApi/WiiApi/PolozajGlave.cs | C# | gpl-3.0 | 3,610 |
var UniteSettingsRev = new function(){
var arrControls = {};
var colorPicker;
var t=this;
this.getSettingsObject = function(formID){
var obj = new Object();
var form = document.getElementById(formID);
var name,value,type,flagUpdate;
//enabling all form items connected to mx
var len = form.elem... | fwahyudi17/ofiskita | system/configa/revslider/js/settings.js | JavaScript | gpl-3.0 | 9,972 |
package cloudstack
import (
"fmt"
"io/ioutil"
"regexp"
"github.com/hashicorp/packer/packer"
"github.com/mitchellh/multistep"
"github.com/xanzy/go-cloudstack/cloudstack"
)
type stepPrepareConfig struct{}
func (s *stepPrepareConfig) Run(state multistep.StateBag) multistep.StepAction {
client := state.Get("clie... | dayglojesus/packer | builder/cloudstack/step_prepare_config.go | GO | mpl-2.0 | 5,108 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
namespace Hatfield.EnviroData.DataAcquisition.XML
{
public class XMLDataSourceLocation: IDataSourceLocation
{
public string _elementName;
public string _attributeName;
public in... | HatfieldConsultants/Hatfield.EnviroData.DataAcquisition | Source/Hatfield.EnviroData.DataAcquisition.XML/XMLDataSourceLocation.cs | C# | mpl-2.0 | 1,295 |
package cabf_br
/*
* ZLint Copyright 2021 Regents of the University of Michigan
*
* 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 r... | jcjones/boulder | vendor/github.com/zmap/zlint/v3/lints/cabf_br/lint_sub_cert_aia_missing.go | GO | mpl-2.0 | 2,127 |
/**
* This file is part of mycollab-mobile.
*
* mycollab-mobile 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.
*
* mycollab-mo... | maduhu/mycollab | mycollab-mobile/src/main/java/com/esofthead/mycollab/mobile/module/project/view/ProjectLoginPresenter.java | Java | agpl-3.0 | 1,424 |
using System;
namespace ACE.Server.Network.GameAction.Actions
{
public static class GameActionUseItem
{
[GameAction(GameActionType.Use)]
public static void Handle(ClientMessage message, Session session)
{
uint itemGuid = message.Payload.ReadUInt32();
//Console.W... | LtRipley36706/ACE | Source/ACE.Server/Network/GameAction/Actions/GameActionUseItem.cs | C# | agpl-3.0 | 470 |
<?php
/**
* class.reportTables.php
*
* @package workflow.engine.ProcessMaker
*
* ProcessMaker Open Source Edition
* Copyright (C) 2004 - 2011 Colosa 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... | BathnesDevelopment/processmaker-3.1.2.b2-community | workflow/engine/classes/class.reportTables.php | PHP | agpl-3.0 | 43,778 |
<?php
namespace League\OAuth2\Client\Provider;
use League\OAuth2\Client\Exception\HostedDomainException;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use League\OAuth2\Client\Token\AccessToken;
use League\OAuth2\Client\Tool\BearerAuthorizationTrait;
use Psr\Http\Message\ResponseInterface;
c... | colosa/processmaker | vendor/league/oauth2-google/src/Provider/Google.php | PHP | agpl-3.0 | 4,424 |
define([
'database',
'backbone'
], function (DB, Backbone) {
var MessageModel = Backbone.Model.extend({
defaults: {
messageId: 0,
sender: '',
title: '',
content: '',
hasAttachment: false,
sendDate: new Date(),
url: '... | sanyaade-teachings/mobile-messaging | www/js/models/message.js | JavaScript | agpl-3.0 | 4,522 |
/*
* sones GraphDB - Community Edition - http://www.sones.com
* Copyright (C) 2007-2011 sones GmbH
*
* This file is part of sones GraphDB Community Edition.
*
* sones GraphDB 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... | sones/sones | Applications/TagExampleWithGraphMappingFramework/Example.cs | C# | agpl-3.0 | 29,686 |
/*
* Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purposes and without
* fee is hereby granted provided that this copyright notice
* appears in all copies. Please refer to the file "copyr... | kerr-huang/openss7 | src/java/javax/telephony/Connection.java | Java | agpl-3.0 | 22,953 |
/*
* Copyright (c) 2018. Wise Wild Web
*
* This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
* Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
*
* @author : Nathanael Braun
* @contact : caipilabs@gmail.com... | nathb2b/mamasound.fr | App/config.js | JavaScript | agpl-3.0 | 1,324 |
## Note: you must install Levenshtein module
# pip install python-Levenshtein
# for this Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
# more info - see: http://stackoverflow.com/questions/18134437/where-can-the-documentation-for-python-levenshtein-be-found-online
from pymongo import Mongo... | benjaminsoellner/2015_Data_Analyst_Project_3 | Project/audit_quality_map.py | Python | agpl-3.0 | 3,625 |
<?php
class Cloudsponge_Integration {
var $enabled;
var $key;
/**
* PHP 5 Constructor
*
* @package Invite Anyone
* @since 0.8
*/
function __construct() {
if ( empty( $options ) )
$options = get_option( 'invite_anyone' );
$this->enabled = !empty( $options['cloudsponge_enabled'] ) ? $options['clo... | empirical-org/Empirical-Wordpress | wp-content/plugins/invite-anyone/by-email/cloudsponge-integration.php | PHP | agpl-3.0 | 2,189 |
package rocks.inspectit.ui.rcp.repository.service.cmr.proxy;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.framework.ReflectiveMethodInvocation;
import com.google.common.base.Defaults;... | inspectIT/inspectIT | inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/repository/service/cmr/proxy/InterceptorUtils.java | Java | agpl-3.0 | 3,959 |
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package model
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
"net/url"
"strconv"
"strings"
"time"
l4g "github.com/alecthomas/log4go"
)
const (
HEADER_REQUEST_ID = "X-Reque... | asaadmahmoodspin/platform | model/client.go | GO | agpl-3.0 | 84,229 |
require 'spec_helper'
describe Queries::SignaturesExport do
subject { Queries::SignaturesExport.new(petition_id: petition_id) }
let(:petition_id) { '1' }
it "should have generate some SQL" do
subject.sql.should start_with("SELECT")
end
context "with objects" do
let(:petition) { FactoryGirl.create... | MayOneUS/victorykit | spec/models/queries/signatures_export_spec.rb | Ruby | agpl-3.0 | 963 |
/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#include "SubItemPropertyWizardPane.hpp"
#... | raesjo/SKIRTcorona | SkirtMakeUp/SubItemPropertyWizardPane.cpp | C++ | agpl-3.0 | 3,696 |
/********
* 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.
*
* Ext.NE... | daowzq/ExtNet | ext.net.community/Ext.Net/Factory/ConfigOptions/TreeGridBooleanColumnConfigOptions.cs | C# | agpl-3.0 | 2,361 |
/**
* Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of fiware-tidoop (FI-WARE project).
*
* fiware-tidoop 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 v... | telefonicaid/fiware-tidoop | tidoop-hadoop-ext/src/main/java/com/telefonica/iot/tidoop/apiext/utils/CKANMapReduceExample.java | Java | agpl-3.0 | 6,139 |
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Agile Business Group sagl
# (<http://www.agilebg.com>)
# @author Alex Comba <alex.comba@agilebg.com>
#
# This program is free software: you can redistribute it and/or modify
# it ... | jbaudoux/account-invoicing | __unported__/stock_invoice_picking_incoterm/__openerp__.py | Python | agpl-3.0 | 1,830 |
package org.yamcs.parameter;
import org.yamcs.protobuf.Yamcs.Value.Type;
public class FloatValue extends Value {
final float v;
public FloatValue(float v) {
this.v = v;
}
@Override
public Type getType() {
return Type.FLOAT;
}
@Override
public float getFloatValue() {
... | fqqb/yamcs | yamcs-core/src/main/java/org/yamcs/parameter/FloatValue.java | Java | agpl-3.0 | 767 |
from django.utils.translation import ugettext as _, ugettext_lazy as _lazy
from django.core import urlresolvers
from django.http import HttpResponse, HttpResponseServerError
from flexi_auth.models import ObjectWithContext
from rest.views.blocks.base import BlockSSDataTables, ResourceBlockAction, CREATE_CSV
from const... | befair/gasistafelice | gasistafelice/rest/views/blocks/transactions.py | Python | agpl-3.0 | 6,479 |
require 'test_helper'
class CurrenciesHelperTest < ActionView::TestCase
end
| BCJonesey/CDB3 | test/unit/helpers/currencies_helper_test.rb | Ruby | agpl-3.0 | 77 |
<?php
/**
* Interface denoting an event is a deferred event that should be raised only at the end of the multirequest
*
* @package Core
* @subpackage events
*/
interface IKalturaMultiDeferredEvent
{
/**
* @param array $partnerCriteriaParams
*/
public function setPartnerCriteriaParams(array $partnerCriteriaP... | kaltura/server | alpha/apps/kaltura/lib/events/interfaces/IKalturaMultiDeferredEvent.php | PHP | agpl-3.0 | 330 |
package org.tasgoon.coherence.client;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.commons.io.FileUtils;
import org.tasgoon.coherence.common.Library;
import org.tasgoon.coherence.ziputils.ZipUtility;
import joptsimple.OptionParser;... | Kagiu/Coherence | src/main/java/org/tasgoon/coherence/client/CohereUndoer.java | Java | agpl-3.0 | 3,832 |
(function () {
var ns = $.namespace('pskl.service');
ns.SelectedColorsService = function () {
this.reset();
};
ns.SelectedColorsService.prototype.init = function () {
$.subscribe(Events.PRIMARY_COLOR_SELECTED, this.onPrimaryColorUpdate_.bind(this));
$.subscribe(Events.SECONDARY_COLOR_SELECTED, thi... | RichardMarks/piskel | src/js/service/SelectedColorsService.js | JavaScript | agpl-3.0 | 1,011 |
<?php
return [
'accessories' => 'Accessories',
'activated' => 'Aktivoitu',
'accessory' => 'Accessory',
'accessory_report' => 'Accessory Report',
'action' => 'Toiminto',
'activity_report' => 'Activity Report',
'address' => 'Osoite',
'admin' => 'Ylläpit... | Murima/asset-mgmt | resources/lang/fi/general.php | PHP | agpl-3.0 | 8,191 |
// Copyright 2016 The Mangos Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
// You may obtain a copy of the license at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | synapse-garden/sg-proto | vendor/github.com/go-mangos/mangos/examples/survey/survey.go | GO | agpl-3.0 | 3,364 |
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2020, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | mrcslws/nupic.research | projects/meta_cl/experiments/oml_regression_test.py | Python | agpl-3.0 | 3,610 |
// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package stateconfigwatcher_test
import (
"sync"
"time"
"github.com/juju/names/v4"
"github.com/juju/testing"
jc "github.com/juju/testing/checkers"
"github.com/juju/utils/v2/voyeur"
"github.com/juju/worker/v2"
"github.... | freyes/juju | worker/stateconfigwatcher/manifold_test.go | GO | agpl-3.0 | 6,489 |
class Admin::PetitionsController < ApplicationController
before_filter :require_admin
def index
params[:time_span] ||= 'month'
respond_to do |format|
format.html {}
format.json { render json: PetitionsDatatable.new(view_context, PetitionReportRepository.new) }
end
end
end
| ChrisAntaki/victorykit | app/controllers/admin/petitions_controller.rb | Ruby | agpl-3.0 | 304 |
<?php
/**
* Skeleton subclass for representing a row from the 'audit_trail_config' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package plugins.au... | jessp01/server | plugins/audit/lib/model/AuditTrailConfig.php | PHP | agpl-3.0 | 560 |
/*
* Async_MediaConnectionListener.java Version-1.4, 2002/11/22 09:26:10 -0800 (Fri)
* ECTF S.410-R2 Source code distribution.
*
* Copyright (c) 2002, Enterprise Computer Telephony Forum (ECTF),
* All Rights Reserved.
*
* Use and redistribution of this file is subject to a License.
* For terms and conditions se... | openss7/openss7 | src/java/javax/telephony/media/connection/async/Async_MediaConnectionListener.java | Java | agpl-3.0 | 2,435 |
// Copyright 2014 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library 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 3 of the License... | adrianbrink/tendereum | vendor/github.com/ethereumproject/go-ethereum/miner/miner.go | GO | agpl-3.0 | 5,441 |