repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
abhijitsarkar/scala-impatient
src/test/scala/name/abhijitsarkar/scala/scalaimpatient/types/BugSpec.scala
700
package name.abhijitsarkar.scala.scalaimpatient.types import name.abhijitsarkar.scala.scalaimpatient.UnitSpec class BugSpec extends UnitSpec { "Making the bug move 4 units followed by 6 units" should "yield current position 10" in { val bugsy = new Bug() bugsy.move(4).move(6).currentPosition should be(10) ...
gpl-3.0
SonamYeshe/AStarPathPlanning
docs/latex/classgmock__output__test_1_1GMockOutputTest.tex
2950
\hypertarget{classgmock__output__test_1_1GMockOutputTest}{}\section{gmock\+\_\+output\+\_\+test.\+G\+Mock\+Output\+Test Class Reference} \label{classgmock__output__test_1_1GMockOutputTest}\index{gmock\+\_\+output\+\_\+test.\+G\+Mock\+Output\+Test@{gmock\+\_\+output\+\_\+test.\+G\+Mock\+Output\+Test}} Inheritance diag...
gpl-3.0
FFTEAM/FFTEAM-MP3-Martii
src/gui/infoviewer_bb.cpp
47910
/* Neutrino-GUI - DBoxII-Project Copyright (C) 2001 Steffen Hehn 'McClean' Homepage: http://dbox.cyberphoria.org/ Copyright (C) 2012-2013 Stefan Seyfried License: GPL 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
srnsw/xena
plugins/image/ext/src/batik-1.7/sources/org/apache/batik/dom/svg/SVGLocatableSupport.java
6739
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may...
gpl-3.0
tvesalainen/bcc
src/main/java/org/vesalainen/bcc/LongASM.java
7297
/* * Copyright (C) 2012 Timo Vesalainen * * 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 di...
gpl-3.0
badbytes/pymeg
meg/stereographicprojection.py
1056
/* * stereographic projection * * Copyright 2010 dan collins <danc@badbytes.net> * * 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 2 of...
gpl-3.0
michelemei/g2d
src/g2d/Path.h
3171
/******************************************************************************* This file is part of G2D. G2D is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)...
gpl-3.0
ray1919/zsq3p1_db
admin.php
1583
<?php // Activate session session_start(); // Start output buffer ob_start(); // Include utility files require_once 'include/config.php'; require_once BUSINESS_DIR . 'error_handler.php'; // Set the error handler ErrorHandler::SetHandler(); // Load the application page template require_once PRESENTATI...
gpl-3.0
HAMcast/HAMcast
libhamcast/src/serialization.cpp
5912
/******************************************************************************\ * _ ___ ____ __ _ * * | | | \ \___/ / \/ | ___ __ _ ___| |_ * * | |_| |\ /| |\/| |/ __/ _` / __| __| *...
gpl-3.0
rubenswagner/L2J-Global
java/com/l2jglobal/gameserver/model/conditions/ConditionPlayerHp.java
1390
/* * This file is part of the L2J Global project. * * 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 p...
gpl-3.0
apt-helion/viperidae
api/developer.py
1525
#!/usr/bin/env python import asyncio import json from bson import json_util from pymongo import MongoClient from .search import Query from .crawl import Spider class ClientSpider(Spider): """ Indexes the client website and saves all pages to a mongodb collection """ def __init__(self, client): ...
gpl-3.0
CroissanceCommune/autonomie
autonomie/views/admin/userdatas/options.py
1533
# -*- coding: utf-8 -*- # * Authors: # * TJEBBES Gaston <g.t@majerti.fr> # * Arezki Feth <f.a@majerti.fr>; # * Miotte Julien <j.m@majerti.fr>; import os from autonomie.models.user.userdatas import ( ZoneOption, ZoneQualificationOption, StudyLevelOption, SocialStatusOption, Activit...
gpl-3.0
leoGalani/sherlock
config.py
309
# -*- coding: utf8 -*- """Configuration params for sherlock.""" import os basedir = os.path.abspath(os.path.dirname(__file__)) CORS_HEADER = 'Content-Type' TOKEN_TIMEOUT = 9999 SECRET_KEY = os.urandom(25) SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') SQLALCHEMY_TRACK_MODIFICATIONS = True
gpl-3.0
ncssar/buckshot
buckshot.py
30547
# ############################################################################# # # buckshot.py - given a set of numbers and a marker name, make sarsoft markers # corresponding to all three lat-lon coordinate systems # # # developed for Nevada County Sheriff's Search and Rescue # Copyright (c) 2015 Tom Grundy #...
gpl-3.0
RossGammon/the-gammons.net
RossFamilyTree/evt/a/9/d15f60df08385b9c1b24f6e19a.html
3565
<!DOCTYPE html> <html xml:lang="en-GB" lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> <head lang="en-GB"> <title>Ross Gammon’s Family Tree - Events</title> <meta charset="UTF-8" /> <meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" /> <meta name ="apple-mo...
gpl-3.0
klho/hypoct
Makefile
2954
LIB = hypoct FC = gfortran FFLAGS = -fPIC -Wall -O3 CC = gcc CFLAGS = -fPIC -Wall -O3 F2PY = f2py3 F2PYFLAGS = --fcompiler=gnu95 PYTHON = python SRC = src BIN = bin C = c PYTHON = python DOC = doc EXAMPLES = examples F2PY_EXT = $(shell python3-config --extensi...
gpl-3.0
ThiagoGarciaAlves/ForestryMC
src/main/java/forestry/core/genetics/MutationConditionHumidity.java
1896
/******************************************************************************* * Copyright (c) 2011-2014 SirSengir. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v3 * which accompanies this distribution, and is availabl...
gpl-3.0
kelubo/wfbook
电/电子/放大器/放大器.md
579
# 放大器 ## 分类 **工作频率:** 低频放大器,中频放大器,高频放大器 **工作情况:** 甲类放大器,甲乙类放大器,乙类放大器,丙类放大器 **用  途:** 电压放大器,功率放大器 ## 使用指标 1. 放大系数 2. 输出于负载阻抗上的电压与功率 3. 效率 4. 输入信号的电源的性质 ## 质量指标 1. 放大器所引起的失真 2. 放大频带的宽度 3. 放大器的噪声与输出功率的动态范围 4. 放大系数的稳定性 5. 负载变动时输出电压振幅的恒定性
gpl-3.0
qqq490010553/springboot-basis
src/main/java/io/renren/modules/api/controller/ApiTestController.java
1092
package io.renren.modules.api.controller; import io.renren.common.utils.R; import io.renren.modules.api.annotation.AuthIgnore; import io.renren.modules.api.annotation.LoginUser; import io.renren.modules.api.entity.TokenEntity; import io.renren.modules.api.entity.UserEntity; import org.springframework.web.bind.annotat...
gpl-3.0
sutt0n/essentialmode-mysql
server/util.lua
753
--[[ -- @author smuttoN -- @website www.github.com/sutt0n -- @date 5/23/2017 --]] --[[ -- @param {string} delimiter ]] function stringsplit(self, delimiter) local a = self:Split(delimiter) local t = {} for i = 0, #a - 1 do table.insert(t, a[i]) end return t end --[[ -- @param {string} str -- @param {string}...
gpl-3.0
tierney/cryptagram-cc
src/base/i18n/icu_util.cc
4102
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/i18n/icu_util.h" #include "build/build_config.h" #if defined(OS_WIN) #include <windows.h> #endif #include <string> #include "base/f...
gpl-3.0
iCarto/siga
libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrGT2_old.java
5013
/* * Created on 16-dic-2004 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ /* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana * * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. * * This program...
gpl-3.0
PlamenHP/Softuni
Advanced C#/Functional Programming - Exercises/08. Custom Comparator/Startup.cs
1086
namespace _08.Custom_Comparator { using System; using System.Collections.Generic; using System.Linq; public class Startup { public static void Main() { int[] numbers = Console.ReadLine() .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEnt...
gpl-3.0
mihaipopescu/VEGA
tools/df3volume.cpp
3022
#include <fstream> #include <iostream> #include "df3volume.h" #ifdef _WIN32 # define LITTLE_ENDIAN #endif #ifdef LITTLE_ENDIAN #define SWAP_2(x) ( (((x) & 0xff) << 8) | ((unsigned short)(x) >> 8) ) #define SWAP_4(x) ( ((x) << 24) | \ (((x) << 8) & 0x00ff0000) | \ (((x) >> 8) & 0x000...
gpl-3.0
ikharbeq/s25client
src/ingameWindows/iwEndgame.cpp
2321
// Copyright (c) 2005 - 2015 Settlers Freaks (sf-team at siedler25.org) // // This file is part of Return To The Roots. // // Return To The Roots 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 versio...
gpl-3.0
do-android/do_BaiduMapView
doExt_do_BaiduMapView/src/dotest/module/frame/debug/DoPageViewFactory.java
748
package dotest.module.frame.debug; import android.app.Activity; import core.interfaces.DoIPageViewFactory; public class DoPageViewFactory implements DoIPageViewFactory { private Activity currentActivity; @Override public Activity getAppContext() { // TODO Auto-generated method stub return currentActivity; ...
gpl-3.0
DeanAaron/jdk8
jdk8en_us/docs/api/javax/swing/plaf/basic/class-use/BasicTreeUI.TreeSelectionHandler.html
5396
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_11) on Mon Jun 16 17:36:07 PDT 2014 --> <title>Uses of Class javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler (Java Platform SE 8 )</tit...
gpl-3.0
mcallaghan/tmv
BasicBrowser/tmv_app/migrations/0073_auto_20180109_1124.py
471
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-01-09 11:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tmv_app', '0072_runstats_dyn_win_threshold'), ] operations = [ migrations.A...
gpl-3.0
bchretien/RBDyn
tests/Tree30Dof.h
5894
// This file is part of RBDyn. // // RBDyn 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. // // RBDyn is distributed in the ...
gpl-3.0
msdeep14/DeepDataBase
sql-parser/src/SQLParserResult.cpp
1363
#include "SQLParserResult.h" namespace hsql { SQLParserResult::SQLParserResult() : isValid_(true), errorMsg_(NULL) {}; SQLParserResult::SQLParserResult(SQLStatement* stmt) : isValid_(true), errorMsg_(NULL) { addStatement(stmt); }; SQLParserResult::~SQLParserResult() { for (SQLStatem...
gpl-3.0
PlamenHP/Softuni
Entity Framework/Entity Framework Code First/6. Customers Migration/StoreLocation.cs
782
namespace _6.Customers_Migration { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; public partial class StoreLocation { [System.Diagnostics.CodeAnalysis...
gpl-3.0
CroMarmot/MyOICode
ProjectEuler/unsolved/p500.py
3132
# smallest number 2^500500 divisors , modulo 500500507 # 单调递减 # (2^a0)(2^a1)(2^a2) = 2^500500 # (2^ai)(2^aj) -> (2^{ai-1})(2^{aj+1}) : p_j^(2^{aj})/p_i^(2^{ai-1}) < 1 , (a > b) # (2^aj)ln(p_j) < (2^{ai-1})ln(p_i) # if 2^{a_i-a_j-1} > ln(p_j)/ln(p_i), then a_i-=1,a_j-=1 # # i < j # p_j^(2^(a_j-1)) < p_i^(2^a_i) # p_i^(2...
gpl-3.0
besacier/WCE-LIG
wce_system/preprocessing/measure_performance_system.py
3171
# -*- coding: utf-8 -*- """ Created on Sun Mar 29 18:02:06 2015 """ ##################################################################################################### # Groupe d'Étude pour la Traduction/le Traitement Automatique des Langues et de la Parole (GETALP) # Homepage: http://getalp.imag.fr # # Author: Tien...
gpl-3.0
ICOS-Carbon-Portal/meta
src/main/scala/se/lu/nateko/cp/meta/services/sparql/index/StringHierarchicalBitmap.scala
975
package se.lu.nateko.cp.meta.services.sparql.index object StringHierarchicalBitmap{ import HierarchicalBitmap._ val SpilloverThreshold = 513 implicit object Ord extends Ordering[String]{ def compare(x: String, y: String): Int = { val lx = x.length; val ly = y.length val lmin = Math.min(lx, ly) var i ...
gpl-3.0
Overv/OpenRCT2
src/windows/track_list.c
18487
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * * OpenRCT2 is the work of many authors, a full list can be found in contributors.md * For more information, visit h...
gpl-3.0
yongkangchen/poker-client
Assets/Runtime/Slua/LuaObject/Unity/Lua_UnityEngine_ParticleSystem_CollisionModule.cs
14303
using System; using LuaInterface; using SLua; using System.Collections.Generic; public class Lua_UnityEngine_ParticleSystem_CollisionModule : LuaObject { [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int constructor(IntPtr l) { try { UnityEngine.ParticleSystem.CollisionModule o; o=new U...
gpl-3.0
joernweissenborn/tensor2go
scalar.go
491
package tensor2go type Scalar struct { *Tensor } func NewScalar(val interface{}) (v *Scalar){ v = &Scalar{NewTensor()} v.Tensor.tensorRoot = v.Tensor.graph.CreateVertex("root",val) return } func (s *Scalar) Val() interface{} { return s.Tensor.tensorRoot.Properties() } func (s *Scalar) Multiply(val interface{})...
gpl-3.0
BobMorane22/ConnectX
cxgui/src/Board.cpp
8959
/************************************************************************************************** * This file is part of Connect X. * * Connect X is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, eith...
gpl-3.0
albertoroque/cataloko
site/CatalokoSite/Controllers/MarketController.cs
642
using CatalokoSite.Models; using CatalokoSite.Models.Helpers; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace CatalokoSite.Controllers { public class MarketController : Controller { [Route("~/market")] public ActionRe...
gpl-3.0
icandigitbaby/openchange
mapiproxy/libmapistore/mapistore_indexing.c
16788
/* OpenChange Storage Abstraction Layer library OpenChange Project Copyright (C) Julien Kerihuel 2010 Copyright (C) Carlos Pérez-Aradros Herce 2014 Copyright (C) Jesús García Sáez 2014 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Publ...
gpl-3.0
dreamsder/Khitomer
moduloreportes.h
4431
/********************************************************************* Khitomer - Sistema de facturación Copyright (C) <2012-2022> <Cristian Montano> Este archivo es parte de Khitomer. Khitomer es software libre: usted puede redistribuirlo y/o modificarlo bajo los términos de la Licencia Pública General GNU publicad...
gpl-3.0
UdashFramework/udash-guide
guide/src/main/scala/io/udash/web/guide/views/ext/demo/UrlLoggingDemo.scala
1947
package io.udash.web.guide.views.ext.demo import io.udash._ import io.udash.bootstrap.utils.BootstrapStyles import io.udash.bootstrap.utils.BootstrapStyles.ResponsiveBreakpoint import io.udash.web.guide.styles.partials.GuideStyles import org.scalajs.dom import scala.collection.mutable.ListBuffer import scalatags.JsDo...
gpl-3.0
smartdatasoft/PrestaShop-Blog
README.md
876
PrestaShop-Blog =============== World Class Prestashop Blog, Developed By smartdatasoft <h1>Version 2.0</h1> License Smart Prestashop Blog is released under GPLv3 - http://www.gnu.org/copyleft/gpl.html. You are free to redistribute & modify copies of the plugin under the following conditions: All links & credi...
gpl-3.0
dipsylala/LEDStick_TFT
RGBController.cpp
1772
// This file is part of LEDStick_TFT. // // LEDStick_TFT 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. // // LEDStick_TFT is ...
gpl-3.0
shinn16/Chess
src/GUI/Controller.java
46008
package GUI; import Logic.AI; import Logic.Board; import Logic.Player; import Logic.SpecialCoord; import Pieces.Coordinate; import Pieces.MasterPiece; import javafx.application.Platform; import javafx.fxml.FXML; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.S...
gpl-3.0
tobast/compil-petitscala
tests/typing/bad/testfile-unbound_var-1.scala
84
class A { def m() { var x = y } } object Main { def main(args: Array[String]) { } }
gpl-3.0
AperiStudios/OpenGrave
src/main/java/com/opengrave/common/ModSession.java
4818
/* * Copyright 2016 Nathan Howard * * This file is part of OpenGrave * * OpenGrave 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 ver...
gpl-3.0
Lomeli12/MechroMagiks
common/net/lomeli/magiks/api/machines/OreCrusherManager.java
1412
package net.lomeli.magiks.api.machines; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import net.minecraft.item.ItemStack; public class OreCrusherManager { private static final OreCrusherManager instance = new OreCrusherManager(); @SuppressWarnings("r...
gpl-3.0
b3dgs/lionheart-remake
lionheart-game/src/main/java/com/b3dgs/lionheart/object/feature/BossUnderworld.java
8280
/* * Copyright (C) 2013-2022 Byron 3D Games Studio (www.b3dgs.com) Pierre-Alexandre (contact@b3dgs.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, o...
gpl-3.0
InstantKhabar/_source
_source/news/2019-05-24-ipkl.html
6768
--- title: "आईपीकेएल : पुणे की पहली हार, पांडिचेरी की तीसरी जीत" layout: item category: ["sports"] date: 2019-05-24T16:44:17.515Z image: 1558716257515ipkl.jpg --- <p>मैसुरू: पांडिचेरी प्रीडेटर्स ने शुक्रवार को यहां खेले गए पारले इंडो इंटरनेशनल प्रीमियर कबड्डी लीग (आईपीकेएल) के पहले सीजन के दूसरे चरण के पहले दिन के पहले...
gpl-3.0
Aeva/waterworks
setup.py
508
from setuptools import setup setup(name="waterworks", version="0.0.0", description="Message agregation daemon.", url="https://github.com/Aeva/waterworks", author="Aeva Palecek", author_email="aeva.ntsc@gmail.com", license="GPLv3", packages=["waterworks"], zip_safe=False,...
gpl-3.0
kjolley/BIGSdb
lib/BIGSdb/REST/Routes/Users.pm
2322
#Written by Keith Jolley #Copyright (c) 2014-2019, University of Oxford #E-mail: keith.jolley@zoo.ox.ac.uk # #This file is part of Bacterial Isolate Genome Sequence Database (BIGSdb). # #BIGSdb 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
td0/pokehax
dump/index.html
285
<!DOCTYPE html> <html> <head></head> <body> <textarea id="textbox">Type something here</textarea> <button id="cr">Create file</button> <a download="info.txt" id="downloadlink" style="display: none">Download</a> <script type="text/javascript" src="./main.js"></script> </body> </html>
gpl-3.0
dsx75/bp-gen
src/eu/bp/gen1/pages/SkLedS2720.java
1263
/** * This file is part of BP generator. * * BP generator 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. * * BP generator is d...
gpl-3.0
cSploit/android.MSF
lib/openvas/openvas-omp.rb
17262
#!/usr/bin/env ruby # # This plugin provides integration with OpenVAS. Written by kost and # averagesecurityguy. # # Distributed under MIT license: # http://www.opensource.org/licenses/mit-license.php # require 'socket' require 'timeout' require 'openssl' require 'rexml/document' require 'rexml/text' require 'base64...
gpl-3.0
storri/libreverse
reverse/io/input/file_readers/mac_mach/cpu_x86_32.cpp
2043
/* CPU_X86_32.cpp Copyright (C) 2008 Stephen Torri This file is part of Libreverse. Libreverse 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, or (at your option) any later ...
gpl-3.0
shadowmage45/AncientWarfare
AncientWarfare/src/shadowmage/ancient_warfare/common/item/ItemResearchNote.java
2960
/** Copyright 2012 John Cummens (aka Shadowmage, Shadowmage4513) This software is distributed under the terms of the GNU General Public License. Please see COPYING for precise license information. This file is part of Ancient Warfare. Ancient Warfare is free software: you can redistribute it and...
gpl-3.0
BenLubar/NodeBB
src/routes/feeds.js
14110
'use strict'; var async = require('async'); var rss = require('rss'); var nconf = require('nconf'); var validator = require('validator'); var posts = require('../posts'); var topics = require('../topics'); var user = require('../user'); var categories = require('../categories'); var meta = require('../meta'); var hel...
gpl-3.0
jeffpar/courtcasts
sources/wasc/2009/05/07-docket.html
12231
<!DOCTYPE html> <html> <head> <title>Washington State Courts - Supreme Court Calendar </title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="expires" content="0"> <meta http-equiv="Pragma" content="no-cache...
gpl-3.0
zqfan/leetcode
algorithms/226. Invert Binary Tree/solution.py
490
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def invertTree(self, root): """ :type root: TreeNode :rtype: TreeNode """ if not ...
gpl-3.0
pdebuyl/pyMPCD
pyMPCD/MPCD.py
21970
# Copyright (C) 2011 Pierre de Buyl # This file is part of pyMPCD # pyMPCD 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. # pyMPCD ...
gpl-3.0
tsufeki/phpcmplr
tests/PhpCmplr/Core/Reflection/LocatorReflectionTest.php
5229
<?php namespace Tests\PhpCmplr\Core\Reflection; use PhpCmplr\Core\Container; use PhpCmplr\Core\FileStoreInterface; use PhpCmplr\Core\SourceFile\SourceFile; use PhpCmplr\Core\Parser\Parser; use PhpCmplr\Core\DocComment\DocCommentParser; use PhpCmplr\Core\NameResolver\NameResolver; use PhpCmplr\Core\Reflection\FileRefl...
gpl-3.0
kazoompah/JMSCompositionNetwork
JMSCompositionNetwork/TypeObjects/Vexpa/JMSPitchScale+Vexpa.h
333
// // JMSPitchScale+Vexpa.h // JMSCompositionNetwork // // Created by Matt Rankin on 27/03/2015. // Copyright (c) 2015 Sudoseng. All rights reserved. // #import "JMSPitchScale.h" #import "JMSVexpa.h" @interface JMSPitchScale (Vexpa) <JMSVexpaParser> + (JMSPitchScale *)pitchScaleWithVexpaString:(NSString *)vexpaS...
gpl-3.0
jvandervelden/rasp-train
src/node/models/gpio.js
340
var Gpio = function (physicalPin, wiringPiPin, name) { this.id = physicalPin; this.physicalPin = physicalPin; this.wiringPiPin = wiringPiPin; this.name = name; } Gpio.fromGpioDefinition = function (definition) { return new Gpio(definition.physicalPin, definition.wiringPiPin, definition.name); } mo...
gpl-3.0
vooku/Generate-festival-music-demo
src/Granulizer.cpp
1629
#include "Granulizer.h" #include <iostream> Granulizer::Granulizer() : grainIdx_(0), straightIdx_(0), grainLen_(0.0f), generator(std::chrono::system_clock::now().time_since_epoch().count()) { } bool Granulizer::loadLoop(char* filename) { grainIdx_ = 0; grainLen_ = 0; SN...
gpl-3.0
soedinglab/hh-suite
lib/simde/simde/arm/neon/dup_lane.h
31649
/* SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, ...
gpl-3.0
remipassmoilesel/simple-hostel-management
src/main/java/org/remipassmoilesel/bookme/services/MerchantServiceForm.java
5356
package org.remipassmoilesel.bookme.services; import org.remipassmoilesel.bookme.utils.Utils; import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; import javax.validation.constraints.Size; import java.util.Objects; /** * Created by remipa...
gpl-3.0
schleuder/schleuder-web
lib/openssl_ssl_patch.rb
521
# Monkey-patch OpenSSL to skip checking the hostname of the remote certificate. # We need to enable VERIFY_PEER in order to get hands on the remote certificate # to check the fingerprint. But we don't care for the matching of the # hostnames. Unfortunately this patch is apparently the only way to achieve # that. module...
gpl-3.0
Mr-Alicates/MECS
MECS/MECS.Core/Engraving/EngraverPosition.cs
270
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MECS.Core.Engraving { public class EngraverPosition { public int X { get; set; } public int Y { get; set; } } }
gpl-3.0
remico/dai-chess
src/chessgame.cpp
5364
#include "chessgame.h" #include <QUrl> #include <QQmlContext> #include <QDebug> #include "validator/pawnvalidator.h" #include "validator/rookvalidator.h" #include "validator/knightvalidator.h" #include "validator/bishopvalidator.h" #include "validator/queenvalidator.h" #include "validator/kingvalidator.h" #define HIS...
gpl-3.0
MahmudHamid/LazyEater
templates/dishes.php
471
<?php /** * Dashboard - Products * * @package FrozrCoreLibrary * @subpackage FrozrmarketTemplates */ if ( ! defined( 'ABSPATH' ) ) exit; /* Exit if accessed directly*/ frozr_redirect_login(); frozr_redirect_if_not_seller(); $action = isset( $_GET['action'] ) ? wc_clean($_GET['action']) : 'listing'; if ( $actio...
gpl-3.0
SAnsell/CombLayer
Model/MaxIV/cosaxsInc/cosaxsFrontEnd.h
1952
/********************************************************************* CombLayer : MCNP(X) Input builder * File: cosaxsInc/cosaxsFrontEnd.h * * Copyright (c) 2004-2020 by Stuart Ansell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Lice...
gpl-3.0
frmichetti/workix
src/main/webapp/static/workix-static-demo/docs/java-docs/br/com/codecode/workix/security/class-use/JAASUser.html
12638
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Fri Nov 25 00:19:10 BRST 2016 --> <title>Uses of Class br.com.codecode.workix.security.JAASUser</title> <meta content="2016...
gpl-3.0
david-ma/Thalia
websites/example/public/js/scripts.min.js
321
$(function(){$('a[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=$(this.hash);if((t=t.length?t:$("[name="+this.hash.slice(1)+"]")).length)return $("html, body").animate({scrollTop:t.offset().top},500),!1}})})...
gpl-3.0
zrispo/wick
lib/localstoragewrapper.js
780
window.saveData = function (key, data) { if(!localStorage.savedData) localStorage.savedData = JSON.stringify({}); var savedData = JSON.parse(localStorage.savedData) var type = typeof data; savedData[key] = { type: type, data: (type === 'object') ? JSON.stringify(data) : data }; localStorage.savedData = JS...
gpl-3.0
MestreLion/boinc-debian
sched/sched_shmem.cpp
11690
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2008 University of California // // BOINC 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 Licens...
gpl-3.0
wdxtub/Patriots
frontend/src/api/setting.js
823
import request from '@/utils/request' export function fetchCommon() { return request({ url: '/setting/common/cron/', method: 'get' }) } export function editCommon(formData) { const data = formData return request({ url: '/setting/common/cron/', method: 'put', data }) } export function fe...
gpl-3.0
svn2github/QTTabBar
QTTabBar/Resources_Image.Designer.cs
21577
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> ...
gpl-3.0
BukkitPE/BukkitPE
src/main/java/net/BukkitPE/item/enchantment/bow/EnchantmentBowInfinity.java
542
package net.BukkitPE.item.enchantment.bow; import net.BukkitPE.item.enchantment.Enchantment; /** * BukkitPE Project */ public class EnchantmentBowInfinity extends EnchantmentBow { public EnchantmentBowInfinity() { super(Enchantment.ID_BOW_INFINITY, "arrowInfinite", 1); } @Override public in...
gpl-3.0
IntersectAustralia/nedb
db/migrate/20101015032903_add_status_to_users.rb
285
class AddStatusToUsers < ActiveRecord::Migration def self.up add_column :users, :status, :string, :default => "U" remove_column :users, :approved end def self.down remove_column :users, :status add_column :users, :approved, :boolean, :default => false end end
gpl-3.0
bendem/SchoolBoats
Test1.cpp
3245
#include <stdlib.h> #include <iostream> #include "boats/FloatingObject.hpp" using namespace std; // Quelques conseils avant de commencer... // * N'oubliez pas de tracer (cout << ...) tous les constructeurs et le destructeur !!! Ca, c'est pas un conseil, // c'est obligatoire :-) // * N'essayez pas de compiler ce pro...
gpl-3.0
CreativeMD/OnlinePictureFrame
src/main/java/com/creativemd/opf/gui/GuiUrlTextfield.java
2213
package com.creativemd.opf.gui; import java.util.ArrayList; import com.creativemd.creativecore.common.gui.GuiRenderHelper; import com.creativemd.creativecore.common.gui.client.style.ColoredDisplayStyle; import com.creativemd.creativecore.common.gui.client.style.Style; import com.creativemd.creativecore.common.gui.con...
gpl-3.0
hails/tane
tests/unit/middlewares/error.test.js
2113
const errorHandler = require('../../../src/controllers/middlewares/error') describe('Error Handler', () => { describe('with generic error', () => { const error = { code: '007', stack: 'StackTrace', } const req = { id: 'request_id' } const res = { locals: {}, } const next = ...
gpl-3.0
EuropeanSocialInnovationDatabase/ESID-main
WebInterfaces/templates/success.html
1619
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="{{...
gpl-3.0
mkg20001/website-cms
sys/install/index.php
174
<?php echo file_get_contents(HERE."install".DS."install-header.html"); if (URI == "install") { inc("install".DS."install"); } else { inc("install".DS."must-install"); } ?>
gpl-3.0
OscarMiticanoy/NuestraPLaza-java
NuestraPlaza/src/main/java/com/mycompany/control/DemandaController.java
7210
package com.mycompany.control; import com.mycompany.entidades.Demanda; import com.mycompany.control.util.JsfUtil; import com.mycompany.control.util.PaginationHelper; import com.mycompany.facade.DemandaFacade; import java.io.Serializable; import java.util.ResourceBundle; import javax.ejb.EJB; import javax.inject.Named...
gpl-3.0
DrakonPL/Andromeda
Andromeda/System/SystemEnums.h
166
#ifndef SystemEnums_H #define SystemEnums_H namespace Andromeda { namespace System { enum PlatformTypeEnum { Windows, Vita, Android }; } } #endif
gpl-3.0
MikeMatt16/Abide
Abide Tag Definitions/Generated/Library/GrenadeHudSoundBlock.Generated.cs
2335
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
gpl-3.0
MikeMatt16/Abide
Abide Tag Definitions/Generated/Guerilla/HudGlobals.Generated.cs
1437
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //---...
gpl-3.0
dwindow/dwindow
oem-3dvstar/dwindow/WinSDK/Include/mscoree.h
239231
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 7.00.0499 */ /* Compiler settings for mscoree.idl: Oicf, W1, Zp8, env=Win32 (32b run) protocol : dce , ms_ext, c_ext, robust error checks: allocation ref bounds_check enum stub_data ...
gpl-3.0
petrzjunior/Marlin
Marlin/src/lcd/extensible_ui/lib/ftdi_eve_touch_ui/screens/status_screen.cpp
13488
/********************* * status_screen.cpp * *********************/ /**************************************************************************** * Written By Mark Pelletier 2017 - Aleph Objects, Inc. * * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. * * ...
gpl-3.0
porfiriopaiz/dotfiles
README.md
33
# dotfiles My very own dotfiles.
gpl-3.0
tranleduy2000/javaide
aosp/gradle/src/main/java/com/android/build/gradle/internal/dsl/LanguageSplitOptions.java
2810
/* * Copyright (C) 2014 The Android Open Source Project * * 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...
gpl-3.0
yongkangchen/poker-client
Assets/Runtime/Slua/LuaObject/Dll/Lua_UIKeyBinding.cs
3361
using System; using LuaInterface; using SLua; using System.Collections.Generic; public class Lua_UIKeyBinding : LuaObject { [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static public int IsBound_s(IntPtr l) { try { UnityEngine.KeyCode a1; checkEnum(l,1,out a1); var ret=UIKeyBinding.IsBound(a1); ...
gpl-3.0
GenerationOfWorlds/GOW
Scripts/Core/Stygian Abyss/Magic/Bard Masteries/Inspire.cs
2339
using System; using System.Collections.Generic; using Server; using Server.Events; using Server.Buff.Icons; using Server.Items; namespace Server.Spells.Bard { public class Inspire : AreaSpellsong { public static void Initialize() { EventSink.BeforeDamage += new BeforeDamageEventHandler( EventSink_BeforeDamage...
gpl-3.0
mattiemonster/fireplace
Fireplace/Apps/TextEditorNew.Designer.vb
3432
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class TextEditorNew Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) ...
gpl-3.0
hugoruscitti/bateria
app/adapters/application.js
105
import DS from 'ember-data'; export default DS.LSAdapter.extend({ namespace: 'bateria_namespace' });
gpl-3.0
calebgregory/node-testing-with-mocha-chai
config/index.js
204
'use strict' const config = { development: './env/dev', production: './env/prod', test: './env/test' } const { NODE_ENV = 'development' } = process.env module.exports = require(config[NODE_ENV])
gpl-3.0
UncleRus/MultiOSD
firmware/telemetry/uavtalk/lib/lp1609rc1/gpspositionsensor.h
2610
/* * This file is part of MultiOSD <https://github.com/UncleRus/MultiOSD> * * 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
tkrotoff/QuarkPlayer
libs/WebBrowser/WebBrowser.cpp
7469
/* * QuarkPlayer, a Phonon media player * Copyright (C) 2008-2011 Tanguy Krotoff <tkrotoff@gmail.com> * * 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 Lice...
gpl-3.0