repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
luislenes/EgresadosWeb | src/java/com/egresados/servlet/SaveAnswers.java | 5900 | /*
* 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 com.egresados.servlet;
import com.egresados.dao.DaoHistorialDeEncuestas;
import com.egresados.dao.DaoRespuesta;
impor... | gpl-2.0 |
Craft---/Chef-Artifactory-Client | recipes/default.rb | 108 | chef_gem 'artifactory' do
action :nothing
end.run_action(:install)
Gem.clear_paths
require 'artifactory'
| gpl-2.0 |
pehohlva/qt-gmail-access | Drupalmail/parser/3rdparty/kcodecs.cpp | 6764 | /*
Copyright (C) 2000-2001 Dawit Alemayehu <adawit@kde.org>
Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License (LGPL)
version 2 as published by the Free Software Foundation... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c28011.lua | 4524 | --秘封 宇佐见莲子
function c28011.initial_effect(c)
c:EnableReviveLimit()
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(28011,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND)
e2:SetCost(c28011.spcost)
e2:SetTarget(c28011.sptg)
e... | gpl-2.0 |
PJosepherum/mediawiki | includes/mail/UserMailer.php | 13287 | <?php
/**
* Classes used to send e-mails
*
* 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.
*
* This program is d... | gpl-2.0 |
wang159/CS541 | project_4/yu/src/query/Describe.java | 638 | package query;
import parser.AST_Describe;
/**
* Execution plan for describing tables.
*/
class Describe implements Plan {
/**
* Optimizes the plan, given the parsed query.
*
* @throws QueryException if table doesn't exist
*/
public Describe(AST_Describe tree) throws QueryException {... | gpl-2.0 |
Saftemand/S_DW_Continuous_Deployment_Test | S_DW_Continuous_Deployment_test/Admin/Content/Designer/EditDesign.js | 3633 | var submitted = false;
var initialized = false;
function init() {
for (i = 0; i < document.getElementById("LayoutForm").elements.length; i++) {
if (document.getElementById("LayoutForm").elements[i].id) {
var value = elementValue(document.getElementById("LayoutForm").elements[i]);
window[document.getElementBy... | gpl-2.0 |
beauxq/expressions | Evaluator.cpp | 11128 | #include "Evaluator.h"
#include <string>
#include <cctype>
#include <stack>
#include <stdexcept>
#include <queue>
#include "Token.h"
const int Evaluator::FIRST_NON_WHITE = 33; // first char that prints non-white
void Evaluator::store_exp(const std::string& input)
{
/** stores string in expression */
expre... | gpl-2.0 |
kirill-oficerov/romaksenia | wp-content/themes/simple-catch/content.php | 4158 | <?php
/**
* This is the template that displays content for index and archive page
*
* @package Catch Themes
* @subpackage Simple_Catch
* @since Simple Catch 1.3.2
*/
global $wp_object_cache;
get_header();
?>
<script type="text/javascript">
if($ == undefined) {
var $ = jQuery;
}
(function($) {
$(function() ... | gpl-2.0 |
pacificpelican/bigLake | header.php | 2091 | <?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package greenlake
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initi... | gpl-2.0 |
UkuAndla/Wordpress-theme | wp-content/themes/bootstrap2wordpress/wp-content/themes/bootstrap-to-wordpress/page-home.php | 14796 | <?php
/*
Template Name: Home Page
*/
get_header(); ?>
<!-- HERO
================================================== -->
<section id="hero" data-type="background" data-speed="5">
<article>
<div class="container clearfix">
<div class="row">
<div class="col-sm-5">
<img src="assets/img/logo-ba... | gpl-2.0 |
kunj1988/Magento2 | dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Product/View/ConfigurableOptions.php | 7880 | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\ConfigurableProduct\Test\Block\Product\View;
use Magento\Catalog\Test\Block\Product\View\CustomOptions;
use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct;
use Magento\Mtf\Client\Loc... | gpl-2.0 |
ljh198275823/500-SteelRoll-Inventory | Source/LJH.Inventory.BLL/WareHouseBLL.cs | 2253 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using LJH.Inventory.BusinessModel;
using LJH.Inventory.BusinessModel.SearchCondition;
using LJH.GeneralLibrary.Core.DAL;
using LJH.Inventory.WebApiClient.WebApiClient;
using Newtonsoft.Json;
namespace LJH.Inventory... | gpl-2.0 |
Falcury/java-labs | FirstProject/src/tutorials/SimpleOpenGLRenderer.java | 1052 | package tutorials;
import static org.lwjgl.opengl.GL11.*;
import org.lwjgl.opengl.*;
import org.lwjgl.*;
public class SimpleOpenGLRenderer {
public SimpleOpenGLRenderer() {
try {
Display.setDisplayMode(new DisplayMode(640, 480));
Display.setTitle("Hello World!");
Display.create();
} catch (LWJGLExcepti... | gpl-2.0 |
jonreycas/enjambre | mod/user_support/actions/help/delete.php | 620 | <?php
$guid = (int) get_input("guid", 0);
if(!empty($guid) && ($entity = get_entity($guid))){
if(elgg_instanceof($entity, "object", UserSupportHelp::SUBTYPE, "UserSupportHelp")){
if($entity->delete()){
system_message(elgg_echo("user_support:action:help:delete:success"));
} else {
register... | gpl-2.0 |
commsy/commsy | src/Model/TimePulseTemplate.php | 4005 | <?php
namespace App\Model;
/**
* Data class that represents a time pulse template
*
* Time pulse templates are used to generate the actual time pulse entries
* (as labels via cs_time_manager)
* @see TimePulsesService
*/
class TimePulseTemplate
{
/**
* @var integer|null
*/
private $id;
/**
... | gpl-2.0 |
jmescuderojustel/nodejs-tdd-base | source/server/common/errorMessages.js | 303 | var errorMessages = {
emailFieldRequired: "Email field is required",
passwordFieldRequired: "Password field is required",
emailFieldIsNotCorrect: "Email field is not in a correct format",
mongodb:{
duplicatekey: "duplicate key error"
}
};
module.exports = errorMessages;
| gpl-2.0 |
terminalcloud/apps | others/nightmarejs_example.js | 681 | var Nightmare = require('nightmare');
var exec = require('child_process').exec;
// Receive arguments from the console.
var arguments = process.argv.slice(2);
console.log("Searching: " + arguments);
new Nightmare()
.goto('http://yahoo.com')
.type('input[title="Search"]', arguments)
.click('.searchsubmit')
... | gpl-2.0 |
niw/chemr | CHMDocument.rb | 11685 | #!rake ;#
require "uri"
class CHMWindowController < NSWindowController
ib_outlet :webview
ib_outlet :list
ib_outlet :tree
ib_outlet :drawer
ib_outlet :search
def windowDidLoad
@chm = self.document.chm
uri = URI(self.document.fileURL.absoluteString)
browse @chm.home
@now = @index = @chm.index.to_a.sor... | gpl-2.0 |
rcorral/joomla-platform | libraries/legacy/error/error.php | 23601 | <?php
/**
* @package Joomla.Platform
* @subpackage Error
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
// Error Definition: Illegal Options
define('JERR... | gpl-2.0 |
ARudik/feelpp.cln | src/integer/hash/cl_I_hashcode.cc | 875 | // cl_I hashcode().
// General includes.
#include "base/cl_sysdep.h"
// Specification.
#include "integer/cl_I.h"
// Implementation.
namespace cln {
unsigned long hashcode (const cl_I& x)
{
var unsigned long code = 0x814BE3A5;
// We walk through all limbs. It may take some time for very large
// integers, but i... | gpl-2.0 |
wizhippo/TagsBundle | tests/Core/Base/Container/ApiLoader/RepositoryFactory.php | 2974 | <?php
namespace Netgen\TagsBundle\Tests\Core\Base\Container\ApiLoader;
use eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeCollectionFactory;
use eZ\Publish\Core\Base\Container\ApiLoader\FieldTypeNameableCollectionFactory;
use eZ\Publish\Core\Base\Container\ApiLoader\RepositoryFactory as BaseRepositoryFactory;
use ... | gpl-2.0 |
remyoudompheng/surf-1 | yaccsrc/Script.cc | 22695 | /*
* surf - visualizing algebraic curves and algebraic surfaces
* Copyright (C) 1996-1997 Friedrich-Alexander-Universitaet
* Erlangen-Nuernberg
* 1997-2000 Johannes Gutenberg-Universitaet Mainz
* Authors: Stephan Endrass, Hans Huelf, Ruediger Oertel,
* Ka... | gpl-2.0 |
johnpmitsch/katello | test/services/katello/applicability/applicable_content_helper_test.rb | 8214 | require 'katello_test_helper'
module Katello
module Service
module Applicability
class ApplicableContentHelperTest < ActiveSupport::TestCase
FIXTURES_FILE = File.join(Katello::Engine.root, "test", "fixtures", "pulp", "rpms.yml")
def trigger_evrs(packages)
packages.each do |package... | gpl-2.0 |
opieproject/opie | i18n/pt/qpe.ts | 14521 | <!DOCTYPE TS><TS>
<context>
<name>@default</name>
<message>
<source>Language</source>
<translation>Idioma</translation>
</message>
<message>
<source>Time and Date</source>
<translation>Hora e Data</translation>
</message>
<message>
<source>Personal Informa... | gpl-2.0 |
JackDavidson/TabMaker | src/wolf/games/mobile/tabmaker/TabEditorActivity.java | 19586 | package wolf.games.mobile.tabmaker;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import org.andengine.engine.camera.Camera;
import org.andengine.engine.options.EngineOptions;
import org.andengine.engine.options.ScreenOrientation;
import org.andengine.engine.options.res... | gpl-2.0 |
vividoranje/drupal6 | sites/all/modules/civicrm/CRM/Admin/Form/Setting/Mapping.php | 3391 | <?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 3.1 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2010 |
+--------------------... | gpl-2.0 |
QuielSimoes/minhagrana | app/src/Controller/LogsController.php | 3235 | <?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Logs Controller
*
* @property \App\Model\Table\LogsTable $Logs
*/
class LogsController extends AppController
{
/**
* Index method
*
* @return void
*/
public function index()
{
$this->paginate = [
... | gpl-2.0 |
chisimba/modules | webpresent/classes/dbwebpresentdownloadcounter_class_inc.php | 13870 | <?php
// security check - must be included in all scripts
if (!
/**
* Description for $GLOBALS
* @global unknown $GLOBALS['kewl_entry_point_run']
* @name $kewl_entry_point_run
*/
$GLOBALS['kewl_entry_point_run']){
die("You cannot view this page directly");
}
class dbwebpresentdownloadcounter extends dbta... | gpl-2.0 |
gsergiu/music-genres | music-genre/src/main/java/eu/europeana/dbpedia/connection/DBPediaClientConfiguration.java | 2076 | package eu.europeana.dbpedia.connection;
import java.io.InputStream;
import java.util.Properties;
import eu.europeana.api.client.exception.TechnicalRuntimeException;
public class DBPediaClientConfiguration{
private static final String MUSIC_GENRES_PROPERTIES_FILE = "/music-genre.properties";
private static final ... | gpl-2.0 |
jade58/Songs-Lyrics-Script | js/custom.js | 12341 | /*
*
* Custom JavaScript
* Product: KnowledgeBase WordPress Theme
*
* */
jQuery(document).ready(function(e) {
$ = jQuery;
/*-----------------------------------------------------------------------------------*/
/* Menu Dropdown Control
/*---------------------------------------------------------------... | gpl-2.0 |
DarrenTsung/duckproject | KnightsOfTheFarm/Assets/Plugins/Editor/Vexe/GUIs/BaseGUI/Controls/Popups.cs | 2164 | using UnityEngine;
using Vexe.Editor.Helpers;
using Vexe.Runtime.Extensions;
namespace Vexe.Editor.GUIs
{
public abstract partial class BaseGUI
{
public int Popup(int selectedIndex, string[] displayedOptions)
{
return Popup(selectedIndex, displayedOptions, null);
}
public int Popup(int sele... | gpl-2.0 |
stevenc99/Serious-Engine | Sources/Engine/Models/RenderModel.cpp | 27928 | /* Copyright (c) 2002-2012 Croteam Ltd.
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 Foundation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
imfaber/imfaber_v2 | modules/backend/widgets/Form.php | 20028 | <?php namespace Backend\Widgets;
use App;
use Str;
use Lang;
use Form as FormHelper;
use Input;
use Event;
use Backend\Classes\FormField;
use Backend\Classes\WidgetBase;
use Backend\Classes\WidgetManager;
use System\Classes\ApplicationException;
/**
* Form Widget
* Used for building back end forms and renders a for... | gpl-2.0 |
hodorogandrei/contesteasyplatform | admiasi/include/ip2country_files/151.php | 2004 | <?php
//-
$ranges=Array(
"2533359616" => array("2533375999","UA"),
"2533376000" => array("2533392383","HU"),
"2533392384" => array("2533425151","RO"),
"2533425152" => array("2539978751","IT"),
"2539978752" => array("2540240895","US"),
"2540240896" => array("2540306431","FI"),
"2540306432" => array("2540896255","US"),
"... | gpl-2.0 |
mua/Radial-Engine | src/engine/rePlayer.cpp | 4906 | #include "rePlayer.h"
#include "reBody.h"
#include "btBulletDynamicsCommon.h"
#include "reRadial.h"
#include "reInput.h"
#include "reCamera.h"
#include "rePTerrain.h"
#include "reNoise.h"
#include "reLight.h"
rePlayer::rePlayer(reBody* body)
{
this->body = body ? body : new reBody;
add(body, true);
add(camera = new... | gpl-2.0 |
oat-sa/extension-tao-delivery | controller/DeliveryServer.php | 18431 | <?php
/**
* 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; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WIT... | gpl-2.0 |
tuffnerdstuff/xbmc-plugins | src/plugin.video.superrtl.now/default.py | 6542 | import xbmcplugin
import xbmcgui
import sys
import urllib, urllib2
import time
import re
from htmlentitydefs import name2codepoint as n2cp
thisPlugin = int(sys.argv[1])
urlHost = "http://www.superrtlnow.de"
ajaxUrl = "/xajaxuri.php"
# -----regexContent-------
# [0] is url (/foo.php)
# [1] is name (foo i... | gpl-2.0 |
juancasantito/prueba | sites/default/files/php/twig/4d294ac9_node.html.twig_03ce5d4a6977aab87fc4508974010eddef7aeaa8ded52c8cab927e0c3e628518/e46307e36d5d92f8fc06ba78737c40ed97363cc2eb280aadf7b392e7bfd69b85.php | 12579 | <?php
/* core/themes/bartik/templates/node.html.twig */
class __TwigTemplate_1204c4e91238d60e7e8fcfb5638aa80ba0a0cc176ed5a607b8f57ac950c1d3e1 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = ... | gpl-2.0 |
evamichalcak/doartystuff | wp-content/plugins/event-rocket/embedding/embed-organizers.php | 2130 | <?php
defined( 'ABSPATH' ) or exit();
class EventRocket_EmbedOrganizersShortcode
{
/**
* @var EventRocket_OrganizerLister
*/
protected $finder;
/**
* Sets up the [event_embed] shortcode.
*
* The actual shortcode name can be changed from "event_embed" to pretty much anything, using
* the eventrocket_e... | gpl-2.0 |
bmatusiak/repairshopr-mobile-app | www/assets/plugins/api/api.js | 2877 | define(function() {
var pluginName = "api";
plugin.provides = [pluginName];
plugin.consumes = ["settings","user"];
return plugin;
function plugin(options, imports, register) {
var settings = imports.settings
var user = imports.user.get;
$.put = function(url, data, call... | gpl-2.0 |
gaving/ftf | src/net/brokentrain/ftf/ui/gui/dialog/ServiceDialog.java | 4743 | package net.brokentrain.ftf.ui.gui.dialog;
import net.brokentrain.ftf.core.services.SearchService;
import net.brokentrain.ftf.core.services.WebSearchService;
import net.brokentrain.ftf.ui.gui.properties.ViewServiceProperties;
import net.brokentrain.ftf.ui.gui.properties.ViewWebServiceProperties;
import net.brokentrain... | gpl-2.0 |
therockwee/corporate | wp-content/themes/carservice/contact_form.php | 6392 | <?php
//contact form
function cs_theme_contact_form_shortcode($atts)
{
extract(shortcode_atts(array(
"id" => "contact_form",
"top_margin" => "none",
"el_class" => ""
), $atts));
$output = "";
$output .= '<form class="contact-form ' . ($top_margin!="none" ? esc_attr($top_margin) : '') . ($el_class!="" ? ' ' ... | gpl-2.0 |
arkev/IntelligentMode | wp-content/themes/florida-wp/inc/shortcodes/doublepromo.php | 969 | <?php
// Picture Box
function webnus_doublepromo( $attributes, $content = null ) {
extract(shortcode_atts(array(
"title" => '',
"text" => '',
"link_text" =>'',
"link_link" =>'#',
"img" =>'',
"img_alt" =>'',
"last" =>'',
), $attributes));
if(is_numeric($img)){
$img = wp_get_att... | gpl-2.0 |
hsgui/interest-only | euler/83_path_sum_four_ways.cpp | 2398 | #include<stdio.h>
#include<stdlib.h>
#include<queue>
#include<vector>
#include<utility>
class Item{
public:
int priority;
int row;
int column;
Item(int priority, int row, int column):
priority(priority),
row(row),
column(column){}
};
class ItemComparer{
public:
bool operator() (const Item& l, c... | gpl-2.0 |
TheTypoMaster/Scaper | openjdk/corba/src/share/classes/com/sun/corba/se/pept/transport/ConnectionCache.java | 1578 | /*
* Copyright 2001-2003 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... | gpl-2.0 |
linusmotu/Viaje | ViajeUi/src/com/viaje/main/CreatePopupMenu.java | 35667 | package com.viaje.main;
import java.util.Calendar;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.drawable.ColorDrawable;
import android.os.AsyncTask;
import android.view.Gravity;
import android.view.LayoutInflater;
import andr... | gpl-2.0 |
Huluzai/DoonSketch | inkscape-0.48.5/src/ui/dialog/glyphs.cpp | 36006 | /**
* Glyph selector dialog.
*/
/* Authors:
* Jon A. Cruz
*
* Copyright (C) 2010 Jon A. Cruz
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <vector>
#include <glibmm/i18n.h>
#include <gtkmm/entry.h>
#include <gtkmm/iconview.h>
#include <gtkmm/label.h>
#include <gtkmm/list... | gpl-2.0 |
adaoex/zf2-phpbol | src/PHPBol/Boleto/Factory.php | 1280 | <?php
/*
* This file is part of PHPBol.
*
* (c) 2011 Francisco Luz & Rafael Goulart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPBol\Boleto;
/**
* Abstração para Boletos
* Contém funções elementares para todos T... | gpl-2.0 |
matthiasbeyer/docplus | functions.php | 91 | <?php
if ( function_exists('register_sidebars') )
register_sidebars(3);
?>
| gpl-2.0 |
ETSGlobal/ezpublish_built | kernel/state/module.php | 4708 | <?php
/**
* @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version 2011.12
* @package kernel
*/
$Module = array( 'name' => 'eZContentObjectState',
'variable_params' => false );
$ViewList ... | gpl-2.0 |
Broadsheetie/Broadsheet-wordpress | wp-content/plugins/most-comments/most-comments.php | 4320 | <?php
/*
Plugin Name: Most Comments
Plugin URI: http://www.brandinfection.com
Description: Most Comments as a function and in a Widget
Version: 1.1
Author: Nader Cserny
Author URI: http://www.brandinfection.com/
*/
### Use WordPress 2.6 Constants
if (!defined('WP_CONTENT_DIR')) {
define( 'WP_CONTENT_DIR', ABSPATH.'w... | gpl-2.0 |
halfline/gnome-shell | js/perf/core.js | 8758 | // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const System = imports.system;
const Main = imports.ui.main;
const Scripting = imports.ui.scripting;
// This performance script measure the most important (core) performance
// metrics for the shell. By looking at the output metrics of this script
// som... | gpl-2.0 |
NPLPackages/main | script/ide/MotionEx/MotionRender_SpellCastViewer.lua | 22274 | --[[
Title:
Author(s): Leio
Date: 2011/06/10
Desc: based on script/apps/Aries/Pipeline/SpellCastViewer/SpellCastViewerPage.lua
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/MotionEx/MotionRender_SpellCastViewer.lua");
local MotionRender_SpellCastViewer = commonlib.... | gpl-2.0 |
xstatic/jaxfoodie | sites/all/themes/illusion/templates/node/testimonials/node--view--testimonials--block-home.tpl.php | 1315 | <?php
global $default_img;
$image = $default_img;
if(isset($node->field_image['und'])) {
$image = file_create_url($node->field_image['und'][0]['uri']);
}
?>
<div>
<!--quote-->
<blockquote class="r_corners relative type_2 fs_large color_dark m_bottom_20">
<?php print $node->body... | gpl-2.0 |
PodcastScience/ps-home | wp-content/themes/iblog/page_fullwidth.php | 153 | <?php
/*
Template Name: PS Page FullWidth
*/
?>
<?php get_header(); ?>
<?php get_template_part('library/template_fullwidth');?>
<?php get_footer(); ?>
| gpl-2.0 |
yyl/btc-price-analysis | googletrend.py | 3750 | #!/usr/bin/python
import pandas as pd
import datetime
import numpy as np
import scipy as sp
import os
import matplotlib.pyplot as plt
import matplotlib
import scriptine
## non-standard import
import secrets
os.chdir(secrets.ROOT)
##### constants
time_format = "%Y-%m-%dT%H:%M:%S"
def parseWeek(w):
"""parse data from ... | gpl-2.0 |
gppezzi/easybuild-framework | easybuild/toolchains/cgmpich.py | 1564 | ##
# Copyright 2013-2019 Ghent University
#
# This file is triple-licensed under GPLv2 (see below), MIT, and
# BSD three-clause licenses.
#
# 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... | gpl-2.0 |
jrwren/nepenthes | modules/vuln-optix/OPTIXBindDialogue.cpp | 3377 | /********************************************************************************
* Nepenthes
* - finest collection -
*
*
*
* Copyright (C) 2005 Paul Baecher & Markus Koetter
*
* This program is free software; you can redistribute it and/or
* modify it unde... | gpl-2.0 |
sudheendrachari/sudheendrachari.github.io | bookmyshow-notify/mail.js | 1271 | (function(module) {
var nodemailer = require('nodemailer');
var generator = require('xoauth2').createXOAuth2Generator({
user: '',
clientId: '',
clientSecret: '',
refreshToken: '',
accessToken: '' // optional
});
// listen for token updates
// you p... | gpl-2.0 |
sjhalaz/hypertable | src/cc/Common/md5.cc | 13515 | /**
* Copyright (C) 2007 Doug Judd (Zvents, Inc.)
*
* This file is part of Hypertable.
*
* Hypertable 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 any later ver... | gpl-2.0 |
carlosway89/testshop | lang/german/original_sections/admin/gm_pdf_action.lang.inc.php | 7169 | <?php
/* --------------------------------------------------------------
gm_pdf_action.lang.inc.php 2015-01-02 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2015 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
---------------------------------... | gpl-2.0 |
dmchdev/dranik | testheader.py | 949 |
Before:
from selenium import webdriver
driver = webdriver.Chrome()
#driver = webdriver.Firefox()
driver.implicitly_wait(20)
def handleAlert():
try:
alert = driver.switch_to_alert()
alert.dismiss()
except Exception:
pass
After:
driver.close()
driver.quit()
# from selenium import webdriver
# from selenium.web... | gpl-2.0 |
dset0x/inspire-next | inspire/modules/deposit/forms.py | 15147 | # -*- coding: utf-8 -*-
##
## This file is part of INSPIRE.
## Copyright (C) 2014 CERN.
##
## INSPIRE 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) a... | gpl-2.0 |
felipebravom/TwitterSentLex | src/weka/filters/unsupervised/attribute/LDAFilter.java | 11812 | package weka.filters.unsupervised.attribute;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Vector;
import java.util.regex.Pattern;
import cc.mallet.pipe.CharSequence2TokenSequence;
import cc.mallet.pipe.CharSequenceLowercase;
import cc.ma... | gpl-2.0 |
banielTimes/date-poller | src/main/java/de/datepoller/actions/ShowPollAction.java | 1839 | package de.datepoller.actions;
import com.opensymphony.xwork2.ActionSupport;
import de.datepoller.domain.Poll;
import de.datepoller.domain.User;
import de.datepoller.services.PollService;
import de.datepoller.services.UserService;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.springframework.be... | gpl-2.0 |
DevCabin/SPARK | inc/class-tgm-plugin-activation.php | 123160 | <?php
/**
* Plugin installation and activation for WordPress themes.
*
* Please note that this is a drop-in library for a theme or plugin.
* The authors of this library (Thomas, Gary and Juliette) are NOT responsible
* for the support of your plugin or theme. Please contact the plugin
* or theme author for suppor... | gpl-2.0 |
miko2u/pukiwiki-plus-i18n | spam.ini.php | 190409 | <?php
// $Id: spam.ini.php,v 1.80 2007/09/24 16:01:00 henoheno Exp $
// Spam-related setting
// NOTE FOR ADMINISTRATORS:
//
// Host selection:
// [1] '.example.org' prohibits ALL "example.org"-related FQDN
// [2] '*.example.org' prohibits ONLY subdomains and hosts, EXCEPT "www.example.org"
// [3] 'example.org' ... | gpl-2.0 |
s-papanastasiou/wireless-positioning | WifiPositioning/AndroidVisualiser/src/main/java/me/gregalbiston/androidvisualiser/display/SummaryListPreference.java | 1043 | package me.gregalbiston.androidvisualiser.display;
import android.content.Context;
import android.preference.ListPreference;
import android.util.AttributeSet;
/**
* Created with IntelliJ IDEA.
* User: Greg Albiston
* Date: 28/07/13
* Time: 18:39
* Based on Michael answer on Aug 10 '11: http://stackoverflow.com/q... | gpl-2.0 |
ciricihq/CakeOAuth2Client | tests/TestCase/Controller/AuthControllerTest.php | 287 | <?php
namespace App\Test\TestCase\Controller;
use Cake\TestSuite\IntegrationTestCase;
use Cake\Routing\Router;
class AuthControllerTest extends IntegrationTestCase
{
public function testLogin()
{
$this->get('/oauth2/login');
$this->assertResponseOk();
}
}
| gpl-2.0 |
fenexomega/MeheTutorials | 7/main.cpp | 5460 | #include<iostream>
#include<GL/glut.h>
#include"SOIL/SOIL.h"
#include<unistd.h>
using namespace std;
GLuint textures[3];
float rotx = 0;
float roty = 0;
float rotz = 0;
bool fullscreen;
bool active;
bool keys[256];
bool light;
bool lp;
bool lf;
GLfloat LightAmbient[] = { 0.5f, 0.5f,0.5f,0.5f};
GLfloat LightDiffus... | gpl-2.0 |
raedkleelsame/phpmyadmin | test/selenium/PmaSeleniumDbProceduresTest.php | 5784 | <?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Selenium TestCase for table related tests
*
* @package PhpMyAdmin-test
* @subpackage Selenium
*/
require_once 'TestBase.php';
/**
* PmaSeleniumDbProceduresTest class
*
* @package PhpMyAdmin-test
* @subpackage Selenium
*/
class PMA_SeleniumDbProcedu... | gpl-2.0 |
danieljabailey/inkscape_experiments | src/shortcuts.cpp | 25316 | /** \file
* Keyboard shortcut processing.
*/
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* MenTaLguY <mental@rydia.net>
* bulia byak <buliabyak@users.sf.net>
* Peter Moulder <pmoulder@mail.csse.monash.edu.au>
*
* Copyright (C) 2005 Monash University
* Copyright (C) 2005 MenTaLguY <mental... | gpl-2.0 |
openbu/client | source/src/saveload/town_sl.cpp | 13529 | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
ataxel/tp | ezpublish/cache/dev/twig/45/d4/2a3ec75db3a6e920adf61db104530c6dc3b5b5b0f58d55d47b13b2d57a17.php | 4613 | <?php
/* WebProfilerBundle:Profiler:base_js.html.twig */
class __TwigTemplate_45d42a3ec75db3a6e920adf61db104530c6dc3b5b5b0f58d55d47b13b2d57a17 extends eZ\Bundle\EzPublishDebugBundle\Twig\DebugTemplate
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->pare... | gpl-2.0 |
ojdkbuild/lookaside_java-1.8.0-openjdk | hotspot/test/gc/shenandoah/compiler/C1VectorizedMismatch.java | 2108 | /*
* Copyright (c) 2016 Red Hat, Inc. and/or its affiliates.
*
* 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 Foundation.
*
* This code is distributed in the hope that it will be useful... | gpl-2.0 |
liumingkong/androidUI | app/src/main/java/org/android/black/viewpager/TestFragment.java | 1766 | package org.android.black.viewpager;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
... | gpl-2.0 |
nedy13/AgilityContest | agility/console/frm_estadisticas.php | 1228 | <h1>Lorem Ipsum dolor sit amet</h1>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy nibh euismod tincidunt ut laoreet dolore
magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper
suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Du... | gpl-2.0 |
Esyst/PHP-Soap | src/Esyst/Soap/SoapException.php | 71 | <?php namespace Esyst\Soap;
class SoapException extends \Exception{}; | gpl-2.0 |
camptocamp/cartoweb3 | scripts/stats/src/test/java/org/cartoweb/stats/report/DbTestCase.java | 6092 | /*
* 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.
*
* This program is distributed in the hope that it will be use... | gpl-2.0 |
biblelamp/JavaExercises | JavaRushTasks/2.JavaCore/src/com/javarush/task/task17/task1711/Person.java | 967 | package com.javarush.task.task17.task1711;
import java.util.Date;
public class Person {
private String name;
private Sex sex;
private Date birthDay;
private Person(String name, Sex sex, Date birthDay) {
this.name = name;
this.sex = sex;
this.birthDay = birthDay;
}
pub... | gpl-2.0 |
DavidRawling/ProtocolHelper | ProtocolHandler/DefinedProtocols.cs | 1064 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Configuration;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ProtocolHandler
{
public partial class DefinedP... | gpl-2.0 |
cuongnd/etravelservice | administrator/components/com_tsmart/helpers/tsmhoteladdon.php | 18230 | <?php
/**
* Class for getting with language keys translated text. The original code was written by joomla Platform 11.1
*
* @package tsmart
* @subpackage Helpers
* @author Max Milbers
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (c) 2014 tsmart T... | gpl-2.0 |
DIPnet/popgenDB | sims_for_structure_paper/2PopDNAnorec_0.5_1000/2PopDNAnorec_1_278.res/2PopDNAnorec_1_278.js | 922 |
USETEXTLINKS = 1
STARTALLOPEN = 0
WRAPTEXT = 1
PRESERVESTATE = 0
HIGHLIGHT = 1
ICONPATH = 'file:////Users/eric/github/popgenDB/sims_for_structure_paper/2PopDNAnorec_0.5_1000/' //change if the gif's folder is a subfolder, for example: 'images/'
foldersTree = gFld("<i>ARLEQUIN RESULTS (2PopDNAnorec_1_278.arp)</i>", ... | gpl-2.0 |
msimacek/koschei | alembic/versions/75d9e5d27ba5_create_partial_index_ix_builds_.py | 471 | """
Create partial index ix_builds_unprocessed
Create Date: 2017-04-05 11:50:52.185886
"""
# revision identifiers, used by Alembic.
revision = '75d9e5d27ba5'
down_revision = '2cc3e44a68de'
from alembic import op
def upgrade():
op.execute("""
CREATE INDEX ix_builds_unprocessed ON build (task_id)
... | gpl-2.0 |
oceanscan/ros-imc-broker | workspace/src/ros_imc_broker/include/IMC/Spec/MagneticField.hpp | 4667 | //***************************************************************************
// Copyright 2017 OceanScan - Marine Systems & Technology, Lda. *
//***************************************************************************
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you m... | gpl-2.0 |
leocockroach/JasperServer5.6 | jasperserver-search/src/test/java/com/jaspersoft/jasperserver/search/service/impl/RepositorySearchServiceImplTest.java | 14958 | /*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the ... | gpl-2.0 |
GigaOM/go-code-scanner | components/external/CodeSniffer/Reports/Emacs.php | 2323 | <?php
/**
* Emacs report for PHP_CodeSniffer.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Gabriele Santini <gsantini@sqli.com>
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2009 SQLI <www.sqli.com>
* @copyright 2006-2012 Squiz Pty Ltd (ABN 77 084 670 600)
* ... | gpl-2.0 |
piaolinzhi/fight | dubbo/pay/pay-common-web/src/main/java/wusc/edu/pay/common/web/constant/PermissionConstant.java | 2504 | package wusc.edu.pay.common.web.constant;
import java.io.InputStream;
import java.util.Properties;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
*
* @描述: 会话键常量类.
* @作者: WuShuicheng.
* @创建: 2014-8-19,上午9:26:46
*... | gpl-2.0 |
austinglaser/timeline | src/HelloWorld.java | 259 | /*
* HelloWorld.java
* Copyright (C) 2015 Austin Glaser <austin@boulderes.com>
*
* Distributed under terms of the MIT license.
*/
public class HelloWorld
{
public static void main(String[] args) {
System.out.println("Hello World");
}
}
| gpl-2.0 |
a2flo/a2elight | src/gui/font.hpp | 5950 | /*
* Albion 2 Engine "light"
* Copyright (C) 2004 - 2014 Florian Ziesche
*
* 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; version 2 of the License only.
*
* This program is di... | gpl-2.0 |
pdonaire1/gisaga | tmp/install_544db754ed102/installer/adapters/plugin.php | 4670 | <?php
/**
* @package Installer Bundle Framework - RocketTheme
* @version 2.0.7 November 5, 2013
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2013 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*
* Installer uses the Joomla Framew... | gpl-2.0 |
xen2/mcs | tests/test-primary-ctor-01.cs | 298 | class Simple(int arg)
{
int Property { get; } = arg;
public static int Main ()
{
var c = new Simple (4);
if (c.Property != 4)
return 1;
var s = new S (4.3m);
if (s.Property != 4.3m)
return 1;
return 0;
}
}
struct S(decimal arg)
{
internal decimal Property { get; } = arg;
} | gpl-2.0 |
gwq5210/acm | zoj/3209.cpp | 3540 | #include <cstdio>
#include <cstring>
#include <cstdlib>
using namespace std;
#define MAXN 1010 //ÐÐÊý
#define MAXM 1010 //ÁÐÊý
#define MAXNODE 500010 //×î´óµÄ½áµãÊý
int K; //ÖØ¸´¸²¸ÇÑ¡ÔñµÄ×î´óÐÐÊý
struct DLX {
int n, m, size;
int U[MAXNODE], D[MAXNODE], R[MAXNODE], L[MAXNODE], Row[MAXNODE], Col[MAXNOD... | gpl-2.0 |
raphaelfeng/benerator | src/org/databene/model/data/ComponentAccessor.java | 1945 | /*
* (c) Copyright 2007-2013 by Volker Bergmann. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted under the terms of the
* GNU General Public License.
*
* For redistributing this software or a derivative work under a license other
*... | gpl-2.0 |
dalinhuang/kakayaga | img/includes/functions/html_output.php | 13991 | <?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
/... | gpl-2.0 |
vogel/kadu | plugins/spellchecker/translations/spellchecker_el.ts | 2390 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="el" version="2.1">
<context>
<name>@default</name>
<message>
<source>Chat</source>
<translation type="unfinished"/>
</message>
<message>
<source>Misspelled Words Marking Options</source>
<translation type="unfinished"/>
... | gpl-2.0 |
ericdum/niuble.com | other_sites/showcases/yuyan/control/admin_cooperate.php | 825 | <?php
!defined('IN_HDWIKI') && exit('Access Denied');
class control extends base{
function control(& $get,& $post){
$this->base( & $get,& $post);
$this->load('setting');
$this->view->setlang($this->setting['lang_name'],'back');
}
/*set cooperate*/
function dodefault(){
if(!isset($this->post['... | gpl-2.0 |
iGormilhit/plxminiGor | commentaires.php | 2918 | <?php if(!defined('PLX_ROOT')) exit; ?>
<?php if($plxShow->plxMotor->plxRecord_coms): ?>
<div id="comments">
<h2>
<?php echo $plxShow->artNbCom() ?>
</h2>
<?php while($plxShow->plxMotor->plxRecord_coms->loop()): # On boucle sur les commentaires ?>
<div id="<?php $plxShow->comId(); ?>" clas... | gpl-2.0 |
misur/FitEat | src/com/google/zxing/client/android/camera/CameraConfigurationManager.java | 12176 | /*
* Copyright (C) 2010 ZXing 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 applicable law or agr... | gpl-2.0 |