repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
SubZero0/DiscordNet-Docs | src/DiscordNet/Query/Wrappers/MethodInfoWrapper.cs | 481 | using System.Reflection;
namespace DiscordNet.Query
{
public class MethodInfoWrapper : BaseInfoWrapper
{
public MethodInfo Method { get; private set; }
public TypeInfoWrapper Parent { get; private set; }
public string Namespace { get { return Parent.Namespace; } }
pu... | gpl-3.0 |
sonald/sos2 | src/lib.rs | 6801 | #![feature(lang_items)]
#![feature(global_allocator)]
#![feature(allocator_api)]
#![feature(const_fn)]
#![feature(unique)]
#![feature(asm)]
#![feature(range_contains)]
#![feature(alloc, collections)]
#![feature(naked_functions)]
#![feature(core_intrinsics)]
#![feature(core_slice_ext)]
// stabled since 1.17
#![feature(f... | gpl-3.0 |
nexdatas/recselector | nxsrecconfig/Converter.py | 10979 | #!/usr/bin/env python
# This file is part of nxsrecconfig - NeXus Sardana Recorder Settings
#
# Copyright (C) 2014-2017 DESY, Jan Kotanski <jkotan@mail.desy.de>
#
# nexdatas 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-3.0 |
konnorb/arpeggiate | admin/add.php | 540 | <?php
require '../app/start.php';
if (!empty($_POST)){
$artist = $_POST['artist'];
$title = $_POST['title'];
$slug = $_POST['slug'];
$content = $_POST['content'];
$insertPage = $db->prepare("
INSERT INTO songs (artist, title, slug, content, created)
VALUES (:artist, :title, :slug, :content, NOW())
");
... | gpl-3.0 |
maxon887/Cross | Editor/Sources/PropertyViews/FileHandler.cpp | 1791 | #include "FileHandler.h"
#include "FileExplorer.h"
#include "CrossEditor.h"
#include <QDragEnterEvent>
#include <QMimeData>
#include <QMessageBox>
#include <QFileInfo>
FileHandler::FileHandler(QWidget* parent)
: QLineEdit(parent)
{ }
QString FileHandler::GetFile() {
return file_path;
}
void FileHandler::SetFile(c... | gpl-3.0 |
soprasteria/dad | client/src/modules/languages/languages.actions.js | 394 | import { generateEntitiesActions } from '../utils/entities';
import LanguagesConstants from './languages.constants';
// Action when authenticated user successfully get his profile information
const receiveLanguage = (language) => {
return {
type: LanguagesConstants.SELECT_LANGUAGE,
language
};
};
export ... | gpl-3.0 |
curiosag/ftc | RSyntaxTextArea/src/main/java/org/fife/ui/rtextarea/RTextAreaEditorKit.java | 72968 | /*
* 08/13/2004
*
* RTextAreaEditorKit.java - The editor kit used by RTextArea.
*
* This library is distributed under a modified BSD license. See the included
* RSyntaxTextArea.License.txt file for details.
*/
package org.fife.ui.rtextarea;
import java.awt.*;
import java.awt.event.*;
import java.i... | gpl-3.0 |
gohdan/DFC | known_files/hashes/hostcmsfiles/shop/pay/handler2.php | 47 | HostCMS 6.7 = 440fdb1bc12074ff34b30a7c9ce85d13
| gpl-3.0 |
qwert789/bebop-net | ARDroneSDK3/swig/eARCOMMANDS_JUMPINGSUMO_MEDIARECORDEVENT_PICTUREEVENTCHANGED_EVENT.cs | 706 | //------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 3.0.7
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//-----... | gpl-3.0 |
lejubila/piGardenWeb | vendor/backpack/crud/src/resources/views/inc/form_save_buttons.blade.php | 1127 | <div id="saveActions" class="form-group">
<input type="hidden" name="save_action" value="{{ $saveAction['active']['value'] }}">
<div class="btn-group">
<button type="submit" class="btn btn-success">
<span class="fa fa-save" role="presentation" aria-hidden="true"></span>
... | gpl-3.0 |
robertwbrandt/ZarafaAdmin | www/kopano-ooo.php | 6185 | <?php
/*
* Kopano Out of Office form
*
* Created by: Bob Brandt (http://brandt.ie)
* Created on: 2016-04-23
*
* GNU GENERAL PUBLIC LICENSE
* Version 2, June 1991
* -------------------------------------------------------------------------
* ... | gpl-3.0 |
smile901122/lintcode | 最接近0的子数组和 Subarray Sum Closest.cpp | 1308 | class Solution {
public:
/**
* @param nums: A list of integers
* @return: A list of integers includes the index of the first number
* and the index of the last number
*/
vector<int> subarraySumClosest(vector<int> nums){
// write your code here
if(nums.empty()) re... | gpl-3.0 |
lavanyaj/mpsim | MPSimulationTest.cc | 767 | #include "MpWorkload.h"
#include "MPSimulation.h"
#include <assert.h>
#include <iostream> // std::cout
int main(int argc, char *argv[]) {
std::cout << "usage ./MPSimulationTest cap1.txt tm1.txt 200 1" << std::endl;
Workload w;
assert(argc >= 4);
w.parseCapFile(argv[1]);
w.parseTmFile(argv[2]);
std::... | gpl-3.0 |
sdeleeuw/contagement | posts/models/post.py | 828 | from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from content.models import Item
class PostQuerySet(models.QuerySet):
def filter_owner(self, user):
return self.all() if user.is_superuser else self.filter(owner=user)
class Pos... | gpl-3.0 |
nvdnkpr/joola.io.analytics | routes/login.js | 2427 | exports.index = function (req, res) {
res.render('login', { title: 'Joola Analytics' });
};
exports.checkLoginNeeded = function (next) {
joola.logger.info('Check login needed...');
var getter = (joola.config.get('engine:secure') ? require('https') : require('http'));
console.log('test');
var options = {
... | gpl-3.0 |
PlayUAV/ardupilot | libraries/AP_HAL_Linux/RCOutput_Navio.cpp | 3799 |
#include <AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "RCOutput_Navio.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <math.h>
using namespace Linux;
#define PWM_CHAN_COUNT ... | gpl-3.0 |
alexyoung/wingman | test/functional/storage_controller_test.rb | 2317 | require 'test_helper'
class StorageControllerTest < ActionController::TestCase
def setup
generate_fixtures
@request.accept = 'application/json'
end
def teardown
destroy_fixtures
end
test 'access control session fail' do
@request.accept = 'text/html'
post :create, { 'collection' =>... | gpl-3.0 |
molpopgen/libsequence | Sequence/Sites.hpp | 2921 | /*
Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu
Remove the brackets to email me.
This file is part of libsequence.
libsequence 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 |
CoPhi/cophiproofreader | src/main/java/eu/himeros/cophi/text/model/Word.java | 2242 | /*
* This file is part of eu.himeros_CoPhiProofReader_war_1.0-SNAPSHOT
*
* Copyright (C) 2013 federico[DOT]boschetti[DOT]73[AT]gmail[DOT]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 Foundati... | gpl-3.0 |
sklarman/grakn | grakn-engine/src/main/java/ai/grakn/engine/tasks/mock/EndlessExecutionMockTask.java | 1541 | /*
* Grakn - A Distributed Semantic Database
* Copyright (C) 2016 Grakn Labs Limited
*
* Grakn 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... | gpl-3.0 |
linuxwhatelse/plugin.audio.linuxwhatelse.gmusic | addon/routes/__init__.py | 386 | from addon.routes import home # noqa
from addon.routes import listen_now # noqa
from addon.routes import top_charts # noqa
from addon.routes import new_releases # noqa
from addon.routes import my_library # noqa
from addon.routes import browse_stations # noqa
from addon.routes import generic # noqa
from addon.rou... | gpl-3.0 |
MyCoRe-Org/mycore | mycore-base/src/main/java/org/mycore/frontend/jersey/filter/MCRCacheFilter.java | 7449 | /*
* This file is part of *** M y C o R e ***
* See http://www.mycore.de/ for details.
*
* MyCoRe 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 |
criticalmanufacturing/cmf.dev.i18n | src/writers/writer.interface.ts | 269 | export interface Writer {
run(): FileOutputInformation[];
}
export interface FileOutputInformation {
/**
* Relative file path where to write the file to.
*/
file: string;
/**
* Content of the file to write.
*/
content: Buffer;
} | gpl-3.0 |
gerddie/mia | mia/core/cmdlineparser.hh | 20691 | /* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA 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 |
glaxx/tomahawk | lang/tomahawk_is.ts | 201248 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="is" version="2.0">
<context>
<name>ACLJobDelegate</name>
<message>
<location filename="../src/libtomahawk/jobview/AclJobItem.cpp" line="67"/>
<source>Allow %1 to
connect and stream from you?</source>
<translation type="unfinished"/>
</... | gpl-3.0 |
Sleeksnap/sleeksnap | src/org/sleeksnap/gui/options/HotkeyPanel.java | 17230 | /**
* Sleeksnap, the open source cross-platform screenshot uploader
* Copyright (C) 2012 Nikki <nikki@nikkii.us>
*
* 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 L... | gpl-3.0 |
dsolimando/Hot | hot-framework/src/test/resources/be/solidx/hot/test/mvc/f4.js | 30 | function f4() {
return true
} | gpl-3.0 |
M4thx/Melon-SelfBot | src/main/java/com/outlook/m4thx/melonselfbot/commands/EmoteCommand.java | 2420 | package com.outlook.m4thx.melonselfbot.commands;
import com.outlook.m4thx.melonselfbot.commands.api.CommandContext;
import com.outlook.m4thx.melonselfbot.commands.api.CommandExecutor;
public class EmoteCommand implements CommandExecutor {
@Override
public void execute(CommandContext context) {
String full = Stri... | gpl-3.0 |
00-Evan/shattered-pixel-dungeon | desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLaunchValidator.java | 3443 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2021 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 vers... | gpl-3.0 |
hmenke/espresso | src/core/ComFixed.hpp | 3355 | /*
Copyright (C) 2017-2018 The ESPResSo project
This file is part of ESPResSo.
ESPResSo 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 ... | gpl-3.0 |
huangchuping/bug | Sys/ThinkPHP/ThinkPHP.php | 2147 | <?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | gpl-3.0 |
jeroenwalter/Badaap-Comic-Reader | app/view/About.js | 2863 | /*
This file is part of Badaap Comic Reader.
Copyright (c) 2012 Jeroen Walter
Badaap Comic Reader 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... | gpl-3.0 |
raulperula/uco_student | computer_graphics/practices/src/p3/pract3.4.cpp | 3364 | #ifdef WIN32
#include<windows.h>
#endif
#ifdef WIN32
#include<windows.h>
#endif
#include<GL/gl.h>
#include<GL/glut.h>
#include<fstream>
#ifndef WIN32
#include <iostream>
#endif
#include <math.h>
#include <stdlib.h>
#define An 640
#define Al 480
#define GL_PI 3.14159265f
using namespace std;
void m... | gpl-3.0 |
peerrabe/laravel-ecommerce | modules/mage2/ecommerce/resources/views/admin/tax-group/_fields.blade.php | 751 |
@include('mage2-ecommerce::forms.text',['name' => 'name' , 'label' => 'Name'])
<?php $values = []; ?>
@if(isset($model))
<?php
$values = $model->taxRules->pluck('id')->toArray();
?>
@endif
@include('mage2-ecommerce::forms.select',['name' => 'tax_rules[]' ,
... | gpl-3.0 |
Pumpuli/multitheftauto | MTA10_Server/mods/deathmatch/logic/CMarker.cpp | 12618 | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: mods/deathmatch/logic/CMarker.cpp
* PURPOSE: Marker entity class
* DEVELOPERS: Christian Myhre Lundheim <>
* ... | gpl-3.0 |
mwishoff/mattsWork | AMOS - JavaScriptOS/bin/SchedulerProcess3.js | 978 | /**
* Created by Matt on 4/14/2016.
*/
var SchedulerProcess3 = function(counter)
{
switch(counter)
{
case 0:
console.log("case 0 Processes 3");
OS.FS.create("file", "file Content");
//this.program_counter++;
break;
case 1:
console.l... | gpl-3.0 |
SpaceGame-ETSII/spacegame | core/src/com/tfg/spacegame/utils/enums/TypeEnemy.java | 146 | package com.tfg.spacegame.utils.enums;
public enum TypeEnemy {
TYPE1, TYPE2, TYPE3, TYPE4, TYPE5, RED, BLUE, YELLOW, GREEN, ORANGE, PURPLE
}
| gpl-3.0 |
oeru/techblog | drupal8/modules/views_timelinejs/src/TimelineJS/Timeline.php | 2094 | <?php
namespace Drupal\views_timelinejs\TimelineJS;
use Drupal\views_timelinejs\TimelineJS\EraInterface;
use Drupal\views_timelinejs\TimelineJS\SlideInterface;
use Drupal\views_timelinejs\TimelineJS\TimelineInterface;
/**
* Defines a TimelineJS3 timeline.
*/
class Timeline implements TimelineInterface {
/**
... | gpl-3.0 |
anikanovs/iskatel | Iskatel.Web/Controllers/ManageController.cs | 14124 | using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Iskatel.Web.Models;
namespace Iskatel.Web.Controllers
{
[Authorize]
public class ManageController :... | gpl-3.0 |
whitireia/moodle | mod/dialogue/version.php | 1204 | <?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 |
Lux-Vacuos/Voxel | voxel-universal/src/main/java/net/luxvacuos/voxel/universal/ecs/components/ChunkLoader.java | 1675 | /*
* This file is part of Voxel
*
* Copyright (C) 2016-2018 Lux Vacuos
*
* 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... | gpl-3.0 |
deep9/zurmo | app/protected/modules/reports/tests/unit/ReportToExportAdapterTest.php | 47468 | <?php
/*********************************************************************************
* Zurmo is a customer relationship management program developed by
* Zurmo, Inc. Copyright (C) 2012 Zurmo Inc.
*
* Zurmo is free software; you can redistribute it and/or modify it under
* the terms of t... | gpl-3.0 |
UnknownStudio/ChinaCraft | src/main/java/unstudio/chinacraft/item/combat/ModelArmor.java | 3903 | package unstudio.chinacraft.item.combat;
import java.util.List;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecr... | gpl-3.0 |
M66B/BackPackTrackII | app/src/main/java/eu/faircode/backpacktrack2/GPXFileWriter.java | 8502 | package eu.faircode.backpacktrack2;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List... | gpl-3.0 |
David-OConnor/plates | plates/about_gui.py | 2183 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\Dave\Desktop\Programming\plates\resources\about.ui'
#
# Created: Tue Oct 22 11:28:19 2013
# by: PyQt5 UI code generator 5.0.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
... | gpl-3.0 |
HiSPARC/pysparc | pysparc/tests/test_hardware.py | 11728 | import unittest
import weakref
from mock import patch, Mock, MagicMock, sentinel, call
from pysparc import hardware, ftdi_chip, messages
class HiSPARCIIITest(unittest.TestCase):
def test_description(self):
self.assertEqual(hardware.HiSPARCIII.description,
"HiSPARC III Master")
... | gpl-3.0 |
vmindru/ansible | lib/ansible/modules/database/aerospike/aerospike_migrations.py | 18758 | #!/usr/bin/python
"""short_description: Check or wait for migrations between nodes"""
# Copyright: (c) 2018, Albert Autin
# 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
ANSIBLE_METADA... | gpl-3.0 |
will4wachter/Project1 | scripts/commands/godmode.lua | 3028 | ---------------------------------------------------------------------------------------------------
-- func: godmode
-- auth: bluekirby0 :: Modded by atom0s. (Thanks to Mishima for more buff ideas.)
-- desc: Toggles god mode on the player; granting them several special abilities.
-----------------------------------... | gpl-3.0 |
drjod/conePlusPlus | gui/data.cpp | 8719 | #include "data.h"
CData::CData()
{
modificationCounter = 0;
aquifer.storativity = 0.;
aquifer.transmissivity = 0.;
domain.length[0] = 0.;
domain.length[1] = 0.;
domain.resolution[0] = 0.;
domain.resolution[1] = 0.;
timing.end = 0.;
timing.numberOfIntervals = 0;
outputs.clea... | gpl-3.0 |
gaojianyang/only | Only/app/src/main/java/com/personal/xiri/only/widgets/ChatView.java | 33534 | package com.personal.xiri.only.widgets;
import android.content.Context;
import android.graphics.Canvas;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import android.support.v4.view.MotionEventCompat;
import android.support.v4.view.VelocityTrackerCompat;
import android.support.v7.widget.Line... | gpl-3.0 |
alexandervonkurtz/CP2406_Programming2 | WEEK9(PRAC8)/cp2406_farrell8_ch12-master/CodeInFigures/DemoStackTrace2.java | 870 | public class DemoStackTrace2
{
public static void main(String[] args)
{
methodA(); // line 5
}
public static void methodA()
{
System.out.println("In methodA()");
try
{
methodB(); // line 12
}
catch(ArrayIndexOutOfBoundsException error)
{
... | gpl-3.0 |
realopenit/bubble | bubble/commands/cmd_promote.py | 5849 | # -*- coding: utf-8 -*-
# Part of bubble. See LICENSE file for full copyright and licensing details.
import click
import tablib
from ..cli import pass_bubble
from ..cli import STAGES
from ..util.cli_misc import bubble_lod_load
from ..util.cli_misc import get_pairs
from ..util.generators import get_gen_slice
from ..ut... | gpl-3.0 |
tautcony/ChapterTool | Time_Shift/SharpDvdInfo/DvdInfoContainer.cs | 15009 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="SharpDvdInfo.cs" company="JT-Soft (https://github.com/UniqProject/SharpDvdInfo)">
// This file is part of the SharpDvdInfo source code - It may be used under the terms of the GN... | gpl-3.0 |
manovotny/wp-array-util | tests/class-wp-array-util-Test.php | 1893 | <?php
require_once 'vendor/autoload.php';
class WP_Array_Util_Test extends PHPUnit_Framework_TestCase {
private $existing_array;
private $items_to_add;
private $wp_array_util;
protected function setUp() {
$this->existing_array = array(
any_string(),
any_string(),
... | gpl-3.0 |
forman/frex | src/main/java/z/core/PlaneRenderer.java | 8705 | /*
* Created at 06.01.2004 14:39:17
* Copyright (c) 2004 by Norman Fomferra
*/
package z.core;
import z.StringLiterals;
import z.core.color.RGBA;
import z.core.progress.ProgressMonitor;
import z.core.progress.SubProgressMonitor;
import z.util.Assert;
import java.text.MessageFormat;
import java.util.co... | gpl-3.0 |
fabrimaciel/colosoft | Core/Colosoft.Core/TimeSpanSerializationSurrogate.cs | 1586 | /*
* Colosoft Framework - generic framework to assist in development on the .NET platform
* Copyright (C) 2013 <http://www.colosoft.com.br/framework> - support@colosoft.com.br
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... | gpl-3.0 |
Martin-Spamer/java-coaching | src/main/java/patterns/factory/package-info.java | 148 | /**
* Package provides an example of the GOF Factory pattern.
* <p>
* Detailed description of package.
*
*/
package patterns.factory;
| gpl-3.0 |
webSPELL/webSPELL | admin/languages/it/squads.php | 2939 | <?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# ... | gpl-3.0 |
cameoh/android-demo | app/src/main/java/com/github/cameoh/demo/preference/PreferenceFragment.java | 360 | package com.github.cameoh.demo.preference;
import android.os.Bundle;
import com.github.cameoh.demo.R;
public class PreferenceFragment extends android.preference.PreferenceFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferences... | gpl-3.0 |
yujikato/DIRAC | docs/diracdoctools/cmd/concatcfg.py | 5101 | #!/usr/bin/env python
"""script to concatenate the dirac.cfg file's Systems sections with the content of the ConfigTemplate.cfg files."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import OrderedDict
import logging
import os
import re
i... | gpl-3.0 |
fsinf/certificate-authority | ca/django_ca/apps.py | 194 | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class DjangoCAConfig(AppConfig):
name = 'django_ca'
verbose_name = _('Certificate Authority')
| gpl-3.0 |
zbx/device | APDPlat_Core/src/main/java/org/apdplat/platform/criteria/OrderCriteria.java | 1109 | /**
*
* APDPlat - Application Product Development Platform
* Copyright (c) 2013, 张炳祥, zbx13@163.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... | gpl-3.0 |
KevinWG/OSS.Core | FrontEnds/Admin/ClientApp/src/pages/portal/login/index.tsx | 2150 | import React, { useState } from 'react';
import { Link, useModel } from 'umi';
import { Alert, Tabs } from 'antd';
import { RespData, Resp } from '@/utils/resp_d';
import { getPageQuery } from '@/utils/utils';
const { TabPane } = Tabs;
import PasswordLoginForm from './compents/password_login_form';
import CodeLoginFo... | gpl-3.0 |
VisualCrypt/VisualCrypt | Windows_Universal/VisualCrypt.UWP/Controls/EditorSupport/IEditor.cs | 292 | using Windows.UI.Xaml.Controls;
namespace VisualCrypt.UWP.Controls.EditorSupport
{
public interface IEditor
{
TextBox TextBox1 { get; }
TextBox TextBoxFind { get; }
TextBox TextBoxFindReplace { get; }
TextBox TextBoxGoTo { get; }
UserControl EditorControl { get; }
}
} | gpl-3.0 |
cTn-dev/Phoenix-FlightController | extras/Configurator/background.js | 820 | chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('main.html', {
frame: 'chrome',
id: 'main-window',
minWidth: 960,
maxWidth: 960,
minHeight: 550,
maxHeight: 550
}, function(main_window) {
main_window.onClosed.addListener(func... | gpl-3.0 |
redaaz/GrammarInduction | Inducer/src/spm/clasp2/Trie.java | 12172 | package spm.clasp2;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.List;
import java.util.Map.Entry;
/**
* Class that implement a trie structure. A trie is composed of a list of
* nodes children that are also the beginning of other ... | gpl-3.0 |
abarch/expmodel | rbm.py | 7325 | from sklearn.neural_network import BernoulliRBM
from sklearn import linear_model, metrics
from sklearn.cross_validation import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MultiLabelBinarizer
from sklearn.multiclass import OneVsRestClassifier
from sklearn import svm
from skle... | gpl-3.0 |
tima/ansible | lib/ansible/modules/network/aci/aci_domain_to_vlan_pool.py | 7395 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Dag Wieers <dag@wieers.com>
# 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
ANSIBLE_METADATA = {'metadata_version': '1.1'... | gpl-3.0 |
zeatul/poc | e-commerce/e-commerce-mall-product-service/src/main/java/com/hawk/ecom/product/exception/AttrNameIsNotUsedByProductRuntimeException.java | 510 | package com.hawk.ecom.product.exception;
import com.hawk.ecom.pub.exception.ErrorCodeAllocation;
import com.hawk.framework.pub.exception.BasicRuntimeException;
public class AttrNameIsNotUsedByProductRuntimeException extends BasicRuntimeException {
/**
*
*/
private static final long serialVersionUID = -2... | gpl-3.0 |
cclerke/snozama | project/src/snozama/amazons/mechanics/algo/DummySearch.java | 1928 | package snozama.amazons.mechanics.algo;
import snozama.amazons.mechanics.Board;
import snozama.amazons.mechanics.MoveManager;
/**
* A randomized search algorithm.
*
* @author Graeme Douglas
*
*/
public class DummySearch {
/**
* The time limit of the search as a system milliseconds time.
*/
long endTime;... | gpl-3.0 |
ski7777/ftcommunity-apps | packages/brickly/custom_blocks.js | 27004 | // custom block definitions for brickly incl. python code generation
// https://blockly-demo.appspot.com/static/demos/blockfactory/index.html
CustomBlocksHUE = 180
InputBlocksHUE = 200
OutputBlocksHUE = 220
MobileBlocksHUE = 250
TextBlocksHUE = 350
// --------------------------------------------------------
var bloc... | gpl-3.0 |
opencart-rewrite/opencart-rewrite | upload/admin/controller/payment/pp_pro.php | 7751 | <?php
class ControllerPaymentPPPro extends Controller {
private $error = array();
public function index() {
$this->load->language('payment/pp_pro');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('setting/setting');
if (($this->request->s... | gpl-3.0 |
RoyalVeterinaryCollege/Folium | src/Folium.Api/Services/SqlDbService.cs | 1384 | /**
* Copyright 2017 The Royal Veterinary College, jbullock AT rvc.ac.uk
*
* This file is part of Folium.
*
* Folium 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 |
CLAMP-IT/moodle | blocks/filtered_course_list/db/upgrade.php | 5925 | <?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 |
lgp171188/BuzzNotifier | src/in/lguruprasad/buzznotifier/MyNotificationManager.java | 1932 | package in.lguruprasad.buzznotifier;
import android.annotation.TargetApi;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
public class MyNotificationManager {
private MyNotificationManager() {}
p... | gpl-3.0 |
EntradaProject/entrada-1x | www-root/core/modules/admin/settings/manage/categories/add.inc.php | 22977 | <?php
/**
* Entrada [ http://www.entrada-project.org ]
*
* Entrada 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.
*
* Entrada ... | gpl-3.0 |
ljonka/NFCDoorServer | app/Forms/DoorUserForm.php | 1380 | <?php
namespace App\Forms;
use Kris\LaravelFormBuilder\Form;
use App\Door;
use App\DoorUser;
use App\DoorUserGrant;
class DoorUserForm extends Form
{
public function buildForm()
{
$selected = [];
if(isset($this->data['user'])){
$user = $this->data['user'];
$grants = DoorUs... | gpl-3.0 |
jake577/snaked | SnakeWar-android/gen/com/jesttek/snakeWar/R.java | 33309 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.jesttek.snakeWar;
public final class R {
public static final class attr {
/**
The size of the ad. It must be... | gpl-3.0 |
simoninireland/epydemic | epydemic/gf/continuous_gf.py | 3791 | # Continuous generating functions
#
# Copyright (C) 2021 Simon Dobson
#
# This file is part of epydemic, epidemic network simulations in Python.
#
# epydemic 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, eit... | gpl-3.0 |
atilacamurca/guia-aberto-android-contatos | app/src/androidTest/java/exemplo/android/guia/contatos/ApplicationTest.java | 360 | package exemplo.android.guia.contatos;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... | gpl-3.0 |
killbug2004/wdbgark | src/wdbgark.hpp | 10709 | /*
* WinDBG Anti-RootKit extension
* Copyright © 2013-2015 Vyacheslav Rusakoff
*
* 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 |
Mrkwtkr/shinsei | src/main/java/com/megathirio/shinsei/item/powder/ItemOpalPowder.java | 309 | package com.megathirio.shinsei.item.powder;
import com.megathirio.shinsei.item.PowderShinsei;
import com.megathirio.shinsei.reference.Names;
public class ItemOpalPowder extends PowderShinsei {
public ItemOpalPowder(){
super();
this.setUnlocalizedName(Names.Powders.OPAL_POWDER);
}
}
| gpl-3.0 |
NightsWatch/open-course | models/exams.php | 5006 | <?php
include_once 'dbs.php';
class exams
{
private $id, $assnno, $deadline, $maxmarks, $extension, $path, $assn_name, $courseid;
function __construct()
{
$db= New dbs();
$db->connect();
$this->id= NULL;
$this->extension=NULL;
$this->path=NULL;
$this->courseid=NULL;
}
public function... | gpl-3.0 |
Yoon-jae/Algorithm_BOJ | problem/2954/2954.cpp | 608 | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
char vowel[5] = {'a','e','i','o','u'};
int main() {
vector<char> v;
string in;
getline(cin,in);
for(int i=0; i<in.size(); i++) {
char ch = in[i];
bool found = false;
for(int j=0; j<5; j++) {
... | gpl-3.0 |
anadon/madlib | include/graph.hpp | 15522 | /*Copyright 2016-2018 Josh Marshall********************************************/
/*******************************************************************************
This file is part of Madlib.
Madlib is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as p... | gpl-3.0 |
mnovits1/JavaStuff | ArrayLists.java | 3730 | /* Working with ArrayLists
This program takes user entered integers and reads the values
into an arraylist to be processed. The output is to the console
showing totals and averages of values in the arraylist.
Michael Novitsky
Program #11, CS 1050, Section 1
jGRASP IDE, W... | gpl-3.0 |
brianhouse/txtml | src/modules/Module_subtract.php | 1328 | <?php
class Module_subtract extends Module {
protected function x ($user,$time,$input) {
if ($user->getVar($this->param("var")) !== null) {
$value = $user->getVar($this->param("var"));
$value = $this->number($value);
}
if ($this->param("value") !== null) {
$subtract = floatval($this->param("value... | gpl-3.0 |
boggen/commerce_for_moodle | paygate/nochex/version.php | 1243 | <?php
// short line of what this file is about
//
// commerce 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.
//
// commerce is dist... | gpl-3.0 |
sacloud/sackerel | job/worker/exchange/exchange_database.go | 2357 | package exchange
import (
"fmt"
mkr "github.com/mackerelio/mackerel-client-go"
"github.com/sacloud/libsacloud/sacloud"
"github.com/sacloud/sackerel/job/core"
"strings"
)
// DatabaseJob データベース変換用ジョブ
func DatabaseJob(payload interface{}) core.JobAPI {
return core.NewJob("ExchangeDatabase", exchangeDatabase, paylo... | gpl-3.0 |
samdroid-apps/bibliography-activity | browsewindow.py | 6104 | # Copyright 2016 Sam Parkinson
#
# 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 ... | gpl-3.0 |
lilith645/EulerChallenges | Problem14/Collatz.scala | 749 | import scala.annotation.tailrec
object Collatz {
@tailrec
def getChainLength(testNum: Int, num: Int, chainLength: Int): Int = {
if(num == 1) chainLength
else if(num % 2 == 0)
getChainLength(testNum, num/2, chainLength+1);
else
getChainLength(testNum, 3*num+1, chainLength+1);
}
... | gpl-3.0 |
s0urc3d3v3l0pm3nt/qksms | QKSMS/src/main/java/com/moez/QKSMS/ui/base/QKActivity.java | 6865 | package com.moez.QKSMS.ui.base;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.os.PowerManager;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.wid... | gpl-3.0 |
Crash911/RaptoredSkyFire | src/server/game/Handlers/TaxiHandler.cpp | 10787 | /*
* Copyright (C) 2011-2013 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2013 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Genera... | gpl-3.0 |
LEPTON-project/LEPTON_2 | upload/modules/tinymce/tinymce/plugins/pagelink/register_class_secure.php | 580 | <?php
/**
* @module pagelin-plugin for TinyMCE
* @version see info.php of this module
* @authors Ryan Djurovich, Chio Maisriml, Thomas Hornik, Dietrich Roland Pehlke
* @copyright 2004-2017 Ryan Djurovich, Chio Maisriml, Thomas Hornik, Dietrich Roland Pehlke
* @license ... | gpl-3.0 |
googlecreativelab/creatability-seeing-music | src/visualization/SpectrogramPitchScroll.js | 1371 | /**
* Copyright 2019 Google LLC
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY... | gpl-3.0 |
bitcoinbrisbane/BitPoker | BitPoker.Controllers.NTests/TablesControllerTests.cs | 5414 | using System;
using NUnit.Framework;
namespace BitPoker.Controllers.Tests
{
[TestFixture()]
public class TablesControllerTests
{
//private BitPoker.Models.IRequest request;
private const String REQUEST_ID = "a66a8eb4-ea1f-42bb-b5f2-03456094b1f6";
private const String TABLE_ID = "d6d9890d... | gpl-3.0 |
ZOARDER-JR/Programming | Toph/Safe Zone.cpp | 4556 | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<sstream>
#include<cstdio>
#include<cmath>
#include<cstdlib>
#include<cctype>
#include<cstring>
#include<climits>
#include<iomanip>
#include<string>
#include<vector>
#include<stack>
#include<queue>
#include<deque>
#include<set>
#include<map>
... | gpl-3.0 |
AleksNeStu/pytasks | EPAM/advanced_python/l1-8.py | 551 | """Keyword Arguments in Dictionary."""
__author__ = 'AleksNeStu'
__copyright__ = "The GNU General Public License v3.0"
def printargs(arg, **kwargs):
print arg, kwargs
def test_var_args_call(arg1, arg2, arg3):
print "arg1:", arg1
print "arg2:", arg2
print "arg3:", arg3
# normal call with separate argumen... | gpl-3.0 |
ifpb/projeto-estagio | sigtcc/spec/views/ata_defesas/create.html.erb_spec.rb | 146 | require 'rails_helper'
RSpec.describe "ata_defesas/create.html.erb", type: :view do
pending "add some examples to (or delete) #{__FILE__}"
end
| gpl-3.0 |
DoctorJew/Paragon-Discord-Bot | cogs/pick.py | 5906 | from discord.ext import commands
from cogs.database import *
class Pick:
"""Pick a random hero or set of heroes."""
def __init__(self, bot):
self.bot = bot
self.agora = self.bot.get_cog('Agora') # Requires the Agora extension be loaded
@commands.command()
async def pick(self, ctx):... | gpl-3.0 |