repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
climatescope/climatescope.org | src/components/pages/ResultsPage/Ranking/useRankingData.js | 2048 | import { useRef, useMemo } from "react"
import sortBy from "lodash/sortBy"
const topicNames = ["Fundamentals", "Opportunities", "Experience"]
const computeFinalScore = (topics, weighting, sector) => {
const weightedTopics = topics.reduce((acc, cur) => {
if (cur.sector !== sector) return acc
const name = cu... | gpl-3.0 |
Relicum/SignMagic | src/main/java/com/relicum/signmagic/Handlers/Line.java | 5864 | /*
* SignMagic is a development API for Minecraft Sign Editing, developed
* originally by libraryaddict now by Relicum
* Copyright (C) 2014. Chris Lutte
*
* 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 Soft... | gpl-3.0 |
bezout/libv-core | src/libv/core/draw_tools.hpp | 4719 | /**
\file
\author Vadim Litvinov (2013)
\copyright 2013 Institut Pascal
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 Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | gpl-3.0 |
miracle091/transmission-remote-dotnet | TransmissionClientNew/Libs/MonoTorrent/MonoTorrentCollectionBase.cs | 757 | using System;
using System.Collections.Generic;
namespace MonoTorrent.Common
{
public class MonoTorrentCollection<T> : List<T>, ICloneable
{
public MonoTorrentCollection() : base()
{
}
public MonoTorrentCollection(IEnumerable<T> collection) : base(collection)
{
... | gpl-3.0 |
ivansams/PostmanCleaner | PostmanCleaner/RequestDto.cs | 1901 | using Newtonsoft.Json;
using System.Collections.Generic;
namespace PostmanCleaner
{
public class RequestDto
{
[JsonProperty(Order = 1)]
[JsonRequired]
public string Id { get; set; }
[JsonProperty(Order = 2)]
[JsonRequired]
public string CollectionId { get; set;... | gpl-3.0 |
vestrada/docs | source/conf.py | 13092 | # -*- coding: utf-8 -*-
#
# CrafterCMS documentation build configuration file, created by
# sphinx-quickstart on Thu Dec 3 15:22:20 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | gpl-3.0 |
Lana-B/Pheno4T | tools/SampleAnalyzer/Interfaces/fastjet/ClusterAlgoStandard.cpp | 4066 | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2012-2013 Eric Conte, Benjamin Fuks
// The MadAnalysis development team, email: <ma5team@iphc.cnrs.fr>
//
// This file is part of MadAnalysis 5.
// Official website: <https://launchpad.net/madanalysis5>
//
// ... | gpl-3.0 |
Jnig/openPCM | src/Jan/ZevirtBundle/Service/ClusterService.php | 3241 | <?php
namespace Jan\ZevirtBundle\Service;
use Jan\ZevirtBundle\Model\Ssh;
use Jan\ZevirtBundle\Entity\Cluster;
use Jan\ZevirtBundle\Entity\VirtualMachine;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Jan\ZevirtBundle\Entity\Node;
class ClusterService {
private $em;
protected $container;... | gpl-3.0 |
wenhao87/WPPlugins | wp-statistics/ajax.php | 10116 | <?php
// Setup an AJAX action to close the donation nag banner on the overview page.
function wp_statistics_close_donation_nag_action_callback() {
GLOBAL $WP_Statistics, $wpdb; // this is how you get access to the database
$manage_cap = wp_statistics_validate_capability( $WP_Statistics->get_option('manage_capabilit... | gpl-3.0 |
Beirdo/gjhurlbu-plugin-video-irishtv | proxyconfig.py | 1977 | import sys
import urllib2
import httplib
import socks
class ProxyConfig:
def __init__(self, type, server, port, dns = True, user = None, password = None):
self.server = server
self.type = type
self.port = port
self.user = user
self.password = password
self.dns = dns... | gpl-3.0 |
basdog22/Qool | templates/backend/charisma/groupslist.php | 1605 | <?php message()?>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well">
<h2><i class="icon-user"></i> <?php t('Groups List');?></h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize"><i class="icon-chevron-up"></i></a>
</div>
</div>
<div class="box-content... | gpl-3.0 |
vorburger/LeviatorWorld | src/main/java/ch/vorburger/meta/adaptable/AbstractAdaptable.java | 627 | package ch.vorburger.meta.adaptable;
import java.util.Optional;
public abstract class AbstractAdaptable implements Adaptable {
protected abstract <T> Optional<T> getAdapted(Class<T> clazz);
@Override
public final <T> T adaptTo(Class<T> clazz) throws IllegalArgumentException {
Optional<T> adapted = getAdapted(... | gpl-3.0 |
sethten/MoDesserts | mcp50/temp/src/minecraft_server/net/minecraft/src/EntityAINearestAttackableTargetSorter.java | 1192 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
import java.util.Comparator;
// Referenced classes of package net.minecraft.src:
// Entity, EntityAIN... | gpl-3.0 |
manuelgu/PlotSquared | Bukkit/src/main/java/com/plotsquared/bukkit/object/BukkitPlayer.java | 7598 | package com.plotsquared.bukkit.object;
import com.intellectualcrafters.plot.PS;
import com.intellectualcrafters.plot.object.Location;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.EconHandler;
import com.intellectualcrafters.plot.util.PlotGameMode;
import com.intelle... | gpl-3.0 |
Cubiccl/Command-Generator | src/fr/cubiccl/generator/gameobject/advancements/Requirement.java | 1786 | package fr.cubiccl.generator.gameobject.advancements;
import java.awt.Component;
import fr.cubiccl.generator.gui.component.interfaces.IObjectList;
import fr.cubiccl.generator.gui.component.panel.CGPanel;
import fr.cubiccl.generator.gui.component.panel.advancement.PanelRequirement;
import fr.cubiccl.generator.gui.comp... | gpl-3.0 |
Glynn-Taylor/9-Gates | src/game/states/State_PREFAB_EDITOR.java | 14979 | /*******************************************************************************
* Copyright (c) 2013 Glynn Taylor.
* All rights reserved. This program and the accompanying materials,
* (excluding imported libraries, such as LWJGL and Slick2D)
* are made available under the terms of the GNU Public License
* which... | gpl-3.0 |
IndustriaLeuven/dolibarr | htdocs/core/lib/project.lib.php | 40410 | <?php
/* Copyright (C) 2006-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the... | gpl-3.0 |
mars-sim/mars-sim | mars-sim-core/src/main/java/org/mars_sim/msp/core/structure/building/function/SolarPowerSource.java | 4711 | /**
* Mars Simulation Project
* SolarPowerSource.java
* @version 3.2.0 2021-06-20
* @author Scott Davis
*/
package org.mars_sim.msp.core.structure.building.function;
import java.io.Serializable;
import org.mars_sim.msp.core.environment.SurfaceFeatures;
import org.mars_sim.msp.core.structure.Settlement... | gpl-3.0 |
SalmonDE/TopVoter | src/SalmonDE/TopVoter/FloatingTextParticle.php | 451 | <?php
declare(strict_types = 1);
namespace SalmonDE\TopVoter;
use pocketmine\world\particle\FloatingTextParticle as FTP;
use pocketmine\math\Vector3;
class FloatingTextParticle extends FTP {
private $vector3;
public function __construct(Vector3 $vector3, string $text, string $title = ''){
parent::__construct($... | gpl-3.0 |
nathantypanski/rtop | src/procfs/processes.rs | 959 | use regex::Regex;
use std::io::fs;
use std::io::fs::PathExtensions;
/*
* Returns true if the path is to a process's addr in procfs.
*/
fn is_proc(dir: &Path) -> Option<Path> {
let mut result = None;
if (*dir).is_dir() {
let fname_str = dir.filename_str().expect("");
let re = match Regex::new(... | gpl-3.0 |
osfans/trime | app/src/main/java/com/osfans/trime/setup/Config.java | 34057 | /*
* Copyright (C) 2015-present, osfans
* waxaca@163.com https://github.com/osfans
*
* 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)... | gpl-3.0 |
byte-foundry/prototypo.js | src/Utils.js | 20655 | var plumin = require('plumin.js'),
DepTree = require('deptree'),
cloneDeep = require('lodash.clonedeep'),
filter = require('lodash.filter'),
assign = require('lodash.assign'),
updateUtils = require('./updateUtils.js');
var paper = plumin.paper,
Utils = updateUtils,
_ = {
cloneDeep: cloneDeep,
assign: assign... | gpl-3.0 |
boriel/zxbasic | src/arch/z80/backend/_16bit.py | 31574 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# --------------------------------------------------------------
# Copyleft (k) 2008, by Jose M. Rodriguez-Rosa
# (a.k.a. Boriel, http://www.boriel.com)
#
# This module contains 16 bit boolean, arithmetic and
# comparison intermediate-code translations
# ----------------------... | gpl-3.0 |
lighthouse64/Random-Dungeon | src/com/lh64/randomdungeon/items/rings/RingOfThorns.java | 1757 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* 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.
*
* T... | gpl-3.0 |
jackbergus/Amppercent7 | src/my/amppercent/adapters/AdapterIM.java | 2981 | package my.amppercent.adapters;
import java.util.LinkedList;
import java.util.List;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
import my.ampper... | gpl-3.0 |
FabLab-LaCote/avionmake | typings/tsd.d.ts | 731 | /// <reference path="angularjs/angular-sanitize.d.ts" />
/// <reference path="angularjs/angular-cookies.d.ts" />
/// <reference path="angularjs/angular-route.d.ts" />
/// <reference path="angularjs/angular-resource.d.ts" />
/// <reference path="angularjs/angular-mocks.d.ts" />
/// <reference path="jasmine/jasmine.d.ts"... | gpl-3.0 |
bsmr-games/lipsofsuna | src/lipsofsuna/extension/image/image-compress.cpp | 3072 | /* Lips of Suna
* Copyright© 2007-2010 Lips of Suna development team.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software fo... | gpl-3.0 |
oicr-gsi/niassa | seqware-pipeline/src/main/java/net/sourceforge/seqware/pipeline/plugins/ProcessingDataStructure2Dot.java | 3911 | package net.sourceforge.seqware.pipeline.plugins;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
import joptsimple.ArgumentAcceptingOptionSpec;
import net.sourceforge.seqware.common.module.ReturnValue;
impo... | gpl-3.0 |
FlowsenAusMonotown/projectforge | projectforge-business/src/main/java/org/projectforge/business/gantt/GanttObjectType.java | 1626 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2014 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | gpl-3.0 |
dacrybabysuck/darkstar | scripts/zones/Bostaunieux_Oubliette/IDs.lua | 3077 | -----------------------------------
-- Area: Bostaunieux_Oubliette
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.BOSTAUNIEUX_OUBLIETTE] =
{
text =
{
CONQUEST_BASE = 0, -- Tallying conquest resul... | gpl-3.0 |
Niky4000/UsefulUtils | projects/others/eclipse-platform-parent/eclipse.jdt.core-master/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SynchronizedStatement.java | 7640 | /*******************************************************************************
* Copyright (c) 2000, 2011, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is availabl... | gpl-3.0 |
lveci/nest | beam/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/layermanager/layersrc/wms/WmsLayerType.java | 10444 | /*
* Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.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 3 of the License, or (at your option)
* any late... | gpl-3.0 |
Nuke928/NSPkgMgr | NSPkgMgr/CommandSync.cs | 1350 | /*
===============================================================================
NSPkgMgr
Copyright (C) 2014 Gian Sass
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 v... | gpl-3.0 |
grfraser/codebuddies | client/templates/status/update-status.js | 4528 | //Initialize character counter value
var workingCounterValue = 140;
var learnedCounterValue = 140;
var maxChars = 140;
Template.updateStatus.helpers({
isWorking: function(type) {
return type == 'working';
},
characterCount: workingCounterValue
});
Template.updateStatus.helpers({
hasLearned: fun... | gpl-3.0 |
zendawg/OpenEyes | protected/migrations/m120307_172115_remove_site_element_type_and_possible_element_type_tables.php | 256 | <?php
class m120307_172115_remove_site_element_type_and_possible_element_type_tables extends CDbMigration
{
public function up()
{
$this->dropTable('site_element_type');
$this->dropTable('possible_element_type');
}
public function down()
{
}
}
| gpl-3.0 |
mganeva/mantid | qt/python/mantidqt/widgets/workspacedisplay/test/test_data_copier.py | 7071 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
# This file is part of the mantid workbench.... | gpl-3.0 |
INBio/NeoPortal | neoportal-web/src/main/webapp/resources/js/groupNav.js | 955 | /*
* groupNav.js
* Author: avargas
* Creation date: 20120806
*
* Description: behavior for groupNav page
*
*/
var groupNavId;
var itemsPerPage = 10;
var speciesUrl = "/api/groupNav/species";
$("document").ready(function(){
//prepare submenus
$("li.gn-node:not(.current) > ul").hide();
$("li.gn-node.current... | gpl-3.0 |
killbug2004/PREF | views/disassemblerview/disassemblerwidget/disassemblerhighlighter.cpp | 4062 | #include "disassemblerhighlighter.h"
DisassemblerHighlighter::DisassemblerHighlighter(QTextDocument *parent, Block* block): QSyntaxHighlighter(parent), _block(block)
{
this->generateHighlighters();
}
void DisassemblerHighlighter::generateHighlighters()
{
this->_segmentformat.setFontFamily("Monospace");
th... | gpl-3.0 |
cleoquintiliano/controls | src/main/java/com/cqi/controls/converter/GrupoConverter.java | 1226 | package com.cqi.controls.converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import com.cqi.controls.model.Grupo;
import com.cqi.controls.repository.Grupos;
import com.cqi.controls.util.cdi.CDISe... | gpl-3.0 |
sgs-us/talfer | src/CStage_FluidSimulationNS.hpp | 21597 | /*
* CStage_ImageInput.hpp
*
* Created on: Jul 5, 2013
* Author: Martin Schreiber <martin.schreiber@in.tum.de>
*
* There's already an existing file named CStage_FluidSimulationLBM.hpp
* with a skeleton for the LBM simulation. Please consider using this as
* your NS Skeleton. You get a flag array ... | gpl-3.0 |
jlaws/gundog-engine | GaTCore/src/com/godsandtowers/achievements/CampaignAchievement.java | 3111 | /**
* Copyright (C) 2013 Gundog Studios LLC.
*
* 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 ... | gpl-3.0 |
benfitzpatrick/cylc | lib/cylc/network/port_scan.py | 7164 | #!/usr/bin/pyro
# THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) 2008-2016 NIWA
#
# 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 opt... | gpl-3.0 |
SpecLad/Octetoscope | core/src/main/scala/ru/corrigendum/octetoscope/core/Dissector.scala | 2000 | /*
This file is part of Octetoscope.
Copyright (C) 2013-2016 Octetoscope contributors (see /AUTHORS.txt)
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
... | gpl-3.0 |
ptsefton/worddown | tools/recite/citeproc-js/src/obj_token.js | 6693 | /*
* Copyright (c) 2009, 2010 and 2011 Frank G. Bennett, Jr. All Rights
* Reserved.
*
* The contents of this file are subject to the Common Public
* Attribution License Version 1.0 (the “License”); you may not use
* this file except in compliance with the License. You may obtain a
* copy of the License at:
*
*... | gpl-3.0 |
PrekenWeb/PrekenWeb | src/PrekenWeb.WebApi/Models/JobParameter.cs | 359 | using System;
using System.Collections.Generic;
namespace PrekenWeb.WebApi.Models
{
public partial class JobParameter
{
public int Id { get; set; }
public int JobId { get; set; }
public string Name { get; set; }
public string Value { get; set; }
public virt... | gpl-3.0 |
akaunting/akaunting | app/Events/Document/DocumentCancelled.php | 332 | <?php
namespace App\Events\Document;
use Illuminate\Queue\SerializesModels;
class DocumentCancelled
{
use SerializesModels;
public $document;
/**
* Create a new event instance.
*
* @param $document
*/
public function __construct($document)
{
$this->document = $docume... | gpl-3.0 |
xylographe/subtitleedit | src/Controls/SETextBox.cs | 9545 | using Nikse.SubtitleEdit.Core;
using Nikse.SubtitleEdit.Logic;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Controls
{
/// <summary>
/// TextBox where double click selects current word
/// </summary>
public sealed class SETextBox : TextBox
... | gpl-3.0 |
gnoubi/MarrakAir | javaFX/marrakAir2/src/main/java/ummisco/marrakAir/common/FollowedVariable.java | 1367 | package ummisco.marrakAir.common;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Observable;
import java.util.Timer;
public class FollowedVariable extends Observable {
private ArrayList<Map<String,Object>> data = null;
private String name = null;
p... | gpl-3.0 |
iCarto/siga | libRaster/src/org/gvsig/raster/dataset/io/features/BMPFeatures.java | 1659 | /* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana
*
* Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
*
* 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; eith... | gpl-3.0 |
smnslwl/project_euler | 41/41.py | 1250 | """
We shall say that an n-digit number is pandigital if it makes use of all
the digits 1 to n exactly once. For example, 2143 is a 4-digit pandigital
and is also prime.
What is the largest n-digit pandigital prime that exists?
"""
from math import sqrt
from itertools import permutations
def is_prime(n):... | gpl-3.0 |
TkYu/SimpleAccessTokenContainer | SimpleAccessTokenContainer/WeixinJSSDKTicket.cs | 1722 | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace SimpleAccessTokenContainer
{
public static class WeixinJSSDKTicket
{
private const string KeyName = "WeixinJSS... | gpl-3.0 |
allthefoxes/Reddit-Enhancement-Suite | lib/modules/showImages.js | 53206 | /*
If you would like RES to embed content from your website,
consult lib/modules/hosts/example.js
*/
import _ from 'lodash';
import elementResizeDetectorMaker from 'element-resize-detector';
import { flow, forEach, keyBy, map, tap } from 'lodash/fp';
import audioTemplate from '../templates/audio.mustache';
import ga... | gpl-3.0 |
isuruf/piranha | pyranha/expose_polynomials_4.cpp | 1351 | /* Copyright 2009-2016 Francesco Biscani (bluescarni@gmail.com)
This file is part of the Piranha library.
The Piranha library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either versio... | gpl-3.0 |
waikato-datamining/adams-base | adams-core/src/test/java/adams/flow/sink/NullTest.java | 2774 | /*
* 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 |
protonsint/geosdiera | web/src/main/java/it/geosdi/era/client/openlayers/layers/Layer.java | 2126 | /*
* GeoSDI ERA - The new era of webGIS
* http://code.google.com/p/geosdiera/
* ====================================================================
*
* Copyright (C) 2008-2009 GeoSDI Group (CNR IMAA).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the... | gpl-3.0 |
giofrida/Hisense-enhancements | UI/hisenseUI/modulePages/boe/boeNetSetWPS.js | 7779 | /**
* Created by xuehongfeng on 2015/11/16.
*/
function getboeNetSetWPSPageData(opt){
opt.CaE = [
{
"id":"boeNetSetWPSCodeTitle",
"description":"PBCÌáʾÐÅÏ¢",
"CaEType":"span"
},
{
"id":"boeNetSetWPSIcon",
"description":"PBC img",... | gpl-3.0 |
budkit/budkit-framework | src/Budkit/Routing/Factory.php | 2242 | <?php
namespace Budkit\Routing;
class Factory
{
/**
*
* The route class to create.
*
* @param string
*
*/
protected $class = 'Budkit\Routing\Route';
/**
*
* A reusable Regex object.
*
* @param Regex
*
*/
protected $regex;
/**
*
... | gpl-3.0 |
Lumeer/web-ui | src/app/shared/blockly/blockly-editor/blocks/iso-to-ms-blockly-component.ts | 2339 | /*
* Lumeer: Modern Data Definition and Processing Platform
*
* Copyright (C) since 2017 Lumeer.io, s.r.o. and/or its affiliates.
*
* 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 ... | gpl-3.0 |
GuillaumeDD/scala99problems | src/main/scala/list/P22/P22.scala | 1410 | /*******************************************************************************
* Copyright (c) 2013 Guillaume DUBUISSON DUPLESSIS <guillaume.dubuisson_duplessis@insa-rouen.fr>.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* ... | gpl-3.0 |
fiendishly/rsbot | scripts/FroltAnyChopper.java | 9039 | import java.awt.*;
import java.util.*;
import org.rsbot.script.*;
import org.rsbot.bot.*;
import org.rsbot.script.wrappers.*;
import org.rsbot.script.Skills;
import org.rsbot.event.listeners.*;
import org.rsbot.event.events.*;
import org.rsbot.util.*;
@ScriptManifest(authors = {"Frolt"}, category = "Woodcutting", nam... | gpl-3.0 |
j9recurses/whirld | vendor/assets/components/leaflet-illustrate/src/edit/handles/L.Illustrate.RotateHandle.js | 1968 | L.Illustrate.RotateHandle = L.Illustrate.EditHandle.extend({
options: {
TYPE: 'rotate'
},
initialize: function(shape, options) {
L.Illustrate.EditHandle.prototype.initialize.call(this, shape, options);
this._createPointer();
},
onAdd: function(map) {
L.Illustrate.EditHandle.prototype.onAdd.call(this, map... | gpl-3.0 |
isaac-benson-powell/ibp_software | projects/language/test/test_io/for_ag_tests/input/parse_tree_nodes/Node_Function_Call/expect_parser_pass/function_call_with_one_argument/expected_cpp_translation/function_call_with_one_argument.cpp | 466 | #include "function_call_with_one_argument.h"
/*!
* \brief code_being_tested
*
* The code in this function is the scenario being tested.
*
* \return ibp::Integer
*/
ibp::Integer
code_being_tested()
{
ibp::Integer num = bar( 4_i );
// OK to ignore return value.
return num;
}
/*!
* \brief bar
... | gpl-3.0 |
VladKha/CodeWars | 7 kyu/Alphabet symmetry/solve.py | 156 | from string import ascii_lowercase as alphabet
def solve(arr):
return [sum(c == alphabet[i] for i,c in enumerate(word[:26].lower())) for word in arr]
| gpl-3.0 |
eafkhami/cbrain | BrainPortal/lib/scir_pbs.rb | 4849 |
#
# CBRAIN Project
#
# Copyright (C) 2008-2012
# The Royal Institution for the Advancement of Learning
# McGill University
#
# 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 |
RaisingTheDerp/raisingthebar | root/Tracker/TrackerUI/SubPanelFindBuddyResults.cpp | 7816 | //========= Copyright © 1996-2001, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "SubPanelFindBuddyResults.h"
#include "ServerSession.h"
#include "Tracker.h"
#include "TrackerDoc.h"
#include "Tr... | gpl-3.0 |
cedricms/MobileFrameZeroTools | assets/www/js/mof0Game.js | 3908 | var gameModel;
var companies;
var gameRefreshIntervalId;
function initGame() {
// Init DB connection
var db = window.openDatabase("mof0DB", dbVersion,
"Mobile Frame Zero Tools", dbSize);
// Load game data
gameModel = new GameModel();
var companyIds = getUrlVars()['companyIds'];
var companyIdsArray = company... | gpl-3.0 |
Pr0Wolf29/subi | subi.cpp | 1548 | /* subi by Pr0Wolf29 */
/*
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 wil... | gpl-3.0 |
diego-gimenes/MXTires.Microdata.Core | CreativeWorks/Atlas.cs | 1551 | #region License
// Copyright (c) 2016 1010Tires.com
//
// 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 limitation the rights to use,
// copy, mod... | gpl-3.0 |
Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | src/finiteVolume/finiteVolume/adjConvectionSchemes/explicitAdjConvectionScheme/explicitAdjConvectionScheme.H | 3893 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | gpl-3.0 |
ztdroid/overtime | ot/models.py | 472 | #! -*- coding:utf-8 -*-
from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Date(models.Model):
CHOICES = (('n', '值班'), ('a', '加班'),)
date = models.DateField()
user = models.ForeignKey(User)
kind = models.CharField(max_length=1, choices=CHOICES)
... | gpl-3.0 |
ZelphirKaltstahl/rst-internal-links-to-raw-latex | RSTInternalLinks/RSTInternalLinksParser.py | 11504 | import re
class RSTInternalLinksParser():
"""parses rst files and exchanges internal links with latex internal hyperlinks"""
def __init__(self, headings):
super().__init__()
self.headings = headings
self.rst_reference_definition_regex = re.compile(
r'\.\. _(?P<link_key>[... | gpl-3.0 |
JosePineiro/LittleZip | LittleZip/Program.cs | 464 | using System;
using System.Windows.Forms;
namespace LittleZipTest
{
static class Program
{
/// <summary>
/// Punto de entrada principal para la aplicación.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();... | gpl-3.0 |
janisozaur/OpenRCT2 | src/openrct2/actions/RideCreateAction.cpp | 9607 | /*****************************************************************************
* Copyright (c) 2014-2020 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU Gener... | gpl-3.0 |
mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/test/unit/jobs/test_runner_local.py | 5600 | import os
import threading
import time
from unittest import TestCase
from galaxy.util import bunch
from galaxy.jobs.runners import local
from galaxy.jobs import metrics
from galaxy import model
from tools_support import (
UsesApp,
UsesTools
)
class TestLocalJobRunner( TestCase, UsesApp, UsesTools ):
de... | gpl-3.0 |
Kunzisoft/RememBirthday | RememBirthday-UI/src/main/java/com/kunzisoft/remembirthday/factory/MenuFactoryPro.java | 1032 | package com.kunzisoft.remembirthday.factory;
import android.content.Context;
import com.kunzisoft.remembirthday.preference.PreferencesManager;
/**
* Menu Factory for Pro version of application. <br />
* Automatically hides the daemon-dependent buttons when they are inactive
*/
public class MenuFactoryPro extends ... | gpl-3.0 |
apruden/mica2 | mica-core/src/main/java/org/obiba/mica/file/event/FileUnPublishedEvent.java | 631 | /*
* Copyright (c) 2016 OBiBa. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*... | gpl-3.0 |
oprogramador/TicketsOnline | src/Mondo/BookingBundle/MondoBookingBundle.php | 247 | <?php
/**************************************
*
* Author: Piotr Sroczkowski
*
**************************************/
namespace Mondo\BookingBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class MondoBookingBundle extends Bundle {
}
| gpl-3.0 |
danielbonetto/twig_MVC | lang/ar/lesson.php | 22792 | <?php
// This file is part of Moodle - http://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 |
jadhachem/ghost-wanderer | src/red_ghost.cpp | 991 | /**
* Copyright (C) 2014 Jad Hachem <jad.hachem@gmail.com>
*
* This file is part of Ghost Wanderer.
*
* Ghost Wanderer 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, ... | gpl-3.0 |
abmindiarepomanager/ABMOpenMainet | Mainet1.1/MainetServiceParent/MainetServiceRnL/src/main/java/com/abm/mainet/rnl/ui/controller/PropFreezeController.java | 7149 | package com.abm.mainet.rnl.ui.controller;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.sprin... | gpl-3.0 |
hmemcpy/milewski-ctfp-pdf | src/content/1.9/code/scala/snippet05.scala | 51 | val greet: String => String =
catstr("Hello ", _) | gpl-3.0 |
biddingproject/OnlineBiddingSystem | BiddingSystem/ejb/src/main/java/com/bidding/model/Transaction.java | 3229 | package com.bidding.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.... | gpl-3.0 |
BenjaminDHorne/Open-Source-Basketball-Heat-Map-Maker | GenerateHeatMap.py | 18928 | #matplotlib inline
#import requests
import sys
import matplotlib.pyplot as plt
import matplotlib.backends.backend_pdf
import matplotlib
import pandas as pd
import seaborn as sns
from matplotlib.patches import Circle, Rectangle, Arc
from local_libs.option_d import test_cm as viridis # another file i have
#from... | gpl-3.0 |
Construo/construo | src/save_gui_manager.hpp | 1056 | // Construo - A wire-frame construction game
// Copyright (C) 2002 Ingo Ruhnke <grumbel@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (a... | gpl-3.0 |
sorab2142/sorabpithawala-magicgrove | source/Grove/Gameplay/Effects/ExileCard.cs | 350 | namespace Grove.Gameplay.Effects
{
public class ExileCard : Effect
{
private readonly DynParam<Card> _card;
private ExileCard() {}
public ExileCard(DynParam<Card> card)
{
_card = card;
RegisterDynamicParameters(card);
}
protected override void ResolveEffect()
{
_car... | gpl-3.0 |
smap-consulting/smapserver | sdDAL/src/org/smap/sdal/model/EmailServer.java | 259 | package org.smap.sdal.model;
/*
* Form Class
* Used for storing details of an email server
*/
public class EmailServer {
public String smtpHost;
public String emailDomain;
public String emailUser;
public String emailPassword;
public int emailPort;
}
| gpl-3.0 |
Victor-Haefner/polyvr | src/core/utils/zipper/filesystem.cpp | 1395 | #include "filesystem.h"
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
bool FILESYSTEM::isFile(const string& path) {
return fs::is_regular_file(path);
}
bool FILESYSTEM::isDir(const string& path) {
return fs::is_directory(path);
}
bool FILESYSTEM::exist(const string& path) {
return fs... | gpl-3.0 |
lordohatred/GCC | World Domination/Assets/Scripts/Gameplay/AICountry.cs | 2077 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class AICountry : MonoBehaviour {
GameObject[] possibleTargets;
GameObject[] enemies;
public Vector2 target;
float speed;
int whatTarget;
int difficulty = 1;
bool canTravel;
int furtherDistance;
// Use this for initializa... | gpl-3.0 |
Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/jackson/src/test/java/com/baeldung/jackson/annotation/extra/ExtraAnnotationUnitTest.java | 6093 | package com.baeldung.jackson.annotation.extra;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import... | gpl-3.0 |
yoxjames/ColdSnap | app/src/main/java/com/yoxjames/coldsnap/ui/feed/FeedView.java | 1159 | package com.yoxjames.coldsnap.ui.feed;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import com.yoxjames.colds... | gpl-3.0 |
hapit/brenda-web2 | src/app2/landingPage/landing-page.component.ts | 174 | import {Component} from '@angular/core'
@Component({
selector: 'app-landing-page',
templateUrl: './landing-page.component.html'
})
export class LandingPageComponent {
}
| gpl-3.0 |
FabioZumbi12/UltimateChat | UltimateChat-Spigot/src/main/java/br/net/fabiozumbi12/UltimateChat/Bukkit/config/UCConfig.java | 13995 | /*
Copyright @FabioZumbi12
This class is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any
damages arising from the use of this class.
Permission is granted to anyone to use this class for any purpose, including commercial plugins, and to alter it and
... | gpl-3.0 |
Asurvovor/adsStudy | sinaads/src/sinaads/main.js | 2065 | /*!
* sinaads
* 新浪统一商业广告脚本
* 负责使用pdps(新浪广告资源管理码)向广告引擎请求数据并处理广告渲染
* @author acelan <xiaobin8[at]staff.sina.com.cn>
* @version 1.8.0
* @date 2013-08-08
*/
/**
* @useage
* window.sinaadsPreloadData = [pdps1, pdps2, pdps3, ..., pdpsn]; 批量加载的代码
* (window.sinaads = window.sinaads || []).push({}); 投放一个位置
... | gpl-3.0 |
xavierh/minecolonies | src/main/java/com/minecolonies/coremod/client/gui/WindowTownHallNameEntry.java | 1780 | package com.minecolonies.coremod.client.gui;
import com.minecolonies.blockout.controls.Button;
import com.minecolonies.blockout.controls.TextField;
import com.minecolonies.blockout.views.Window;
import com.minecolonies.coremod.colony.ColonyView;
import com.minecolonies.coremod.lib.Constants;
import org.jetbrains.annot... | gpl-3.0 |
scrmtrey91/EARS | src/org/um/feri/ears/algorithms/moo/spea2/DistanceNode.java | 1522 | // Copyright (c) 2011 Antonio J. Nebro, Juan J. Durillo
//
// 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 Free Software Foundation, either version 3 of the License, or
// (at your option) any later versio... | gpl-3.0 |
SanderMertens/opensplice | demos/iShapes/Shape.hpp | 959 | #ifndef _SHAPE_HPP
#define _SHAPE_HPP
/** @file */
/**
* @addtogroup demos_iShapes
*/
/** @{*/
#include <QtCore/QRect>
#include <QtGui/QPen>
#include <QtGui/QBrush>
#include <dds/core/refmacros.hpp>
namespace demo { namespace ishapes {
class Shape
{
public:
Shape(const QRect& bounds,
const QPen& pen,... | gpl-3.0 |
mooniak/animager | src/genImages.py | 1174 | ### generate temporary images using GIT commits
### dependencies : imagemagick
import os
def genTempImage( gitImage, options,
outputName, outputExt, outputDir ):
os.system( 'convert ' + gitImage
+ ' ' + options
+ ' ' + outputDir
+ outputName
... | gpl-3.0 |
SGKhmCs/wBoard | src/main/java/ua/sgkhmja/wboard/config/ElasticsearchConfiguration.java | 1640 | package ua.sgkhmja.wboard.config;
import java.io.IOException;
import org.elasticsearch.client.Client;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.da... | gpl-3.0 |
tkasp/osmose-backend | modules/OsmoseLog.py | 5282 | #-*- coding: utf-8 -*-
###########################################################################
## ##
## Copyrights Etienne Chové <chove@crans.org> 2009 ##
## ... | gpl-3.0 |
zxul767/LomasNaucalpan | frontend/create-user/js/create-user.js | 102 | $(document).ready(function() {
$('#menu-create-user').children().css('background', 'beige');
});
| gpl-3.0 |