repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
wavemoth/wavemoth | wavemoth/test/test_interpolative_decomposition.py | 2767 | import healpix
import numpy as np
from matplotlib import pyplot as plt
from numpy import pi
from nose.tools import eq_, ok_
from numpy.testing import assert_almost_equal
from ..interpolative_decomposition import *
from cmb import as_matrix
def test_rank_1():
x, y = np.ogrid[1:2:100j, 0:2:50j]
A = x**2 * np.... | gpl-2.0 |
alarulrajan/CodeFest | test/com/technoetic/xplanner/acceptance/web/IterationImportStoriesTestScript.java | 9448 | /*
* Created by IntelliJ IDEA.
* User: sg426575
* Date: May 12, 2005
* Time: 10:49:29 PM
*/
package com.technoetic.xplanner.acceptance.web;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.D... | gpl-2.0 |
serghei/kde3-kdebase | kicker/menuext/kdeprint/print_mnu.cpp | 4828 | /*****************************************************************
Copyright (c) 1996-2001 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... | gpl-2.0 |
Qogir/yijizhang | src/main/java/cn/ahyc/yjz/model/DictTypeExample.java | 19226 | package cn.ahyc.yjz.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DictTypeExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dict_type
*
* @mbggenerated Wed Sep 30 16:20:19 CST 2015
... | gpl-2.0 |
favedit/MoPlatform | mo-3-logic/src/logic-java/org/mo/logic/schedule/ILogicScheduleGroupConsole.java | 211 | package org.mo.logic.schedule;
import org.mo.com.xml.IXmlObject;
import org.mo.eng.store.IXmlConfigConsole;
public interface ILogicScheduleGroupConsole
extends
IXmlConfigConsole<IXmlObject>
{
}
| gpl-2.0 |
surajjumpy/CLD | bin/Debug/APAC/B_cp.cpp | 1487 | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define inf 1000000000
int main()
{
int t,p=0;
cin>>t;
while (t--){
int n,m;
cin>>n>>m;
map<pair<int,int>,vector<int> > mm;
map<int,int> mmm;
int mat[n+1][n+1],used[n+1][n+1];
vector<int> num[n+1][n+1];
for (int i =... | gpl-2.0 |
tramboi/scummvm-test | engines/lure/menu.cpp | 19567 | /* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of ... | gpl-2.0 |
epicsdeb/rtems-gcc-newlib | libstdc++-v3/testsuite/ext/stdio_sync_filebuf/char/1.cc | 1908 | // 2003-05-01 Petur Runolfsson <peturr02@ru.is>
// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the... | gpl-2.0 |
mas90/pygopherd | pygopherd/handlers/url.py | 3915 | # pygopherd -- Gopher-based protocol server in Python
# module: Special handling for URLs
# Copyright (C) 2002 John Goerzen
# <jgoerzen@complete.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softwa... | gpl-2.0 |
flyroom/PeerfactSimKOM_Clone | src/org/peerfact/impl/service/aggregation/skyeye/visualization/SkyNetVisualization.java | 17908 | /*
* Copyright (c) 2012-2013 Open Source Community - <http://www.peerfact.org>
* Copyright (c) 2011-2012 University of Paderborn - UPB
* Copyright (c) 2005-2011 KOM - Multimedia Communications Lab
*
* This file is part of PeerfactSim.KOM.
*
* PeerfactSim.KOM is free software: you can redistribute it and/or modi... | gpl-2.0 |
TNCY-3A-IL/PLBC | PharmGKB/src/pharmgkb/Stats.java | 631 | package pharmgkb;
public class Stats {
private int nbWarning;
private int nbAnnotation;
private int nbGenes;
public Stats () {
nbWarning = 0;
nbAnnotation = 0;
nbGenes = 0;
}
public void incWarning() {
nbWarning ++;
}
public void incAnnot() {
nbAnnotation ++;
}
public void incGene() {
n... | gpl-2.0 |
script-solution/Boardsolution | standalone.php | 1135 | <?php
/**
* The standalone-entry-point for Boardsolution
*
* @package Boardsolution
* @subpackage main
*
* Copyright (C) 2003 - 2012 Nils Asmussen
*
* 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 Softw... | gpl-2.0 |
glix/namestrap | wp-content/plugins/popups/public/includes/class-spu-rules.php | 15402 | <?php
/*
* Spu Rules
* Class that will compare rules and determine if popup needs to show
* @since: 2.0
*/
class Spu_Rules
{
/*
* __construct
* Add all the filters to use later
*/
function __construct()
{
// User
add_filter('spu/rules/rule_match/user_type', array($this, 'rule_match_user_type'),... | gpl-2.0 |
AdoriaStudios/SpaceRescueAndroid | SpaceRescue/desktop/src/com/adoriastudios/spacerescue/desktop/TextureSetup.java | 402 | package com.adoriastudios.spacerescue.desktop;
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
public class TextureSetup {
public static void main(String[] args){
TexturePacker.process("E:/Development/Android/SpaceRescueAndroid/SpaceRescue/android/assets/terrain",
"E:/Development/Android/SpaceRescue... | gpl-2.0 |
GenomicParisCentre/teolenn | src/main/java/fr/ens/transcriptome/teolenn/measurement/UnicityMeasurement.java | 14940 | /*
* Teolenn development code
*
* This code may be freely distributed and modified under the
* terms of the GNU General Public License version 2 or later. This
* should be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/licenses/gpl-2.0.txt
*
* Copyrig... | gpl-2.0 |
bobek/minisapserver-debian | parser.cpp | 9261 | /*****************************************************************************
* parser.cpp : SAP configuration file parser
****************************************************************************
* Copyright (C) 1998-2005 VideoLAN
* $Id: parser.cpp 345 2009-01-11 19:50:41Z courmisch $
*
* Authors: Arnaud Sch... | gpl-2.0 |
jbytheway/konig | konig/terminal/checkers.hpp | 4654 | #ifndef KONIG_TERMINAL_CHECKERS_HPP
#define KONIG_TERMINAL_CHECKERS_HPP
#include <unordered_map>
#include <konig/terminal/checker.hpp>
namespace konig { namespace terminal {
namespace checkers {
class BidChecker : public Checker {
public:
typedef Bid return_type;
BidChecker(boost::any& r, Rulese... | gpl-3.0 |
jbundle/jbundle | base/screen/view/xml/src/main/java/org/jbundle/base/screen/view/xml/XComboBox.java | 937 | /*
* Copyright © 2012 jbundle.org. All rights reserved.
*/
package org.jbundle.base.screen.view.xml;
/**
* @(#)ScreenField.java 0.00 12-Feb-97 Don Corley
*
* Copyright © 2012 tourgeek.com. All Rights Reserved.
* don@tourgeek.com
*/
import org.jbundle.base.screen.model.ScreenField;
import org.jbundle.mode... | gpl-3.0 |
NineBitsLTD/Portfolio | source/Core/User.php | 366 | <?php
namespace Core;
abstract class User{
/**
* Пользователь авторизирован
*
* @var boolean
*/
public $IsLogged = false;
/**
*
* @var array
*/
public $Data = [];
public function Login(){
}
public function Logout(){
\Registry::$Session-... | gpl-3.0 |
Mow3l/LeafPic | app/src/main/java/org/horaapps/leafpic/util/StringUtils.java | 5581 | package org.horaapps.leafpic.util;
import android.content.Context;
import android.os.Build;
import android.support.annotation.Nullable;
import android.text.Html;
import android.text.Spanned;
import android.webkit.MimeTypeMap;
import android.widget.Toast;
import org.horaapps.liz.ColorPalette;
import java.util.Date;
i... | gpl-3.0 |
Donkyhotay/MoonPy | zope/app/tests/functional.py | 180 | # This module has moved to zope.app.testing
# and will go away in Zope 3.5
import zope.deprecation
zope.deprecation.moved(
'zope.app.testing.functional',
"Zope 3.5",
)
| gpl-3.0 |
ethereum/mist | modules/clientBinaryManager.js | 10268 | const _ = require('./utils/underscore.js');
const Q = require('bluebird');
const fs = require('fs');
const { app, dialog } = require('electron');
const got = require('got');
const path = require('path');
const Settings = require('./settings');
const Windows = require('./windows');
const ClientBinaryManager = require('e... | gpl-3.0 |
PtY1968/smbind-ng | src/recordwrite.php | 2577 | <?php
require_once "include.php";
$znum = (intval($_GET['i']) > 0) ? intval($_GET['i']) : NULL;
if ($znum) {
if ($user->isOwned($znum, 'master', 'live')) {
$zone = new masterZone(array('id' => $znum));
$zone->loadZone();
$zonerec = $zone->getZoneHead();
$zrec = array();
for... | gpl-3.0 |
jabber-at/hp | hp/core/static/lib/tinymce/src/plugins/media/test/ts/browser/NoAdvancedTabTest.ts | 2507 | import { Pipeline, Chain, Logger, UiFinder, RawAssertions } from '@ephox/agar';
import { UnitTest } from '@ephox/bedrock';
import { UiChains, Editor } from '@ephox/mcagar';
import Plugin from 'tinymce/plugins/media/Plugin';
import Theme from 'tinymce/themes/modern/Theme';
import { Body } from '@ephox/sugar';
const cN... | gpl-3.0 |
anonymouskeyboard47/Tripodmaps | WebTest/demos/Demo1.aspx.cs | 709 | using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using EGIS.ShapeFileLib;
... | gpl-3.0 |
BoGoEngine/bogo-osx | setup.py | 350 | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['main.py']
DATA_FILES = ['icon.pdf']
OPTIONS = {
'argv_emulation': True,
'plist': 'Info.plist',
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
... | gpl-3.0 |
leafsoftinfo/pyramus | persistence/src/main/java/fi/pyramus/dao/clientapplications/ClientApplicationAccessTokenDAO.java | 4746 | package fi.pyramus.dao.clientapplications;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Root;
import fi.pyramus.dao.PyramusEntityDAO;
import fi.pyramus.domainmod... | gpl-3.0 |
dichen001/Go4Jobs | JackChen/Google/239. Sliding Window Maximum.py | 672 | class Solution(object):
def maxSlidingWindow(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
"Deques have O(1) speed for appendleft() and popleft() while lists have O(n) performance for insert(0, value) and pop(0)."
window = []
... | gpl-3.0 |
chocochipz/opencart-indonesia | upload/admin/language/indonesia/mail/order.php | 462 | <?php
// Text
$_['text_subject'] = '%s - Update Pesanan %s';
$_['text_order'] = 'ID Pesanan:';
$_['text_date_added'] = 'Tanggal Pemesanan:';
$_['text_order_status'] = 'Pesanan Anda telah diperbarui untuk status berikut:';
$_['text_comment'] = 'Komentar untuk pesanan Anda:';
$_['text_link'] = ... | gpl-3.0 |
sanke69/eDigitalWorld | fr.xs.DigitalWorld.client/src/main/java/fr/xs/DigitalWorld/sdk/map/fx/DigitalMapViewer.java | 1668 | package fr.xs.DigitalWorld.sdk.map.fx;
import fr.xs.DigitalWorld.sdk.map.fx.widgets.HeaderPanel;
import fr.xs.DigitalWorld.sdk.map.fx.widgets.RightPanel;
import fr.xs.jtk.graphics.fx2d.BoundedScene2D;
import fr.xs.jtk.graphics.fx2d.controls.BoundedScene2DController;
import javafx.scene.layout.AnchorPane;
import javafx... | gpl-3.0 |
evernote/zing | pootle/apps/pootle_statistics/urls.py | 514 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.conf.urls import url
from . imp... | gpl-3.0 |
Yuutakasan/SugarCRM-5.5.1-CE-JA-Dev | modules/InboundEmail/EditView.php | 13809 | <?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*********************************************************************************
* SugarCRM is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2010 SugarCRM Inc.
*
* This program is free so... | gpl-3.0 |
jotajunior/lyla | media/js/hoverIntent.js | 3283 | // JavaScript Document
(function($){
/* hoverIntent by Brian Cherne */
$.fn.hoverIntent = function(f,g) {
// default configuration options
var cfg = {
sensitivity: 7,
interval: 100,
timeout: 0
};
// override configuration options with user supplied object
cfg = $.extend(cfg, g ? { over... | gpl-3.0 |
plachta11b/blocklog_counter | src/connection.py | 992 | import mysql.connector
from mysql.connector import errorcode
class Connection:
config = None
def __init__(self, config):
self.config = config
###
### Get connection by database name
###
def get_connection(self, database):
if database == "source":
connection_configuration = self.config.get_source_conne... | gpl-3.0 |
Sarius997/Multiplayer-PD | src/com/sarius/multiplayer_pd/actors/blobs/ParalyticGas.java | 1719 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2015 Evan Debenham
*
* 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 ver... | gpl-3.0 |
mswf/game-a-week | GAW-Unity/Assets/Weeks/Week04/Scripts/Gameplay/LootHolder.cs | 3818 | using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace Week04
{
public enum ResourceType
{
Gold,
Food
}
[System.Serializable]
public class ResourceContainer
{
[System.Serializable]
protected struct Resource... | gpl-3.0 |
WAPOSAT/WP2 | require/Measurement.class.php | 2746 | <?php
//require_once ("../require/conexion_class.php");
class Measurement {
private $_conexion;
public function __construct(){
$this->_conexion = new conexion();
}
public function get_day ($id_sensor,$date){
$sql = "SELECT * FROM measurement WHERE id_sensor=".$id_sensor." AND date BET... | gpl-3.0 |
mheap/ansible | lib/ansible/plugins/connection/winrm.py | 30176 | # (c) 2014, Chris Church <chris@ninemoreminutes.com>
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = """
author: Ansible Core Te... | gpl-3.0 |
xmnlab/minilab | arch/socket_arch/async_daq_multi_layer/async_daq.py | 3310 | # -*- coding: utf-8 -*-
"""
Async module to server data from Acquisition Tasks through Ring Buffers
"""
from __future__ import print_function, division
from random import randint
from time import sleep
import asyncore
import socket
import sys
import platform
# internal
sys.path.append('../../../')
from acq_daq.ni.ac... | gpl-3.0 |
RobinHood70/HoodBot | WallE/Base/Inputs/LogEventsInput.cs | 1622 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member (no intention to document this file)
namespace RobinHood70.WallE.Base
{
using System;
using RobinHood70.CommonCode;
#region Public Enumerations
[Flags]
public enum LogEventsProperties
{
None = 0,
Ids = 1,
Title = 1 <... | gpl-3.0 |
allthroughthenight/aces | python/drivers/breakwater_Hudson.py | 8988 | import sys
import math
sys.path.append('../functions')
from base_driver import BaseDriver
from helper_objects import BaseField
import USER_INPUT
from EXPORTER import EXPORTER
## ACES Update to python
#-------------------------------------------------------------
# Driver for Breakwater Design Using Hudson and Relate... | gpl-3.0 |
Traderain/Wolven-kit | WolvenKit.CR2W/Types/W3/RTTIConvert/W3PortalConfirmationPopupData.cs | 711 | using System.IO;
using System.Runtime.Serialization;
using WolvenKit.CR2W.Reflection;
using FastMember;
using static WolvenKit.CR2W.Types.Enums;
namespace WolvenKit.CR2W.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class W3PortalConfirmationPopupData : ConfirmationPopupData
{
public W3PortalConfirmat... | gpl-3.0 |
csob/paymentgateway | Integration Examples/eAPI v1.6/java/eAPI-v16-connector/src/main/java/cz/monetplus/mips/eapi/v16/modes/PaymentRefundMode.java | 1544 | package cz.monetplus.mips.eapi.v16.modes;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import cz.monetplus.mips.eapi.v16.ArgsConfig;
import cz.monetpl... | gpl-3.0 |
iamareebjamal/open-event-orga-app | app/src/main/java/com/eventyay/organizer/core/share/ShareEventFragment.java | 5578 | package com.eventyay.organizer.core.share;
import android.arch.lifecycle.ViewModelProvider;
import android.arch.lifecycle.ViewModelProviders;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUt... | gpl-3.0 |
ZeroOne71/ql | 02_ECCentral/03_Service/BizEntity/PO/PurchaseOrder/CostChangeItemsInfo.cs | 1613 | using ECCentral.BizEntity.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ECCentral.BizEntity.PO
{
/// <summary>
/// 成本变价单明细信息
/// </summary>
public class CostChangeItemsInfo : ICompany
{
/// <summary>
/// 系统编号
/// </s... | gpl-3.0 |
krisztiankis/dcf-exercises | src/test/java/hu/unimiskolc/iit/distsys/PMFiller.java | 3219 | package hu.unimiskolc.iit.distsys;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import hu.mta.sztaki.lpds.cloud.simulator.Timed;
import hu.mta.sztaki.lpds.cloud.simulator.iaas.IaaSService;
import hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine;
import hu.mta.szta... | gpl-3.0 |
CCChapel/ccchapel.com | CMS/CMSModules/ContactManagement/Pages/Tools/Contact/Merge_Suggested.aspx.cs | 749 | using System;
using CMS.Core;
using CMS.OnlineMarketing;
using CMS.UIControls;
// Edited object
[EditedObject(ContactInfo.OBJECT_TYPE, "contactId")]
[Security(Resource = ModuleName.ONLINEMARKETING, UIElements = "EditContact;ContactMerge;SuggestedMerges")]
public partial class CMSModules_ContactManagement_Pages_Tools... | gpl-3.0 |
Ignigena/bethel-dashboard | core/lib/Drupal/Core/Form/FormBuilder.php | 78173 | <?php
/**
* @file
* Contains \Drupal\Core\Form\FormBuilder.
*/
namespace Drupal\Core\Form;
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Utility\NestedArray;
use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\Url;
use Drupal\Core\Access\CsrfTokenGenerator;
use Drupal\Core\Extension\Modu... | gpl-3.0 |
hasibsahibzada/quran.com-frontend | src/locale/fr.js | 3904 | // jscs:disable disallowQuotedKeysInObjects
export default {
messages: {
local: 'french',
'local.siteLocale': 'Langue du Site',
'local.changeLocal': 'Choisir la langue du site',
'local.nativeName': 'Français',
'local.selectLabel': 'Langue',
'setting.title': 'Paramètres',
'setting.chapters'... | gpl-3.0 |
dryabkov/activiti-modeler-experiment | platform extensions/bpmn20xmlbasic/src/de/hpi/bpmn2_0/model/data_object/DataStore.java | 4512 | /*******************************************************************************
* Signavio Core Components
* Copyright (C) 2012 Signavio 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 Founda... | gpl-3.0 |
SabrinaMarkon/PHPSS-Childrens-Art-Program-Parent-Site | DB/DB.php | 38193 | CREATE TABLE `adminsettings` (
id integer unsigned not null primary key auto_increment,
adminuser varchar(255) not null,
adminpass varchar(255) not null,
adminname varchar(255) not null,
adminemail varchar(255) not null,
sitename varchar(255) not null,
domain varchar(255) not null,
adminpaypal varchar(255) not null,
) ... | gpl-3.0 |
gohdan/DFC | known_files/hashes/bitrix/wizards/bitrix/demo/scripts/select_steps.php | 61 | Bitrix 16.5 Business Demo = b11d9bc96ceb661289bef01940f443da
| gpl-3.0 |
ErasRasmuson/LA | LogDig/LogFilesData.py | 13940 | # -*- coding: cp1252 -*-
"""
###############################################################################
HEADER: LogFilesData.py
AUTHOR: Esa Heikkinen
DATE: 04.07.2018
DOCUMENT: -
VERSION: "$Id$"
REFERENCES: -
PURPOSE:
CHANGES: "$Log$"
###################################################... | gpl-3.0 |
xingh/openalp | src/net/openalp/core/LexiconDAO.java | 4669 | /**
* This file is part of OpenALP.
*
* OpenALP is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenALP is di... | gpl-3.0 |
vishalvijay/hacks | converging_maze/neareset_meating_cell/a.rb | 459 | n = gets.chomp.to_i
arr = gets.chomp.split(" ").map &:to_i
xy = gets.chomp.split(" ")
x = xy[0].to_i
y = xy[1].to_i
is_breaked = false
i = x
i_visited = []
while arr[i] && arr[i] != -1 && !i_visited[i]
i_visited[i] = true
j = y
j_visited = []
while arr[j] && arr[j] != -1 && !j_visited[j] && arr[j] != x
j_visited... | gpl-3.0 |
Kyle-Perry/CSPC_457 | src/kernel/syscalls.cc | 8539 | /******************************************************************************
Copyright © 2012-2015 Martin Karsten
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 o... | gpl-3.0 |
michel-rodrigues/ecommerce2 | source/orders/models.py | 4283 | from django.core.urlresolvers import reverse
from django.conf import settings
from django.db import models
from django.db.models.signals import pre_save, post_save
from decimal import Decimal
import braintree
from carts.models import Cart
if settings.DEBUG:
braintree.Configuration.configure(
bra... | gpl-3.0 |
fernandog/Medusa | medusa/notifiers/trakt.py | 9457 | """Trakt notifier module."""
# coding=utf-8
from __future__ import unicode_literals
import logging
from builtins import object
from medusa import app
from medusa.helpers import get_title_without_year
from medusa.indexers.utils import get_trakt_indexer
from medusa.logger.adapters.style import BraceAdapter
from trakt... | gpl-3.0 |
ThoNill/DRUCK | DRUCK/src/extensions/Linewrap.java | 1357 | package extensions;
import java.io.PrintWriter;
import toni.druck.page.Element;
import toni.druck.page.Extension;
import toni.druck.page.Page;
import com.itextpdf.awt.geom.Dimension;
public class Linewrap extends Extension {
public Linewrap() {
super("extensions/linewrap.ps");
}
@Override
... | gpl-3.0 |
TheBigBadWolf2/SicknessMod | src/main/java/com/thebigbadwolf2/SicknessMod/handler/ConfigHandler.java | 1003 | package com.thebigbadwolf2.SicknessMod.handler;
import com.thebigbadwolf2.SicknessMod.reference.Reference;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.common.config.Configuration;
import java.io.File;
public class ConfigHandle... | gpl-3.0 |
kyriog/UHPlugin | src/main/java/me/azenet/UHPlugin/task/FireworksOnWinnersTask.java | 2454 | /**
* Plugin UltraHardcore Reloaded (UHPlugin)
* Copyright (C) 2013 azenet
* Copyright (C) 2014-2015 Amaury Carrade
*
* 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 ... | gpl-3.0 |
bad-wolf-jm/pymusic | electron/pydjay_ui/node_modules/webaudio/audio_context.js | 1033 | const {EventDispatcher} = require("notify/event_dispatcher.js")
class PydjayAudioContext extends EventDispatcher{
constructor() {
super()
this.audio_ctx = new AudioContext()
this.destination = this.audio_ctx.createMediaStreamDestination()
this.time_callback = null
this.time... | gpl-3.0 |
MatrixSofts/MatrixWebEngine | templates/system/ask_new_pass.php | 2521 | <?php
/*=============================================================================
#
# ``--:-`
# `-/+ooo+:.
# .:+sssssss+- MatrixWebEngine V:1.0
# .:+sooossssso:
# `-++:--:/osssso.
# ... | gpl-3.0 |
Ferdinand-vW/Simulation | TramSimulator/Sim/EventQueue.cs | 1136 | using System.Collections.Generic;
using System.Linq;
using TramSimulator.Events;
namespace TramSimulator.Sim
{
//Priority queue for events
//super lelijk O(n) maar n is altijd constant dus het valt mee
// SortedList en dergelijke zorgden voor problemen
public class EventQueue
{
public Lis... | gpl-3.0 |
walterbender/iknowmyabcs | genpieces.py | 5933 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Copyright (c) 2009-11 Walter Bender
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any la... | gpl-3.0 |
Lizzaran/LeagueSharp-Standalones | SFXUtility/SFXWaypoint/Library/MinionManager.cs | 10127 | #region License
/*
Copyright 2014 - 2015 Nikita Bernthaler
MinionManager.cs is part of SFXWaypoint.
SFXWaypoint is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your ... | gpl-3.0 |
mirror/freedownload | iefdm/FdmIeBho/vmsFile.cpp | 1261 | /*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#include "StdAfx.h"
#include "Utils.h"
#include "vmsFile.h"
vmsFile::vmsFile()
{
m_file = NULL;
}
vmsFile::~vmsFile()
{
close ();
}
bool vmsFile::open(LPCTSTR pszName, LPCTSTR pszMode)
{
close ();
std::string sN... | gpl-3.0 |
ckaestne/LEADT | workspace/argouml_critics/argouml-app/src/org/argouml/ui/Clarifier.java | 2678 | // $Id: Clarifier.java 41 2010-04-03 20:04:12Z marcusvnac $
// Copyright (c) 1996-2006 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provid... | gpl-3.0 |
nicjhan/MOM6-examples | tools/analysis/section_transports.py | 9699 | #!/usr/bin/env python
import io
import netCDF4
import numpy
import m6plot
import m6toolbox
import matplotlib.pyplot as plt
import os
try: import argparse
except: raise Exception('This version of python is not new enough. python 2.7 or newer is required.')
def run():
parser = argparse.ArgumentParser(description='''... | gpl-3.0 |
ratrecommends/dice-heroes | main/src/com/vlaaad/dice/achievements/events/EventType.java | 2612 | /*
* Dice heroes is a turn based rpg-strategy game where characters are dice.
* Copyright (C) 2016 Vladislav Protsenko
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of... | gpl-3.0 |
EriolEandur/MCME-Architect | src/main/java/com/mcmiddleearth/architect/customHeadManager/CustomHeadGallery.java | 8914 | /*
* Copyright (C) 2016 MCME
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distr... | gpl-3.0 |
jeromewagener/Sammelbox-Android | Sammelbox-Android/src/org/sammelbox/android/controller/filesystem/FileSystemAccessWrapper.java | 3227 | package org.sammelbox.android.controller.filesystem;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import java.util.Enumeration;
import java.util.zip.ZipE... | gpl-3.0 |
JonSteinn/Kattis-Solutions | src/Simple Addition/Python 3/simpleaddition.py | 34 | print(int(input()) + int(input())) | gpl-3.0 |
foxcarlos/HCEventos | js/vistas/ventanaModalVw.js | 338 | var Vista = Vista || {};
Vista.OkModal = Backbone.View.extend({
el: '#divModal',
plantilla: _.template( Utils.BuscarHtml(this.nombreTemplate) ),
initialize: function(){
this.render();
},
events:{
},
render: function(){
this.$el.html( this.plantilla() );
//return ... | gpl-3.0 |
IcmVis/VisNow-Pro | src/pl/edu/icm/visnow/lib/basic/readers/ReadVTK/ReadVTK.java | 4274 | /* VisNow
Copyright (C) 2006-2013 University of Warsaw, ICM
This file is part of GNU Classpath.
GNU Classpath 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... | gpl-3.0 |
jerkern/nxt_slam | lejos/src/se/ajn/slam/nxt/RangeSensor.java | 1093 | package se.ajn.slam.nxt;
import lejos.nxt.I2CPort;
import lejos.robotics.RangeFinder;
public class RangeSensor extends PCF8591 implements RangeFinder
{
/** Device address of the chip */
private static int DEFAULT_I2C_ADDRESS = 0x90;
/** Device channel of the NXT */
private static final byte CHANNE... | gpl-3.0 |
hlfernandez/GC4S | gc4s-genomebrowser/src/main/java/org/sing_group/gc4s/genomebrowser/grid/Coordinates.java | 2120 | /*
* #%L
* GC4S genome browser
* %%
* Copyright (C) 2014 - 2018 Hugo López-Fernández, Daniel Glez-Peña, Miguel Reboiro-Jato,
* Florentino Fdez-Riverola, Rosalía Laza-Fidalgo, Reyes Pavón-Rial
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser G... | gpl-3.0 |
makgyver/MKtmdb | src/mk/tmdb/exception/TMDbImageSizeNotSupportedException.java | 1925 | /*******************************************************************************
* Copyright (C) 2012-2013 Mirko Polato
*
* This file is part of MKtmdb.
*
* 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 So... | gpl-3.0 |
jacquet33/miERP | Libraries/Logic/MixERP.Net.Common/Helpers/GridViewHelper.cs | 2648 | /********************************************************************************
Copyright (C) Binod Nepal, Mix Open Foundation (http://mixof.org).
This file is part of MixERP.
MixERP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Fre... | gpl-3.0 |
Areax/TerrasNaxium | Assets/Scripts/HarryPotterUnity/Cards/Quidditch/Locations/QualityQuidditchSupplies.cs | 981 | using System.Collections.Generic;
using System.Linq;
using HarryPotterUnity.Enums;
using UnityEngine;
namespace HarryPotterUnity.Cards.Quidditch.Locations
{
public class QualityQuidditchSupplies : BaseLocation
{
public override bool CanPerformInPlayAction()
{
var player = Player.Is... | gpl-3.0 |
tymofij/adofex | transifex/resources/formats/resource_collections.py | 6101 | # -*- coding: utf-8 -*-
"""A series of classes that hold collections of the resources' app objects."""
from django.utils import simplejson as json
from transifex.resources.models import SourceEntity, Translation
from transifex.resources.formats.utils.hash_tag import hash_tag
from transifex.txcommon.log import logger
... | gpl-3.0 |
walshb1/neda_resilience_indicator_tool | preprocess/node_modules/mapshaper/src/commands/mapshaper-filter-slivers.js | 2844 | /* @require mapshaper-filter-islands, mapshaper-segment-geom */
// Remove small-area polygon rings (very simple implementation of sliver removal)
// TODO: more sophisticated sliver detection (e.g. could consider ratio of area to perimeter)
// TODO: consider merging slivers into adjacent polygons to prevent gaps from f... | gpl-3.0 |
SpeckiJ/dao-series-api | dao/src/test/java/org/n52/series/db/beans/CountDataEntityTest.java | 1910 | /*
* Copyright (C) 2015-2017 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 ... | gpl-3.0 |
holgerschmitz/Schnek | src/variables/blockclasses.hpp | 3461 | /*
* blockclasses.hpp
*
* Created on: 26 Apr 2012
* Author: Holger Schmitz
* Email: holger@notjustphysics.com
*
* Copyright 2012 Holger Schmitz
*
* This file is part of Schnek.
*
* Schnek is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publis... | gpl-3.0 |
rainwoodman/nbodykit | nbodykit/__init__.py | 1988 | __version__ = "0.1.4.dev0"
import os
from nbodykit.plugins.manager import PluginManager
from argparse import Namespace
# store some directory paths
pkg_dir = os.path.abspath(os.path.join(__file__, '..', '..'))
examples_dir = os.path.join(pkg_dir, 'examples')
bin_dir = os.path.join(pkg_dir, 'bin')
# create ... | gpl-3.0 |
dryabkov/activiti-modeler-experiment | platform extensions/bpmn20xmlbasic/src/de/hpi/bpmn2_0/factory/node/ConversationFactory.java | 8928 | /*******************************************************************************
* Signavio Core Components
* Copyright (C) 2012 Signavio 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 Founda... | gpl-3.0 |
HumanExposure/factotum | static/js/dashboard/lp_tag_tables.js | 665 | $(document).ready( function () {
$('#tagset_table').DataTable({
ajax: window.location.href + "tagsets/",
});
$('#document_table').DataTable({
columnDefs: [
{
name: 'data_document.title',
orderable: true,
searchable: true,
... | gpl-3.0 |
kevinarpe/kevinarpe-rambutan3 | rambutan3/RDelegator.py | 2910 |
class RDelegator:
"""
Delegates, absolutely.
This maybe surprising when using issubclass(), as self.__getattribute__("__class__") is also delegated!
@author Kevin Connor ARPE (kevinarpe@gmail.com)
"""
def __init__(self, delegate):
super().__setattr__("__delegate", delegate)
# no... | gpl-3.0 |
neutronimaging/imagingsuite | applications/kiptool/src/genericconversion.cpp | 6464 | //<LICENSE>
#include <string>
#include <QString>
#include <QMessageBox>
#include <QFileDialog>
#include <base/timage.h>
#include <base/trotate.h>
#include <base/kiplenums.h>
#include <io/io_generic.h>
#include <io/io_tiff.h>
#include <io/DirAnalyzer.h>
#include "genericconversion.h"
#include "ui_genericconversion.h... | gpl-3.0 |
Ubehebe/r5js | test/parser_test.ts | 10142 | import {Datum} from "../ast/datum";
import {
ASSIGNMENT,
CONDITIONAL,
DEFINITION,
FORMALS,
LAMBDA_EXPRESSION,
MACRO_BLOCK,
Nonterminal,
PATTERN,
PATTERN_DATUM,
PATTERN_IDENTIFIER,
PROCEDURE_CALL,
PROGRAM,
QUASIQUOTATION,
QUOTATION,
SELF_EVALUATING,
SPLICING_UNQUOTATION,
TEMPLATE,
TRA... | gpl-3.0 |
macbury/webpraca | db/migrate/20091225143921_create_jobs.rb | 582 | class CreateJobs < ActiveRecord::Migration
def self.up
create_table :jobs do |t|
t.integer :type_id, :default => 0
t.integer :price_from
t.integer :price_to
t.boolean :remote_job
t.string :title
t.string :permalink
t.text :description
t.date :end_at
t.string :... | gpl-3.0 |
n3tmaster/SensorWebHub | swhservices/src/main/java/it/cnr/ibimet/swhservices/entities/Station.java | 1200 | package it.cnr.ibimet.swhservices.entities;
public class Station {
private String id_stazione;
private int id_ente;
private int id_azienda;
private long gsm;
private String ente;
private String azienda;
public Station(String id_stazione,int id_ente, int id_azienda,
long gsm, String ente, String azienda)... | gpl-3.0 |
kernsuite-debian/lofar | MAC/APL/PIC/RSP_Driver/src/Sequencer.cc | 21770 | //# Sequencer.cc: implementation of the Sequencer class
//#
//# Copyright (C) 2002-2004
//# ASTRON (Netherlands Foundation for Research in Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, softwaresupport@astron.nl
//#
//# This program is free software; you can redistribute it and/or modify
//# it und... | gpl-3.0 |
automenta/adams-core | src/main/java/adams/gui/visualization/report/reportfactory/ModifyValue.java | 4053 | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | gpl-3.0 |
ozanoner/myb | myp242/w6/w6_t2/t2/t2/Adim3YasPage.cs | 1624 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace t2
{
public class Adim3YasPage : ContentPage
{
public Adim3YasPage(Profil profil)
{
this.Title = "Yasinizi yaziniz";
this.Padding = 10;
this... | gpl-3.0 |
huangchuping/bug | Install/putdata.php | 2611 | <?php
/*
* @varsion Dream缺陷跟踪系统 2.0var
* @package 程序设计深圳市九五时代科技有限公司设计开发
* @copyright Copyright (c) 2010 - 2015, 95era, Inc.
* @link http://www.d-winner.com
*/
session_start();
if(file_exists('lock.txt')){
echo '系统已安装,请不要重复安装!如需安装,请删除install文件夹下的lock.txt文件。';
exit();
}
$mail = $_GET['mail'];
$total = i... | gpl-3.0 |
MoreThanHidden/BluePower | src/main/java/com/bluepowermod/tile/tier2/TileCircuitTable.java | 5919 | /*
* This file is part of Blue Power. Blue Power is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Blue Power is
* distributed in the hope... | gpl-3.0 |
projectestac/alexandria | html/langpacks/eu/assignfeedback_poodll.php | 2781 | <?php
// This file is part of Moodle - https://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle... | gpl-3.0 |
Calebrw/Peachy | Includes/XMLParse.php | 2722 | <?php
/*
This file is part of Peachy MediaWiki Bot API
Peachy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed ... | gpl-3.0 |
xuxueli/xxl-incubator | tmp/demo/src/main/java/com/xuxueli/demo/storm/ExclamationBolt.java | 1085 | package com.xuxueli.demo.storm;
import java.util.Map;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseRichBolt;
import org.apache.storm.tuple.Fields;
import org.apache.storm.tup... | gpl-3.0 |