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 |
|---|---|---|---|---|---|
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class FileLogger extends MyLoggerImpl {
private String fileName;
public FileLogger(String fileName) {
super();
this.fileName = fileName;
}
@Override
public void log(int level, String message) ... | irin4eto/HackBulgaria_JavaScript | Candidacy/SimpleLogger/src/FileLogger.java | Java | gpl-2.0 | 1,200 |
/**
* Created by Paul on 24/01/2015.
*/
var install_url = $("#install_url").val();
$("#updateCase").click(function () {
var case_id = $('#case_id').val();
var case_priority = $('#case_priority').val();
var case_status = $('#case_status').val();
var case_type = $('#case_type').val();
var assigne... | paulcoiffier/Mobissime-Liberta | src/MyCrm/Modules/LibertaTickets/Js/edit_case.js | JavaScript | gpl-2.0 | 1,698 |
<?php /* Smarty version 2.6.14, created on 2010-01-28 11:39:35
compiled from CRM/Contact/Form/Search.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'ts', 'CRM/Contact/Form/Search.tpl', 19, false),)), $this); ?>
<?php $_s... | zakiya/Peoples-History | files/civicrm/templates_c/en_US/%%70^70A^70AFFDD6%%Search.tpl.php | PHP | gpl-2.0 | 4,792 |
/**
* 项目名: java-code-tutorials-tools
* 包名: net.fantesy84.common.util
* 文件名: IPUtils.java
* Copy Right © 2015 Andronicus Ge
* 时间: 2015年11月9日
*/
package net.fantesy84.common.util;
import java.net.InetAddress;
import java.net.UnknownHostException;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Log... | fantesy84/java-code-tutorials | java-code-tutorials-tools/src/main/java/net/fantesy84/common/util/IPUtils.java | Java | gpl-2.0 | 2,924 |
<?php
/**
* @package jCart
* @copyright Copyright (C) 2009 - 2012 softPHP,http://www.soft-php.com
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$_['text_sub_total'] = 'Sub-Total';
?> | jiangfanglu/grart | components/com_opencart/catalog/language/english/total/sub_total.php | PHP | gpl-2.0 | 272 |
/**
Copyright 2011 Red Hat, Inc.
This software is licensed to you under the GNU General Public
License as published by the Free Software Foundation; either version
2 of the License (GPLv2) or (at your option) any later version.
There is NO WARRANTY for this software, express or implied,
including the implied war... | iNecas/katello | src/public/javascripts/gpg_key.js | JavaScript | gpl-2.0 | 5,150 |
/* UnknownTypeException.java -- Thrown by an unknown type.
Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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; ... | penberg/classpath | javax/lang/model/type/UnknownTypeException.java | Java | gpl-2.0 | 3,277 |
/*---------------------------------------------------------------------------*\
## #### ###### |
## ## ## | Copyright: ICE Stroemungsfoschungs GmbH
## ## #### |
## ## ## | http://www.ice-sf.at
## #### ###### |
------------------------------------------------------... | Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder2.0-libraries-swak4Foam | Libraries/functionPlugins/swakFvcSchemesFunctionPlugin/fvcSpreadPluginFunction.H | C++ | gpl-2.0 | 3,532 |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsof... | ShootnLootProgramerare/Shoot_n_Loot | Shoot 'n Loot/Shoot 'n Loot/Shoot 'n Loot/Game1.cs | C# | gpl-2.0 | 3,815 |
package com.citypark.api.task;
import com.citypark.api.parser.CityParkStartPaymentParser;
import android.content.Context;
import android.os.AsyncTask;
import android.text.format.Time;
public class StopPaymentTask extends AsyncTask<Void, Void, Boolean> {
private Context context;
private String sessionId;
private ... | kruzel/citypark-android | src/com/citypark/api/task/StopPaymentTask.java | Java | gpl-2.0 | 1,144 |
/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | nemomobile-apps/scummvm | backends/platform/tizen/graphics.cpp | C++ | gpl-2.0 | 6,444 |
# -*- coding: utf-8 -*-
"""
***************************************************************************
SplitRGBBands.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*************************... | camptocamp/QGIS | python/plugins/processing/saga/SplitRGBBands.py | Python | gpl-2.0 | 3,715 |
/***************************************************************************
FluxIntegral.cpp - Integrates Lx dx
L (x1, x2) = int^x2_x1 dx Lx
-------------------
begin : December 2006
copyright : (C) 2006 by Maurice Leutenegger
email : mauri... | mauriceleutenegger/windprofile | FluxIntegral.cpp | C++ | gpl-2.0 | 3,166 |
<?php session_start(); ?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
... | somalitaekwondo/site | novo/about-us.php | PHP | gpl-2.0 | 3,667 |
<?php
namespace Drush\Boot;
use Consolidation\AnnotatedCommand\AnnotationData;
use Drush\Log\DrushLog;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Drupal\Core\DrupalKernel;
use Drush\Drush;
use Drush\Drupal\DrushServiceModifier;
use Drush\Log\LogLevel;
class Drup... | eigentor/tommiblog | vendor/drush/drush/src/Boot/DrupalBoot8.php | PHP | gpl-2.0 | 9,577 |
// _________ __ __
// / _____// |_____________ _/ |______ ____ __ __ ______
// \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
// / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
// /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | Stratagus/Stratagus | src/ui/mainscr.cpp | C++ | gpl-2.0 | 33,991 |
function isPrime(n) {
if (n === 2) {
return true;
}
if (n % 2 === 0 || n === 1) {
return false;
}
for (var i = 3; i <= Math.sqrt(n); i += 2) {
if (n % i === 0) {
return false;
}
}
return true;
}
function nthPrimeNumber(n) {
if (n <= 0) {
throw new Error('M... | pbjr23/project-euler-js | pr7.js | JavaScript | gpl-2.0 | 536 |
<?php
/**
* glFusion CMS
*
* UTF-8 Language File for Calendar Plugin
*
* @license GNU General Public License version 2 or later
* http://www.opensource.org/licenses/gpl-license.php
*
* Copyright (C) 2008-2018 by the following authors:
* Mark R. Evans mark AT glfusion DOT org
*
* Based on prior work Copyright ... | glFusion/glfusion | private/plugins/calendar/language/finnish_utf-8.php | PHP | gpl-2.0 | 9,331 |
/*
* Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Fou... | TheTypoMaster/Scaper | openjdk/hotspot/src/share/vm/gc_implementation/g1/sparsePRT.hpp | C++ | gpl-2.0 | 9,597 |
<?php
$widget = $vars["entity"];
// get widget settings
$count = (int) $widget->wire_count;
$filter = $widget->filter;
if ($count < 1) {
$count = 8;
}
$options = array(
"type" => "object",
"subtype" => "thewire",
"limit" => $count,
"full_view" => false,
"pagination" => false,
"view_type_toggle" => false
);
... | 3lywa/gcconnex | mod/thewire_tools/views/default/widgets/index_thewire/content.php | PHP | gpl-2.0 | 955 |
<?php
/*
* Template Name: Blog
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="blog">
<?php get_template_part( 'content', 'introtext' ); ?>
<section class="features">
<div class="container" role="main">
<div class="row">
<div class="span9">
... | thinkluke/retailexpress | wp-content/themes/retailexpress/single.php | PHP | gpl-2.0 | 677 |
<?php
function uwpf_delete_plugin() {
delete_option('uwpf_options');
}
function uwpf_init(){
register_setting( 'uwpf_plugin_options', 'uwpf_options', 'uwpf_validate' );
}
function requires_wordpress_version() {
global $wp_version;
$plugin = plugin_basename( __FILE__ );
$plugin_data = ge... | maewna/food-sawasdee | wp-content/plugins/ultimate-wp-filter/uwpf_functions.php | PHP | gpl-2.0 | 714 |
<?php
if ( !class_exists( 'RWMB_Field ' ) )
{
class RWMB_Field
{
/**
* Add actions
*
* @return void
*/
static function add_actions() {}
/**
* Enqueue scripts and styles
*
* @return void
*/
static function admin_enqueue_scripts() {}
/**
* Show field HTML
*
* @param array $f... | marcosalm/digiwall | public/wp-content/plugins/meta-box-master/inc/field.php | PHP | gpl-2.0 | 8,037 |
/***************************************************************************
ofxdump.cpp
-------------------
copyright : (C) 2002 by Benoit Grégoire
email : bock@step.polymtl.ca
*****************************************************... | tectronics/cashbox | libofx/libofx-0.8.2/ofxdump/ofxdump.cpp | C++ | gpl-2.0 | 18,771 |
<?php
namespace Drupal\dct_user\EventSubscriber;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Reque... | drupaltransylvania/drupal-camp | docroot/modules/custom/dct_user/src/EventSubscriber/NotAuthenticatedEventSubscriber.php | PHP | gpl-2.0 | 2,780 |
using System;
using Server.Engines.Craft;
namespace Server.Items
{
[Alterable(typeof(DefBlacksmithy), typeof(DualShortAxes))]
[FlipableAttribute(0x1443, 0x1442)]
public class TwoHandedAxe : BaseAxe
{
[Constructable]
public TwoHandedAxe()
: base(0x1443)
{
... | kevin-10/ServUO | Scripts/Items/Equipment/Weapons/TwoHandedAxe.cs | C# | gpl-2.0 | 2,045 |
class ChangeRoleForUsers < ActiveRecord::Migration
def change
remove_column :users, :role, :string
add_column :users, :role, :string, :default=>'user'
end
end
| cronon/fanfiction | db/migrate/20130831030543_change_role_for_users.rb | Ruby | gpl-2.0 | 169 |
<?php
/*
Template Name: Full Width
*/
?>
<?php get_header(); ?>
<div class="row">
<div class="sixteen columns">
<div class="single-page" role="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<?php /*if(!is_front_page()) { WE DONT WANT THIS ?>
... | RPI-Sage-Hillel/Website | wp-content/themes/bartleby-child/fullwidth-page.php | PHP | gpl-2.0 | 916 |
#!/usr/bin/python2.3
# This is the short name of the plugin, used as the menu item
# for the plugin.
# If not specified, the name of the file will be used.
shortname = "Moment Curve layout (Cohen et al. 1995)"
# This is the long name of the plugin, used as the menu note
# for the plugin.
# If not specified, the short ... | ulethHCI/GLuskap | plugins/moment_curve.py | Python | gpl-2.0 | 3,644 |
<?php
namespace Thru\ActiveRecord\Test\Models;
use Thru\ActiveRecord\ActiveRecord;
/**
* Class TestModel
* @var $test_model_id integer
* @var $integer_field integer
* @var $text_field text
* @var $date_field date
*/
class TestModel extends ActiveRecord
{
protected $_table = "test_models";
public $tes... | Thruio/ActiveRecord | tests/Models/TestModel.php | PHP | gpl-2.0 | 409 |
package newpackage;
public class DaneWejsciowe {
float wartosc;
String argument;
public DaneWejsciowe( String argument,float wartosc) {
this.wartosc = wartosc;
this.argument = argument;
}
}
| Zajcew/SystemEkspertowy | System Ekspertowy/src/newpackage/DaneWejsciowe.java | Java | gpl-2.0 | 213 |
<?php
/**
* Template to display the main page for the new forum
* @access public
*/
$this->setLayoutTemplate('poll_layout_tpl.php');
echo $display.'<br />';
?>
| chisimba/modules | poll/templates/content/home_tpl.php | PHP | gpl-2.0 | 171 |
/*
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* Copyright (C) 2008-2010 Trinity <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 vers... | Muglackh/cejkaz-tc | src/game/SpellAuras.cpp | C++ | gpl-2.0 | 65,021 |
using OpenDBDiff.Abstractions.Schema;
using OpenDBDiff.Abstractions.Schema.Model;
using System;
using System.Linq;
namespace OpenDBDiff.SqlServer.Schema.Model
{
public class Columns<T> : SchemaList<Column, T> where T : ISchemaBase
{
public Columns(T parent) : base(parent)
{
}
/... | OpenDBDiff/OpenDBDiff | OpenDBDiff.SqlServer.Schema/Model/Columns.cs | C# | gpl-2.0 | 4,997 |
#pragma once
#include <obs.hpp>
#include <map>
const std::map<int, const char*> &GetAACEncoderBitrateMap();
const char *GetAACEncoderForBitrate(int bitrate);
int FindClosestAvailableAACBitrate(int bitrate);
| JohnnyLeone/obs-studio | UI/audio-encoders.hpp | C++ | gpl-2.0 | 210 |
<?php
/**
* @package snow-monkey
* @author inc2734
* @license GPL-2.0+
* @version 15.13.0
*/
use Inc2734\WP_Customizer_Framework\Framework;
use Framework\Helper;
Framework::control(
'select',
'footer-widget-area-column-size',
[
'label' => __( 'Number of columns in the footer widget area on PC', 's... | inc2734/snow-monkey | app/customizer/design/sections/footer/controls/footer-widget-area-column-size.php | PHP | gpl-2.0 | 968 |
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
Kempston Disk Interface emulation
**********************************************************************/
#include "kempston_di.h"
//*************************************************... | GiuseppeGorgoglione/mame | src/devices/bus/ql/kempston_di.cpp | C++ | gpl-2.0 | 2,486 |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 RWS Inc, All Rights Reserved
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of version 2 of the GNU General Public License as published by
// the Free Software Foundati... | PixelDevLabs/Ezia-Cleaner_Build-934afd57b26a | fire.cpp | C++ | gpl-2.0 | 29,776 |
<?php
namespace Themosis\Core\Console;
use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
use Illuminate\Encryption\Encrypter;
class KeyGenerateCommand extends Command
{
use ConfirmableTrait;
/**
* Name and signature of the console command.
*
* @var string
*/
pr... | themosis/framework | src/Core/Console/KeyGenerateCommand.php | PHP | gpl-2.0 | 2,827 |
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
global $base_url;
require_once ('tcpdf/pdfcss.php');
require_once('tcpdf/config/lang/eng.php');
require_once('tcpdf/tcpdf.php');
// create new PDF document
$pdf = new TCPDF(L, PDF_UNIT, B4, true, 'UTF-8', false);
// set document inf... | himan5050/hpbc | assetRegisterpdf.php | PHP | gpl-2.0 | 7,049 |
/**
* AshtavargaChartData.java
* Created On 2006, Mar 31, 2006 5:12:23 PM
* @author E. Rajasekar
*/
package app.astrosoft.beans;
import java.util.EnumMap;
import app.astrosoft.consts.AshtavargaName;
import app.astrosoft.consts.AstrosoftTableColumn;
import app.astrosoft.consts.Rasi;
import app.astrosoft.core.Asht... | erajasekar/Astrosoft | src/app/astrosoft/beans/AshtaVargaChartData.java | Java | gpl-2.0 | 2,069 |
package mcmod.nxs.animalwarriors.lib;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemArmor;
public class ArmorHelper extends ItemArmor {
public ArmorHelper(ArmorMaterial material, int type, int layer)
{
super(material, type, layer);
}
public ItemArmor setNameAndTab(String name, Cr... | AlphaSwittle-Team/AnimalWarriors | src/main/java/mcmod/nxs/animalwarriors/lib/ArmorHelper.java | Java | gpl-2.0 | 489 |
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title> </title>
<style>
.municipios{
font-size:12px;
font-family: 'helvetica','raleway';
padding:1em 1em;
background-color:#2C85AF;
color:#FFFFFF;
}
.direccion{
font-size:12px;
font-family: 'helvetica','ralewa... | master777/tap | sinaloa.php | PHP | gpl-2.0 | 19,724 |
// float_digits().
// General includes.
#include "base/cl_sysdep.h"
// Specification.
#include "cln/dfloat.h"
// Implementation.
#include "float/dfloat/cl_DF.h"
namespace cln {
CL_INLINE uintC CL_INLINE_DECL(float_digits) (const cl_DF& x)
{
unused x;
return DF_mant_len+1; // 53
}
} // namespace cln
| ARudik/feelpp.cln | src/float/dfloat/misc/cl_DF_digits.cc | C++ | gpl-2.0 | 311 |
package org.scada_lts.dao.model.multichangehistory;
import java.util.Objects;
/**
* @author grzegorz.bylica@abilit.eu on 16.10.2019
*/
public class MultiChangeHistoryValues {
private int id;
private int userId;
private String userName;
private String viewAndCmpIdentyfication;
private String in... | SCADA-LTS/Scada-LTS | src/org/scada_lts/dao/model/multichangehistory/MultiChangeHistoryValues.java | Java | gpl-2.0 | 3,725 |
<?php
/**
V4.50 6 July 2004 (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Set tabs to 4 for best viewing.
*/
// securi... | freemed/freemed-0.8.x | lib/acl/adodb/datadict/datadict-ibase.inc.php | PHP | gpl-2.0 | 1,369 |
# -*- coding: utf-8 -*-
# ..#######.########.#######.##....#..######..######.########....###...########.#######.########..######.
# .##.....#.##.....#.##......###...#.##....#.##....#.##.....#...##.##..##.....#.##......##.....#.##....##
# .##.....#.##.....#.##......####..#.##......##......##.....#..##...##.##.....#.... | repotvsupertuga/tvsupertuga.repository | script.module.openscrapers/lib/openscrapers/sources_openscrapers/en/coolmoviezone.py | Python | gpl-2.0 | 2,749 |
/*
* 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 not use... | sencko/NALB | nalb2013/src/org/apache/fontbox/cff/charset/CFFExpertCharset.java | Java | gpl-2.0 | 8,359 |
</main>
<div class="footer__break"></div>
<footer id="footer" class="footer" role="contentinfo">
<div class="content__wrapper">
<?php
get_template_part( 'template-parts/footer/newsletter' );
get_template_part( 'template-parts/footer/social' );
?>
</div>
<?php get_template_part( 'template-parts... | Fulcrum-Creatives/wordup | footer.php | PHP | gpl-2.0 | 454 |
package com.starfarers.dao;
import java.util.List;
public interface BaseDao<T> {
public void create(T entity);
public T save(T entity);
public void save(List<T> entities);
public void remove(T entity);
public T find(Integer id);
public List<T> findAll();
public <P> T findBy(String attribute, P parameter... | Zweanslord/starfarers | src/main/java/com/starfarers/dao/BaseDao.java | Java | gpl-2.0 | 325 |
'''
Ohm's law is a simple equation describing electrical circuits. It
states that the voltage V through a resistor is equal to the current
(I) times the resistance:
V = I * R
The units of these are volts, ampheres (or "amps"), and ohms,
respectively. In real circuits, often R is actually measured in
kiloohms (10**3 o... | ketan-analytics/learnpython | Safaribookonline-Python/courseware-btb/solutions/py3/patterns/properties_extra.py | Python | gpl-2.0 | 2,255 |
using UnityEngine;
using System.Collections;
public class Metrics : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
| JoeProgram/monster | Assets/Scripts/Metrics.cs | C# | gpl-2.0 | 206 |
<?php
declare(strict_types=1);
namespace PoPCMSSchema\QueriedObject\TypeResolvers\InterfaceType;
use PoP\ComponentModel\TypeResolvers\InterfaceType\AbstractInterfaceTypeResolver;
class QueryableInterfaceTypeResolver extends AbstractInterfaceTypeResolver
{
public function getTypeName(): string
{
retu... | leoloso/PoP | layers/CMSSchema/packages/queriedobject/src/TypeResolvers/InterfaceType/QueryableInterfaceTypeResolver.php | PHP | gpl-2.0 | 497 |
<?php
/**
* ifeelweb.de WordPress Plugin Framework
* For more information see http://www.ifeelweb.de/wp-plugin-framework
*
* Adapter to use ZendFramework as admin application
*
* @author Timo Reith <timo@ifeelweb.de>
* @copyright Copyright (c) ifeelweb.de
* @version $Id: ZendFw.php 911603 2014-05-10 10:58... | brasadesign/wpecotemporadas | wp-content/plugins/post-status-notifier-lite/lib/IfwPsn/Wp/Plugin/Application/Adapter/ZendFw.php | PHP | gpl-2.0 | 6,435 |
# coding=utf-8
# ---------------------------------------------------------------
# Desenvolvedor: Arannã Sousa Santos
# Mês: 12
# Ano: 2015
# Projeto: pagseguro_xml
# e-mail: asousas@live.com
# ---------------------------------------------------------------
import loggin... | arannasousa/pagseguro_xml | exemplos/testes_notificacao.py | Python | gpl-2.0 | 1,090 |
<?php
/**
* @package Mambo
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license GNU/GPL Version 2, see LICENSE.php
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | chanhong/mambo | includes/agent_browser.php | PHP | gpl-2.0 | 9,696 |
<style type="text/css">
.ppsAdminMainLeftSide {
width: 56%;
float: left;
}
.ppsAdminMainRightSide {
width: <?php echo (empty($this->optsDisplayOnMainPage) ? 100 : 40)?>%;
float: left;
text-align: center;
}
#ppsMainOccupancy {
box-shadow: none !important;
}
</style>
<section>
<div class="supsystic-ite... | Sciado/whitelabelheros.com | wp-content/plugins/popup-by-supsystic/modules/options/views/tpl/optionsAdminMain.php | PHP | gpl-2.0 | 486 |
/*
* Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 Sof... | madisodr/legacy-core | src/server/scripts/World/npc_taxi.cpp | C++ | gpl-2.0 | 16,513 |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2022 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* 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
* ... | ugeneunipro/ugene | src/corelibs/U2Gui/src/util/ScriptEditorWidget.cpp | C++ | gpl-2.0 | 2,409 |
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('dom-class', function(Y) {
var addClass, hasClass, removeClass;
Y.mix(Y.DOM, {
/**
* Determines whether a DOM element has the given className.
... | artefactual-labs/trac | sites/all/libraries/yui/build/dom-class/dom-class-debug.js | JavaScript | gpl-2.0 | 3,423 |
import { Injectable } from '@angular/core';
import { of } from 'rxjs';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { catchError } from 'rxjs/operators';
import { CatalogoService } from './catalogo.service';
@Injectable()
export class EdicaoNovoResolverService implements Resolve<any> ... | lexml/madoc | ui/src/app/service/edicao-novo.resolver.service.ts | TypeScript | gpl-2.0 | 589 |
package agaroyun.view;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.ArrayList;
import javax.swing.JPanel;
import agaroyun.Model.GameObject;
import agaroyun.Model.Player;
/**
* draws GameObjects to panel
* @author varyok... | by-waryoq/LYKJava2017Basics | src/agaroyun/view/GamePanel.java | Java | gpl-2.0 | 916 |
package net.sf.memoranda.util;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import net.sf.memoranda.ui.AppFrame;
/**
* <p>
* Title:
* </p>
* <p>
* Description:
* </p>
* <p>
* Copyright: Copyright (c) 2002
* </p>
* <p>
* Company:
* </p>
*
* @author unascribed
* @version 1.0... | cst316/spring16project-Fortran | src/net/sf/memoranda/util/Context.java | Java | gpl-2.0 | 845 |
<?php
/**
*
*
* Created on Jan 4, 2008
*
* Copyright © 2008 Yuri Astrakhan <Firstname><Lastname>@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 Lic... | ezc/mediawiki | includes/api/ApiWatch.php | PHP | gpl-2.0 | 3,488 |
<?php
/**
* @version $Id: #component#.php 125 2012-10-09 11:09:48Z michel $ 1 2014-05-11Z FT $
* @package Kepviselojeloltek
* @copyright Copyright (C) 2014, Fogler Tibor. All rights reserved.
* @license #GNU/GPL
*/
//--No direct access
defined('_JEXEC') or die('=;)');
// DS has removed from J 3.0
if(!defined('DS'))... | utopszkij/li-de | componens_telepitok/com_kepviselojeltek/site/kepviselojeloltek.php | PHP | gpl-2.0 | 1,527 |
package org.emulinker.kaillera.controller.v086.action;
import java.util.*;
import org.apache.commons.logging.*;
import org.emulinker.kaillera.access.AccessManager;
import org.emulinker.kaillera.controller.messaging.MessageFormatException;
import org.emulinker.kaillera.controller.v086.V086Controller;
import org.emulin... | monospacesoftware/emulinker | src/org/emulinker/kaillera/controller/v086/action/GameOwnerCommandAction.java | Java | gpl-2.0 | 4,749 |
<?php
/**
* Manages the social plugins.
*
* @copyright 2009-2019 Vanilla Forums Inc.
* @license GPL-2.0-only
* @package Dashboard
* @since 2.1
*/
/**
* Handles /social endpoint, so it must be an extrovert.
*/
class SocialController extends DashboardController {
/** @var array Models to automatically inst... | vanilla/vanilla | applications/dashboard/controllers/class.socialcontroller.php | PHP | gpl-2.0 | 2,628 |
<?php
// if( isset( $_POST ) ) {
// echo '<code><pre>';
// var_dump( $_POST );
// echo '</pre></code>';
// }
class SpeoOptions
{
/**
* Holds the values to be used in the fields callbacks
*/
private $options;
/**
* Start up
*/
public function __construct()
{
add_actio... | alpipego/speo-exiftool | speo-options.php | PHP | gpl-2.0 | 4,439 |
var options={}; options.login=true;
LoginRadius_SocialLogin.util.ready(function ()
{ $ui = LoginRadius_SocialLogin.lr_login_settings;
$ui.interfacesize = Drupal.settings.lrsociallogin.interfacesize;
$ui.lrinterfacebackground=Drupal.settings.lrsociallogin.lrinterfacebackground;
$ui.noofcolumns= Drupal.settin... | bedesign323/aimhigh | sites/all/modules/contrib/sociallogin/js/sociallogin_interface.js | JavaScript | gpl-2.0 | 1,057 |
<?php
namespace Drupal\materialize\Plugin\Setting\General\Tables;
use Drupal\materialize\Annotation\MaterializeSetting;
use Drupal\materialize\Plugin\Setting\SettingBase;
use Drupal\Core\Annotation\Translation;
/**
* The "table_bordered" theme setting.
*
* @ingroup plugins_setting
*
* @MaterializeSetting(
* ... | sunlight25/d8 | web/themes/contrib/materialize/src/Plugin/Setting/General/Tables/TableBordered.php | PHP | gpl-2.0 | 682 |
package net.senmori.customtextures.events;
import net.senmori.customtextures.util.MovementType;
import org.bukkit.entity.Player;
import org.bukkit.event.player.PlayerEvent;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
/**
* event that is triggered after a player entered a WorldGuard re... | Senmori/CustomTextures | src/main/java/net/senmori/customtextures/events/RegionEnteredEvent.java | Java | gpl-2.0 | 851 |
<?php
/*
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/c... | LuxitoHD/mmall-chen | administrator/components/com_phocagallery/models/phocagalleryimg.php | PHP | gpl-2.0 | 22,198 |
/*
* Xiphos Bible Study Tool
* sword.cc - glue
*
* Copyright (C) 2000-2020 Xiphos Developer Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ... | crosswire/xiphos | src/main/sword.cc | C++ | gpl-2.0 | 45,237 |
<?php
global $PPT,$PPTDesign;
PremiumPress_Header(); ?>
<div id="premiumpress_box1" class="premiumpress_box premiumpress_box-100"><div class="premiumpress_boxin"><div class="header">
<h3><img src="<?php echo $GLOBALS['template_url']; ?>/images/premiumpress/h-ico/GeneralPreferences.png" align="middle"> Display S... | magictortoise/voucheroffer | wp-content/themes/couponpress/admin/_ad_couponpress_1.php | PHP | gpl-2.0 | 22,576 |
<?php
/**
* @copyright Ilch 2.0
* @package ilch
*/
namespace Modules\Admin\Models;
/**
* The layout model class.
*/
class Layout extends \Ilch\Model
{
/**
* Key of the layout.
*
* @var string
*/
protected $key;
/**
* Name of the layout.
*
* @var string
*/
... | jurri/Ilch-2.0 | application/modules/admin/models/Layout.php | PHP | gpl-2.0 | 2,550 |
#
#
# (C) Copyright 2001 The Internet (Aust) Pty Ltd
# ACN: 082 081 472 ABN: 83 082 081 472
# All Rights Reserved
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A ... | denys-duchier/Scolar | ZopeProducts/exUserFolder/Plugins.py | Python | gpl-2.0 | 1,784 |
using Mono.Data.Sqlite;
namespace Noised.Core.DB.Sqlite
{
/// <summary>
/// Factory for creating Sqlite connections
/// </summary>
public interface ISqliteConnectionFactory
{
/// <summary>
/// Creates a new, still closed connection
/// </summary>
SqliteConnection Create();
};
}
| bennygr/noised | src/NoisedCore/DB/Sqlite/ISqliteConnectionFactory.cs | C# | gpl-2.0 | 296 |
module.exports = function(grunt) {
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
copy: {
main: {
expand: true,
cwd: "src/",
src: ["**", "!css/**/*.scss", "!css/**/*.less"],
dest: "dis... | MDIAZ88/mad-css-less-sass | Gruntfile.js | JavaScript | gpl-2.0 | 1,266 |
#!/usr/bin/python
"feed fetcher"
from db import MySQLDatabase
from fetcher import FeedFetcher
def main():
db = MySQLDatabase()
fetcher = FeedFetcher()
feeds = db.get_feeds(offset=0, limit=10)
read_count = 10
while len(feeds) > 0:
for feed in feeds:
fid = feed[0]
ur... | hylom/grrreader | backend/feedfetcher.py | Python | gpl-2.0 | 889 |
/*
* 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 sv.edu.uesocc.ingenieria.disenio2_2015.pymesell.presentacion.pymesellv1desktopclient;
/**
*
* @author David
*/
public class... | girondave/Proyecto_Disenio2_2015-PymeSell_v1 | PymeSellV1DesktopClient/src/java/sv/edu/uesocc/ingenieria/disenio2_2015/pymesell/presentacion/pymesellv1desktopclient/Main.java | Java | gpl-2.0 | 496 |
<?php
global $post;
$date_format = get_option('date_format');
$author_id=$post->post_author;
$options = ST_Page_Builder::get_page_options($post->ID, array());
?>
<div <?php post_class(); ?>>
<?php
// show thumbnails
if(st_get_setting('sc_show_featured_img','y')!='n'){
$thumb = st_theme_post_th... | dangxuanha/wordpress_language | wp-content/themes/Edu/content-course.php | PHP | gpl-2.0 | 2,082 |
package org.booleanfloat.traveler.links;
import org.booleanfloat.traveler.Location;
import org.booleanfloat.traveler.interfaces.Traversable;
import java.util.ArrayList;
import java.util.concurrent.Callable;
public class OneWayLink {
public OneWayLink(Location start, Location end) {
this(start, end, new A... | BooleanFloat/Traveler | src/org/booleanfloat/traveler/links/OneWayLink.java | Java | gpl-2.0 | 662 |
<?php
/**
* Template Name: Library
* @package mjv-theme
*/
if (is_home()) :
get_header();
else :
get_header('insiders');
endif;
?>
<div id="primary" class="content-area library">
<main id="main" class="site-main" role="main">
<?php
//carrega os cases, clients e content
ge... | DiegoDCosta/mjv-wp | page-library.php | PHP | gpl-2.0 | 472 |
public class trace {
public void mnonnullelements(int[] a) {
int i = 0;
//@ assert i == 0 && \nonnullelements(a);
return ;
}
public void mnotmodified(int i) {
//@ assert \not_modified(i);
i = 4;
//@ assert i == 4 && \not_modified(i);
... | shunghsiyu/OpenJML_XOR | OpenJML/testfiles/escTraceBS/trace.java | Java | gpl-2.0 | 342 |
# จงเขียนโปรแกรมแสดงเลขคู่ในช่วง 0 ถึง 10 (รวม 10 ด้วย)
for i in range(11):
if (i % 2 == 0):
print(i) | supasate/word_prediction | Chapter4/4-7-even-solution.py | Python | gpl-2.0 | 193 |
<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-ca">
<head>
<?php $this->RenderAsset('Head'); ?>
<meta property="qc:admins" content="2666562... | ttym7993/Garden | applications/dashboard/views/default.master.php | PHP | gpl-2.0 | 2,898 |
var ModuleManager = (function(){
//Directorio donde se encuentran los modulos
const BASE_PATH = "js/modules/";
//modules
var modules = {
"templateManager":{
"className":"TemplateManager",
"fileName":"templateManagerModule.js",
"order":1,
"lo... | sergio11/teVeo | js/managerModule.js | JavaScript | gpl-2.0 | 6,834 |
<?php
/**
* H4PH - HTML4 PHP Helper
* @link https://github.com/Coft/H4PH
*/
class Td
{
/**
* contains all setted attributes
* @var array
*/
private $attrs = array();
/**
* keeps content
* @var string
*/
private $content = null;
/**
* holds markup name
... | Coft/H4PH | classes/Td.php | PHP | gpl-2.0 | 7,819 |
var SPHERE = {
getSphereVertex: function (radius, res) { // Se obtienen los vértices, normales y coordenadas de textura
var vertexData = [], alpha, beta, x, y, z, u, v;
for (var i = 0; i <= res; i++) { // Se recorren las latitudes
alpha = i * Math.PI / res; // Ángulo latitud
... | fblupi/grado_informatica-SG | P2/P2_1/SistemaSolar/js/sphere.js | JavaScript | gpl-2.0 | 2,248 |
/**
*
*/
package org.sylvani.io.voice.http;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.emf.common.util.EList;
import ... | hkuhn42/sylvani | org.sylvani.io/src/main/java/org/sylvani/io/voice/http/RecognitionRelayServlet.java | Java | gpl-2.0 | 1,853 |
class Class3_Sub28 extends Class3 {
static Class94[] aClass94Array2566 = new Class94[200];
static int anInt2567 = -1;
private static Class94 aClass94_2568 = Class3_Sub4.buildString("Started 3d Library");
long aLong2569;
Class3_Sub28 aClass3_Sub28_2570;
static int anInt2571;
static int an... | Lmctruck30/RiotScape-Client | src/Class3_Sub28.java | Java | gpl-2.0 | 4,615 |
/*
Kvalobs - Free Quality Control Software for Meteorological Observations
$Id: Data.h,v 1.2.6.2 2007/09/27 09:02:22 paule Exp $
Copyright (C) 2007 met.no
Contact information:
Norwegian Meteorological Institute
Box 43 Blindern
0313 OSLO
NORWAY
email: kvalobs-dev@met.no
This file is part of KVALO... | metno/kvbufrd | src/bufr/EncodeBufr302053.cc | C++ | gpl-2.0 | 1,668 |
using System;
namespace WIC
{
public enum DXGI_FORMAT
{
DXGI_FORMAT_UNKNOWN,
DXGI_FORMAT_R32G32B32A32_TYPELESS,
DXGI_FORMAT_R32G32B32A32_FLOAT,
DXGI_FORMAT_R32G32B32A32_UINT,
DXGI_FORMAT_R32G32B32A32_SINT,
DXGI_FORMAT_R32G32B32_TYPELESS,
DXGI_FORMAT_R32G32B32_FLOAT,
DXGI_FORMAT_R32G32B32_UINT,
DXGI... | Rambalac/DummyWIC | Wic/WIC/DXGI_FORMAT.cs | C# | gpl-2.0 | 3,363 |
/***************************************************************************
getfmtast.cpp - returns the AST for formatted IO
-------------------
begin : July 22 2002
copyright : (C) 2002 by Marc Schellens
email ... | cenit/GDL | src/getfmtast.cpp | C++ | gpl-2.0 | 2,564 |
<?php
/**
* Created by PhpStorm.
* User: Sheila
* Date: 12/12/2014
* Time: 6:51 AM
*/
| experimentX/worklor | wp-content/plugins/booklor/testlor.php | PHP | gpl-2.0 | 91 |
#!/usr/bin/env python
import math
fin = open('figs/single-rod-in-water.dat', 'r')
fout = open('figs/single-rods-calculated-density.dat', 'w')
kB = 3.16681539628059e-6 # This is Boltzmann's constant in Hartree/Kelvin
first = 1
nm = 18.8972613
for line in fin:
current = str(line)
pieces = current.split('\t')... | droundy/deft | papers/hughes-saft/figs/density_calc.py | Python | gpl-2.0 | 986 |
dojo.require("dijit.Dialog");
dojo.require("dijit.form.FilteringSelect");
dojo.require('dijit.form.Button');
dojo.require('dijit.TooltipDialog');
dojo.require('dijit.form.DropDownButton');
dojo.require('dijit.form.CheckBox');
dojo.require('dojox.grid.DataGrid');
dojo.require('dojo.data.ItemFileWriteStore');
dojo.requir... | ubcic/evergreen | Open-ILS/web/js/ui/default/acq/financial/list_funds.js | JavaScript | gpl-2.0 | 8,907 |
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: AssemblyTi... | efaruk/playground | sims/Sims/Properties/AssemblyInfo.cs | C# | gpl-2.0 | 1,420 |
package lionse.client.stage;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Label... | agemor/lionse | src/lionse/client/stage/Character.java | Java | gpl-2.0 | 10,099 |
package com.lami.tuomatuo.mq.zookeeper.server;
import com.lami.tuomatuo.mq.zookeeper.jmx.ZKMBeanInfo;
/**
* This class implements the data tree MBean
*
* Created by xujiankang on 2017/3/19.
*/
public class DataTreeBean implements DataTreeMXBean, ZKMBeanInfo{
public DataTree dataTree;
public DataTreeBea... | jackkiexu/tuomatuo | tuomatuo-mq/src/main/java/com/lami/tuomatuo/mq/zookeeper/server/DataTreeBean.java | Java | gpl-2.0 | 1,052 |