id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
5f689bbcc05252a5dc3a8949b3c43e1f0497583bb734681906ded3a7da61597c
// Copyright 2016 Canonical Ltd. // Licensed under the LGPLv3, see LICENCE file for details. package gomaasapi import "github.com/juju/utils/set" const ( // Capability constants. NetworksManagement = "networks-management" StaticIPAddresses = "static-ipaddresses" IPv6DeploymentUbuntu = "ipv6-deploym...
GO
interfaces.go
voidspace/gomaasapi
lgpl-3.0
10,299
346
codeparrot/github-code
0536738965f16b3e709afffca485e2caa104dd4083b5553ee9a790b4395e9da3
/*+@@file@@----------------------------------------------------------------*//*! \file MMCObj.h \par Description Extension and update of headers for PellesC compiler suite. \par Project: PellesC Headers extension \date Created on Sun Aug 7 22:15:35 2016 \date Modified on Sun Aug 7 2...
C
Include/MMCObj.h
Frankie-PellesC/fSDK
lgpl-3.0
77,824
1,247
codeparrot/github-code
de62a9e724eb144b5b31db9a19027af0e3c721393426575b1890857bafc442db
<?php /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___...
PHP
src/pocketmine/level/format/mcregion/RegionLoader.php
NickY5/mitko_e_prostak
lgpl-3.0
11,885
363
codeparrot/github-code
6cc64f3847cc91f5e258e4be1e97c4a82866c9c739b0d9fcd1e72a73f15225ff
package edu.mit.blocks.codeblockutil; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Point; import java.awt.RenderingHints; import java.awt.Toolkit; import ja...
Java
src/main/java/edu/mit/blocks/codeblockutil/LabelWidget.java
laurentschall/openblocks
lgpl-3.0
24,554
693
codeparrot/github-code
5f94c5c2058a161e75650785e804934214fcdf2ed325e0ee89f768a73563b65a
/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML * Schema. * $Id: CreditCardCreditModRqTypeDescriptor.java,v 1.1.1.1 2010-05-04 22:06:01 ryan Exp $ */ package org.chocolate_milk.model.descriptors; //---------------------------------/ //- Import...
Java
src/org/chocolate_milk/model/descriptors/CreditCardCreditModRqTypeDescriptor.java
galleon1/chocolate-milk
lgpl-3.0
10,197
308
codeparrot/github-code
af677813f317dc69b57b8ac24f82774ceb919e6a3e48fac4c144aa6030932995
/* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube 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 Found...
Java
sonar-plugin-api/src/test/java/org/sonar/api/technicaldebt/server/internal/DefaultCharacteristicTest.java
teryk/sonarqube
lgpl-3.0
6,276
151
codeparrot/github-code
a8fc75a8f7410e84bea59f959c1451a880ead138cd6f995fcf7194c61e80a857
/* * @BEGIN LICENSE * * Psi4: an open-source quantum chemistry software package * * Copyright (c) 2007-2018 The Psi4 Developers. * * The copyrights for code used from other parties are included in * the corresponding files. * * This file is part of Psi4. * * Psi4 is free software; you can redistribute it an...
C
psi4/src/psi4/libscf_solver/uhf.h
amjames/psi4
lgpl-3.0
3,521
113
codeparrot/github-code
3317197ad06712007b8eb213a310f2b1f06266277952f4d38b74c37ab54c3630
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:L...
C
src/components/private/qdeclarativecomponent_p.h
vakkov/qt-components-hildon
lgpl-3.0
5,239
162
codeparrot/github-code
99147edb45e21e190e391845278e060e87da110d9daf1385ef631d1ed0ab20b8
'use strict'; const chai = require('chai'); const assert = chai.assert; const sinon = require('sinon'); const responseError = require('../../../server/utils/errors/responseError'); describe('responseError', () => { let spyCall; const res = {}; let error = 'An error message'; beforeEach(() => { res.statu...
JavaScript
test/utils/errors/reponseError.js
kn9ts/project-mulla
lgpl-3.0
1,168
45
codeparrot/github-code
cbbc61a81187962c29f70cc162e680bb571f0b4ae3b824c1a2fdb1ec6582f9f8
/* * Copyright (c) 2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * includ...
C
external/Box2D/Collision/b2DynamicTree.h
gameview/WareCocos2dx
lgpl-3.0
8,362
285
codeparrot/github-code
00e802096bb2aec89e5302bf3d017e9aad2797c962c5915eb11e8bc67502adaa
package GT::Signals::Graphical::CandleSticks::BullishHarami; # Copyright (C) 2007 M.K.Pai # # 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 the License, or # (at your...
Perl
stock_tech/GeniusTrader/GT/Signals/Graphical/CandleSticks/BullishHarami.pm
hunterfu/it-manager
lgpl-3.0
3,550
118
codeparrot/github-code
0fc0aafa8278c70f091c7627378a972522b943908ba871032a8609637adbdac5
#include "sensorcontrol.h" using namespace oi; /*! * \brief SensorControl::SensorControl * \param station * \param parent */ SensorControl::SensorControl(QPointer<Station> &station, QObject *parent) : QObject(parent), station(station), sensorValid(false){ this->worker = new SensorWorker(); this->connectSe...
C++
src/sensorcontrol.cpp
OpenIndy/OpenIndy-Core
lgpl-3.0
20,686
667
codeparrot/github-code
8679d76c0f5d8cd85b740849981f057277b6fc55a32a1683238949a85c114de5
#bo general settings #set default start location Set-Location C:\ #change how powershell does tab completion #@see: http://stackoverflow.com/questions/39221953/can-i-make-powershell-tab-complete-show-me-all-options-rather-than-picking-a-sp Set-PSReadlineKeyHandler -Chord Tab -Function MenuComplete #eo general settings...
PowerShell
powershell/Microsoft.PowerShell_profile.ps1
stevleibelt/settings
lgpl-3.0
28,712
798
codeparrot/github-code
75d456959e81dfc7c59a8190d27279ed52c19431431b41e11f248adcb2f2ec92
# Copyright (C) 2014 Optiv, Inc. (brad.spengler@optiv.com) # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. from lib.cuckoo.common.abstracts import Signature class InjectionRWX(Signature): name = "injection_rwx" description = "Creates R...
Python
modules/signatures_orginal_20151110/injection_rwx.py
lixiangning888/whole_project
lgpl-3.0
1,229
34
codeparrot/github-code
8fcd351c6232eb846f21c98e4448fe05fe52b07d547273cff85a8ea7382a5b2b
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/sagemaker/deleteapprequest.h
pcolby/libqtaws
lgpl-3.0
1,343
51
codeparrot/github-code
7cf9b4bd45f34972df3aa3454c5bc3d661db01b1fcb453df84b7d9cb682e346c
/* * HA-JDBC: High-Availability JDBC * Copyright (C) 2013 Paul Ferraro * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any...
Java
core/src/main/java/net/sf/hajdbc/sql/io/OutputStreamProxyFactory.java
ha-jdbc/ha-jdbc
lgpl-3.0
1,449
44
codeparrot/github-code
ddd44f8dd8fdee68c8ab716bced7925fb488fbca3b4371263e5f08e9ca349a0b
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic 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...
Java
src/main/java/org/fenixedu/academic/domain/accounting/AccountingTransaction.java
sergiofbsilva/fenixedu-academic
lgpl-3.0
15,075
395
codeparrot/github-code
345a0c8ece7a6b6e55329dd399fad9c69baff09c3527c9b422b5e3b4e5c6943f
package net.amygdalum.testrecorder.profile; import static org.assertj.core.api.Assertions.assertThat; import java.io.ByteArrayOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.net.URL; import java.nio.file.Path; import java.util.Enumeration; import java.util.stream.Stream; i...
Java
testrecorder-agent/src/test/java/net/amygdalum/testrecorder/profile/ClassPathConfigurationLoaderTest.java
almondtools/testrecorder
lgpl-3.0
3,862
87
codeparrot/github-code
42e1e0b410e634b86922c8f9bb4914dab176a522f458186786e991523aa937b2
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/iot1clickdevicesservice/tagresourcerequest.h
pcolby/libqtaws
lgpl-3.0
1,429
51
codeparrot/github-code
b783ece84fc25692f29addc32b422dc562493ceef3ab6da02035510a5ec45dae
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2014, Arnaud Roques * * Project Info: http://plantuml.sourceforge.net * * This file is part of...
Java
src/net/sourceforge/plantuml/graphic/TextBlockGeneric.java
mar9000/plantuml
lgpl-3.0
2,272
66
codeparrot/github-code
797cbc3680b266a715e775bdc2d787854afc32468fc59fe8a99e4fb61a2605b7
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/codecommit/describepullrequesteventsrequest.h
pcolby/libqtaws
lgpl-3.0
1,476
51
codeparrot/github-code
20a3459b49f5a3d39fd3cd1c0f2eadb2fed73ce58a110d1ceea14a4eee828313
<?php namespace pocketmine\entity; use pocketmine\item\Item as ItemItem; use pocketmine\nbt\tag\IntTag; class Slime extends Monster{ const NETWORK_ID = self::SLIME; const DATA_SIZE = 16; public $height = 2; public $width = 2; public $lenght = 2;//TODO: Size protected $exp_min = 1; protected $exp_max = 1;//T...
PHP
src/pocketmine/entity/Slime.php
ClearSkyTeam/PocketMine-MP
lgpl-3.0
931
49
codeparrot/github-code
62aff1d9d2b91b1af038630b0e0b3745299b1a4d3ca0231998c9a8862ece4d7b
using System.Globalization; using System.ServiceProcess; using System.Threading; using Castle.Core.Logging; using Consumentor.ShopGun.Component; using Consumentor.ShopGun.Configuration; namespace Consumentor.ShopGun.Services { public abstract class ServiceHostBase : ServiceBase { public abst...
C#
trunk/src/Infrastructure/Services/ServiceHostBase.cs
consumentor/Server
lgpl-3.0
1,683
49
codeparrot/github-code
85b7ad36fff9b3e7e7be7cddfbace8a0d3fd6a1150945c4d572411b4f5f7c14a
#include "GAPhysicsBaseTemp.h" //------------------------------GAPhysicsBase------------------------------------------ GAPhysicsBase::GAPhysicsBase() { } int GAPhysicsBase::testCollideWith(GAPhysicsBase* object2,GAVector3& collidePoint) { return 0; } //--------------------------------GALine----------------------...
C++
GrandArtProcessor/GrandArtProcessor/GAPhysicsBaseTemp.cpp
grandiazhao/Grandia-Engine
lgpl-3.0
1,506
80
codeparrot/github-code
99bc0f1c1adb91bd4c1d981265e4b43488255adff2a7d8b4ada6008e277435e2
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/route53/deletehostedzonerequest.h
pcolby/libqtaws
lgpl-3.0
1,389
51
codeparrot/github-code
f65c07b4c501c2ff42c5a6a638a7b31cee6ed55013d0ae33cb8ce6e510651802
/******************************************************************************* * Este arquivo é parte do Biblivre5. * * Biblivre5 é um software livre; você pode redistribuí-lo e/ou * modificá-lo dentro dos termos da Licença Pública Geral GNU como * publicada pela Fundação do Software Livre (FSF); na versão 3 ...
Java
src/java/biblivre/core/JavascriptCacheableList.java
Biblivre/Biblivre-5
lgpl-3.0
2,270
85
codeparrot/github-code
e6d39f2e1a2a1557ede4cef68e93c6cdf98b564c0d9ce09ece05d7f43039aeb1
// Copyright © 2004, 2010, Oracle and/or its affiliates. All rights reserved. // // MySQL Connector/NET is licensed under the terms of the GPLv2 // <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most // MySQL Connectors. There are special exceptions to the terms and // conditions of the GPLv2 as it is ...
C#
MySql.Data/MySqlClientPermissionAttribute.cs
ramayasket/Kwisatz-Haderach
lgpl-3.0
1,829
46
codeparrot/github-code
4e27cfeccd79090707e85d6928788839ae9df7c81475b5875191c85dedc81de4
using System; using System.Linq; using System.Threading; using System.Web.Mvc; using Arashi.Core; using Arashi.Core.Domain; using Arashi.Services.Localization; namespace Arashi.Web.Mvc.Views { public abstract class AdminViewUserControlBase : WebViewPage //ViewUserControl { private ILocalizationService loc...
C#
src/Web.Mvc/Views/AdminViewUserControlBase.cs
aozora/arashi
lgpl-3.0
3,171
129
codeparrot/github-code
a92fc4d13331a11c0db4ca2391d1d51fbb91b5b4542a94d9910c2fd66a05aa57
/** * Kopernicus Planetary System Modifier * ------------------------------------------------------------- * This library 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 th...
C#
src/Kopernicus/Configuration/ConfigReader.cs
BryceSchroeder/Kopernicus
lgpl-3.0
2,299
76
codeparrot/github-code
29dcc5e675c9b6b9760b594a6385e56ebaa698ffb719162f69030b3d43d5f590
# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md # /usr/local/Library/Contributions/example-formula.rb # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! class RubyDmSqliteAdapter < Formula homepage "" head "git://git.k...
Ruby
Formula/ruby-dm-sqlite-adapter.rb
feffi/homebrew-penbrew
lgpl-3.0
1,589
39
codeparrot/github-code
b01fc8c2ec20b003c326c1f8bd30080bd3fd5a683d1bbf4e8d61078fd12fd832
#include "zjson.h" #define Start 0x1<<1 #define ObjectInitial 0x1<<2 #define MemberKey 0x1<<3 #define KeyValueDelimiter 0x1<<4 #define MemberValue 0x1<<5 #define MemberDelimiter 0x1<<6 #define ObjectFinish 0x1<<7 #define ArrayInitial ...
C
misc/zjson/src/parser.c
zuoxinyu/zlibc
lgpl-3.0
10,987
403
codeparrot/github-code
fa8d54836d7b40938e5f59d8be781d8218c097944f080b0f832b1ef90752a8ac
package org.com.json; /* Copyright (c) 2002 JSON.org 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, publ...
Java
Json/src/org/com/json/XML.java
jongos/Question_Box_Desktop
lgpl-3.0
14,112
437
codeparrot/github-code
d46b952b68c2888b0744b386d9666003d41581176df2a0d3ce5a42176e497909
package com.silicolife.textmining.processes.ie.ner.nerlexicalresources; import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Properties; import java.util.concurrent.ExecutorService; import java.util...
Java
src/main/java/com/silicolife/textmining/processes/ie/ner/nerlexicalresources/NERLexicalResources.java
biotextmining/processes
lgpl-3.0
9,063
203
codeparrot/github-code
cfd86b2593fecd1799632b8a19cba2a3722a5df98ac9ab3ae5bbb918f2fe1e76
/*#include "StdAfx.h"*/ #include "Sqlite3Ex.h" #include <string.h> Sqlite3Ex::Sqlite3Ex(void) :m_pSqlite(NULL) { memset(m_szErrMsg, 0x00, ERRMSG_LENGTH); } Sqlite3Ex::~Sqlite3Ex(void) { } bool Sqlite3Ex::Open(const wchar_t* szDbPath) { int nRet = sqlite3_open16(szDbPath, &m_pSqlite); if...
C++
CUCKOO0615_Utils/Sqlite3Ex.cpp
CUCKOO0615/CUCKOO0615_Utils
lgpl-3.0
4,082
161
codeparrot/github-code
3da30f87fa1b745b5ff4a01b27bb24e72fab5e4fae36e164155a92e98b9c2ec0
package repack.org.bouncycastle.crypto.agreement; import repack.org.bouncycastle.crypto.BasicAgreement; import repack.org.bouncycastle.crypto.CipherParameters; import repack.org.bouncycastle.crypto.params.ECDomainParameters; import repack.org.bouncycastle.crypto.params.ECPrivateKeyParameters; import repack.org.bouncyc...
Java
app/src/main/java/bouncycastle/repack/org/bouncycastle/crypto/agreement/ECMQVBasicAgreement.java
SafetyCulture/DroidText
lgpl-3.0
2,651
87
codeparrot/github-code
a9b79c48e8b6e7105d1b0909c08c4e1b9f16d7119e924527c631013f08bd50bf
/** * Copyright (C) 2015 Łukasz Tomczak <lksztmczk@gmail.com>. * * This file is part of OpenInTerminal plugin. * * OpenInTerminal plugin 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 ver...
Java
src/main/java/settings/OpenInTerminalSettingsState.java
luktom/OpenInTerminal
lgpl-3.0
2,286
72
codeparrot/github-code
593528483b1e9b637ab7bda33300f290f239ecd221d66bc51c34d6641f7ece13
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/pinpointemail/putconfigurationsetdeliveryoptionsrequest_p.h
pcolby/libqtaws
lgpl-3.0
1,670
48
codeparrot/github-code
269a113dfff69d340e51ebe994d5eaa1da1cd170cc7d64994e4579ce7bfc0c6b
package org.ocbc.utils; import org.json.JSONObject; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.HashMap; public class request { public static JSONObject get(String url, HashMap<String, String> headers) { Buffer...
Java
src/main/java/org/ocbc/utils/request.java
connect2ocbc/jocbc
lgpl-3.0
1,151
42
codeparrot/github-code
5bfa86b354ab0e600ce0dd1400da08434fe29cccdf2d61c5d97ce9606f20715d
/* * Mounts a BitLocker Drive Encrypted (BDE) volume * * Copyright (C) 2011-2015, Joachim Metz <joachim.metz@gmail.com> * * Refer to AUTHORS for acknowledgements. * * This software is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published ...
C
bdetools/bdemount.c
windworst/libbde
lgpl-3.0
55,128
2,540
codeparrot/github-code
38dae6976cb0fa640fe9e465340390def13cad56553f782c7915767cdb323167
/* * Copyright (C) 2014 Stuart Howarth <showarth@marxoft.co.uk> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 3, as published by the Free Software Foundation. * * This program is distributed in the ...
C
qdl-app/src/harmattan/maskeditem.h
marxoft/qdl
lgpl-3.0
1,408
53
codeparrot/github-code
0d125352700a87f141a276a33541a1959cee03464d753b9192da3e2beb8b350b
/* * Copyright(c) 2013 Tim Ruehsen * Copyright(c) 2015-2016 Free Software Foundation, Inc. * * This file is part of libwget. * * Libwget 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 ve...
C
libwget/http_highlevel.c
darnir/wget2
lgpl-3.0
9,190
334
codeparrot/github-code
cf824b117e7d0bfd4057eca958706af140c65362e03b31fda21a25121ad0e441
/********************************************************************** * Copyright (c) 2010, j. montgomery * * All rights reserved. * * * * Redistribution and use in sou...
C#
DnDns/Query/DnsQueryResponse.cs
RELOAD-NET/RELOAD.NET
lgpl-3.0
6,689
174
codeparrot/github-code
9fb42b5d7b1c82230aff65b7a8ba68d9cd4a08056156cc6b9dfade0e3f0df846
package org.openbase.bco.device.openhab.communication; /*- * #%L * BCO Openhab Device Manager * %% * Copyright (C) 2015 - 2021 openbase.org * %% * 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 Foun...
Java
openhab/src/main/java/org/openbase/bco/device/openhab/communication/OpenHABRestConnection.java
DivineCooperation/bco.core-manager
lgpl-3.0
17,838
451
codeparrot/github-code
e05369c87686af5d92df0b18d86a409e124c09768ad06d5d6b770b347fb3ac3c
#include "gitrepository.h" #include <qtcacheexception.h> #include <git2.h> inline void git_eval(int err){ if (err) { const git_error* err = giterr_last(); throw QtC::QtCacheException(err->message); } } template<typename T> class git_auto { public: git_auto(T* object = NULL) ...
C++
QtCacheGitPlugin/gitrepository.cpp
entwickler42/QtCache
lgpl-3.0
6,672
233
codeparrot/github-code
fecef0f7b6bfbd521135c55f1372b7b7a0a36a7febb41068bcb3fe6cf8de6900
#!/bin/zsh export PATH="${HOME}/bin:${HOME}/script:${PATH}" export HISTSIZE=1000000 if [[ -z "${HOSTNAME}" ]] ; then export HOSTNAME="${HOST:-$(hostname)}" fi if [[ -d "${MYSHELL}/plugins" ]]; then for i in "${MYSHELL}/plugins/"* ; do source "${i}" done fi function prompt_char() { if [ $UID -eq 0 ]; then echo...
Shell
zsh/tsaikd.zsh
tsaikd/bash
lgpl-3.0
2,879
112
codeparrot/github-code
e05106dd0eaf3383f169575b55f10d4dc1d57c83181d0be47a5dac0df912c941
/* * ===================================================================================== * * Filename: select-sort.c * * Description: * * Version: 1.0 * Created: 12/23/2016 04:47:42 PM * Revision: none * Compiler: gcc * * Author: YOUR NAME (), * Organ...
C
clang/algorithm/select-sort.c
fengbohello/practice
lgpl-3.0
2,362
121
codeparrot/github-code
a31e9b37bcab0d451a0fdfaf7f8b5656bc783502821789489477e56e830dc26e
#include "StructuralInterface.h" StructuralInterface::StructuralInterface (StructuralEntity *parent) : StructuralEntity (parent) { setCategory (Structural::Interface); setStructuralType (Structural::NoType); setResizable (false); setTop (0); setLeft (0); setWidth (ST_DEFAULT_INTERFACE_W); setHeight...
C++
src/plugins/ncl-structural-view/view/StructuralInterface.cpp
TeleMidia/nclcomposer
lgpl-3.0
4,376
178
codeparrot/github-code
6088f2ab958578e0586419302893c0d27f0730f0c3eb72883418eca723ee97d5
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT 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 License...
Java
sonar-plugin-api/src/main/java/org/sonar/api/server/authentication/Display.java
Builders-SonarSource/sonarqube-bis
lgpl-3.0
3,286
108
codeparrot/github-code
14018d38afe3097aeb223240779244965339c3b158c74bb02072557db6c59793
<?php /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___...
PHP
src/thread/Worker.php
pmmp/PocketMine-MP
lgpl-3.0
2,040
67
codeparrot/github-code
e1d59b23360b51e43bb324d7ba251d7af11a778c5210d52fda1462db0dd540df
/* * SonarQube, open source software quality management tool. * Copyright (C) 2008-2014 SonarSource * mailto:contact AT sonarsource DOT com * * SonarQube 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 Found...
Java
server/sonar-server/src/main/java/org/sonar/server/computation/step/PersistFileSourcesStep.java
jblievremont/sonarqube
lgpl-3.0
8,521
211
codeparrot/github-code
62aabb02a2b870e7722ac6646022540d6bbc9402b17fcdf7694936bce44386f8
/*--- iGeo - http://igeo.jp Copyright (c) 2002-2013 Satoru Sugihara This file is part of iGeo. iGeo 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, version 3. iGeo is distri...
Java
IPoint.java
sghr/iGeo
lgpl-3.0
31,733
587
codeparrot/github-code
a544f763e3d15aa2d33e3b2e77c111d0b47a2cbd0faeee7c9524d3f8bbbed89e
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/ec2/createreservedinstanceslistingrequest_p.h
pcolby/libqtaws
lgpl-3.0
1,576
48
codeparrot/github-code
a9583754a8baeebe3c4ecc94cb0e4371b192de06b17708f8cc512f3db6d4a0e8
/* radare - LGPLv3 - Copyright 2014-2015 - pancake, jvoisin, jfrankowski */ #include <dirent.h> #include <r_core.h> #include <r_lib.h> #include <yara.h> #undef R_API #define R_API static #undef R_IPI #define R_IPI static // true if the plugin has been initialized. static int initialized = false; static bool print_s...
C
yara/yara/core_yara.c
radare/radare2-extras
lgpl-3.0
13,849
554
codeparrot/github-code
49be741b41a062d282fe15a1254436928b6df459ac3b42a4915012ca756cfd79
package org.yawlfoundation.yawl.worklet.client; import org.yawlfoundation.yawl.editor.ui.specification.SpecificationModel; import org.yawlfoundation.yawl.engine.YSpecificationID; import java.io.IOException; import java.util.Map; /** * @author Michael Adams * @date 18/02/2016 */ public class TaskIDChangeMap { ...
Java
source/org/yawlfoundation/yawl/worklet/client/TaskIDChangeMap.java
yawlfoundation/editor
lgpl-3.0
1,648
63
codeparrot/github-code
446b0ed4350b547a65ade3f846652e4cec709f4ed006f88fba9d2972b8b58280
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
C
Compile/CompileDependencies/ThirdParty/PhysX/PxShared/src/pvd/src/PxPvdMemClient.h
Bang3DEngine/Bang
lgpl-3.0
3,051
84
codeparrot/github-code
f9a06b477413f92c6b739fd49a27a30d01f1cc4d5b482ec2dafa9e98fc78d3dd
/** The GPL License (GPL) Copyright (c) 2012 Andreas Herz 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 the License, or (at your option) any later version. This pr...
JavaScript
server/static/js/graphiti/Connection.js
igemsoftware/SYSU-Software_2014
lgpl-3.0
16,767
651
codeparrot/github-code
0d546abad9c1a6b64c9a25024d94d6bcfcf25356e275e27839682add28700e43
/* Logic.h -- part of the VaRGB library. Copyright (C) 2013 Pat Deegan. http://www.flyingcarsandstuff.com/projects/vargb/ Created on: 2013-03-05 This library 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 F...
C
includes/Curves/Logic.h
psychogenic/VaRGB
lgpl-3.0
2,887
100
codeparrot/github-code
2d53e5c985c2be1e2f1b7ac2ea73520e5b86d6cb45142446a2c81d6c5895e213
package idare.imagenode.internal.GUI.DataSetController; import idare.imagenode.ColorManagement.ColorScalePane; import idare.imagenode.Interfaces.DataSets.DataSet; import idare.imagenode.Interfaces.Layout.DataSetLayoutProperties; import idare.imagenode.internal.GUI.DataSetController.DataSetSelectionModel.ColorPaneBox; ...
Java
METANODE-CREATOR/src/main/java/idare/imagenode/internal/GUI/DataSetController/DataSetSelectionTable.java
sysbiolux/IDARE
lgpl-3.0
3,145
100
codeparrot/github-code
756c3642bcbbbb1c501c74778fb86c72da69a3958bfb75972cb81a578a9dc4bd
/* Mesquite source code. Copyright 1997-2009 W. Maddison and D. Maddison. Version 2.7, August 2009. Disclaimer: The Mesquite source code is lengthy and we are few. There are no doubt inefficiencies and goofs in this code. The commenting leaves much to be desired. Please approach this source code with the spirit of ...
Java
releases/Mesquite2.7/Mesquite Project/Source/mesquite/lib/XMLUtil.java
MesquiteProject/MesquiteArchive
lgpl-3.0
7,607
202
codeparrot/github-code
51115d3a978115c13e6161ec9dd903b95af3ab474cd7f4adf4e52dee12acce1d
/* * XAdES4j - A Java library for generation and verification of XAdES signatures. * Copyright (C) 2010 Luis Goncalves. * * XAdES4j 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...
Java
src/main/java/xades4j/xml/marshalling/ToXmlUtils.java
entaksi/xades4j
lgpl-3.0
3,616
98
codeparrot/github-code
15695fba58ce34908edfe1388c2814e421d554214c70ed13045d6bc925a27baa
/* * This file is part of RskJ * Copyright (C) 2017 RSK Labs Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later...
Java
rskj-core/src/main/java/co/rsk/core/RskAddress.java
rsksmart/rskj
lgpl-3.0
3,619
134
codeparrot/github-code
81094a523a98497f9e42815f0cdcf89e11b242d2a5bda3c7e56038b398b9b71c
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C++
src/ecrpublic/deleterepositoryresponse.cpp
pcolby/libqtaws
lgpl-3.0
3,571
109
codeparrot/github-code
d57e57c2a437facfdbd19247825aafb3379bb6f362bab37fe451f8b9e9a8c0aa
#pragma once #include <type_traits> #include <limits> #include <utility> namespace sio { template<typename T> struct is_bit_enum: public std::false_type {}; template<typename Enum, std::enable_if_t<std::is_enum<Enum>{}, int> = 0> class bitfield { public: using integer = std::underlying_type_t<Enum>; private...
C++
include/sio/bitfield.hh
fknorr/sio
lgpl-3.0
2,838
122
codeparrot/github-code
7706d3fb9461fb71a60f7cb45ae4cf85c5e2918f1f2598c0390b193640e58e3f
package com.hyenawarrior.oldnorsedictionary.modelview.meaning_panel import android.app.Activity import android.view.{View, ViewGroup} import android.widget.{EditText, TextView} import com.hyenawarrior.oldnorsedictionary.R import com.hyenawarrior.oldnorsedictionary.modelview.{ClickListener, DynamicListView, EditTextTyp...
Scala
app/src/main/scala/com/hyenawarrior/oldnorsedictionary/modelview/meaning_panel/MeaningDefListView.scala
HyenaSoftware/IG-Dictionary
lgpl-3.0
2,563
71
codeparrot/github-code
fbc0d8a983a07414a1f5728309ada11b37773cc21a8664b976924320118d26bb
#include <bits/stdc++.h> using namespace std; #define DEBUG // comment this line to pull out print statements #ifdef DEBUG // completely copied from http://saadahmad.ca/cc-preprocessor-metaprogramming-2/ const char NEWLINE[] = "\n"; const char TAB[] = "\t"; #define EMPTY() #define DEFER(...) __VA_ARGS__ EMPTY() #d...
C++
uva/code/13287_cake.cc
mgavin/acm-code
lgpl-3.0
5,774
240
codeparrot/github-code
4c3fb8952cfcb084f8cf1311c906e26c01bd9258c558c203437c33188e0d00d1
# -*- coding: utf-8 -*- """ This module put my utility functions """ __author__ = "Jiang Yu-Kuan <yukuan.jiang@gmail.com>" __date__ = "2016/02/08 (initial version) ~ 2019/04/17 (last revision)" import re import os import sys #------------------------------------------------------------------------------ ...
Python
reslnk/myutil.py
YorkJong/pyResourceLink
lgpl-3.0
4,850
164
codeparrot/github-code
45d3ccece70070438ba449f84184f42ed0cd8108d808d889a6cabbd160d7a544
/** \file millionaire_prob.cpp \author sreeram.sadasivam@cased.de \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2019 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify ...
C++
src/examples/millionaire_prob/common/millionaire_prob.cpp
encryptogroup/ABY
lgpl-3.0
4,536
133
codeparrot/github-code
5e5abf6f58de423b5565b58880c51b3e7198f12c5daa30a6b5e68481827e640b
<?php /* dvdetect DVD detection, analysis & DVDETECT lookup library Copyright (C) 2013-2015 Norbert Schlia <nschlia@dvdetect.de> 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, eith...
PHP
php/inc/functions.submit.inc.php
nschlia/libdvdetect
lgpl-3.0
70,731
1,409
codeparrot/github-code
be52c86cfd4583cf27fd52b962f0ec2e03bced0ef26689f4cebfc52aa9462e95
/*********************************************************************** Copyright (c) 2006-2011, Skype Limited. All rights reserved. Redistribution and use in source and binary forms, with or without modification, (subject to the limitations in the disclaimer below) are permitted provided that the following con...
C
jni/silk/sources/SILK_SDK_SRC_FLP_v1.0.8/src/SKP_Silk_noise_shape_analysis_FLP.c
fingi/csipsimple
lgpl-3.0
18,214
383
codeparrot/github-code
db6ab5effd9d17df5888c445431258641911557a98a437c48dabd3efe20195a9
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace SharpGraphLib { public partial class LegendControl : UserControl { List<LegendLabel> _Labels = new List<LegendLabel...
C#
SharpGraphLib/LegendControl.cs
sysprogs/SharpGraphLib
lgpl-3.0
7,119
232
codeparrot/github-code
d94e0483b82ceb4707037038bded36198f9a0b55a65278e3f956e4687d141fc8
//============================================================================ // I B E X // File : ibex_DoubleHeap.h // Author : Gilles Chabert, Jordan Ninin // Copyright : IMT Atlantique (France) // License : See the LICENSE file //...
C
src/tools/ibex_DoubleHeap.h
ibex-team/ibex-lib
lgpl-3.0
10,710
423
codeparrot/github-code
fa96b9c2d76e1cbe1e6f0e4f06cfec2863f70cc57360b3faca5133136501b766
/** * Premium Markets is an automated stock market analysis system. * It implements a graphical environment for monitoring stock markets technical analysis * major indicators, for portfolio management and historical data charting. * In its advanced packaging -not provided under this license- it also includes : * S...
Java
premiumMarkets/pm-core/src/main/java/com/finance/pms/events/pounderationrules/LatestNoYoYoValidatedPonderationRule.java
premiummarkets/pm
lgpl-3.0
4,010
104
codeparrot/github-code
296110061d741cffefcfa92a496efd2d1b6ef309f5c36d231f690ee9dd9890ef
/** * * This file is part of Disco. * * Disco 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. * * Disco is distributed ...
Java
samples/cloudml/controller/src/main/java/eu/diversify/disco/cloudml/Options.java
DIVERSIFY-project/disco
lgpl-3.0
3,917
126
codeparrot/github-code
eb180f4e18bfa1d239432d68d9668588b4dca841e43e8390d08ba44ad48eec57
using iTextSharp.text; namespace PdfRpt.VectorCharts { /// <summary> /// BarChartItem /// </summary> public class BarChartItem { /// <summary> /// BarChartItem /// </summary> public BarChartItem() { } /// <summary> /// BarChartItem /...
C#
Lib/VectorCharts/BarChartItem.cs
VahidN/PdfReport
lgpl-3.0
1,533
57
codeparrot/github-code
c4789e37e69d514ae64621c97b362f0163364a21cd336c7e07307d523c122e53
/** * */ package com.sirma.itt.emf.authentication.sso.saml.authenticator; import java.nio.charset.StandardCharsets; import java.util.Map; import javax.crypto.SecretKey; import javax.enterprise.inject.Instance; import javax.inject.Inject; import org.apache.commons.codec.binary.Base64; import org.apache.commons.lang...
Java
docker/sirma-platform/platform/seip-parent/extensions/emf-sso-saml/src/main/java/com/sirma/itt/emf/authentication/sso/saml/authenticator/SystemUserAuthenticator.java
SirmaITT/conservation-space-1.7.0
lgpl-3.0
5,864
144
codeparrot/github-code
8ce016722de29b84d32532199fb082850ad6869b1d2a53fe0addbe77127c6ec0
#include <cstdio> #include <iostream> #include <vector> #include <cstring> #include <cstdlib> #include <cmath> using namespace std; #define DEBUG #undef DEBUG //uncomment this line to pull out print statements #ifdef DEBUG #define TAB '\t' #define debug(a, end) cout << #a << ": " << a << end #else #define debug(a, en...
C++
uva/code/356_pegsnholes.cpp
mgavin/acm-code
lgpl-3.0
2,379
111
codeparrot/github-code
e8b0c731000e4d6c67f37df21a9da9c4eab700c8666307edd41fa700ef28d5c5
/* Copyright 2013-2021 Paul Colby This file is part of QtAws. QtAws 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 v...
C
src/sqs-old/sqspurgequeueresponse_p.h
pcolby/libqtaws
lgpl-3.0
1,298
49
codeparrot/github-code
08bbe12812e3799ac957d4eebc2254591dba8c5854e51261f43e61fdf87d5069
<?php if (file_exists('../libcompactmvc.php')) include_once ('../libcompactmvc.php'); LIBCOMPACTMVC_ENTRY; /** * Mutex * * @author Botho Hohbaum <bhohbaum@googlemail.com> * @package LibCompactMVC * @copyright Copyright (c) Botho Hohbaum * @license BSD License (see LICENSE file in root directory) * @link ...
PHP
include/libcompactmvc/mutex.php
bhohbaum/libcompactmvc
lgpl-3.0
4,191
125
codeparrot/github-code
8aa2d66453ab97e709cf7be41a79616ea4ae938411b14d294d45b4f361ad5232
if (WIN32) if (MSVC71) set (COMPILER_SUFFIX "vc71") set (COMPILER_SUFFIX_VERSION "71") endif(MSVC71) if (MSVC80) set (COMPILER_SUFFIX "vc80") set (COMPILER_SUFFIX_VERSION "80") endif(MSVC80) if (MSVC90) set (COMPILER_SUFFIX "vc90") set (COMPILER_SUFF...
CMake
cmake/modules/find_compiler.cmake
vrsys/avango
lgpl-3.0
1,739
61
codeparrot/github-code
d69f7ac4815b9018429241fb0c8908e84246eacf580c14e25b4ca35ca41006db
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Copyright (c) 2015-2020 The plumed team (see the PEOPLE file at the root of the distribution for a list of names) See http://www.plumed.org for more information. This file is part of plumed, version 2. plumed is free software...
C++
src/generic/DumpMassCharge.cpp
PabloPiaggi/plumed2
lgpl-3.0
5,635
202
codeparrot/github-code
16913af61b3eb613d7cb966312815b5e2c090b1ba23418f7ae7cbab9827ad5cc
// // Copyright 2012 Josh Blum // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distr...
C++
lib/tsbe_impl/element_impl.hpp
guruofquality/tsbe
lgpl-3.0
1,398
57
codeparrot/github-code
31d5e2eb84a3e959a89723d18e84845a189e6b7f5b82177e350d3bb03fefa07a
package org.molgenis.lifelines.catalog; import nl.umcg.hl7.service.studydefinition.POQMMT000002UVObservation; import org.molgenis.omx.catalogmanager.OmxCatalogFolder; import org.molgenis.omx.observ.Protocol; public class PoqmObservationCatalogItem extends OmxCatalogFolder { private final POQMMT000002UVObservation o...
Java
src/main/java/org/molgenis/lifelines/catalog/PoqmObservationCatalogItem.java
dennishendriksen/molgenis-lifelines
lgpl-3.0
972
44
codeparrot/github-code
ed432b1a74384241e6d1e6097d73a1d79373d61af3425e4c20ff5d6295beed78
/* * SonarQube Lua Plugin * Copyright (C) 2016 * mailto:fati.ahmadi AT gmail DOT 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 License, or (at y...
Java
lua-checks/src/test/java/org/sonar/lua/checks/TableComplexityCheckTest.java
SonarQubeCommunity/sonar-lua
lgpl-3.0
1,600
46
codeparrot/github-code
f15cdb83dfceeb0debb364658156490756d252305368047acdfd5b1842115477
/* * partition.h -- a disjoint set of pairwise equivalent items * * Copyright (c) 2007-2010, Dmitry Prokoptsev <dprokoptsev@gmail.com>, * Alexander Gololobov <agololobov@gmail.com> * * This file is part of Pire, the Perl Incompatible * Regular Expressions library. * * Pire is free soft...
C
pire/partition.h
starius/pire
lgpl-3.0
5,239
188
codeparrot/github-code
7ebbbe6dff7a7ce7aee46da2943da0aa42b628208e658ab8a4a9496db30da314
#!/usr/bin/python # -*- coding: utf-8 -*- "Visual Property Editor (using wx PropertyGrid) of gui2py's components" __author__ = "Mariano Reingart (reingart@gmail.com)" __copyright__ = "Copyright (C) 2013- Mariano Reingart" __license__ = "LGPL 3.0" # some parts where inspired or borrowed from wxFormBuilders & wxPython...
Python
gui/tools/propeditor.py
reingart/gui2py
lgpl-3.0
12,658
296
codeparrot/github-code
2c091342ab81bfe16897a6174df54119ec4b16b62a4e47cafeac8094638b3f2e
#!/usr/bin/python3 import sys from pathlib import Path list_scope_path = Path("./list_scope_tokens.txt") keyword_bit = 13 list_scope_bit = 14 def main(): if len(sys.argv) < 2: print("Error: Must specify an argument of either 'tokens' or 'emitters'!", file=sys.stderr) return 1 list_scopes = set() with list_s...
Python
src/zck/token_codegen.py
zijistark/zckTools
lgpl-3.0
1,078
45
codeparrot/github-code
c81eebc411f67e11b25f35b188148e7ed85394f21fb13f9193f99bcc77fcad0c
package com.faralot.core.ui.fragments; import android.app.Activity; import android.app.AlertDialog.Builder; import android.app.Fragment; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.os.Bundle; import android.provider.Media...
Java
app/src/main/java/com/faralot/core/ui/fragments/LocationAddSelectFragment.java
bestog/faralot-core
lgpl-3.0
9,954
269
codeparrot/github-code
40aaec6b9da981de0e6d77829e82564c9030d3909a174fd9fb8aeac8d219aeb0
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2016 Pelican Mapping * http://osgearth.org * * osgEarth 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; ...
C++
src/osgEarthFeatures/FeatureDisplayLayout.cpp
ldelgass/osgearth
lgpl-3.0
4,505
153
codeparrot/github-code
2de0333b48a6facf31f457b40b265bdf2ab8eba41a818cf3508bb8fa85ade8be
package de.riedquat.java.io; import de.riedquat.java.util.Arrays; import org.junit.Test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import static de.riedquat.java.io.Util.copy; import static de.riedquat.java.util.Arrays.EMPTY_BYTE_ARRAY; import static org.j...
Java
WebServer/test/de/riedquat/java/io/UtilTest.java
christianhujer/japi
lgpl-3.0
934
34
codeparrot/github-code
c48a7d86afc497120adfda2a2010b93776a9419fa923ab87da2800e0dc4976af
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2014 Pelican Mapping * http://osgearth.org * * osgEarth 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; e...
C++
src/applications/osgearth_manip/osgearth_manip.cpp
Riorlan/osgearth
lgpl-3.0
15,525
449
codeparrot/github-code
5475beb92b4848e6c8620a2aeec6e2eafd37d5880205e568b169ac37cfc62927
package com.darkona.adventurebackpack.inventory; import com.darkona.adventurebackpack.common.IInventoryAdventureBackpack; import com.darkona.adventurebackpack.init.ModBlocks; import com.darkona.adventurebackpack.item.ItemAdventureBackpack; import com.darkona.adventurebackpack.util.Utils; import net.minecraft.entity.pl...
Java
src/main/java/com/darkona/adventurebackpack/inventory/SlotBackpack.java
Mazdallier/AdventureBackpack2
lgpl-3.0
1,030
36
codeparrot/github-code
f847c4af8f434b2eaf9495fdea96a76abdda467be70765cdb45f9466ac13d588
// // BitWiseTrie.hpp // Scissum // // Created by Marten van de Sanden on 12/1/15. // Copyright © 2015 MVDS. All rights reserved. // #ifndef BitWiseTrie_hpp #define BitWiseTrie_hpp #include <vector> //#include <iostream> #include <cstring> #define __SCISSUM_BITWISE_TRIE_USE_ZERO_TABLE 1 namespace scissum { ...
C++
src/utils/BitWiseTrie2.hpp
mvdsanden/scissum
lgpl-3.0
2,583
106
codeparrot/github-code
00558217b9d7ba44fb16f55e5b2370047b4035b3022ecbd4b1c364737134579d
/** *×÷Õß:Âé²Ë *ÈÕÆÚ:2013Äê6ÔÂ20ÈÕ *¹¦ÄÜ:×Ô¶¨ÒåÑÕɫѡÔñ¶ÔÏó,´ÓQColorDialogÀàÖÐÌáÈ¡ÖØÐ·â×°.½ö±£Áôͨ¹ýÊó±êpickÌáÈ¡ÑÕÉ«µÄ¿Ø¼þ *˵Ã÷:¿ªÔ´,Ãâ·Ñ,ʹÓÃʱÇë±£³Ö¿ªÔ´¾«Éñ. *ÁªÏµ:12319597@qq.com *²©¿Í:www.newdebug.com **/ #include "colorshowlabel.h" #include <QApplication> #include <QPainter> #include <QMimeData> #inc...
C++
Qt/YviColorDialog/colorshowlabel.cpp
newdebug/NewDebug
lgpl-3.0
1,536
64
codeparrot/github-code
1286f1236c0e7199c2c14a60ad0cd1cc6f2897ed0742bb4a265a9b044638d95b
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Harnet.Net { public class Request { #region Properties /// <summary> /// Request method (GET, POST, ...). /// </summary> public string M...
C#
harnet/Net/Request.cs
acastaner/harnet
lgpl-3.0
4,472
131
codeparrot/github-code
92d1ab719740e89cfd1b8b0d8a19661b4451b05d28f639eb705cf1617a2c260b
// Copyright (C) 2013 Columbia University in the City of New York and others. // // Please see the AUTHORS file in the main source directory for a full list // of contributors. // // This file is part of TerraFERMA. // // TerraFERMA is free software: you can redistribute it and/or modify // it under the terms of the GN...
C++
buckettools/cpp/SemiLagrangianExpression.cpp
TerraFERMA/TerraFERMA
lgpl-3.0
13,110
338
codeparrot/github-code
c9e2589057def7caf5c4d50b6a4d3447a7a90da34982ad3cc6eb669e95ef7a2e
#include "util/checksum.hpp" namespace trillek { namespace util { namespace algorithm { static uint32_t crc32_table[256]; static bool crc32_table_computed = false; static void GenCRC32Table() { uint32_t c; uint32_t i; int k; for(i = 0; i < 256; i++) { c = i; for(k = 0; k < 8; k++) { ...
C++
src/util/checksum.cpp
trillek-team/trillek-common
lgpl-3.0
2,639
99
codeparrot/github-code
c2289c8867c046367b7ab73f530dc9f7d72afbe2612e7d502e9fbf708ce2fb4c
/* * Copyright (C) 2011-2020 goblinhack@gmail.com * * See the LICENSE file for license. */ #include "my_main.h" #include "my_thing_tile.h" #include "my_time_util.h" #include "my_wid.h" void wid_animate (widp w) {_ if (!w->animate) { return; } tpp tp = wid_get_thing_template(w); if (!tp) ...
C++
src/wid_anim.cpp
goblinhack/goblinhack2
lgpl-3.0
1,949
109
codeparrot/github-code
6257b1b24e740964d85507d5d986de500f03ec506c43e9376bc67bf53e8973f5
/******************************************************************************* * Copyright (c) 2014 Open Door Logistics (www.opendoorlogistics.com) * 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 d...
Java
com.opendoorlogistics.core/src/com/opendoorlogistics/core/scripts/execution/dependencyinjection/DependencyInjector.java
PGWelch/com.opendoorlogistics
lgpl-3.0
2,349
38
codeparrot/github-code
2455e03d7e71655f2dec37fb0c842fb04764435cd55161337a1d0cd93c240e7f
/****************************************************************************** * Copyright (c) 2014-2015 Leandro T. C. Melo (ltcmelo@gmail.com) * * This library 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...
C++
src/plugins/uaisoeditor/uaisosettings.cpp
ltcmelo/qt-creator
lgpl-3.0
6,458
206
codeparrot/github-code
a9fe8d19c73ba3660a0cc4135da176cbcf3b77a26cca2fd92f016a4c6355a7d4
/**************************************************************************** ** ** Copyright (C) 2014-2018 Dinu SV. ** (contact: mail@dinusv.com) ** This file is part of Live CV Application. ** ** GNU Lesser General Public License Usage ** This file may be used under the terms of the GNU Lesser ** General Public Licen...
C++
lib/lveditqmljs/src/qmllibrarydependency.cpp
livecv/livecv
lgpl-3.0
2,596
83
codeparrot/github-code