repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Markersx/WinterCraft | src/main/java/net/mcwintercraft/wintercraft/gmod/PhysGun.java | 6829 | package net.mcwintercraft.wintercraft.gmod;
import net.mcwintercraft.wintercraft.WinterCraft;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.*;
import org.bukkit.event.EventHandler;
import... | gpl-3.0 |
uincore/xdiag | Sources/Utility/UtilFunctions.cpp | 6121 | /*
* 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.
*
* This program is distributed in the hope that it will... | gpl-3.0 |
BernardoGiordano/PKSM | 3ds/include/gui/screen/ExtraSavesSubScreen.hpp | 2199 | /*
* This file is part of PKSM
* Copyright (C) 2016-2021 Bernardo Giordano, Admiral Fish, piepie62
*
* 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 Licen... | gpl-3.0 |
BerserkerDotNet/Ether | src/Ether.Vsts/Types/PullRequestState.cs | 145 | namespace Ether.Vsts.Types
{
public enum PullRequestState
{
None,
Active,
Abandoned,
Completed
}
} | gpl-3.0 |
John000708/Slimefun4 | src/me/mrCookieSlime/Slimefun/Objects/SlimefunItem/machines/Refinery.java | 3227 | package me.mrCookieSlime.Slimefun.Objects.SlimefunItem.machines;
import java.util.ArrayList;
import java.util.List;
import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.InvUtils;
import me.mrCookieSlime.CSCoreLibPlugin.general.Inventory.Item.CustomItem;
import me.mrCookieSlime.Slimefun.Lists.RecipeType;
import m... | gpl-3.0 |
apatry/neo4j-lucene4-index | src/main/java/org/neo4j/index/impl/lucene/IndexClockCache.java | 1350 | /**
* Copyright (c) 2002-2014 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 |
kakarukeys/dengue-viz | webapp/dengue-viz.js | 1495 | function create_map() {
var map = L.map('map').setView([1.36, 103.809357], 12);
L.tileLayer('http://{s}.tiles.mapbox.com/v3/kakarukeys.iofn8meo/{z}/{x}/{y}.png', {
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/li... | gpl-3.0 |
SkyFireArchives/SkyFireEMU_420 | src/server/scripts/Northrend/IcecrownCitadel/boss_rotface.cpp | 28277 | /*
* Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2005-2012 MaNGOS <http://www.getmangos.com/>
* Copyright (C) 2008-2012 Trinity <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... | gpl-3.0 |
meronpan3419/nicolive-kai-plus | NicoLive/forms/Rename/Rename.cs | 3901 | //-------------------------------------------------------------------------
// コテハンリネームダイアログ
//
// Copyright (c) 金時豆(http://ch.nicovideo.jp/community/co48276)
// $Id$
//-------------------------------------------------------------------------
using System;
using System.Windows.Forms;
using System.Threading;
... | gpl-3.0 |
berserkerbernhard/Lidskjalv | code/networkmonitor/modules/interfaces/interface.py | 692 | import os
import time
import shutil
import dialog
from modules.lidskjalvstorage import LidskjalvStorage
# from modules.lidskjalvloggingtools import loginfo # logerror
from modules.sitegrouphosttools import SiteGroupHostTools
# interfaces[int(time.time()*10)] = {'name': 'unknown', 'mac': '123456789012', 'ip':['10.0.0.... | gpl-3.0 |
naxd1532/avikonor | model/facade/action/CreateTasksAction.php | 2878 | <?php
/*
* Copyright (C) 2013 Igalia, S.L. <info@igalia.com>
*
* This file is part of PhpReport.
*
* PhpReport 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 ... | gpl-3.0 |
cws06099/MinecraftPEServer | app/src/main/java/net/fengberd/minecraftpe_server/ServerUtils.java | 5074 | package net.fengberd.minecraftpe_server;
import java.io.*;
import java.util.*;
import java.nio.charset.Charset;
import android.content.Context;
public final class ServerUtils
{
public static Context mContext;
private static Process serverProcess;
private static OutputStream stdin;
private static InputStream std... | gpl-3.0 |
maurociancio/parallel-editor | src/parallel-editor-common/src/main/scala/ar/noxit/paralleleditor/common/converter/MessageConverter.scala | 1531 | /*
* A real-time collaborative tool to develop files over the network.
* Copyright (C) 2010 Mauro Ciancio and Leandro Gilioli
* {maurociancio,legilioli} at gmail dot com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Publi... | gpl-3.0 |
martlin2cz/jaxon | src/main/java/cz/martlin/jaxon/jack/data/values/JackNullValue.java | 600 | package cz.martlin.jaxon.jack.data.values;
import java.io.PrintStream;
import cz.martlin.jaxon.jack.data.design.JackValueType;
import cz.martlin.jaxon.utils.Utils;
/**
* Represents null value.
*
* @author martin
*
*/
public class JackNullValue extends JackValue {
public static final JackNullValue INSTANCE =... | gpl-3.0 |
Washi1337/Emux | Emux.GameBoy/Cartridge/MemoryBankController1.cs | 3741 | using System;
namespace Emux.GameBoy.Cartridge
{
public class MemoryBankController1 : IMemoryBankController
{
private readonly IFullyAccessibleCartridge _cartridge;
private readonly byte[] _romBank = new byte[0x4000];
private int _romBankIndex;
private int _ramBankIndex;
... | gpl-3.0 |
voidALPHA/cgc_viz | Assets/PayloadSelection/BoundAndAssociatedMutable.cs | 1114 | // Copyright 2017 voidALPHA, Inc.
// This file is part of the Haxxis video generation system and is provided
// by voidALPHA in support of the Cyber Grand Challenge.
// Haxxis 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 Softwar... | gpl-3.0 |
AJHMvR/django-spotnet | spotnet/selector.py | 3649 | from django.utils.safestring import mark_safe
from django.utils.html import conditional_escape
from django.utils.translation import ugettext as _
class Selector(object):
checkbox_template = '<input type="checkbox" name="%(name)s" value="%(value)s" />'
action_input_name = 'selector_action'
checkbox_true_va... | gpl-3.0 |
fcla/xmlresolution | spec/resolver_collection_case_12_spec.rb | 4317 | # encoding: UTF-8
warn_level = $VERBOSE
$VERBOSE = nil
require 'xmlresolution/resolver_collection'
require 'xmlresolution/xml_resolver'
require 'socket'
require 'tempfile'
@@locations = Array.new
@@manifest = Object.new
include XmlResolution
describe ResolverCollection do
@@store = nil
@@files = File.join(File.d... | gpl-3.0 |
jim-easterbrook/pyctools-demo | src/scripts/de_interlace/stage_2.py | 3661 | #!/usr/bin/env python
# File written by pyctools-editor. Do not edit.
import argparse
import logging
from pyctools.core.compound import Compound
import pyctools.components.deinterlace.hhiprefilter
import pyctools.components.deinterlace.simple
import pyctools.components.io.videofilereader
import pyctools.components.qt.... | gpl-3.0 |
ZabuzaW/PathWeaver | test/de/zabuza/pathweaver/util/TripleTest.java | 4436 | package de.zabuza.pathweaver.util;
import org.junit.Assert;
import org.junit.Test;
/**
* Test for {@link Triple}.
*
* @author Zabuza {@literal <zabuza.dev@gmail.com>}
*
*/
public final class TripleTest {
/**
* Test method for {@link Triple#equals(java.lang.Object)}.
*/
@SuppressWarnings("... | gpl-3.0 |
fanruan/finereport-design | designer_base/src/com/fr/design/fun/impl/AbstractExportAttrTabProvider.java | 552 | package com.fr.design.fun.impl;
import com.fr.design.fun.ExportAttrTabProvider;
import com.fr.stable.fun.impl.AbstractProvider;
import com.fr.stable.fun.mark.API;
/**
* Created by vito on 16/5/5.
*/
@API(level = ExportAttrTabProvider.CURRENT_LEVEL)
public abstract class AbstractExportAttrTabProvider extends Abstrac... | gpl-3.0 |
fanruan/finereport-design | designer_base/src/com/fr/design/style/background/impl/PatternBackgroundPaneNoFore.java | 682 | package com.fr.design.style.background.impl;
import com.fr.design.style.color.ColorSelectBox;
import javax.swing.*;
import java.awt.*;
/**
* Created by richie on 16/5/18.
*/
public class PatternBackgroundPaneNoFore extends PatternBackgroundPane {
public PatternBackgroundPaneNoFore(int nColumn) {
super... | gpl-3.0 |
WebPA/Source | tutors/assessments/marks/set_group_marks.php | 7943 | <?php
/**
*
* Set marks for the assessment's groups
*
*
* @copyright 2007 Loughborough University
* @license http://www.gnu.org/licenses/gpl.txt
* @version 1.0.0.0
*
*/
require_once("../../../includes/inc_global.php");
require_once(DOC__ROOT . 'includes/classes/class_assessment.php');
require_once(DOC__ROOT ... | gpl-3.0 |
VosDerrick/Volsteria | src/main/java/slimeknights/tconstruct/smeltery/multiblock/MultiblockTinker.java | 1038 | package slimeknights.tconstruct.smeltery.multiblock;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import slimeknights.mantle.multiblock.MultiServantLogic;
import slimeknights.tconstruct.smeltery.tileentity.TileMultiblock;
public abstract class... | gpl-3.0 |
xframium/xframium-java | terminal-driver/src/main/java/org/xframium/terminal/driver/screen/model/package-info.java | 564 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.... | gpl-3.0 |
worldexplorer/SquareOne | Sq1.Core/Repositories/RepositoryDllBrokerAdapters.cs | 365 | using System;
using Sq1.Core.Broker;
namespace Sq1.Core.Repositories {
public class RepositoryDllBrokerAdapters : DllScannerExplicit<BrokerAdapter> {
public RepositoryDllBrokerAdapters(string rootPath) :
base(rootPath,
Assembler.InstanceUninitialized.AssemblerDataSnapshot.ReferencedNetAssemblyNam... | gpl-3.0 |
XdieselX/Patrick-the-Star-Explorer | Broker/Location.java | 2148 |
import java.time.LocalTime;
import java.time.ZonedDateTime;
import java.util.StringTokenizer;
/*
* 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.
*/
/**
*
* @author Ahmed
*/
public cla... | gpl-3.0 |
worldexplorer/SquareOne | DigitalRune-TextEditor-1.3.1/DigitalRune.Windows.TextEditor/Document/Highlighting/TextWord.cs | 10448 | using System;
using System.Diagnostics;
using System.Drawing;
using DigitalRune.Windows.TextEditor.Document;
namespace DigitalRune.Windows.TextEditor.Highlighting
{
/// <summary>
/// Types of words in a line.
/// </summary>
public enum TextWordType
{
/// <summary>A word.</summary>
Wor... | gpl-3.0 |
kallimachos/archive | task/task.py | 2390 | # Python application for pushing content to Google Tasks using the CLI
# This app does not work and needs some TLC
from sys import argv
from requests_oauthlib import OAuth2Session
from datetime import date
from ast import literal_eval
def authenticate(): # Credentials you get from registering a new application
... | gpl-3.0 |
prmr/JetUML | src/ca/mcgill/cs/jetuml/diagram/nodes/AbstractNode.java | 3669 | /*******************************************************************************
* JetUML - A desktop application for fast UML diagramming.
*
* Copyright (C) 2020, 2021 by McGill University.
*
* See: https://github.com/prmr/JetUML
*
* This program is free software: you can redistribute it and/or modi... | gpl-3.0 |
woshikie/Just-Another-Magic-Simulator | Just Another Magic Simulator/Assets/Logic/Cards/KLD/G/GearseekerSerpent.cs | 537 |
using System.Collections;
namespace Card
{
public class GearseekerSerpent : Card
{
/*
Gearseeker Serpent costs {1} less to cast for each artifact you control.
{5}{U}: Gearseeker Serpent can't be blocked this turn.
*/
private const string UniqueCardName = "Gearseeker Serpent";
public GearseekerSerpent() : ... | gpl-3.0 |
ruud-v-a/servo | ports/cef/browser.rs | 9061 | /* 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 browser_host::{ServoCefBrowserHost, ServoCefBrowserHostExtensions};
use eutil::Downcast;
use frame::{ServoCefF... | mpl-2.0 |
jvelo/datatext | src/LaravelUserProvider.php | 605 | <?php
/*
* Copyright (c) 2016 Jérôme Velociter <jerome@velociter.fr>
*
* 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/.
*/
namespace Jvelo\Datatext;
use Illuminat... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | testing/talos/talos/config.py | 16862 | # 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/.
import sys
import os
import copy
from mozlog.commandline import setup_logging
from talos import utils, test
from talos... | mpl-2.0 |
sthaiya/muzima-android | app/src/main/java/com/muzima/view/maps/GPSLocationPickerActivity.java | 10821 | /*
* Copyright (c) The Trustees of Indiana University, Moi University
* and Vanderbilt University Medical Center. All Rights Reserved.
*
* This version of the code is licensed under the MPL 2.0 Open Source license
* with additional health care disclaimer.
* If the user is an entity intending to commercialize any ... | mpl-2.0 |
DarylPinto/stickers-for-discord | bot/commands/delete-sticker.js | 1821 | const rp = require('request-promise');
module.exports = function(message, bot_auth, prefix){
let message_words = message.content.trim().split(/\s+/);
//Remove first word from message_words if command was invoked with an @ mention
if(/<@!?\d+>/.test(message_words[0])) message_words.shift();
if(message.channel.ty... | mpl-2.0 |
Ricard/AppverseProject | app/bower_components/ag-grid/docs/angular-grid-sorting/example1.js | 2310 | var columnDefs = [
{headerName: "Athlete", field: "athlete", width: 150, sort: 'desc'},
{headerName: "Age", field: "age", width: 90},
{headerName: "Country", field: "country", width: 120},
{headerName: "Year", field: "year", width: 90, unSortIcon: true},
{headerName: "Date", field: "date", width: 11... | mpl-2.0 |
new32/east | East.hh | 34031 | /*
# Copyright (C) 2017 A. Gardiner
#
# 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/.
*/
#include <sstream>
#include <string>
#include <iostream>
#include <fstream>
#in... | mpl-2.0 |
xiaoxiangs/devops | pedevops/login/migrations/0001_initial.py | 1788 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='permission',
fields=[
('id', models.AutoField(v... | mpl-2.0 |
mozilla/idea-town-app | src/app/views/experiment_page.js | 2593 | /* 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/. */
import View from 'ampersand-view';
import dom from 'ampersand-dom';
import mustache from 'mustache';
import webCha... | mpl-2.0 |
glasstowerstudios/intellitagger | src/com/glasstowerstudios/intellij/intellitagger/fixes/CreateLogtagFix.java | 4930 | package com.glasstowerstudios.intellij.intellitagger.fixes;
import com.glasstowerstudios.intellij.intellitagger.operation.LogTagFieldAdder;
import com.glasstowerstudios.intellij.intellitagger.resources.IntellitaggerBundle;
import com.glasstowerstudios.intellij.intellitagger.settings.SettingsHelper;
import com.intellij... | mpl-2.0 |
kingland/consul | ui-v2/app/utils/components/discovery-chain/index.js | 4993 | const getNodesByType = function(nodes = {}, type) {
return Object.values(nodes).filter(item => item.Type === type);
};
const findResolver = function(resolvers, service, nspace = 'default', dc) {
if (typeof resolvers[service] === 'undefined') {
resolvers[service] = {
ID: `${service}.${nspace}.${dc}`,
... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | ipc/ipdl/test/cxx/TestShutdown.cpp | 7412 | #include "TestShutdown.h"
namespace mozilla {
namespace _ipdltest {
//-----------------------------------------------------------------------------
// Parent side
void
TestShutdownParent::Main()
{
if (!SendStart())
fail("sending Start()");
}
void
TestShutdownParent::ActorDestroy(ActorDestroyReason why)
{... | mpl-2.0 |
richardwilkes/goblin | expression/new.go | 1106 | // Copyright ©2017-2020 by Richard A. Wilkes. All rights reserved.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, version 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/.
//
// This Source Code Form is "Incompatibl... | mpl-2.0 |
riadhchtara/fxa-password-manager | app/scripts/models/auth_brokers/fx-desktop.js | 5855 | /* 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/. */
/**
* A broker that knows how to communicate with Firefox when used for Sync.
*/
define([
'cocktail',
'unde... | mpl-2.0 |
nellyk/android-client | mifosng-android/src/main/java/com/mifos/mifosxdroid/online/centerlist/CenterListPresenter.java | 3221 | package com.mifos.mifosxdroid.online.centerlist;
import com.mifos.api.DataManager;
import com.mifos.mifosxdroid.base.Presenter;
import com.mifos.objects.group.Center;
import com.mifos.objects.group.CenterWithAssociations;
import java.util.List;
import javax.inject.Inject;
import rx.Subscriber;
import rx.Subscriptio... | mpl-2.0 |
tmhorne/celtx | toolkit/components/places/tests/unit/test_317472.js | 4508 | /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file e... | mpl-2.0 |
realityeditor/server | hardwareInterfaces/camera/index.js | 4884 | exports.enabled = false;
if (exports.enabled) {
var http = require('http');
var server = require('../../libraries/hardwareInterfaces');
server.enableDeveloperUI(true);
var SMTPServer = require('smtp-server').SMTPServer;
var smtpServer = new SMTPServer({
onAuth: onSMTPAuth,
onData:... | mpl-2.0 |
emilVenkov12/TelerikCourses | Programing/02.CSharpPart2Winter2013-2014/01.Arrays/01.Arrays-Homework/05.FindsMaxSeqOfIncrElems/FindsMaxSeqOfIncrElems.cs | 2607 | namespace _05.FindsMaxSeqOfIncrElems
{
using System;
class FindsMaxSeqOfIncrElems
{
//05.Write a program that finds the maximal increasing sequence in an array.
//Example: {3, 2, 3, 4, 2, 2, 4} {2, 3, 4}.
static void Main()
{
#region Manual input
... | mpl-2.0 |
DominoTree/servo | tests/wpt/web-platform-tests/offscreen-canvas/the-canvas-state/2d.state.saverestore.lineWidth.worker.js | 1091 | // DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.state.saverestore.lineWidth
// Description:save()/restore() works for lineWidth
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("save(... | mpl-2.0 |
timsutton/packer | builder/hyperone/config.go | 9421 | //go:generate struct-markdown
//go:generate mapstructure-to-hcl2 -type Config
package hyperone
import (
"errors"
"fmt"
"io/ioutil"
"os"
"time"
"github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/json"
"github.com/hashicorp/packer/common/uuid"
"github.com/hashicorp/packer/helper/communic... | mpl-2.0 |
2gis/nuclear-river-validation-rules | src/Replication.Core/Actors/CreateDataObjectsActor.cs | 2127 | using System;
using System.Collections.Generic;
using System.Linq;
using NuClear.Replication.Core.Commands;
using NuClear.Replication.Core.DataObjects;
using NuClear.Replication.Core.Telemetry;
namespace NuClear.Replication.Core.Actors
{
public sealed class CreateDataObjectsActor<TDataObject> : IActor
wh... | mpl-2.0 |
tbouvet/seed | testing/src/main/java/org/seedstack/seed/it/internal/ITModule.java | 1019 | /**
* Copyright (c) 2013-2015, 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/.
*/
package org.seedstack.seed.it.inte... | mpl-2.0 |
freaktechnik/mines.js | src/stringbundle.js | 1802 | /**
* A StringBundle wraps around an HTML element containing nodes with strings used in JS.
*
* @param {Element} container - The parent element of all strings.
* @throws If the L10n infrastructure is not loaded.
* @class
*/
function StringBundle(container) {
this.container = container;
this.container.setA... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | testing/mozbase/manifestparser/tests/test_chunking.py | 9556 | #!/usr/bin/env python
from itertools import chain
from unittest import TestCase
import os
import random
import mozunit
from manifestparser.filters import (
chunk_by_dir,
chunk_by_runtime,
chunk_by_slice,
)
here = os.path.dirname(os.path.abspath(__file__))
class ChunkBySlice(TestCase):
"""Test chun... | mpl-2.0 |
devpaul/webserv | src/middleware/util/index.ts | 284 | /**
* @file Automatically generated by barrelsby.
*/
export * from "./BufferedResponse";
export * from "./contentNegotiator";
export * from "./createProxy";
export * from "./htmlTemplate";
export * from "./request";
export * from "./file/getStat";
export * from "./file/sendFile";
| mpl-2.0 |
stevekinney/advanced-js-fundamentals-ck | demos/currying/test.js | 1046 | describe('prefixLog - Currying', function () {
// Only unskip this test if you are using trying to use partial application.
it.skip('should prefix a message', function () {
assert.equal(prefixLog('PREFIX', 'message'), 'PREFIX: message');
});
});
describe('prefixLog - Currying', function () {
// Only un... | mpl-2.0 |
kurtisharms/libxennet | libXennet/src/linux/xenServerSocket.hpp | 1602 | #ifndef SERVERSOCKET_HPP
#define SERVERSOCKET_HPP
#include "../xenMain.hpp"
#ifdef LINUX_OS
#include "xenSocketAddress.h"
#include "xenPacket.h"
#include "../xenServerSocketBase.hpp"
//! The Xennet namespace.
/*!
The Xennet namespace contains all of the classes and functions in the library.
*/
namespace Xennet
... | mpl-2.0 |
fchampreux/ODQ_Stairs | spec/requests/authentication_spec.rb | 1218 | require 'spec_helper'
describe "Authentication : " do
subject { page }
###LOG-IN1
describe "signin page" do
before { visit signin_path }
it { should have_selector('h2', text: 'Please sign in') }
it { should have_title('Sign in') }
###LOG-IN2
describe "with invalid information" do
before... | mpl-2.0 |
fxbox/app | tests/unit/lib/foxbox/settings_test.js | 6411 | import Settings from 'js/lib/foxbox/settings';
/** @test {Settings} */
describe('Settings >', function () {
let storageStub;
beforeEach(function () {
this.sinon = sinon.sandbox.create();
storageStub = sinon.stub({
getItem: () => {},
setItem: () => {},
removeItem: () => {},
});
s... | mpl-2.0 |
MapWindow/MapWinGIS | unittests/MapWinGISTests/AxMapTests.cs | 1205 | using System;
using AxMapWinGIS;
using MapWinGIS;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace MapWinGISTests
{
[TestClass]
public class AxMapTests: ICallback
{
private readonly AxMap _axMap1;
private static readonly GlobalSettings _settings = new GlobalSettings();
... | mpl-2.0 |
mssavai/muzima-api | src/main/java/com/muzima/api/model/APIName.java | 764 | /*
* Copyright (c) 2014. The Trustees of Indiana University.
*
* This version of the code is licensed under the MPL 2.0 Open Source license with additional
* healthcare disclaimer. If the user is an entity intending to commercialize any application
* that uses this code in a for-profit venture, please contact the ... | mpl-2.0 |
ThesisPlanet/EducationPlatform | src/library/vendor/Zencoder/Accounts.php | 2021 | <?php
/**
* Zencoder API client interface.
*
* @category Services
* @package Services_Zencoder
* @author Michael Christopher <m@zencoder.com>
* @version Release: 2.1.1
* @license http://creativecommons.org/licenses/MIT/MIT
* @link http://github.com/zencoder/zencoder-php
*/
class Services_... | mpl-2.0 |
nak3/nomad | command/job_inspect.go | 4572 | package command
import (
"fmt"
"strings"
"github.com/hashicorp/nomad/api"
"github.com/hashicorp/nomad/api/contexts"
"github.com/posener/complete"
)
type JobInspectCommand struct {
Meta
}
func (c *JobInspectCommand) Help() string {
helpText := `
Usage: nomad job inspect [options] <job>
Alias: nomad inspect
... | mpl-2.0 |
jamiepg1/module-order | Blocks/CreditNoteSummaryInformation.php | 1256 | <?php
/**
* Copyright (C) 2014 Proximis
*
* 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/.
*/
namespace Rbs\Order\Blocks;
/**
* @name \Rbs\Order\Blocks\CreditNote... | mpl-2.0 |
DavidGamba/go-dicom | qr/go-dicom.go | 8835 | // This file is part of go-dicom.
//
// Copyright (C) 2016 David Gamba Rios
//
// 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 main
import (
// "bufio"
"... | mpl-2.0 |
whd/dsmo_load | hindsight/hs_run/output/dsmo_funnelcake_redshift.lua | 5554 | -- 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/.
local ds = require "heka.derived_stream"
local name = read_config("table_prefix") or "download_stats_funnelcake"
loc... | mpl-2.0 |
openhybrid/HybridObject | HybridObject.cpp | 18338 | /**
* @preserve
*
* .,,,;;,'''..
* .'','... ..',,,.
* .,,,,,,',,',;;:;,. .,l,
* .,',. ... ,;, :l.
* ':;. .'.:do;;. .c ol;'.
* ';;... | mpl-2.0 |
UK992/servo | tests/wpt/web-platform-tests/offscreen-canvas/drawing-rectangles-to-the-canvas/2d.clearRect.path.worker.js | 790 | // DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.clearRect.path
// Description:clearRect does not affect the current path
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_... | mpl-2.0 |
threadly/threadly_benchmarks | src/main/java/org/threadly/concurrent/benchmark/SingleThreadSchedulerExecuteBenchmark.java | 892 | package org.threadly.concurrent.benchmark;
import org.threadly.concurrent.SingleThreadScheduler;
import org.threadly.concurrent.SubmitterScheduler;
public class SingleThreadSchedulerExecuteBenchmark extends AbstractSchedulerExecuteBenchmark {
protected static final SingleThreadScheduler EXECUTOR;
static {
... | mpl-2.0 |
mozilla/badgekit-api-python-client | badgekitapiclient/client/methods/issuers.py | 901 | from badgekitapiclient import models
from badgekitapiclient.client.utils import context_requires, Generator
@context_requires(models.System)
def get_issuers (client, context):
options = {
'path': context._path + models.Issuer.path_part,
'filter': 'issuers',
'default': [],
'generator... | mpl-2.0 |
codeLief/ankang-report | src/main/java/com/ankang/report/model/ExecuteMethod.java | 2325 | /**
**Copyright (c) 2015, ancher 安康 (676239139@qq.com).
**
** 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/.
**
**If it is not possible or desirable... | mpl-2.0 |
opsidian/parsley | combinator/any.go | 1218 | // Copyright (c) 2017 Opsidian Ltd.
//
// 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 combinator
import (
"github.com/opsidian/parsley/ast"
"github.com/o... | mpl-2.0 |
status-im/status-go | vendor/github.com/kilic/bls12-381/fp12.go | 5367 | package bls12381
import (
"errors"
"math/big"
)
type fp12 struct {
fp12temp
fp6 *fp6
}
type fp12temp struct {
t2 [9]*fe2
t6 [5]*fe6
t12 *fe12
}
func newFp12Temp() fp12temp {
t2 := [9]*fe2{}
t6 := [5]*fe6{}
for i := 0; i < len(t2); i++ {
t2[i] = &fe2{}
}
for i := 0; i < len(t6); i++ {
t6[i] = &fe6{... | mpl-2.0 |
Topl/Project-Bifrost | src/main/scala/bifrost/api/http/swagger/CorsSupport.scala | 1395 | package bifrost.api.http.swagger
import akka.http.scaladsl.marshalling.ToResponseMarshallable.apply
import akka.http.scaladsl.model.HttpMethods._
import akka.http.scaladsl.model.HttpResponse
import akka.http.scaladsl.model.StatusCode.int2StatusCode
import akka.http.scaladsl.model.headers._
import akka.http.scal... | mpl-2.0 |
PawelGutkowski/openmrs-module-webservices.rest | omod-1.9/src/main/java/org/openmrs/module/webservices/rest/web/v1_0/resource/openmrs1_9/ConceptStopwordResource1_9.java | 5596 | /**
* 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/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.... | mpl-2.0 |
danlrobertson/servo | components/style/lib.rs | 6557 | /* 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/. */
//! Calculate [specified][specified] and [computed values][computed] from a
//! tree of DOM nodes and a set of st... | mpl-2.0 |
Ninir/terraform-provider-aws | aws/resource_aws_config_configuration_recorder_status_test.go | 8046 | package aws
import (
"fmt"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/configservice"
"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
func testAccConfigConfigurationRecorderStatus_bas... | mpl-2.0 |
MitocGroup/deep-framework | src/deep-log/lib/Driver/RumSqsDriver.js | 6774 | /**
* Created by mgoria on 1/19/16.
*/
'use strict';
import AWS from 'aws-sdk';
import {AbstractDriver} from './AbstractDriver';
import {FailedToSendSqsMessageException} from './Exception/FailedToSendSqsMessageException';
import {FailedToSendBatchSqsMessageException} from './Exception/FailedToSendBatchSqsMessageExc... | mpl-2.0 |
heartysoft/quicksilver | MyWebAppForDeployment/App_Start/IdentityConfig.cs | 1806 | using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using MyWebAppForDeployment.Models;
namespace MyWebAppForDeployment
{
// Configure the application user manager used in this application. User... | mpl-2.0 |
ProfilingLabs/Usemon2 | usemon-domain-java/src/test/java/org/usemon/domain/graph/GraphTest.java | 1026 | /**
* Created 14. nov.. 2007 17.25.07 by Steinar Overbeck Cook
*/
package org.usemon.domain.graph;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* @author t547116 (Steinar Overbeck Cook)
*
*/
public class GraphTest {
@Test
public void testSampleGraph() {
Graph g = new Graph();... | mpl-2.0 |
olegccc/streams-client | src/interfaces/IUpdates.ts | 89 | interface IUpdates {
updates: IUpdate[];
streamId: string;
nodeId: string;
}
| mpl-2.0 |
dtsuran/community-app | app/scripts/controllers/product/InterestRateChartController.js | 2471 | (function(module) {
mifosX.controllers = _.extend(module, {
InterestRateChartController: function(scope, routeParams, resourceFactory, location,$modal) {
scope.edit = function(id){
location.path('/editinterestratechart/' + id);
};
scope.productName = routeParams.productName;
... | mpl-2.0 |
winiceo/71an.com | lab/min.js | 954 | // Install Minio library.
// $ npm install -g minio
//
// Import Minio library.
var Minio = require('minio')
// Instantiate the minio client with the endpoint
// and access keys as shown below.
var minioClient = new Minio.Client({
endPoint: '71an.com',
port: 4100,
secure: false,
accessKey: 'FDGNNW15QWK... | mpl-2.0 |
Rubin-inc/node-talk-generator | lib/phrase/phrase.ts | 1560 | /* 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/. */
/// <reference path="../../typings/node/node.d.ts" />
/// <reference path="../../typings/lodash/lodash.d.ts"... | mpl-2.0 |
eoger/tabcenter-redux | src/sidebar/lib/fuzzysort.js | 24780 | /*
WHAT: SublimeText-like Fuzzy Search
USAGE:
fuzzysort.single('fs', 'Fuzzy Search') // {score: -16}
fuzzysort.single('test', 'test') // {score: 0}
fuzzysort.single('doesnt exist', 'target') // null
fuzzysort.go('mr', ['Monitor.cpp', 'MeshRenderer.cpp'])
// [{score: -18, target: "MeshRenderer.cpp"}, {score:... | mpl-2.0 |
k-joseph/openmrs-module-openhmis.commons | api/src/main/java/org/openmrs/module/openhmis/commons/api/f/Func1.java | 855 | /*
* The contents of this file are subject to the OpenMRS Public 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://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS ... | mpl-2.0 |
Ricard/AppverseProject | app/bower_components/ag-grid/docs/angular-grid-column-api/columnStateExample.js | 2607 | var columnDefs = [
{headerName: "Athlete", field: "athlete", width: 150},
{headerName: "Age", field: "age", width: 90},
{headerName: "Country", field: "country", width: 120},
{headerName: "Year", field: "year", width: 90},
{headerName: "Date", field: "date", width: 110},
{headerName: "Sport", fi... | mpl-2.0 |
finjin/finjin-engine | cpp/library/src/finjin/engine/internal/sound/avaudioengine/AVAudioEngineSoundListener.hpp | 2245 | //Copyright (c) 2017 Finjin
//
//This file is part of Finjin Engine (finjin-engine).
//
//Finjin Engine is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
//This Source Code Form is subject to the ... | mpl-2.0 |
tuchida/rhino | src/org/mozilla/javascript/JavaAdapter.java | 47402 | /* -*- 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;
... | mpl-2.0 |
stratumn/go | store/storehttp/example_test.go | 2129 | // Copyright 2016-2018 Stratumn SAS. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | mpl-2.0 |
ThesisPlanet/EducationPlatform | src/library/App/ServiceProxy/Content/Video.php | 4210 | <?php
namespace App\ServiceProxy\Content;
class Video extends \App\ServiceProxy\aService implements
\App\Service\Content\iVideo
{
protected function loadService ()
{
$this->_service = new \App\Service\Content\Video();
}
/**
* (non-PHPdoc)
*
* @see \App\S... | mpl-2.0 |
garciparedes/python-examples | web/django/graphene/graphene-quickstart/lesson-09-context.py | 429 | #!/usr/bin/env python3
"""
URL: http://docs.graphene-python.org/en/latest/execution/#context
"""
import graphene
import utils.json as uj
class Query(graphene.ObjectType):
name = graphene.String()
def resolve_name(self, args, context, info):
return context.get('name')
schema = graphene.Schema(Quer... | mpl-2.0 |
Stupeflix/japper | japper/alert_backends/django_email/settings.py | 109 | from django.conf import settings
FROM_EMAIL = getattr(settings, 'JAPPER_FROM_EMAIL', 'japper@example.com')
| mpl-2.0 |
maxanier/Vertretungsplan | app/src/main/java/de/maxgb/vertretungsplan/manager/TabManager.java | 4102 | package de.maxgb.vertretungsplan.manager;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONException;
import de.maxgb.vertretungsplan.fragments.InfoFragment;
import de.maxgb.vertretungsplan.fragments.lehrer.AllesLehrerFragment;
import de.maxgb.vertretungsplan.fragm... | mpl-2.0 |
cmars/shadowfax | storage/bolt/contacts_test.go | 3076 | /*
Copyright 2015 Casey Marshall.
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 bolt_test
import (
"path/filepath"
"sort"
"github.com/boltdb/bolt"
... | mpl-2.0 |
therealglazou/bluegriffon | extensions/inspector/resources/content/jsutil/commands/baseCommands.js | 5019 | /* 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/. */
/*****************************************************************************
* Base Commands -------------------... | mpl-2.0 |
writeas/web-core | auth/auth.go | 980 | package auth
import (
uuid "github.com/gofrs/uuid"
"github.com/writeas/web-core/log"
"strings"
)
// GetToken parses out the user token from either an Authorization header or simply passed in.
func GetToken(header string) []byte {
var accessToken []byte
token := header
if len(header) > 0 {
f := strings.Fields(... | mpl-2.0 |
sivaramambikasaran/Quadrature | Gauss_Laguerre/header/Gauss_Laguerre_Nodes_and_Weights_111.hpp | 28880 | //
// Gauss_Laguerre_Nodes_and_Weights_111.hpp
//
//
// Created by Sivaram Ambikasaran on 2014-02-22.09:22:35.
//
//
// Array of nodes and weights for Gauss Laguerre quadrature of order 111.
//
//
#ifndef __Gauss_Laguerre_Nodes_and_Weights_111_hpp__
#define __Gauss_Laguerre_Nodes_and_Weights_111_h... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | extensions/auth/nsAuthSambaNTLM.cpp | 9123 | /* vim:set ts=4 sw=4 et cindent: */
/* 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/. */
#include "nsAuth.h"
#include "nsAuthSambaNTLM.h"
#include "prenv.h"
#include "... | mpl-2.0 |