repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
espertechinc/nesper | src/NEsper.Runtime/client/scopetest/SupportSubscriberMRD.cs | 3579 | ///////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2006-2019 Esper Team. All rights reserved. /
// http://esper.codehaus.org /
// --------------------------------------------------... | gpl-2.0 |
robksawyer/preciousplasticwiki | extensions/EmbedVideo/EmbedVideo.hooks.php | 10215 | <?php
/**
* EmbedVideo
* EmbedVideo Hooks
*
* @license MIT
* @package EmbedVideo
* @link https://www.mediawiki.org/wiki/Extension:EmbedVideo
*
**/
class EmbedVideoHooks {
/**
* Temporary storage for the current service object.
*
* @var object
*/
static private $service;
/**
* Description Para... | gpl-2.0 |
idiginfo/scholar2text | python/scholarfolder2txt.py | 1417 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Scholar2Text - Python App for converting Scholarly PDFs to Text
#
# Directory Iterator for PDFs
#
# Author: Casey McLaughlin
# License: GPLv2 (see LICENSE.md)
#
import scholar2txt, sys, os
def runAnalysisFromCli():
#Input folder
inFolder = os.path.abspath(sys.a... | gpl-2.0 |
alx/SimplePress | wp-content/plugins/wp-e-commerce/wpsc-admin/display-variations.page.php | 6920 | <?php
/**
* WP eCommerce edit and add variation group page functions
*
* These are the main WPSC Admin functions
*
* @package wp-e-commerce
* @since 3.7
*/
function wpsc_display_variations_page() {
$columns = array(
'title' => TXT_WPSC_NAME,
'edit' => TXT_WPSC_EDIT,
);
register_column_headers('display-va... | gpl-2.0 |
oat-sa/tao-core | test/unit/models/classes/Lists/DataAccess/Repository/DependentPropertiesRepositoryTest.php | 3709 | <?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 |
unioslo/cerebrum | Cerebrum/modules/disk_quota/__init__.py | 8313 | # -*- coding: utf-8 -*-
# Copyright 2003-2019 University of Oslo, Norway
#
# This file is part of Cerebrum.
#
# Cerebrum 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
# (a... | gpl-2.0 |
michellab/Sire | corelib/src/libs/SireUnits/convert.cpp | 6993 | /********************************************\
*
* Sire - Molecular Simulation Framework
*
* Copyright (C) 2007 Christopher Woods
*
* 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 Foun... | gpl-2.0 |
seankooler/wordpress | wp-content/plugins/wpjb-mod/CashMod.php | 1493 | <?php
/**
* Payment class
*
* This is the only class you will need to add new payment method to the
* job board.
*
* It's important for the class to implement Wpjb_Payment_Interface,
* otherwise it won't be registered.
*
* If you are creating more advanced integration than payment by cash
* please look in... | gpl-2.0 |
england9911/matteng.land | core/modules/dblog/src/Tests/DbLogTest.php | 23317 | <?php
/**
* @file
* Contains \Drupal\dblog\Tests\DbLogTest.
*/
namespace Drupal\dblog\Tests;
use Drupal\Component\Utility\Xss;
use Drupal\dblog\Controller\DbLogController;
use Drupal\simpletest\WebTestBase;
/**
* Generate events and verify dblog entries; verify user access to log reports
* based on persmission... | gpl-2.0 |
ugeneunipro/ugene | src/plugins/workflow_designer/src/util/WriteSequenceValidator.cpp | 3827 | /**
* 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
* ... | gpl-2.0 |
everythingtype/heckscher | parts/mediarelations.php | 306 | <h2>News</h2>
<?php get_template_part('parts/news-dropdown'); ?>
<div class="thegrid postgrid">
<?php
$newsargs = array(
'post_type' => array('post'),
'numberposts' => 9,
'order' => 'DESC',
);
query_posts($newsargs);
get_template_part('parts/archivegrid');
wp_reset_query();
?>
</div>
| gpl-2.0 |
stefanvr/WebTracks | spec/acceptance/steps/authentication_steps.rb | 169 | step 'I am a unregistered user' do
end
step 'I open webtracks' do
visit '/'
end
step 'I see a welcome message' do
expect(page).to have_content('hello world')
end
| gpl-2.0 |
sanderpotjer/joomla-cms | libraries/src/Version.php | 7982 | <?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS;
defined('JPATH_PLATFORM') or die;
use Joomla\CMS\Helper\LibraryHelper;
/**... | gpl-2.0 |
CzBiX/Telegram | TMessagesProj/src/main/java/com/google/android/exoplayer2/text/SubtitleOutputBuffer.java | 2434 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | gpl-2.0 |
Elanis/SciFi-Pack-Addon-Gamemode | lua/entities/sw_oldjedistarfighter/shared.lua | 356 | ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "Old Jedi StarFigther"
ENT.Author = "Elanis"
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions= ""
ENT.Spawnable = true
ENT.AdminSpawnable = true
list.Set("SW.Ent", ENT.PrintName, ENT);
if(gmod.GetGamemode().Name=="SciFiPack") then
ENT.Category = "SpaceShips"... | gpl-2.0 |
filipac/Free-Torrent-Source | shoutbox.php | 11606 | <?php
/**
* @description Fts ShoutBox backend. Here the messages are posted, edited and
* all stuff regaring shoutbox are made here.
* @author Filip Pacurar
* @version 2.2.1
* @lastmodified 05.05.2008
**/
## Require backend
require_once("include/bittorrent.php");
#Check if user is logged
loggedinorreturn... | gpl-2.0 |
wilddom/admidio | adm_program/modules/lists/photo_show.php | 1127 | <?php
/**
***********************************************************************************************
* Show user photo
*
* @copyright 2004-2016 The Admidio Team
* @see https://www.admidio.org/
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only
*
* Parameters:
*
* us... | gpl-2.0 |
webmasterpf/Celony-cyrano | node/node-page_pole.tpl.php | 1630 | <!-- ______________________ NODE-PAGE_POLE.TPL _______________________ -->
<div class="node <?php print $classes; ?>" id="node-<?php print $node->nid; ?>">
<div class="node-inner">
<?php if (!$page): ?>
<h2 class="title"><a href="<?php //print $node_url; ?>"><?php //print $title; ?></a></h2>
<?ph... | gpl-2.0 |
erpragatisingh/androidTraining | Android_6_weekTraning/Agro Calculator/src/ishan/bhatnagar/Display.java | 986 | package ishan.bhatnagar;
import android.app.Activity;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.widget.TextView;
public class Display extends Activity{
TextView tt;
Helpere hlp=new Helpere(this, "agro.db", null,1);
protected void onCrea... | gpl-2.0 |
duynguyenhai/wordpress | wp-content/plugins/wp-external-links/js/src/admin-wp-external-links.js | 6806 | /* WP External Links Plugin - Admin */
/*global jQuery, window*/
jQuery(function ($) {
'use strict';
/* Tipsy Plugin */
(function () {
$.fn.tipsy = function (options) {
options = $.extend({}, $.fn.tipsy.defaults, options);
return this.each(function () {
var ... | gpl-2.0 |
pauloangelo/hogzilla | src/HogzillaStream.scala | 2426 | /*
* Copyright (C) 2015-2016 Paulo Angelo Alves Resende <pa@pauloangelo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 as
* published by the Free Software Foundation. You may not use, modify or
* distribute this program und... | gpl-2.0 |
arrivu/elearning-wordpress | wp-content/plugins/woocommerce-product-sort-and-display-------/classes/class-wc-psad-admin-hook.php | 16362 | <?php
/**
* WC_PSAD_Settings_Hook Class
*
* Class Function into WooCommerce plugin
*
* Table Of Contents
* __construct()
* psad_add_category_fields()
* psad_edit_category_fields()
* psad_category_fields_save()
*
*/
class WC_PSAD_Settings_Hook
{
public function __construct() {
add_action( 'product_ca... | gpl-2.0 |
lstyls/ml_coursework_python | learning/scoring.py | 312 | import numpy as np
def inf_entropy(cond_probs):
entropy = 0
for p in cond_probs:
if p != 0:
entropy -= p*np.log2(p)
return entropy
def gini(cond_probs):
return 1-np.sum(pow(np.array(cond_probs),2))
def rand(cond_probs):
return np.random.rand() | gpl-2.0 |
AllAboutDatBass/SmartCommandLine | SCL/MainWindow.cs | 12429 | /*
SmartCommandLine - A DOS commandline wrapper
Copyright (C) 2010 Daniel Randall
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... | gpl-2.0 |
csd/csd | lib/csd/application/minisip/error.rb | 524 | # -*- encoding: UTF-8 -*-
require 'csd/error'
module CSD
module Error
module Minisip
# See 'csd/error' to find out which status code range has been assigned to MiniSIP
class BuildDirNotFound < CSDError; status_code(200); end
class Amd64NotSupported < CSDError; status_code(201); en... | gpl-2.0 |
goranefbl/swifty-bar | admin/class-sb-bar-admin.php | 20611 | <?php
/**
* Admin Part of Plugin, dashboard and options.
*
* @package sb_bar
* @subpackage sb_bar/admin
*/
class sb_bar_Admin {
/**
* The ID of this plugin.
*
* @since 1.0.0
* @access private
* @var string $sb_bar The ID of this plugin.
*/
private $sb_bar;
/**
* The version ... | gpl-2.0 |
adum/bitbath | Engine/src/org/hacker/engine/war/CountdownViewer.java | 1022 | package org.hacker.engine.war;
import java.awt.Font;
import java.awt.Graphics2D;
import org.hacker.engine.GameModel;
/**
* displays a 3..2..1 countdown.
* this lets people adjust speed before replay starts.
*/
public class CountdownViewer extends WarViewer {
private long startTime = System.current... | gpl-2.0 |
memoupao/Fondo-Simon | clases/BLBene.class.php | 22233 | <?php
require_once ("BLBase.class.php");
class BLBene extends BLBase
{
var $fecha;
var $Session;
function __construct()
{
$this->fecha = date("Y-m-d H:i:s", time());
$this->Session = $_SESSION['ObjSession'];
$this->SetConexionID($this->Session->GetConection()->Conexion_ID... | gpl-2.0 |
stuart-knock/tvb-framework | tvb/core/entities/file/files_helper.py | 19852 | # -*- coding: utf-8 -*-
#
#
# TheVirtualBrain-Framework Package. This package holds all Data Management, and
# Web-UI helpful to run brain-simulations. To use it, you also need do download
# TheVirtualBrain-Scientific Package (for simulators). See content of the
# documentation-folder for more details. See also http:/... | gpl-2.0 |
flagbug/FlvExtract | FlvExtract/FlvFile.cs | 12901 | // FLV Extract
// Copyright (C) 2006-2012 J.D. Purcell (moitah@yahoo.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 late... | gpl-2.0 |
sgonzalez/wsn-parking-project | sensor-pi/testimages.py | 764 | #!/usr/bin/env python
from time import sleep
import os
import RPi.GPIO as GPIO
import subprocess
import datetime
GPIO.setmode(GPIO.BCM)
GPIO.setup(24, GPIO.IN)
count = 0
up = False
down = False
command = ""
filename = ""
index = 0
camera_pause = "500"
def takepic(imageName):
print("picture")
command = "sudo ras... | gpl-2.0 |
vineethkrishnan/Laravel-Eloquent-Relationship-Example | app/routes.php | 450 | <?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... | gpl-2.0 |
cristal/Patch | src/server/scripts/Commands/cs_jail.cpp | 3115 | // Copyright (C) 2008-2011 by WarHead - United Worlds of MaNGOS - http://www.uwom.de
#include "Jail.h"
#include "ScriptMgr.h"
#include "Chat.h"
class jail_commandscript : public CommandScript
{
public:
jail_commandscript() : CommandScript("jail_commandscript") { }
ChatCommand * GetCommands() const
{
... | gpl-2.0 |
saracope/us-web-standards-wordpress-theme | components/comment-navigation-below/comment-navigation-below.php | 688 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'us-web-standards' ); ?></h2>
<div ... | gpl-2.0 |
flegastelois/kimios-dolibarr | kimios/class/api/bootstrap.php | 227 | <?php
function __autoload($className) {
$classFile = DOL_DOCUMENT_ROOT."/kimios/class/api/" . $className . '.php';
if (file_exists($classFile)) {
require_once($classFile);
return true;
}
return false;
} | gpl-2.0 |
oh3ebf/MeasurementToolKit | sw/Instrument/src/instruments/hp3488/HP3488Card.java | 10824 | /***********************************************************
* Software: instrument client
* Module: HP3488 option card class
* Version: 0.1
* Licence: GPL2
*
* Owner: Kim Kristo
* Date creation : 29.10.2012
*
***********************************************************/
package instruments.hp3488;
import ... | gpl-2.0 |
dragonfly-science/numpy-wavy | test/test_wavy.py | 3533 | import os
import unittest
import numpy as np
from cStringIO import StringIO
from wavy import get_audio, slice_wave
class TestThreeSeconds(unittest.TestCase):
def setUp(self):
self.audio, self.framerate = get_audio('test/three-second.wav')
def test_framerate(self):
self.assertEqual(self.framer... | gpl-2.0 |
Droces/casabio | vendor/phpexiftool/phpexiftool/lib/PHPExiftool/Driver/Tag/DICOM/DataPointRows.php | 708 | <?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\DICOM;
use PHPExiftool\Driver\AbstractTag;
class DataP... | gpl-2.0 |
adrianjonmiller/Anacap-Tech | xmlrpc.php | 2723 | <?php
/**
* XML-RPC protocol support for WordPress
*
* @package WordPress
*/
/**
* Whether this is an XML-RPC Request
*
* @var bool
*/
define('XMLRPC_REQUEST', true);
// Some browser-embedded clients send cookies. We don't want them.
$_COOKIE = array();
// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not s... | gpl-2.0 |
BlacksheepNZ/BattleOn | BattleOn/Assets/Engine/Engine/Event/StepFinishedEvent.cs | 204 | namespace BattleOn.Engine
{
public class StepFinishedEvent
{
public readonly Step Step;
public StepFinishedEvent(Step step)
{
Step = step;
}
}
} | gpl-2.0 |
juanmtorrijos/pmts-training | js/script.js | 5791 | //options
var rttheme_slider_time_out = jQuery("meta[name=rttheme_slider_time_out]").attr('content');
var rttheme_slider_numbers = jQuery("meta[name=rttheme_slider_numbers]").attr('content');
var rttheme_template_dir = jQuery("meta[name=rttheme_template_dir]").attr('content');
//home page slider
jQuery(document).... | gpl-2.0 |
makiozmurai/dig-wp | wp-content/themes/chill_tcd016/comments.php | 8183 |
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (function_exists('post_password_required')) {
if ( post_password_required() ) {
echo '<div id="comments"><div clas... | gpl-2.0 |
Automattic/wp-calypso | packages/launch/src/focused-launch/summary/index.tsx | 22985 | /* eslint-disable wpcalypso/jsx-classname-namespace */
import DomainPicker, {
mockDomainSuggestion,
SUGGESTION_ITEM_TYPE_INDIVIDUAL,
} from '@automattic/domain-picker';
import { useLocalizeUrl, useLocale } from '@automattic/i18n-utils';
import { ActionButtons, NextButton, SubTitle, Title } from '@automattic/onboardi... | gpl-2.0 |
ShoppinPal/warehouse | admin/src/app/home/worker-settings/services/worker-settings-resolver.service.ts | 853 | import {Injectable} from '@angular/core';
import {Observable} from 'rxjs';
import {UserProfileService} from '../../../shared/services/user-profile.service';
import {StoreConfigModelApi} from '../../../shared/lb-sdk';
@Injectable()
export class WorkerSettingsResolverService {
private userProfile: any = this._userPro... | gpl-2.0 |
zhiyu-he/algorithm-trip | growth/oj/leet_code/algorithms/1286-iterator-for-combination.cpp | 1143 | #include<iostream>
#include<string>
#include<vector>
using namespace std;
class CombinationIterator {
public:
vector<string> all;
int next_element;
CombinationIterator(string characters, int combinationLength) {
next_element = 0;
build(characters, combinationLength, "", 0);
}
... | gpl-2.0 |
atmark-techno/atmark-dist | user/ruby-tzinfo-data/lib/tzinfo/data/definitions/CET.rb | 10691 | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (http://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module CET
include TimezoneDefinition
timezone 'CET' do |tz|
tz.offset :o0, 3600, 0, :CET
tz.of... | gpl-2.0 |
stonexx/ideavim | src/com/maddyhome/idea/vim/action/motion/text/MotionParagraphPreviousAction.java | 1894 | /*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2016 The IdeaVim authors
*
* 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 ... | gpl-2.0 |
oat-sa/qti-sdk | test/qtismtest/data/storage/xml/versions/QtiVersionTest.php | 2987 | <?php
namespace qtismtest\data\storage\xml\versions;
use qtism\data\storage\xml\versions\QtiVersion;
use qtism\data\storage\xml\versions\QtiVersion200;
use qtism\data\storage\xml\versions\QtiVersion210;
use qtism\data\storage\xml\versions\QtiVersion211;
use qtism\data\storage\xml\versions\QtiVersion220;
use qtism\dat... | gpl-2.0 |
yakuzmenko/bereg | components/com_youtubegallery/includes/flv4php/Util/BitStreamReader.php | 3044 | <?php
/*
Copyright 2006 Iván Montes, Morten Hundevad
This file is part of FLV tools for PHP (FLV4PHP from now on).
FLV4PHP is free software; you can redistribute it and/or modify it under the
terms of the GNU General var License as published by the Free Software
Foundation; either version 2 of the Lice... | gpl-2.0 |
Ikon-Srl/IkonAuthor | Librerie/IKGD_ResourceType_Standard/ResourceTypes/Intranet/IKGD_StandardWidgetsSingleton.cs | 18705 | /*
*
* Intranet Ikon
*
* Copyright (C) 2008 Ikon Srl
* Tutti i Diritti Riservati. All Rights Reserved
*
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Configuration;
using System.Web;
using System.Globalizat... | gpl-2.0 |
firetw/Ripper | Ripper/QqPiao/Utils/Utils.cs | 1611 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using WebLoginer.Core;
namespace QqPiao
{
public class Utils
{
static Encoding encoding = Encoding.UTF8;
public static WebOperResult Get(string url, CookieCon... | gpl-2.0 |
DotNetAge/dotnetage | src/DNA.Mvc.Web/Scripts/doctor.js | 2885 | /*
** Project : TaoUI
** Copyright (c) 2009-2013 DotNetAge (http://www.dotnetage.com)
** Licensed under the GPLv2: http://dotnetage.codeplex.com/license
** Project owner : Ray Liang (csharp2002@hotmail.com)
*/
$.seo = new function () {
this.analyse = function (url) {
var dfd = new $.Deferred(), _... | gpl-2.0 |
pkaranja/zuku | components/com_channels/controllers/channels.php | 697 | <?php
/**
* @version 1.0.0
* @package com_channels
* @copyright Copyright (C) 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Peter <pittskay@gmail.com> - http://aimgroup.co.tz/
*/
// No direct access.
defined('_JEXEC') or die;
re... | gpl-2.0 |
belgianpolice/intranet-platform | libraries/koowa/loader/adapter/exception.php | 572 | <?php
/**
* @version $Id: exception.php 2876 2011-03-07 22:19:20Z johanjanssens $
* @category Koowa
* @package Koowa_Loader
* @subpackage Adapter
* @copyright Copyright (C) 2007 - 2012 Johan Janssens. All rights reserved.
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link h... | gpl-2.0 |
mentaman/visualmutator | Backup1/Infra/InApplicationSettingsManager.cs | 854 | namespace CommonUtilityInfrastructure
{
#region
using System;
using PiotrTrzpil.VisualMutator_VSPackage.Properties;
using UsefulTools.Core;
#endregion
public class InApplicationSettingsManager : ISettingsManager
{
private readonly Settings _settings;
public InApplication... | gpl-2.0 |
edineicolli/daruma-exemplo-python | scripts/generico/ui_generico_rreceberdados.py | 2793 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_generico_rreceberdados.ui'
#
# Created: Mon Nov 24 22:26:38 2014
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from ctypes import create_string_buffer
from PySide import QtC... | gpl-2.0 |
baiwei0427/PIAS | backup/pias/dynamic workload/trace.py | 888 | import os
import sys
import string
#This function is to print usage of this script
def usage():
sys.stderr.write('This script is used to analyze dynamic flow trace:\n')
sys.stderr.write('dynamic_flow.py [trace file] [percentage] \n')
#main function
if len(sys.argv)!=3:
usage()
else:
trace_filename=sys.argv[1]
pe... | gpl-2.0 |
BerserkerDotNet/UniversalWorldClock | UniversalWorldClock.Shared/Common/TimeShiftStateChangedArgs.cs | 287 | using System;
namespace UniversalWorldClock.Common
{
public class TimeShiftStateChangedArgs : EventArgs
{
public TimeShiftStateChangedArgs(bool isStarted)
{
IsStarted = isStarted;
}
public bool IsStarted { get; private set; }
}
} | gpl-2.0 |
shyaken/cp.eaemcb | controllers/pgsql/basic.py | 4601 | # Author: Zhang Huangbin <zhb@iredmail.org>
import os
import time
from socket import getfqdn
from urllib import urlencode
import web
import settings
from libs import __url_latest_ose__, __version_ose__
from libs import iredutils, languages
from libs.pgsql import core, decorators
session = web.config.get('_session')
... | gpl-2.0 |
jakowisp/FirmwareEssentials_e4357 | hw3/main.cpp | 480 | #include "mbed.h"
BusOut leds(LED1,LED2);
DigitalIn sw1(p20);
DigitalIn sw2(p19);
Serial async_port(p9,p10);
unsigned char outByte;
unsigned char inByte;
int main(){
async_port.baud(9600);
while(true){
outByte =0xa0;
outByte |= sw1;
outByte |= sw2<<1;
if(async_port.readable... | gpl-2.0 |
Hshore/TrinityCore | src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_halion.cpp | 75657 | /*
* Copyright (C) 2008-2017 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... | gpl-2.0 |
THEMETEORY/wp-pointers-tour | PointersManager.php | 2233 | <?php
class PointersManager implements PointersManagerInterface {
private $pfile;
private $version;
private $prefix;
private $pointers = array();
public function __construct( $file, $version, $prefix ) {
$this->pfile = file_exists( $file ) ? $file : FALSE;
$this->version = str_rep... | gpl-2.0 |
Br3nda/indefero | src/IDF/Form/Admin/ProjectCreate.php | 15653 | <?php
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
# ***** BEGIN LICENSE BLOCK *****
# This file is part of InDefero, an open source project management application.
# Copyright (C) 2008 Céondo Ltd and contributors.
#
# InDefero is free software; you can redistribute it and/or modify
# it unde... | gpl-2.0 |
centreon/centreon | www/front_src/src/route-maps/index.js | 70 | import reactRoutes from './reactRoutes';
export default reactRoutes;
| gpl-2.0 |
Nexus-Mods/Nexus-Mod-Manager | NexusClient/ModAuthoring/UI/Controls/ModFilesTreeView.Designer.cs | 7151 | namespace Nexus.Client.ModAuthoring.UI.Controls
{
partial class ModFilesTreeView
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param nam... | gpl-2.0 |
TheTypoMaster/calligra | plugins/karbonplugins/filtereffects/ComponentTransferEffectFactory.cpp | 1468 | /* This file is part of the KDE project
* Copyright (c) 2009 Jan Hambrecht <jaham@gmx.net>
*
* 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 ... | gpl-2.0 |
rjbaniel/upoor | wp-content/themes/Foxy/woocommerce/single-product/related.php | 1116 | <?php
/**
* Related Products
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $product, $woocommerce_loop;
$related = $product->get_related();
if ( sizeof( $related ) == 0 ) return;
$args... | gpl-2.0 |
thomas-moulard/visp-deb | example/math/exponentialMap.cpp | 3675 | /****************************************************************************
*
* $Id: exponentialMap.cpp 4056 2013-01-05 13:04:42Z fspindle $
*
* This file is part of the ViSP software.
* Copyright (C) 2005 - 2013 by INRIA. All rights reserved.
*
* This software is free software; you can redistribute it and/or... | gpl-2.0 |
soynerdito/GeoCarDroid | gen/com/geocar/geocarconnect/R.java | 5970 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.geocar.geocarconnect;
public final class R {
public static final class array {
public static final int... | gpl-2.0 |
SomeoddpilotInc/lohand | test/trimRight.js | 338 | import {trimRight} from './../lib/helpers';
import {expect} from 'chai';
describe('trimRight', function () {
it('should trimRight text', function () {
expect(trimRight(' abc ')).to.equal(' abc');
expect(trimRight('-_-abc-_-', '_-')).to.equal('-_-abc');
expect(trimRight('-_-abc-_-')).to.equal('-_-ab... | gpl-2.0 |
kepstin/picard | picard/util/mimetype.py | 2002 | # -*- coding: utf-8 -*-
#
# Picard, the next-generation MusicBrainz tagger
# Copyright (C) 2009 Philipp Wolfer
#
# 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... | gpl-2.0 |
sanyogs/camptix-indian-payments | campt-indian-payment-gateway.php | 5256 | <?php
/**
* Plugin Name: CampTix Indian Payments
* Plugin URI: https://github.com/wpindiaorg/camptix-indian-payments
* Description: Simple and Flexible payment ticketing for Camptix using Indian Payment Platforms
* Author: India WordPress Community
* Author URI: https://github.com/wpindiaorg/
* Version: 1.5
* Li... | gpl-2.0 |
lloydsaldanha/WebMowgli | mowgli/application/modules/admin/views/includes/sidebar.php | 2752 | <!-- <div id="sidebar-label">
<div class="left_arrow" title="Hide Sidebar">◀</div>
<div class="right_arrow" title="Show Sidebar">▶</div>
</div> -->
<div id="sidebar" class="sidebar-nav">
<!-- <div id="pin-holder" class="pin-holder unpinned"></div>
<a href="{sidebar:logo_ur... | gpl-2.0 |
Tlahui/TlahuiAPI | application/models/UserModel.php | 1475 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class UserModel extends CI_Model {
/**
* Modelo definido para interactuar con la tabla "User"
*
*/
public function __construct()
{
// Call the Model constructor
parent::__construct();
//Connect t... | gpl-2.0 |
hitlic/SimPage | SimPage.js | 7170 | /**
* @Author: liuchen
*
* ----------------------------------------- 使用说明 (1)-(6) -------------------------------------------
*
* (1)后端使用mybatis的pagehelper插件;
* (2)后端使用 pagehelper 的 PageHelper.startPage(pageNum, pageSize) 方法;
* (3)服务器返回 paehelper的PageInfo的JSON对象;
* (4)CSS样式设置同 bootstrap 分页组件的样... | gpl-2.0 |
ssj-gz/emscripten-kdelibs | kio/tests/jobtest.cpp | 50520 | /* This file is part of the KDE project
Copyright (C) 2004-2006 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or ... | gpl-2.0 |
cuongnd/test_pro | media/elements/ui/rangeofintegers.php | 6204 | <?php
class elementRangeOfIntegersHelper extends elementHelper
{
function initElement($TablePosition)
{
$path=$TablePosition->ui_path;
$pathInfo = pathinfo($path);
$filename=$pathInfo['filename'];
$dirName=$pathInfo['dirname'];
$doc=JFactory::getDocument();
$less... | gpl-2.0 |
QuantiModo/QuantiModo-SDK-Qt5cpp | client/SWGInline_response_200_19.cpp | 2169 |
#include "SWGInline_response_200_19.h"
#include "SWGHelpers.h"
#include <QJsonDocument>
#include <QJsonArray>
#include <QObject>
#include <QDebug>
namespace Swagger {
SWGInline_response_200_19::SWGInline_response_200_19(QString* json) {
init();
this->fromJson(*json);
}
SWGInline_response_200_19::SWGInlin... | gpl-2.0 |
Oliv95/DIT212-Project | Client/app/src/main/java/se/ice/client/utility/Constants.java | 342 | package se.ice.client.utility;
/**
* Created by Simon on 2016-05-17.
* This class is intended to hold constants that are used in the whole app.
*/
public class Constants {
public static final String SETTINGS_FILE = "settings";
public static final String EMAIL_FIELD = "email";
public static final String ... | gpl-2.0 |
mtwstudios/comtor | unitTesting/simpletest/test/reflection_php4_test.php | 2003 | <?php
// $Id: reflection_php4_test.php,v 1.1 2009-04-28 17:58:30 ssigwart Exp $
require_once(dirname(__FILE__) . '/../autorun.php');
class AnyOldThing {
function aMethod() {
}
}
class AnyOldChildThing extends AnyOldThing { }
class TestOfReflection extends UnitTestCase {
function testClassExistence() {
... | gpl-2.0 |
ssxenon01/mm | resources/plugins/sabai/lib/Sabai/Platform/WordPress/comments_template.php | 104 | <?php
// This is a dummy file for WordPress to include when displaying comments on Sabai WordPress pages | gpl-2.0 |
davidguillemet/fashionphotosub | administrator/components/com_sh404sef/views/urls/view.html.php | 7550 | <?php
/**
* sh404SEF - SEO extension for Joomla!
*
* @author Yannick Gaultier
* @copyright (c) Yannick Gaultier 2014
* @package sh404SEF
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @version 4.4.6.2271
* @date 2014-11-03
*/
// Security check to ensure this file is ... | gpl-2.0 |
db89/php-redis | example/rpop.php | 519 | <?php
/*
* 函数: rpop
* 描述: 返回和移除列表的最后一个元素
* 参数: key
* 返回值: 成功返回最后一个元素的值 ,失败返回false.
*
* author: DuBin
* mail: db89@163.com
* blog: http://blog.db89.org
*
*/
$redis = new redis();
$redis -> connect('127.0.0.1', 6379);
$redis -> delete('name');
$redis->lpush('name', "DuBin");
$redis->lpush('name', "LWP... | gpl-2.0 |
iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest18523.java | 2899 | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | gpl-2.0 |
gnuitar/gnuitar | src/preferences.cpp | 1341 | #include <gnu-guitar-qt/preferences.hpp>
#include <gnu-guitar-qt/api-preferences.hpp>
#include <gnu-guitar-qt/driver-preferences.hpp>
#include <gnu-guitar/gui/api-settings.hpp>
#include <QTabWidget>
#include <QVBoxLayout>
namespace GnuGuitar {
namespace Qt {
Preferences::Preferences(QWidget *parent) : QDialog(par... | gpl-2.0 |
jchevrie/visp | modules/core/src/math/matrix/vpMatrix_qr.cpp | 25241 | /****************************************************************************
*
* This file is part of the ViSP software.
* Copyright (C) 2005 - 2017 by Inria. All rights reserved.
*
* This software is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | gpl-2.0 |
Software-Design-2017/EmbelezaMais | EmbelezaMais/user/views.py | 12686 | # standard library
import logging
import hashlib
import datetime
import random
import abc
# Django
from django.shortcuts import (
render, redirect, get_object_or_404
)
from django.core.mail import send_mail
from django.utils import timezone
from django.http import HttpResponse
from django.contrib.auth.decorators ... | gpl-2.0 |
blueantlabs/blueantlabs | wp-content/themes/blueantplate/home.php | 1423 | <?php get_header(); ?>
<div id="home-content" class="home-img">
<ul>
<li><a id="port-tfp" href="<?php bloginfo('url') ?>/portfolio" alt="The Future Project" >
<img src="<?php bloginfo('url') ?>/wp-content/themes/blueantplate/img/port-wide/thefutureproject-605.png" />
</a></li>
<li><a id="port-... | gpl-2.0 |
Myvar/eStd | eStd/System.Parsing/Writers/Code/SequenceWriter.cs | 444 | using System;
using System.Parsing.Parsers;
namespace System.Parsing.Writers.Code
{
public class SequenceWriter : ListWriter<SequenceParser>
{
public override void WriteObject(System.Parsing.TextParserWriterArgs args, SequenceParser parser, string name)
{
base.WriteObject(args, parser, name);
i... | gpl-2.0 |
314parley/SUPER-DUPER-HACKED-TOGETHER-COPYPASTA-SHITFEST-PENIS | dwoo/templates_c/media/dmu/parley/www/711chan.org/public_html/dwoo/templates/img_footer.tpl.d15.php | 12976 | <?php
if (function_exists('smarty_block_t')===false)
$this->getLoader()->loadPlugin('t');
if (function_exists('Dwoo_Plugin_include')===false)
$this->getLoader()->loadPlugin('include');
ob_start(); /* template body */ ;
if (! (isset($this->scope["isread"]) ? $this->scope["isread"] : null)) {
?>
<table class="userdel... | gpl-2.0 |
knr1/ch.bfh.mobicomp | ch.quantasy.iot.gateway.tinkerforge/src/main/java/ch/quantasy/iot/mqtt/tinkerforge/device/deviceHandler/IMUV2/IMUV2.java | 10889 | /*
* 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 ch.quantasy.iot.mqtt.tinkerforge.device.deviceHandler.IMUV2;
import ch.quantasy.iot.mqtt.tinkerforge.device.deviceHandler.IMUV... | gpl-2.0 |
Droces/casabio | vendor/phpexiftool/phpexiftool/lib/PHPExiftool/Driver/Tag/Olympus/ContrastSetting.php | 758 | <?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Olympus;
use PHPExiftool\Driver\AbstractTag;
class Con... | gpl-2.0 |
V-Web/vwebadmin | cache/gantry5/vw_vweb/compiled/yaml/4263d7bb84b666e80e76b26e88b8eae0.yaml.php | 392 | <?php
return [
'@class' => 'Gantry\\Component\\File\\CompiledYamlFile',
'filename' => '/Users/Marcel/Sites/hello/templates/vw_vweb/config/default/particles/totop.yaml',
'modified' => 1488361828,
'data' => [
'enabled' => '1',
'css' => [
'class' => ''
],
'icon' ... | gpl-2.0 |
h0tw1r3/mame | scripts/target/mame/mess.lua | 97118 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- mess.lua
--
-- MESS target makefile
--
---------------------------------------------------------------------------
--------------------------------------------------
-- speci... | gpl-2.0 |
assaad/JavaBlasLapack | src/main/java/org/netlib/lapack/Dlaein.java | 22163 | package org.netlib.lapack;
import org.netlib.blas.Dasum;
import org.netlib.blas.Dnrm2;
import org.netlib.blas.Dscal;
import org.netlib.blas.Idamax;
import org.netlib.util.doubleW;
import org.netlib.util.intW;
public final class Dlaein
{
public static void dlaein(boolean paramBoolean1, boolean paramBoolean2, int par... | gpl-2.0 |
Hyrtwol/NUnit-HTML-Report-Generator | NUnitHtmlReportGenerator.Test/BuildEngineTest.cs | 1973 | using System;
using System.Diagnostics;
using Microsoft.Build.BuildEngine;
using Microsoft.Build.Framework;
using NUnit.Framework;
namespace Jatech.NUnit.Test
{
public abstract class BuildEngineTest
{
#pragma warning disable 0618
protected BuildEngineTest()
{
Verbosity = LoggerVer... | gpl-2.0 |
iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest16115.java | 3753 | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | gpl-2.0 |
TU-Berlin-SNET/jTR-ABE | src/main/java/trabe/lw14/policy/LsssMatrixCell.java | 1688 | package trabe.lw14.policy;
import it.unisa.dia.gas.jpbc.Element;
import trabe.AbeInputStream;
import trabe.AbeOutputStream;
import java.io.IOException;
/**
*
*/
public class LsssMatrixCell {
public int i;
public int j;
public int value;
public String attribute;
public Element ha... | gpl-2.0 |
wavexx/python-bond | bond/__init__.py | 14300 | import json
import os
import pexpect
import pkg_resources
import re
import sys
import tty
from bond import protocols
try:
from shlex import quote
except ImportError:
from pipes import quote
# Host constants
LANG = 'Python' # Identity language
PROTO = ['PICKLE', 'JSON'] # Supported protocols, in or... | gpl-2.0 |
pastewka/lammps | lib/kokkos/core/src/eti/HPX/Kokkos_HPX_ViewCopyETIInst_int_int_LayoutStride_Rank4.cpp | 2620 | //@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Governmen... | gpl-2.0 |