code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
#! /usr/bin/env python3 ''' given a list of stock price ticks for the day, can you tell me what trades I should make to maximize my gain within the constraints of the market? Remember - buy low, sell high, and you can't sell before you buy. Sample Input 19.35 19.30 18.88 18.93 18.95 19.03 19.00 18.97 18.97 18.98 '''...
benosment/daily-exercises
easy-249.py
Python
gpl-2.0
1,302
<?php /******************************************************************************* Copyright 2005,2009 Whole Foods Community Co-op This file is part of Fannie. Fannie is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
joelbrock/ELFCO_CORE
fannie/item/scaleDelete.php
PHP
gpl-2.0
3,895
package com.yao.app.java.nio.pipe; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.Pipe; public class Test { public static void main(String[] args) { try { Pipe pipe = Pipe.open(); Thread t1 = new Thread(new MessageOutput(pipe)); Thread...
yaolei313/hello-world
utils/src/main/java/com/yao/app/java/nio/pipe/Test.java
Java
gpl-2.0
2,218
################################################################ # LiveQ - An interactive volunteering computing batch system # Copyright (C) 2013 Ioannis Charalampidis # # 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 ...
wavesoft/LiveQ
liveq-jobmanager/jobmanager/io/teamqueue.py
Python
gpl-2.0
1,361
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.SessionState; using System.Data; namespace Schoolxm.html { /// <summary> /// Home 的摘要说明 /// </summary> public class Home : IHttpHandler, IRequiresSessionState { public void ProcessRequest...
zhouchm/School
SchoolAll/SchoolxmWeb/Schoolxm/Home.ashx.cs
C#
gpl-2.0
1,725
<?php $count=0; ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <section id="post-<?php the_ID(); ?>" <?php ++$count%2 ? post_class( 'archive col-1-2' ) : post_class( 'archive col-1-2 reverse' ); ?>> <?php the_post_thumbnail( 'steampunkd_sm-post-thumb' ); ?> <header><a href=...
bekahsealey/steampunkd
content-archive.php
PHP
gpl-2.0
1,429
<?php defined('_JEXEC') or die('Restricted access'); ?> <div class="item"> <a href="javascript:ImageManager.populateFields('<?php echo $this->_tmp_img->path_relative; ?>')"> <img src="<?php echo $this->baseURL.'/'.$this->_tmp_img->path_relative; ?>" width="<?php echo $this->_tmp_img->width_60; ?>" height="...
shafiqissani/Jewelery-Ecommerce-
administrator/components/com_media/views/imageslist/tmpl/default_image.php
PHP
gpl-2.0
657
import random import time from flask import ( request, session, flash, redirect, url_for, Response, render_template, ) from NossiPack.Cards import Cards from NossiPack.User import Userlist from NossiPack.VampireCharacter import VampireCharacter from NossiPack.krypta import DescriptiveError...
x4dr/NossiNet
NossiSite/extra.py
Python
gpl-2.0
9,041
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright held by original author \\/ M anipulation | ------------------...
Unofficial-Extend-Project-Mirror/openfoam-extend-Core-OpenFOAM-1.5-dev
src/OpenFOAM/primitives/Scalar/floatScalar/floatScalar.C
C++
gpl-2.0
1,619
<?php /** * @package Joomla.Administrator * @subpackage com_privacy * * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\HTML\HTMLHelper; use Joomla...
astridx/joomla-cms
administrator/components/com_privacy/tmpl/request/default.php
PHP
gpl-2.0
3,149
## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # https://morningstarsecurity.com/research/whatweb ## Plugin.define do name "ExtremeWare" authors [ "Brendan Coles <bcoles@gmail.c...
urbanadventurer/WhatWeb
plugins/extremeware.rb
Ruby
gpl-2.0
1,295
<?php get_header(); ?> <div id="content" class="grid_9 <?php echo of_get_option('blog_sidebar_pos') ?>"> <?php include_once (TEMPLATEPATH . '/title.php');?> <?php if (have_posts()) : while (have_posts()) : the_post(); // The following determines what the post fo...
hoangluanlee/dlbh
wp-content/themes/theme1762/index.php
PHP
gpl-2.0
1,311
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008-2010 Zuza Software Foundation # # This file is part of Virtaal. # # 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 ...
elric/virtaal-debian-snapshots
virtaal/plugins/autocompletor.py
Python
gpl-2.0
10,937
<?php namespace JasPhp; use JasPhp; Class Jasper { public static function makeJasperReport($module, $report, $parameters) { //print "java -jar ../lib/java/jasphp.jar $module $report $parameters";exit; exec("java -jar ../lib/java/dist/jasphp.jar $module $report $parameters", $return); //print_r($return...
luelher/JasPhp
lib/JasPhp/Jasper.php
PHP
gpl-2.0
625
<?php /** * Authentication library * * Including this file will automatically try to login * a user by calling auth_login() * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Andreas Gohr <andi@splitbrain.org> */ if(!defined('DOKU_INC')) die('meh.'); // some ACL level defines define('A...
brontosaurusrex/dokuwiki-preconfigured
inc/auth.php
PHP
gpl-2.0
42,215
<?php /** * This file contains all functions for creating a database for teachpress * * @package teachpress\core\installation * @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2 or later * @since 5.0.0 */ /** * This class contains all functions for creating a database for teachpress * @package teachpres...
winkm89/teachPress
core/class-tables.php
PHP
gpl-2.0
31,096
(function ($) { function getCsrfTokenForFullShotImage(callback) { $ .get(Drupal.url('rest/session/token')) .done(function (data) { var csrfToken = data; callback(csrfToken); }); } function patchImageFullShot(csrfToken, file, fid) ...
asharnb/dawn
modules/custom/studiobridge_store_images/js/studio-bridge-fullshot-image.js
JavaScript
gpl-2.0
3,011
/*============================================================================= Copyright (c) 2002-2003 Joel de Guzman http://spirit.sourceforge.net/ Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at htt...
Slesa/launchy
old/Launchy_VC7/Plugins/Calcy/Main.cpp
C++
gpl-2.0
3,793
# # The Qubes OS Project, http://www.qubes-os.org # # Copyright (C) 2014-2016 Wojtek Porczyk <woju@invisiblethingslab.com> # Copyright (C) 2016 Marek Marczykowski <marmarek@invisiblethingslab.com>) # Copyright (C) 2016 Bahtiar `kalkin-` Gadimov <bahtiar@gadimov.de> # # This library is free software; you ca...
nrgaway/qubes-core-admin
qubes/vm/templatevm.py
Python
gpl-2.0
4,118
/** * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) * * 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 Lice...
cattleprod/samsung-kernel-gt-i9100
external/webkit/WebCore/wml/WMLInputElement.cpp
C++
gpl-2.0
16,920
# Copyright (C) 2005, Giovanni Bajo # Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, 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; either version 2 # of the...
pdubroy/kurt
build/MacOS/PyInstaller/pyinstaller-svn-r812/hooks/hook-carchive.py
Python
gpl-2.0
1,029
#ifndef AnalysisTool_h #define AnalysisTool_h 1 #include "StackingTool.hh" #include <sstream> // stringstream using namespace std; class AnalysisTool { public: AnalysisTool(); virtual ~AnalysisTool(); virtual void PrintTool(); virtual bool getInterest(); virtual bool getInterest(int partic...
OWoolland/MemoryMappedFileReader
Source/include/AnalysisTool.hh
C++
gpl-2.0
809
<?php /** * The header template file. * @package PaperCuts * @since PaperCuts 1.0.0 */ ?><!DOCTYPE html> <!--[if IE 7]> <html class="ie ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="ie ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if !(IE 7) | !(IE 8) ]><!--> <html <?php l...
udhayarajselvan/matrix
wp-content/themes/papercuts/header.php
PHP
gpl-2.0
4,753
<?php session_start(); $exercise = $_SESSION['exercise']; if($_POST){ unset($exercise[$_POST['id']]); $_SESSION['exercise'] = $exercise; header('Location: ./'); } $workout = $exercise[$_REQUEST['id']]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X...
kevinflaherty/Web-Programming
fitness/exercise/view.php
PHP
gpl-2.0
2,009
<?php /** * Validate form * * @param array $form definition * @param array $data filtered * @return boolean | array ('fildname'=>'error message') */ function validateForm($form, $datafiltered) { $validatedata = null; foreach ($form as $key => $form_field) { // if ($form[$key]['validation'] != nul...
bermartinv/php2015
modules/core/src/core/validateForm.php
PHP
gpl-2.0
2,403
// // ReadEntityBodyMode.cs // // Author: Martin Thwaites (github@my2cents.co.uk) // // Copyright (C) 2014 Martin Thwaites // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restri...
hardvain/mono-compiler
class/System.Web/System.Web/ReadEntityBodyMode.cs
C#
gpl-2.0
1,312
#!/usr/bin/python3 # @begin:license # # Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.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 version 2 of the License, or # (at y...
odahoda/noisicaa
noisicaa/core/ipc_perftest.py
Python
gpl-2.0
1,459
#ifndef INC_FMTLexer_hpp_ #define INC_FMTLexer_hpp_ #include <antlr/config.hpp> /* $ANTLR 2.7.7 (20130428): "format.g" -> "FMTLexer.hpp"$ */ #include <antlr/CommonToken.hpp> #include <antlr/InputBuffer.hpp> #include <antlr/BitSet.hpp> #include "FMTTokenTypes.hpp" #include <antlr/CharScanner.hpp> #include <fstream> #...
olebole/gnudatalanguage
src/FMTLexer.hpp
C++
gpl-2.0
3,373
#include "db/db.h" Database::Database() { this->records_tree_ = nullptr; } void Database::Read(DatabaseReader &reader) { this->records_tree_ = reader.ReadIndex(); } Record *Database::GetRecordsTree() const { return this->records_tree_; } void Database::SetRecordsTree(Record *records_tree) { this->records_tree_...
bramberg/cclinf2
src/db/db.cc
C++
gpl-2.0
339
<?php /** * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful,...
mambax7/257
htdocs/modules/wflinks/testdata/index.php
PHP
gpl-2.0
1,254
<?php /** * @package Expose * @version 3.0.1 * @author ThemeXpert http://www.themexpert.com * @copyright Copyright (C) 2010 - 2011 ThemeXpert * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3 * @file layout.php **/ //prevent direct access defined ('EXPOSE_VERSION') or die (...
jbelborja/deportivo
libraries/expose/core/layout.php
PHP
gpl-2.0
12,235
<?php /* Plugin Name: Social Likes Description: Wordpress plugin for Social Likes library by Artem Sapegin (http://sapegin.me/projects/social-likes) Version: 5.5.7 Author: TS Soft Author URI: http://ts-soft.ru/en/ License: MIT Copyright 2014 TS Soft LLC (email: dev@ts-soft.ru ) Permission is hereby granted, free of c...
tienthai0511/talk
wp-content/plugins/wp-social-likes/wp-social-likes.php
PHP
gpl-2.0
33,776
<?php /** * VuFind Statistics Class for Record Views * * PHP version 5 * * Copyright (C) Villanova University 2009. * * 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. * * Th...
no-reply/cbpl-vufind
module/VuFind/src/VuFind/Statistics/Record.php
PHP
gpl-2.0
4,569
<?php /** * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. */ namespace eZ\Publish\Core\Base\Container\Compiler\Search\Legacy; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInte...
gggeek/ezpublish-kernel
eZ/Publish/Core/Base/Container/Compiler/Search/Legacy/CriteriaConverterPass.php
PHP
gpl-2.0
3,289
<?php global $post; if( tie_get_option( 'archives_socail' ) ):?> <div class="mini-share-post"> <ul> <li><a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php the_permalink(); ?>" data-text="<?php the_title(); ?>" data-via="<?php echo tie_get_option( 'share_twitter_username' ) ?>" d...
axsauze/HackaSoton
wp-content/themes/sahifa/includes/post-share.php
PHP
gpl-2.0
1,973
<?php class Miscinfo_b extends Lxaclass { static $__desc_realname = array("", "", "real_name"); static $__desc_paddress = array("", "", "personal_address"); static $__desc_padd_city = array("", "", "city"); static $__desc_padd_country = array( "", "", "Country", "Country of the Client"); static $__desc_ptelephon...
zuoziqi/KloxoST
httpdocs/lib/client/miscinfolib.php
PHP
gpl-2.0
1,486
/* * File: ShardExceptions.cpp * Author: dagothar * * Created on October 22, 2015, 8:00 PM */ #include "ShardExceptions.hpp" using namespace gripperz::shards;
dagothar/gripperz
src/shards/ShardExceptions.cpp
C++
gpl-2.0
170
/* * AlwaysLowestAdaptationLogic.cpp ***************************************************************************** * Copyright (C) 2014 - VideoLAN authors * * This program 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 ...
sachdeep/vlc
modules/demux/adaptative/logic/AlwaysLowestAdaptationLogic.cpp
C++
gpl-2.0
1,424
package com.oa.bean; public class FeedBackInfo { private Long id; private String feedbackinfo; private String userid; private String date; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFeedbackinfo() { return feedbackinfo; } public void setFeedb...
yiyuweier/OA-project
src/com/oa/bean/FeedBackInfo.java
Java
gpl-2.0
617
<?php include('../../../operaciones.php'); conectar(); apruebadeintrusos(); if($_SESSION['cargo_user']!="Bodeguero"){ header('Location: ../../../login.php'); } ?> <html lang="en"> <head> <title>PNKS Inventario - Estadística de Productos</title> <!-- BEGIN META --> <meta charset="utf-8"> <meta name="viewport"...
DerKow/erp
admin/bodega/informe/estadistica.php
PHP
gpl-2.0
11,126
<?php /** * Vanillicon plugin. * * @author Todd Burry <todd@vanillaforums.com> * @copyright 2009-2017 Vanilla Forums Inc. * @license http://www.opensource.org/licenses/gpl-2.0.php GNU GPL v2 * @package vanillicon */ /** * Class VanilliconPlugin */ class VanilliconPlugin extends Gdn_Plugin { /** * Se...
adrianspeyer/vanilla
plugins/vanillicon/class.vanillicon.plugin.php
PHP
gpl-2.0
4,131
using System.Windows.Controls; namespace HomeControl { /// <summary> /// Interaction logic for UserControl1.xaml /// </summary> public partial class HomeCtrl : UserControl { public HomeCtrl() { InitializeComponent(); // doug's change... } } }
AceSyntax/DnvGitApp
DemoSolution/HomeControl/HomeCtrl.xaml.cs
C#
gpl-2.0
319
package adamros.mods.transducers.item; import java.util.List; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import adamros.mods.transducers.Transducers; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net...
adamros/Transducers
adamros/mods/transducers/item/ItemElectricEngine.java
Java
gpl-2.0
2,146
<?php /** * @file * Opigno Learning Record Store stats - Course content - Course contexts statistics template file * * @param array $course_contexts_statistics */ ?> <div class="lrs-stats-widget" id="lrs-stats-widget-course-content-course-contexts-statistics"> <h2><?php print t('Course context statistics'); ?></...
ksen-pol/univerico
profiles/opigno_lms/modules/opigno/opigno_tincan_api/modules/opigno_tincan_api_stats/templates/course_content/widgets/course_contexts_statistics/course_contexts_statistics.tpl.php
PHP
gpl-2.0
467
showWord(["v. ","vin jòn.<br>"])
georgejhunt/HaitiDictionary.activity
data/words/joni.js
JavaScript
gpl-2.0
33
package lambda; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; public class Esempio extends JFrame { public Esempio() { init(); } private void init() { BorderLayout b=new BorderLayout(); thi...
manuelgentile/MAP
java8/java8_lambda/src/main/java/lambda/Esempio.java
Java
gpl-2.0
663
/* DC++ Widget Toolkit Copyright (c) 2007-2013, Jacek Sieka 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, ...
hjpotter92/dcplusplus
dwt/src/widgets/ProgressBar.cpp
C++
gpl-2.0
1,771
<?php require "tableinitiateclass.php"; require "../queryinitiateclass.php"; $tbl = new AddTable; ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Table index</title> </head> <style> table { width:100%; } </style> <body> <?php // just the headers $array...
cominteract/htmlwrapper_v1
htmlwrapper/table/tableindex.php
PHP
gpl-2.0
3,108
/* You may freely copy, distribute, modify and use this class as long as the original author attribution remains intact. See message below. Copyright (C) 1998-2006 Christian Pesch. All Rights Reserved. */ package slash.carcosts; import slash.gui.model.AbstractModel; /** * An CurrencyModel holds a Currency...
cpesch/CarCosts
car-costs/src/main/java/slash/carcosts/CurrencyModel.java
Java
gpl-2.0
1,184
/** * Ядро булевой логики */ /** * @author Алексей Кляузер <drum@pisem.net> * Ядро булевой логики */ package org.deneblingvo.booleans.core;
AlexAbak/ReversibleComputing
package/src/org/deneblingvo/booleans/core/package-info.java
Java
gpl-2.0
192
package de.superioz.moo.network.client; import de.superioz.moo.network.server.NetworkServer; import lombok.Getter; import de.superioz.moo.api.collection.UnmodifiableList; import java.net.InetSocketAddress; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.u...
Superioz/MooProject
network/src/main/java/de/superioz/moo/network/client/ClientManager.java
Java
gpl-2.0
5,716
import math as mth import numpy as np #---------------------- # J Matthews, 21/02 # This is a file containing useful constants for python coding # # Units in CGS unless stated # #---------------------- #H=6.62606957E-27 HEV=4.13620e-15 #C=29979245800.0 #BOLTZMANN=1.3806488E-16 VERY_BIG=1e50 H=6.6262e-27 HC=1.98587e-...
jhmatthews/panlens
constants.py
Python
gpl-2.0
1,157
using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; namespace WeifenLuo.WinFormsUI.Docking { #region DockPanelSkin classes /// <summary> /// The skin to use when displaying the DockPanel. /// The skin allows custom gradient color schemes to be used when dra...
DragonFiestaTeam/DragonFiesta_Tools
QuestAnalyser/src/Docking/DockPanelSkin.cs
C#
gpl-2.0
14,802
def format_path( str ): while( str.find( '//' ) != -1 ): str = str.replace( '//', '/' ) return str
tencent-wechat/phxsql
phxrpc_package_config/tools/phxsql_utils.py
Python
gpl-2.0
103
document.addEventListener("DOMContentLoaded", function (event) { 'use strict'; var paragraph, url, proxy; paragraph = document.querySelectorAll('p.error_text'); chrome.tabs.query({ currentWindow: true, active: true }, function (tabs) { url = tabs[0].url; if (url.indexOf('chrome://') == 0) { paragraph[0].inne...
joelself/GoogleCacheBrowser
src/popup.js
JavaScript
gpl-2.0
815
package ch.hgdev.toposuite.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Useful static method for manipulating String. * * @author HGdev */ public class StringUtils { public static final String UTF8_BOM = "\uFEFF"; /** * This method assumes that the String contains a n...
hgdev-ch/toposuite-android
app/src/main/java/ch/hgdev/toposuite/utils/StringUtils.java
Java
gpl-2.0
1,224
package org.currconv.services.impl; import java.util.List; import org.currconv.dao.UserDao; import org.currconv.entities.user.User; import org.currconv.services.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transact...
miguel-gr/currency-converter
src/main/java/org/currconv/services/impl/UserServiceImpl.java
Java
gpl-2.0
738
package com.debugtoday.htmldecoder.output; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.List; import java.util.regex.Ma...
zydecx/htmldecoder
src/main/java/com/debugtoday/htmldecoder/output/AbstractFileOutput.java
Java
gpl-2.0
4,685
/* MobileRobots Advanced Robotics Interface for Applications (ARIA) Copyright (C) 2004, 2005 ActivMedia Robotics LLC Copyright (C) 2006, 2007, 2008, 2009 MobileRobots Inc. Copyright (C) 2010, 2011 Adept Technology, Inc. This program is free software; you can redistribute it and/or modify it under the terms o...
admo/aria
arnetworking/ArServerModeRatioDrive.cpp
C++
gpl-2.0
17,363
package com.networkprofiles.widget; /** Service to refresh the widget **/ import android.app.Service; import android.appwidget.AppWidgetManager; import android.content.Intent; import android.graphics.Color; import android.os.IBinder; import android.provider.Settings; import android.widget.RemoteViews; import com.netwo...
ektodorov/ShortcutsOfPower_Android
src/com/networkprofiles/widget/NPWidgetService.java
Java
gpl-2.0
5,416
#!/usr/bin/env python3 # Copyright (c) 2008-9 Qtrac Ltd. All rights reserved. # This program or module 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 # version 3 of the Lic...
paradiseOffice/Bash_and_Cplus-plus
CPP/full_examples/pyqt/chap03/item.py
Python
gpl-2.0
3,660
<?php /** * The template for displaying all posts having layout like: sidebar/content/sidebar. * * @package Sage Theme */ ?> <?php get_sidebar('second'); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> ...
jbs321/wahad-humus
wp-content/themes/sage/layouts/blog/sidebar-content-sidebar.php
PHP
gpl-2.0
774
/* GNU ddrescue - Data recovery tool Copyright (C) 2004-2019 Antonio Diaz Diaz. 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 optio...
mruffalo/ddrescue
mapbook.cc
C++
gpl-2.0
6,040
/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation * (Software) available for public use and benefit with the expectation * that others will use, modify and enhance the Software and contribute * those enh...
JaeyongYoo/VisualXSwitch
elements/local/OpenFlow/lib/csum.cc
C++
gpl-2.0
4,507
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @author: Will """ from django import forms from app01 import models class ImportFrom(forms.Form): HOST_TYPE=((1,"001"),(2,"002")) #替換爲文件 host_type = forms.IntegerField( widget=forms.Select(choices=HOST_TYPE) ) hostname = f...
willre/homework
day19/web/app01/forms/home.py
Python
gpl-2.0
723
package net.minecartrapidtransit.path.launcher; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; public class FileStoreUtils { private String version; public FileStoreUtils(String versionFile) throws IOException{ BufferedReader br = new BufferedReader(...
MinecartRapidTransit/MRTPath2
launcher/src/main/java/net/minecartrapidtransit/path/launcher/FileStoreUtils.java
Java
gpl-2.0
1,412
/****************************************************************************** * Icinga 2 * * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/) * * * ...
zearan/icinga2
lib/livestatus/endpointstable.cpp
C++
gpl-2.0
4,193
<?php /** * @file * Banana class. */ namespace Drupal\oop_example_12\BusinessLogic\Fruit; /** * Banana class. */ class Banana extends Fruit { /** * Returns color of the object. */ public function getColor() { return t('yellow'); } }
nfouka/poo_d8
oop_examples/oop_example_12/src/BusinessLogic/Fruit/Banana.php
PHP
gpl-2.0
258
<?php /** * The template for displaying the footer. * * @package WordPress */ ?> </div> </div> <!-- Begin footer --> <div id="footer"> <?php $pp_footer_display_sidebar = get_option('pp_footer_display_sidebar'); if(!empty($pp_footer_display_sidebar)) { $pp_footer_style = get_op...
Seizam/atelierweb
wp-content/themes/nemesis/footer.php
PHP
gpl-2.0
4,069
#include "logging.hpp" #include <fstream> #include <boost/log/sinks/text_file_backend.hpp> #include <boost/log/utility/setup/file.hpp> #include <boost/log/utility/setup/common_attributes.hpp> #include <boost/log/sinks.hpp> namespace p2l { namespace common { //=====================================================...
velezj/pods.ptp.object-search.common
src/logging.cpp
C++
gpl-2.0
2,078
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.dialect.unique; import org.hibernate.boot.Metadata; import o...
lamsfoundation/lams
3rdParty_sources/hibernate-core/org/hibernate/dialect/unique/InformixUniqueDelegate.java
Java
gpl-2.0
1,458
showWord(["","Wayòm ki te nan pati Sidwès peyi Ispayola. Se Boyekyo ki te chèf endyen nan wayòm sa a. Kapital wayòm sa a te Lagwana, kounye a yo rele l Leogàn." ])
georgejhunt/HaitiDictionary.activity
data/words/zaragwa.js
JavaScript
gpl-2.0
169
#include "steadystatetest.hh" #include <models/REmodel.hh> #include <models/LNAmodel.hh> #include <models/IOSmodel.hh> #include <models/sseinterpreter.hh> #include <models/steadystateanalysis.hh> #include <eval/jit/engine.hh> #include <parser/sbml/sbml.hh> using namespace iNA; SteadyStateTest::~SteadyStateTest() { ...
hmatuschek/intrinsic-noise-analyzer
test/steadystatetest.cc
C++
gpl-2.0
2,341
/**! * The MIT License * * Copyright (c) 2010-2012 Google, Inc. http://angularjs.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitati...
HediMaiza/SmoothieParis
js/vendor/google-maps.js
JavaScript
gpl-2.0
15,335
<?php die("Access Denied"); ?>#x#s:4516:" 1448241693 <!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="zh-tw" lang="zh-tw"> <head> <script type="text/javascript"> var siteurl='/'; ...
ForAEdesWeb/AEW32
cache/t3_pages/e8efe7956197beb28b5e158ad88f292e-cache-t3_pages-160aa8f95d30404c7ac89ff054f766d9.php
PHP
gpl-2.0
4,524
<?php foreach ($content as $key => $value): ?> <div class="product-item-viewed product-node-id-<?php print $key; ?>"> <?php print l($value['title'], $value['path']); ?> <?php if (isset($value['image'])): ?> <div class='image-viewed'><img src='<?php print $value['image']; ?>' /></div> <?php...
Fant0m771/commerce
sites/all/modules/custom/last_viewed_products/templates/last_viewed_products.tpl.php
PHP
gpl-2.0
363
package kieranvs.avatar.bending.earth; import java.util.Arrays; import java.util.concurrent.ConcurrentHashMap; import net.minecraft.block.Block; import net.minecraft.entity.EntityLivingBase; import net.minecraft.init.Blocks; import kieranvs.avatar.Protection; import kieranvs.avatar.bending.Ability; import...
kieranvs/Blockbender
Blockbender/src/kieranvs/avatar/bending/earth/EarthStream.java
Java
gpl-2.0
4,514
/***************************************************************** Copyright (c) 1996-2000 the kicker authors. See file AUTHORS. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrictio...
iegor/kdebase
kicker/menuext/recentdocs/recentdocsmenu.cpp
C++
gpl-2.0
4,232
# Portions Copyright (c) Facebook, Inc. and its affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2. # match.py - filename matching # # Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others # # This software may be used and distribute...
facebookexperimental/eden
eden/hg-server/edenscm/mercurial/match.py
Python
gpl-2.0
53,143
import numpy as np from OpenGL.GL import * from OpenGL.GLU import * import time import freenect import calibkinect import pykinectwindow as wxwindow # I probably need more help with these! try: TEXTURE_TARGET = GL_TEXTURE_RECTANGLE except: TEXTURE_TARGET = GL_TEXTURE_RECTANGLE_ARB if not 'win' in globals(): ...
Dining-Engineers/left-luggage-detection
misc/demo/ipython/demo_pclview.py
Python
gpl-2.0
5,742
using GitHubWin8Phone.Resources; namespace GitHubWin8Phone { /// <summary> /// Provides access to string resources. /// </summary> public class LocalizedStrings { private static AppResources _localizedResources = new AppResources(); public AppResources LocalizedResources { get { r...
davidkuhner/GitHubWin8
GitHubWin8Phone/LocalizedStrings.cs
C#
gpl-2.0
360
showWord(["np. ","Avoka, politisyen. Madanm prezidan Jean Bertrand Aristide." ])
georgejhunt/HaitiDictionary.activity
data/words/TwouyoMildr~ed_Trouillot.js
JavaScript
gpl-2.0
80
package org.erc.qmm.mq; import java.util.EventListener; /** * The listener interface for receiving messageReaded events. * The class that is interested in processing a messageReaded * event implements this interface, and the object created * with that class is registered with a component using the * component's ...
dubasdey/MQQueueMonitor
src/main/java/org/erc/qmm/mq/MessageReadedListener.java
Java
gpl-2.0
659
import re p = re.compile(r'(\w+) (\w+)(?P<sign>.*)', re.DOTALL) print re.DOTALL print "p.pattern:", p.pattern print "p.flags:", p.flags print "p.groups:", p.groups print "p.groupindex:", p.groupindex
solvery/lang-features
python/use_lib/re.4.py
Python
gpl-2.0
204
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
whiteboss/motora
library/Qlick/Sauth/SocialException.php
PHP
gpl-2.0
2,575
/* * 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...
CzBiX/Telegram
TMessagesProj/src/main/java/com/google/android/exoplayer2/ext/flac/LibflacAudioRenderer.java
Java
gpl-2.0
2,743
<?php /** * @package Windwalker.Framework * @subpackage class * * @copyright Copyright (C) 2012 Asikart. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Generated by AKHelper - http://asikart.com */ // no direct access defined('_JEXEC') or...
ForAEdesWeb/AEW32
administrator/components/com_quickcontent/windwalker/html/grid.php
PHP
gpl-2.0
9,645
<?php class Metabox { public static $boxes = array(); /** * @static * @param $type * @param $options * @return Metabox */ public static function factory($type, $options = null) { $parts = explode('_', $type); array_walk( $parts, function(&$item){ $item = ucfirst($item); } ); $class =...
vladcazacu/Wordpress-HMVC
wp-content/themes/hmvc/core/classes/metabox.php
PHP
gpl-2.0
805
<?php /** * General API for generating and formatting diffs - the differences between * two sequences of strings. * * The original PHP version of this code was written by Geoffrey T. Dairiki * <dairiki@dairiki.org>, and is used/adapted with his permission. * * Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki...
ajspencer/NCSSM-SG-WordPress
wp-includes/Text/Diff.php
PHP
gpl-2.0
11,727
/* Stuart Bowman 2016 This class contains the graph nodes themselves, as well as helper functions for use by the generation class to better facilitate evaluation and breeding. It also contains the class definition for the nodes themselves, as well as the A* search implementation used by the genetic algorithm to check...
stuartsoft/gngindiestudy
Assets/Scripts/Graph.cs
C#
gpl-2.0
12,517
<?php function migrate_blog() { /* * $tabRub[0] = "Annonces"; $tabRub[1] = "Partenariat"; $tabRub[2] = "Vie d'Anciela"; $tabRub[3] = "Autres"; * */ $categories = array('annonces','partenariat','anciela','autres'); $categoryNames = array('annonces'=>"Annonces",'partenariat'=>'Partenari...
Anciela/anciela.info
wp-content/themes/anciela/inc/anciela-setup.php
PHP
gpl-2.0
22,406
#include "Input.h" #include "Core.h" #include "Memory.h" #include "Cpu.h" //Gameboy keys: //[Up][Left][Right][Down][A][B][Start][Select] //Mapped to standard keyboard keys: //[Up][Left][Right][Down][Z][X][Enter][RShift] //Mapped to standard Xbox controller buttons: //[Up][Left][Right][Down][A][X][Start][Select] // ...
Daniel-McCarthy/GameBeak
GameBeak/src/Input.cpp
C++
gpl-2.0
8,311
<?php /** * Interactive image shortcode template */ ?> <div class="mkd-interactive-image <?php echo esc_attr($classes)?>"> <?php if($params['link'] != '') { ?> <a href="<?php echo esc_url($params['link'])?>"></a> <?php } ?> <?php echo wp_get_attachment_image($image,'full'); ?> <?php if($params['add_checkmar...
peerapat-pongnipakorn/somphoblaws
wp-content/themes/libero/framework/modules/shortcodes/interactive-image/templates/interactive-image-template.php
PHP
gpl-2.0
443
from models import Connection from django import forms class ConnectionForm(forms.ModelForm): class Meta: model = Connection exclude = ('d_object_id',)
CIGNo-project/CIGNo
cigno/mdtools/forms.py
Python
gpl-3.0
173
// created on 13/12/2002 at 22:07 using System; namespace xServer.Core.NAudio.Mixer { /// <summary> /// Custom Mixer control /// </summary> public class CustomMixerControl : MixerControl { internal CustomMixerControl(MixerInterop.MIXERCONTROL mixerControl, IntPtr mixerHandle, MixerFlags mixerHandleType,...
mirkoBastianini/Quasar-RAT
Server/Core/NAudio/Mixer/CustomMixerControl.cs
C#
gpl-3.0
873
package org.mivotocuenta.client.service; import org.mivotocuenta.server.beans.Conteo; import org.mivotocuenta.shared.UnknownException; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath("servicegestionconteo") public interf...
jofrantoba/mivotocuenta
src/org/mivotocuenta/client/service/ServiceGestionConteo.java
Java
gpl-3.0
431
# -*- coding: utf-8 -*- # pylint: disable=too-many-lines,too-complex,too-many-branches # pylint: disable=too-many-statements,arguments-differ # needs refactoring, but I don't have the energy for anything # more than a superficial cleanup. #------------------------------------------------------------------------------- ...
nihlaeth/voicetrainer
voicetrainer/midi.py
Python
gpl-3.0
42,017
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
ctrlaltdel/neutrinator
vendor/openstack/tests/unit/cloud/test_volume.py
Python
gpl-3.0
22,754
# frozen_string_literal: true module ActiveJob # Returns the version of the currently loaded Active Job as a <tt>Gem::Version</tt> def self.gem_version Gem::Version.new VERSION::STRING end module VERSION MAJOR = 5 MINOR = 2 TINY = 6 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].comp...
BeGe78/esood
vendor/bundle/ruby/3.0.0/gems/activejob-5.2.6/lib/active_job/gem_version.rb
Ruby
gpl-3.0
344
require 'y_support/all' # Places are basically glorified variables, with current contents (marking), and # default contents (default_marking). # class Place attr_reader :name, :default_marking attr_accessor :marking def initialize name, default_marking=0 @name, @default_marking = name, default_marking end ...
boris-s/y_nelson
test/mongoid_example.rb
Ruby
gpl-3.0
2,409