repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
oscaru/Prometeo
prometeo/js/Router.js
2391
/* * *basado : http://krasimirtsonev.com/blog/article/A-modern-JavaScript-router-in-100-lines-history-api-pushState-hash-url * uso : * Router .add(/about/, function() { console.log('about'); }) .add(/products\/(.*)\/edit\/(.*)/, function() { console.log('products', arguments); ...
gpl-3.0
fearless359/simpleinvoices_zend2
lang/el_GR/lang.php
55178
<?php /* * Script: lang.php * Greek translation file * * Authors: * Panos Milis * * Last edited: * 2016-10-04 * * License: * GPL v3 or above */ /* * "//1" means that the variable has been translated * "//0" means that the variable has not been translated * These values are used by a script to calcul...
gpl-3.0
2014c2g5/2014cadp
wsgi/local_data/brython_programs/oop1.py
1605
class Point(): # px: 點的 x 座標 # py: 點的 y 座標 # pn: 點的名稱 # A: 點物件 # name, x, y are the attributes of the class # name, x, y 為點類別的物件屬性 # x, y, name are global variables, x, y are float and name is string def __init__(self, px=None, py=None, pn=None, A=None): # A is a Point, pn is a S...
gpl-3.0
Vadavim/jsr-darkstar
scripts/globals/weaponskills/power_slash.lua
1966
----------------------------------- -- Power Slash -- Great Sword weapon skill -- Skill level: 30 -- Delivers a single-hit attack. params.crit varies with TP. -- Modifiers: STR:60% ; VIT:60% -- 100%TP 200%TP 300%TP -- 1.0 1.0 1.0 ----------------------------------- require("scripts/globals/status...
gpl-3.0
scemino/nscumm
Platforms/NScumm.Platform_UWP/Properties/AssemblyInfo.cs
1086
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
gpl-3.0
northern-bites/nao-man
noggin/typeDefs/Location.py
3667
from math import (degrees, hypot) from ..util import MyMath class Location (object): def __init__(self, x = 0, y = 0, z = 0): self.x = x self.y = y self.z = z def __eq__(self, other): return (self.x == other.x and self.y == other.y and ...
gpl-3.0
RadioCanut/site-radiocanut
plugins-dist/porte_plume/lang/paquet-porte_plume_nl.php
582
<?php // This is a SPIP language file -- Ceci est un fichier langue de SPIP // extrait automatiquement de https://trad.spip.net/tradlang_module/paquet-porte_plume?lang_cible=nl // ** ne pas modifier le fichier ** if (!defined('_ECRIRE_INC_VERSION')) { return; } $GLOBALS[$GLOBALS['idx_lang']] = array( // P 'port...
gpl-3.0
myappleguy/mautic
app/bundles/InstallBundle/Configurator/Step/CheckStep.php
11393
<?php /** * @package Mautic * @copyright 2014 Mautic Contributors. All rights reserved. * @author Mautic * @link http://mautic.org * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ namespace Mautic\InstallBundle\Configurator\Step; use Mautic\InstallBundle\Configurator\Form\C...
gpl-3.0
directus/directus
app/src/utils/geometry/basemap.ts
3181
import { Style, RasterSource } from 'maplibre-gl'; import getSetting from '@/utils/get-setting'; import maplibre from 'maplibre-gl'; import { getTheme } from '@/utils/get-theme'; export type BasemapSource = { name: string; type: 'raster' | 'tile' | 'style'; url: string; tileSize?: number; attribution?: string; };...
gpl-3.0
hartwigmedical/hmftools
hmf-common/src/main/java/com/hartwig/hmftools/common/doid/DoidDatamodelCheckerFactory.java
4003
package com.hartwig.hmftools.common.doid; import java.util.Map; import com.google.common.collect.Maps; import com.hartwig.hmftools.common.utils.json.JsonDatamodelChecker; import org.jetbrains.annotations.NotNull; final class DoidDatamodelCheckerFactory { private DoidDatamodelCheckerFactory() { } @NotN...
gpl-3.0
jusabatier/georchestra
security-proxy/src/main/java/org/georchestra/security/Proxy.java
57032
/* * Copyright (C) 2009-2016 by the geOrchestra PSC * * This file is part of geOrchestra. * * geOrchestra is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your opt...
gpl-3.0
POPBL-6/middleware
src/test/java/tests/datatests/MessagesTests.java
3866
package tests.datatests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Timeout; import data.Message; import data.MessagePublication; import data.MessagePublish; import data.MessageR...
gpl-3.0
javocsoft/JavocsoftToolboxAS
toolbox/src/main/java/es/javocsoft/android/lib/toolbox/net/ssl/DefaultSSLBypassHttpClient.java
4650
package es.javocsoft.android.lib.toolbox.net.ssl; import android.content.Context; import org.apache.http.conn.ClientConnectionManager; import org.apache.http.conn.scheme.PlainSocketFactory; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme.SchemeRegistry; import org.apache.http.conn.ssl.SS...
gpl-3.0
clingray/clingray-windows
ClingClient/ipc/ClingIPCCommand.cs
670
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ClingClient.ipc { [Serializable()] public class ClingStartupCommand { public ClingStartupCommand() { } public ClingStartupCommand(int action, string parameter) ...
gpl-3.0
forestbiotech-lab/sRNA-Portal-workflow
routes/db.js
2523
var express = require('express'); var router = express.Router(); var resolveHelper=require('./../components/miRNADB/helpers/resolveHelper'); var resolveCall = resolveHelper.resolveCall /// --------- Call Declaration ---------------------------------------- var sequenceSearch = require('./../components/miRNADB/sequenceS...
gpl-3.0
jakey766/web_base
src/main/java/com/pk/service/admin/SysRoleService.java
3188
package com.pk.service.admin; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transact...
gpl-3.0
CuteHuiHui/htm
ht/src/main/java/com/yc/ht/service/SongService.java
544
package com.yc.ht.service; import java.util.List; import com.yc.ht.entity.PaginationBean; import com.yc.ht.entity.Song; public interface SongService { List<Song> listSong(); List<Song> findSongById(String soid); List<Song> findSongByName(String soname); List<Song> findSongAndSingerById(Stri...
gpl-3.0
VosDerrick/Volsteria
src/main/java/slimeknights/tconstruct/tools/common/client/GuiCraftingStation.java
2386
package slimeknights.tconstruct.tools.common.client; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Slot; import net.minecraft.tileentity.TileEntityChest; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import ne...
gpl-3.0
ruslanchasep/opencart
upload/admin/controller/sale/order.php
74809
<?php class ControllerSaleOrder extends Controller { private $error = array(); public function index() { $this->load->language('sale/order'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('sale/order'); $this->getList(); } public function add() { $this->load->la...
gpl-3.0
alex1993/Leetcode
src/solution300_399/solution337/Solution.java
921
package solution300_399.solution337; /** * Script Created by daidai on 2017/8/4. */ import structure.TreeNode; /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { public int rob(Tr...
gpl-3.0
josemrb/RequestFilter
src/RequestFilter/FilterFactory.cs
1238
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using RequestFilter.Configurations; using RequestFilter.Extensions; namespace RequestFilter { public class FilterFactory { private readonly RequestFilterSection _configurationSection; public FilterFactory(Requ...
gpl-3.0
ShellBear/flushy
Ressources/modules/js/resizetext.js
258
window.onload = function() { var size = 1.0 var up = true; setInterval(function() { document.body.style.fontSize = size + "em"; if (up) size += 1; else size -= 1; if (size == 10) up = false; if (size == 0) up = true; }, 100); }
gpl-3.0
jim-pansn/graph-tool
src/graph_tool/community/__init__.py
13313
#! /usr/bin/env python # -*- coding: utf-8 -*- # # graph_tool -- a general graph manipulation python module # # Copyright (C) 2006-2015 Tiago de Paula Peixoto <tiago@skewed.de> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by...
gpl-3.0
lobomacz/safecom
src/main/java/com/ecom/safecom/dao/MovimientoCajaDao.java
2009
package com.ecom.safecom.dao; import java.util.Date; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import c...
gpl-3.0
OriPekelman/aaar
spec/requests/activity_scores_spec.rb
320
require 'spec_helper' describe "ActivityScores" do describe "GET /activity_scores" do it "works! (now write some real specs)" do # Run the generator again with the --webrat flag if you want to use webrat methods/matchers get activity_scores_path response.status.should be(200) end end end
gpl-3.0
ljsimin/gimii
HeadTracking2LEDs/HeadTracking2LEDs/ScenaSoba.cs
22473
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; using DI = Microsoft.DirectX.DirectInput; using DXAV = Micros...
gpl-3.0
pyladiesmedellin/lessons
lesson_1/5.py
215
# -*- coding: utf-8 -*- # Esto es un comentario de una sola línea mi_variable = 15 """ Y este es un comentario de varias líneas """ mi_variable = 15 mi_variable = 15 # Este comentario es de una línea también
gpl-3.0
GuillaumeDD/scala99problems
src/main/scala/multiwayTree/P73/sol01.scala
1829
/******************************************************************************* * Copyright (c) 2014 Guillaume DUBUISSON DUPLESSIS <guillaume.dubuisson_duplessis@insa-rouen.fr>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * ...
gpl-3.0
Zapuss/ZapekFapeCore
src/server/game/Entities/Item/Item.cpp
40122
/* * Copyright (C) 2011-2012 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2012 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
electricpandafishstudios/Spoon
game/modules/tome-1.4.1/data/birth/classes/rogue.lua
10564
-- ToME - Tales of Maj'Eyal -- Copyright (C) 2009 - 2016 Nicolas Casalini -- -- 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
sgtfrankieboy/Reddit-Enhancement-Suite
lib/core/utils.js
62687
$.fn.safeHtml = function(string) { if (!string) return ''; else return $(this).html(RESUtils.sanitizeHTML(string)); }; if (typeof Array.prototype.find !== 'function') { Array.prototype.find = function(predicate) { if (this === undefined || this === null) { throw new TypeError('Array.prototype.find called on nu...
gpl-3.0
ryandoherty/RaceCapture_App
autosportlabs/comms/comms.py
5447
import traceback import threading import multiprocessing from Queue import Empty from time import sleep from kivy.logger import Logger from autosportlabs.comms.commscommon import PortNotOpenException STAY_ALIVE_TIMEOUT = 4 COMMAND_CLOSE = 'CLOSE' COMMAND_KEEP_ALIVE = 'PING' def connection_process_message_reader(rx_qu...
gpl-3.0
bregma/ginn
ginn/xmlwishsource.cpp
11782
/** * @file ginn/xmlwishsource.cpp * @brief Definitions of the Ginn BAMF Wish Source class. */ /* * Copyright 2013 Canonical Ltd. * * 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 Found...
gpl-3.0
c0bra2/TrainingScheduler
TrainingScheduler/TrainingScheduler/Form1.cs
34810
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TrainingScheduler { public partial class Form1 : Form { private ...
gpl-3.0
jantman/PHPsa
inc/common.php
5215
<?php // common.php - common functions // // +----------------------------------------------------------------------+ // | PHPsa http://phpsa.jasonantman.com | // +----------------------------------------------------------------------+ // | Copyright (c) 2009 Jason Antman. ...
gpl-3.0
apballard/Marlin
Marlin/temperature.cpp
67880
/** * Marlin 3D Printer Firmware * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
gpl-3.0
jgeboski/Insomnia
app/src/main/java/com/github/jgeboski/insomnia/service/MainThread.java
3693
/* * Copyright 2015 James Geboski <jgeboski@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Thi...
gpl-3.0
RoederProjects/promeda
src/core/bricks/Store.java
46
package core.bricks; public class Store { }
gpl-3.0
MorellatoAriel/PyGobstones
interpreter/vxgbs/lang/gbs_constructs.py
9943
# # Copyright (C) 2011, 2012 Pablo Barenbaum <foones@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Th...
gpl-3.0
redhataccess/rhi-pool
insights/test.py
3837
import logging import unittest from datetime import datetime import os import sys from insights.configs import settings from insights.ui.browser import browser from insights.ui.configuration import Configuration from insights.ui.header import Header from insights.ui.login import Login from insights.ui.overview import O...
gpl-3.0
VosDerrick/Volsteria
src/main/java/slimeknights/tconstruct/shared/block/BlockLiquidSlime.java
2564
package slimeknights.tconstruct.shared.block; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLiving; import net.minecraft.init.Blocks; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.Bl...
gpl-3.0
triguero/Keel3.0
src/keel/Algorithms/UnsupervisedLearning/AssociationRules/IntervalRuleLearning/Alatasetal/Alatasetal.java
10402
/*********************************************************************** 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
TheLanguageArchive/lamus2
wicket/src/main/java/nl/mpi/lamus/web/components/UploadPanel.java
10680
/* * Copyright (C) 2013 Max Planck Institute for Psycholinguistics * * 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 versio...
gpl-3.0
oboudou/railisa_beta
consultation/urls.py
159
from django.conf.urls import url, include from .views import ValueListView urlpatterns = [ url(r'^list$', ValueListView.as_view(), name='value_list'), ]
gpl-3.0
adrexia/mahara
htdocs/lib/mahara.php
143071
<?php /** * * @package mahara * @subpackage core * @author Catalyst IT Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later * @copyright For copyright information on Mahara, please see the README file distributed with this software. * @copyright (C) portions from Moodle, (C)...
gpl-3.0
OpenGraphtheory/OpenGraphtheory
opengt.so/Sources/algorithms/directedtreewidth/directedtreewidth.cpp
9684
#include "../../../Headers/algorithms/directedtreewidth/directedtreewidth.h" //#define VERBOSEOUTPUT // see page 8 and 9 of // http://www.math2.rwth-aachen.de/~koster/paper/boko09a.pdf using namespace std; using namespace OpenGraphtheory; using namespace OpenGraphtheory::Algorithms; namespace OpenGraphtheory { ...
gpl-3.0
SZitzelsberger/Spreadsheet-Inspection-Framework
src/sif/frontOffice/PolicyManager.java
7809
package sif.frontOffice; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.TreeMap; import sif.model.policy.Policy; import sif.model.policy.policyrule.AbstractPolicyRule; import sif.model.policy.policyrule.CompositePolicyRule; import sif.model.policy.policyrule.MonolithicPolicyRule...
gpl-3.0
fanruan/finereport-design
designer_base/src/com/fr/design/gui/frpane/JTreeAutoBuildPane.java
10054
package com.fr.design.gui.frpane; import com.fr.base.BaseFormula; import com.fr.data.impl.NameTableData; import com.fr.data.impl.RecursionTableData; import com.fr.data.impl.TableDataDictionary; import com.fr.design.DesignModelAdapter; import com.fr.design.data.BasicTableDataTreePane; import com.fr.design.data.DesignTa...
gpl-3.0
snlpatel001213/algorithmia
graph_based_segmentation/test.py
52
# from graph import * # # print(get_lattice(45,7,6))
gpl-3.0
sacloud/sackerel
vendor/github.com/mackerelio/mackerel-client-go/metrics.go
3657
package mackerel import ( "encoding/json" "errors" "fmt" "net/http" "net/url" "strconv" ) // MetricValue metric value type MetricValue struct { Name string `json:"name,omitempty"` Time int64 `json:"time,omitempty"` Value interface{} `json:"value,omitempty"` } // HostMetricValue host metric valu...
gpl-3.0
tomas-pluskal/masscascadeknime
src/uk/ac/ebi/masscascade/knime/identification/adduct/AdductFinderNodeFactory.java
2499
/* * Copyright (C) 2013 EMBL - European Bioinformatics Institute * * All rights reserved. This file is part of the MassCascade feature for KNIME. * * The feature 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 ...
gpl-3.0
Booksonic-Server/madsonic-main
src/main/java/org/madsonic/domain/MusicFolderContentMadsonic.java
1524
/* * This file is part of Madsonic. * * Madsonic 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. * * Madsonic is distribut...
gpl-3.0
czlee/debatekeeper
app/src/main/java/net/czlee/debatekeeper/debateformat/PrepTimeSimpleFormat.java
2661
/* * Copyright (C) 2012 Chuan-Zheng Lee * * This file is part of the Debatekeeper app, which is licensed under the GNU * General Public Licence version 3 (GPLv3). You can redistribute and/or modify * it under the terms of the GPLv3, and you must not use this file except in * compliance with the GPLv3. * * This...
gpl-3.0
marionleborgne/sensor-data-app
database/generate_openbci_cassandra_schema.py
1150
__author__ = 'mleborgne' # column family names and the associated number of columns per family SENSOR = 'openbci' KEYSPACE = SENSOR METRICS = ['channel_0', 'channel_1', 'channel_2', 'channel_3', 'channel_4', 'channel_5', 'channel_6', 'channel_7'] COLUMNS = ['metric_value', 'prediction', 'anomaly_score', 'anomaly_likel...
gpl-3.0
RemyG/MicroBlog
modules/admin/views/view_connection.php
624
<div class="upload_picture"> <div class="upload_picture_title">Connection</div> <form method="post" action=""> <div class="upload_picture_row"> <label for="login" class="upload_picture">Login : </label> <input type=text" name="login" class="upload_picture" /> </div> <div class="upload_picture_row">...
gpl-3.0
nipunn1313/parity
parity/blockchain.rs
15472
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 lat...
gpl-3.0
jorisros/sfBootstrapPlugin
data/generator/sfPropelModule/bootstrap/template/templates/_list_field_boolean.php
204
[?php if ($value): ?] <span class="glyphicon glyphicon-ok" aria-hidden="Center Align"></span> [?php else: ?] <span class="glyphicon glyphicon-remove" aria-hidden="Center Align"></span> [?php endif; ?]
gpl-3.0
EbenZhang/gitextensions
GitUI/CommandsDialogs/SettingsDialog/Plugins/PluginSettingsPage.cs
2261
using System; using System.Collections.Generic; using System.Linq; using GitUIPluginInterfaces; namespace GitUI.CommandsDialogs.SettingsDialog.Plugins { public partial class PluginSettingsPage : AutoLayoutSettingsPage { private IGitPlugin _gitPlugin; private GitPluginSettingsContainer _setting...
gpl-3.0
anupkdas-nus/global_synapses
pyNN-dispackgaes/nest/simulator.py
8276
# encoding: utf-8 """ Implementation of the "low-level" functionality used by the common implementation of the API, for the NEST simulator. Classes and attributes usable by the common implementation: Classes: ID Connection Attributes: state -- a singleton instance of the _State class. All other function...
gpl-3.0
dlech/NXTCamView
NXTCamView/StripCommands/SaveFileStripCommand.cs
2135
// // Copyright 2007 Paul Tingey // // This file is part of NXTCamView. // // NXTCamView 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 y...
gpl-3.0
EbenZhang/gitextensions
UnitTests/CommonTestUtils/MockExecutable.cs
7099
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using GitCommands; using GitUI; using GitUIPluginInterfaces; using JetBrains.Annotations; using NUnit.Framework; namespace CommonTestUtils { ...
gpl-3.0
musxav/operaprog
Oprog/WNUsuari.xaml.cs
597
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
mpl-2.0
zhougithui/bookstore-single
src/main/java/org/bear/bookstore/common/interceptor/SensitiveWordInterceptor.java
914
package org.bear.bookstore.common.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; public class SensitiveWordInterceptor implements HandlerIntercept...
mpl-2.0
mozilla/remote-newtab
bin/generate-directories.js
2551
#! /usr/bin/env node "use strict"; const glob = require("glob"); const path = require("path"); const fs = require("fs-extra") const generateHtml = require("./generate-html"); const generateLocaleData = require("./generate-locale-data"); const PAGE_TITLE_KEY = "newtab-pageTitle"; const JS_FILENAME = "locale-data.js"; ...
mpl-2.0
JohnnyJ0622/Codility
src/com/johnny/java/MissingInteger.java
596
package com.johnny.java; import java.util.HashSet; /** * Created by Johnny on 2/10/2017. */ public class MissingInteger { public static void main(String[] args) { int[] A = {4, 5, 6, 1, 2}; MissingInteger m = new MissingInteger(); System.out.println(m.solution(A)); } public int ...
mpl-2.0
mstange/cleopatra
src/types/state.js
8954
/* 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/. */ // @flow import type { Action, DataSource, PreviewSelection, ImplementationFilter, CallTreeSummaryStrat...
mpl-2.0
svend/terraform-provider-stingray
Godeps/_workspace/src/github.com/hashicorp/terraform/config/lang/eval_test.go
4208
package lang import ( "reflect" "strconv" "testing" "github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/config/lang/ast" ) func TestEval(t *testing.T) { cases := []struct { Input string Scope *ast.BasicScope Error bool Result interfa...
mpl-2.0
asajeffrey/servo
tests/wpt/web-platform-tests/touch-events/multi-touch-interactions.js
18351
setup({explicit_done: true}); var debug = document.getElementById("debug"); function debug_print (x) { /* uncomment below statement to show debug messages */ // document.getElementById("debug").innerHTML += x; } var starting_elements = {}; function check_list_subset_of_targetlist(list, list_name, targetlist, target...
mpl-2.0
wx1988/strabon
evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/geosparql/sf/SimpleFeaturesOverlapsFunc.java
750
/** * 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 org...
mpl-2.0
terraform-providers/terraform-provider-aws
awsproviderlint/vendor/github.com/bflad/tfproviderlint/helper/terraformtype/helper/schema/package.go
1367
package schema import ( "fmt" "go/ast" "go/types" "github.com/bflad/tfproviderlint/helper/astutils" "github.com/bflad/tfproviderlint/helper/terraformtype" ) const ( PackageModule = terraformtype.ModuleTerraformPluginSdk PackageModulePath = `helper/schema` PackageName = `schema` PackagePath =...
mpl-2.0
gabyx/ApproxMVBB
include/ApproxMVBB/Common/MyMatrixTypeDefs.hpp
10625
// ======================================================================================== // ApproxMVBB // Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz // (døt) ch> // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL w...
mpl-2.0
petemoore/build-funsize
funsize/backend/config/staging.py
265
""" Celery configuration for dev environment export FUNSIZE_CELERY_CONFIG="funsize.backend.config.dev" to use it """ import os FUNSIZE_CONF_NAME = "staging" CELERY_ACKS_LATE = True CELERY_DEFAULT_QUEUE = "funsize_staging" BROKER_URL = os.environ.get('BROKER_URL')
mpl-2.0
DeathsbreedGames/deathsbreedgames.github.io
games/GNP-1.5-alpha0/src/Preload.js
1169
/** * GNP * Copyright (C) 2014 DeathsbreedGames * License: GNU Affero GPLv3 * */ var DeathsbreedGames = DeathsbreedGames || {}; DeathsbreedGames.Preload = function() {}; DeathsbreedGames.Preload.prototype = { preload:function() { // Setup the Splash image (DeathsbreedGames) this.splash = this.add.sprite(th...
mpl-2.0
Devexperts/QD
qd-core/src/main/java/com/devexperts/qd/kit/ByteArrayField.java
8113
/* * !++ * QDS - Quick Data Signalling Library * !- * Copyright (C) 2002 - 2021 Devexperts LLC * !- * 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/. * !__ */ pa...
mpl-2.0
doodles526/vault
vendor/github.com/coreos/etcd/raft/raft.go
39016
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
mpl-2.0
magnusfeuer/m1_core
tools/sqltool/sqlcommon.cc
85560
// // All rights reserved. Reproduction, modification, use or disclosure // to third parties without express authority is forbidden. // Copyright Magden LLC, California, USA, 2005, 2006, 2007, 2008. // // Some common SQL stuff. #include "sqlcommon.hh" #include <sys/time.h> #include <time.h> extern void usage(void); ...
mpl-2.0
pumasecurity/puma-scan
Puma.Security.Rules/Analyzer/Core/BinaryExpressionSyntaxAnalyzer.cs
1558
/* * Copyright(c) 2016 - 2020 Puma Security, LLC (https://pumasecurity.io) * * Project Leads: * Eric Johnson (eric.johnson@pumascan.com) * Eric Mead (eric.mead@pumascan.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 wi...
mpl-2.0
CantillatingZygote/rubiginouschanticleer
server/sessions/sessions.js
1094
// var db = require( '../config/db' ); // var Sequelize = require( 'sequelize' ); // var Session = db.define( 'sessions', { // sessionName : Sequelize.STRING // } ); // Session.sync().then( function() { // console.log( "sessions table created" ); // } ) // .catch( function( err ) { // console.error( err ); // }...
mpl-2.0
vikaspandeysahaj/muzima-android-2
src/main/java/com/muzima/view/MuzimaListFragment.java
2236
/* * 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
gemailadam/inspirationi.github.io
comments.php
41
comments.php The comments template.
mpl-2.0
Altrusoft/docserv
app/se/altrusoft/docserv/models/TemplateModelFactory.java
967
package se.altrusoft.docserv.models; import java.util.Map; public class TemplateModelFactory { private Map<String, TemplateModel> templates; public TemplateModel getTemplateModel(String templateName) { return templates.get(templateName).getClone(); } public Map<String, TemplateModel> getTemplates() { re...
mpl-2.0
barbocz/zeromq
src/test/java/guide/flcliapi.java
11163
package guide; import java.nio.channels.Selector; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.zeromq.ZContext; import org.zeromq.ZMQ; import org.zeromq.ZMQ.Poller; import org.zeromq.ZMQ.Socket; import org.zeromq.ZMsg; import org.zeromq.ZThread; import ...
mpl-2.0
birryree/servo
tests/unit/stylo/lib.rs
519
/* 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/. */ extern crate app_units; extern crate cssparser; extern crate env_logger; extern crate euclid; extern crate geckose...
mpl-2.0
CPardi/Doctran
Doctran/Input/Options/OptionListAttribute.cs
1565
// <copyright file="OptionListAttribute.cs" company="Christopher Pardi"> // Copyright © 2015 Christopher Pardi // 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
SerhiyPetrosyuk/Github-Repository-Viewer
app/src/androidTest/java/com/mlsdev/serhiy/githubviewer/ApplicationTest.java
361
package com.mlsdev.serhiy.githubviewer; 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() { ...
mpl-2.0
santoshphilip/pyclearsky
original_code/csvstuff.py
1613
# Copyright (c) 2013 Santosh Philip # ======================================================================= # 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
pyoor/octo
lib/logging/console.js
1790
/* 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/. */ var websocket = null var logger = (function () { // eslint-disable-line no-unused-vars const sep = '\n/* ### NE...
mpl-2.0
openMF/community-app
app/scripts/controllers/reports/RunReportsController.js
20571
(function (module) { mifosX.controllers = _.extend(module, { RunReportsController: function (scope, routeParams, resourceFactory, location, dateFilter, http, API_VERSION, $rootScope, $sce, $log) { scope.isCollapsed = false; //displays options div on startup scope.hideTable = true; /...
mpl-2.0
adrienlauer/seed
core/src/it/java/org/seedstack/seed/core/fixtures/el/PreEL.java
711
/** * Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.seedstack.seed.core.fi...
mpl-2.0
burdandrei/nomad
command/agent/config.go
62408
package agent import ( "encoding/base64" "errors" "fmt" "io" "net" "os" "os/exec" "os/user" "path/filepath" "runtime" "sort" "strconv" "strings" "time" sockaddr "github.com/hashicorp/go-sockaddr" "github.com/hashicorp/go-sockaddr/template" client "github.com/hashicorp/nomad/client/config" "github.co...
mpl-2.0
wx1988/strabon
generaldb/src/main/java/org/openrdf/sail/generaldb/schema/TripleTable.java
6779
/* * Copyright Aduna (http://www.aduna-software.com/) (c) 2008. * * Licensed under the Aduna BSD-style license. */ package org.openrdf.sail.generaldb.schema; import java.sql.SQLException; import java.util.List; import java.util.Map; import org.apache.log4j.Logger; import org.openrdf.sail.rdbms.schema.RdbmsTable; ...
mpl-2.0
tmhorne/celtx
intl/uconv/src/nsISO88591ToUnicode.cpp
2300
/* -*- 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
hashicorp/consul
agent/auto-config/auto_config_oss_test.go
172
//go:build !consulent // +build !consulent package autoconf import ( "testing" ) func newEnterpriseConfig(t *testing.T) EnterpriseConfig { return EnterpriseConfig{} }
mpl-2.0
wombatant/nostalgia
deps/buildcore/scripts/pybb.py
2497
#! /usr/bin/env python3 # # Copyright 2016 - 2021 gary@drinkingtea.net # # 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/. # # "Python Busy Box" - adds cross platfor...
mpl-2.0
terraform-providers/terraform-provider-google
google/resource_compute_shared_vpc_host_project.go
2448
package google import ( "fmt" "log" "time" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) func resourceComputeSharedVpcHostProject() *schema.Resource { return &schema.Resource{ Create: resourceComputeSharedVpcHostProjectCreate, Read: resourceComputeSharedVpcHostProjectRead, Delete: resource...
mpl-2.0
joyent/manta-muskie
test/integration/mpu-other.test.js
1669
/* * 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 2020 Joyent, Inc. */ // Other MPU-related tests. var test = require('tap').test; var helpe...
mpl-2.0
AkashaProject/ipfs-connector
tests.ts
5770
import { IpfsConnector } from './index'; import * as path from 'path'; import * as fs from 'fs'; import { expect } from 'chai'; import * as rimraf from 'rimraf'; import * as constants from './src/constants'; const bigObject = require('./tests/stubs/bigObject.json'); let binTarget = path.join(__dirname, 'tests', 'bin')...
mpl-2.0
pumasecurity/puma-scan
Puma.Security.Rules/Core/ConfigurationFiles/ConfigurationFileTransformCommand.cs
2551
/* * Copyright(c) 2016 - 2020 Puma Security, LLC (https://pumasecurity.io) * * Project Leads: * Eric Johnson (eric.johnson@pumascan.com) * Eric Mead (eric.mead@pumascan.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 wit...
mpl-2.0
willkg/socorro-collector
collector/lib/task_manager.py
9109
import time import threading import os from configman import RequiredConfig, Namespace from configman.converters import class_converter #------------------------------------------------------------------------------ def default_task_func(a_param): """This default consumer function just doesn't do anything. It is...
mpl-2.0
neolao/php
classes/Neolao/Site/Helper/ViewInterface.php
586
<?php namespace Neolao\Site\Helper; use \Neolao\Site\View; /** * Interface for a view helper * * The helper must contain a method named "main" */ interface ViewInterface { /** * The main function * * @param mixed $argument The argument */ function main($argument); /** *...
mpl-2.0