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 |
|---|---|---|---|---|---|
//: generics/FactoryConstraint.java
interface FactoryI<T> {
T create();
}
class Foo2<T> {
private T x;
public <F extends FactoryI<T>> Foo2(F factory) {
x = factory.create();
}
// ...
}
class IntegerFactory implements FactoryI<Integer> {
public Integer create() {
return new Integer(0);
}
}
cla... | NorthFacing/step-by-Java | java-base/sourceCodeBak/Thinking in Java/generics/FactoryConstraint.java | Java | gpl-2.0 | 638 |
<?php
/*
* Copyright 2005-2015 Centreon
* Centreon is developped by : Julien Mathis and Romain Le Merlus under
* GPL Licence 2.0.
*
* 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 versio... | jben94/centreon | www/include/views/graphs/graph-split.php | PHP | gpl-2.0 | 5,434 |
<?php
// URI: design/admin/templates/navigator/google.tpl
// Filename: design/admin/templates/navigator/google.tpl
// Timestamp: 1416144920 (Sun Nov 16 14:35:20 CET 2014)
$oldSetArray_99a3cecd353295a13123c0e522f2c6fe = isset( $setArray ) ? $setArray : array();
$setArray = array();
$tpl->Level++;
if ( $tpl->Level... | imadkaf/aYaville | ezpublish_legacy/var/ezdemo_site/cache/template/compiled/google-1c07b127ceff2e661bfb8ff17cd42902.php | PHP | gpl-2.0 | 66,608 |
'use strict';
const { expect } = require('chai');
const { getParsedSql } = require('./util');
describe('common table expressions', () => {
it('should support single CTE', () => {
const sql = `
WITH cte AS (SELECT 1)
SELECT * FROM cte
`.trim();
expect(getParsedSql(s... | godmodelabs/flora-sql-parser | test/ast2sql/cte.js | JavaScript | gpl-2.0 | 1,628 |
"use strict";
/***
* critical element webgl demo by Silke Rohn and Benedikt Klotz
* Source is the Basis applikation.
* Added and changed functionalities:
* @Benedikt: Objects, Lighting, particle systems, shader, blending and face culling
* @Silke: particle system, changes to particle systems (Elements)
*/
var webgl ... | Streamstormer/webGL-project | js/webgl.js | JavaScript | gpl-2.0 | 37,180 |
/*
* Qt Authentication Library
* Copyright (C) 2013 Martin Bříza <mbriza@redhat.com>
*
* This 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 2.1 of the License, or (at y... | l10n-tw/sddm | src/auth/Auth.cpp | C++ | gpl-2.0 | 12,193 |
<?php
//
// ZoneMinder web frame view file, $Date$, $Revision$
// Copyright (C) 2001-2008 Philip Coombes
//
// 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,... | connortechnology/ZoneMinder | web/skins/classic/views/frame.php | PHP | gpl-2.0 | 7,597 |
import React from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
const StyledTag = styled.span`
color: ${props => props.color};
background: ${props => props.bgcolor};
padding: ${props => props.padding};
margin: ${props => props.margin};
border-radius: 3px;
border: ${pr... | pamfilos/data.cern.ch | ui/cap-react/src/components/partials/Tag.js | JavaScript | gpl-2.0 | 1,314 |
<?php
/**
* The switch customize control extends the WP_Customize_Control class. This class allows
* developers to create switch settings within the WordPress theme customizer.
*
* @package Bulan
* @author Theme Junkie, Kirki
* @copyright Copyright (c) 2015, Theme Junkie
* @license http://www.gnu.or... | rkarpeles/taylorkarpeles | wp-content/themes/bulan/admin/controls/switch.php | PHP | gpl-2.0 | 2,026 |
package e.scm;
import java.awt.*;
import javax.swing.*;
public class AnnotatedLineRenderer extends e.gui.EListCellRenderer<AnnotatedLine> {
/** Used to draw the dashed line between adjacent lines from different revisions. */
private static final Stroke DASHED_STROKE = new BasicStroke(1.0f,
BasicSt... | software-jessies-org/scm | src/e/scm/AnnotatedLineRenderer.java | Java | gpl-2.0 | 1,792 |
from utils import textAppend, textPrepend, textCut, textEditLastChar, error, textCursorPos
class File:
""" Represents a file (A separated class allow to open several files at a time.
The class also holds the whole file content. (The vim buffers only store either the
accepted chunks, or the editing statement) """
... | QuanticPotato/vcoq | plugin/file.py | Python | gpl-2.0 | 4,084 |
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2019 The MMapper Authors
#include "abstractparser.h"
#include <map>
#include <memory>
#include <optional>
#include <ostream>
#include <sstream>
#include <vector>
#include "../configuration/configuration.h"
#include "../display/InfoMarkSelection.h"
#includ... | MUME/MMapper | src/parser/AbstractParser-Mark.cpp | C++ | gpl-2.0 | 12,204 |
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2017 Dominik Reichl <dominik.reichl@t-online.de>
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 ... | FSteitz/KeePass | KeePass/Forms/ImportMethodForm.cs | C# | gpl-2.0 | 3,187 |
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using Business.Logic.Factories;
using Business.Logic.Objects;
using Business.Logic.Queries;
namespace DFWOutdoors.Controllers
{
public class CampInfoController : ApiController
{
[HttpPost]
public IEnumerable<CampSite> ... | SparkyCoder/Xenocide | DFWOutdoors/DFWOutdoors/Controllers/CampInfoController.cs | C# | gpl-2.0 | 740 |
/*
* Copyright (c) 2010 Mark Liversedge (liversedge@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 2 of the License, or (at your option)
* any later version.
... | g3rg/GoldenCheetah | src/ICalendar.cpp | C++ | gpl-2.0 | 11,408 |
/**
* This file is a part of Luminance HDR package.
* ----------------------------------------------------------------------
* Copyright (C) 2011 Franco Comida
*
* 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 ... | LuminanceHDR/LuminanceHDR | src/TonemappingPanel/SavingParametersDialog.cpp | C++ | gpl-2.0 | 1,393 |
/**
*
*/
package agentRefactoringStrand;
/**
* @author Daavid
*
*/
public class Attribute {
private String name;
}
| danaderp/unalcol | projects/optimizationRefactoringStrand/src/agentRefactoringStrand/Attribute.java | Java | gpl-2.0 | 137 |
/*
* Copyright (C) 2005-2010 MaNGOS <http://getmangos.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 2 of the License, or
* (at your option) any later version.
*
... | MiLk/mangos | src/game/PetitionsHandler.cpp | C++ | gpl-2.0 | 34,581 |
<?php
/*
Template Name:aboutus
*/
?>
<?php get_header(); ?>
<div class="about_bt">
<div class="about_bt_ka">
<div class="about_bt_left">
<h1>ABOUT US</h1>
<p>关于我们</p>
</div>
<div class="about_bt_right">
<a href="<?php echo get_option('mytheme_news_title'); ... | xiaofanmeirong/weizhen | wp-content/themes/wood-themes/aboutus.php | PHP | gpl-2.0 | 2,587 |
package com.example.kickfor;
import com.example.kickfor.team.ChangingRoomEntity;
import android.os.Handler;
import android.os.Message;
public class ProgressBarTimer implements Runnable{
private Object v=null;
private Handler handler=null;
private int what=-1;
private Object b=null;
public ProgressBarTimer(H... | yumjade/KickFor | src/com/example/kickfor/ProgressBarTimer.java | Java | gpl-2.0 | 941 |
<?php
// Bloxx - Open Source Content Management System
//
// Copyright (c) 2002 - 2005 The Bloxx Team. All rights reserved.
//
// Bloxx 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... | telmomenezes/bloxx | lang/PT/bloxx_lang_PT_personalinfo.php | PHP | gpl-2.0 | 1,664 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RielAp.Domain.Models
{
public class Order : IModel
{
public Guid OrderId { get; set; }
public string Description { g... | tarashor/Rielstartup | RielAp.Domain/Models/Order.cs | C# | gpl-2.0 | 722 |
<?php
/**
* Header Template
*
* Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
* should be made in a child theme.
*
* @category CyberChimps Framework
* @package Framework
* @since 1.0
* @author CyberChimps
* @license http://www.opensource.org/license... | campusIdOpenRov/campusrovblog | wp-content/themes/eclipse/header.php | PHP | gpl-2.0 | 3,888 |
<?php
/**
* Created by PhpStorm.
* User: ROGER
* Date: 16.03.14
* Time: 04:08
*/
add_action('admin_notices', 'my_admin_notice');
function my_admin_notice() {
$set_errors = get_settings_errors();
if (!isset($_SESSION['page_for_posts']) || !isset($_SESSION['page_on_front'])) {
$_SESSION['page_for_posts'] = ... | HRoger/angularpresstheme | library/inc/angular/admin/reading-settings.php | PHP | gpl-2.0 | 1,450 |
<?php
namespace Shippingpickup;
use Sumo;
use App;
class ModelSetup extends App\Model
{
public function install()
{
Sumo\Database::query("
CREATE TABLE IF NOT EXISTS PREFIX_app_shippingpickup (
`setting_id` int(11) NOT NULL AUTO_INCREMENT,
`store_id` int(11) ... | wardvanderput/SumoStore | upload/apps/shippingpickup/model/setup.php | PHP | gpl-2.0 | 975 |
<?php
/**
* @copyright Ilch 2.0
* @package ilch
*/
return [
'menuRules' => 'Rules',
'paragraph' => 'Paragraph',
'title' => 'Title',
'text' => 'Text',
'noRules' => 'No rules available',
];
| Saarlonz/Ilch-2.0 | application/modules/rule/translations/en.php | PHP | gpl-2.0 | 212 |
<?php
/*
* Add-on Name: Advanced Image
* Add-on URI: http://highgradelab.com/plugins/highgrade-extender/
* Since: 1.0
* Author: Eugen Petcu
*/
if(!class_exists('HGR_VC_ADVIMAGE')) {
class HGR_VC_ADVIMAGE {
function __construct() {
add_action('admin_init', array($this, 'hgr_advimage_init'));
}
/*
Visual... | domowit/BOOTSTRAP_V2 | wp-content/plugins/hgr_vc_extender/elements/hgr_xtnd_advanced_image.php | PHP | gpl-2.0 | 2,596 |
package it.unimarconi.utils;
import it.unimarconi.beans.Job;
import java.util.Comparator;
public class JobComparator implements Comparator<Job> {
public int compare(Job a, Job b) {
return a.compareTo(b);
}
} | Kalimaha/MLS_Barbaglia | src/main/java/it/unimarconi/utils/JobComparator.java | Java | gpl-2.0 | 228 |
<?php
/** Latvian (latviešu)
*
* See MessagesQqq.php for message documentation incl. usage of parameters
* To improve a translation please visit http://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Admresdeserv.
* @author Dark Eagle
* @author FnTmLV
* @author Geimeris
* @author Gleb Borisov
*... | kimberli/5327A-notebook | languages/messages/MessagesLv.php | PHP | gpl-2.0 | 194,685 |
<?php
namespace qtismtest\common\datatypes;
use qtism\common\datatypes\Utils;
use qtismtest\QtiSmTestCase;
/**
* Class DatatypeUtilsTest
*/
class DatatypeUtilsTest extends QtiSmTestCase
{
/**
* @dataProvider isQtiIntegerValidProvider
* @param int $value
*/
public function testIsQtiIntegerVal... | oat-sa/qti-sdk | test/qtismtest/common/datatypes/DatatypeUtilsTest.php | PHP | gpl-2.0 | 1,146 |
<?php
/**
* @version $Id: move.php 1812 2013-01-14 18:45:06Z lefteris.kavadas $
* @package K2
* @author JoomlaWorks http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2013 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
d... | the-dani/kunnandidagen | administrator/components/com_k2/views/users/tmpl/move.php | PHP | gpl-2.0 | 1,323 |
//
// System.Security.Permissions.DataProtectionPermission class
//
// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentatio... | hardvain/mono-compiler | class/System.Security/System.Security.Permissions/DataProtectionPermission.cs | C# | gpl-2.0 | 4,520 |
<?php
class wpmlHistoriesList extends wpMailPlugin {
var $model = 'HistoriesList';
var $controller = 'historieslists';
var $table = '';
var $errors = array();
var $data = array();
var $fields = array(
'id' => "INT(11) NOT NULL AUTO_INCREMENT",
'history_id' => "INT(11) NOT NULL DEFAULT '... | GaMaker/web-wordpress | wp-content/plugins/newsletters-lite/models/histories_list.php | PHP | gpl-2.0 | 2,033 |
package com.example.jmtransfers.jmtransfer; import android.content.SharedPreferences; import android.support.v7.app.ActionBar; import android.widget.TextView;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.design.widg... | unifieddigitalmedia/Just-Money-Transfers-Android | app/src/main/java/com/example/jmtransfers/jmtransfer/MainActivity.java | Java | gpl-2.0 | 2,118 |
<?php
/**
* @class FLPostGridModule
*/
class FLPostGridModule extends FLBuilderModule {
/**
* @method __construct
*/
public function __construct()
{
parent::__construct(array(
'name' => __('Posts', 'fl-builder'),
'description' => __('Display a grid of your WordPress posts.', 'fl-builder'),... | faithmade/beaver-builder | modules/post-grid/post-grid.php | PHP | gpl-2.0 | 10,603 |
package me.yugy.app.common.utils;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Environment;
import android.os.StatFs;
import java.io.File;
import java.io.IOException;
import static android.os.Envi... | jj-io/jj-android | mylibrary/src/main/java/me/yugy/app/common/utils/StorageUtils.java | Java | gpl-2.0 | 3,221 |
/* This file is part of the KDE project
Copyright (C) 2005-2014 Jarosław Staniek <staniek@kde.org>
Copyright (C) 2014 Roman Shtemberko <shtemberko@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by ... | donniexyz/calligra | kexi/widget/kexidbconnectionwidget.cpp | C++ | gpl-2.0 | 17,168 |
package de.tum.bgu.msm.utils;
import cern.colt.matrix.tdouble.DoubleMatrix2D;
import org.matsim.core.utils.collections.Tuple;
import java.util.*;
public class DeferredAcceptanceMatching {
public static Map<Integer, Integer> match(Collection<Integer> set1, Collection<Integer> set2, DoubleMatrix2D preferences) {
... | msmobility/silo | siloCore/src/main/java/de/tum/bgu/msm/utils/DeferredAcceptanceMatching.java | Java | gpl-2.0 | 2,026 |
<?php
namespace FluidTYPO3\Vhs\ViewHelpers\Context;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\... | ahmedRguei/job | typo3conf/ext/vhs/Classes/ViewHelpers/Context/GetViewHelper.php | PHP | gpl-2.0 | 1,326 |
/*
* Copyright (C) 2010 Michael Buesch <m@bues.ch>
*
* 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 option) any later version.
*
... | mbuesch/pwrtray | tray/util.cpp | C++ | gpl-2.0 | 1,046 |
<?php
/* __
* _| |_
* ____ _ _ __ __ _ __ __ ____ |_ _|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \... | PocketMinePlusPlus/PocketMinePlusPlus | src/pocketmine/entity/Human.php | PHP | gpl-2.0 | 9,941 |
<?php
/**
* @file
* Contains \Drupal\lingotek\LingotekTranslatableEntity.
*/
namespace Drupal\lingotek;
use Drupal\lingotek\LingotekInterface;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\ContentEntityTypeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Cla... | M1r1k/d8intranet | drupal/modules/contrib/lingotek/src/LingotekTranslatableEntity.php | PHP | gpl-2.0 | 12,705 |
//Pyjama compiler version:v1.5.3
package PyjamaCode.TestingDirectives.Sections;
import pj.Pyjama;
import pj.pr.*;
import pj.PjRuntime;
import pj.Pyjama;
import pi.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.conc... | ParallelAndReconfigurableComputing/Pyjama | test/PyjamaCode/TestingDirectives/Sections/section_positive_test1.java | Java | gpl-2.0 | 10,076 |
<?php
/*
+------------------------------------------------
| TBDev.net BitTorrent Tracker PHP
| =============================================
| by CoLdFuSiOn
| (c) 2003 - 2009 TBDev.Net
| http://www.tbdev.net
| =============================================
| svn: http://sourceforge.net/projects/t... | gitrab/xleech | include/config.php | PHP | gpl-2.0 | 4,963 |
<?php
/**
* @package Prism
* @subpackage Constants
* @author Todor Iliev
* @copyright Copyright (C) 2016 Todor Iliev <todor@itprism.com>. All rights reserved.
* @license GNU General Public License version 3 or later; see LICENSE.txt
*/
namespace Prism;
defined('JPATH_PLATFORM') or die;
/**... | ITPrism/GamificationDistribution | libraries/Prism/Constants.php | PHP | gpl-2.0 | 2,208 |
package com.fasterxml.jackson.databind.deser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.util.AccessPattern;
/**
* Helper interface implemented by classes that are to be used as
* null providers duri... | lamsfoundation/lams | 3rdParty_sources/jackson/com/fasterxml/jackson/databind/deser/NullValueProvider.java | Java | gpl-2.0 | 1,303 |
/**
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
*
* This 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 2.1 of the License, or (at your option)
* any later... | iucn-whp/world-heritage-outlook | portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/NoSuch_sites_countryException.java | Java | gpl-2.0 | 1,074 |
namespace Sdl.Community.AdvancedDisplayFilter.Models
{
public class SegmentRange
{
public int Min { get; set; }
public int Max { get; set; }
}
}
| sdl/Sdl-Community | AdvancedDisplayFilter/Models/SegmentRange.cs | C# | gpl-2.0 | 158 |
/*
* Copyright 2002-2012 the original author or authors.
*
* 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 ap... | HotswapProjects/HotswapAgent | hotswap-agent-core/src/main/java/org/hotswap/agent/util/spring/io/resource/WritableResource.java | Java | gpl-2.0 | 1,809 |
/**
* @author Marc Moerig
* @version 3.0
*/
#include <iostream>
#include <fstream>
#include "../../algorithm/nb_iter/iterate.hpp"
#include "../../lisa/ctrlpara.hpp"
#include "travel_graph.hpp"
#include "travel_neighbourhood.hpp"
using namespace std;
//**********************************************************... | hojsimpson/LiSA | src/sample/travel/travel.cpp | C++ | gpl-2.0 | 3,906 |
/*
* Copyright (c) 2012-2013 Open Source Community - <http://www.peerfact.org>
* Copyright (c) 2011-2012 University of Paderborn - UPB
* Copyright (c) 2005-2011 KOM - Multimedia Communications Lab
*
* This file is part of PeerfactSim.KOM.
*
* PeerfactSim.KOM is free software: you can redistribute it and/or modi... | flyroom/PeerfactSimKOM_Clone | src/org/peerfact/impl/application/infodissemination/moveModels/IMoveModel.java | Java | gpl-2.0 | 1,841 |
/******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org) *
* *
... | daniilyar/icinga2 | lib/cli/pkirequestcommand.cpp | C++ | gpl-2.0 | 4,399 |
/***************************************************************************
gmainwindow.cpp
(c) 2004-2006 - Daniel Campos Fernández <dcamposf@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 Softwa... | justlostintime/gambas | gb.gtk/src/gmainwindow.cpp | C++ | gpl-2.0 | 32,346 |
package sicxe.model.simulator.assembler.command.bits;
/**
* Created by maciek on 14/01/16.
*/
public class FormatFourBits extends Bits{
private final int e = 1 << 20;
private final int b = 0;
private final int p = 0;
private int x = 0;
public int getX() {
return x;
}
public void... | mwalercz/sicxe-sim-mvn | src/main/java/sicxe/model/simulator/assembler/command/bits/FormatFourBits.java | Java | gpl-2.0 | 563 |
<?php
/**
* duena functions and definitions
*
* @package duena
*/
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) )
$content_width = 900; /* pixels */
// The excerpt based on words
if ( !function_exists('duena_string_limit_words') ) {
fu... | werner/78publicity | wp-content/themes/duena/functions.php | PHP | gpl-2.0 | 23,364 |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.1 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2011 |
+--------------------... | jblanford/Uber-Web-Site | sites/all/modules/civicrm/CRM/Logging/Reverter.php | PHP | gpl-2.0 | 8,305 |
///////////////////////////////////////////////////////////////////////////////
//
// wxFormBuilder - A Visual Dialog Editor for wxWidgets.
// Copyright (C) 2005 José Antonio Hurtado
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as ... | wxFormBuilder/wxFormBuilder | plugins/layout/layout.cpp | C++ | gpl-2.0 | 24,753 |
/* global FullCalendar, FullCalendarLocales, FullCalendarInteraction */
var GLPIPlanning = {
calendar: null,
dom_id: "",
all_resources: [],
visible_res: [],
drag_object: null,
last_view: null,
display: function(params) {
// get passed options and merge it with default on... | smartcitiescommunity/Civikmind | js/planning.js | JavaScript | gpl-2.0 | 34,622 |
package controllers;
import static akka.pattern.Patterns.ask;
import static play.libs.Json.toJson;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import ja... | nazareno/diferentonas-server | app/controllers/AtualizacaoController.java | Java | gpl-2.0 | 4,867 |
#include "ComboBox.h"
#include <QDebug>
ComboBox::ComboBox(QWidget* parent)
: QComboBox(parent)
{
}
ComboBox::~ComboBox()
{
}
void ComboBox::setCurrentItemById(const int id)
{
const int size = count();
for (int i = 0; i < size; ++i)
{
if (id == itemData(i).toInt())
{
setCurrentIndex... | CBRUhelsinki/CENTplatform | CENTSources/cent/CENTSystem/CENTApplication/src/ui/ComboBox.cpp | C++ | gpl-2.0 | 488 |
class Solution {
public:
int minCut(string s) {
if (s.size() < 2) {
return 0;
}
int len = s.size();
vector<int> cut(len + 1, 0); // cut[i] : s[0..i-1] min cut
for (int i = 0; i <= len; i++) {
cut[i] = i - 1;
}
for (int i = 0; i < len; i++) {
// odd len
for (int l ... | gyang/Algo | leetcode/Palindrome Partitioning II/main1.cpp | C++ | gpl-2.0 | 711 |
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
/**
*
* @version $Id: checkout_bar.php 617 2007-01-04 19:43:08Z soeren_nb $
* @package VirtueMart
* @subpackage html
* @copyright Copyright (C) 2004-2005 Soeren Eberhardt. All rights reserved.
* @license http://www.gnu.org/copyle... | foresitegroup/sherwin | administrator/components/com_virtuemart/html/checkout_bar.php | PHP | gpl-2.0 | 3,126 |
/*
* nassh-relay - Relay Server for tunneling ssh through a http endpoint
*
* Website: https://github.com/zyclonite/nassh-relay
*
* Copyright 2014-2020 zyclonite networx
* http://zyclonite.net
* Developer: Lukas Prettenthaler
*/
package net.zyclonite.nassh.util;
import io.vertx.core.... | zyclonite/nassh-relay | src/main/java/net/zyclonite/nassh/util/RequestHelper.java | Java | gpl-2.0 | 953 |
<?php
include "layout/header.php";
?>
<div class="bg_body">
<section class="container-fluid">
<div class="col-xs-12 col-sm-12 col-md-7 col-md-offset-1">
<?php $i = 0;
?>
<?php if (have_posts()) {
while (have_posts()) {
print_r(the_post());
$i++;
?>
<div class="post">
<d... | Jehny/wp_mariana | wp-content/themes/mariana/single.php | PHP | gpl-2.0 | 2,251 |
/*
*GRASP(Geo-referential Real-time Acquisition Statistics Platform) Reporting Tool <http://www.brainsen.com>
* Developed by Brains Engineering s.r.l (marco.giorgi@brainsen.com)
* This file is part of GRASP Reporting Tool.
* GRASP Reporting Tool is free software: you can redistribute it and/or modify it
* und... | WFPVAM/GRASPReporting | src/App_Code/ResponseFormList.cs | C# | gpl-2.0 | 1,429 |
/*
* Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.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 2 of the License, or (at your
* option) any later ve... | TonyHoyle/TrinityCore | src/server/bnetserver/Server/Session.cpp | C++ | gpl-2.0 | 44,221 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, print_function
from django.db import models
from django.apps import apps
from empresa.models import Empresa
import json
import os
import tempfile
import datetime
import requests
class Parking(models.Model):
empresa = models.OneToOneField(Empresa)
... | amd77/parker | inventario/models.py | Python | gpl-2.0 | 7,559 |
<section id="footer">
<div class="footer-top">
<div class="container">
<div class="container-inner">
<div class="row-fluid">
<div class="span12"> <div id="pavcarousel5" class="carousel slide pavcarousel hidden-phone">
<div class="carousel-inner">
<div class="item active">
... | warblersoftware/gold1 | footer.php | PHP | gpl-2.0 | 7,776 |
<?php
/**
* Replies Loop
*
* @package bbPress
* @subpackage Theme
*/
?>
<?php do_action( 'bbp_template_before_replies_loop' ); ?>
<ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
<li class="bbp-body">
<?php if ( bbp_thread_replies() ) : ?>
<?php bbp_list_replies(); ?>
<?p... | satoshishimazaki/notice-board3 | wp-content/plugins/bbpress/templates/default/bbpress/loop-replies.php | PHP | gpl-2.0 | 634 |
<?php
/*/////////////////////////////////////////////////////
* Creates Admin Panel in dashboard settings page
* Includes admin-panel.php
/////////////////////////////////////////////////////*/
add_action( 'init', '_kcAdminOptions' );
function _kcAdminOptions(){
global $post_settings, $post_types_options, $plugi... | StefanDindyal/wordpresser | wp-content/themes/kissesandcurses/inc/settings-panel/admin-options.php | PHP | gpl-2.0 | 1,741 |
/**
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2013, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this fil... | uttmkl/etno | sites/all/modules/CKFinder/ckfinder/_sources/CKFinder for Java/CKFinder/src/main/java/com/ckfinder/connector/package-info.java | Java | gpl-2.0 | 500 |
/**
\file "Object/inst/channel_collection_type_manager.hh"
Template class for instance_collection's type manager.
$Id: channel_collection_type_manager.hh,v 1.3 2007/04/15 05:52:17 fang Exp $
*/
#ifndef __HAC_OBJECT_INST_CHANNEL_COLLECTION_TYPE_MANAGER_H__
#define __HAC_OBJECT_INST_CHANNEL_COLLECTION_TYPE_MANAGER... | fangism/hackt | src/Object/inst/channel_collection_type_manager.hh | C++ | gpl-2.0 | 3,301 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package clay;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.... | MultiTool/Clay | src/clay/Things.java | Java | gpl-2.0 | 9,794 |
#include "stdafx.h"
#include <textserv.h>
#pragma comment(lib, "riched20.lib")
// These constants are for backward compatibility. They are the
// sizes used for initialization and reset in RichEdit 1.0
namespace DirectUICore {
const LONG cInitTextMax = (32 * 1024) - 1;
EXTERN_C const IID IID_ITextServices = { //... | zxlooong/directui | DirectUICore/UIRichEdit.cpp | C++ | gpl-2.0 | 58,623 |
<?php
/**
* Element: Version
* Displays the version check
*
* @package NoNumber Framework
* @version 14.6.9
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2014 NoNumber All Rights Reserved
* @license ht... | bundocba/unitedworld | plugins/system/nnframework/fields/version.php | PHP | gpl-2.0 | 1,735 |
/* ----------------------------------------------------------------------
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... | nchong/ic_liggghts | src/fix_pour.cpp | C++ | gpl-2.0 | 25,668 |
require 'rails_helper'
module NetworkInterfacesDatatableHelper
def iface2array(iface)
[].tap do |column|
column << iface.host.location.try(:lid)
column << iface.host.name
column << iface.ip.to_s
column << iface.mac.to_s
column << iface.if_description
column << iface.lastseen.t... | swobspace/boskop | spec/datatables/network_interfaces_spec.rb | Ruby | gpl-2.0 | 3,823 |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
using ReviveThis.AddIn.WinSock.Entities;
using ReviveThi... | wdcossey/ReviveThis.Net | Add-In/Scan/ReviveThis.Net.AddIn.WinSock/LayeredServiceProvider.cs | C# | gpl-2.0 | 23,271 |
using System;
using MrCMS.Messages;
namespace MrCMS.Web.Apps.Commenting.MessageTemplates
{
public class GetDefaultCommentReportedMessageTemplate : GetDefaultTemplate<CommentReportedMessageTemplate>
{
public override CommentReportedMessageTemplate Get()
{
return new CommentReportedMe... | MrCMS/Commenting | MessageTemplates/GetDefaultCommentReportedMessageTemplate.cs | C# | gpl-2.0 | 940 |
<?php if ( is_user_logged_in() ) : ?>
<fieldset>
<label><?php _e( 'Your account', 'wp-job-manager' ); ?></label>
<div class="field account-sign-in">
<?php
$user = wp_get_current_user();
printf( __( 'You are currently signed in as <strong>%s</strong>.', 'wp-job-manager' ), $user->user_login );
?>
... | golfcoastmagazine/golfcoastmagazine | wp-content/themes/listable/job_manager/account-signin.php | PHP | gpl-2.0 | 3,081 |
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# https://morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "SDCMS"
authors [
"Brendan Coles <bcoles@gmail.com>", ... | urbanadventurer/WhatWeb | plugins/sdcms.rb | Ruby | gpl-2.0 | 831 |
<?php
/**
* RSS2 Feed Template for displaying RSS2 Posts feed.
*
* @package WordPress
*/
header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
$more = 1;
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
<rss version="2.0"
xmlns:... | MESH-Dev/MESH | wp-includes/feed-rss2.php | PHP | gpl-2.0 | 3,351 |
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LightButton.cs" company="LeagueSharp">
// Copyright (C) 2015 LeagueSharp
//
// This program is free software: you can redistribute it and/or modify
// it under the terms ... | CjShuMoon/TwLS.SDK | Core/UI/IMenu/Skins/Light/LightButton.cs | C# | gpl-2.0 | 6,953 |
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 17:38:50 2015
@author: deep
"""
from binaryTree import BTree, generateRandomTree, inorder
def largestBST(root):
if root.left is None and root.right is None:
return True, 1, root.value, root.value
if root.left:
isBSTL, sizeL, minL, maxL = large... | ddeepak6992/Algorithms | Binary-Tree/largest_BST_in_a_binary_tree.py | Python | gpl-2.0 | 953 |
package edu.stanford.nlp.parser.lexparser;
import edu.stanford.nlp.trees.CompositeTreeTransformer;
import edu.stanford.nlp.trees.TreebankLanguagePack;
import edu.stanford.nlp.trees.TreeTransformer;
import edu.stanford.nlp.util.Function;
import edu.stanford.nlp.util.ReflectionLoading;
import edu.stanford.nlp.util.Strin... | chbrown/stanford-parser | edu/stanford/nlp/parser/lexparser/Options.java | Java | gpl-2.0 | 45,340 |
<?php
$ajax= get_input('ajax',0);
$idGrupo = get_input('id');
$grupo = new ElggGrupoInvestigacion($idGrupo);
$title = $grupo->name . ": Administración de Roles";
$miembrosGrupo = elgg_get_miembros_grupo_investigacion($grupo);
$params['title'] = $title;
$params['grupo'] = array(
'nombre' => $grupo->name,
... | jonreycas/enjambre | mod/grupo_investigacion/pages/grupo_investigacion/administrar_roles.php | PHP | gpl-2.0 | 931 |
#ifndef TRUE
#define TRUE 1
#endif //TRUE
#ifndef FALSE
#define FALSE 0
#endif //FALSE
#include <plib/ssg.h>
#include <plib/sg.h>
#include <raceman.h>
#include <track.h>
#include "grscene.h"
typedef struct LightInfo
{
int index;
ssgVtxTable *light;
//ssgSimpleState* onState;
//ssgSimpleState* offState;
ssgState... | xy008areshsu/speed-dreams-2 | src/modules/graphic/ssggraph/grtracklight.cpp | C++ | gpl-2.0 | 8,533 |
define(['jquery','config','base','ajax','checkInput','serializeJson'],function($,config,base,AjaxFunUtils){
var defaultAddr = '';
var init = function(){
getAddress(defaultAddr);
};
//加载模板
var loadhtml = function(){
var telhtml = '<div id="addressbox" class="addressbox">'+
'<form id="addressform" method="po... | 38695248/require-gulp | moblie/require/js/address.js | JavaScript | gpl-2.0 | 19,264 |
package org.masterylearning.domain.data;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.masterylearning.domain.Entry;
import org.... | lanoxx/masterylearning | backend/src/main/java/org/masterylearning/domain/data/EntryData.java | Java | gpl-2.0 | 1,748 |
package org.dolphinemu.dolphinemu.features.settings.ui.viewholder;
import android.view.View;
import android.widget.TextView;
import org.dolphinemu.dolphinemu.R;
import org.dolphinemu.dolphinemu.features.settings.model.view.SettingsItem;
import org.dolphinemu.dolphinemu.features.settings.model.view.SliderSetting;
impo... | riking/dolphin | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SliderViewHolder.java | Java | gpl-2.0 | 1,213 |
/* ====================================================================
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 Y... | alexchentao/AL.Web | AL.Utils/Document/Excel/NPOI/SS/Formula/PTG/RefErrorPtg.cs | C# | gpl-2.0 | 2,556 |
// ** I18N
Calendar._DN = new Array
("Söndag",
"Måndag",
"Tisdag",
"Onsdag",
"Torsdag",
"Fredag",
"Lördag",
"Söndag");
Calendar._MN = new Array
("Januari",
"Februari",
"Mars",
"April",
"Maj",
"Juni",
"Juli",
"Augusti",
"September",
"Oktober",
"November",
"December");
// toolti... | Fightmander/Hydra | lib/calendar/lang/calendar-sw.js | JavaScript | gpl-2.0 | 1,143 |
/*
* Copyright (c) 2021 Charles University in Prague, Faculty of Arts,
* Institute of the Czech National Corpus
* Copyright (c) 2021 Martin Zimandl <martin.zimandl@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | czcorpus/kontext | public/files/js/views/options/general/style.tsx | TypeScript | gpl-2.0 | 2,389 |
/////////////////////////////////////////////////////////////////////////////
// Name: exec.cpp
// Purpose: exec sample demonstrates wxExecute and related functions
// Author: Vadim Zeitlin
// Modified by:
// Created: 15.01.00
// RCS-ID: $Id: exec.cpp 54352 2008-06-25 07:51:09Z JS $
// Copyrigh... | hajuuk/R7000 | ap/gpl/amule/wxWidgets-2.8.12/samples/exec/exec.cpp | C++ | gpl-2.0 | 34,871 |
<? use \Studip\Button; ?>
<br />
<a name="users"></a>
<form action="<?= $controller->url_for('course/members/edit_accepted/') ?>" method="post" data-dialog="size=50%>
<?= CSRFProtection::tokenTag() ?>
<table class="default collapsable">
<caption>
<span class="actions">
<... | ratbird/hope | app/views/course/members/accepted_list.php | PHP | gpl-2.0 | 6,994 |
from collections import OrderedDict
from rest_framework import pagination
from rest_framework.response import Response
__author__ = 'alexandreferreira'
class DetailPagination(pagination.PageNumberPagination):
def get_paginated_response(self, data):
return Response(OrderedDict([
('count', sel... | alexandreferreira/namesearch-example | namesearch/pagination.py | Python | gpl-2.0 | 948 |
##
# Copyright 2013-2020 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | pescobar/easybuild-framework | easybuild/toolchains/gcccuda.py | Python | gpl-2.0 | 1,443 |
/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.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 2 of the License, or (at your
* option) any later ve... | Multigaming/WoW434 | src/server/scripts/Spells/spell_hunter.cpp | C++ | gpl-2.0 | 30,225 |
/*
* LSpec.java
*
* Created on April 24, 2007, 11:06 PM
*/
package org.das2.qds.util;
import java.util.LinkedHashMap;
import java.util.Map;
import org.das2.datum.Datum;
import org.das2.datum.Units;
import org.das2.qds.ArrayDataSet;
import org.das2.qds.DDataSet;
import org.das2.qds.DataSetUtil;
impo... | autoplot/app | QDataSet/src/org/das2/qds/util/LSpec.java | Java | gpl-2.0 | 16,160 |
//{{COMPONENT_IMPORT_STMTS
package MetaRepos;
import java.util.Enumeration;
import java.util.Vector;
import versata.common.*;
import versata.common.vstrace.*;
import versata.vls.*;
import java.util.*;
import java.math.*;
import versata.vls.cache.*;
//END_COMPONENT_IMPORT_STMTS}}
/*
** Activity
*/
//{{COMPONENT_RULE... | tylerm007/MetaRepos | Source/VLS/DataObjects/WorkFlow/ActivityImpl.java | Java | gpl-2.0 | 947 |