repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
giuliojiang/UniSecrets | server/http.js | 1312 |
// #############################################################################
// HTTP PART
var fs = require('fs');
var http = require('http');
var https = require('https');
var config = require(__dirname + '/config.js');
var express = require('express');
var routes = require(__dirname + '/routes.js');
var app = ex... | gpl-2.0 |
benkuper/ofxBKUI | src/ofxBKZoomImage.cpp | 5413 | #include "ofxBKZoomImage.h"
#include "ofxBKStyle.h"
ofxBKZoomImage::ofxBKZoomImage(float _x, float _y, float _width, float _height)
{
init(_x, _y, _width, _height);
}
void ofxBKZoomImage::init(float _x, float _y, float _width, float _height)
{
isInzoomMode = false;
zoomLevel = 2;
zoomSensitivity = 0.5;
... | gpl-2.0 |
SmarterApp/DigitalLibrary | docroot/sites/all/modules/custom/sbac_content_types/sbac_resource/templates/smart-search-welcome.tpl.php | 499 | <div class="smart-search-welcome-main-wrapper">
<div class="ssw-left">
<span class="ssw-icon"></span>
</div>
<div class="ssw-center">
<p class="legend">We found you resources with these characteristics:</p>
<div class="ssw-search-filters">
<?php print $search_filters; ?>
</div>
<p clas... | gpl-2.0 |
atvcaptain/enigma2 | lib/python/Plugins/SystemPlugins/PositionerSetup/log.py | 949 | # logging for XMLTV importer
#
# One can simply use
# import log
# print>>log, "Some text"
# because the log unit looks enough like a file!
import sys
import threading
from six.moves import cStringIO as StringIO
logfile = None
# Need to make our operations thread-safe.
mutex = None
size = None
def open(buffersize =... | gpl-2.0 |
KristofferV/mongo-cluster-tutum | src/server.js | 1612 | // set up ======================================================================
var express = require('express');
var app = express(); // create our app w/ express
var mongoose = require('mongoose'); // mongoose for mongodb
var port = process.env.PORT || 3000; // set the port
var database = r... | gpl-2.0 |
misterbox/NotePost | wp-content/themes/foundation/dayView.php | 6430 | <?php
/*
Template Name: dayView
Purpose: Views information about that day and user can vote on validity of day
*/
?>
<?php get_header() ?>
<?php
session_start();
$readOnlyCheck = $_GET['readOnlyFail'];
$isReadOnly = $_SESSION['isReadOnly'];
if(!isset($_SESSION['username']))
{
header("Location... | gpl-2.0 |
Fernando-Marquardt/mcarchitect | MCArchitect/src/klaue/mcschematictool/exceptions/ClassicNotSupportedException.java | 224 | package klaue.mcschematictool.exceptions;
/**
* Exception for classic schematics
*
* @author klaue
*/
public class ClassicNotSupportedException extends Exception {
private static final long serialVersionUID = 1L;
}
| gpl-2.0 |
zsjohny/jumpserver | apps/settings/models.py | 2741 | import json
from django.db import models
from django.db.utils import ProgrammingError, OperationalError
from django.utils.translation import ugettext_lazy as _
from django.core.cache import cache
from common.utils import signer
class SettingQuerySet(models.QuerySet):
def __getattr__(self, item):
instanc... | gpl-2.0 |
xima-media/xm_tools | Classes/Domain/Repository/CategoryRepository.php | 2241 | <?php
namespace Xima\XmTools\Domain\Repository;
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
/***************************************************************
*
* Copyright notice
*
* (c) 2017 OpenSource Team, XIMA MEDIA GmbH, osdev@xima.de
* Inspird by http://blog.systemfehler.net/erweiterung-des-typo3-k... | gpl-2.0 |
kurvenschubser/studip-hks | app/views/admin/user/migrate.php | 3123 | <?
# Lifter010: TODO - Quicksearches still lack a label
use Studip\Button, Studip\LinkButton;
?>
<h2><?= _('Benutzermigration') ?></h2>
<form action="<?= $controller->url_for('admin/user/migrate') ?>" method="post">
<?= CSRFProtection::tokenTag() ?>
<table class="default">
<colgroup>
<col... | gpl-2.0 |
psyshush/poker | site/js/main.js | 765 | require.config({
baseUrl:'js',
paths: {
jquery: 'lib/jquery',
underscore: "lib/underscore",
backbone: "lib/backbone",
rivets: 'lib/rivets',
handlebars: 'lib/handlebars',
text: 'lib/text',
socketio: 'lib/socket.io',
odometer: 'lib/odometer'
},
... | gpl-2.0 |
christianchristensen/resin | modules/jaxstream/src/javax/xml/stream/events/EndElement.java | 1216 | /*
* Copyright (c) 1998-2010 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms of the GNU... | gpl-2.0 |
filipesiciliano/al2s | wp-content/themes/al2s/includes/modules/module.blog/templates/mini-carousel/template.php | 346 | <?php
$layout = 'mini';
$template_path = $templates_dir_path . "{$layout}/template.php";
$pagination = false;
if ( file_exists($template_path) )
include( $template_path );
else
return cloudfw_error_message( sprintf(__( 'Blog template %s cannot found.','cloudfw'), $layout) );
$content_out = cloudfw_make_layout( '... | gpl-2.0 |
isandlaTech/cohorte-utilities | org.cohorte.utilities/test/test/psem2m/utilities/CTestBannerUtils.java | 7701 | package test.psem2m.utilities;
import java.awt.Font;
import org.cohorte.utilities.CXBannerUtils;
import org.cohorte.utilities.CXMethodUtils;
import org.cohorte.utilities.asciiart.CXArtSetting;
import org.cohorte.utilities.asciiart.CXAsciiArt;
import org.cohorte.utilities.junit.CAbstractJunitTest;
import org.junit.Aft... | gpl-2.0 |
cassiomcouto/site | lib/customlayouts.php | 1007 | <?php
// This file handles everything to do with choosing a custom layout file when adding/editing
// products, categories, etc from the control panel
/**
* Get a list of all custom layout files (they are prefixed with an underscore) and return them as <option> tags
*
* @param string The default layout file
* @par... | gpl-2.0 |
abramhindle/marsyas-fork | src/marsyas/RealvecSink.cpp | 4135 | /*
** Copyright (C) 1998-2010 George Tzanetakis <gtzan@cs.uvic.ca>
**
** 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 versi... | gpl-2.0 |
HenryYan2012/discourse | app/assets/javascripts/discourse/dialects/category_hashtag_dialect.js | 734 | /**
Supports Discourse's category hashtags (#category-slug) for automatically
generating a link to the category.
**/
Discourse.Dialect.inlineRegexp({
start: '#',
matcher: /^#([A-Za-z0-9][A-Za-z0-9\-]{0,40}[A-Za-z0-9])/,
spaceOrTagBoundary: true,
emitter: function(matches) {
var slug = matches[1],
... | gpl-2.0 |
cgwalters/anaconda | pyanaconda/ui/gui/spokes/software.py | 18741 | # Software selection spoke classes
#
# Copyright (C) 2011-2013 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your option) any later version.
# This program is... | gpl-2.0 |
amrav/debsoc-mediawiki | skins/strapping/strapping.php | 1884 | <?php
/**
* My Skin skin
*
* @file
* @ingroup Skins
* @author Garrett LeSage
*/
if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." );
$wgExtensionCredits['skin'][] = array(
'path' => __FILE__,
'name' => 'Strapping',
'url' => ... | gpl-2.0 |
andig/vzero | src/plugins/Plugin.cpp | 5133 | #include <Arduino.h>
#include <MD5Builder.h>
#include <FS.h>
#include "Plugin.h"
#ifdef ESP32
#include <SPIFFS.h>
#endif
#define MAX_PLUGINS 5
/*
* Static
*/
int8_t Plugin::instances = 0;
Plugin* Plugin::plugins[MAX_PLUGINS] = {};
HTTPClient Plugin::http;
void Plugin::each(CallbackFunction callback) {
for (in... | gpl-2.0 |
AvatarSD/gsmtempcontroller | src/Network/NetworkWorker.cpp | 3438 | /*
* NetworkWorker.cpp
*
* Created on: 25 вер. 2015 р.
* Author: sd
*/
#include "NetworkWorker.h"
#include "avr/interrupt.h"
#include "../LOG/debug.h"
#include "../init/rtc.h"
#include "../config.h"
#include <stdio.h>
UART * _gsm;
ISR(NETWORK_RXINT)
{
_gsm->rx_byte_int();
}
ISR(NETWORK_TXINT)
{
_gsm->tx... | gpl-2.0 |
Huluzai/DoonSketch | inkscape-0.48.5/src/ui/dialog/extensions.cpp | 2989 | /** @file
* @brief A simple dialog with information about extensions
*/
/* Authors:
* Jon A. Cruz
*
* Copyright (C) 2005 Jon A. Cruz
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtk/gtk.h> //for GTK_RESPONSE* types
#include <gtkmm/scrolledwindow.h>
#include "extensio... | gpl-2.0 |
Earslicker/kx-audio-driver | driver/irq.cpp | 28536 | // kX Driver
// Copyright (c) Eugene Gavrilov, 2001-2014.
// All rights reserved
/*
* 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... | gpl-2.0 |
bauwebster/Wordpress-Bootstrap-3-SASS-Starter-Framework | wp-content/themes/bootsass/footer.php | 745 | <?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after
*
* @package bootsass
*/
?>
</div><!-- #site-content -->
<footer id="site-footer" role="contentinfo">
<section>
<div class="site-info">
<a href="<?php echo esc_url( __( 'http://wordp... | gpl-2.0 |
Johny-C/jchat | src/common/db/entity/TestEntity.java | 914 | /*
* 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 common.db.entity;
import java.io.Serializable;
/**
*
* @author johny
*/
public class TestEntity implements Serializable {
... | gpl-2.0 |
clemsonbds/dasein-cloud-nfv | src/main/java/bds/clemson/nfv/etsi/hypervisor/vm/Save.java | 1265 | package bds.clemson.nfv.etsi.hypervisor.vm;
import org.dasein.cloud.CloudException;
import org.dasein.cloud.InternalException;
import org.dasein.cloud.OperationNotSupportedException;
import org.dasein.cloud.compute.VirtualMachine;
import org.dasein.cloud.compute.VmState;
import bds.clemson.nfv.exception.Confi... | gpl-2.0 |
kvilhaugsvik/jfcpi | JavaGenerator/src/com/kvilhaugsvik/javaGenerator/typeBridge/willReturn/ALong.java | 712 | /*
* Copyright (c) 2012. Sveinung Kvilhaugsvik
*
* 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 progra... | gpl-2.0 |
piaolinzhi/fight | cxf/ws_eventing/src/main/java/demo/wseventing/eventapi/CatastrophicEventSinkImpl.java | 2154 | /**
* 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 m... | gpl-2.0 |
mclycan/based-dnc-pool | lib/paymentProcessor.js | 7020 | var fs = require('fs');
var async = require('async');
var apiInterfaces = require('./apiInterfaces.js')(config.daemon, config.wallet);
var logSystem = 'payments';
require('./exceptionWriter.js')(logSystem);
log('info', logSystem, 'Started');
function runInterval(){
async.waterfall([
//Get worker ke... | gpl-2.0 |
bobpuffer/1.9.12-LAE1.3 | course/index.php | 16024 | <?php // $Id: index.php 340 2010-07-16 19:46:56Z dlandau $
// For most people, just lists the course categories
// Allows the admin to create, delete and rename course categories
require_once("../config.php");
require_once("lib.php");
$categoryedit = optional_param('categoryedit', -1,PARAM_BOO... | gpl-2.0 |
poelzi/uberclock | external/piston/utils.py | 12294 | import time
from django.http import HttpResponseNotAllowed, HttpResponseForbidden, HttpResponse, HttpResponseBadRequest
from django.core.urlresolvers import reverse
from django.core.cache import cache
from django import get_version as django_version
from django.core.mail import send_mail, mail_admins
from django.conf i... | gpl-2.0 |
ike3/scriptdev2 | scripts/northrend/crusaders_coliseum/trial_of_the_crusader/boss_anubarak_trial.cpp | 37590 | /* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... | gpl-2.0 |
Automattic/wp-calypso | client/state/posts/utils/merge-post-edits.js | 1638 | import { cloneDeep, concat, find, mergeWith, reduce, reject } from 'lodash';
function mergeMetadataEdits( edits, nextEdits ) {
// remove existing edits that get updated in `nextEdits`
const newEdits = reject( edits, ( edit ) => find( nextEdits, { key: edit.key } ) );
// append the new edits at the end
return conca... | gpl-2.0 |
dkrinos/ev3dev-lang-python | docs/conf.py | 9439 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# ev3dev documentation build configuration file, created by
# sphinx-quickstart on Sat May 16 21:08:39 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | gpl-2.0 |
AcalephStorage/consul-alerts | Godeps/_workspace/src/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go | 27024 | // Package v4 implements signing for AWS V4 signer
//
// Provides request signing for request that need to be signed with
// AWS V4 Signatures.
//
// Standalone Signer
//
// Generally using the signer outside of the SDK should not require any additional
// logic when using Go v1.5 or higher. The signer does this by tak... | gpl-2.0 |
adster101/French-Connections- | administrator/components/com_rental/models/fields/tariff_1.php | 1841 | <?php
/**
* @package Joomla.Platform
* @subpackage Form
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Form Field class for the Joomla Platform.
... | gpl-2.0 |
mmacedoeu/adf_gcli | Model/src/br/com/br/gatend/GestaoCliente/v1/model/am/ClientesAMImpl.java | 16680 | package br.com.br.gatend.GestaoCliente.v1.model.am;
import br.com.br.gatend.GestaoCliente.v1.model.am.common.ClientesAM;
import br.com.br.gatend.GestaoCliente.v1.model.to.DadosClienteTO;
import br.com.br.gatend.GestaoCliente.v1.model.vo.ArLocationValuesVImpl;
import br.com.br.gatend.GestaoCliente.v1.model.vo.Co... | gpl-2.0 |
espertechinc/nesper | src/NEsper.Common/common/internal/epl/expression/time/eval/TimePeriodComputeNCGivenExprEval.cs | 4290 | ///////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2006-2019 Esper Team. All rights reserved. /
// http://esper.codehaus.org /
// --------------------------------------------------... | gpl-2.0 |
lamsfoundation/lams | 3rdParty_sources/mysql-connector/com/mysql/cj/jdbc/WrapperBase.java | 5019 | /*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 2.0, as published by the
* Free Software Foundation.
*
* This program is also distributed with... | gpl-2.0 |
vjeko/gnome-shell-3.14.4 | js/ui/messageTray.js | 120198 | // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio;
const Gtk = imports.gi.Gtk;
const GnomeDesktop = imports.gi.GnomeDesktop;
const Atk = imports.gi.Atk;
const Lang = imports.lang;
const Mainloop = imports.mainloop... | gpl-2.0 |
cran/rgl | src/PointSet.cpp | 532 | #include "PrimitiveSet.h"
using namespace rgl;
//////////////////////////////////////////////////////////////////////////////
//
// CLASS
// PointSet
//
PointSet::PointSet(Material& in_material, int in_nvertices, double* in_vertices, bool in_ignoreExtent,
int in_nindices, int* in_indices, bool ... | gpl-2.0 |
AgenceStratis/newsfal | ext_emconf.php | 1151 | <?php
/***************************************************************
* Extension Manager/Repository config file for ext "newsfal".
*
* Auto generated 22-07-2013 17:51
*
* Manual updates:
* Only the data in the array - everything else is removed by next
* writing. "version" and "dependencies" must not be touch... | gpl-2.0 |
Falcury/java-labs | FirstProject/src/tutorials/Main.java | 244 | package tutorials;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
public class Main {
public static void main(String[] args) {
try {
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
}
}
}
| gpl-2.0 |
newera912/WeatherTransportationProject | transWeatherPy/plotMesonetOrgData.py | 10717 | import matplotlib.pyplot as plt
import numpy as np
def plot10seperate():
mons=["201603","201604","201605","201606","201607","201608"]
days=['01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31']
rootpath="F:... | gpl-2.0 |
andydunkel/jCryptPad | project/src/daimanager/PasswordGeneratorDialog.java | 10765 | package daimanager;
import java.awt.Toolkit;
import java.awt.datatransfer.StringSelection;
import javax.swing.DefaultListModel;
import javax.swing.ListSelectionModel;
import pwgenerator.PasswordGenerator;
/**
* PasswordGeneratorDialog.java
*
* The password generator of the application
*
* @author Andy Dunkel ... | gpl-2.0 |
hackelection/electionhack | test/spec/directives/campaign.js | 493 | 'use strict';
describe('Directive: campaign', function () {
// load the directive's module
beforeEach(module('electionhackApp'));
var element,
scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($compile) {
... | gpl-2.0 |
sungsoo/esper | esper/src/main/java/com/espertech/esper/epl/agg/service/AggSvcGroupByReclaimAgedImpl.java | 12576 | /**************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com ... | gpl-2.0 |
htuyen1994/nukeviet-my | modules/page/language/admin_en.php | 2442 | <?php
/**
* @Project NUKEVIET 4.x
* @Author VINADES.,JSC (contact@vinades.vn)
* @Copyright (C) 2014 VINADES.,JSC. All rights reserved
* @Language English
* @License CC BY-SA (http://creativecommons.org/licenses/by-sa/4.0/)
* @Createdate Mar 04, 2010, 08:22:00 AM
*/
if( ! defined( 'NV_ADMIN' ) or ! defined( 'NV_MAINFI... | gpl-2.0 |
alexbruy/QGIS | tests/src/python/test_qgsvirtuallayerdefinition.py | 4379 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsVirtualLayerDefinition
.. note:: 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 versi... | gpl-2.0 |
CarlosAgon/ILP-UPMC | Java/src/com/paracamplus/ilp4/interpreter/ILP9Method.java | 2724 | /* *****************************************************************
* ILP9 - Implantation d'un langage de programmation.
* by Christian.Queinnec@paracamplus.com
* See http://mooc.paracamplus.com/ilp9
* GPL version 3
***************************************************************** */
package com.paracamplus.ilp4.... | gpl-2.0 |
rollingthunder/Diversity-Synchronization | MVVMDiversity.DesignServices/Connections.cs | 2663 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MVVMDiversity.Interface;
using GalaSoft.MvvmLight.Messaging;
using MVVMDiversity.Messages;
using MVVMDiversity.Model;
namespace MVVMDiversity.DesignServices
{
public class Connections : IConnectionManagementService, IConne... | gpl-2.0 |
imadkaf/lsdoEZ4 | extension/ezcomments/classes/ezcomserverfunctions.php | 511 | <?php
/**
* File containing ezcomServerFunctions class
*
* @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/gnu_gpl GNU General Public License v2.0
*
*/
/*
* ezjscServerFunctions for ezcomments
*/
class ezcomServerFunctions extends ezjscServerFunctions
{
... | gpl-2.0 |
rxu/List_subforums_in_columns | tests/functional/extension_test.php | 4168 | <?php
/**
*
* List subforums in columns extension for the phpBB Forum Software package.
*
* @copyright (c) 2020 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace gfksx\ListSubforumsInColumns\tests\functional;
/**
* @group functional
*/
class extension_te... | gpl-2.0 |
udhayarajselvan/matrix | wp-content/themes/papercuts/searchform.php | 536 | <?php
/**
* The searchform template file.
* @package PaperCuts
* @since PaperCuts 1.0.0
*/
?>
<form id="searchform" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<div class="searchform-wrapper"><input type="text" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" id="s" placeholder="... | gpl-2.0 |
njsmith/partiwm | parti/trays/__init__.py | 220 | # This file is part of Parti.
# Copyright (C) 2008, 2009 Nathaniel Smith <njs@pobox.com>
# Parti is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.
| gpl-2.0 |
tectronics/xenogeddon | src/com/jmex/xml/types/TypesIncompatibleException.java | 725 | /**
* TypesIncompatibleException.java
*
* This file was generated by XMLSpy 2007sp2 Enterprise Edition.
*
* YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
* OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
*
* Refer to the XMLSpy Documentation for further details.
* http://www.altova.com/xmlspy
*/
package ... | gpl-2.0 |
dbenn/cgp | lib/antlr-2.7.0/examples/cpp/IDL/Main.cpp | 271 | #include "IDLLexer.hpp"
#include "IDLParser.hpp"
#include <iostream>
int main()
{
ANTLR_USING_NAMESPACE(std)
try {
IDLLexer lexer(cin);
IDLParser parser(lexer);
parser.specification();
} catch(exception& e) {
cerr << "exception: " << e.what() << endl;
}
}
| gpl-2.0 |
pliskin2009/AKCore-1 | Server/NtlSystem/NtlPerformance.cpp | 6046 | //***********************************************************************************
//
// File : NtlPerformance.cpp
//
// Begin : 2007-02-08
//
// Copyright : ¨Ï NTL-Inc Co., Ltd
//
// Author : Hyun Woo, Koo ( zeroera@ntl-inc.com )
//
// Desc :
//
//*************************************************************... | gpl-2.0 |
kyak/gmenu2x | src/dialog.cpp | 919 | #include <string>
#include "dialog.h"
#include "gmenu2x.h"
#include "font.h"
Dialog::Dialog(GMenu2X& gmenu2x) : gmenu2x(gmenu2x)
{
}
void Dialog::drawTitleIcon(Surface& s, const std::string &icon, bool skinRes)
{
Surface *i = NULL;
if (!icon.empty()) {
if (skinRes)
i = gmenu2x.sc.skinRes(icon);
else
i = ... | gpl-2.0 |
Tontonitch/icinga2 | lib/config/configitem.cpp | 18409 | /******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
* *
... | gpl-2.0 |
hanslovsky/em-thickness-estimation | src/main/java/org/janelia/thickness/lut/LUTRealTransform.java | 5597 | /**
*
*/
package org.janelia.thickness.lut;
import ij.ImageJ;
import ij.ImagePlus;
import net.imglib2.FinalInterval;
import net.imglib2.RandomAccessible;
import net.imglib2.RandomAccessibleInterval;
import net.imglib2.RealLocalizable;
import net.imglib2.RealPositionable;
import net.imglib2.RealRandomAccess;
import ... | gpl-2.0 |
suiheilibe/STEP_mid | test/test.cpp | 1421 | #include <stdio.h>
#include <string.h>
#include <windows.h>
#include <tchar.h>
#include "CppUTest/CommandLineTestRunner.h"
#include "STEPlugin.h"
#include "SMFUtil.h"
#include "STEPMidUtil.h"
#include "debug.h"
static void my_SetValue(FILE_INFO *fi, LPCTSTR str) {
DEBUGOUT("FILE_INFO = %p, value... | gpl-2.0 |
turnoffthelights/Turn-Off-the-Lights-Chrome-extension | src/js/video-player-status.js | 4015 | //================================================
/*
Turn Off the Lights
The entire page will be fading to dark, so you can watch the video as if you were in the cinema.
Copyright (C) 2021 Stefan vd
www.stefanvd.net
www.turnoffthelights.com
This program is free software; you can redistribute it and/or
modi... | gpl-2.0 |
OneHundRedOf/kdev-go | duchain/declarations/functiondeclaration.cpp | 2835 | /*************************************************************************************
* Copyright (C) 2014 by Pavel Petrushkov <onehundredof@gmail.com> *
* *
* This program is free software; you can redistribute it and... | gpl-2.0 |
faithmade/rock | inc/template-tags.php | 6555 | <?php
/**
* Custom template tags for this theme.
*
* @package Rock
* @since 1.0.0
*/
/**
* Display a custom logo.
*
* @since 1.0.0
*/
function rock_the_custom_logo() {
/**
* For backwards compatibility prior to WordPress 4.5.
*
* @link https://developer.wordpress.org/reference/functions/the_custom_... | gpl-2.0 |
adolli/adxM3 | src/MCU_driver/K60/Peripherals/DataFlow/DMA.cpp | 1797 |
#include "DMA.h"
using namespace K60;
using namespace adxM3;
#define DMAx_IRQH(x) \
void DMA ## x ## _IRQHandler(void) \
{ \
enum { CH = x }; \
\
typedef ClockGateController<DMA::ClockSourceGate> ClockSource; \
type... | gpl-2.0 |
evernote/pootle | pootle/apps/pootle_app/management/commands/changed_languages.py | 2694 | # -*- coding: utf-8 -*-
#
# Copyright 2014 Evernote Corporation
#
# This file is part of Pootle.
#
# 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 ... | gpl-2.0 |
hjort/cpp-fr-course | devoirs/devoir03/parachutiste.cc | 634 | #include <iostream>
#include <cmath> // pour exp()
using namespace std;
int main()
{
double masse(80.0);
do {
cout << "masse du parachutiste (>= 40) ? ";
cin >> masse;
} while (masse < 40.0);
double h0(39000.0);
do {
cout << "hauteur de depart du parachutiste (>= 250) ? ";
cin >> h0;
} ... | gpl-2.0 |
mathiasbc/EZAlchemy | ezalchemy/constants.py | 134 | # dialect+driver://username:password@host:port/database
SKELETON_URL = '%(dialect_driver)s://%(user)s:%(pass)s@%(host)s/%(database)s'
| gpl-2.0 |
Yellowen/rahyab_rails | lib/rahyab_rails/engine.rb | 284 | require 'rahyab'
module RahyabRails
class Engine < ::Rails::Engine
isolate_namespace RahyabRails
engine_name 'rahyab_rails'
# Map `api` to `API` in Rails autoload
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.acronym 'SMS'
end
end
end
| gpl-2.0 |
jtsaito/kanji-meister | spec/models/kanji_spec.rb | 1001 | require "rails_helper"
describe Kanji do
describe ".by" do
subject { Kanji.by(attribute, value) }
context "when looking up by heisig_id" do
let(:attribute) { :heisig_id }
let(:value) { 1455 }
it "finds with kanji" do
expect(subject.map(&:kanji)).to eql(["鑑"])
end
it "... | gpl-2.0 |
left21wm/webmaster.left21.com | wp-content/plugins/mytory-smooth-scroll/mytory-smooth-scroll.php | 568 | <?php
/*
Plugin Name: Mytory internal link smooth scroll
Description: Internal link smooth scroll
Version: 1.0.0
Author: mytory
Author URI: http://mytory.co.kr
License: GPL2
*/
function mytory_smooth_scroll(){
wp_enqueue_script('jquery-smooth-scroll', plugin_dir_url(__FILE__) . 'jquery.smooth-scroll.min.js', array('j... | gpl-2.0 |
syborg101/co2serverclone | wp-content/themes/jupiter/framework/admin/theme-options/params/advanced/manage_theme.php | 6915 | <?php
$advanced_section[] = array(
"type" => "sub_group",
"id" => "mk_options_manage_theme",
"name" => __("Advanced / Manage Theme", "mk_framework") ,
"desc" => __("", "mk_framework") ,
"fields" => array(
array(
"name" => __("Google Page Speed Optimization (Beta feature)", "mk_fr... | gpl-2.0 |
aj-adl/balsacentral | content/themes/balsacentral/woocommerce/global/breadcrumb.php | 7150 | <?php
/**
* Shop breadcrumb
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post, $wp_query;
if ( get_option('woocommerce_prepend_shop_page_to_urls') == "yes" && woocommerce_get_page_id( 'sho... | gpl-2.0 |
yukaritan/kawaiirc | system/ircfactory.py | 829 | from builtins import super, property, dict
from collections import deque
from twisted.internet.protocol import ServerFactory
class IRCFactory(ServerFactory):
"""
This is where networking is born! It's also where we list all our clients and channels.
When a user connects, a ClientConnection is born to cate... | gpl-2.0 |
tsh/fun-with-panda3d | main.py | 21 | """
Panda 1.9dev
"""
| gpl-2.0 |
appnosteev/behat-vagrant | cookbooks/drupal-cookbooks/drupal/recipes/behat_build.rb | 7553 | # Deploy an example Drupal site.
# TODO Move this to a definition with parameters.
include_recipe "mysql"
include_recipe "drush"
include_recipe "drush_make"
#bash aliases
# Add an admin user to mysql
execute "add-admin-user" do
command "/usr/bin/mysql -u root -p#{node[:mysql][:server_root_password]} -e \"" +
... | gpl-2.0 |
sushanttripathy/pang_kaiju | uriparse.hpp | 1257 | #ifndef _URIPARSE_HPP_
#define _URIPARSE_HPP_
#include <string>
#include <map>
#include <vector>
#include <boost/regex.hpp>
#include "trim.hpp"
#include "tokenize.hpp"
class URIParse
{
private:
std::string url;
std::map <std::string, std::string> parts;
bool isParsed;
bool isValidURI;
static std:... | gpl-2.0 |
aneeshtn/enviornment | Sfa/MPIData.php | 7172 | <?php
class MPIData
{
##
#
# Unformatted purchase amount. It should not contain any special characters such as "$" etc.
#
#
var $mstrPurchaseAmount ;
##
#
# Formatted purchase amount. This field should contain a currency symbol, with an thousands separator (s), decimal ... | gpl-2.0 |
Vinatorul/notepad-plus-plus | PowerEditor/src/WinControls/DockingWnd/DockingManager.cpp | 26802 | // this file is part of docking functionality for Notepad++
// Copyright (C)2006 Jens Lorenz <jens.plugin.npp@gmx.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either
// versi... | gpl-2.0 |
Pursche/ElunaTrinityWotlk | src/server/game/Movement/MovementGenerators/FleeingMovementGenerator.cpp | 7543 | /*
* Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either ve... | gpl-2.0 |
yucao100/SE_at_UML | G5_Cloud_Computing/Prototype/php/tmp/page.php | 895 | <?php
/**
* @File page.php
* @Authors Jose Flores
* jose.flores.152@gmail.com
*
* @Description This is the application template
*
* @changelog
* 5/7/14 added obstart for redirect
* 2/25/14 Created Template
*/
// to be able to redirect
ob_start() ;
echo '<html>
... | gpl-2.0 |
sloanyang/raspberrry2v8 | deps/v8/test/unittests/compiler/node-properties-unittest.cc | 1118 | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/common-operator.h"
#include "src/compiler/node-properties.h"
#include "test/unittests/test-utils.h"
#include "testing/gmock/inclu... | gpl-2.0 |
wmacibnc/onyx | lista_pagina.php | 1164 | <?php
include("adm/header.php");
include("config.php");
?>
<div id="conteudo_curso">
<?php
$res = mysql_query("select * from paginas"); /*Executa o comando SQL, no caso para pegar todos os usuarios do sistema e retorna o valor da consulta em uma variavel ($res) */
/*Enquanto houver dados na tabela para serem... | gpl-2.0 |
ashenkar/sanga | wp-content/sumo.js | 160 | document.write("<scr"+"ipt src=\"//load.sumome.com/\" data-sumo-site-id=\"87e632966629f3a3f34bc8057eb5ba3efd1f5104500108167ac0692383edacfa\"></scr"+"ipt>");
| gpl-2.0 |
leesocrates/Retrofit_Test_Server | src/main/java/com/lee/retrofit/RetrofitServer.java | 2981 | package com.lee.retrofit;
import java.net.InetSocketAddress;
import com.lee.retrofit.handler.*;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.c... | gpl-2.0 |
gxb5443/njba_website | wp-content/plugins/google-maps-widget/google-maps-widget.php | 24348 | <?php
/*
Plugin Name: Google Maps Widget
Plugin URI: http://www.googlemapswidget.com/
Description: Display a single-image super-fast loading Google map in a widget. A larger, full featured map is available on click in a lightbox. Includes shortcode support and numerous options.
Author: Web factory Ltd
Version: 2.... | gpl-2.0 |
delafer/j7project | jasper352/csb-jasperreport-dep/src/net/sf/jasperreports/engine/fill/JRByteIncrementerFactory.java | 11205 | /*
* ============================================================================
* GNU Lesser General Public License
* ============================================================================
*
* JasperReports - Free Java report-generating library.
* Copyright (C) 2001-2009 JasperSoft Corporation http://www.... | gpl-2.0 |
noobieteam/Fantasy-Mod | fallacia/init/Recipes.java | 282 | package com.noobieteam.fallacia.init;
/**
* Main Initializers for the mod's recipes
* Registers them..
*/
public class Recipes {
// CREATE ALL RECIPES's INSCANCES IN HERE
/** Call the game register in this method
*
*/
public static void init() {
}
}
| gpl-2.0 |
astridx/joomla-cms | administrator/components/com_contenthistory/Model/CompareModel.php | 4984 | <?php
/**
* @package Joomla.Administrator
* @subpackage com_contenthistory
*
* @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\Component\Contenthistory\Administrator\Model;... | gpl-2.0 |
UMNLibraries/xml-record-php | src/File/WorldCatMarc.php | 182 | <?php
namespace UmnLib\Core\XmlRecord\File;
class WorldCatMarc extends WorldCat
{
public function recordElementNamespace()
{
return 'http://www.loc.gov/MARC21/slim';
}
}
| gpl-2.0 |
osCmax/oscmax2 | catalog/includes/languages/french/affiliate_sales.php | 2133 | <?php
/*
$Id$
osCmax e-Commerce
http://www.oscmax.com
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Programme d\'affiliation');
define('HEADING_TITLE', 'Programme d\'affiliation - Ventes');
define('TABLE_HEADING_DATE','Date');
define('TABLE_HEADING_SA... | gpl-2.0 |
siis/pfwall | tools/pfwall/pftables/modules/target/fuzz_resource.py | 1196 | from struct import *
import ctypes
import getopt
import pft_c
MAX_STRLEN = 256
PFT_NAMELEN = 16
class pft_target_symlink(ctypes.Structure):
_fields_ = [
("target_size", ctypes.c_uint),
("name", ctypes.c_char * PFT_NAMELEN),
("context_mask", ctypes.c_uint),
("target", ctypes.c_void_p),
("flags", ctypes... | gpl-2.0 |
sibenye/b-unique_web | wp-content/plugins/smart-forms/smartforms.php | 6059 | <?php
/**
* Plugin Name: Smart Forms
* Plugin URI: http://rednao.com/smart-donations/
* Description: Place diferent form of donations on your blog...
* Author: RedNao
* Author URI: http://rednao.com
* Version: 2.0.2
* Text Domain: SmartDonations
* Domain Path: /languages/
* Network: true
* License: GPLv3
* L... | gpl-2.0 |
profosure/porogram | TMessagesProj/src/main/java/com/porogram/profosure1/messenger/exoplayer2/ui/SubtitlePainter.java | 13443 | /*
* 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 |
knowlage/survey | components/com_ole/models/ole.php | 829 | <?php
defined('_JEXEC') or die;
/*
* 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.
*/
class OleModelOle extends JModelItem{
protected $msg;
function getMsg(){
... | gpl-2.0 |
hubzero/hubzero-cms | core/migrations/Migration20130723163332ComCourses.php | 1029 | <?php
/**
* @package hubzero-cms
* @copyright Copyright (c) 2005-2020 The Regents of the University of California.
* @license http://opensource.org/licenses/MIT MIT
*/
use Hubzero\Content\Migration\Base;
// No direct access
defined('_HZEXEC_') or die();
/**
* Migration script for adding first_visit times... | gpl-2.0 |
namwoody/kart-zill.com | wp-content/themes/kart/woocommerce/content-product_cat.php | 1340 | <?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $woocommerce_loop;
// Store loop count we're currently on.
if ( empty( $woocommerce_loop['loop'] ) ) {
$woocommerce_loop['loop'] = 0;
}
// Store column count for displaying the grid.
if ( empty( $woocommerce_loop['columns'] ) ) {
$woocommerce_loop['col... | gpl-2.0 |
sloww/cntslinkgit | app_label/migrations/0003_auto_20150516_2356.py | 395 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('app_label', '0002_auto_20150516_2339'),
]
operations = [
migrations.AlterField(
model_name='label',
... | gpl-2.0 |
perdisci/WebCapsule | src/third-party/WebKit/Source/core/inspector/CodeGeneratorInstrumentation.py | 17192 | #!/usr/bin/env python
# Copyright (c) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | gpl-2.0 |