code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
/***************************************************************************
* Copyright (C) 2012 by David Edmundson <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... | Ziemin/ktp-text-ui | logviewer/message-view.cpp | C++ | gpl-2.0 | 9,205 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_17) on Mon Jan 11 20:36:42 NZDT 2010 -->
<TITLE>
weka.classifiers.functions Class Hierarchy
</TITLE>
<META NAME="date" CONTENT="2010-01-11">
<LINK ... | chrissalij/Wiki-Reputation-Predictor | weka/doc/weka/classifiers/functions/package-tree.html | HTML | gpl-2.0 | 14,287 |
field_dict={'ROME-FIELD-01':[ 267.835895375 , -30.0608178195 , '17:51:20.6149','-30:03:38.9442' ],
'ROME-FIELD-02':[ 269.636745458 , -27.9782661111 , '17:58:32.8189','-27:58:41.758' ],
'ROME-FIELD-03':[ 268.000049542 , -28.8195573333 , '17:52:00.0119','-28:49:10.4064' ],
'ROME-FIE... | ytsapras/robonet_site | scripts/rome_fields_dict.py | Python | gpl-2.0 | 1,964 |
<?php
include("config_mynonprofit.php");
include("connect.php");
//Start session
session_start();
//Array to store validation errors
$errmsg_arr = array();
//Validation error flag
$errflag = false;
//Sanitize the POST values
$fname = htmlentities($_POST['fname']);
$lname = htmlentities($_POST['lname']);
$email = h... | Enjabain/My-NP | register-exec.php | PHP | gpl-2.0 | 3,724 |
<script type="text/javascript">
jQuery(document).ready(function() {
// type of media
jQuery('#type').change(function() {
switch (jQuery(this).val()) {
case '<?php echo MEDIA_TYPE_EMAIL; ?>':
jQuery('#smtp_server, #smtp_helo, #smtp_email').closest('li').removeClass('hidden');
jQuery('#exec_path, #g... | TamasSzerb/zabbix | frontends/php/app/views/administration.mediatype.edit.js.php | PHP | gpl-2.0 | 2,993 |
/* OS134, Copyright (C) 2005, Benjamin Stein, Jaap Weel, Ting Liao --
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 prog... | jaapweel/os134 | loader.c | C | gpl-2.0 | 3,002 |
/**************************************************
* Funkcje związane z geolokalizacją GPS
**************************************************/
WMB.Comment = {
/**
* Funkcja dodająca nowy komentarz do zgłoszenia
*
* @method onAddSubmit
*/
onAddSubmit: function(marker_id) {
if (WMB.User.isLoggedIn()) {
if ($(... | airwaves-pl/WroclawskaMapaBarier | web/lib/js/wmb.comment.js | JavaScript | gpl-2.0 | 5,969 |
<h2>Methods run, sorted chronologically</h2><h3>>> means before, << means after</h3><p/><br/><em>Default suite</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/>
<table border="1">
<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration<... | rahulrathore44/Park-and-Company | test-output/old/Default suite/methods-alphabetical.html | HTML | gpl-2.0 | 1,415 |
/***********************************************
* Author: Alexander Oro Acebo
* Date: 01/22/2015
* Description: Change current dir
* ********************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/shm.h>
#include "../include/Root... | pappacurds/csi385-FAT12-OS | package/cd/cd.c | C | gpl-2.0 | 7,028 |
<?php
/**
*
* Share On extension for the phpBB Forum Software package.
*
* @copyright (c) 2015 Vinny <https://github.com/vinny>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVEL... | vinny/share-on | language/el/shareon.php | PHP | gpl-2.0 | 1,990 |
<?xml version="1.0" encoding="US-ASCII"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Example: bib2xhtml -s named -n Spinellis -U -c -R</title> <meta http-... | dspinellis/bib2xhtml | test.ok/named-n-c-UCR.html | HTML | gpl-2.0 | 8,467 |
# -*- coding: utf-8 -*-
from scrapy.spider import Spider
from scrapy.selector import Selector
from kgrants.items import KgrantsItem
from scrapy.http import Request
import time
class GrantsSpider(Spider):
name = "grants"
allowed_domains = ["www.knightfoundation.org"]
pages = 1
base_url = 'http://www.k... | poderomedia/kfdata | kgrants/spiders/grants.py | Python | gpl-2.0 | 3,682 |
/*
Theme Name: achdut-israel
Theme URI: http://underscores.me/
Author: Ido Barnea
Author URI: http://www.barbareshet.co.il
Description: Achdut Israel\'s theme for website
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: achdut
Tags:
This theme, like WordPress, is license... | barbareshet/achdut | style.css | CSS | gpl-2.0 | 6,962 |
/**
*
*/
package co.innovate.rentavoz.services.almacen.impl;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import co.innovate.rentavoz.model.Tercero;
import co.innovate.rentav... | kaisenlean/rentavoz3 | src/main/java/co/innovate/rentavoz/services/almacen/impl/CuotaServiceImpl.java | Java | gpl-2.0 | 2,414 |
;(function() {
/** Used to access the Firebug Lite panel (set by `run`). */
var fbPanel;
/** Used as a safe reference for `undefined` in pre ES5 environments. */
var undefined;
/** Used as a reference to the global object. */
var root = typeof global == 'object' && global || this;
/** Method and objec... | Great-Bee/NVWA-Client | js/bower_components/lodash/perf/perf.js | JavaScript | gpl-2.0 | 60,255 |
//
// SLFSettingsViewController.h
// Selfy
//
// Created by MadArkitekt on 4/30/14.
// Copyright (c) 2014 Ed Salter. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SLFSettingsViewController : UIViewController
@end
| MadArkitekt/SelfyApp | Selfy/SLFSettingsViewController.h | C | gpl-2.0 | 233 |
Intermediate PHP & MySQL
========================
  
> This course is designed for students with a fundamental understanding of programming.
> We will spend some time reviewing PHP basics, for stud... | wes596/PHPIntermediate | README.md | Markdown | gpl-2.0 | 3,113 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace Git.Storage.Common
{
public enum EEquipmentStatus
{
/// <summary>
/// 闲置
/// </summary>
[Description("闲置")]
Unused = 1,
/// <summary>
... | hechenqingyuan/gitwms | Git.Storage.Common/EEquipmentStatus.cs | C# | gpl-2.0 | 794 |
--[[
@title Motion Detect
]]
a=6 -- columns to split picture into
b=6 -- rows to split picture into
c=1 -- measure mode (Y,U,V R,G,B) U=0, Y=1, V=2, R=3, G=4, B=5
d=300000 -- timeout (mSec)
e=200 -- comparison interval (msec) - less than 100 will slow down other CHDK funct... | arne182/chdk-eyefi | CHDK/SCRIPTS/4Pack/Lua/motion.lua | Lua | gpl-2.0 | 1,005 |
body {
background-image: url("http://www.army-technology.com/contractor_images/eimco/1-eimco-military-camps.jpg");
background-size: 800px
}
p {
color: #000000
}
img {
top:100%;
left:100%;
}
a:link {
color: blue;
}
a:hover {
text-decoration: none;
color: red;
}
| boboulder101/My-game | Home.css | CSS | gpl-2.0 | 275 |
<?php
/**
* @Copyright Freestyle Joomla (C) 2010
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*
* This file is part of Freestyle Support Portal
* 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... | Aks-1357/akhildhanuka-connectupmyhome | components/com_fss/views/admin/tmpl/moderate.php | PHP | gpl-2.0 | 1,553 |
/*
* Copyright (C) 2010 Xavier Claessens <[email protected]>
* Copyright (C) 2010 Collabora Ltd.
*
* 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 (... | freedesktop-unofficial-mirror/telepathy__telepathy-ssh-contact | src/service.c | C | gpl-2.0 | 5,471 |
/*
Behaviour v1.1 by Ben Nolan, June 2005. Based largely on the work
of Simon Willison (see comments by Simon below).
Small fixes by J.Dobrowolski for Front Accounting May 2008
Description:
Uses css selectors to apply javascript behaviours to enable
unobtrusive javascript in html documents.
... | w2pc/front_accounting | js/behaviour.js | JavaScript | gpl-2.0 | 8,278 |
/*****************************************************************************
* macroblock.c: macroblock encoding
*****************************************************************************
* Copyright (C) 2003-2017 x264 project
*
* Authors: Laurent Aimar <[email protected]>
* Loren Merritt <lorenm@u.... | kodabb/x264 | encoder/macroblock.c | C | gpl-2.0 | 57,854 |
package oo.Prototype;
/*
* A Symbol Loader to register all prototype instance
*/
import java.util.*;
public class SymbolLoader {
private Hashtable symbols = new Hashtable();
public SymbolLoader() {
symbols.put("Line", new LineSymbol());
symbols.put("Note", new NoteSymbol());
}
... | longluo/DesignPatterns | src/oo/Prototype/SymbolLoader.java | Java | gpl-2.0 | 385 |
/*
This file is part of t8code.
t8code is a C library to manage a collection (a forest) of multiple
connected adaptive space-trees of general element classes in parallel.
Copyright (C) 2015 the developers
t8code is free software; you can redistribute it and/or modify
it under the terms of the GNU General ... | holke/t8code | src/t8_cmesh_readmshfile.h | C | gpl-2.0 | 2,708 |
package com.djtu.signExam.util;
import java.io.IOException;
import com.djtu.signExam.model.support.EntityGenerator;
/**
* use this class to bootstrap the project.
* There is no need for developers to write model classes themselves.
* Once there are some updates or modified parts in the database,
* Please run th... | doomdagger/CompetitionHub | src/main/java/com/djtu/signExam/util/Bootstrap.java | Java | gpl-2.0 | 625 |
/* MIPS-specific support for ELF
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005 Free Software Foundation, Inc.
Most of the information added by Ian Lance Taylor, Cygnus Support,
<[email protected]>.
N32/64 ABI support added by Mark Mitchell, CodeSourcery, LLC.
<ma... | sribits/gdb | bfd/elfxx-mips.c | C | gpl-2.0 | 300,480 |
/*
* SocialLedge.com - Copyright (C) 2013
*
* This file is part of free software framework for embedded processors.
* You can use it and/or distribute it as long as this copyright header
* remains unmodified. The code is free for personal use and requires
* permission to use in a commer... | kammce/SJSU-DEV-Linux | firmware/default/lib/L2_Drivers/src/can.c | C | gpl-2.0 | 36,142 |
<?php
/*
* acf_get_setting
*
* This function will return a value from the settings array found in the acf object
*
* @type function
* @date 28/09/13
* @since 5.0.0
*
* @param $name (string) the setting name to return
* @return (mixed)
*/
function acf_get_setting( $name, $default = null ) {
// vars
$settin... | thomasbodin/baltazare-test | wp-content/plugins/advanced-custom-fields-pro/api/api-helpers.php | PHP | gpl-2.0 | 54,778 |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
If you are working with a multi language form keep the order!
<option lang="de">Deutschland</option>
<option lang="de">Groß Britannien</option>
<option lang="en">Germany</option>
<option lang="en">United Kingdom</option>
If you don't keep the order and the us... | bjoernmainz/simple-contact-form | config/select_countries.xml.php | PHP | gpl-2.0 | 755 |
import { Query } from "../services";
export interface QueryState {
queries?: Query[];
loading?: boolean;
error?: String;
visibilityFilter?: string;
}
| mickem/nscp | web/src/state/query.state.ts | TypeScript | gpl-2.0 | 161 |
<?php
/**
* AmanCMS
*
* LICENSE
*
* This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.gnu.org/licenses/gpl-2.0.txt
* If you did not receive ... | salem/aman | application/modules/news/services/Rss.php | PHP | gpl-2.0 | 4,158 |
/*
* Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
* Copyright (c) 2008 Dave Chinner
* 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.
*
* This program is d... | Scorpio92/linux_kernel_3.16.1 | fs/xfs/xfs_trans_ail.c | C | gpl-2.0 | 20,742 |
{- |
Module : $EmptyHeader$
Description : <optional short description entry>
Copyright : (c) <Authors or Affiliations>
License : GPLv2 or higher, see LICENSE.txt
Maintainer : <email>
Stability : unstable | experimental | provisional | stable | frozen
Portability : portable | non-portable (<reason>... | nevrenato/Hets_Fork | GMP/versioning/gmp-0.0.1/GMP/Main.hs | Haskell | gpl-2.0 | 3,633 |
<?php
/**
* Plugin Installer List Table class.
*
* @package WordPress
* @subpackage List_Table
* @since 3.1.0
* @access private
*/
class WP_Plugin_Install_List_Table extends WP_List_Table {
function ajax_user_can() {
return current_user_can('install_plugins');
}
function prepare_items() {
include( ABSPA... | igum/www.gamer31.ru | wp-admin/includes/class-wp-plugin-install-list-table.php | PHP | gpl-2.0 | 7,870 |
package com.ues21.ferreteria.login;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springf... | srubbiolo/SYSO | src/main/java/com/ues21/ferreteria/login/LoginController.java | Java | gpl-2.0 | 2,293 |
<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
<div id="primary" class="widget-area" role="complementary">
<ul class="xoxo">
<?php
/* When we call the dynamic_sidebar() function, it'll spit out
* th... | ddksaku/twis | wp-content/themes/twis/sidebar-en.php | PHP | gpl-2.0 | 654 |
<?php
load_libraries(array('fields/passwordfield'));
PhangoVar::$model['user_group']=new Webmodel('user_group');
PhangoVar::$model['user_group']->set_component('name', 'CharField', array(255));
PhangoVar::$model['user_group']->set_component('permissions', 'SerializeField', array());
PhangoVar::$model['user']=new We... | webtsys/phango2 | modules/users/models/models_users.php | PHP | gpl-2.0 | 1,137 |
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\MigrateFullDrupalTestBase.
*/
namespace Drupal\migrate_drupal\Tests;
use Drupal\migrate\MigrateExecutable;
use Drupal\simpletest\TestBase;
/**
* Test helper for running a complete Drupal migration.
*/
abstract class MigrateFullDrupalTestBase extends Mig... | havran/Drupal.sk | docroot/drupal/core/modules/migrate_drupal/src/Tests/MigrateFullDrupalTestBase.php | PHP | gpl-2.0 | 3,949 |
<?php
/**
* @package Joomla.UnitTest
* @subpackage Filesystem
*
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
JLoader::register('JPath', JPATH_PLATFORM . '/joomla/filesystem/path.php');
/*... | vothequang113/Joomla | tests/suites/unit/joomla/filesystem/JPathTest.php | PHP | gpl-2.0 | 3,267 |
body {
background-color: #f9f9f9;
font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif;
font-size: 1em;
font-style: normal;
font-variant: normal;
line-height: 1.25em;
}
h1, h2, h3, h4 {
font-weight: bold;
margin-bottom: 1em;
... | auchri/AOTP | css/basic.css | CSS | gpl-2.0 | 3,279 |
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
/* Freenet 0.7 node. */
package freenet.node;
import static freenet.node.stats.DataStoreKeyType.CHK;
import static f... | nextgens/fred | src/freenet/node/Node.java | Java | gpl-2.0 | 177,426 |
/* $Id: style.css,v 1.38.2.4 2009/09/14 13:10:47 goba Exp $ */
/**
* Garland, for Drupal 6.x
* Stefan Nagtegaal, iStyledThis [dot] nl
* Steven Wittens, acko [dot] net`
*
* If you use a customized color scheme, you must regenerate it after
* modifying this file.
*/
/**
* Generic elements
*/
body... | ninthlink/m2m | sites/all/themes/m2madmin/style.css | CSS | gpl-2.0 | 20,973 |
/* Copyright (C) 2014 InfiniDB, Inc.
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.
This program is distributed in the hope that it will be useful,
but W... | mariadb-corporation/mariadb-columnstore-engine | versioning/BRM/sessionmanagerserver.cpp | C++ | gpl-2.0 | 10,706 |
package org.adempiere.impexp.impl;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 ... | klst-com/metasfresh | de.metas.business/src/main/java/org/adempiere/impexp/impl/ImportProcessFactory.java | Java | gpl-2.0 | 5,016 |
#pragma once
#include <MellowPlayer/Presentation/Notifications/ISystemTrayIcon.hpp>
#include <QMenu>
#include <QSystemTrayIcon>
namespace MellowPlayer::Domain
{
class ILogger;
class IPlayer;
class Setting;
class Settings;
}
class SystemTrayIconStrings : public QObject
{
Q_OBJECT
public:
QStri... | ColinDuquesnoy/MellowPlayer | src/lib/presentation/include/MellowPlayer/Presentation/Notifications/SystemTrayIcon.hpp | C++ | gpl-2.0 | 1,712 |
/*
* ecgen, tool for generating Elliptic curve domain parameters
* Copyright (C) 2017-2018 J08nY
*/
#include "hex.h"
#include "exhaustive/arg.h"
#include "field.h"
#include "util/bits.h"
#include "util/memory.h"
#include "util/str.h"
static char *hex_point(point_t *point) {
GEN fx = field_elementi(gel(point->point... | J08nY/ecgen | src/gen/hex.c | C | gpl-2.0 | 3,044 |
package irc.bot;
import java.io.*;
public class OutHandler implements Runnable {
OutHandler(Connection connection) {
this.connection = connection;
}
private Connection connection;
public void run() {}
}
| propheh/IRCBot | irc/bot/OutHandler.java | Java | gpl-2.0 | 225 |
/* 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.ellcs.stack.android;
public final class R {
public static final class attr {
}
public static final class drawable... | ellcs/point | android/build/generated/source/r/debug/com/ellcs/stack/android/R.java | Java | gpl-2.0 | 582 |
PageProcessor::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
config.cache_classes = true
# Full error reports are disabled and caching is turned on
config.consider_all_requests_local = false
config.... | ttfnrob/wd3 | config/environments/production.rb | Ruby | gpl-2.0 | 2,540 |
This is a first attempt at constructing a Django wrapper around playing_god
| joshsmith2/playing_django | README.md | Markdown | gpl-2.0 | 76 |
<?php
function edd_rp_settings( $settings ) {
$suggested_download_settings = array(
array(
'id' => 'edd_rp_header',
'name' => '<strong>' . __('Recommended Products', 'edd-rp-txt') . '</strong>',
'desc' => '',
'type' => 'header',
'size' => 'regular'
),
array(
'id' => 'edd_rp_display_single... | SelaInc/eassignment | wp-content/plugins/edd-recommended-products/includes/settings.php | PHP | gpl-2.0 | 2,572 |
/**
* 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/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest06598.java | Java | gpl-2.0 | 2,819 |
define(function(require) {
var Model = require("web/common/model");
var SpsrModel = Model.extend({
idAttribute: "recordId",
defaults: {
name: "SDI1",
kzck: 0,
ydsd: 0,
srjkxh: 0,
ld: 123,
dbd: 124,
bhd: 125,
sppy: 126,
czpy: 127
},
urls: {
"create": "spsr.psp",
"update":... | huang147300/EDSFrontEnd | js/index/pz/spsr/spsr_model.js | JavaScript | gpl-2.0 | 413 |
/**
* Copyright (c) 2008-2012 Indivica Inc.
*
* This software is made available under the terms of the
* GNU General Public License, Version 2, 1991 (GPLv2).
* License details are available via "indivica.ca/gplv2"
* and "gnu.org/licenses/gpl-2.0.html".
*/
package org.oscarehr.document.web;
import java.io.File;
... | hexbinary/landing | src/main/java/org/oscarehr/document/web/SplitDocumentAction.java | Java | gpl-2.0 | 8,755 |
<?php
if (!defined('TFUSE'))
exit('Direct access forbidden.');
/**
* Class UPDATER. Check for new versions of the theme, framework, or modules. Installs if found.
*/
class TF_UPDATER extends TF_TFUSE {
public $_the_class_name = 'UPDATER';
public $themefuse_update = false;
public $check_... | reginas/callan-consulting | wp-content/themes/interakt-parent/framework/core/UPDATER.php | PHP | gpl-2.0 | 8,320 |
from sys import argv
script, input_file = argv
def print_all(f):
print f.read()
def rewind(f):
f.seek(0)
def print_a_line(line_count, f):
print line_count, f.readline()
current_file = open(input_file)
print "First let's print the whole file:\n"
print_all(current_file)
print "Now let's rewind, kind o... | maxiee/LearnPythonTheHardWayExercises | ex20.py | Python | gpl-2.0 | 601 |
<?php
session_start();
$_SESSION["Status"]=0;
include("dbconn.php");
require ('../xajax.inc.php');
include("../dbinfo.inc.php");
$memid=$_SESSION['userId'];
$_SESSION["userid"]=$memid;
function viewuseralbums($userid,$jumpto)
{//list all the albums owned by the user
$objResponse = new xajaxRespon... | avinash/nuzimazz | Image_edit/SelectAlbum.php | PHP | gpl-2.0 | 11,067 |
all: 484.out
%.out: %.R
R --no-save < $< > $@
clean:
-rm *.out *.pdf *.png *~ *swp
view:
-open *.png
| dankelley/oce-issues | 04xx/484/Makefile | Makefile | gpl-2.0 | 104 |
package edu.ucsd.ncmir.WIB.client.core.components;
import com.google.gwt.user.client.ui.Widget;
import edu.ucsd.ncmir.WIB.client.core.message.Message;
import edu.ucsd.ncmir.WIB.client.core.message.MessageListener;
import edu.ucsd.ncmir.WIB.client.core.message.MessageManager;
import edu.ucsd.ncmir.WIB.client.core.messa... | imclab/WebImageBrowser | WIB/src/java/edu/ucsd/ncmir/WIB/client/core/components/HorizontalSlider.java | Java | gpl-2.0 | 3,160 |
# datasciencecoursera
This repository is created as a part of the data science class
| alurepo/datasciencecoursera | README.md | Markdown | gpl-2.0 | 85 |
# The absolute path of the main script(p4_tools.rb)
ROOT = File.expand_path('..', File.dirname(__FILE__))
# The absolute path of the folder which contains the command files
COMMANDS_ROOT = ROOT + '/commands'
# The absolute path of the folder which contains the custom command files
CUSTOM_COMMANDS_ROOT = COMMANDS_ROOT +... | ncsibra/P4Tools | lib/p4tools/environment.rb | Ruby | gpl-2.0 | 671 |
-- Thalorien Dawnseeker's Remains
SET @ENTRY := 37552;
UPDATE `creature_template` SET `faction`=1770 WHERE `entry`=@ENTRY;
-- Phase
DELETE FROM `spell_area` WHERE `spell`=70193;
INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`, `quest_start_status`... | Declipe/ElunaTrinityWotlk | sql/2016_03_01_NPC_THALORIEN_DAWNSEEKER_world.sql | SQL | gpl-2.0 | 546 |
# Lesson-1---Review
### Create a song class
#### Attributes:
1. Title
2. Band members: a dictionary with name as the key and instrument as the values.
3. (Highest) place on the charts.
#### Methods:
1. __init__
Has a filepointer as an optional parameter. If filepointer is None have the user input the attributes. I... | CSCI157/Lesson-1---Data-structures | README.md | Markdown | gpl-2.0 | 1,537 |
<?php
include 'init.php';
$output = '';
$setup = new ON_Settings();
$setup->load();
$setup->registerForm('setup');
// fill form with elements
$setup->fillForm();
// process forms if posted
if ($setup->form->isSubmitted() && $setup->form->validate()) {
$values =& $setup->form->exportValues();
$setup->setValues... | uzaytek/orion | admin/settings-store.php | PHP | gpl-2.0 | 935 |
# Find Python
# ~~~~~~~~~~~
# Find the Python interpreter and related Python directories.
#
# This file defines the following variables:
#
# PYTHON_EXECUTABLE - The path and filename of the Python interpreter.
#
# PYTHON_SHORT_VERSION - The version of the Python interpreter found,
# excluding the patch version numb... | supergis/QGIS | cmake/FindPythonLibrary.cmake | CMake | gpl-2.0 | 5,481 |
/* linux/drivers/mmc/host/sdhci-s3c.c
*
* Copyright 2008 Openmoko Inc.
* Copyright 2008 Simtec Electronics
* Ben Dooks <[email protected]>
* http://armlinux.simtec.co.uk/
*
* SDHCI (HSMMC) support for Samsung SoC
*
* This program is free software; you can redistribute it and/or modify
* it under the ... | Android-Dongyf/itop-kernel | drivers/mmc/host/sdhci-s3c-ori.c | C | gpl-2.0 | 23,555 |
/* Copyright (c) 2009-2011, Code Aurora Forum. 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 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ho... | hiikezoe/android_kernel_fujitsu_f12nad | drivers/video/msm/mdp4_overlay_mddi.c | C | gpl-2.0 | 16,555 |
<?php
/**
* Template Name: Two Column, Right-Sidebar
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when n... | joseph-jalbert/joe_neat | page-templates/template-right-col.php | PHP | gpl-2.0 | 1,499 |
package org.nla.tarotdroid.lib.helpers;
import static com.google.common.base.Preconditions.checkArgument;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Network and internet connexion helper class.
*/
public class ConnexionHelper {
/**
* Chec... | daffycricket/tarotdroid | tarotDroidUiLib/src/main/java/org/nla/tarotdroid/lib/helpers/ConnexionHelper.java | Java | gpl-2.0 | 1,094 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_18) on Tue Nov 02 13:16:53 CET 2010 -->
<TITLE>
com.redhat.rhn.common.filediff Class Hierarchy
</TITLE>
<META NAME="date" CONTENT="2010-11-02">
<LI... | colloquium/spacewalk | documentation/javadoc/com/redhat/rhn/common/filediff/package-tree.html | HTML | gpl-2.0 | 9,249 |
<?php
class SatellitePlugin
{
var $plugin_name;
var $plugin_base;
var $pre = 'Satellite';
var $debugging = false;
var $menus = array();
var $latestorbit = 'jquery.orbit-1.3.1.js';
//var $latestorbit = 'orbit-min.js';
var $cssfile = 'orbit-css.php';
var $cssadmin = 'admin-styles.cs... | diegorojas/encontros.maracatu.org.br | wp-content/plugins/slideshow-satellite/slideshow-satellite-plugin.php | PHP | gpl-2.0 | 26,130 |
# -*- coding: UTF-8 -*-
#/*
# * Copyright (C) 2011 Ivo Brhel
# *
# *
# * 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, or (at your option)
# * any later version.
#... | kodi-czsk/plugin.video.hejbejse.tv | resources/lib/hejbejse.py | Python | gpl-2.0 | 2,611 |
# Wider Gravity Forms Stop Entries
## Download the latest release of this plugin from: https://wordpress.org/plugins/wider-gravity-forms-stop-entries/ or install from your WordPress Dashboard by searching for 'Wider Gravity Forms Stop Entires'.
### Selectively stop Gravity Forms entries being stored on your web serve... | We-Are-Wider/wider-gravity-forms-stop-entries | readme.md | Markdown | gpl-2.0 | 1,203 |
<?php
/**
* Template Name: Full Width Blog
*
* The template for displaying content in full width with no sidebars.
*
*
* @package blogBox WordPress Theme
* @copyright Copyright (c) 2012, Kevin Archibald
* @license http://www.gnu.org/licenses/quick-guide-gplv3.html GNU Public License
* @author Kevin Archib... | aliuwahab/saveghana | wp-content/themes/blogbox/page-full_width_blog.php | PHP | gpl-2.0 | 1,734 |
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package wapp
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<section class="error-404 not-found">
<header cla... | Headlab/wapp | 404.php | PHP | gpl-2.0 | 1,741 |
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 16, 2011 at 10:05 AM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SE... | digitalspy/SQL-Parser | tests/database.sql | SQL | gpl-2.0 | 3,809 |
#
# bzr support for dpkg-source
#
# Copyright © 2007 Colin Watson <[email protected]>.
# Based on Dpkg::Source::Package::V3_0::git, which is:
# Copyright © 2007 Joey Hess <[email protected]>.
# Copyright © 2008 Frank Lichtenheld <[email protected]>
#
# This program is free software; you can redistribute it and/or modif... | CharizTeam/dpkg | scripts/Dpkg/Source/Package/V3/Bzr.pm | Perl | gpl-2.0 | 6,490 |
/****************************************************************************
*
* $Id: vpHinkley.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
* m... | thomas-moulard/visp-deb | src/math/misc/vpHinkley.cpp | C++ | gpl-2.0 | 9,567 |
<?php
/**
* The template for displaying all single posts.
*
* @package srh_framework
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php the_p... | jamiebrwr/srh-theme-framework | single.php | PHP | gpl-2.0 | 678 |
//: containers/MapDataTest.java
package course.containers; /* Added by Eclipse.py */
import java.util.*;
import net.mindview.util.*;
import static net.mindview.util.Print.*;
class Letters implements Generator<Pair<Integer,String>>,
Iterable<Integer> {
private int size = 9;
private int number = 1;
priv... | fengzhongdege/TIJ4 | src/main/java/course/containers/MapDataTest.java | Java | gpl-2.0 | 1,677 |
/****************************************************************************
*
* Copyright (c) 2006 Dave Hylands <[email protected]>
*
* 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... | ptLong/linux-code-collections | avr/Flash-LED-robostix/Hardware.h | C | gpl-2.0 | 6,386 |
<?php
class Listify_Template_Page_Templates {
public function __construct() {
add_filter( 'theme_page_templates', array( $this, 'visual_composer' ) );
}
public function visual_composer( $page_templates ) {
if ( listify_has_integration( 'visual-composer' ) ) {
return $page_templates;
}
unset( $page_tem... | jfrankel-13/findlancer | wp-content/themes/listify/inc/template/class-template-page-templates.php | PHP | gpl-2.0 | 404 |
import socket
import threading
import time
def tcplink(sock, addr):
print 'Accept new connection from %s:%s...' % addr
sock.send('Welcome!')
while True:
data = sock.recv(1024)
time.sleep(1)
if data == 'exit' or not data:
break
sock.send('Hello, %s!' %... | lovekun/Notebook | python/chatroomServer.py | Python | gpl-2.0 | 654 |
import os
import sys
import shutil
import binascii
import traceback
import subprocess
from win32com.client import Dispatch
LAUNCHER_PATH = "C:\\Program Files\\Augur"
DATA_PATH = os.path.join(os.path.expanduser('~'), 'AppData', 'Roaming', "Augur")
PASSFILE = os.path.join(DATA_PATH, "password.txt")
if getattr(sys, 'fro... | AugurProject/augur-launcher | Augur Installer.py | Python | gpl-2.0 | 2,932 |
import unittest
from libs.funcs import *
class TestFuncs(unittest.TestCase):
def test_buildPaths(self):
recPaths, repPaths, rouPaths, corePaths = buildPaths()
findTxt = lambda x, y: x.find(y) > -1
assert findTxt(recPaths["Task"][0], "base")
assert findTxt(recPaths["Department"][0... | ancho85/pylint-playero-plugin | tests/test_funcs.py | Python | gpl-2.0 | 3,850 |
<div class="twelve columns alpha">
<h3 class="headline">Descripción del Proyecto</h3><span class="line"></span><div class="clearfix"></div>
<p>O Parque Tecnológico Itaipu (conocido como PTI) tiene un sitio web que proporciona mucha información sobre las actividades y los proyectos de PTI.
<p>PTI ha identif... | IngCarlosColman/SiteCeltab | CONTENIDOS/espanol/Proyectos/Mejoras del Sitio PTI.php | PHP | gpl-2.0 | 1,129 |
var express = require('express'),
formidable = require('formidable'),
imgur = require('imgur'),
fs = require('fs'),
url = require('url'),
bodyParser = require('body-parser'),
router = express.Router(),
uuid = require('node-uuid'),
db = require('../lib/database'),
tools = require('../... | luigiplr/imgSnap-backend | routes/api.js | JavaScript | gpl-2.0 | 2,487 |
# -*- coding: utf-8 -*-
def outfit():
collection = []
for _ in range(0, 5):
collection.append("Item{}".format(_))
return {
"data": collection,
}
api = [
('/outfit', 'outfit', outfit),
]
| Drachenfels/Game-yolo-archer | server/api/outfits.py | Python | gpl-2.0 | 228 |
var UniteNivoPro = new function() {
var t = this;
var containerID = "slider_container";
var container, arrow_left, arrow_right, bullets_container;
var caption_back, caption_text;
var bulletsRelativeY = "";
/**
* show slider view error, hide all the elements
*/
t.showSliderViewErr... | VS-Studio3/build | administrator/components/com_nivosliderpro/assets/nivopro.js | JavaScript | gpl-2.0 | 22,978 |
#ifndef _UMLNCRELATION_H
#define _UMLNCRELATION_H
#include "UmlBaseNcRelation.h"
#include <qcstring.h>
//This class manages 'relations' between non class objects
//
// You can modify it as you want (except the constructor)
class UmlNcRelation : public UmlBaseNcRelation {
public:
UmlNcRelation(void * id, const ... | gregsmirnov/bouml | genplugouts/sort/cpp/UmlNcRelation.h | C | gpl-2.0 | 409 |
/*
* Copyright (C) 2013-2019 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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.
*
* If the program is linked with ... | ridoo/series-rest-api | spi/src/main/java/org/n52/series/spi/geo/TransformationService.java | Java | gpl-2.0 | 3,637 |
// This file is part of fityk program. Copyright 2001-2013 Marcin Wojdyr
// Licence: GNU General Public License ver. 2+
/// wrapper around MPFIT (cmpfit) library,
/// http://www.physics.wisc.edu/~craigm/idl/cmpfit.html
/// which is Levenberg-Marquardt implementation based on MINPACK-1
#ifndef FITYK_MPFIT_H_
#define F... | wojdyr/fityk | fityk/CMPfit.h | C | gpl-2.0 | 1,270 |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// prototypes declarations
char** split(char *str, char *delimitators);
int main(void)
{
char** result;
char str[] = "1-0:0.0.1(132412515)\n1-0:0.2.3.4(654236517)\n";
result = split(str, "()\n");
for(size_t index = 0; *(result + index); index++)
{
p... | marcelodavid/c_utilities | string/split.c | C | gpl-2.0 | 1,269 |
<?php
/**
* ECSHOP 控制台首頁
* ============================================================================
* 版權所有 2005-2010 上海商派網絡科技有限公司,並保留所有權利。
* 網站地址: http://www.ecshop.com;
* ----------------------------------------------------------------------------
* 這不是一個自由軟件!您只能在不用於商業目的的前提下對程序代碼進行修改和
* 使用;不允許對程序代碼以... | Shallmay14/Qiandynasty | shop/admin/index.php | PHP | gpl-2.0 | 48,360 |
/* Copyright (C) 2022, Specify Collections Consortium
*
* Specify Collections Consortium, Biodiversity Institute, University of Kansas,
* 1345 Jayhawk Boulevard, Lawrence, Kansas, 66045, USA, [email protected]
*
* This program is free software; you can redistribute it and/or
* modify it under the term... | specify/specify6 | src/edu/ku/brc/af/ui/forms/persist/ViewLoader.java | Java | gpl-2.0 | 72,771 |
#!/bin/bash
RRD=/data/mirror/rrd
PNG=/data/mirror/www/size
for file in $RRD/*; do
tree=`basename $file`
tree=${tree/.rrd/}
rrdtool graph $PNG/$tree-week.png --imgformat PNG \
--end now --start end-1w \
"DEF:raw=$file:size:AVERAGE" "CDEF:size=raw,1048576,*" \
"AREA:size#507AAA" -l 0... | osuosl/osuosl-mirror-sync | mirror-stats/mirror-size-graph.sh | Shell | gpl-2.0 | 746 |
/*
Copyright: © 2011 Thomas Stein, CodeLounge.de
<mailto:[email protected]> <http://www.codelounge.de/>
Released under the terms of the GNU General Public License.
You should have received a copy of the GNU General Public License,
along with this software. In the main directory, see: licence.txt
If not, see: <http://... | codelounge/codelounge-exposure-theme | js/exposure.js | JavaScript | gpl-2.0 | 3,408 |
#include "tacticattacker.h"
TacticAttacker::TacticAttacker(WorldModel *worldmodel, QObject *parent) :
Tactic("TacticAttacker", worldmodel, parent)
{
everyOneInTheirPos = false;
maxDistance = sqrt(pow(Field::MaxX*2,2)+pow(Field::MaxY*2,2));
}
RobotCommand TacticAttacker::getCommand()
{
Rob... | mohsen-raoufi/Guidance | src/ai/tactic/tacticattacker.cpp | C++ | gpl-2.0 | 13,212 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.