repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
gcarq/freqtrade | freqtrade/exchange/exchange.py | 59586 | # pragma pylint: disable=W0603
"""
Cryptocurrency Exchanges support
"""
import asyncio
import inspect
import logging
from copy import deepcopy
from datetime import datetime, timezone
from math import ceil
from typing import Any, Dict, List, Optional, Tuple
import arrow
import ccxt
import ccxt.async_support as ccxt_asy... | gpl-3.0 |
ray306/expy | stim/video.py | 2544 | from expy import shared
from expy.response import *
from .draw import getPos
def loadVideo(path):
'''
Load a video array
Parameters
----------
path: str
The file path of target video
Returns
-------
player: pyglet.media.Player
playVideo() could use it
'''
sour... | gpl-3.0 |
Donkyhotay/MoonPy | zope/app/session/ftests.py | 3899 | ##############################################################################
#
# Copyright (c) 2004 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | gpl-3.0 |
3dct/open_iA | libs/guibase/io/iAAmiraMeshIO.cpp | 13349 | /************************************* open_iA ************************************ *
* ********** A tool for visual analysis and processing of 3D CT images ********** *
* *********************************************************************************** *
* Copyright (C) 2016-2021 C. Heinzl, M. Reiter, A. Reh,... | gpl-3.0 |
Scille/parsec-gui | src/reducers/viewSwitcherReducer.test.js | 678 | import viewSwitcherReducer from './viewSwitcherReducer'
import * as types from '../actions/ActionTypes';
describe('ViewSwitcher Reducer', () => {
const initialState = {list: true, loading_animation: true}
it('should return the initial state', () => {
expect(viewSwitcherReducer(undefined, {})).toEqual(initialS... | gpl-3.0 |
Limnor/Limnor-Studio-Source-Code | Source/WebBuilder/JsString.cs | 14073 | /*
* Author: Bob Limnor (info@limnor.com)
* Project: Limnor Studio
* Item: Web Project Support
* License: GNU General Public License v3.0
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using VPL;
using System.ComponentModel;
using System.Collections.S... | gpl-3.0 |
emiliano84/FormValidationUwp | Yugen.Toolkit.Uwp/Services/LocalizationService.cs | 451 | using Windows.ApplicationModel.Resources;
namespace Yugen.Toolkit.Uwp.Services
{
public static class LocalizationService
{
private static readonly ResourceLoader Loader = new ResourceLoader();
public static string Load(string stringName)
{
var localizedString = Loader.GetSt... | gpl-3.0 |
DaGeRe/KoPeMe | kopeme-core/src/test/java/de/dagere/kopeme/kieker/TestKiekerTraceEntry.java | 448 | package de.dagere.kopeme.kieker;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.util.Arrays;
import org.junit.Test;
public class TestKiekerTraceEntry {
@Test
public void testFieldOrder() throws Exception {
String[] testable = KiekerTraceEntry.getFie... | gpl-3.0 |
willjoseph/cpparch | cpparch/cppparse/msvc-8.0/include/delayhlp.cpp | 15385 | //
// DelayHlp.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Implement the delay load helper routines.
//
// Build instructions
// cl -c -O1 -Z7 -Zl -W3 delayhlp.cpp
//
// For ISOLATION_AWARE_ENABLED calls to LoadLibrary(), you will need to add
// a definition for ISOLATION_A... | gpl-3.0 |
EasyFarm/EasyFarm | EasyFarm/Classes/PlayerMonitor.cs | 1945 | // ///////////////////////////////////////////////////////////////////
// This file is a part of EasyFarm for Final Fantasy XI
// Copyright (C) 2013 Mykezero
//
// EasyFarm is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Soft... | gpl-3.0 |
FabriceSalvaire/PyValentina | Patro/TextileTechnology/Seam.py | 1853 | ####################################################################################################
#
# Patro - A Python library to make patterns for fashion design
# Copyright (C) 2019 Fabrice Salvaire
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gene... | gpl-3.0 |
google-code/algoexplorer | src/ppciarravano/algoexplorer/util/PropFileLoader.java | 1231 | package ppciarravano.algoexplorer.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* Classe per caricare un file di properties dal classpath.
*
* <br><br>License: GNU General Public License Version 3<br>
*
* @author Pier Paolo Ciarravano
* @versio... | gpl-3.0 |
cgeltly/treechecker | app/views/gedcom/lifespan/chart.blade.php | 84 | <div class="page-header">
<h3>
Lifespan
</h3>
</div>
{{ $svg }} | gpl-3.0 |
FBSLikan/Cetico-TCC | setup.py | 745 | from distutils.core import setup
setup(
name='cetico-dev',
version='2.8.9',
packages=['data.libs.exifread', 'data.libs.exifread.tags', 'data.libs.exifread.tags.makernote',
'data.libs.reportlab', 'data.libs.reportlab.lib', 'data.libs.reportlab.pdfgen',
'data.libs.reportlab.pdfbas... | gpl-3.0 |
tcotys/frameworkweb2000 | administration/includes/handle_zip.req.php | 1999 | <?php
function copyDirectoryToZip($in_dir, $zip_file, $sub_dir, $debug = false) {
if($debug) {$out_txt = "<p>Start reading directory: $sub_dir ...</p>";}
if ($handle = opendir($in_dir.$sub_dir)) {
$zip_file->addEmptyDir($sub_dir);
if($debug){$out_txt .= "<ul>";}
while (false !== ($entry = readdir($hand... | gpl-3.0 |
Nielko/MBSE-Vacation-Manager | de.tu_bs.vacation_manager.test/src/de/tu_bs/vacation_manager/Calender/impl/custom/CalenderFactoryImplCustorm.java | 448 | package de.tu_bs.vacation_manager.Calender.impl.custom;
import de.tu_bs.vacation_manager.Calender.Calender;
import de.tu_bs.vacation_manager.Calender.impl.CalenderFactoryImpl;
import de.tu_bs.vacation_manager.Calender.impl.CalenderImpl;
public class CalenderFactoryImplCustorm extends CalenderFactoryImpl{
@Override... | gpl-3.0 |
hyperbox/vbox-5.1 | modules/server/core/src/main/java/io/kamax/vbox5_1/setting/memory/LargePagesSettingAction.java | 1857 | /*
* Hyperbox - Virtual Infrastructure Manager
* Copyright (C) 2015 Maxime Dor
*
* http://kamax.io/hbox/
*
* 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 |
AlexandruValeanu/Concurrent-Programming-in-Scala | src/concurrent_programming/data_parallel/system_equations/ConcurrentJacobiIteration.scala | 1744 | package concurrent_programming.data_parallel.system_equations
import io.threadcso.{Barrier, CombiningBarrier, PROC, proc, ||}
class ConcurrentJacobiIteration(A: MatrixUtils.Matrix, b: MatrixUtils.Vector){
val N: Int = MatrixUtils.getRows(A)
private val x = MatrixUtils.getNullVector(N)
private val newX = MatrixU... | gpl-3.0 |
ghsy158/fgh-framework | fgh-common/src/main/java/fgh/common/dao/Page.java | 2234 | package fgh.common.dao;
import java.io.Serializable;
import java.util.List;
import com.alibaba.fastjson.JSONObject;
/**
* 分页对象
*
* @author fgh
* @since 2016年7月12日下午6:21:25
*/
public class Page implements Serializable {
private static final long serialVersionUID = -2285216628802671550L;
/**... | gpl-3.0 |
malinink/easy-tests | src/test/java/easytests/core/entities/IssueStandardQuestionTypeOptionEntityTest.java | 1206 | package easytests.core.entities;
import easytests.core.models.IssueStandardQuestionTypeOptionModelInterface;
import easytests.support.IssueStandardQuestionTypeOptionsSupport;
import org.junit.Test;
/**
* @author VeronikaRevjakina
*/
public class IssueStandardQuestionTypeOptionEntityTest extends AbstractEntityTest ... | gpl-3.0 |
estaban/pyload | module/plugins/hooks/Captcha9kw.py | 6580 | # -*- coding: utf-8 -*-
"""
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... | gpl-3.0 |
robwarm/gpaw-symm | doc/exercises/submit.agts.py | 1628 | def agts(queue):
queue.add('neb/neb1.py', ncpus=1)
queue.add('neb/neb2.py', ncpus=1)
queue.add('neb/neb3.py', ncpus=1)
queue.add('aluminium/Al_fcc.py', ncpus=2)
queue.add('aluminium/Al_bcc.py', ncpus=2)
queue.add('aluminium/Al_fcc_vs_bcc.py', ncpus=2)
queue.add('aluminium/Al_fcc_modified.py'... | gpl-3.0 |
sigma-random/bettercap | network/net_wifi.go | 479 | package network
import (
"sync"
)
const NO_CHANNEL = -1
var (
currChannels = make(map[string]int)
currChannelLock = sync.Mutex{}
)
func GetInterfaceChannel(iface string) int {
currChannelLock.Lock()
defer currChannelLock.Unlock()
if curr, found := currChannels[iface]; found {
return curr
}
return NO_CH... | gpl-3.0 |
AuScope/MDU-Portal | src/main/java/org/auscope/portal/csw/CSWRecord.java | 11629 | package org.auscope.portal.csw;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFacto... | gpl-3.0 |
jolupeza/mailing-ad | application/views/templates/admin/default/html/newsletters/add.php | 4853 | <div class="row">
<div class="col-sm-12">
<div class="panel">
<div class="panel-heading">
<h2><?php echo $this->lang->line('cms_general_label_add_newsletter'); ?></h2>
<?php if (validation_errors()) : ?>
<div class="alert alert-danger">
<?php echo validation_errors('<p><small... | gpl-3.0 |
vitoyan/Algorithms | DynamicProgramming/cutSteel.cpp | 783 | #include <iostream>
#include <vector>
#include <string>
#include <iterator>
#include <sstream>
#include <stack>
#include <limits>
#include "./util/util.h"
std::vector<int> cutSteel(std::vector<int> &p)
{
std::vector<int> m(p.size() + 1, 0);
std::vector<int> s(p.size() + 1, 0);
for(int j = 1; j <= (int)p.size(); j+... | gpl-3.0 |
SzommerLaszlo/recommendation-engine | import-dataset/src/main/java/com/utcluj/recommender/dataset/batch/writers/PostItemWriter.java | 3192 | package com.utcluj.recommender.dataset.batch.writers;
import com.utcluj.recommender.dataset.domain.Post;
import com.utcluj.recommender.dataset.services.TagService;
import org.springframework.batch.item.ItemWriter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.Bat... | gpl-3.0 |
FinalsClub/djKarma | notes/management/commands/clean_courses.py | 2129 | from django.core.management.base import BaseCommand
from notes.models import School, Course
class Command(BaseCommand):
args = 'none'
help = ('Populates Courses with default School, semester, academic_year info if None. '
'Also enforces uniqueness of (school, slug). ')
def handle(self, *args, ... | gpl-3.0 |
jabber-at/gajim | src/adhoc_commands.py | 22981 | # -*- coding: utf-8 -*-
## src/adhoc_commands.py
##
## Copyright (C) 2006 Nikos Kouremenos <kourem AT gmail.com>
## Copyright (C) 2006-2007 Tomasz Melcer <liori AT exroot.org>
## Copyright (C) 2006-2017 Yann Leboulanger <asterix AT lagaule.org>
## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
## ... | gpl-3.0 |
kallimachos/CodeEval | prime_palindrome.py | 489 | import math
def is_prime(n):
if n % 2 == 0 and n > 2:
return False
return all(n % i for i in range(3, int(math.sqrt(n)) + 1, 2))
def is_palindrome(n):
front = []
back = []
for digit in str(n):
front.append(digit)
for digit in reversed(front):
back.append(digit)
if... | gpl-3.0 |
triguero/Keel3.0 | src/keel/Algorithms/UnsupervisedLearning/AssociationRules/IntervalRuleLearning/EARMGA/Gene.java | 3876 | /***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. Sánchez (luciano@uniovi.es)
J. A... | gpl-3.0 |
fanruan/finereport-design | designer_chart/src/com/fr/design/mainframe/chart/gui/style/series/Bar2DSeriesPane.java | 2816 | package com.fr.design.mainframe.chart.gui.style.series;
import java.awt.Component;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import com.fr.chart.chartattr.Bar2DPlot;
import com.fr.chart.chartattr.Plot;
import com.fr.design.gui.frpane.UINumberDragPane;
import com.fr.design.gui.ilable.UILab... | gpl-3.0 |
clevernet/CleverNIM | views/site/login.php | 1109 | <?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm */
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
'Login',
);
?>
<h1>Login</h1>
<p>Merci de fournir votre login et votre mot de passe Novell:</p>
<div class="form">
<?php $form=... | gpl-3.0 |
netik/chibios-orchard | ext/ugfx/docs/html/navtreeindex6.js | 18572 | var NAVTREEINDEX6 =
{
"group___progressbar.html#ga3a465c3b2ad152aaef1e1216001acf7e":[2,0,239,9],
"group___progressbar.html#ga5c3be9e67dbb05bc935fde49c08da0e7":[0,13,1,6,10],
"group___progressbar.html#ga5c3be9e67dbb05bc935fde49c08da0e7":[2,0,239,11],
"group___progressbar.html#ga70753ef64f3be18cbebe10e64b394a7e":[0,13,1,... | gpl-3.0 |
bzcheeseman/NeuralNetworks | main.cpp | 3490 | //
// Created by Aman LaChapelle on 9/18/16.
//
// NeuralNetworks
// Copyright (C) 2016 Aman LaChapelle
//
// Full license at NeuralNetworks/LICENSE.txt
//
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free ... | gpl-3.0 |
tectronics/openjill | jn-file/src/main/java/org/jill/jn/SaveDataImpl.java | 2435 | package org.jill.jn;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jill.file.FileAbstractByte;
/**
* Save data object (70 bytes lenght).
*
* @author Emeric MARTINEAU
* @version 1.0
*/
public class SaveDataImpl implements SaveData {
/**
* D... | mpl-2.0 |
seanmonstar/servo | src/components/script/dom/htmlanchorelement.rs | 3330 | /* 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 dom::bindings::codegen::Bindings::HTMLAnchorElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLAnch... | mpl-2.0 |
DevinZ1993/LeetCode-Solutions | java/395.java | 822 | public class Solution {
public int longestSubstring(String s, int k) {
return solve(s, 0, s.length(), k);
}
private int solve(String s, int fromIdx, int toIdx, int k) {
if (toIdx <= fromIdx) {
return 0;
} else {
final int[] cnts = new int[26];
for ... | mpl-2.0 |
lonnen/socorro | webapp-django/crashstats/signature/static/signature/js/signature_tab_reports.js | 4836 | /* global SignatureReport, socorro */
/**
* Tab for displaying reports table.
* Does not have any panels.
* Controlled by a text input.
*
* @extends {SignatureReport.Tab}
* @inheritdoc
*/
SignatureReport.ReportsTab = function (tabName) {
var config = {
panels: false,
dataDisplayType: 'table',
pagi... | mpl-2.0 |
jaygumji/Enigma | Enigma/src/Enigma.Test/Properties/AssemblyInfo.cs | 693 | /* 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/. */
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Setting ... | mpl-2.0 |
terraform-providers/terraform-provider-aws | aws/resource_aws_config_configuration_aggregator_test.go | 11973 | package aws
import (
"fmt"
"log"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/configservice"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
)
... | mpl-2.0 |
codekidX/storage-chooser | storagechooser/src/main/java/com/codekidlabs/storagechooser/animators/MemorybarAnimation.java | 838 | package com.codekidlabs.storagechooser.animators;
import android.view.animation.Animation;
import android.view.animation.Transformation;
import android.widget.ProgressBar;
/**
* display a nice animation when chooser dialog is shown
*/
public class MemorybarAnimation extends Animation {
private ProgressBar pro... | mpl-2.0 |
oracle/terraform-provider-baremetal | vendor/github.com/oracle/oci-go-sdk/v46/core/instance_pool_placement_configuration.go | 2329 | // Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei... | mpl-2.0 |
mozilla/kanbanzilla | test/spec/directives/growwhenclicked.js | 409 | 'use strict';
describe('Directive: growwhenclicked', function () {
beforeEach(module('kanbanzillaApp'));
var element;
it('should make hidden element visible', inject(function ($rootScope, $compile) {
element = angular.element('<growwhenclicked></growwhenclicked>');
element = $compile(element)($rootScop... | mpl-2.0 |
aviarypl/mozilla-l10n-addons-frontend | tests/unit/core/reducers/test_languageTools.js | 1981 | import reducer, {
fetchLanguageTools,
getAllLanguageTools,
initialState,
loadLanguageTools,
} from 'core/reducers/languageTools';
import { createFakeLanguageTool } from 'tests/unit/helpers';
import { dispatchClientMetadata } from 'tests/unit/amo/helpers';
describe(__filename, () => {
it('initializes properly... | mpl-2.0 |
CN-UPB/OpenBarista | components/decaf-masta/decaf_masta/components/database/public_port.py | 1401 | ##
# Copyright 2016 DECaF Project Group, University of Paderborn
# This file is part of the decaf orchestration framework
# 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 htt... | mpl-2.0 |
tmhorne/celtx | xpcom/ds/nsCRT.cpp | 11025 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** 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 except in compliance with
* the Lic... | mpl-2.0 |
CoderLine/alphaTab | src/rendering/glyphs/ChordDiagramGlyph.ts | 5998 | import { Chord } from '@src/model/Chord';
import { ICanvas, TextAlign, TextBaseline } from '@src/platform/ICanvas';
import { EffectGlyph } from '@src/rendering/glyphs/EffectGlyph';
import { MusicFontSymbol } from '@src/model/MusicFontSymbol';
import { RenderingResources } from '@src/RenderingResources';
export class C... | mpl-2.0 |
SergeantHawke/Steampunk | vendor/phpixie/cache/classes/PHPixie/Cache/Memcache.php | 1174 | <?php
namespace PHPixie\Cache;
/**
* Memcache cache driver.
* @package Cache
*/
class Memcache extends Cache {
/**
* Memcache instance
* @var Memcache
* @access protected
*/
protected $_memcache;
/**
* Creates a memcache cache instance.
*
* @param string $config Name of the configurati... | mpl-2.0 |
jaygumji/Enigma | Enigma/src/Enigma.PerformanceTest/ProtoBufTimesTest.cs | 1538 | /* 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/. */
using System;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;
using Enigma.Testing.... | mpl-2.0 |
jembi/openhim-encounter-orchestrator | src/main/java/org/hl7/v3/Supine.java | 738 |
package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Supine.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="Supine">
* <restriction base="{ur... | mpl-2.0 |
tmhorne/celtx | extensions/irc/xul/content/about/about.js | 5286 | /* ***** 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 except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | mpl-2.0 |
tmhorne/celtx | embedding/tests/wxEmbed/GeckoWindowCreator.cpp | 2416 | /* ***** BEGIN LICENSE BLOCK *****
* Version: Mozilla-sample-code 1.0
*
* Copyright (c) 2002 Netscape Communications Corporation and
* other contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this Mozilla sample software and associated documentation files
* (the "... | mpl-2.0 |
aalgo/TSCBPT | include/tsc/bpt/TemporalStability.hpp | 3330 | /*
* TemporalStability.hpp
*
* Copyright (c) 2015 Alberto Alonso Gonzalez
*
* 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/.
*
* Created on: 17/07/2015
* ... | mpl-2.0 |
leowmjw/consul | command/agent/command_test.go | 10813 | package agent
import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"reflect"
"strings"
"testing"
"github.com/hashicorp/consul/command/base"
"github.com/hashicorp/consul/testutil"
"github.com/hashicorp/consul/testutil/retry"
"github.com/hashicorp/consul/version"
"github.com/mitchellh/cli"
)
func baseComma... | mpl-2.0 |
DO-CV/sara | cpp/src/DO/Shakti/Halide/Resize.hpp | 3811 | // ========================================================================== //
// This file is part of Sara, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013-present David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License v. 2... | mpl-2.0 |
Vikerus/dolphinphp | index.php | 7482 | <?php
ini_set("auto_detect_line_endings", true);
// Here we have to call the required functions and ready the user creation with a secure session.
// Extended Use : This entire block of php is required. And must be at the top of your page.
include_once 'includes/functions.php';
sec_session_start();
require_once 'incl... | mpl-2.0 |
DominoTree/servo | tests/wpt/web-platform-tests/native-file-system/native_FileSystemWritableFileStream.tentative.https.manual.window.js | 196 | // META: script=/resources/testdriver.js
// META: script=resources/test-helpers.js
// META: script=resources/native-fs-test-helpers.js
// META: script=script-tests/FileSystemWritableFileStream.js
| mpl-2.0 |
yensa/Nalfein | scene.py | 3160 | # -*- coding: utf-8 -*-
# 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 pygame
from utils import Point, RenderQueue
class Scene(object):
"""The Scene ob... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | toolkit/components/places/tests/unit/test_463863.js | 1770 | /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* 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/. */
/*
* TEST DESCRIPTION:
... | mpl-2.0 |
baetheus/nullbot | index.js | 3525 | 'use strict';
/**
* Module dependencies
* @private
*/
var fs = require('fs');
var assert = require('assert-plus');
var bunyan = require('bunyan');
var restify = require('restify');
var shortid = require('shortid');
var createCore = require('nullbot-core');
var createClient = require('nullbot-client');
var createEv... | mpl-2.0 |
SzecsenyiPeter/recovery-medical-system | RecoveryServer/RecoveryServer/Areas/HelpPage/App_Start/HelpPageConfig.cs | 6499 | // Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData
// package to your project.
////#define Handle_PageResultOfT
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using ... | mpl-2.0 |
jphp-compiler/develnext | develnext-designer/src/main/java/org/develnext/jphp/gui/designer/editor/tree/DirectoryTreeCell.java | 4281 | package org.develnext.jphp.gui.designer.editor.tree;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Node;
import javafx.scene.SnapshotParameters;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.Label;
import javaf... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | dom/broadcastchannel/BroadcastChannelService.cpp | 3400 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* 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... | mpl-2.0 |
Yukarumya/Yukarum-Redfoxes | browser/base/content/test/urlbar/browser_urlbarSearchTelemetry.js | 7425 | "use strict";
Cu.import("resource:///modules/BrowserUITelemetry.jsm");
const SUGGEST_URLBAR_PREF = "browser.urlbar.suggest.searches";
const TEST_ENGINE_BASENAME = "searchSuggestionEngine.xml";
// Must run first.
add_task(function* prepare() {
Services.prefs.setBoolPref(SUGGEST_URLBAR_PREF, true);
let engine = yi... | mpl-2.0 |
UtrsSoftware/ATMLWorkBench | ATMLLibraries/ATMLCommonLibrary/controls/manufacturer/ManufacturerContactListControl.cs | 2152 | /*
* Copyright (c) 2014 Universal Technical Resource Services, Inc.
*
* 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/.
*/
using System;
using System.Collections.... | mpl-2.0 |
jpetto/bedrock | media/js/firefox/australis/common.js | 2606 | ;(function($, Mozilla) {
'use strict';
var pageId = $('body').prop('id');
var $window = $(window);
var $syncAnim = $('.sync-anim');
var $laptop = $syncAnim.find('.laptop');
var $laptopScreen = $laptop.find('.inner');
var $phone = $syncAnim.find('.phone');
var $arrows = $laptop.find('.a... | mpl-2.0 |
oracle/terraform-provider-baremetal | oci/oci_sweeper_test.go | 3837 | // 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"
"log"
"strings"
"testing"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource... | mpl-2.0 |
samuelkarp/purple-docker | plugin/account.go | 3900 | /* Copyright (c) 2017, Samuel Karp. 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/.
*/
package main
import (
"sync"
"unsafe"
"context"
... | mpl-2.0 |
Phrozyn/MozDef | alerts/get_watchlist.py | 3152 | #!/usr/bin/env python
# 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) 2014 Mozilla Corporation
import requests
import json
from lib.alerttask import ... | mpl-2.0 |
zyegfryed/packer | packer/build.go | 8414 | package packer
import (
"fmt"
"log"
"sync"
)
const (
// This is the key in configurations that is set to the name of the
// build.
BuildNameConfigKey = "packer_build_name"
// This is the key in the configuration that is set to the type
// of the builder that is run. This is useful for provisioners and
// su... | mpl-2.0 |
LostKobrakai/MigrationsTutorial | wire/core/FileLog.php | 13650 | <?php
/**
* ProcessWire FileLog
*
* Creates and maintains a text-based log file.
*
* ProcessWire 2.8.x (development), Copyright 2016 by Ryan Cramer
* https://processwire.com
*
*/
class FileLog extends Wire {
const defaultChunkSize = 12288;
const debug = false;
protected $logFilename = false;
prote... | mpl-2.0 |
erikjalevik/pfand | src/containers/PfNavigator.js | 2092 | import constants from '../constants'
import RequestCollectionScreen from '../containers/RequestCollectionScreen'
import ListCollectionsScreen from '../containers/ListCollectionsScreen'
import React, { Component } from 'react'
import { StyleSheet, Navigator, TouchableHighlight, Text } from 'react-native'
const routes ... | mpl-2.0 |
asajeffrey/servo | tests/wpt/web-platform-tests/screen_enumeration/resources/screenenumeration-helpers.js | 5220 | "use strict";
// In Chromium-based browsers this implementation is provided by a polyfill
// in order to reduce the amount of test-only code shipped to users. To enable
// these tests the browser must be run with these options:
//
// --enable-blink-features=MojoJS,MojoJSTest
async function loadChromiumResources() {... | mpl-2.0 |
wx1988/strabon | runtime/src/test/java/eu/earthobservatory/runtime/monetdb/GeneralTests.java | 2430 | /**
* 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) 2010, 2011, 2012, Pyravlos Team
*
* http://www.strabon.di.uoa.gr/
*/
package eu.earthobse... | mpl-2.0 |
WolframG/Rhino-Prov-Mod | src/org/mozilla/javascript/orginal/Interpreter.java | 118300 | /* -*- 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... | mpl-2.0 |
nxnfufunezn/servo | components/script/dom/htmlinputelement.rs | 44062 | /* 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 caseless::compatibility_caseless_match_str;
use dom::activation::Activatable;
use dom::attr::{Attr, AttrValue}... | mpl-2.0 |
wavebox/waveboxapp | classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/MailboxWizardScene/MailboxWizardSceneContent.js | 4621 | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import WizardPersonalise from './WizardPersonalise'
import WizardAuth from './WizardAuth'
import WizardConfigure from './WizardConfigure'
import WizardStepperDialogContent from '../Common/WizardStepper... | mpl-2.0 |
HadrienG2/testbench | src/noinline.rs | 928 | //! Inlining barriers for function calls
//!
//! Inlining is great for optimization. But it can cause problems in micro-
//! benchmarking and multi-threaded validation as it leads some testing and
//! benchmarking constructs to be optimized out. This module can be used to
//! avoid this outcome without altering the fun... | mpl-2.0 |
zeroae/consul | agent/consul/leader_test.go | 20784 | package consul
import (
"os"
"testing"
"time"
"github.com/hashicorp/consul/agent/consul/structs"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/testrpc"
"github.com/hashicorp/consul/testutil/retry"
"github.com/hashicorp/net-rpc-msgpackrpc"
"github.com/hashicorp/serf/serf"
)
func TestLeader_R... | mpl-2.0 |
danlrobertson/servo | tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/firefox.py | 18734 | import json
import os
import platform
import signal
import subprocess
import sys
import mozinfo
import mozleak
from mozprocess import ProcessHandler
from mozprofile import FirefoxProfile, Preferences
from mozrunner import FirefoxRunner
from mozrunner.utils import test_environment, get_stack_fixer_function
from mozcras... | mpl-2.0 |
emlai/wge3 | desktop/src/wge3/game/desktop/DesktopLauncher.java | 819 | /* 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 wge3.game.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backe... | mpl-2.0 |
itesla/ipst | modelica-export/src/main/java/eu/itesla_project/modelica_export/util/eurostag/EurostagFixedData.java | 9893 | /**
* Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
* 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 eu... | mpl-2.0 |
brave/publishers | app/services/promo/unattached_registrar.rb | 1393 | # Registers infinity codes for a Brave admin
class Promo::UnattachedRegistrar < BaseApiClient
include PromosHelper
def initialize(number:, promo_id: active_promo_id, campaign: nil)
@number = number
@promo_id = promo_id
@campaign = campaign
end
def perform
return if @number <= 0
return perf... | mpl-2.0 |
caterinaurban/Lyra | src/lyra/unittests/numerical/interval/forward/outside.py | 124 |
def f(x: int) -> int:
return x + b
a: int = 3
b: int = 4
c: int = f(a)
# FINAL: a -> [3, 3]; b -> [4, 4]; c -> [7, 7]
| mpl-2.0 |
wl1244hotmai/BLE-Mesh | sdk/src/main/java/sword/blemesh/sdk/transport/ble/BLETransportCallback.java | 906 | package sword.blemesh.sdk.transport.ble;
import java.util.Map;
import sword.blemesh.sdk.transport.Transport;
/**
* Created by davidbrodsky on 2/23/15.
*/
public interface BLETransportCallback {
public static enum DeviceType {GATT, GATT_SERVER}
public void dataReceivedFromIdentifier(DeviceType deviceType,... | mpl-2.0 |
etomica/etomica | etomica-core/src/main/java/etomica/units/dimensions/Energy.java | 1287 | /* 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 etomica.units.dimensions;
import java.io.ObjectStreamException;
import etomica.units.Prefix;
import etom... | mpl-2.0 |
mssavai/muzima-api | src/main/java/com/muzima/api/service/PatientService.java | 9687 | /*
* 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 |
andreadanzi/rotho_dev | modules/Rumors/ProductToRumors.js | 1032 | function return_product_to_rumors(recordid,value,target_fieldname,product_cat,link_to_description,link_to_category_descr) {
var formName = getReturnFormName();
var form = getReturnForm(formName);
if (form) {
var domnode_id = form.elements[target_fieldname];
var domnode_display = form.elements[target_fieldname+'_... | mpl-2.0 |
susaing/doc.servo.org | servo/script/dom/xmlhttprequest/sidebar-items.js | 152 | initSidebarItems({"enum":[["XHRProgress",""]],"struct":[["GenerationId",""],["XMLHttpRequest",""]],"type":[["SendParam",""],["TrustedXHRAddress",""]]}); | mpl-2.0 |
n0max/servo | components/script/dom/htmlstyleelement.rs | 9428 | /* 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 cssparser::{Parser as CssParser, ParserInput};
use dom::bindings::cell::DomRefCell;
use dom::bindings::codegen... | mpl-2.0 |
klahnakoski/jx-sqlite | vendor/jx_python/expressions/in_op.py | 613 | # encoding: utf-8
#
#
# 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/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import absolute_import, divisi... | mpl-2.0 |
ajschult/etomica | etomica-core/src/main/java/etomica/data/types/CastGroupOfTablesToDataTable.java | 5215 | /* 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 etomica.data.types;
import etomica.data.DataPipe;
import etomica.data.DataProcessor;
import etomica.data.... | mpl-2.0 |
ansp-2015/arquea | evento/migrations/0001_initial.py | 4843 | # -*- coding: utf-8 -*-
# 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/.
from __future__ import unicode_literals
from django.db import models, migrations
class Migrat... | mpl-2.0 |
renatocoelho/vencimetro | src/main/java/app/models/List.java | 366 | package app.models;
@javax.persistence.Entity
public class List extends Entity {
private Integer idLista;
private String nome;
public void setIdLista(Integer idLista) {
this.idLista = idLista;
}
public Integer getIdLista() {
return idLista;
}
public void setNome(String nome) {
this.nome = nome;
}
p... | mpl-2.0 |
RowEchelonForm/HinduCyborg | Assets/Scripts/SaveLoad/SaveLoadHandler.cs | 837 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class SaveLoadHandler : MonoBehaviour {
// Use this for initialization
void Start () {
//SaveLoad.Save(LevelManager.currentLevelName);
}
// Update is called once per frame
void Update () ... | mpl-2.0 |
encapturemd/MirthConnect | server/src/com/mirth/connect/server/util/MessageAttachmentUtil.java | 11578 | /*
* Copyright (c) Mirth Corporation. All rights reserved.
*
* http://www.mirthcorp.com
*
* The software in this package is published under the terms of the MPL license a copy of which has
* been included with this distribution in the LICENSE.txt file.
*/
package com.mirth.connect.server.util;
imp... | mpl-2.0 |
das-praktische-schreinerlein/yaio-commons | src/main/java/de/yaio/commons/config/ConfigurationOption.java | 1649 | /**
* software for projectmanagement and documentation
*
* @FeatureDomain Collaboration
* @author Michael Schreiner <michael.schreiner@your-it-fellow.de>
* @category collaboration
* @copyright Copyright (c) 2014, Michael Schreiner
* @... | mpl-2.0 |
cqrs-endeavour/cqrs-endeavour | cqrs-framework/src/test/scala/cqrs/query/EventDuplicatesFilterSpec.scala | 3846 | /* 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 cqrs.query
import java.util.UUID
import cqrs.test.entities.TestAggregateRoot.TestAggregateRootCreated
im... | mpl-2.0 |
Ricard/AppverseProject | app/bower_components/ag-grid/docs/angular-grid-grouping/example1.js | 1495 | var columnDefs = [
{headerName: "Athlete", field: "athlete", width: 150},
{headerName: "Age", field: "age", width: 90},
{headerName: "Country", field: "country", width: 120, rowGroupIndex: 0},
{headerName: "Year", field: "year", width: 90},
{headerName: "Date", field: "date", width: 110},
{heade... | mpl-2.0 |