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 |
|---|---|---|---|---|---|
// sparkly effect for xmas stuff
// a blue icey glow with occasional sparkles
// sparkles
led.led_rnd(0, led.leds);
led.color(255, 255, 255);
led.fade_mode(2);
led.fade_speed(20);
led.draw();
//blue glow
led.repeat_begin_rnd(0,100);
led.led_rnd(0, led.leds);
led.color_rnd(0, 0, 0, 0, 100, 250);
led.fade_mode(1);
le... | psy0rz/ledanim | web/repo/xmas/sparkle.js | JavaScript | gpl-3.0 | 390 |
<?php
/**
* Ini manipulation
*/
class Ini {
var $m_ini;
function Ini() {
$this->m_ini = Array();
}
function load($fn) {
$this->m_ini = Array();
$fh = fopen($fn, "r");
if (!$fh)
return false;
$section = "";
while (($line = fgets($fh)) !== false) {
$line = trim($line);
// ignore blank lines... | xiaosuo/voipconf | lib/ini.php | PHP | gpl-3.0 | 2,462 |
/*
* This file is part of CRISIS, an economics simulator.
*
* Copyright (C) 2015 AITIA International, Inc.
* Copyright (C) 2015 John Kieran Phillips
* Copyright (C) 2015 Ariel Y. Hoffman
*
* CRISIS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | crisis-economics/CRISIS | CRISIS/src/eu/crisis_economics/abm/dashboard/Page_Model.java | Java | gpl-3.0 | 7,152 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package SQL;
import java.util.ArrayList;
/**
*
* @author adam279
*/
public interface CustomerDAO {
public Customer getCu... | mda747/dtu_elec2_prog2_semester_project | Serial/src/SQL/CustomerDAO.java | Java | gpl-3.0 | 529 |
//------------------------------------------------------------------------------
//
// This file is part of AnandamideEditor
//
// copyright: (c) 2010 - 2016
// authors: Alexey Egorov (FadeToBlack aka EvilSpirit)
// Zakhar Shelkovnikov
// Georgiy Kostarev
//
// mailto: anandamide@mail.ru
// anan... | Evil-Spirit/AnandamideEditor | src/AnandamideWorkspaceTree.cpp | C++ | gpl-3.0 | 29,220 |
/** Unused, mostly useless, code. */
/// Computes circumcentre and circumradius of a [tetrahedron](@ref Tet).
/** NOTE: The tetrahedron's jacobian (2*volume) should be stored in [elem.D](&ref D) beforehand.
* The center and radius of the circumsphere are calculated as follows. The circumcenter is
* \f[ \mathbf{O} = \f... | Slaedr/amovemesh | src/unused/extra_code.hpp | C++ | gpl-3.0 | 10,133 |
//package org.aksw.autosparql.tbsl.algorithm.util;
//
//import java.util.Comparator;
//import java.util.HashMap;
//import java.util.Map;
//
//import org.dllearner.common.index.IndexResultItem;
//
//public class IndexResultItemComparator implements Comparator<IndexResultItem>{
// private String s;
// private Map<String,... | AKSW/AutoSPARQL | algorithm-tbsl/src/main/java/org/aksw/autosparql/tbsl/algorithm/util/IndexResultItemComparator.java | Java | gpl-3.0 | 1,260 |
import {Logger, getLogger} from '../utils/logger';
import fs = require('fs');
import {Observable} from 'rxjs/Observable';
import {Subscriber} from 'rxjs/Subscriber';
import {Direction, AbstractAIN, AbstractGPIO, AbstractLED} from './abstract-ports';
export class GPIO extends AbstractGPIO {
public static readonly VAL... | dleuenbe/project2 | server/hardware/beaglebone-ports.ts | TypeScript | gpl-3.0 | 8,864 |
//============================================================================
// Name : closure-test.cc
// Author : ronaflx
// Version : 1.0
// Copyright : GNU GPL
// Description :
//============================================================================
#include <iostream>
using namespace std... | ronaflx/opensource-tutorial | protobuf/closure-test.cc | C++ | gpl-3.0 | 2,640 |
/* Copyright (C) 2003-2013 Runtime Revolution Ltd.
This file is part of LiveCode.
LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.
LiveCode is distributed in the hope that it will be useful, ... | livecodefraser/livecode | libfoundation/src/foundation-data.cpp | C++ | gpl-3.0 | 14,664 |
/*
* Copyright (C) 2015 Lenny Knockaert <lknockx@gmail.com>
*
* This file is part of ZetCam
*
* ZetCam 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... | maksvzw/zetcam | src/main/java/org/maksvzw/zetcam/core/audio/buffers/ByteSampleBuffer.java | Java | gpl-3.0 | 3,890 |
package me.staartvin.statz.datamanager.player.specification;
import java.util.UUID;
public class EnteredBedsSpecification extends PlayerStatSpecification {
public EnteredBedsSpecification(UUID uuid, int value, String worldName) {
super();
this.putInData(Keys.UUID.toString(), uuid);
this.... | Staartvin/Statz | src/me/staartvin/statz/datamanager/player/specification/EnteredBedsSpecification.java | Java | gpl-3.0 | 551 |
export default {
div: 'Div',
aside: 'Aside',
main: 'Main',
h1: 'Heading',
h2: 'Heading',
h3: 'Heading',
h4: 'Heading',
h5: 'Heading',
h6: 'Heading',
p: 'Paragraph',
span: 'Span',
ul: 'Unordered List',
li: 'List Item',
img: 'Image',
strong: 'Strong Text',
e... | builify/builify | src/javascript/components/canvas/click-toolbox/html-tagnames.js | JavaScript | gpl-3.0 | 512 |
// watch
"use strict";
module.exports = {
options: {
livereload: false
},
// docs: {
// files: [
// "<%= pkg.source %>" + "/javascript/**/*.js"
// ],
// tasks: [
// "docs"
// ]
// },
js: {
files: [
"<%= pkg.source ... | LOA-SEAD/cuidando-bem | grunt/options/watch.js | JavaScript | gpl-3.0 | 1,178 |
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* ... | heartvalve/OpenFlipper | Plugin-PropertyVis/OpenVolumeMesh/OVMPropertyVisualizerT.cc | C++ | gpl-3.0 | 18,016 |
///**
// * This file is part of FXL GUI API.
// *
// * FXL GUI API 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.
//... | Letractively/fxlgui | co.fxl.gui.style.gplus/src/main/java/co/fxl/gui/style/gplus/GPlusTable.java | Java | gpl-3.0 | 1,909 |
namespace Tower_Unite_Instrument_Autoplayer.Core
{
/// <summary>
/// This interface is a set of rules that all notes has to follow
/// in order to qualify as a note
/// </summary>
interface INote
{
/// <summary>
/// This method is invoked when the note is reached in the song
... | Sejemus/Tower-Unite-Piano-Bot | Tower Unite Instrument Autoplayer/Core/Interfaces/INote.cs | C# | gpl-3.0 | 371 |
import libtcodpy as libtcod
#globs are imported almost everywhere, so unnecessary libtcod imports should be omitted
##########################################################
# Options
##########################################################
#it's better to pack them into separate file
LIMIT_FPS = 20
#size of the ... | MaxGavr/breakdown_game | globs.py | Python | gpl-3.0 | 3,049 |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class AutoRevealStatListener : gameScriptStatsListener
{
[Ordinal(0)] [RED("owner")] public wCHandle<gameObject> Owner { get; set; }
public AutoRevealStatListener(CR2WFile cr2w, CVaria... | Traderain/Wolven-kit | CP77.CR2W/Types/cp77/AutoRevealStatListener.cs | C# | gpl-3.0 | 381 |
from .main import create_random_key, vigenere, otp
| D-Vaillant/julius | julius/__init__.py | Python | gpl-3.0 | 51 |
package vinamax
import (
"log"
)
var (
//These variables can be set in the input files
B_ext func(t float64) (float64, float64, float64) // External applied field in T
B_ext_space func(t, x, y, z float64) (float64, float64, float64) // External applied field in T
Dt ... | acoene/vinamax | var.go | GO | gpl-3.0 | 4,996 |
#include <DefenseManager.h>
#include <BorderManager.h>
using namespace BWAPI;
DefenseManager::DefenseManager(Arbitrator::Arbitrator<BWAPI::Unit*,double>* arbitrator)
{
firsss2 = false; //chc
very_early_rush = false;
early_attack_assimi = true;
very_early_attack_gate = true;
early_attack_gate = true;
early_rush ... | chc2212/Xelnaga-Starcraft-game-AI-bot-AIIDE2014 | src/src/DefenseManager.cpp | C++ | gpl-3.0 | 9,063 |
<?php
namespace OCAX\Backup;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class BackupBundle extends Bundle
{
}
| omgslinux/oc2 | src/OCAX/Backup/BackupBundle.php | PHP | gpl-3.0 | 118 |
/*
libSDL2pp - C++11 bindings/wrapper for SDL2
Copyright (C) 2015 Dmitry Marakasov <amdmi3@amdmi3.ru>
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 any... | manuporto/megaman | extern/libSDL2pp/examples/mixer.cc | C++ | gpl-3.0 | 2,304 |
/*
* Copyright (C) 2011-2012 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.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 Software Foun... | Zapuss/ZapekFapeCore | src/server/scripts/Northrend/ChamberOfAspects/RubySanctum/boss_saviana_ragefire.cpp | C++ | gpl-3.0 | 8,541 |
/*
* SOS
* Copyright (C) 2016 zDuo (Adithya J, Vazbloke)
*
* 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.
*
*... | adithya321/SOS-The-Healthcare-Companion | app/src/main/java/com/zduo/sos/activity/AddA1CActivity.java | Java | gpl-3.0 | 3,876 |
<header>
<!--Navigation-->
<nav id="menu" class="navbar container">
<div class="navbar-header">
<button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
<a class="navbar-brand" href="#... | normeno/laravel-blog | resources/views/layouts/partials/frontendhead.blade.php | PHP | gpl-3.0 | 4,423 |
/*
* _____ _ _ _____ _
* | __ \| | | | / ____| | |
* | |__) | | ___ | |_| (___ __ _ _ _ __ _ _ __ ___ __| |
* | ___/| |/ _ \| __|\___ \ / _` | | | |/ _` | '__/ _ \/ _` |
* | | | | (_) | |_ ____) | (_| | ... | IntellectualSites/PlotSquared | Core/src/main/java/com/plotsquared/core/plot/flag/implementations/BlockedCmdsFlag.java | Java | gpl-3.0 | 2,524 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq;
using Microsoft.VisualBasic.FileIO;
using Telerik.WinControls.UI;
namespace StockControl
{
public partial class Types : Telerik.Wi... | Tay-nakub/Stockcontrol | StockControl/Process/Types.cs | C# | gpl-3.0 | 21,576 |
/*
* MicroJIAC - A Lightweight Agent Framework
* This file is part of Example: PingPong.
*
* Copyright (c) 2007-2011 DAI-Labor, Technische Universität Berlin
*
* This library includes software developed at DAI-Labor, Technische
* Universität Berlin (http://www.dai-labor.de)
*
* This library is free software: y... | mcpat/microjiac-examples-public | pingpong/src/main/java/de/jiac/micro/examples/pingpong/PingNodeLauncher.java | Java | gpl-3.0 | 1,256 |
/*
Copyright 2010-2012 Infracom & Eurotechnia (support@webcampak.com)
This file is part of the Webcampak project.
Webcampak 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... | Webcampak/v2.0 | src/www/interface/dev/app/controller/dashboard/SourceDiskUsage.js | JavaScript | gpl-3.0 | 5,637 |
<?php
/**
* @auther Saurabh Chandra Patel
* @link https://github.com/saurabhaec/PHPLogger/ for PHP Log report
* @license https://github.com/saurabhaec/PHPLogger/blob/master/LICENSE GNU GENERAL PUBLIC LICENSE
*/
class PHPLogger implements \SplSubject {
/**
* [$name log file name ]
* @var [type]
*/
private ... | saurabhaec/PHPLogger | PHPLogger.php | PHP | gpl-3.0 | 2,465 |
/* Copyright 2012, mokasin
*
* 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 distribute... | mokasin/musicrawler | lib/database/database.go | GO | gpl-3.0 | 4,976 |
# Tests of triangular lattices
#
# Copyright (C) 2017--2019 Simon Dobson
#
# This file is part of simplicial, simplicial topology in Python.
#
# Simplicial 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... | simoninireland/simplicial | test/test_triangularlattice.py | Python | gpl-3.0 | 4,117 |
<?php
// Exit if accessed directly
if ( !defined('ABSPATH')) exit;
/**
* Main Widget Template
*
*
* @file sidebar.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2013 ThemeID
* @license license.txt
* @version Release: 1.0
* @filesource wp... | mhawksey/moocinabox | oocinabox/responsive-child-octel/sidebar-bbpress.php | PHP | gpl-3.0 | 1,109 |
var NAVTREEINDEX1 =
{
"var__init_8h.html#a0764b32f40bbe284b6ba2a1fee678d6c":[2,0,0,16,4],
"var__init_8h.html#a2fd24bcbadb8b59c176dccc6f13250e9":[2,0,0,16,3],
"var__init_8h.html#a3482785bd2a4c8b307f9e0b6f54e2c36":[2,0,0,16,8],
"var__init_8h.html#a6b57f01d3c576db5368dd0efc2f435a4":[2,0,0,16,1],
"var__init_8h.html#a78fa39... | SimonItaly/duckhunt | doc/html/navtreeindex1.js | JavaScript | gpl-3.0 | 675 |
var a00572 =
[
[ "Nrf_bootloader", "a00573.html", null ],
[ "Nrf_dfu", "a00574.html", null ],
[ "Nrf_dfu_transport", "a00575.html", null ],
[ "Nrf_bootloader_util", "a00576.html", null ],
[ "Ble_sdk_app_bootloader_main", "a00577.html", null ]
]; | DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware | nrf51_sdk/Documentation/s120/html/a00572.js | JavaScript | gpl-3.0 | 265 |
package greymerk.roguelike.dungeon.segment;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import greymerk.roguelike.dungeon.IDungeonLevel;
import greymerk.roguelike.theme.ITheme;
imp... | Greymerk/minecraft-roguelike | src/main/java/greymerk/roguelike/dungeon/segment/SegmentGenerator.java | Java | gpl-3.0 | 4,198 |
<?php
/**
* Belgian Police Web Platform - Signatures Component
*
* @copyright Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link https://github.com/belgianpolice/internet-platform
*/
use Nooku\Library;
class SignaturesViewSignatur... | yiendos/snowsport | application/site/component/signatures/view/signature/html.php | PHP | gpl-3.0 | 1,434 |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
... | austin98x/cross-platform-desktop-app | gui/qt-demo/main.cpp | C++ | gpl-3.0 | 2,452 |
// Copyright 2015 The go-ethereum Authors
// This file is part of go-ethereum.
//
// go-ethereum 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)... | tgerring/go-ethereum | core/vm/vm_jit_fake.go | GO | gpl-3.0 | 906 |
/*
* Copyright (C) 2016 - 2017 Aurum
*
* Mystery 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.
*
* Mystery is distributed in ... | SunakazeKun/PMDe | src/com/aurum/mystery2/game/DungeonPokemon.java | Java | gpl-3.0 | 4,157 |
/**
* JSkat - A skat program written in Java
* by Jan Schäfer, Markus J. Luzius and Daniel Loreck
*
* Version 0.11.0
* Copyright (C) 2012-08-28
*
* Licensed under the Apache License, Version 2.0. You may
* obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | mfrasca/jskat-gui | src/main/java/org/jskat/gui/action/iss/ShowLoginPanelAction.java | Java | gpl-3.0 | 1,581 |
/*
Copyright (C) 1996-2017 John W. Eaton
This file is part of Octave.
Octave 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.
Octave is di... | xmjiao/octave-debian | libinterp/operators/op-fs-fs.cc | C++ | gpl-3.0 | 6,381 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/vanAlbada/vanAlbada.H | C++ | gpl-3.0 | 2,902 |
package patterns.builder;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import lombok.extern.slf4j.Slf4j;
/**
* The BuilderTest class.
*/
@Slf4j
public final class BuilderTest {
/**
* Unit Test to build one.
*/
@Test
public void testBuilderOn... | Martin-Spamer/java-coaching | src/test/java/patterns/builder/BuilderTest.java | Java | gpl-3.0 | 817 |
<?php
/*
EINSATZZWECK / USE CASE
* Auslesen der Statistik aus der Datenbank
* Schreiben der Ergebnisse in eine Textdatei
* Die Textdatei kann dann von RESULTS.HTML und RESULTS.JS ausgelesen werden
* Read statistics from database
* Write results into text-file
* The text-file can be accessed via RESULTS.HTML ... | msteudtn/Mat-O-Wahl | extras/statistics_db/read_db_write_text.php | PHP | gpl-3.0 | 2,864 |
/**********************************************************
* Version $Id$
*********************************************************/
//#include "..\stdafx.h"
#include <iostream>
#include <vector>
#include <functional>
#include "ausdruck.h"
#include "funktion.h"
using namespace std;
class compare_BB_Funktion :... | UoA-eResearch/saga-gis | saga-gis/src/modules/grid/grid_calculus_bsl/ausdruck.cpp | C++ | gpl-3.0 | 17,374 |
# Rewritten by RayzoR
import sys
from com.l2scoria.gameserver.model.quest import State
from com.l2scoria.gameserver.model.quest import QuestState
from com.l2scoria.gameserver.model.quest.jython import QuestJython as JQuest
qn = "112_WalkOfFate"
# ~~~~~ npcId list: ~~~~~
Livina = 30572
Karuda = ... | zenn1989/scoria-interlude | L2Jscoria-Game/data/scripts/quests/112_WalkOfFate/__init__.py | Python | gpl-3.0 | 2,208 |
#include "reversead/algorithm/base_reverse_tensor.hpp"
#include "reversead/forwardtype/single_forward.hpp"
template class ReverseAD::BaseReverseTensor<double>;
template class ReverseAD::BaseReverseTensor<ReverseAD::SingleForward>;
| wangmu0701/ReverseAD | ReverseAD/src/algorithm/base_reverse_tensor.cpp | C++ | gpl-3.0 | 232 |
package com.aepronunciation.ipa;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment;
import androidx.appcompat.app.AlertDi... | suragch/aePronunciation | app/src/main/java/com/aepronunciation/ipa/SelectSoundDialogFragment.java | Java | gpl-3.0 | 16,390 |
/*
Wgs.h - Custom library for wintergarden.
Created by Felix Neubauer, August 12, 2016.
*/
#include "Arduino.h"
#include "Wgs.h"
const int STATE_UNKNOWN = 0;
const int STATE_ENABLED = 1;
const int STATE_DISABLING = 2;
const int STATE_DISABLED = 3;
const int STATE_ENABLING = 4;
Wgs::Wgs(int pin_... | ranseyer/blind-control | arduino/Wintergartensteuerung/lib/Wgs.cpp | C++ | gpl-3.0 | 3,018 |
/*
This file is part of Peers, a java SIP softphone.
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
any later version.
This program is di... | Apaq/peers | peers-lib/src/main/java/dk/apaq/peers/sip/transactionuser/DialogManager.java | Java | gpl-3.0 | 4,300 |
package cz.cvut.fit.ddw.project.subprocess;
import cz.cvut.fit.ddw.project.enums.News;
import com.rometools.rome.feed.synd.SyndEntry;
import com.rometools.rome.feed.synd.SyndFeed;
import com.rometools.rome.io.FeedException;
import com.rometools.rome.io.SyndFeedInput;
import com.rometools.rome.io.XmlReader;
import cz.c... | tomas-duda/ddw | src/main/java/cz/cvut/fit/ddw/project/subprocess/RSSFetcher.java | Java | gpl-3.0 | 2,999 |
/*
* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | ksenechal/BootstrapFX | src/main/java/com/ksenechal/javafx/bootstrapfx/skin/BootstrapMenuButtonSkinBase.java | Java | gpl-3.0 | 1,850 |
import React from 'react';
import Grafico from './Grafico';
class Grafici extends React.Component {
render() {
return (
<div>
<h5 className="mt-3">Grafici</h5>
<Grafico titolo="Latenza" xtitle="Misurazioni" ytitle="ms" label="Ping" data={this.props.dataPing} colors={["#ffc107"]}/>
<... | fondazionebordoni/misurainternet-ui | src/Grafici.js | JavaScript | gpl-3.0 | 633 |
/*
* ThreadPool.java
*
* This file is part of the IHMC Util Library
* Copyright (c) 1993-2016 IHMC.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 (GPLv3) as published by the Free Software Foundation.
*
* U.S. Governm... | ihmc/nomads | util/java/us/ihmc/util/ThreadPool.java | Java | gpl-3.0 | 5,504 |
// Copyright © 2008-2014 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#include "FileSystem.h"
#include "FileSourceZip.h"
#include "utils.h"
#include <cstdio>
#include <stdexcept>
static const char *ftype_name(const FileSystem::FileInfo &info) {
if ... | MeteoricGames/pioneer | src/test_FileSystem.cpp | C++ | gpl-3.0 | 2,833 |
/**
* ShapeChange - processing application schemas for geographic information
*
* This file is part of ShapeChange. ShapeChange takes a ISO 19109
* Application Schema from a UML model and translates it into a
* GML Application Schema or other implementation representations.
*
* Additional information about the... | ShapeChange/ShapeChange | src/test/java/de/interactive_instruments/ShapeChange/scxmltest/SCXMLTestResourceConverter.java | Java | gpl-3.0 | 16,951 |
package com.lamer.rc_model_car;
import java.io.FileDescriptor;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Method;
import java.util.Set;
import java.util.UUID;
import android.app.Activity... | whitelamer/android-bt-rc-car | src/com/lamer/rc_model_car/ArduinoModule.java | Java | gpl-3.0 | 8,713 |
/*
Copyright © 2014, Ryan Pavlik
This file is part of xleapmouse.
xleapmouse 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.
... | rpav/xleapmouse | src/util.cpp | C++ | gpl-3.0 | 931 |
from django.urls import path
from .views import redirect_to_archive
urlpatterns = [path("<str:media_id>/", redirect_to_archive)]
| whav/hav | src/hav/apps/media/urls.py | Python | gpl-3.0 | 130 |
# -*- coding: utf-8 -*-
'''
Mepinta
Copyright (c) 2011-2012, Joaquin G. Duo
This file is part of Mepinta.
Mepinta 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 opti... | joaduo/mepinta | core/python_core/mepinta/testing/plugins_testing/TestDiscoveryManager.py | Python | gpl-3.0 | 1,427 |
package com.megathirio.shinsei.item.powder;
import com.megathirio.shinsei.item.PowderShinsei;
import com.megathirio.shinsei.reference.Names;
public class ItemBariumPowder extends PowderShinsei {
public ItemBariumPowder(){
super();
this.setUnlocalizedName(Names.Powders.BARIUM_POWDER);
}
}
| Mrkwtkr/shinsei | src/main/java/com/megathirio/shinsei/item/powder/ItemBariumPowder.java | Java | gpl-3.0 | 315 |
import numpy as np
from scipy import constants
from scipy.integrate import quad
# Boltzmann constant in eV/K
k = constants.value('Boltzmann constant in eV/K')
class Flux() :
"""
This class evaluates the neutron spectrum. The thermal cutoff is treated
as a variable parameter to ensure a specific fast-to-t... | corps-g/flux_spectrum | flux_spectrum.py | Python | gpl-3.0 | 3,697 |
#! python3
# coding: utf-8
# todo
# multithreader par machine
# nettoyer le code
import os
import sys
import configparser
import logging
import re
import gc
import traceback
import getpass
from logging import FileHandler
from colorama import Fore
import colorama
colorama.init()
#logger = logging.getLogger('Magret... | bbmt-bbmt/MagretUtil | source/MagretUtil.py | Python | gpl-3.0 | 9,880 |
<script>
function puntuar(valor){
$(function(){
form = document.forms["form1"];
cr = form.elements["critica"].value;
ju = form.elements["juego"].value;
us = form.elements["usuario"].value;
destino = "<?= base_url('index.php/criticas/puntuar') ?>";
$.post(destino,{critica: cr, jue... | tonigallego/gamerland | application/views/criticas/index.php | PHP | gpl-3.0 | 5,024 |
/*
* Copyright (C) 2005-2012 BetaCONCEPT Limited.
*
* This file is part of Astroboa.
*
* Astroboa 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) ... | BetaCONCEPT/astroboa | astroboa-api/src/main/java/org/betaconceptframework/astroboa/api/model/io/ImportConfiguration.java | Java | gpl-3.0 | 12,356 |
/*
*
* This file is part of Genome Artist.
*
* Genome Artist 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.
*
* Genome Artist... | genomeartist/genomeartist | sources_java/Components/src/ro/genomeartist/components/utils/StringUtilities.java | Java | gpl-3.0 | 2,529 |
package uk.gov.selfserve;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
//import lagan.api.auth.*;
import lagan.api.main.*;
//import org.apache.axis.EngineConfiguration;
//import org.apache.axis.configuration.FileProvider;
import org.apache.axis.client.Stub;
import org.apache.axis.me... | lgss/MyCouncil | WEB-INF/classes/uk/gov/selfserve/LaganUpdateReceipt.java | Java | gpl-3.0 | 3,109 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nibbler.Core.Simple;
using Nibbler.Core.Simple.Definition;
using Nibbler.Core.Simple.Tapes;
namespace Nibbler.Core.Simple.Run
{
public class TmConfiguration<TTape>
where TTape : class, ITape
{
public readonl... | nerai/Nibbler | src/Nibbler.Core.Simple/Run/TmConfiguration.cs | C# | mpl-2.0 | 1,447 |
package etomica.normalmode.nptdemo;
import java.awt.Color;
import etomica.api.IAtom;
import etomica.api.IAtomList;
import etomica.api.IBoundary;
import etomica.api.IBox;
import etomica.api.IVector;
import etomica.api.IVectorMutable;
import etomica.graphics.ColorSchemeCollectiveAgent;
import etomica.nbr.list.NeighborL... | ajschult/etomica | etomica-apps/src/main/java/etomica/normalmode/nptdemo/ColorSchemeScaledOverlap.java | Java | mpl-2.0 | 4,038 |
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.javascript.or... | WolframG/Rhino-Prov-Mod | src/org/mozilla/javascript/orginal/ast/UnaryExpression.java | Java | mpl-2.0 | 4,690 |
/*~
* Copyright (C) 2013 - 2016 George Makrydakis <george@irrequietus.eu>
*
* This file is part of 'clause', a highly generic C++ meta-programming library,
* subject to the terms and conditions of the Mozilla Public License v 2.0. If
* a copy of the MPLv2 license text was not distributed with this file, you can
... | irrequietus/clause | clause/ppmpf/vxpp/slots/func/arty/arty74.hh | C++ | mpl-2.0 | 4,493 |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2019, Joyent, Inc.
*/
var mod_fs = require('fs');
var mod_path = require('path');
var mo... | joyent/sdc-hermes | lib/logsets.js | JavaScript | mpl-2.0 | 2,593 |
/*
* Copyright © 2016 Mathias Doenitz
*
* 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 agre... | sirthias/swave | core/src/main/java/swave/core/impl/Statics.java | Java | mpl-2.0 | 1,574 |
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0
package oci
import (
"context"
"fmt"
"testing"
"time"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/... | oracle/terraform-provider-baremetal | oci/kms_key_test.go | GO | mpl-2.0 | 18,702 |
package org.bear.bookstore.concurrent;
import java.util.PriorityQueue;
public class PriorityQueueTest {
public static void main(String[] args) {
PriorityQueue<String> queue = new PriorityQueue<>((a,b)->{
return a.compareTo(b);
});
queue.add("a");
queue.add("x");
queue.add("c");
queue.add("e");
qu... | zhougithui/bookstore-single | src/test/java/org/bear/bookstore/concurrent/PriorityQueueTest.java | Java | mpl-2.0 | 831 |
// Copyright 2020 Google LLC
//
// 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 w... | hartsock/vault | vendor/google.golang.org/genproto/googleapis/monitoring/v3/alert.pb.go | GO | mpl-2.0 | 58,646 |
package gotry
import (
"errors"
"testing"
"time"
)
func TestTry_noError(t *testing.T) {
r := Retry{}
attempt := 0
err := Try(func() error {
attempt++
return nil
}, r)
if err != nil {
t.Fatal(err)
}
expected := 1
if attempt != expected {
t.Errorf("expected attempt to be %d got %d", expected, attem... | selimekizoglu/gotry | gotry_test.go | GO | mpl-2.0 | 1,117 |
#!/usr/bin/env python
'''
THIS APP IS NOT PRODUCTION READY!! DO NOT USE!
Flask app that provides a RESTful API to MultiScanner.
Supported operations:
GET / ---> Test functionality. {'Message': 'True'}
GET /api/v1/files/<sha256>?raw={t|f} ----> download sample, defaults to passwd protected zip
GET /api/v1/modules --->... | awest1339/multiscanner | utils/api.py | Python | mpl-2.0 | 30,509 |
/*
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
define([
'require',
'modul... | seedstack/w20-business-theme | modules/main.js | JavaScript | mpl-2.0 | 11,739 |
package aws
import (
"fmt"
"testing"
"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
)
func TestAccDataSourceAwsSubnet_basic(t *testing.T) {
rInt := acctest.RandIntRange(0, 256)
cidr := fmt.Sprintf("172.%d.123.0/24", rInt)
tag := "tf-acc-s... | kjmkznr/terraform-provider-aws | aws/data_source_aws_subnet_test.go | GO | mpl-2.0 | 11,340 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
'use strict';
const { Cu } = require('chrome');
const sp = require('sdk/simple-prefs');
const app = require('sdk/s... | Yukarumya/Yukarum-Redfoxes | addon-sdk/source/test/addons/simple-prefs/lib/main.js | JavaScript | mpl-2.0 | 5,341 |
#ifndef RBX_GC_IMMIX_HPP
#define RBX_GC_IMMIX_HPP
#include "memory/address.hpp"
#include "memory/immix_region.hpp"
#include "memory/gc.hpp"
#include "exception.hpp"
#include "object_position.hpp"
namespace rubinius {
class Memory;
namespace memory {
class ImmixGC;
class ImmixMarker;
/**
* ImmixGC uses t... | jsyeo/rubinius | machine/memory/immix_collector.hpp | C++ | mpl-2.0 | 4,136 |
/*
* Copyright (c) 2012-2016 Arne Schwabe
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.openvpn.api;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android... | yonadev/yona-app-android | openvpn/src/main/java/de/blinkt/openvpn/api/ExternalAppDatabase.java | Java | mpl-2.0 | 1,694 |
set :base_url, "https://www.consul.io/"
activate :hashicorp do |h|
h.name = "consul"
h.version = "1.4.0"
h.github_slug = "hashicorp/consul"
end
helpers do
# Returns a segment tracking ID such that local development is not
# tracked to production systems.
def segmentId()
if (ENV['ENV'] == 'p... | youhong316/consul | website/config.rb | Ruby | mpl-2.0 | 2,474 |
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Magic Modules and manual
// ... | terraform-providers/terraform-provider-google | google/resource_compute_instance_group_named_port_sweeper_test.go | GO | mpl-2.0 | 4,472 |
/*
* <?xml version="1.0" encoding="utf-8"?><!--
* ~ Copyright (c) 2018 Stichting Yona Foundation
* ~
* ~ This Source Code Form is subject to the terms of the Mozilla Public
* ~ License, v. 2.0. If a copy of the MPL was not distributed with this
* ~ file, You can obtain one at https://mozilla.org/MPL/2.0/.... | yonadev/yona-app-android | app/src/main/java/nu/yona/app/enums/UserStatus.java | Java | mpl-2.0 | 448 |
function (user, context, callback) {
// dictionary of applications and their related mozillians groups to worry about
const applicationGroupMapping = {
'EnEylt4OZW6i7yCWzZmCxyCxDRp6lOY0': 'mozilliansorg_ghe_saml-test-integrations_users',
};
const fetch = require('node-fetch@2.6.0');
const AUTH0_TIMEOUT ... | mozilla-iam/auth0-deploy | rules/GHE-Groups.js | JavaScript | mpl-2.0 | 4,302 |
#include <cllogger.h>
#include <stdarg.h>
#ifdef CC_PF_WIN32
# include <process.h>
#endif
cl::ClLogger::ClLogger()
: m_write_interval(CL_INIT_WRITE_INTERVAL),
m_check_interval(CL_INIT_CHECK_INTERVAL),
m_stop_times(CL_INIT_STOP_TIMES),
m_stop_count(CL_INIT_STOP_COUNT),
m_write_flag(false... | araraloren/FunctionFind | cpplogger/cllogger.cpp | C++ | mpl-2.0 | 8,085 |
var toolURL = {
'application/x-popcorn': 'https://popcorn.webmaker.org',
'application/x-thimble': 'https://thimble.webmaker.org',
'application/x-x-ray-goggles': 'https://goggles.mozilla.org'
};
module.exports = function (options) {
var moment = require('moment');
var MakeClient = require('makeapi-client');
... | mozilla/webmaker.org | lib/makeapi.js | JavaScript | mpl-2.0 | 4,168 |
#!/usr/bin/python3
from lxml import etree
import sys
class Word:
def __init__(self):
self.word = ''
self.pos = ''
self.props = []
def __hash__(self):
return (self.word + self.pos).__hash__()
def __cmp__(self, other):
n = cmp(self.word, other.word)
if n != 0:... | changwoo/hunspell-dict-ko | utils/findduplicates.py | Python | mpl-2.0 | 1,426 |
<?php
/**
* Jamroom 5 User Accounts module
*
* copyright 2003 - 2015
* by The Jamroom Network
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. Please see the included "license.html" file.
*
* This module may include works that are not developed by
* The Jamroom Netwo... | jeffreybrayne/TheBreakContest | modules/jrUser/quota.php | PHP | mpl-2.0 | 5,055 |
/*
* Copyright (C) 2019 DataSwift Ltd - All Rights Reserved
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
* Written by Eleftherios Myteletsis <eleftherios.mytelet... | Hub-of-all-Things/Rumpel | src/app/settings/settings-page/settings-page.component.ts | TypeScript | mpl-2.0 | 649 |
/* Created by Blake Gideon. <blake at chicagoan.io>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package io.chicagoan.ctawaittime;
import android.telephony... | ChicagoDev/Android_CTA_Bus_Tracker | app/src/main/java/io/chicagoan/ctawaittime/SmsStateListener.java | Java | mpl-2.0 | 833 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Future Modules:
from __future__ import annotations
# Built-in Modules:
import threading
from collections.abc import ... | nstockton/mapperproxy-mume | mapper/delays.py | Python | mpl-2.0 | 3,316 |
// META: timeout=long
// META: script=../util/helpers.js
// META: script=failures.js
run_test(["AES-CTR"]);
| mbrubeck/servo | tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.any.js | JavaScript | mpl-2.0 | 108 |
from tqdm import tqdm
from django.core.management.base import BaseCommand
from django.db.models import Exists, OuterRef
from ...models import Locality, Operator, Service
class Command(BaseCommand):
def handle(self, *args, **options):
for locality in tqdm(Locality.objects.with_documents()):
loc... | jclgoodwin/bustimes.org.uk | busstops/management/commands/update_search_indexes.py | Python | mpl-2.0 | 1,072 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-05-01 08:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('os2webscanner', '0013_auto_20180501_1006'),
]
operations = [
migrations.AlterModelT... | os2webscanner/os2webscanner | django-os2webscanner/os2webscanner/migrations/0014_auto_20180501_1010.py | Python | mpl-2.0 | 408 |