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 |
|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2017 Bitergia
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This ... | sduenas/perceval | perceval/backend.py | Python | gpl-3.0 | 19,497 |
package com.earth2me.essentials;
import net.ess3.api.IEssentials;
import net.ess3.api.IUser;
import org.bukkit.Location;
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import static com.earth2me.essentials.I18n.tl;
public class... | drtshock/Essentials | Essentials/src/main/java/com/earth2me/essentials/AsyncTimedTeleport.java | Java | gpl-3.0 | 7,164 |
#!/usr/bin/env python
from __future__ import print_function
from glob import glob
from tempfile import NamedTemporaryFile
import sys
from alibuild_helpers.log import debug, error, info
from os import remove
from alibuild_helpers.utilities import format
from alibuild_helpers.cmd import execute
from alibuild_helpers.uti... | dberzano/alibuild | alibuild_helpers/deps.py | Python | gpl-3.0 | 3,451 |
QUnit.test( "TestDate", function( assert ) {
var converter = new DataTypeConverter();
var value = "CAF 92";
var dt = converter.inferDataTypeOfValue(value);
assert.equal(dt, DataTypeConverter.TYPES.TEXT, "Text /" + value + "/ correctly recognized.");
var value = "2023-04";
var dt = converter.in... | donpir/JSDataChecker | tests/TestCase01_InferDataTypeOnSingleValue/DataTypeSingleValueTestCase.js | JavaScript | gpl-3.0 | 8,748 |
#include <iostream>
#include <vector>
#include <cmath>
#include <fstream>
#include "utils.h"
using namespace std;
using namespace Eigen;
double euclidean_dist(Point2d p, Point2d q)
{
return sqrt((q.x-p.x)*(q.x-p.x) + (q.y-p.y)*(q.y-p.y));
}
double angle_two_points(Point2d p, Point2d q)
{
double theta;
do... | mateus558/RinoBot-System | utils.cpp | C++ | gpl-3.0 | 6,141 |
/*
* Copyright (c) 2015 OpenSilk Productions LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This prog... | OpenSilk/Orpheus | core-library-client/src/main/java/org/opensilk/music/library/client/TypedBundleableLoader.java | Java | gpl-3.0 | 7,305 |
/**
* This software is provided by NOAA for full, free and open release. It is
* understood by the recipient/user that NOAA assumes no liability for any
* errors contained in the code. Although this software is released without
* conditions or restrictions in its use, it is expected that appropriate
* credit be ... | MaxwellM/ncBrowse-revamp-CAPSTONE | src/ncBrowse/sgt/dm/SimplePoint.java | Java | gpl-3.0 | 7,850 |
<?php
/**
* @version $Id: openbay.php 3583 2014-04-11 11:27:28Z mic $
* @package Translation German
* @author mic - http://osworx.net
* @copyright 2013 OSWorX - http://osworx.net
* @license GPL - www.gnu.org/copyleft/gpl.html
*/
// Heading
$_['lang_heading_title'] = 'OpenBay Pro';
$_['lang_text_manage... | Vitronic/kaufreund.de | admin/language/de_DE/extension/openbay.php | PHP | gpl-3.0 | 8,765 |
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
*... | coderscom/wp-odoo-form-integrator | wp-odoo-form-integrator.php | PHP | gpl-3.0 | 2,847 |
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
from caed import views
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
... | julianofischer/caederm | project/urls.py | Python | gpl-3.0 | 377 |
// Copyright 2002-2013, University of Colorado Boulder
/**
* Detector for absorbance (A) and percent transmittance (%T).
*
* @author Chris Malley (PixelZoom, Inc.)
*/
define( function( require ) {
'use strict';
// modules
var ATDetector = require( 'BEERS_LAW_LAB/beerslaw/model/ATDetector' );
var Image = r... | concord-consortium/beers-law-lab | js/beerslaw/view/ATDetectorNode.js | JavaScript | gpl-3.0 | 8,297 |
/**
* <p>Title: ShowAllEmojiPackage.java</p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2014</p>
* <p>Company: ColdWorks</p>
* @author xuming
* @date 2014-9-23
* @version 1.0
*/
package com.lengtoo.impress.web.struts1.action.client2;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.... | DuoLife/lengtooyinxiang | src/com/lengtoo/impress/web/struts1/action/client2/ShowAllEmojiPackage.java | Java | gpl-3.0 | 2,459 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2021 Evan Debenham
*
* 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 vers... | 00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/journal/Catalog.java | Java | gpl-3.0 | 17,606 |
"""Current-flow betweenness centrality measures for subsets of nodes."""
import networkx as nx
from networkx.algorithms.centrality.flow_matrix import flow_matrix_row
from networkx.utils import not_implemented_for, reverse_cuthill_mckee_ordering
__all__ = [
"current_flow_betweenness_centrality_subset",
"edge_cu... | SpaceGroupUCL/qgisSpaceSyntaxToolkit | esstoolkit/external/networkx/algorithms/centrality/current_flow_betweenness_subset.py | Python | gpl-3.0 | 8,195 |
import { app } from 'mobx-app';
import { inject, observer } from 'mobx-react';
import React, { SFC } from 'react';
import { Redirect as ReactRedirect, RedirectProps as ReactRedirectProps } from 'react-router-dom';
interface RedirectProps extends ReactRedirectProps {
authedOnly?: boolean;
unauthedOnly?: boolean;
}
e... | nielsrowinbik/seaman | src/components/Redirect/Redirect.tsx | TypeScript | gpl-3.0 | 614 |
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Workflow
{
public class UserActivity
{
[YaRequired]
public string UserId { get; set; }
[ForeignKey("UserId")... | pazof/yavsc | src/Yavsc.Server/Models/Workflow/UserActivity.cs | C# | gpl-3.0 | 698 |
require 'csv'
MovieGenre.delete_all
Genre.delete_all
puts 'Creating genres'
start = Time.zone.now
# load genre and movie data
csv_text = File.read('db/seeds_data/movies.csv')
csv = CSV.parse(csv_text, headers: true)
csv.each do |row|
movie = row.to_hash
movie_saved = Movie.find_by(id: movie['movieId'])
genres =... | dreyxvx/recommender_system_api | db/tasks/genres_seed.rb | Ruby | gpl-3.0 | 629 |
var util = require('util');
var https = require('https');
var querystring = require('querystring');
var emitter = require('events').EventEmitter;
var retry = require('retry');
function FCM(apiKey) {
if (apiKey) {
this.apiKey = apiKey;
} else {
throw Error('No apiKey is given.');
... | matso165/islands-of-tribes | StoneAge/server/node_modules/fcm/lib/fcm.js | JavaScript | gpl-3.0 | 3,559 |
var panfeedModule = angular.module('panfeedModule', []);
panfeedModule.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
/*
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax
*/
jQuery(document).ajaxSend(function(event, xhr, settin... | Landric/PANFeed | panfeed/static/panfeed/scripts/initapp.js | JavaScript | gpl-3.0 | 2,447 |
/*
* VITacademics
* Copyright (C) 2015 Aneesh Neelam <neelam.aneesh@gmail.com>
* Copyright (C) 2015 Gaurav Agerwala <gauravagerwala@gmail.com>
* Copyright (C) 2015 Karthik Balakrishnan <karthikb351@gmail.com>
* Copyright (C) 2015 Pulkit Juneja <pulkit.16296@gmail.com>
* Copyright (C) 2015 Hemant Jain <hemanh... | CollegeCODE/VITacademics-Android | app/src/main/java/com/karthikb351/vitinfo2/fragment/details/AttendanceListAdapter.java | Java | gpl-3.0 | 9,017 |
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at... | AnodeCathode/ForestryMC | src/main/java/forestry/core/items/ItemForestryTool.java | Java | gpl-3.0 | 2,632 |
<?php
// Array type declaration - PHP 5.1+
function foo(array $a) {}
function foo( array $a ) {} // Test extra spacing.
// Callable type declaration - PHP 5.4+
function foo(callable $a) {}
// Scalar type declarations - PHP 7.0+
function foo(bool $a) {}
function foo(int $a) {}
function foo(float $a) {}
function foo... | AmrataRamchandani/moodle | local/codechecker/PHPCompatibility/Tests/sniff-examples/new_scalar_type_declarations.php | PHP | gpl-3.0 | 1,296 |
package l2s.gameserver.network.l2.s2c;
import java.util.ArrayList;
import java.util.Collection;
import l2s.gameserver.data.xml.holder.ProductDataHolder;
import l2s.gameserver.model.Player;
import l2s.gameserver.templates.item.product.ProductItem;
import l2s.gameserver.templates.item.product.ProductItemComponent;
pub... | pantelis60/L2Scripts_Underground | gameserver/src/main/java/l2s/gameserver/network/l2/s2c/ExBR_RecentProductListPacket.java | Java | gpl-3.0 | 2,625 |
/*
Copyright (C) 2008-2015 Teddy Michel
This file is part of TEngine.
TEngine 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.
TEngine is d... | teddy-michel/TEngine | include/Game/Entities/IBaseAnimating.hpp | C++ | gpl-3.0 | 2,717 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using PagedList.Core;
namespace Marigold
{
p... | catalintoma/Mary-Gold | Controllers/ReservationsController.cs | C# | gpl-3.0 | 2,215 |
<?php
/*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not... | Prestaspirit/debugtoolbar | override/classes/controller/Controller.php | PHP | gpl-3.0 | 48,323 |
// Simple 3D Model Viewer
// Copyright (C) 2012 Ingo Ruhnke <grumbel@gmail.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... | Grumbel/viewer | src/assert_gl.hpp | C++ | gpl-3.0 | 1,656 |
<?php
/**
* Template part for displaying page content in page.php.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package lorainccc
*/
?>
<?php
$whattodisplay = 'lccc-events';
$today = getdate();
$currentDay = $today['mday'];
$month = $today['mon'];
$year = $today['year'];
$fi... | lorainccc/themes | lorainccc_stocker/template-parts/content-lccc-event.php | PHP | gpl-3.0 | 5,375 |
#include <vigir_footstep_planning_default_plugins/world_model/terrain_model.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/io/pcd_io.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <vigir_footstep_planning_lib/helper.h>
#include <vigir_footstep_planning_lib/math.h>
#include <vigir_terrain_classifier... | team-vigir/vigir_footstep_planning_core | vigir_footstep_planning_default_plugins/src/world_model/terrain_model.cpp | C++ | gpl-3.0 | 7,592 |
<?php
/***************************************************************************\
* SPIP, Système de publication pour l'internet *
* *
* Copyright © avec tendresse depuis 2001 *
* ... | spip/SPIP | ecrire/install/etape_2.php | PHP | gpl-3.0 | 5,813 |
<div class="container">
<h4 class="form-signin-heading"><?php echo $lang['ADMIN_COMMANDS_START_SPOOLING']; ?></h4>
<br>
<a style="color: white;" href="index.php?commands&startservice"><button type="button" class="btn btn-success btn-lg"><?php echo $lang['ADMIN_COMMANDS_APPLY']; ?></button></a>
<b... | akshinmustafayev/PrinterSetupSystem | app/views/commands.php | PHP | gpl-3.0 | 1,265 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.Xml;
using System.Xml.Serialization;
namespace Fibonatix.CommDoo.Kalixa.Entities.Response
{
[Serializable()]
[XmlRoot("executePaymentAct... | alexeybezverkhiy/fibonatix | PSP/Fibonatix.CommDoo/Kalixa/Entities/Responses/CaptureResponse.cs | C# | gpl-3.0 | 1,577 |
/*******************************************************************************
* This file is part of RedReader.
*
* RedReader 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 Lic... | QuantumBadger/RedReader | src/main/java/org/quantumbadger/redreader/receivers/announcements/Payload.java | Java | gpl-3.0 | 4,046 |
<?php
header('Content-Type:text/html; charset=utf-8');
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PWD', 'yangfan');
define('DB_NAME', 'blog');
$conn = @mysql_connect(DB_HOST, DB_USER, DB_PWD) or die('数据库链接失败:'.mysql_error());
@mysql_select_db(DB_NAME) or die('数据库错误:'.mysql_error()... | shoushou70/blog_1 | blog/config.php | PHP | gpl-3.0 | 431 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SCA.Interface.DatabaseAccess;
using SCA.Interface;
using System.Data.OleDb;
using System.Data;
using System.Collections;
/* ==============================
*
* Author : William
* Create Date: 2016/10/26 15:40:54
* FileName ... | A1X71/twilight | SCA.WPF/SCA.DatabaseAccess/Utility/MSAccessDatabaseAccess.cs | C# | gpl-3.0 | 7,896 |
package regalowl.hyperconomy.command;
import regalowl.hyperconomy.HyperConomy;
import regalowl.hyperconomy.HyperEconomy;
import regalowl.hyperconomy.shop.Shop;
import regalowl.hyperconomy.tradeobject.TradeObject;
import regalowl.hyperconomy.tradeobject.TradeObjectType;
import regalowl.hyperconomy.transaction.Pl... | RegalOwl/HyperConomy | src/main/java/regalowl/hyperconomy/command/Sell.java | Java | gpl-3.0 | 2,152 |
from PyQt5 import QtCore
import subprocess
from pyconrad import *
import numpy as np
import jpype
import time
class forward_project_thread(QtCore.QThread):
forward_project_finsihed = QtCore.pyqtSignal(str)
def init(self, use_cl, ForwardProj, Phantom):
self.use_cl = use_cl
self.ForwardProj = Fo... | alPreuhs/InteractiveReconstruction | Threads/forward_projection_thread.py | Python | gpl-3.0 | 783 |
/*******************************************************************************
* Copyright 2008(c) The OBiBa Consortium. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU Genera... | apruden/opal | opal-core-ws/src/main/java/org/obiba/opal/web/magma/support/AbstractDatasourceFactoryDtoParser.java | Java | gpl-3.0 | 4,236 |
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright 2009 !j Incorporated
#
# This file is part of Canner.
#
# Canner 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... | pusateri/canner | taggers/OS--ScreenOS/file--config.netscreen/parse-config.py | Python | gpl-3.0 | 4,229 |
# Copyright (C) 2006-2007 Red Hat, Inc.
# Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/>
#
# 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
# ... | sugarlabs/sugar | src/jarabe/model/buddy.py | Python | gpl-3.0 | 7,314 |
/*
* Copyright (C) 2014 David Gutiérrez Rubio <davidgutierrezrubio@gmail.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 l... | joaquinpintos/kairos | src/gui/DatosEditor/Docencia/JTreeProfesoresTransferHandler.java | Java | gpl-3.0 | 2,284 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace NeoComp.Networks.Computational.Neural
{
[Serializable]
[DataContract(IsReference = true, Namespace = NeoComp.xmlns, Name = "afLin")]
public sealed class LinearActivationFunct... | unbornchikken/Neuroflow | _vault/NFBak/NeoComp02/NeoComp/Neocomp Framework/!OLD/NeoComp/Networks/Computational/Neural/_ActivationFunctions/LinearActivationFunction.cs | C# | gpl-3.0 | 1,252 |
module Api
module V21
class InterfacesController < V2::InterfacesController
include Api::Version21
def index
super
render :json => @interfaces, :each_serializer => InterfaceSerializer
end
def show
render :json => @interface, :serializer => InterfaceSerializer
... | daviddavis/foretello_api_v21 | app/controllers/api/v21/interfaces_controller.rb | Ruby | gpl-3.0 | 346 |
/*
* Copyright 2015 Jeff Simpson.
*
* This file is part of the Argo MQTT Transport plugin.
*
* Argo MQTT Transport plugin 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
* Licen... | argoPlugins/mqttTransportPlugin | src/main/java/ws/argo/responder/plugin/repeater/mqtt/MqttRepeaterProbeHandlerPlugin.java | Java | gpl-3.0 | 6,368 |
<?php
/*
* This file is part of Totara LMS
*
* Copyright (C) 2010-2012 Totara Learning Solutions LTD
*
* 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
... | danielbonetto/twig_MVC | totara/message/tasks.php | PHP | gpl-3.0 | 5,091 |
<?php
//TODO EM_Events is currently static, better we make this non-static so we can loop sets of events, and standardize with other objects.
/**
* Use this class to query and manipulate sets of events. If dealing with more than one event, you probably want to use this class in some way.
*
*/
class EM_Events extends... | dexxtr/osbb-web-manager | www/wp-content/plugins/events-manager/classes/em-events.php | PHP | gpl-3.0 | 24,240 |
/*
* Children Immunization Registry System (IRS). Copyright (C) 2011 PATH (www.path.org)
*
* 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... | htran282/IRS | src/main/java/org/hil/core/model/SystemAccount.java | Java | gpl-3.0 | 3,183 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ispd.motor.filas;
import ispd.motor.filas.servidores.CS_Comunicacao;
import ispd.motor.filas.servidores.implementacao.CS_Internet;
import ispd.motor.filas.servidores.implementacao.CS_Maquina;
import ispd.motor.f... | joaoamr/iSPD | src/ispd/motor/filas/RedeDeFilasCloud.java | Java | gpl-3.0 | 3,854 |
package yt.bam.library.modules;
import java.util.ArrayList;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.permissions.Permission;
import org.bukkit.plugin.Plugin;
import yt.bam.library.... | BAMdevelopment/BAMLibrary | src/main/java/yt/bam/library/modules/CommandModule.java | Java | gpl-3.0 | 3,547 |
/*
*
* DATA SCENE
*
*/
// Fait la moyenne des data sommé par le hub
function getSensorData()
{
var result = {};
if (motion.counter != 0)
{
result.motion = {
acceleration : {
x : motion.acceleration.x / motion.counter,
y : motion.a... | sandros06/R-3D | apps/base_websocket/public/javascripts/scripts/data_scene.js | JavaScript | gpl-3.0 | 2,528 |
<?php
ob_start ("ob_gzhandler");
header("Content-type: text/css; charset= UTF-8");
header("Cache-Control: must-revalidate");
$expires_time = 1440;
$offset = 60 * $expires_time ;
$ExpStr = "Expires: " .
gmdate("D, d M Y H:i:s",
time() + $offset) . " GMT";
header($ExpStr);
?>
/*** kunena.foru... | crosslink/huai | components/com_kunena/template/example/css/css-ad511544f6303b617227b4948cdd904d.php | PHP | gpl-3.0 | 93,030 |
const merge = require("merge");
function fakeOne(modelName, overrides) {
const model = require("../models/" + modelName);
const fakeData = require("../fakers/" + modelName);
instance = new model(merge.recursive(true, fakeData(), overrides));
return instance.save();
}
module.exports = (modelName, count, override... | BlackChaosNL/dragontide | lib/fake.js | JavaScript | gpl-3.0 | 660 |
var searchData=
[
['flash_2ec',['flash.c',['../flash_8c.html',1,'']]],
['flash_2eh',['flash.h',['../flash_8h.html',1,'']]],
['flash_5fcommon_5ff234_2ec',['flash_common_f234.c',['../flash__common__f234_8c.html',1,'']]],
['flash_5fcommon_5ff234_2ed',['flash_common_f234.d',['../flash__common__f234_8d.html',1,'']]]... | Aghosh993/TARS_codebase | libopencm3/doc/stm32f2/html/search/files_4.js | JavaScript | gpl-3.0 | 703 |
// Copyright 2016 Mustafa Serdar Sanli
//
// This file is part of HexArtisan.
//
// HexArtisan 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 late... | mserdarsanli/HexArtisan | src/Unicode.cpp | C++ | gpl-3.0 | 2,209 |
//
//
// LiveFlight Connect
//
// UsbNotification.cs
// Source: http://stackoverflow.com/questions/16245706/check-for-device-change-add-remove-events
//
// Licensed under GPL-V3.
// https://github.com/LiveFlightApp/Connect-Windows/blob/master/LICENSE
//
using System;
using System.Runtime.InteropServices;
name... | LiveFlightApp/Connect-Windows | LiveFlight-Connect/UsbNotification.cs | C# | gpl-3.0 | 2,599 |
/*This file is part of Packet Sniffer
* Copyright (C) 2009,2010 Daniel Myers dan<at>moird.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 y... | moird/PacketSniffer | PacketSniffer/Listen.cs | C# | gpl-3.0 | 3,625 |
package ocpp.cs._2012._06;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für ReadingContext.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
* <p>
* ... | dtag-dev-sec/emobility | dist/src/centralsystem/target/generated-sources/ocpp/cs/_2012/_06/ReadingContext.java | Java | gpl-3.0 | 1,773 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle( "P... | bretambrose/CCGOnlinePublic | CCGOnline/CCGOnline/PackageManager/Properties/AssemblyInfo.cs | C# | gpl-3.0 | 1,446 |
/*
* Copyright (C) 2018 Stuart Howarth <showarth@marxoft.co.uk>
*
* 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 hope that it will be use... | marxoft/qdl2 | client/src/desktop/main.cpp | C++ | gpl-3.0 | 3,225 |
/**
AirCasting - Share your Air!
Copyright (C) 2011-2012 HabitatMap, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | HabitatMap/AirCastingAndroidClient | src/main/java/pl/llp/aircasting/screens/sessionRecord/ContributeActivity.java | Java | gpl-3.0 | 2,765 |
/*
* Copyright (C) 2017 zsel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed i... | Obsidiam/amelia | src/main/java/com/neology/lastdays/LastDaysService.java | Java | gpl-3.0 | 1,866 |
/* <genericpacket.cpp>
Copyright(C) 2014 Jan Simon Bunten
Simon Kadel
Martin Sven Oehler
Arne Sven Stühlmeyer
This File is part of the WhisperLibrary
WhisperLibrary is free software : you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
... | UndeadKernel/whisper-library | whisperLibrary/src/genericpacket.cpp | C++ | gpl-3.0 | 1,011 |
"""
DFO-GN
====================
A derivative-free solver for least squares minimisation with bound constraints.
This version has resampling (not part of main package).
This file is a modified version of DFOGN which allows resampling and restarts,
to better cope with noisy problems.
Lindon Roberts, 2017
Call structur... | numericalalgorithmsgroup/dfogn | dfogn/dfogn_resampling.py | Python | gpl-3.0 | 58,645 |
package algorithms
func mergeTwoLists(l1 *ListNode, l2 *ListNode) *ListNode {
head := &ListNode{}
l3 := head
for l1 != nil && l2 != nil {
if l1.Val < l2.Val {
l3.Next = l1
l1 = l1.Next
} else {
l3.Next = l2
l2 = l2.Next
}
l3 = l3.Next
}
if l1 == nil {
l3.Next = l2
}
if l2 == nil {
l3.Nex... | BedivereZero/LeeCode | algorithms/0021-merge-two-sorted-lists.go | GO | gpl-3.0 | 350 |
package PCA_testcases;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.zip.GZIPInputStream;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
publi... | Sipkovandam/PCrotation | Sipko/src/main/java/PCA_testcases/CompareFiles.java | Java | gpl-3.0 | 1,891 |
<?php
namespace simvc\lib\request;
abstract class DecoratorRequest extends ProcessRequest{
protected $request;
public function __construct( ProcessRequest $request ){
$this -> request = $request;
}
}
?>
| yiyide266/simvc | simvc/lib/request/DecoratorRequest.class.php | PHP | gpl-3.0 | 212 |
package de.deepamehta.storage.neo4j;
import de.deepamehta.core.storage.spi.DeepaMehtaTransaction;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Transaction;
/**
* Adapts a Neo4j transaction to a DeepaMehta transaction.
*/
class Neo4jTransactionAdapter implements DeepaMehtaTransaction {
... | ascherer/deepamehta | modules/dm4-storage-neo4j/src/main/java/de/deepamehta/storage/neo4j/Neo4jTransactionAdapter.java | Java | gpl-3.0 | 1,023 |
using System.IO;
using System.Runtime.Serialization;
using WolvenKit.CR2W.Reflection;
using FastMember;
using static WolvenKit.CR2W.Types.Enums;
namespace WolvenKit.CR2W.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class W3Effect_PoisonCritical : W3CriticalDOTEffect
{
public W3Effect_PoisonCritical(C... | Traderain/Wolven-kit | WolvenKit.CR2W/Types/W3/RTTIConvert/W3Effect_PoisonCritical.cs | C# | gpl-3.0 | 691 |
/*
* _____ _ _ _____ _
* | __ \| | | | / ____| | |
* | |__) | | ___ | |_| (___ __ _ _ _ __ _ _ __ ___ __| |
* | ___/| |/ _ \| __|\___ \ / _` | | | |/ _` | '__/ _ \/ _` |
* | | | | (_) | |_ ____) | (_| | ... | IntellectualCrafters/PlotSquared | Core/src/main/java/com/plotsquared/core/plot/flag/implementations/HangingPlaceFlag.java | Java | gpl-3.0 | 2,113 |
<?php if (!defined('IDIR')) { die; }
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin - Licence Number VBF98A5CB5
|| # ---------------------------------------------------------------- # ||
|| # All PHP c... | chrisplough/otmfaq | otmfaq.com/htdocs/forums/impex/systems/deluxeportal/007.php | PHP | gpl-3.0 | 9,316 |
/*
* Copyright (C) 2012, 2013 Paul Grégoire
*
* This file is part of AIWar.
*
* AIWar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ve... | merovingien/AIWar | miningship.hpp | C++ | gpl-3.0 | 2,149 |
<img src="<?php echo get_bloginfo('wpurl');?>/wp-content/plugins/native-apps-builder/img/logo.png" />
<style type="text/css">
<?php
require_once("login.css");
?>
</style>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#registerform").bind("submit",function(e){
//e.preventDefault();
... | wp-plugins/native-apps-builder | login/login.php | PHP | gpl-3.0 | 2,266 |
# -*- coding: utf-8 -*-
# Copyright (C) Duncan Macleod (2014-2020)
#
# This file is part of GWpy.
#
# GWpy 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)... | gwpy/gwpy | gwpy/io/ligolw.py | Python | gpl-3.0 | 22,098 |
using System.Collections.Generic;
using ECCentral.BizEntity.IM;
using ECCentral.Service.IM.IDataAccess;
using ECCentral.Service.Utility;
using ECCentral.Service.Utility.DataAccess;
namespace ECCentral.Service.IM.SqlDataAccess
{
[VersionExport(typeof(IAccessoryDA))]
public class AccessoryDA : IAccessoryDA
... | ZeroOne71/ql | 02_ECCentral/03_Service/02_IM/ECCentral.Service.IM.SqlDataAccess/AccessoryDA.cs | C# | gpl-3.0 | 2,285 |
// -*- C++ -*-
/*!
* @file SFMLJoystickToVelocityComp.cpp
* @brief Standalone component
* @date $Date$
*
* $Id$
*/
#include <rtm/Manager.h>
#include <iostream>
#include <string>
#include <stdlib.h>
#include "SFMLJoystickToVelocity.h"
void MyModuleInit(RTC::Manager* manager)
{
SFMLJoystickToVelocityInit(manag... | sugarsweetrobotics/SFMLJoystickToVelocity | src/SFMLJoystickToVelocityComp.cpp | C++ | gpl-3.0 | 2,659 |
#################################################################################
# Copyright 2014 See AUTHORS file.
#
# Licensed under the GNU General Public License Version 3.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.... | blackears/libgdx_blender_g3d_exporter | io_scene_g3d/__init__.py | Python | gpl-3.0 | 1,616 |
#
# Copyright 2017 Russell Smiley
#
# This file is part of timetools.
#
# timetools 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.
#
#... | blueskyjunkie/timeTools | timetools/synchronization/tests/testIntervals.py | Python | gpl-3.0 | 2,719 |
#include <bits/stdc++.h>
using namespace std;
const int maxn = 25;
const int maxs = 4099;
int n, bcnt[maxs], n1, n2;
int a[maxn];
char cht[maxs];
map<int, int> val;
int main() {
bcnt[0] = 0;
for (int i = 1; i < maxs; ++i) bcnt[i] = bcnt[i >> 1] + (i & 1);
while (scanf("%d", &n) == 1) {
val.clear();
for (int i = ... | Chrogeek/chrogeek-noi | LA 2965 Jurassic Remains/la2965.cpp | C++ | gpl-3.0 | 1,257 |
/*
* example_fdtd_2dte_lence.cpp
*
* Created on: Nov 2, 2016
* Author: Dr. Yevgeniy Kolokoltsev
*/
#include <iostream>
#include <cmath>
#include <algorithm>
#include <memory>
#include "../../lib_fdtd/advanced/example_fdtd_2nd_mur.hpp"
#include "../../lib_fdtd/diplay/em_field_intensity_display.hpp"
using n... | YKolokoltsev/CompPhysFWK | src/examples/fdtd/diafragm.cpp | C++ | gpl-3.0 | 1,657 |
<?php
include("inc/database.php");
?>
<!DOCTYPE html>
<html>
<head>
<title>PRO Rank Tracker</title>
<link rel="stylesheet" type="text/css" href="css/track.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/graphs.js"></script>
<script type="text/javascri... | XTWebdesign/PRORanking | track.php | PHP | gpl-3.0 | 2,706 |
package de.upb.reconos.grasp.gui.menus;
import java.awt.event.ActionEvent;
import de.upb.reconos.grasp.objects.StateMachineNode;
import de.upb.reconos.grasp.objects.World;
public class StateMachineMenu extends BasicMenu {
private static final long serialVersionUID = 1L;
private StateMachineNode node;
public ... | luebbers/reconos | attic/tools/java/grasp/de/upb/reconos/grasp/gui/menus/StateMachineMenu.java | Java | gpl-3.0 | 1,096 |
from Collisions.Collidable import Collidable
from Collisions.TypeBasedCollision import TypeBasedCollision
from Drawing.Drawable import Drawable
from Drawing.DrawPlatform import DrawPlatform
from Movement.Movable import Movable, Movable2D
from Movement.State import State2D
from Utility.Entity import Entity
############... | dloman/FiestaMonsterz | Entities/Platform.py | Python | gpl-3.0 | 1,236 |
/***********************************************************
* Programming Assignment 3 *
* Distance program *
* Programmer: Mark Eatough *
* Course: CS1410 *
* Created February 28, 2012 *
* Modified March 6, 2012 *
* Modified by Mark Eatough ... | meatough/Marks-Programs | cs 1410/Assignment 3/Trapezoid.java | Java | gpl-3.0 | 1,914 |
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <stdio.h>
#include "geometry_msgs/PoseStamped.h"
#include "geometry_msgs/Vector3Stamped.h"
#include <mavros_msgs/SetMode.h>
#include <mavros_msgs/State.h>
#include <apriltags/AprilTagDetections.h>
#include <mavros_msgs/CommandBool.h>
geometry_msgs::PoseStamp... | chickonice/AutonomousFlight | px4_new_ws/src/px4_nav/src/hover.cpp | C++ | gpl-3.0 | 2,676 |
<?php
/** ---------------------------------------------------------------------
* app/lib/Plugins/Media/Audio.php :
* ----------------------------------------------------------------------
* CollectiveAccess
* Open-source collections management software
* -----------------------------------------------------------... | kehh/providence | app/lib/Plugins/Media/Audio.php | PHP | gpl-3.0 | 32,591 |
<?php
/**
* LiskPhp - A PHP wrapper for the LISK API
* Copyright (c) 2017 Marcus Puchalla <cb0@0xcb0.com>
*
* LiskPhp 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
... | cb0/LiskPHP | src/lib/Api/Apps/InstallAppRequest.php | PHP | gpl-3.0 | 1,505 |
// $Id: CbcHeuristicDINS.cpp 2094 2014-11-18 11:15:36Z forrest $
// Copyright (C) 2006, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
// edwin 12/5/09 carved out of CbcHeuristicRINS
#if defined(_MSC_VER)
/... | phines/acsimsep | ThirdParty/Coin-Bonmin/Cbc/src/CbcHeuristicDINS.cpp | C++ | gpl-3.0 | 16,193 |
/*
* Copyright (C) 2020 The ESPResSo project
*
* This file is part of ESPResSo.
*
* ESPResSo 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 l... | fweik/espresso | src/script_interface/ContextManager.cpp | C++ | gpl-3.0 | 2,328 |
<?php
if (is_ajax()) {
if (isset($_POST["action"]) && !empty($_POST["action"])) { //Checks if action value exists
$action = $_POST["action"];
switch($action) { //Switch case for value of action
case "updateKataster": updateKataster(); break;
case "saveKataster": saveKataster(); break;
case "loadMesstrup... | cuzcomd/DALUS | php/options.php | PHP | gpl-3.0 | 4,972 |
package quests;
import l2s.gameserver.ThreadPoolManager;
import l2s.gameserver.model.instances.NpcInstance;
import l2s.gameserver.model.quest.Quest;
import l2s.gameserver.model.quest.QuestState;
import l2s.gameserver.network.l2.components.NpcString;
import l2s.gameserver.scripts.Functions;
import l2s.gameserver.script... | pantelis60/L2Scripts_Underground | dist/gameserver/data/scripts/quests/_10772_ReportsfromCrumaTowerPart1.java | Java | gpl-3.0 | 2,517 |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* 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 app... | wiki2014/Learning-Summary | alps/cts/common/util/src/com/android/compatibility/common/util/TestFilter.java | Java | gpl-3.0 | 3,932 |
package org.um.feri.ears.problems.real_world.cec2011;
import java.util.ArrayList;
import java.util.Collections;
import org.apache.commons.lang3.ArrayUtils;
import org.um.feri.ears.problems.Problem;
import org.um.feri.ears.util.Util;
/**
* Problem function!
*
* @author Matej Črepinšek
* @version 1
*
**/
pub... | scrmtrey91/EARS | src/org/um/feri/ears/problems/real_world/cec2011/CEC2011_Problem_11_7_ELD_140.java | Java | gpl-3.0 | 25,259 |
<?php
require_once ('./application/class/mercadopago.php');
require_once '../aplication/class/dbConn.php';
class confirmacionPago {
public function __construct() {
$data = self::getTokenYIdMercado();
$mp = new MP($data['idMercado'], $data['tokenMercado']);
$mp->sandbox_mode(TRUE);
... | Nahuel-BM/Celtis-Tala | application/controllers/confirmacionPago.php | PHP | gpl-3.0 | 1,004 |
<?php
/**
* @In the name of God!
* @author: Iman Moodi (Iman92)
* @email: info@apadanacms.ir
* @link: http://www.apadanacms.ir
* @license: http://www.gnu.org/licenses/
* @copyright: Copyright © 2012-2015 ApadanaCms.ir. All rights reserved.
* @Apadana CMS is a Free Software
*/
defined('security') or ... | Apadana/apadana-cms | engine/admin/modules/cache.php | PHP | gpl-3.0 | 2,326 |
// Copyright © 2011-2015 Yanick Castonguay
//
// This file is part of Sessions, a music player for musicians.
//
// Sessions 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, ... | ycastonguay/libssp_player | player-sample-ios-xamarin/PlayerViewController.cs | C# | gpl-3.0 | 7,452 |
<?php
/**
* This file is part of GESSEH project
*
* @author: Pierre-François ANGRAND <gesseh@medlibre.fr>
* @copyright: Copyright 2017 Pierre-François Angrand
* @license: GPLv3
* See LICENSE file or http://www.gnu.org/licenses/gpl.html
*/
namespace Gesseh\RegisterBundle\Controller;
use Symfony\Bundle\Framewor... | CaraGk/gesseh | src/Gesseh/RegisterBundle/Controller/PartnerController.php | PHP | gpl-3.0 | 2,826 |
<?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... | danielbonetto/twig_MVC | lang/de/qtype_calculatedmulti.php | PHP | gpl-3.0 | 1,886 |
package main
import (
"future"
"log"
"time"
)
// usage example
// creating and using an asynchronous service
func main() {
server = startServer()
startClients()
var never chan struct{}
<-never
}
const (
latencyFactor = 1 // latency of each service request
numClients = 10 // n... | alphazero/future | example/async_service.go | GO | gpl-3.0 | 2,754 |
package dna.metrics.paths;
import dna.graph.IElement;
import dna.graph.nodes.Node;
import dna.metrics.algorithms.IRecomputation;
import dna.series.data.distributions.DistributionLong;
public class UnweightedAllPairsShortestPathsR extends
UnweightedAllPairsShortestPaths implements IRecomputation {
public Unweighte... | timgrube/DNA | src/dna/metrics/paths/UnweightedAllPairsShortestPathsR.java | Java | gpl-3.0 | 577 |
## awg_iq class
# two channels of awgs and a local oscillator used to feed a single iq mixer
# maximum settings of the current mixer that should not be exceeded
import numpy as np
import logging
from .save_pkl import *
from .config import get_config
from matplotlib import pyplot as plt
class awg_iq:
"""Interface fo... | ooovector/qtlab_replacement | awg_iq.py | Python | gpl-3.0 | 12,232 |