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
2434b94f4e8072b578e0335225a2c12cc4f99112f49727ae48172d406a5caf1d
<?php /** * @ignore */ function mysql_table_exists($database, $tableName) { global $tc_db; $tables = array(); $tablesResults = $tc_db->GetAll("SHOW TABLES FROM `$database`;"); foreach ($tablesResults AS $row) $tables[] = $row[0]; return(in_array($tableName, $tables)); } function pgsql_table_exists($da...
PHP
INSTALL/install.php
314parley/Kusaba-B
gpl-2.0
5,390
121
codeparrot/github-code
cd6944e8a945bb78e238178ce3905f8856750322d1c57050aab7d9ec00e17fa9
<?php /** * @file * Teamwork15 sub theme template functions * */ /** * Implements hook_preprocess_maintenance_page(). */ function teamwork_15_subtheme_preprocess_maintenance_page(&$variables) { backdrop_add_css(backdrop_get_path('theme', 'bartik') . '/css/maintenance-page.css'); } /** * Implements hook_prepr...
PHP
teamwork_15_subtheme/template.php
backdrop-contrib/teamwork_15
gpl-2.0
10,165
245
codeparrot/github-code
2b7b9dcc4499a5544ed59d99dd827be55109a9377d05e4251fd0c214f2e560dd
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
C
bundled/curl/getinfo.c
pfchrono/mudmagic-client
gpl-2.0
5,871
203
codeparrot/github-code
9ba263e830c82555cad61ff45451635a43d43ad27b7618fcb3ede8663cc63c5a
/* * Copyright (c) 2017 Red Hat, Inc. and/or its affiliates. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful...
Java
hotspot/test/gc/shenandoah/TestMemoryMXBeans.java
ojdkbuild/lookaside_java-1.8.0-openjdk
gpl-2.0
2,609
66
codeparrot/github-code
d5e44f5f8b858a0b9ebc1ca0fa0cf63a7bd0972f0f7d04e9c42c7833564abcdb
jQuery(function($) { /////////////////////////////////////////////////////////////////// ///// META BOXES JS /////////////////////////////////////////////////////////////////// jQuery('.repeatable-add').live('click', function() { var field = jQuery(this).closest('td').find('.custom_repeatable li:last').clone(t...
JavaScript
wp-content/themes/bobbarnyc/inc/settings-panel/js/custom-admin.js
StefanDindyal/wordpresser
gpl-2.0
5,266
179
codeparrot/github-code
9249d1959edf5e1888005354935e376562929b0eca815b74312430393f34a942
/* nip2-cli.c ... run the nip2 executable, connecting stdin and stdout to the * console * * 11/12/09 * - use SetHandleInformation() to stop the child inheriting the read * handle (thanks Leo) */ /* Copyright (C) 2008 Imperial College, London This program is free software; you can redistribute it an...
C
src/nip2-cli.c
jcupitt/nip2
gpl-2.0
5,159
200
codeparrot/github-code
7f7369e8da67c128a684681d78473906a463101e60317eb9cbd464163f32711a
#!/usr/bin/perl -w # This script was originally based on the script of the same name from # the KDE SDK (by dfaure@kde.org) # # This version is # Copyright (C) 2007, 2008 Adam D. Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as ...
Perl
devscripts/scripts/licensecheck.pl
RsrchBoy/rpmdevtools
gpl-2.0
18,704
545
codeparrot/github-code
f665a1da44726fd37d30341e0ba310b50133ad9febffc50889ced04c593ad4fa
""" SALTS XBMC Addon Copyright (C) 2015 tknorris 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...
Python
plugin.video.salts/salts_lib/kodi.py
azumimuo/family-xbmc-addon
gpl-2.0
4,540
131
codeparrot/github-code
f3c13ef858024e42aa9d5b0e2f76647177af4d421a91f4ba7dff9f1e9f1d388f
using System; using System.Collections.Generic; using UnityEngine; using YinYang.CodeProject.Projects.SimplePathfinding.PathFinders.AStar; namespace YinYang.CodeProject.Projects.SimplePathfinding.PathFinders { public abstract class BaseGraphSearchMap<TNode, TValue> where TNode : BaseGraphSearchNode<TNode, TValue>...
C#
Albion/Merlin/Pathing/BaseGraphSearchMap.cs
lauw/Albion-Online-Bot
gpl-2.0
3,404
129
codeparrot/github-code
29d5876c8083800974d1aa366c6fd4fe4f62e3b3e18ebef553c563b1c45292a4
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright held by original author \\/ M anipulation | ------------------...
C++
src/OpenFOAM/matrices/lduMatrix/smoothers/DICGaussSeidel/DICGaussSeidelSmoother.H
Unofficial-Extend-Project-Mirror/openfoam-extend-Core-OpenFOAM-1.5-dev
gpl-2.0
3,048
103
codeparrot/github-code
c9f8f80ffae50c3c4a853b179149a44b1b809745b4e0dd317160791ca8affe9e
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
C++
plugin/soccer/soccerbase/soccerbase.cpp
xuyuan/rcssserver3d-spl-release
gpl-2.0
22,704
835
codeparrot/github-code
8a6c8847a41103207b06d67d88f5fc5f35cd98556a526b2c991cc2b28b545b2e
# -*- coding: utf-8 -*- # # HnTool rules - php # Copyright (C) 2009-2010 Candido Vieira <cvieira.br@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 Lic...
Python
HnTool/modules/php.py
hdoria/HnTool
gpl-2.0
4,760
103
codeparrot/github-code
f9deb0b7341219c5a901559edcbfb4c29d38c035eac922b760112d45ac2cbf54
/* JavaScript User Interface Library -- Common datatypes for user elements * Copyright 2010 Jaakko-Heikki Heusala <jhh@jhh.me> * $Id: common.js 415 2010-10-15 05:00:51Z jheusala $ */ /** Simple message box constructor * @params type The message type: error, notice, info or success * @params msg Message */ functi...
JavaScript
lib/jsui/common.js
jheusala/jsui
gpl-2.0
1,101
42
codeparrot/github-code
060765c733f80680cfabe536c7bc060ea714eab46d430ba52497b09a2954cac6
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Fra...
C#
MegaGamesVortexLimited/MegaGamesVortexLimited/ProgressBar.cs
macrocephalus/MegaGamesVortexLimited
gpl-2.0
2,235
64
codeparrot/github-code
4142adac40dd73ae65f0eb7b8b96108949bb286dc50663f47833d430ce317bd0
<?php /** * Shows a welcome or update message after the plugin is installed/updated */ class Tribe__Events__Activation_Page { /** @var self */ private static $instance = null; public function add_hooks() { add_action( 'admin_init', array( $this, 'maybe_redirect' ), 10, 0 ); add_action( 'admin_menu...
PHP
wp-content/plugins/the-events-calendar/src/Tribe/Activation_Page.php
casedot/AllYourBaseTemplate
gpl-2.0
7,703
248
codeparrot/github-code
ee61f647f0a824845a0c5aa595138eed3848285ac234c92551e6b1812611245b
#!/usr/bin/env python # -*- coding: utf-8 -*- # # progreso.py # # Copyright 2010 Jesús Hómez <jesus@jesus-laptop> # # 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; ...
Python
progreso.py
jehomez/pymeadmin
gpl-2.0
3,383
85
codeparrot/github-code
d0ffa92ca9b3a265ea086341072ffc108e2f6c216f95436a3d035e714ff2e01e
/* Copyright_License { XCSoar Glide Computer - http://www.xcsoar.org/ Copyright (C) 2000-2014 The XCSoar Project A detailed list of copyright holders can be found in the file "AUTHORS". This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
C++
src/Hardware/Battery.cpp
robertscottbeattie/xcsoardev
gpl-2.0
4,640
169
codeparrot/github-code
1562a58ebe36c0d77dc3ce95e5cd14dcc2e69063650d5de9ee4a8f4cca5c8d55
<?php /** * KohaRest ILS Driver * * PHP version 7 * * Copyright (C) The National Library of Finland 2017-2019. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This pr...
PHP
module/Finna/src/Finna/ILS/Driver/KohaRest.php
arto70/NDL-VuFind2
gpl-2.0
64,182
1,933
codeparrot/github-code
7c74ee891c7048459816948c613ddc970e24fe7d16166f061387ea8266559154
package com.github.esadmin.meta.model; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.JoinTa...
Java
eshbase-proxy/src/main/java/com/github/esadmin/meta/model/DBIndex.java
joezxh/DATAX-UI
gpl-2.0
3,720
181
codeparrot/github-code
628e7588d68328826d116086b205578afa5d28216eccb55bc411ba7f7806e49a
# Copyright (c) 1998 Cygnus Support # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this # notice is included verbatim in any distributions. No writ...
Makefile
src/system/arm-none-eabi/libgloss/libnosys/Makefile
pavel-ruban/hldi_hardware
gpl-2.0
4,584
147
codeparrot/github-code
50061eb8c398805414977e6d29373f85d958bd271022d16a1387a1b41415be05
\hypertarget{padlock_8h}{\section{C\-:/dev2/luambedtls/dependencies/mbedtls/include/mbedtls/padlock.h File Reference} \label{padlock_8h}\index{C\-:/dev2/luambedtls/dependencies/mbedtls/include/mbedtls/padlock.\-h@{C\-:/dev2/luambedtls/dependencies/mbedtls/include/mbedtls/padlock.\-h}} } V\-I\-A Pad\-Lock A\-C\-E for ...
TeX
doc/latex/padlock_8h.tex
soulik/luambedtls
gpl-2.0
2,935
40
codeparrot/github-code
5d4e3b66d976b6d8f3288fdba3da79986961a7f1747032f9a8c2d880abdeb3da
<?php /* core/themes/stable/templates/block/block--system-messages-block.html.twig */ class __TwigTemplate_0c8ec01fa0528f682259cd616ff9ee5ee8ceeeb5ec7cf0b3ece249a3727465d5 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = fa...
PHP
sites/default/files/php/twig/bdd6b639_block--system-messages-block.html.twig_41faf232cd42e8ec796f15a9bb08f1a5f7eaf6bd977aaa861b52c4ad353c5f10/41244d26af175744d9765a17dcb06990bbb9472557ce348f7ba1670b703f8a3d.php
dhrubajs/drupal_8.0.3
gpl-2.0
2,313
77
codeparrot/github-code
9e887302f98875a76131ba9b51ce53d6615b6ae621a6da7cdc16f5b77754fdce
/* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information * 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 opti...
C++
scripts/eastern_kingdoms/sunwell_plateau/instance_sunwell_plateau.cpp
concept45/TwoScripts
gpl-2.0
17,598
505
codeparrot/github-code
d28a8bb440e69816b73a6636b6123a16288640cd46410f142be5b82b80b57bf1
package com.cluit.util.dataTypes; import java.util.ArrayList; import java.util.HashSet; import java.util.Set; import com.cluit.util.Const; import com.cluit.util.AoP.MethodMapper; import com.cluit.util.methods.ClusteringUtils; import com.cluit.util.structures.KeyPriorityQueue_Max; import com.cluit.util.structures.Pair...
Java
CluIt/src/com/cluit/util/dataTypes/Cluster.java
Gikkman/CluIt
gpl-2.0
8,826
250
codeparrot/github-code
1f33ef30b05aac1c4a5a5770ffd9211d4fc400096d884821ed1c85882ea35b87
<?php /** * SFN Live Report. * * @package SFN Live Report * @author Hampus Persson <hampus@hampuspersson.se> * @license GPL-2.0+ * @link http:// * @copyright 2013 Swedish Football Network */ /** * Plugin class. * * * @package SNF_Live_Report * @author Hampus Persson <hampus@hampuspersson.se> ...
PHP
class-sfn-live-report.php
swedish-football-network/wp-live-report
gpl-2.0
9,874
346
codeparrot/github-code
b5afbbce781d1fd7cbe83abcfa4380e524fe4a930313c29d3c54be694cc96f9b
# encoding: utf-8 # Copyright (c) 2012 Novell, Inc. # # All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of version 2 of the GNU General Public License as published # by the Free Software Foundation. # # This program is distributed in the hope that it w...
Ruby
library/general/src/lib/ui/greasemonkey.rb
mchf/yast-yast2
gpl-2.0
7,562
262
codeparrot/github-code
4b07daa113c0e7ff82300180bcf4e280b89fcc1a36d78a69a6a4dde3adb5c83c
{ int n, dx, dy, sx, pp_inc_1, pp_inc_2; register int a; register PIXEL *pp; #if defined(INTERP_RGB) register unsigned int r, g, b; #endif #ifdef INTERP_RGB register unsigned int rinc, ginc, binc; #endif #ifdef INTERP_Z register unsigned int *pz; int zinc; register unsigned int z; #endif if (p1->y > p2->y || ...
C
graphics/tinygl/zline.h
clone2727/residual
gpl-2.0
2,256
115
codeparrot/github-code
7c41195e3998ffe36fb0e955965fa5c3a7cd0cd516fb73f92c846463ddbb2fb4
/* utility routines for keeping some statistics */ /* (C) 2009 by Harald Welte <laforge@gnumonks.org> * * All Rights Reserved * * 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 vers...
C
src/statistics.c
techniker/libosmocore
gpl-2.0
1,583
67
codeparrot/github-code
bdc9e1a0027a796c48a88427ef3cd75331eaae87ae1bdd394a46e78759943d04
using NetworkProbe.Port.Services; using System.Collections.Generic; using System.Net; using NetworkProbe.Port; using NetworkProbe.Model; using System.Threading.Tasks; using System.Linq; namespace NetworkProbe { public static class Probe { /// <summary> /// Initiates a service scan on a single ...
C#
NetworkProbe/Probe.cs
K1tson/Network-Probe
gpl-2.0
1,949
52
codeparrot/github-code
58cc54b8886b8ff30983560c78d95ede8779807e8217d9d98cc9403f1218a560
import urllib2 def sumaDos(): print 10*20 def division(a,b): result=a/b print result def areatriangulo(base,altura): result2=(base*altura)/2 print result2 def cast(): lista=[1,2,3,"hola"] tupla=(1,2,3) diccinario={"key1":"Diego","key2":"Piqui","key3":"Chuy"} for k,v in diccionar...
Python
archivo.py
DiegoBalandran/prueba
gpl-2.0
1,301
78
codeparrot/github-code
1f87d1dfbbbc42766a0e41c03ff078c34bb83bc59cffd9f3b07399947187817c
/*************************************************************************** qgsmeasure.h ------------------ begin : March 2005 copyright : (C) 2005 by Radim Blazek email : blazek@itc.it ****...
C
qgis/src/app/qgsmeasuredialog.h
sourcepole/qgis
gpl-2.0
2,706
90
codeparrot/github-code
213fbe24f61b8b3f0133c8409caf44b4d30a93f8057affc10b61756414ce1e61
<!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>Overview &mdash; Python 2.7.10rc0 documentation</ti...
HTML
live-build-config/config/includes.chroot/usr/share/documentation/python/2.7.1/index.html
cybint-io/cybint-linux
gpl-2.0
8,886
202
codeparrot/github-code
db1f29ff40a4f9c5cdf9e660fce073ad2835543c0fb62d1723533fa04b736cee
class EmailToken < ActiveRecord::Base belongs_to :user validates_presence_of :token validates_presence_of :user_id validates_presence_of :email before_validation(:on => :create) do self.token = EmailToken.generate_token end after_create do # Expire the previous tokens EmailToken.update_all ...
Ruby
app/models/email_token.rb
Ocramius/discourse
gpl-2.0
1,540
64
codeparrot/github-code
21c3c6365812d0f2b8a026dcefd5162de5def76c649570d8ebd46cc957ad53ee
/* * fs/f2fs/recovery.c * * Copyright (c) 2012 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #includ...
C
fs/f2fs/recovery.c
flaming-toast/linux-jeyu
gpl-2.0
16,232
669
codeparrot/github-code
227336e92e5b1a7f3d9ff6d015fa7812f08e6b4188c35e31c8dd24a8492dee6b
/** IneoRealTimeFileFormat class implementation. @file IneoRealTimeFileFormat.cpp This file belongs to the SYNTHESE project (public transportation specialized software) Copyright (C) 2002 Hugues Romain - RCSmobility <contact@rcsmobility.com> This program is free software; you can redistribute it and/or modify i...
C++
server/src/61_data_exchange/IneoRealTimeFileFormat.cpp
Open-Transport/synthese
gpl-2.0
15,751
488
codeparrot/github-code
e4a389087798e38af08eedd12b45db4d50f9c6f72affc4a6be4a7bf12bb82266
/*************************************************************************** orbitalviewerbase.h - description ------------------- begin : Thu Nov 4 2004 copyright : (C) 2004-2006 by Ben Swerts email : bswerts@user...
C
brabosphere/include/orbitalviewerbase.h
steabert/brabosphere
gpl-2.0
3,284
76
codeparrot/github-code
a4044aab1f3aaa5beea6647d2c6e4ee5ee931f3b3f4fdb368bb567be7afb9d8a
// ================================================================================================= // ADOBE SYSTEMS INCORPORATED // Copyright 2011 Adobe Systems Incorporated // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe lic...
C++
xmp_sdk/XMPFiles/source/PluginHandler/Module.cpp
yanburman/sjcam_raw2dng
gpl-2.0
6,540
279
codeparrot/github-code
6e4bed65bf81f7a9ab16bbf7c4f4729ec15545f12075f6698688dbca62f740d3
package storm.starter.trident.homework.state; import storm.trident.operation.TridentCollector; import storm.trident.state.BaseStateUpdater; import storm.trident.tuple.TridentTuple; import java.util.ArrayList; import java.util.List; /** * Updater class that updates the state with the new tweets. * Created by Parth ...
Java
apache-storm-0.9.3/examples/storm-starter/src/jvm/storm/starter/trident/homework/state/TopKStateUpdater.java
parthsatra/TwitterTopKTrends
gpl-2.0
1,167
35
codeparrot/github-code
01c08ee2a7c7965d680f5091a6127fd7520c2f66db1461e601904072ac35f373
<?php /** * @package gantry * @subpackage core.params * @version 3.2.11 September 8, 2011 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2011 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only * * Gantry uses the Joomla Framework (http:...
PHP
libraries/gantry/core/params/overrides/gantrysessionparamoverride.class.php
epireve/joomla
gpl-2.0
3,459
76
codeparrot/github-code
9dce97688eaa017d6d75b8b69f6371cabddd1909af85914ccddb0a6ef9da77bf
<?php /** * Shows basic event infos and countdowns. * * @param array $event_config The event configuration * @return string */ function EventConfig_countdown_page($event_config) { if ($event_config == null) { return div('col-md-12 text-center', [ heading(sprintf(_('Welcome to the %s!'), '<...
PHP
includes/view/EventConfig_view.php
froscon/engelsystem
gpl-2.0
5,816
163
codeparrot/github-code
9846cb5609355f0211d2bac8704dae53bca55052bf10c40ce893d53fd35cff4f
"""Module computes indentation for block It contains implementation of indenters, which are supported by katepart xml files """ import logging logger = logging.getLogger('qutepart') from PyQt4.QtGui import QTextCursor def _getSmartIndenter(indenterName, qpart, indenter): """Get indenter by name. Available...
Python
qutepart/indenter/__init__.py
amirgeva/coide
gpl-2.0
8,924
235
codeparrot/github-code
c6b81adec8df2e5cf33ebbf9588940137c265407b246f9d8080451ee2ff420bb
#ifndef _SS_CONSTS_HPP_ #define _SS_CONSTS_HPP_ #include "StrideSearchConfig.h" namespace StrideSearch { /// Meters per second to Kilometers per hour conversion factor static const Real MPS2KPH = 3.6; /// Knots to meters per second conversion factor static const Real KTS2MPS = 0.5144444; /// Nauti...
C++
src/SSConsts.hpp
pbosler/StrideSearch
gpl-2.0
1,435
41
codeparrot/github-code
dea00e7e7d268ed2aa194aabf433a3f4079e9e28fab2e7ba87dc9ea450f88122
package eu.ttbox.geoping.ui.admob; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; import android.view.View; import com.google.android.gms.ads.AdListener; import com.google.android.gms.ads.AdR...
Java
geoPing/src/main/java/eu/ttbox/geoping/ui/admob/AdmobHelper.java
gabuzomeu/geoPingProject
gpl-2.0
7,327
166
codeparrot/github-code
409e52a2a8286d15f476c041d52eb399f5ff292c1b2983201e645efcfe970801
package org.cohorte.utilities.security; /** * @author ogattaz * */ public class CXPassphraseBuilder { /** * @param aValue * @return * @throws InstantiationException * @throws CXPassphraseSchemeException */ public static IXPassphrase buildB64(final IXPassphrase aPassphrase) throws InstantiationExcept...
Java
org.cohorte.utilities/src/org/cohorte/utilities/security/CXPassphraseBuilder.java
isandlaTech/cohorte-utilities
gpl-2.0
2,174
94
codeparrot/github-code
d5e461a20de0a4e8f95cd30ab58c493df34362d70ad9be7789a037ef554af7b9
'''Manual check (not a discoverable unit test) for the key import, to identify problems with gnupg, gpg, gpg1, gpg2 and so on''' import os import shutil from gnupg import GPG def setup_keyring(keyring_name): '''Setup the keyring''' keyring_path = os.path.join("test", "outputdata", keyring_name) # Delet...
Python
test/check_key_import.py
activityworkshop/Murmeli
gpl-2.0
1,429
38
codeparrot/github-code
df3e3358b9c5485adf47bcab4733e49feb42328f2f0ff427e50a152506afc4a9
#!/usr/bin/python """ Since functions are function instances you can wrap them Allow you to - modify arguments - modify function - modify results """ call_count = 0 def count(func): def wrapper(*args, **kw): global call_count call_count += 1 return func(*args, **kw) return wrapper def ...
Python
generator-decorator/decorator.py
hiteshagrawal/python
gpl-2.0
4,681
222
codeparrot/github-code
30fc6bb2589c74cf1ded8424137b4635ef42587285d20dbf11a1561083fc2e72
<?php // ini_set('display_errors','1'); function nzshpcrt_getcategoryform($catid) { global $wpdb,$nzshpcrt_imagesize_info; $product = $wpdb->get_row("SELECT * FROM `".WPSC_TABLE_PRODUCT_CATEGORIES."` WHERE `id`=$catid LIMIT 1",ARRAY_A); $output = ''; $output .= "<div class='editing_this_group form_table'>"; ...
PHP
wp-content/plugins/wp-e-commerce/admin-form-functions.php
alx/SimplePress
gpl-2.0
37,491
865
codeparrot/github-code
4ecc2cb0439961f98e9873210439223c8b1c6da536529ebb2bf3e9e4c76b6ac1
////////////////////////////////////////////////////////////////////////////// // oxygensizegrip.cpp // bottom right size grip for borderless windows // ------------------- // // Copyright (c) 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr> // // Permission is hereby granted, free of charge, to any person obtaining a...
C++
kwin/clients/oxygen/oxygensizegrip.cpp
mgottschlag/kwin-tiling
gpl-2.0
6,748
236
codeparrot/github-code
3b444dd811df8543cd7119c3768bffd160db401e74d5cfef7e8898ea5456a2d6
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace gokiTagDB { public class Settings { public static float[] zoomLevels = new float[7] { .25f, .50f, .75f, 1.0f, 1.25f, 1.5f, 2.0f }; public static int[] updateIntervals = n...
C#
gokiTagDB/Settings.cs
gokiburikin/gokiTagDB
gpl-2.0
3,780
148
codeparrot/github-code
ff7d520deac29adaeb6ac93e4452d354a5fa969296b96f6b87dad734af180a7f
/**************************************************************************** Copyright 2011 Jeff Lamarche Copyright 2012 Goffredo Marocchi Copyright 2012 Ricardo Quesada Copyright 2012 cocos2d-x.org Copyright 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charg...
C
cocos2d/cocos/renderer/CCGLProgram.h
SubwayRocketTeam/Prototype
gpl-2.0
14,252
367
codeparrot/github-code
849f18c1d048a05b519c360c4172c9d6f452ce1338a7a835fcf8333a875d6528
<?php namespace UmnLib\Core\XmlRecord; class NlmCatalog extends Record { // Must be an id type that uniquely identifies the record, // usually the record-creating organization's id. public static function primaryIdType() { return 'nlm'; } // Must return array( 'type' => $type, 'value' => $value ) pa...
PHP
src/NlmCatalog.php
UMNLibraries/xml-record-php
gpl-2.0
1,268
46
codeparrot/github-code
d70d6e20725d58aa634cd653cf644f491dbc6ab2608d9a51fcb711142f02c2d6
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04...
C++
src/RIGID/fix_rigid.cpp
pdebuyl/lammps
gpl-2.0
91,201
2,803
codeparrot/github-code
71619f048e87ebabaca75489e10012f2a1f872d06c46d427c3a72783eb20bf9a
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="ResourceList.cs" company="Tygertec"> // Copyright © 2016 Ty Walls. // All rights reserved. // </copyright> // <summary> // Defines the ResourceList type. // </summary> // --...
C#
TW.Resfit.Core/ResourceList.cs
tygerbytes/ResourceFitness
gpl-2.0
2,521
93
codeparrot/github-code
50f6767db28b00369469088ae5666613a00663880449a54a1b4e4b6ebef88426
package mnm.mcpackager.gui; import java.io.File; import javax.swing.filechooser.FileFilter; public class JarFilter extends FileFilter { @Override public boolean accept(File f) { if (f.isDirectory()) return true; return getExtension(f).equalsIgnoreCase("jar"); } @Override...
Java
src/main/java/mnm/mcpackager/gui/JarFilter.java
killjoy1221/MCPatcher-Repackager
gpl-2.0
656
32
codeparrot/github-code
d84d306058ea7d59ec3e57e705d97ca11133365bf2f69c59b06d8c52fbf3fc9b
/*************************************************************************** * Copyright (C) 2008-2017 by Andrzej Rybczak * * electricityispower@gmail.com * * * * This pr...
C
src/curses/menu.h
KoffeinFlummi/ncmpcpp-vim
gpl-2.0
16,896
519
codeparrot/github-code
78c08d15b07e7746189957f08f291da1e1e0ce143149c2ebcb7c07a1a70f36ad
/* This file is part of calliope. * * calliope 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. * * calliope is distributed ...
Java
src/calliope/handler/post/AeseXMLImportHandler.java
discoverygarden/calliope
gpl-2.0
5,684
122
codeparrot/github-code
59578c90c85e0024926130d2dc36d9ab0a577d9181ab3ab0677f1714d1196ec0
/**************************************************************** * This file is distributed under the following license: * * Copyright (C) 2010, Bernd Stramm * * 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 ...
C++
chronicon/src/shortener.cpp
berndhs/chronicon
gpl-2.0
3,400
118
codeparrot/github-code
d0cb7953f45b09d9c29c5ed46e27e5cd0eb7ac1b84699fff94b3ad4548b0f736
<?php // $Id$ require_once("../../config.php"); require_once("lib.php"); require_once($CFG->libdir.'/gradelib.php'); $id = required_param('id', PARAM_INT); // course if (! $course = get_record("course", "id", $id)) { error("Course ID is incorrect"); } require_course_login($cour...
PHP
mod/assignment/index.php
IOC/moodle19
gpl-2.0
4,258
116
codeparrot/github-code
2083242aeca55da701be153c0a737a349015bf80fcc0e85118cc1e011abfd0da
void RedboxFactory::add (Addr addr, ActionType t) { switch (t) { case ActionType::RD8 : return add_read (addr, 1); case ActionType::RD16 : return add_read (addr, 2); case ActionType::RD32 : return add_read (addr, 4); case ActionType::RD64 : return add_read (addr, 8); case A...
C++
src/redbox-factory.hpp
cesaro/dpu
gpl-2.0
3,512
131
codeparrot/github-code
b225d5c6fbf4a09c8bc8e1e5918a1789c7201e73ddd37d4e0052b04e231bbefb
// This file is part of VideoPad. // // VideoPad 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. // // VideoPad is dist...
C
DirectShow/AudioCaptureDevice.h
nonoo/videopad
gpl-2.0
1,898
59
codeparrot/github-code
16d22ec1a579cab426732756e7d1c39dc844d17dfec91c37fd7d24cb7f8296e6
#ifndef CONTROLPANEL_INCLUDED #define CONTROLPANEL_INCLUDED #include <qwidget.h> //Added by qt3to4: #include <Q3GridLayout> #include <list> #include <q3frame.h> #include <qlayout.h> #include <qlabel.h> class Control; class MetaGear; class GearControl; class ControlPanel : public QWidget { public: ControlPanel(QWi...
C
src/core/ControlPanel.h
sofian/drone
gpl-2.0
742
40
codeparrot/github-code
8aa432cf471e4948ef2a038a6e30ea9149a7a66365bc2c6d5af13ee5c05007b6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>站点列表</title> <link rel="stylesheet" href="../layui/css/layui.css"> <link type="text/css" rel="styleSheet" href="...
HTML
html/baiyan_web_pc/html/siteList.html
xiangxik/xiangxik.github.io
gpl-2.0
5,208
181
codeparrot/github-code
a0ef97daff1da891965ed971b0be3ba1c5bed499c691d76d3af60ea64383ca9f
{% load i18n %} <ul class="nav nav-tabs"> <li id="tab-basic"> <a href="{% url 'settings:basic-setting' %}" class="text-center"><i class="fa fa-cubes"></i> {% trans 'Basic setting' %}</a> </li> <li id="tab-email" > <a href="{% url 'settings:email-setting' %}" class="text-center"><i class="fa...
HTML
apps/settings/templates/settings/_setting_tabs.html
zsjohny/jumpserver
gpl-2.0
1,483
38
codeparrot/github-code
d6ff19dc03b2d05e9c557c6d2f25846da269e2faffa48c9be5630011ad58f976
<?php if(!defined('kernel_entry') || !kernel_entry) die('Not A Valid Entry Point'); require_once('include/data/cls_table_view_base.php'); class cls_view_drupal_registry_d855ab16_bba7_43de_b448_7e9b9d78edec extends cls_table_view_base { private $p_column_definitions = null; function __construct() { $a = func_get_...
PHP
include/data/table_views/cls_view_drupal_registry_d855ab16_bba7_43de_b448_7e9b9d78edec.php
dl4gbe/kernel
gpl-2.0
2,247
52
codeparrot/github-code
691d6043f7b2ba13a2961b4d54409ff37c2b00b854ad43b419999798891c9021
//-------------------------------------------------------------------------- // Copyright (C) 2015-2016 Cisco and/or its affiliates. All rights reserved. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License Version 2 as published // by the Fr...
C++
src/profiler/rule_profiler.cc
Ghorbani-Roozbahan-Gholipoor-Dashti/Snort
gpl-2.0
19,967
741
codeparrot/github-code
bbbfa5c0fe7fea303c71574cb9e9226a7f50fe8f8c3c81969e2bfb629cc7668b
// Copyright (C) 2015 Dave Griffiths // // 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 distri...
C++
src/scheme/interface.cpp
nebogeo/jellyfish
gpl-2.0
22,783
742
codeparrot/github-code
178ff3ce59a9ad561dca2df0deb0978879e61d55f9eaf21c67c6cf6dca333b30
#include "TreeFactory.h" #include "RobotFactory.h" #include "Robot.h" #include "kinematic/Tree.h" #include "kinematic/Enums.h" #include <vector> #include <list> using namespace matrices; using namespace manip_core::enums; using namespace manip_core::enums::robot; namespace factories { const Vector3 unitx(1, 0, 0);...
C++
src/manipulability_core/kinematic/RobotFactory.cpp
heyang123/ManipulabilitySampleTestapp
gpl-2.0
20,561
500
codeparrot/github-code
0dda63dd14b4fdaf662313292fe9e5c84add6d383ab214e65ee5387b6e5a10cc
<!DOCTYPE html> <html lang="en"> <head> <?php ////////////////////////////////////////////////////// ///Copyright 2015 Luna Claudio,Rebolloso Leandro./// //////////////////////////////////////////////////// // //This file is part of ARSoftware. //ARSoftware is free software; you can redistribute it and/or //modify it...
PHP
modulos/back-end/marcas/listarMarcas.php
claudioLuna/arsoftware
gpl-2.0
10,478
291
codeparrot/github-code
cd6235f749c8958fd19165ce5b1b5c8eb2e47db46c908f994a12a459438ef0ac
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Rosegarden A MIDI and audio sequencer and musical notation editor. Copyright 2000-2018 the Rosegarden development team. Other copyrights also apply to some parts of this work. Please see the AUTHORS file and individ...
C++
gui/editors/segment/TrackButtons.cpp
bownie/RosegardenW
gpl-2.0
38,763
1,320
codeparrot/github-code
5a0031e64eb6f5830b5d72f274847a7330666adda3eb19d99ea6e7b9f28697c9
import xml.etree.ElementTree as ET import requests from flask import Flask import batalha import pokemon import ataque class Cliente: def __init__(self, execute = False, ip = '127.0.0.1', port = 5000, npc = False): self.ip = ip self.port = port self.npc = npc if (execute): self.iniciaBatalha() def writ...
Python
cliente.py
QuartetoFantastico/projetoPokemon
gpl-2.0
6,562
225
codeparrot/github-code
72a5134ec6a55afd8c2e68db00d06fcad21e424fc57249379580142b3edf9467
<?php /** * Created by PhpStorm. * User: Anh Tuan * Date: 7/24/14 * Time: 3:45 PM */ global $theme_options_data; $logo_id = $theme_options_data['thim_logo']; // The value may be a URL to the image (for the default parameter) // or an attachment ID to the selected image. $logo_src = $logo_id; // For the default va...
PHP
wp-content/themes/aloxo/inc/header/header_3.php
yogaValdlabs/shopingchart
gpl-2.0
7,564
196
codeparrot/github-code
15aed3b69e33a43398c3de2c561f1ba3ffdac34205c1ea18c434243c27b3d2c5
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
PHP
zend-1.11.2/library/Zend/Log/Writer/Syslog.php
rakesh-sankar/PHP-Framework-Benchmark
gpl-2.0
6,950
268
codeparrot/github-code
667a5440020be54a48bf2fd222343cfc6f63b7734577aa3195f7f16ebb252cb0
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; using SirenOfShame.Lib; using SirenOfShame.Lib.Watcher; using log4net; namespace GoServices { public class GoBuildStatus : BuildStatus { private readonly IEnumerab...
C#
GoServices/GoBuildStatus.cs
MikeMangialardi/SirenOfShame-WithGoPlugin
gpl-2.0
2,919
92
codeparrot/github-code
535802f511b6e1f306c5e047a6861d12a9e6e76073e1098b681c3a68664ef14a
package com.karniyarik.common.util; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import org.apache.commons.lang.StringUtils; import com.karniyarik.common.KarniyarikRepository; import com.karniyarik.common.config.system.DeploymentConfig; import com.karniyarik.common.config...
Java
karniyarik-common/src/main/java/com/karniyarik/common/util/IndexMergeUtil.java
Karniyarik/karniyarik
gpl-2.0
2,586
83
codeparrot/github-code
069757f31a24df1c9a256b79c1cef4e5fa7d85cb17a03d1e647d8c8a67b32945
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading; using Newtonsoft.Json; namespace lit { class HttpTransferModule : ITransferModule { public const string ConnectionRequest = "subscribe"; public const string StatusReq...
C#
lit/Transfer/HttpTransferModule.cs
klapantius/lit
gpl-2.0
4,826
133
codeparrot/github-code
fe110c4ee1f38f84453c8a034a733735ac0e3c3c3de2c1dabbce6f93ea97bc55
// This file is part of par2cmdline (a PAR 2.0 compatible file verification and // repair tool). See http://parchive.sourceforge.net for details of PAR 2.0. // // Copyright (c) 2003 Peter Brian Clements // // par2cmdline is free software; you can redistribute it and/or modify // it under the terms of the GNU Gener...
C++
par2-cmdline/creatorpacket.cpp
milowg/Par-N-Rar
gpl-2.0
2,972
89
codeparrot/github-code
93d66dee47bf2591b8aa2857559706b0d3e4ebc6cf7fef21512a6ff707cff0f0
<!DOCTYPE html> <html itemscope itemtype="http://schema.org/website" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" lang="en"> <head> <title>2010 Vanderbilt Commodores Statistics | College Football at Sports-Reference.com</title> <script type="text/javascript">var sr_gzipEn...
HTML
source_data/2010/stats/Vanderbilt.html
vrivellino/cfs
gpl-2.0
81,049
2,236
codeparrot/github-code
0071faf106d1a111dd16c9bd111fb5eb6f0298ac18e24773b0902d6cfaf58adc
# -*- coding: utf-8 -*- """ nidaba.plugins.leptonica ~~~~~~~~~~~~~~~~~~~~~~~~ Plugin accessing `leptonica <http://leptonica.com>`_ functions. This plugin requires a liblept shared object in the current library search path. On Debian-based systems it can be installed using apt-get .. code-block:: console # apt-g...
Python
nidaba/plugins/leptonica.py
OpenPhilology/nidaba
gpl-2.0
8,244
218
codeparrot/github-code
10f4cfa56ebd19cba102b025a0cb9131330ba9b251db627dde6bb82f75f7de68
/* * Copyright 2009-2012 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gpl-li...
C
drivers/media/video/mxc/capture/ipu_csi_enc.c
zOrg1331/wandboard-kernel
gpl-2.0
10,146
426
codeparrot/github-code
df3bbb3f0b3d5a8c755cda11ff952bd8e3b8bd4269b03494da4e4787ca10e2ac
<?php /** * @version 0.0.6 * @package com_jazz_mastering * @copyright Copyright (C) 2012. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Artur Pañach Bargalló <arturictus@gmail.com> - http:// */ defined('_JEXEC') or die; jimport('jooml...
PHP
components/com_jazz_mastering/models/cadencias.php
lion01/weprob
gpl-2.0
2,696
98
codeparrot/github-code
84260c3247c6ffc617a63cea5fd95940cbf5b53f0bcfc549a5062a4c3a3eeb21
/* * linux/mm/filemap.c * * Copyright (C) 1994-1999 Linus Torvalds */ /* * This file handles the generic file mmap semantics used by * most "normal" filesystems (but you don't /have/ to use this: * the NFS filesystem used to do this differently, for example) */ #include <linux/export.h> #include <linux/compil...
C
mm/filemap.c
shengdie/Dorimanx-LG-G2-D802-Kernel
gpl-2.0
68,410
2,572
codeparrot/github-code
5e1bfa2bceaf48d5c79b5d7dba3b52b0060769c81399e4f09b35e7a0b27138a9
#pragma once #include <Nena\Window.h> #include <Nena\StepTimer.h> #include <Nena\DeviceResources.h> #include <Nena\RenderTargetOverlay.h> #include "TextRenderer.h" namespace Framework { namespace Application { void Start(); void Stop(); struct Window; struct Dispatcher { Framework::Application::Windo...
C
Demo/SimpleText/Framework.h
VladSerhiienko/Nena.v.1
gpl-2.0
2,024
69
codeparrot/github-code
ad9db182b8391b371bbec3892d4d3c0582ba6c75ab8e1295dbd7bfa8b744b92c
/* Map (unsigned int) keys to (source file, line, column) triples. Copyright (C) 2001-2016 Free Software Foundation, Inc. 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, or (at y...
C
libcpp/line-map.c
h4ck3rm1k3/gcc-1
gpl-2.0
71,107
2,241
codeparrot/github-code
5c60474add052877ea380509b1bd334312a9f31ddac8843d613fb92eb39d6fbb
#include "Card.h" #include "Game.h" #include <iostream> #include <array> #include <string> #include <vector> #include <algorithm> #include <random> #include <cstdlib> #include <ctime> using namespace std; using namespace zks::game::card; int test_deck() { CardDeck deck(1); CardDeck d1, d2; deck.shuffle(); cou...
C++
src/card/main.cpp
jimzshi/game
gpl-2.0
1,866
106
codeparrot/github-code
7c8ec7750b9008a88cb85805f69624e4f36239c70a8440956211c8f8cff4520b
<?php /* @particles/assets.html.twig */ class __TwigTemplate_299c183811cc71a2e64a3daab6e1f6fca93d29687649f11bd1c1431814d9f4f7 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("@nucleus/...
PHP
cache/gantry5/g5_hydrogen/twig/f3/f36bf52c1bc96552cfcecedfc074a62f36b34d410df8d972a61f3bb3c60d3ea1.php
JozefAB/neoacu
gpl-2.0
19,381
381
codeparrot/github-code
883bada14e0873bffd2f66e12b4fe090042a581c7e4f60488d7530bda9343c31
/* * libquicktime yuv4 encoder * * Copyright (c) 2011 Carl Eugen Hoyos * * This file is part of FFmpeg. * * FFmpeg 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 2.1 of the L...
C
src/lib/libffmpeg/libavcodec/yuv4enc.c
tojo9900/vice
gpl-2.0
2,758
92
codeparrot/github-code
45c3abaf142951bd2ffb5a3f929ef04a0be3a707e766e15526bb6e559aa6289e
/* * Copyright (C) 2005-2012 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
C
src/game/Path.h
wongya/mangos
gpl-2.0
2,672
85
codeparrot/github-code
8d6e1b2e598dfe5538fb7fa566c31b2a2d5e64afadc10448bb966c20ad5f3cc2
/* * arch/s390/kernel/sys_s390.c * * S390 version * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Thomas Spatzier (tspat@de.ibm.com) * * Derived from "arch/i386/kernel/sys_i386.c" * * This...
C
arch/s390/kernel/sys_s390.c
Jackeagle/android_kernel_sony_c2305
gpl-2.0
4,389
152
codeparrot/github-code
a5d031ee398a3c9181e03e224f3e9b209518c2973f1ff07635f0c326e9964474
# -*- coding: utf-8 -*- # from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.exceptions import MethodNotAllowed from rest_framework.response import Response from common.const.http import POST, PUT from common.mixins.api import CommonApiMixin from common.permissions im...
Python
apps/tickets/api/ticket.py
skyoo/jumpserver
gpl-2.0
2,796
77
codeparrot/github-code
d68bfb7aae174dbd943d681b203d87d80172be8d1797c1f31810a161c114fd42
/* * GIT - The information manager from hell * * Copyright (C) Linus Torvalds, 2005 * Copyright (C) Johannes Schindelin, 2005 * */ #include "cache.h" #include "exec_cmd.h" #include "strbuf.h" #include "quote.h" typedef struct config_file { struct config_file *prev; FILE *f; const char *name; int linenr; int...
C
config.c
Devindik/origin
gpl-2.0
40,138
1,726
codeparrot/github-code
3af3d8f0408c819d04762ed16f8a89203d9b7372f3a92948f1394d18790c617e
#ifndef BZS_DB_PROTOCOL_HS_HSCOMMANDEXECUTER_H #define BZS_DB_PROTOCOL_HS_HSCOMMANDEXECUTER_H /*================================================================= Copyright (C) 2013 BizStation Corp All rights reserved. This program is free software; you can redistribute it and/or modify it under the term...
C
source/bzs/db/protocol/hs/hsCommandExecuter.h
bizstation/transactd
gpl-2.0
6,401
231
codeparrot/github-code
c6efa94f55ef422ab7c844708f39ab540dde27d1709ffd7aaedadbe41a2a5572
/* * Copyright (C) 2014-2017 StormCore * * 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 dis...
C++
src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_twinemperors.cpp
Ragebones/StormCore
gpl-2.0
18,489
609
codeparrot/github-code
3f5fdd2ffaeb0969514f3bb296c73747a50ebcf097fb3e06aa3398295a163f76
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
C
engines/sci/engine/selector.h
chrisws/scummvm
gpl-2.0
7,219
194
codeparrot/github-code
953797d797e9e423fdda4af5d70dd16602a3bf09ce72e179b865032bbc65a189
/* $Id: bitops.h,v 1.1.1.1 2004/06/19 05:02:56 ashieh Exp $ * bitops.h: Bit string operations on the V9. * * Copyright 1996, 1997 David S. Miller (davem@caip.rutgers.edu) */ #ifndef _SPARC64_BITOPS_H #define _SPARC64_BITOPS_H #include <asm/byteorder.h> extern long ___test_and_set_bit(unsigned long nr, volatile v...
C
include/asm-sparc64/bitops.h
romanalexander/Trickles
gpl-2.0
7,493
290
codeparrot/github-code
55ea57df43964e3bf47fb3cdc13586575f9004dd3566586f966a0f40703effc6
#ifndef RENDERENVCONSTS_H_INCLUDED #define RENDERENVCONSTS_H_INCLUDED /* * consts */ /* The following rendering method is expected to engage in the renderer */ /** \brief available renderer type */ enum PreferredRendererType { RendererUndeterminate, /**< a memory block with undefined renderer */ ...
C
include/x3d/renderenvconsts.h
DaviesX/x3ddemoscene
gpl-2.0
2,254
67
codeparrot/github-code
a6d72ec348defde998f30621b4e9beb79b5ad2e035759c10ca904d5b0c27f600
using System; using System.Collections.Generic; using System.Data; using System.Data.SQLite; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; namespace VariablesManager { public partial class Form1 : Form { private string _selectedTm; private...
C#
VariablesManager/VariablesManager/Form1.cs
sdl/Sdl-Community
gpl-2.0
13,946
420
codeparrot/github-code
0866a9b1d438afcc164d16ed0019a64a6a39033366de3160253dbc18d164bdbf
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE"> <meta http-equiv="Content-Type...
HTML
logs/meng/q149395.html
ForAEdesWeb/AEW25
gpl-2.0
17,778
431
codeparrot/github-code
97c9fcd267997331cbb3f12180943ffcdd2f1241b1b6b3726570fc3a13e8ef8e
package org.mo.game.editor.face.apl.logic.form; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Element; import com.lowagie.text.Font; import com.lowagie.text.HeaderFooter; import com.lowagie.text.PageSize; import com.lowagie.text.Paragraph; import com.lowagie.text....
Java
mo-gm-develop/src/editor-face/org/mo/game/editor/face/apl/logic/form/FWebFormPdfServlet.java
favedit/MoPlatform
gpl-2.0
5,506
154
codeparrot/github-code
dc1f5857e3d2e9f11670aa51d08e1cb42ffedac3700df6a58624fb1e378b6608
<?php /** * @package Zen Library * @subpackage Zen Library * @author Joomla Bamboo - design@joomlabamboo.com * @copyright Copyright (c) 2013 Joomla Bamboo. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @version 1.0.2 */ /* * Adapted from Mi...
PHP
libraries/zen/uri/rewriter.php
fenix20113/homework3
gpl-2.0
7,740
278
codeparrot/github-code
558e1d19131aa118aea6571619b6f6489d12862d6bcdc24056c5f305837f6cec
package com.lonebytesoft.thetaleclient.api.model; import android.os.Parcel; import android.os.Parcelable; import com.lonebytesoft.thetaleclient.api.dictionary.CompanionSpecies; import com.lonebytesoft.thetaleclient.util.ObjectUtils; import org.json.JSONException; import org.json.JSONObject; /** * @author Hamster ...
Java
app/src/main/java/com/lonebytesoft/thetaleclient/api/model/CompanionInfo.java
hamsterxc/TheTaleClient
gpl-2.0
2,364
80
codeparrot/github-code