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
a09c2b88ba18565dff7d7b720d2dbd81547908b7312f62cc13c3010302f4eb63
#include <iostream> #include "eastwood/StdDef.h" #include "eastwood/Exception.h" #include "eastwood/FntFile.h" #include "eastwood/IStream.h" #include "eastwood/Log.h" namespace eastwood { struct FNTHeader { uint16_t fsize; /* Size of the file */ uint16_t unknown1; /* Unknown entry (always 0x...
C++
src/FntFile.cpp
OmniBlade/libeastwood
gpl-3.0
3,761
121
codeparrot/github-code
a228e93da53fbfdda1ce15bbf3f99c9379061f5c8ac469746238c26a1687f659
<?php /** * contest utilities * * @author Torben Brodt * @copyright 2010 easy-coding.de * @license GNU General Public License <http://opensource.org/licenses/gpl-3.0.html> * @package de.easy-coding.wcf.contest */ class ContestUtil { /** * for singleton usage of assignVariablesBranding * @var boolean */ ...
PHP
de.easy-coding.wcf.contest/files/lib/util/ContestUtil.class.php
torbenbrodt/contest-wcf
gpl-3.0
1,633
59
codeparrot/github-code
678c435b7874c7e07a238bcf887fc74bcb9ce8c17a0af09df0a43f10d8f6b9b9
package com.mao.widget; import android.R.integer; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.SweepGradient; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; /** * 颜色选...
Java
EasyWord/src/com/mao/widget/ColorPickerView.java
dolpphins/EasyWord
gpl-3.0
4,973
205
codeparrot/github-code
3632624f5d29a017d00905b3a0ae6d3e0063a86b6f2e2157ea63d97e2a40110b
import json from django.http import HttpResponse from django.contrib.auth.models import User from django.shortcuts import get_object_or_404 from apps.exercises.models import Attempts from apps.maps.models import Graphs from apps.ki.utils import performInference from apps.research.utils import getParticipantByUID, st...
Python
server/apps/ki/views.py
danallan/octal-application
gpl-3.0
1,125
32
codeparrot/github-code
079a8ec8db508321f81490fa858083432413b5969a18412055cec28ff4825aad
// /////////////////////////////////////////////////////////////////// // This file is a part of EasyFarm for Final Fantasy XI // Copyright (C) 2013 Mykezero // // EasyFarm is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Soft...
C#
EasyFarm/Parsing/AbilityMapper.cs
EasyFarm/EasyFarm
gpl-3.0
4,139
95
codeparrot/github-code
f6d0296542a5fc3c5d87744b3825edbb7d69213323cf9393f6f19ee1a7e3aa14
/** Definition of the class Shoot * Prefix: CSH_ * @author Ramon Molla * @version 2011-11 */ #ifndef CSH_SHOOT #define CSH_SHOOT #include "Character.h" #include "Quadtree.h" #include "QuadtreeRoot.h" /** * \typedef CSH_SHOOT_TYPE * Different types of shoots that can be active at any moment while playing the game *...
C
include/Shoot.h
chverma/IPV_SpaceInvaders
gpl-3.0
2,270
81
codeparrot/github-code
310770cfbac54ca27ed763e64ee841bc075698ad128435712a93db2770dd73f9
package nth.reflect.app.swdocgen.dom.page.web; import java.util.List; import org.jsoup.nodes.DataNode; import org.jsoup.nodes.Document; import org.jsoup.nodes.DocumentType; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.select.Elements; import nth.reflect.app.swdocgen.dom.do...
Java
SoftwareDocumentationGenerator/src/main/java/nth/reflect/app/swdocgen/dom/page/web/FancyWebPage.java
ntenhoeve/Introspect-Apps
gpl-3.0
6,217
173
codeparrot/github-code
951765833817f4129bc6fd6658cde9a7b0dea2850f510a4d48d8a54976dc3028
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
C++
src/ode/src/joints/transmission.cpp
jazztickets/irrlamb
gpl-3.0
22,776
699
codeparrot/github-code
69119eeecd300a17030fc76443f387e519b3b717e1537024554ef5222d57ca32
package edu.berkeley.cs.nlp.ocular.data.textreader; import static edu.berkeley.cs.nlp.ocular.data.textreader.Charset.TILDE_COMBINING; import static edu.berkeley.cs.nlp.ocular.data.textreader.Charset.TILDE_ESCAPE; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org...
Java
src/test/java/edu/berkeley/cs/nlp/ocular/data/textreader/CharIndexerTests.java
tberg12/ocular
gpl-3.0
1,993
76
codeparrot/github-code
092fb2f8cef738be036d1e0189eddfa60cbf0a68b0adc63e8d6fd8b2bdc8ca19
import React from "react"; import { composeWithTracker } from "@reactioncommerce/reaction-components"; import { Template } from "meteor/templating"; import { Roles } from "meteor/alanning:roles"; import { Reaction } from "/client/api"; /** * Push package into action view navigation stack * @param {SyntheticEvent} e...
JavaScript
imports/plugins/core/dashboard/client/containers/packageListContainer.js
anthonybrown/reaction
gpl-3.0
2,174
82
codeparrot/github-code
129a9881f37778fd92fbc8b7611b749d8800a6d68eaf9279f4b63ea0fc394429
package org.beynet.jnote.gui.dialogs; import javafx.scene.Group; import javafx.scene.Scene; import javafx.stage.Stage; import org.beynet.jnote.gui.Styles; /** * Created with IntelliJ IDEA. * User: beynet * Date: 12/10/13 * Time: 15:49 * To change this template use File | Settings | File Templates. */ public abs...
Java
src/main/java/org/beynet/jnote/gui/dialogs/Dialog.java
beynet/jnote
gpl-3.0
1,381
57
codeparrot/github-code
314b400fb8f5a7156f0955d1e85a60c9e4c7243c7657564567ec854e8aa09770
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $wpdb; // Get the payment gateway $payment_gateway = wc_get_payment_gateway_by_order( $order ); // Get line items $line_items = $order->get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) ); $line_i...
PHP
includes/admin/meta-boxes/views/html-order-items.php
Jandersolutions/woocommerce
gpl-3.0
17,065
368
codeparrot/github-code
a0f910403fcbe397bcdd9101444800c9d5486f3a49541b5cc37e151eb00c0c69
/* * * 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 program is distributed in the hope t...
C
rehlds/engine/net.h
WPMGPRoSToTeMa/rehlds
gpl-3.0
11,001
403
codeparrot/github-code
1568efd60fecb114f76faa4cd7d35a0a6e7004e27df8d242bc0f4ba7d315a25d
/* * ViewerJTable.java Copyright (C) 2021. Daniel H. Huson * * (Some files contain contributions from other authors, who are then mentioned separately.) * * 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 S...
Java
src/megan/viewer/gui/ViewerJTable.java
danielhuson/megan-ce
gpl-3.0
13,815
382
codeparrot/github-code
c1d81444e9a7764fd3377c6b03c07e0412aa0ea859728418c669757132678c03
/* # Copyright (C) 2005-2011 MaNGOS <http://www.getmangos.com/> * # Copyright (C) 2008-2011 Trinity <http://www.trinitycore.org/> * # Copyright (C) 2010-2011 DarkmoonCore <http://www.darkmooncore.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gener...
C++
src/server/worldserver/RemoteAccess/RARunnable.cpp
DarkmoonCore/DarkmoonCore-Cataclysm
gpl-3.0
2,619
98
codeparrot/github-code
777e7a54dc76fcaf3a861d6e383d5fa521b5fe23d13e07f4540c203539734e86
package org.codehaus.jackson.map.ser; import org.codehaus.jackson.map.SerializerFactory.Config; import org.codehaus.jackson.map.Serializers; import org.codehaus.jackson.map.util.ArrayBuilders; public class BeanSerializerFactory$ConfigImpl extends SerializerFactory.Config { protected static final BeanSerializerModif...
Java
apk/classes-ekstartk/org/codehaus/jackson/map/ser/BeanSerializerFactory$ConfigImpl.java
isnuryusuf/ingress-indonesia-dev
gpl-3.0
2,927
77
codeparrot/github-code
d14edea071319d3bd5d07378665e47b95c59ee9605da47b0694b19bcc719fa98
<?php /* * This file is part of the Claroline Connect package. * * (c) Claroline Consortium <consortium@claroline.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Claroline\CoreBundle\Command\Dev; use Symfony\Bundl...
PHP
Command/Dev/TranslationCheckerCommand.php
arnaudbey/CoreBundle
gpl-3.0
2,257
69
codeparrot/github-code
9d8880d5c053d7f2e5fa930acd23b7ae64f159fe3ff22c71447bd567bd8c236a
#!/usr/bin/python # Copyright (C) 2009 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 require...
Python
cts/tools/utils/buildCts.py
s20121035/rk3288_android5.1_repo
gpl-3.0
16,411
431
codeparrot/github-code
3ebdaf169a5668c1df837a418b1cdac9f494bc7bfcdf8dfabb1f967b2c2dde54
#!/usr/bin/env python #-*- coding: utf-8 -*- ''' # This file is part of Matching Pursuit Python program (python-MP). # # python-MP 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 ...
Python
data/signalGenerator.py
tspus/python-matchingPursuit
gpl-3.0
6,621
200
codeparrot/github-code
dd71c5f6ab59e3b353a01dc29da88398c31137854ba249f91f4ccc030ce44227
/* Copyright (c) 2014, André V. Perrotta All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
C++
psPlayground-Xcode/src/psPlaygroundManager.cpp
avperrotta/psPlayground
gpl-3.0
11,037
316
codeparrot/github-code
84a3a47788582f7cd635832a61e378f329219fce5ccb03b7e736a092cf20daee
using System; using System.Collections.Generic; using System.Text; using System.IO; using DotNetLibrary; namespace Server_chiruclande_Cessenger { class Logging { private SimpleLogging log; private int current_day = DateTime.Now.DayOfYear; private string _basename, _prefix, _suffix; ...
C#
(Server) chiruclan.de Cessenger/Logging.cs
ChiruclanDE/Cessenger
gpl-3.0
4,776
142
codeparrot/github-code
31ad7e252c5e7663b243db6e88dc105f13c64c8ea77274e77b1b62f0e85ccdad
/** * Copyright (C) 2010-2016 Structr GmbH * * This file is part of Structr <http://structr.org>. * * Structr is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, o...
Java
structr-modules/structr-signed-jar-module/src/main/java/org/structr/jar/CreateJarFileFunction.java
derkaiserreich/structr
gpl-3.0
14,384
438
codeparrot/github-code
94eff03c318d88a647bfe52fc53366c3974dfb4582560c2c89f33075a8617032
export class Timer { /** * diff 2 `Date` in Millisecond * @param {Date} since * @param {Date} until */ static diff(since, until) { return (until.getTime() - since.getTime()); } constructor() { /** time elapsed in millisecond */ this.sum = 0; this.runn...
JavaScript
src/main/mpris/timer.js
Rocket1184/electron-netease-cloud-music
gpl-3.0
1,347
63
codeparrot/github-code
404d9bb2bd1275608f7ccb44f8cc3b55401823728c9cf5da964fe53bda8ff759
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2007-2011 Tualatrix Chou <tualatrix@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 2 of the License, ...
Python
backends/youker-assistant-daemon/src/beautify/common.py
wzguo/youker-assistant
gpl-3.0
6,224
186
codeparrot/github-code
ab86c486291a642119473e62b33e1f37fbe292d1470d542c8313963d85dd5d37
/* QuickLook plugin for PVR images Copyright (C) 2008 atPurpose 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...
C
src/PvrUncrush/GenerateThumbnailForURL.c
mbellmont/atPeek
gpl-3.0
3,373
104
codeparrot/github-code
10f0aac07dab5ef3accc49f40753870f3043e45106ec55e40c0a334d79b75240
#include "ArgumentRule.h" #include "ArgumentRules.h" #include "MetropolisHastingsMove.h" #include "Move_DiscreteEventCategoryRandomWalk.h" #include "DiscreteEventCategoryRandomWalkProposal.h" #include "RbException.h" #include "RealPos.h" #include "RlTimeTree.h" #include "TypedDagNode.h" #include "TypeSpec.h" using na...
C++
src/revlanguage/moves/tree/Move_DiscreteEventCategoryRandomWalk.cpp
wrightaprilm/revbayes
gpl-3.0
4,882
176
codeparrot/github-code
34cfbe502ddfac33a6313a41ceb6cc4622aa1f3e34846e69a3dfb43cad198b4e
/* * OpenSplice DDS * * This software and documentation are Copyright 2006 to 2013 PrismTech * Limited and its licensees. All rights reserved. See file: * * $OSPL_HOME/LICENSE * * for full copyright notice and license terms. * */ #ifndef GAPI_GENERICCOPYBUFFER...
C
src/api/dcps/gapi/code/gapi_genericCopyBuffer.h
SanderMertens/opensplice
gpl-3.0
1,208
51
codeparrot/github-code
bc6aa0230756fce832561fd7195fe257b79bac25d5abe22d5563082a5339c5e1
package ch.fhnw.iml.ast import scala.util.parsing.input.Positional case class AST(val root: ProgramNode) trait Node extends Positional /* programs */ case class ProgramNode(i: Ident, cps: CpsDecl, cmd: BlockCommand, symbols: SymbolTable) extends Node /* Commands */ sealed abstract class Command extends Node case c...
Scala
compiler/src/main/scala/ch/fhnw/iml/ast/AST.scala
fluescher/iml-compiler
gpl-3.0
6,167
157
codeparrot/github-code
32eb3ca5aceea3ad54a65064181901a04556d8a3628271da4dcc4599fc74baf7
# -*- coding: utf-8 -*- # # Copyright (C) 2005, TUBITAK/UEKAE # # 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. # # Plea...
Python
pisi/exml/autoxml.py
examachine/pisi
gpl-3.0
31,161
851
codeparrot/github-code
ceb69e664ea35cb8a063517bc370808b16b4a8e602b388837a9b69588916d873
<?php namespace Project; class ArrayObjectWrapper implements \Iterator, \JsonSerializable { protected $array = []; public function __construct($array = NULL) { if ($array !== NULL) { if ($array instanceof ArrayObjectWrapper) { $array = $array->getArray(); } $this->array = $array; ...
PHP
src/ArrayObjectWrapper.php
robballou/project
gpl-3.0
3,106
151
codeparrot/github-code
505df0684be294e6e9fea23794d082ea4aebb90190cd390625d91ba7174238bb
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
Java
natrolite-api/src/main/java/org/natrolite/text/Text.java
natrolite/natrolite
gpl-3.0
30,695
1,027
codeparrot/github-code
c9bc3e339dd2b315acba8acbb009898a7f28274c906f49144088d11c32f45d32
/* * db.cpp * * Created on: Jul 20, 2012 * Author: lion */ #include "object.h" #include "ifs/db.h" #include "ifs/Buffer.h" namespace fibjs { DECLARE_MODULE(db); result_t db_base::open(exlib::string connString, obj_ptr<object_base>& retVal, AsyncEvent* ac) { if (!qstrcmp(connString.c_str(), "mysql:", ...
C++
fibjs/src/db/db.cpp
onceyoung/fibjs
gpl-3.0
5,653
228
codeparrot/github-code
e455cef8d05eaf65ceff6918df7f284f4bf962a417a811d883da06223c683974
//--- Aura Script ----------------------------------------------------------- // Barri Dungeon //--- Description ----------------------------------------------------------- // Barri router and script for Barri Normal. //--------------------------------------------------------------------------- [DungeonScript("bangor_...
C#
system/scripts/dungeons/bangor_barri_dungeon.cs
Hyddwn/HyddwnServer
gpl-3.0
4,455
138
codeparrot/github-code
ad6b4303e6753bfe44d9431334f3c88f58666b963b0108489d7a848c885dd194
package net.malariagen.gatk.walker; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.PriorityQueue; import org.broadinstitute.sting.gatk.contexts.ReferenceContext; import org.broadinstitute.sting.utils.GenomeLoc; publi...
Java
src/java/main/net/malariagen/gatk/walker/MultiWindowSequenceComplexity.java
vruano/maltools
gpl-3.0
4,383
149
codeparrot/github-code
4f3c5f5552cf97271ce5aedbbca611e679571683d1e7072714b4870c61569dd5
package edu.cwru.sepia.agent.planner; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import edu.cwru.sepia.action.Action; import edu.cwru.sepia.action.ActionResult; import ed...
Java
SepiaAgents/src/edu/cwru/sepia/agent/planner/CompoundActionPlanner.java
timernsberger/sepia
gpl-3.0
3,185
106
codeparrot/github-code
f463ce5296fdcac5ce56f9447c5b1f40f2090e67cd13a32ec8a9d9e357919e76
/* * @brief llib zpaq cpp header * @author (c) Nicolas Provost 2012-2014 */ /* * 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 l...
C
src/arc/zpaq/llib_zpaq_x.h
doronic/llib
gpl-3.0
10,367
277
codeparrot/github-code
dc399e44af662c807c310ae8be08531bb89e2cba603ab4b225051dc7188bf643
/* ------------------------------------------------------------- Copyright (c) MMXIII Atle Solbakken atle@goliathdns.no ------------------------------------------------------------- This file is part of P* (P-star). P* is free software: you can redistribute it and/or modify it under the terms of the GNU General Pu...
C++
src/libwpl/value_post.cpp
geirda/P-star
gpl-3.0
4,449
176
codeparrot/github-code
b52860a72c951b2c70b21b9f25d1045eddb61ffb62ea61834f400038850bdde3
/* * Copyright (C) 2018 Me and My Shadow * * This file is part of Me and My Shadow. * * Me and My Shadow 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 o...
C++
src/SceneryLayer.cpp
acmepjz/meandmyshadow
gpl-3.0
5,200
209
codeparrot/github-code
25b2927e6037de3f54ebf9ead07add6fb737ed1df102a230f1d36d20451666c8
/* $Id: ClpNode.hpp 2385 2019-01-06 19:43:06Z unxusr $ */ // Copyright (C) 2008, International Business Machines // Corporation and others. All Rights Reserved. // This code is licensed under the terms of the Eclipse Public License (EPL). #ifndef ClpNode_H #define ClpNode_H #include "CoinPragma.hpp" // This impleme...
C++
src/Clp-1.17.3/Clp/src/ClpNode.hpp
FlyingOE/simplex.q
gpl-3.0
9,006
365
codeparrot/github-code
c5262f5ebe2896aea74ed6ebbd6bf6ad674dcd28602de2d8386625026cd6999a
#ifndef MESSAGEPROCESSOR_H #define MESSAGEPROCESSOR_H #include <interfaces/ipluginmanager.h> #include <interfaces/imessageprocessor.h> #include <interfaces/ixmppstreammanager.h> #include <interfaces/istanzaprocessor.h> #include <interfaces/iservicediscovery.h> #include <interfaces/inotifications.h> class Me...
C
src/plugins/messageprocessor/messageprocessor.h
RoadWorksSoftware/eyecu-qt
gpl-3.0
5,039
107
codeparrot/github-code
79969539989ed65699c03ad1800dbb91ca9b2a593b574fa6cab8b36b031477fc
#ifndef XTRAS_IO_INPUTFILE_HPP_ #define XTRAS_IO_INPUTFILE_HPP_ #include <xtras/io/File.hpp> #include <xtras/utils/static.hpp> #include <xtras/utils/demangle.hpp> #include <optional> namespace xtras { namespace io { template<typename DerivedT, typename StreamT, std::ios_base::openmode OpenModeV> class InputFile : pu...
C++
src/xtras/io/InputFile.hpp
witosx/rafalw
gpl-3.0
2,215
102
codeparrot/github-code
ed1d772457d29ec5512105818284953399f3eb27e833705ff22341ab21e274bc
// Copyright 2012-2014 Matthew Karcz // // This file is part of The Rediscovered Mod. // // The Rediscovered Mod 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, ...
Java
source/main/RediscoveredMod/EntityMountableBlock.java
Stormister/Rediscovered-Mod-1.6.4
gpl-3.0
3,651
127
codeparrot/github-code
05e8b53b89bb802dccb5b511f805413d5313d386faa787956d68b9f8db3b2f70
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\themes\candidate; use yii\web\AssetBundle; /** * * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ class BaseAsset extends AssetBundle { ...
PHP
themes/candidate/BaseAsset.php
hassiumsoft/hasscms-app
gpl-3.0
1,458
60
codeparrot/github-code
3f1445660de137d94190b52554e20079dd8815d98425e43ff3b1bc6e1c60bc15
# urllib3/util.py # Copyright 2008-2012 Andrey Petrov and contributors (see CONTRIBUTORS.txt) # # This module is part of urllib3 and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from __future__ import absolute_import from base64 import b64encode from socket import error as So...
Python
core/backports/urllib3_python25/util.py
ryfx/modrana
gpl-3.0
11,071
383
codeparrot/github-code
ebcf23fbe275ee4f41347eed6ab31dfc1848a47a2d9b2df1e1d294a817b2d527
package nl.taico.tekkitrestrict; //import net.minecraft.server.TileEntity; //import net.minecraft.server.WorldServer; import nl.taico.tekkitrestrict.Log.Warning; import nl.taico.tekkitrestrict.TRConfigCache.Listeners; import nl.taico.tekkitrestrict.commands.TRCmdOpenAlc; import nl.taico.tekkitrestrict.commands.TRCmdO...
Java
TekkitRestrict/src/nl/taico/tekkitrestrict/TRListener.java
EterniaLogic/TekkitRestrict
gpl-3.0
5,529
161
codeparrot/github-code
7b3b1c48711cc4e615ea918d346165d11c1167bf86d32b13dcb7df5ce12e88ed
<?php /** * Copyright (C) 2016 Addison Électronique, Inc - All Rights Reserved * This file is part of PhoenixToOgasysLib. * PhoenixToOgasysLib can not be copied and/or distributed without the express * permission of Addison Électronique, Inc. * Created by : Yanick Lafontaine - <ylafontaine@addison-electronique.co...
PHP
Ogasys/Invoices/InvoicesDetail.php
addisonmtl/OgasysTemplateWriterLib
gpl-3.0
7,489
242
codeparrot/github-code
41743950bd705bba2d965655e6343e81bff2b1134b085dfdcc2c10cf14df6521
//============== IV:Multiplayer - https://github.com/Neproify/ivmultiplayer ============== // // File: CActorManager.cpp // Project: Client.Core // Author(s): jenksta // Sebihunter // License: See LICENSE in root directory // //=========================================================================...
C++
Client/Core/CActorManager.cpp
Neproify/ivmultiplayer
gpl-3.0
13,099
483
codeparrot/github-code
9b2fe87878674fdd21979560d1c5cb96e836ce74d342118e57ded10580c5741d
package loader.test.core import utils.LogTester._ import utils.stringContextes._ import utils.RegexReplacer import loader._ import loader.core.run import loader.context.ClassContext import loader.core.CtxCore import loader.core.definition.Status import loader.core.callbacks.CallbacksBuilder import loader.co...
Scala
XX3/src/loader/test/core/ObjDepthTest.scala
Y-P-/data-processing-binding
gpl-3.0
9,307
195
codeparrot/github-code
8dcbe51ff30e4d1ab0fc2ec582ef047f74377ac17bcd0def05c33c79f3628b56
/* * Copyright (C) 2013 by Array Systems Computing Inc. http://www.array.ca * * 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 lat...
Java
nest-op-sar-tools/src/main/java/org/esa/nest/gpf/ImportVectorOp.java
lveci/nest
gpl-3.0
16,863
380
codeparrot/github-code
eb241bccad97c2fa56509f3bb1ca5711695e684c50fd3b11b5a0d519fedd3a7b
#ifndef _POL_FIBHEAP_H #define _POL_FIBHEAP_H 1 namespace polaris { template<typename _Tp> class fib_heap_node { public: typedef _Tp key_type; typedef _Tp value_type; typedef fib_heap_node<_Tp> node_type; private: key_type _M_key; node_type* _M_parent; // std::list<node_type*>* _M_child; n...
C
include/pol/bits/fibheap.h
Polaris1949/Polaris
gpl-3.0
1,087
63
codeparrot/github-code
8570925085fb8260a9384a63d643c8b61302dcfd9fc7a49edb6072f75cde6c31
/* mail-util.c * * Copyright (C) 2010 Christian Hergert <chris@dronelabs.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...
C
simply-mail/mail-util.c
chergert/simply-mail
gpl-3.0
2,448
79
codeparrot/github-code
36f58183e4b94aff09bdda5006eb6b1f320a36547ca3147d90e457484d041b14
#ifndef UTILS_H_ #define UTILS_H_ #include "fixedMath.h" #include "Arduino.h" /** @defgroup util Mozzi utility functions */ /** @ingroup util Set digital pin 13 to output for testing timing with an oscilloscope.*/ #define SET_PIN13_OUT (DDRB = DDRB | B00100000) /** @ingroup util Set pin 13 high for testing timing w...
C
utils.h
sensestage/Mozzi
gpl-3.0
1,676
58
codeparrot/github-code
f580fa234b2d00fb081aa88f0d3ef4d0f22069889a9286ee7af3ded73de10182
package org.davidservin.restfulws.utm.config; import java.util.Properties; import java.util.concurrent.Executor; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadPoolExecutor; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springfr...
Java
src/main/java/org/davidservin/restfulws/utm/config/RootContextConfig.java
DavidServn/RESTfulWS
gpl-3.0
4,557
117
codeparrot/github-code
442b7619d81bd345f260ad9e96b9e041bed31fcfbdeb2b0378e61805d885cac8
#include <i386.h> #include <tipos.h> #include <common.h> #include <lib.h> #include <debug.h> #include "vga.h" /* How many spaces a TAB char represents */ #define TAB_WIDTH 4 /* Space char for cursor display */ #define WHITE_SPACE 0x0720 uint_16 vga_port = 0x3D0; uint_8* vga_addr = (uint_8*) 0xB8000; const uint_16 ...
C
kernel/vga.c
munshkr/spuriOS
gpl-3.0
10,247
465
codeparrot/github-code
bb698c6448575b26d0d217a23b338a7442b534bf54da2d7637f8f9f6542b6037
using UnrealBuildTool; using System.IO; using System; public class JScriptV8Plugin : ModuleRules { protected string ThirdPartyPath { get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "..", "..", "ThirdParty")); } } public JScriptV8Plugin(TargetInfo Target) { PrivateInclud...
C#
Source/JScriptV8Plugin/JScriptV8Plugin.Build.cs
gamemake/JScriptPlugin
gpl-3.0
4,844
124
codeparrot/github-code
aa73caabc7948fd5f91222eba1f9bed52ba40a1c7153218cdbafda938d68fab7
import cryspy.numbers import cryspy.geo class Goniometer: def __init__(self, motiontype, axis, direction, parametername): assert motiontype in ["translation", "rotation"], \ "First parameter for creating a Goniometer " \ "must be one of the strings " \ "'translation' or ...
Python
cryspy/lab.py
tobias-froehlich/cryspy
gpl-3.0
6,803
163
codeparrot/github-code
1e9790e649ef96301822d10a741ea037cb1d3633a354fdf07d439238bbf9ec89
using ECCentral.BizEntity.Invoice; using ECCentral.QueryFilter.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ECCentral.QueryFilter.Invoice { public class ChangePriceFilter { public PagingInfo PagingInfo { get; set; } public string SysN...
C#
02_ECCentral/03_Service/QueryFilter/Invoice/ChangePriceFilter.cs
ZeroOne71/ql
gpl-3.0
767
35
codeparrot/github-code
3e7b027af34f1621aa4a9cf9c8446ce92747ceb6237658995d963c9f8ec1bba1
/* Copyright (c) 2012 Gerald Knizia * * This file is part of the IR/WMME program * (See http://www.theochem.uni-stuttgart.de/~knizia) * * IR/WMME 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, versi...
C++
ir-wmme.20130129/src/CtAtomSet.cpp
zhengbx/BBQ
gpl-3.0
23,085
738
codeparrot/github-code
8048c20f2980fda9a2a6189285c96836ee2a2ca8270331435903917bd9ac0c66
<?php class bdApi_Route_PrefixApi_ProfilePosts extends bdApi_Route_PrefixApi_Abstract { const PREFIX_COMMENTS = 'comments'; const PARAM_COMMENT_ID = 'comment_id'; public function match($routePath, Zend_Controller_Request_Http $request, XenForo_Router $router) { $action = $router->resolveAction...
PHP
xenforo/library/bdApi/Route/PrefixApi/ProfilePosts.php
xfrocks/bdApi
gpl-3.0
1,311
37
codeparrot/github-code
820153a883f3bd97b2809a7a25595796f515eb2b5cad543318ade8536979239e
package br.com.macs.poc.registration.controller.dto; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.URL; public class AssetDto { private String id; @NotNull private String name; @NotNull @URL private String address; public String getId() { return id; } public...
Java
src/main/java/br/com/macs/poc/registration/controller/dto/AssetDto.java
lucasmauricio/service-discovery
gpl-3.0
722
42
codeparrot/github-code
a872802f1f6eb29a2253a10d93e14c2f4a5b10fab5b99a8978b3fceb55ed3b39
/* * NMRFx Processor : A Program for Processing NMR Data * Copyright (C) 2004-2017 One Moon Scientific, Inc., Westfield, N.J., USA * * 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...
Java
src/main/java/org/nmrfx/processor/datasets/peaks/PeakNetworkMatch.java
onemoonsci/nmrfxprocessor
gpl-3.0
21,601
527
codeparrot/github-code
dfeec579c671a74f09a8e870962334e4c567bd1786314a97f885f7225718e453
package com.samczsun.skype4j.internal; import com.samczsun.skype4j.chat.Chat; import com.samczsun.skype4j.chat.ChatMessage; import com.samczsun.skype4j.user.User; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyO...
Java
src/main/java/com/samczsun/skype4j/internal/UserImpl.java
vemacs/Skype4J
gpl-3.0
2,277
96
codeparrot/github-code
7670518f5261e56dae91703c0aba07aa65a168fbff6de244fd5e828ffe5e0d6f
<?php //$Id: mod_form.php,v 1.2.2.3 2009/03/19 12:23:11 mudrd8mz Exp $ /** * This file defines the main themechange configuration form * It uses the standard core Moodle (>1.8) formslib. For * more info about them, please visit: * * http://docs.moodle.org/en/Development:lib/formslib.php * * The form must provid...
PHP
mod/themechange/mod_form.php
xnishx/moodle1
gpl-3.0
3,402
74
codeparrot/github-code
601fc1b44e732f267f115e0a56285b58790b93dc92457477a6c2b46b8c8a775c
/* * 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 program is distributed in the hope that it will b...
C++
open-lighting-architecture/ola-0.8.4/olad/DmxSourceTest.cpp
syn2cat/syndilights
gpl-3.0
2,750
99
codeparrot/github-code
7ccfbceae4be7e2ae55bdcd48edc253b0b0a8ecd75811a9f0a549aeca9e92053
# Orbotor - arcade with orbit mechanics # Copyright (C) 2014 mr555ru # # 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) an...
Python
orbotor/gameprofile.py
mr555ru/orbotor
gpl-3.0
8,679
251
codeparrot/github-code
1d0d084679fea4f52cfc03e2f2092c88051b23581f5eab9fea02e69c94d2d336
package org.classfoo.onyx.impl; import java.awt.Color; import java.util.HashMap; import java.util.Map; import java.util.Random; import java.util.UUID; import java.util.concurrent.ExecutorService; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.Thr...
Java
org.classfoo.onyx/src/main/java/org/classfoo/onyx/impl/OnyxUtils.java
classfoo/onyx
gpl-3.0
7,787
222
codeparrot/github-code
12c0b1839b89a49746d9e26512bf35ff16da42f06585fd7922627936b1e0da62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Python API for Applications &mdash; SIP 4.15.5 Refe...
HTML
thirdparty/sip-4.15.5/doc/html/python_api.html
jukkes/TulipProject
gpl-3.0
35,394
698
codeparrot/github-code
59991bc22c3bf2544c3d2507f1578e8ad4907ccca0bcd4ea71726dbed4fe7980
/* This source file is part of Rigs of Rods Copyright 2005-2012 Pierre-Michel Ricordel Copyright 2007-2012 Thomas Fischer For more information, see http://www.rigsofrods.com/ Rigs of Rods is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as publish...
C++
source/main/utils/InputEngine.cpp
only-a-ptr/ror-legacy-svn-trunk
gpl-3.0
83,559
3,450
codeparrot/github-code
75fe5f2a10aee8b5eeee2d6a0db1fb64bfcc967cc88044ae08e32a3f22f522f3
/* stringops.c * Date : 26 August 2015 * Author: Ankit Pati */ #include <stdio.h> #include <string.h> /* manual string functions */ int str_len(char s[]) { int len=0; while(s[len]) ++len; return len; } int str_cmp(char s1[], char s2[]) { int i=0, j=0; while(s1[i] && s2[j] && s1[i]==s2[j]) ++i...
C
main/stringops.c
ankitpati/fds
gpl-3.0
3,453
177
codeparrot/github-code
6bb48d4b6c16d5097d932bdad3700ff9e62e40a485292affed3584d29ec4df3b
class Color { constructor () { this.r = Color.value(); this.g = Color.value(); this.b = Color.value(); this.style = "rgba(" + this.r + "," + this.g + "," + this.b + ",1)"; //this.style = "rgba(233,72,152,1)"; } static value () { return Math.floor(Math.random() * 255); } } class Dot { constructor (pa...
JavaScript
src/connect_dots.js
Kronos3/Webmaster-Nationals
gpl-3.0
4,611
175
codeparrot/github-code
30577e3a1efd270a8687de750b91232a2f1636767d71e793653225f39d7365d0
/* * Copyright 2011-2013 the original author or authors. * * 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. * * T...
Java
src/xi/zhao/wallet/ui/AddressBookActivity.java
bichong/bichong
gpl-3.0
4,275
150
codeparrot/github-code
3f6ff1bcfbb7c65b2f42d70419fb6081250aeec5ec9d0881ab5758ca8d8a61e9
using System; namespace Server.Engines.Quests { public class QuestSerializer { public static object Construct( Type type ) { try { return Activator.CreateInstance( type ); } catch { return null; } } public static void Write( Type type, Type[] referenceTable, Gener...
C#
Scripts/Distro/Engines/Quests/Core/QuestSerializer.cs
greeduomacro/xrunuo
gpl-3.0
4,012
207
codeparrot/github-code
4d46db7951341a7c925173950778060c6f327006f1ff9f044b1b4c00f4862af6
package eu.menzerath.webcrawler; import javax.net.ssl.*; import java.awt.*; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.List; public class Main { public static final String APPLI...
Java
src/main/java/eu/menzerath/webcrawler/Main.java
MarvinMenzerath/WebCrawler
gpl-3.0
4,086
101
codeparrot/github-code
7b61166800b6e7d6d423de5f049bd9bdc31c2a80806e4025a7454d89fb01154a
/****************************************************************************** ** Copyright (c) 2006-2018, Calaos. All Rights Reserved. ** ** This file is part of Calaos. ** ** Calaos is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published ...
C
src/bin/calaos_server/Audio/SqueezeboxDB.h
calaos/calaos_base
gpl-3.0
5,915
118
codeparrot/github-code
ff5620bcdddec1f1b0cc5a327ba4de59dc16cc6919e842cc97b9adcde08fb31a
/* * Copyright (c) 2011 Marcel Lauhoff. * * This file is part of jext2. * * jext2 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 vers...
Java
src/fusejext2/Util.java
irq0/jext2
gpl-3.0
2,118
76
codeparrot/github-code
8e9681119ce56f0d9aaa39a014d3cc86ad0e8404fad69e4e33b9eed58f892b82
<!DOCTYPE html> <html> <head> <title>UDistrital - Moleculas .pdb</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <style> html, body { height: 100%; } body { background-color: #050505; background: rgb(43, 45...
HTML
Moleculas/moleculas.html
ingelectronicadj/nanotecnologia
gpl-3.0
14,130
480
codeparrot/github-code
47831d559adfa6a0b32ce44b3849045806b70e04f37d1a2415c160e5f50b6b69
/* * * MashBerry Homebrewing-controller * * Copyright (C) 2013 Sebastian Duell * <mail@sebastian-duell.de> * * This file is licensed under the terms of the GNU General Public * License version 3. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #include <ctyp...
C++
mainwindow.cpp
wastel7/MashBerry
gpl-3.0
13,781
482
codeparrot/github-code
cdf0b6d1f05ec12a5e1f3b456907e106d6ba5541c43d064ef793f4b63478586e
package me.desht.pneumaticcraft.client.render.pneumatic_armor.upgrade_handler; import me.desht.pneumaticcraft.api.client.IGuiAnimatedStat; import me.desht.pneumaticcraft.api.client.pneumaticHelmet.IOptionPage; import me.desht.pneumaticcraft.api.client.pneumaticHelmet.IUpgradeRenderHandler; import me.desht.pneumaticcra...
Java
src/main/java/me/desht/pneumaticcraft/client/render/pneumatic_armor/upgrade_handler/JetBootsUpgradeHandler.java
desht/pnc-repressurized
gpl-3.0
5,481
128
codeparrot/github-code
74e72402984a44a1553d127be239d6b5ab4468a8062e098c2f8089962ff951c5
package org.djr.securus.camera.rest; import junit.framework.TestCase; import org.apache.commons.codec.binary.Base64; import org.djr.securus.cdi.logs.LoggerProducer; import org.jglue.cdiunit.AdditionalClasses; import org.jglue.cdiunit.CdiRunner; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito...
Java
src/test/java/org/djr/securus/camera/rest/CameraAuthorizationFilterTest.java
djr4488/camera-notifier
gpl-3.0
4,659
112
codeparrot/github-code
546e6ca458dec8dbdcf36ea5afaeec158dc81812c87411a2ec9f037814fd7eff
//C- ------------------------------------------------------------------- //C- Java DjVu (r) (v. 0.8) //C- Copyright (c) 2004-2005 LizardTech, Inc. All Rights Reserved. //C- Java DjVu is protected by U.S. Pat. No.C- 6,058,214 and patents //C- pending. //C- //C- This software is subject to, and may be distributed under,...
Java
djuvpp-djvureader-_linux-f9cd57d25c2f/DjVuReader++/src/com/lizardtech/djview/Applet.java
DJVUpp/Desktop
gpl-3.0
25,745
720
codeparrot/github-code
2f8459a093f600d8972b637af204fbda588423fb480a5661d53af5aa617fb879
/* Copyright (C) 2014-2019 de4dot@gmail.com This file is part of dnSpy dnSpy 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...
C#
dnSpy/dnSpy/Disassembly/Viewer/X86/DisassemblyContentProviderFactory.cs
manojdjoshi/dnSpy
gpl-3.0
5,996
156
codeparrot/github-code
b2abab6669e07f91316cff588a9a943a220c20887aef3a941e2b07fa20200a3d
## Unquill: Copyright (C) 2003 Janez Demsar ## ## During development I peeked a lot at Unquill from John Elliott, 1996-2000. ## ## 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...
Python
kontrabant.py
janezd/kontrabant
gpl-3.0
40,742
1,060
codeparrot/github-code
83e00b6d8be324ee129971b1f53a75cb54e49dc353b0b28895a9441f3ee4c32e
<!doctype html> <html lang="en"> <head> <!--<meta charset="UTF8">--> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> table, th, td { border: 1px solid black; }...
HTML
workspace/gt/src/Esercizio2.html
baudo2048/Matematica
gpl-3.0
2,238
103
codeparrot/github-code
c57a83a518e36621026dfea87ba17a6a164538f1b593f1163586b053517a15fe
/******************************************************************************* * * Copyright (c) 2016 Fujitsu Services Ltd. * * Author: Nick Battle * * This file is part of VDMJ. * * VDMJ is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License a...
Java
vdmj/src/main/java/com/fujitsu/vdmj/in/statements/INNotYetSpecifiedStatement.java
nickbattle/vdmj
gpl-3.0
3,734
135
codeparrot/github-code
346173cfe5a08817147652ea140159d226e2e902daa7df421c88027b479aaa71
#ifndef __LA_H_INCLUDED__ #define __LA_H_INCLUDED__ enum LAEepromAddress {LA_EEPROM_VERIFY=10,LA_EEPROM_TIME1=11, LA_EEPROM_TIME2=15, LA_EEPROM_CURRENT1=19, LA_EEPROM_CURRENT2=21, LA_EEPROM_POSITION=22}; //if this is changed, then you should change the verification code below #define LA_EEPROM_VERIFY_CODE 101 //#defi...
C
LinearActuator.h
uamp/LinearActuator
gpl-3.0
2,268
55
codeparrot/github-code
ed082406f0ba7c7bd0a1aad05012a6012f685b925e305e9b05132393ba5d35b5
/* * Copyright 2012-2013 Luke Dashjr * * 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. See COPYING for more detai...
C
compat.h
ghostlander/nsgminer
gpl-3.0
3,918
153
codeparrot/github-code
2013b6f9256c75cfcefbb8b2e6d874e8d29d8ca73e57ac897c43f83c440b8712
using fi.tamk.hellgame.input; using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; namespace fi.tamk.hellgame.ui { public class ShootingButtonPromt : MonoBehaviour { private TextMeshPro _promtText; [SerializeField] private string _gamepadText; [S...
C#
Assets/Scripts/UI/ShootingButtonPromt.cs
jannef/HellGame
gpl-3.0
1,026
45
codeparrot/github-code
4415b5eae252a1e318073715789364a32974300c5a7a1c40d93e9c7e80573ba0
--MoonBurst of XIII function c4242577.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c,false) --fusion material c:EnableReviveLimit() aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x666),3,true) --special summon rule local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_...
Lua
script/c4242577.lua
TheOnePharaoh/YGOPro-Custom-Cards
gpl-3.0
3,536
107
codeparrot/github-code
613be63ed01962197b978edd193f1eab567f540acd4bf16a5ac1b74abf6eb659
public class Solution { private class Fraction { int a; int b; int sign; public Fraction(int a, int b, int sign) { this.a = a; this.b = b; this.sign = sign; } } private int gcd(int a, int b) { if (a < b) { return gcd(b, a); } if (b == 0) { return a; } return gcd(b, a % b); } pr...
Java
algorithms/java/Fraction Addition and Subtraction.java
acgtun/leetcode
gpl-3.0
2,031
97
codeparrot/github-code
ae2147c92d86fcac382c1a552095c16923746ec2ff154b024c7a03f86441875f
/* * This file is part of Caddy. * * Caddy 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. * * Caddy is distributed in the...
C
src/node_list.c
nocnokneo/caddy
gpl-3.0
14,502
489
codeparrot/github-code
a63b607fea834c71784bd515daee94b45ea2c8f317e50687322ceb3303e69425
<?php $offset = 3600; // on remet à jour la feuille de style une fois par heure. $expire = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; header($expire); header("Content-type: text/css"); $verif_connexion = new verif_connexion(); $verif_connexion->verif(); $perso_cod = $verif_connexion->perso_cod...
PHP
web/www/jeu_test/style_vue.php
Merrick28/delain
gpl-3.0
6,536
223
codeparrot/github-code
11b6aceed96da881845b25add0eed702e31377bd85a60f5bf054b85f791d38ef
<?php /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * * Copyright (c) 2001-2012 * * ...
PHP
ecrire/inc/install.php
nursit/SPIP
gpl-3.0
16,743
532
codeparrot/github-code
28d5e8b85084e7f1e68fdaa9242942397e334cc1bc34b4bebb9d6ecde79ee8ce
/* * Copyright 2011-2013 Arx Libertatis Team (see the AUTHORS file) * * This file is part of Arx Libertatis. * * Arx Libertatis 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 Li...
C++
src/game/Player.cpp
ptitSeb/ArxLibertatis
gpl-3.0
88,226
3,077
codeparrot/github-code
b4940bfade5f8d5735f89d49b44b6aa17d76734f25819c77e9f2b326c962201a
package de.wwu.muggl.test.real.java8; import de.wwu.muggl.NotYetSupported; import de.wwu.muggl.configuration.Globals; import de.wwu.muggl.test.TestSkeleton; import de.wwu.muggl.test.real.vm.TestVMNormalMethodRunnerHelper; import de.wwu.muggl.vm.classfile.ClassFileException; import de.wwu.muggl.vm.initialization.Initia...
Java
muggl-core/junit/de/wwu/muggl/test/real/java8/TestLambda.java
wwu-pi/muggl
gpl-3.0
1,678
60
codeparrot/github-code
430544aec6d32b031680ca63917fd51c8d917fbbd88a632e4d436f921d4dfdcb
<?php /*## TbButton class file. * * @author Christoffer Niska <ChristofferNiska@gmail.com> * @copyright Copyright &copy; Christoffer Niska 2011- * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php) * @package bootstrap.widgets * @since 0.9.10 */ /** * Bootstrap button wi...
PHP
startup/protected/extensions/bootstrap/widgets/TbButton.php
futurable/futural
gpl-3.0
7,868
314
codeparrot/github-code
86dca5a8f189673932a49579d5a4bfaadfa61988c6f5e4fc7dd23a044d4377f9
/** * @file easom_function_impl.hpp * @author Marcus Edel * * Implementation of the Easom function. * * ensmallen is free software; you may redistribute it and/or modify it under * the terms of the 3-clause BSD license. You should have received a copy of * the 3-clause BSD license along with ensmallen. If not...
C++
Include/ensmallen/ensmallen_bits/problems/easom_function_impl.hpp
TLCFEM/suanPan
gpl-3.0
3,187
86
codeparrot/github-code
f1fe9287a21150746d12586d46c72c87994bba8c3d93efb69b49ee525b9c217a
using System; using CMS.Helpers; using CMS.Membership; using CMS.PortalEngine; using CMS.UIControls; using CMS.DocumentEngine; public partial class CMSModules_PortalEngine_UI_WebParts_webpartproperties_layout : CMSWebPartPropertiesPage { String layoutCodeName = String.Empty; WebPartLayoutInfo wpli = null; ...
C#
CMS/CMSModules/PortalEngine/UI/WebParts/webpartproperties_layout.aspx.cs
CCChapel/ccchapel.com
gpl-3.0
2,897
85
codeparrot/github-code
1e78d8dd37c9fc4c3b36eb547b21357112160753fd16f2145d3a24e798cc9866
<?php /** History class */ namespace smtech\GradingAnalytics\Snapshots; use smtech\GradingAnalytics\Snapshots\Exception\SnapshotException; /** * A class to query and cache the history of a course's statistics * * @author Seth Battis <SethBattis@stmarksschool.org> */ class History extends CacheableDatabase { ...
PHP
src/Snapshots/History.php
smtech/grading-analytics
gpl-3.0
4,310
142
codeparrot/github-code
ce943717c72d70a9f8215c49f482afcab120ee11126adbaaba8979cbab5f0a19
import { MathHelper } from "./MathHelper"; import { Vector2D } from "./Vector2D"; import { Rect } from "./Rect"; export class Point { static readonly zero = new Point(0, 0); static readonly one = new Point(1, 1); static readonly four = new Point(4, 4); static readonly eight = new Point(8, 8); stati...
TypeScript
Core/Point.ts
SteveDunn/Pacman
gpl-3.0
2,045
80
codeparrot/github-code
58cbd195889a760ca4f4a3423e35e50e15b97876089374343abb480e01ceb907
package com.actelion.research.orbit.imageAnalysis.components.icons; import java.awt.*; import java.awt.geom.*; import java.awt.image.BufferedImage; import java.io.*; import java.lang.ref.WeakReference; import java.util.Base64; import java.util.Stack; import javax.imageio.ImageIO; import javax.swing.SwingUtilities; imp...
Java
src/main/java/com/actelion/research/orbit/imageAnalysis/components/icons/lmproulx_eraser.java
mstritt/orbit-image-analysis
gpl-3.0
16,104
501
codeparrot/github-code