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
4c43b6b1f95a71531f4ded157a02dd014180db9f4e642aa226c42c18915a8202
/* * kernel/sched/debug.c * * Print the CFS rbtree * * Copyright(C) 2007, Red Hat, Inc., Ingo Molnar * * 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. */ #include <linux/pro...
C
kernel/sched/debug.c
franciscofranco/one_plus_one
gpl-2.0
12,094
513
codeparrot/github-code
97e69645a2b1d06ac016fe6ad20b401fb0a7eb9bb14ac97f8d18cccf15908d06
#!/usr/bin/env python #coding=utf-8 import sys sys.path.append("..") import urllib import myjson from datetime import datetime, date, timedelta import time from define import * from data_interface.stock_dataset import stock_dataset class turtle(object): """ turtle model """ def get_mean(self, data, ...
Python
model/turtle.py
icemoon1987/stock_monitor
gpl-2.0
6,205
188
codeparrot/github-code
3487b8493dedc221ea5c2e9795d6a318dabbaeb52f9c5921906dab2db8649192
<!doctype html> <html class="theme-next mist use-motion" lang="zh-Hans"> <head> <meta charset="UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <meta http-equiv="Cache-Control" content="no-transform" /> <...
HTML
tags/python/index.html
taogeT/taogeT.github.io
gpl-2.0
18,729
767
codeparrot/github-code
8a4d278d235d97f9f95c81a1660b4271e67752d2786775ad23e834d72e47ef22
#include "upower.h" #include <cstdio> using namespace Keyboard; UPower::UPower() : DBus(G_BUS_TYPE_SYSTEM, "org.freedesktop.UPower","/org/freedesktop/UPower/KbdBacklight","org.freedesktop.UPower.KbdBacklight") { } UPower::~UPower() { } int UPower::backlight() { return getInt("GetBrightness"); } void UPower::b...
C++
src/kbd/upower.cpp
Kukunin/lightum-ng
gpl-2.0
606
36
codeparrot/github-code
f29d8349df205a442c53afce60a1a9ca9ef3dd9fbb53d327794b3b0a19661aff
/*********************************************************************/ // dar - disk archive - a backup/restoration program // Copyright (C) 2002-2052 Denis Corbin // // 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 F...
C++
src/libdar/memory_pool.cpp
simon-el/dar-code
gpl-2.0
5,459
224
codeparrot/github-code
0bd258dd7779f1b95798ac46edb9066d0a41ea16d9c27a0e3bb4763327fd286a
/* * linux/include/asm-armnommu/uaccess.h * * Copyright (C) 1997-1999 Russell King * Copyright (C) 2003 Hyok S. Choi, Samsung Electronics Co.,Ltd. * 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...
C
include/asm-armnommu/uaccess.h
iPodLinux/linux-2.6.7-ipod
gpl-2.0
11,822
423
codeparrot/github-code
a2a8c49559db28085edbd8d236ff9722739271a10d2b3c3d1c67de33adb5e7fe
#!/usr/bin/env python """Handle records from /proc/self/status data files""" import regentest as RG import ProcHandlers as PH PFC = PH.ProcFieldConstants PDC = PH.ProcDataConstants # --- # pylint: disable=R0914 def re_self_status(inprecs): """Iterate through parsed records and re-generate data file""" _...
Python
regentest/self_status.py
cnamejj/PyProc
gpl-2.0
4,347
144
codeparrot/github-code
1ee76ba14f13a14058ca95b604241ce76f8b524747861a200a6e1b81093cdcbe
/** * Safe Pad, a double encrypted note pad that uses 2 passwords to protect your documents and help you keep your privacy. * * Copyright (C) 2014 Stephen Haunts * http://www.stephenhaunts.com * * This file is part of Safe Pad. * * Safe Pad is free software: you can redistribute it and/or modify it ...
C#
Safe Pad.Tests.Unit/DomainObjects/Notebook/DocumentTests.cs
stephenhaunts/SafePad
gpl-2.0
4,050
117
codeparrot/github-code
9f8ab5814e4ebc78305100c2739031f9c8cdb01cc340538fd42486faa96e3fc8
namespace PoL.WinFormsView.Utils { partial class SavedGameItem { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param nam...
C#
PoL.WinFormsView/Utils/SavedGameItem.Designer.cs
calvinkwong/pol-the-game
gpl-2.0
9,122
198
codeparrot/github-code
0f7e7bd5ed2f74accd8c21e53186f2dad7fc034b39f14eecdd66de12771c130c
/** * Registry for row actions * * Plugins can call DataTable_RowActions_Registry.register() from their JS * files in order to add new actions to arbitrary data tables. The register() * method takes an object containing: * - name: string identifying the action. must be short, no spaces. * - dataTableIcon:...
JavaScript
piwik/plugins/CoreHome/templates/datatable_rowactions.js
cjdru-association/d6-website
gpl-2.0
11,786
384
codeparrot/github-code
fd384f16c33a52de332cfd0ee0ed3b0a99ce60859f72a0b8280992dbc8b331ed
--<<card 导表开始>> local super = require "script.card.fire.card145007" ccard245007 = class("ccard245007",super,{ sid = 245007, race = 4, name = "饥饿的秃鹫", type = 202, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, m...
Lua
script/card/fire/card245007.lua
sundream/gamesrv
gpl-2.0
2,210
96
codeparrot/github-code
22892a8756ca5abede6f55f7c0f6f4c223cf2be90fb9ef04a00d49db01703c8b
import Graphics.UI.Gtk hiding (Settings) import Data.Time.Clock.POSIX import Data.Time import System.Directory import Control.Exception import System.Locale (defaultTimeLocale) import Data.IORef import Control.Monad (when,forM) import Data.List import Text.Printf iDuration = 30 rDuration = 120 amountOfIntervals = rDur...
Haskell
code/settings.hs
jsavatgy/hatupist
gpl-2.0
19,256
747
codeparrot/github-code
a00b9ba943f259158e14f3df02f4a54a7461899d58f65a3dde13a1a6aef8c1ad
/* * Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com. * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is free software: you can redistribute it and/or modify * it under the terms...
Java
jasperserver-api-impl/engine/src/main/java/com/jaspersoft/jasperserver/api/engine/jasperreports/util/JarConnection.java
leocockroach/JasperServer5.6
gpl-2.0
2,178
75
codeparrot/github-code
4dc54b62779a04f2ce9c84f5a82b6efda4e267b4e30e034c2386bfbd84a0b036
<?php define("LaTex_ADMIN", true); if (!is_dir(get_option("latex_cache_path"))) mkdir(get_option("latex_cache_path")); ?> <div class='wrap'> <h2><?php _e('LaTeX for WordPress Options'); ?></h2> <?php if (isset($_REQUEST["update_latex_option"])){ update_option("latex_imgcss", $_REQUEST["latex_...
PHP
wp-content/plugins/latex/latex-admin.php
kenlimmj/ol-wordpress
gpl-2.0
7,593
160
codeparrot/github-code
d52ffcf20d11106f7eff517d8080e66fcc0c75224490be081cdfb638426cf088
/** * Client side language layer * @author Jesper Lindström * @package FusionCMS * @version 6.0 */ var Language = (function() { var self = {}, items = {}; /** * Add a language string * @param String key * @param String file * @param String value */ self.add = function(key, file, value) { if(ty...
JavaScript
application/js/language.js
borgotech/WebpageLegion
gpl-2.0
1,225
79
codeparrot/github-code
e927f33d6c44bd40a6c0ae63b013d4cda4e1008721756439e03f03385abd98d1
/*- * #%L * Fiji distribution of ImageJ for the life sciences. * %% * Copyright (C) 2007 - 2021 Fiji developers. * %% * 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 ...
Java
src/main/java/mpicbg/spim/registration/detection/DetectionStructure.java
fiji/SPIM_Registration
gpl-2.0
1,982
65
codeparrot/github-code
5d16495e28d9b63cb9468618b5bff66c59b54238d28a61f7a9c70fea7039135c
/*********************************************************************** MultiDeviceNavigationTool - Class to use multiple 3-DOF devices for full navigation (translation, rotation, scaling). Copyright (c) 2007-2009 Oliver Kreylos This file is part of the Virtual Reality User Interface Library (Vrui). The Virtual Real...
C++
Vrui/Tools/MultiDeviceNavigationTool.cpp
VisualIdeation/Vrui
gpl-2.0
8,649
257
codeparrot/github-code
e8e51a7762b0a6fef5b513b403de991ec1ae0f147e1c06c1bbc9d73f18f479a4
package com.stereokrauts.stereoscope.mixer.roland.m380.messaging; import com.stereokrauts.stereoscope.mixer.roland.m380.M380Mixer; import com.stereokrauts.stereoscope.model.messaging.api.IMessage; import com.stereokrauts.stereoscope.model.messaging.api.IMessageHandler; import com.stereokrauts.stereoscope.model.messagi...
Java
stereoscope.mixer.roland.m380/src/main/java/com/stereokrauts/stereoscope/mixer/roland/m380/messaging/ChannelAuxMessageHandler.java
stereokrauts/stereoscope
gpl-2.0
1,797
44
codeparrot/github-code
81dfd0ca6b7d4ddbda3bb1e866d1682bd7d5253929887a998b9092be56148353
/** * Copyright (c) 2009--2010 Red Hat, Inc. * * This software is licensed to you under the GNU General Public License, * version 2 (GPLv2). There is NO WARRANTY for this software, express or * implied, including the implied warranties of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. You should have rece...
Java
java/code/src/com/redhat/rhn/frontend/action/kickstart/KickstartTroubleshootingEditAction.java
colloquium/spacewalk
gpl-2.0
4,611
140
codeparrot/github-code
e8bd0a99d610e594adb2012a63e7c2a04ed9bf23065e430a797247c4a7cd062d
<?php /* Copyright 2005 Julien Wajsberg <felash@gmail.com> This file is part of Concert Calendar. Concert Calendar 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, ...
PHP
calendar_soap.php
julienw/calendar
gpl-2.0
2,260
77
codeparrot/github-code
3e4ced2b35d2cfaf1a07577c5c3b18194d0aa99951aa445d08ec85f380f7e6c0
<?php /* Smarty version Smarty-3.1.19, created on 2014-10-01 01:14:50 compiled from "views/index.html" */ ?> <?php /*%%SmartyHeaderCode:2034069665542b307023b222-65563234%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => ar...
PHP
views/_compiled/2c748f2fdac609667a3b5839a0fdf6eced149040.file.index.html.php
wpaix/tacophp
gpl-2.0
3,441
83
codeparrot/github-code
4ccf2a154f3c9e5b79b9745aa8ba66b4b6f46370087b93449cde708d1603f67b
<?php /** * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. */ namespace eZ\Publish\Core\REST\Client\Values\User; use eZ\Publish\API\Repository\Values\User\User as APIUser; /** * Implementation...
PHP
eZ/Publish/Core/REST/Client/Values/User/User.php
ezsystems/ezpublish-kernel
gpl-2.0
3,239
107
codeparrot/github-code
9c10e5e50d6d4d83e41ec150e80ee9439a6b5435e55ba397bdc3e5fd25f22d99
/** * jQuery PageScroll * Version 0.3.2 * * https://github.com/javion25/PageScroll.js * MIT licensed * * Copyright (C) 2015 Javion.me - A project by Javion */ ;(function($,window,document,undefined){ /*说明:获取浏览器前缀*/ /*实现:判断某个元素的css样式中是否存在transition属性*/ /*参数:dom元素*/ /*返回值:Boolean,有则返回浏览器样式前缀,否则返...
JavaScript
demo/js/PageScroll.js
javion25/PageScroll.js
gpl-2.0
9,431
322
codeparrot/github-code
cd23bae3934ad83a669622b2765284ef50abe9ff52e0a79f2d3f02474efabbc2
#include <linux/sched.h> #include <linux/signal.h> #include <linux/spinlock.h> #include <asm/api/macros.h> #include <asm/l4x/signal.h> #include <l4/sys/kdebug.h> #if defined(CONFIG_X86) int l4x_deliver_signal(int exception_nr, int errcode) { siginfo_t info; info.si_signo = SIGSEGV; info.si_errno = 0; info.si_cod...
C
arch/l4/kernel/signal.c
soap-DEIM/l4android
gpl-2.0
1,004
50
codeparrot/github-code
637e592ac79e6b400af32545a3f31921f837e3ba8ae10847bd1495ecbb9eee68
/* Copyright (C) 2001 Kimmo Pekkola 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
Library/Measure.h
testaccountx/testrepo
gpl-2.0
4,778
133
codeparrot/github-code
31c0d30f0543e338e8583dc3a02e1c1269bcdc2c82186877bc6d02b3fc2d84f5
import csv import operator import itertools import math import logger1 import re #main piece of code for calculating & wwriting alignments from processed data def calculateAlignments(utterances, markers, smoothing, outputFile, shouldWriteHeader, corpusType='CHILDES'): markers = checkMarkers(markers) groupedUtterance...
Python
parsers/alignment.py
langcog/alignment
gpl-2.0
7,365
217
codeparrot/github-code
1246fa2ea0b00a08f4777c3d3f36272cac0a92b46eebd957053fd78a92bbf676
/* * ============================================================================ * GNU Lesser General Public License * ============================================================================ * * JasperReports - Free Java report-generating library. * Copyright (C) 2001-2009 JasperSoft Corporation http://www....
Java
jasper352/csb-jasperreport-dep/src/net/sf/jasperreports/charts/xml/JRMeterIntervalFactory.java
delafer/j7project
gpl-2.0
2,381
75
codeparrot/github-code
fab0370f768b3e53261a910c9ed14cbf34780d605e0d894ebc65454715c24a1f
// Copyright (c) 2003,2004,2005,2006,2007,2008,2009,2010,2011 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 ...
C
cgal/include/CGAL/Arr_line_arc_traits_2.h
wschreyer/PENTrack
gpl-2.0
5,058
135
codeparrot/github-code
78f30d3128d64edd3444096ede02b7036a178129dbbfa0f39746d8bcb5649dd7
/* ---------------------------------------------------------------------- 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/SNAP/compute_snad_atom.cpp
timattox/lammps_USER-DPD
gpl-2.0
11,335
378
codeparrot/github-code
f5b207aa0a1270dc4e9f2041d20f6915b1a4aa0bdd3081c62e9bb7d96f41fca5
// license:BSD-3-Clause // copyright-holders:Allard van der Bas /*************************************************************************** vastar.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "in...
C++
src/mame/video/vastar.cpp
GiuseppeGorgoglione/mame
gpl-2.0
5,844
211
codeparrot/github-code
ffdf2072e6bc59171c57be4106cf19e0f1b6fae40f9ebf6ed1645a32bdf57a7c
package sfaci.com.ejemplomapbox; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.mapbox.mapboxsdk.MapboxAccountManager; import com.mapbox.mapboxsdk.maps.MapView; import com.mapbox.mapboxsdk.maps.MapboxMap; import com.mapbox.mapboxsdk.maps.OnMapReadyCallback; /** * Aplicación ej...
Java
EjemploMapbox/app/src/main/java/sfaci/com/ejemplomapbox/MainActivity.java
sfaci/android
gpl-2.0
1,085
37
codeparrot/github-code
8a2b4e765d8f71ec6ca3499306b95476c251ba50cd7ec379b033d9be4d9cb5f3
/* * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 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 ver...
C
src/server/game/Maps/Map.h
Lidocian/SingleCore_TC
gpl-2.0
34,896
881
codeparrot/github-code
43b2168e3073eb9a03cf825a75d487d2b354620ecb3491dc94fda5c0ca57b7d8
package com.github.yeriomin.workoutlog.Adapter; import com.github.yeriomin.workoutlog.Model.Exercise; import java.util.ArrayList; public class ExerciseSet { private final ArrayList<Exercise> exercises = new ArrayList<Exercise>(); public void add(Exercise exercise) { exercises.add(exercise); } ...
Java
app/src/main/java/com/github/yeriomin/workoutlog/Adapter/ExerciseSet.java
yeriomin/WorkoutLog
gpl-2.0
800
31
codeparrot/github-code
481b8b9c8ec6deb325ad7af7078210c304c40052c42b11e24f012bb5aef3bb32
<?php /** * These functions are needed to load WordPress. * * @package WordPress */ /** * Turn register globals off. * * @access private * @since 2.1.0 * @return null Will return null if register_globals PHP directive was disabled */ function wp_unregister_GLOBALS() { if ( !ini_get( 'register_globals' ) ) ...
PHP
wp-includes/load.php
yciabaud/Yoann-Ciabaud.Fr
gpl-2.0
21,347
654
codeparrot/github-code
5de1047780770bc7b9c7b03a1a70db158a4fbf5abf394e88dc498ce7dded8de9
/* * This file is part of the TrinityCore 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 ...
C++
src/server/scripts/Outland/zone_hellfire_peninsula.cpp
TrinityCore/TrinityCore
gpl-2.0
26,128
805
codeparrot/github-code
62125bf9cb90b00a6b6bf12bf32c97538414dd634d7d160d5a62accf7caef3b0
/* * Copyright 2001-2006 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * 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 Fou...
Java
mjavac/langtools/src/share/classes/com/sun/tools/javadoc/JavadocTool.java
unktomi/form-follows-function
gpl-2.0
14,567
370
codeparrot/github-code
fa8b87549968fbd19bad749a357095ec2ac635f3c2387adef8d6c24d3a1ede8f
/** Commands and value for REE service call */ /* This is used by TEE internal. Other TA please don't include this */ #ifndef __REE_SERVICE__ #define __REE_SERVICE__ #define REE_SERVICE_BUFFER_SIZE 128 enum ReeServiceCommand { REE_SERV_NONE = 0, REE_SERV_PUTS, /* Print buffer. */ REE_SERV_USLEEP, /* Sleep us...
C
include/trustzone/tz_cross/ree_service.h
jmztaylor/android_kernel_amazon_ariel
gpl-2.0
1,875
78
codeparrot/github-code
2e80bbac64fa91d053a3cada50d84a8ef7045913f2663bc2f70ed20d25af9496
#-- # =========================================================================== # Copyright (c) 2005-2017 Christopher Kleckner # All rights reserved # # This file is part of the Rio library for ruby. # # Rio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License...
Ruby
lib/rio/ops/stream/input.rb
rio4ruby/rio4ruby
gpl-2.0
7,875
290
codeparrot/github-code
72dd1c863ae8748d1a049865413ebd0ca6353303135b390577955e346b0425f4
/**************************************************************************** ** ** This file is part of the Qtopia Opensource Edition Package. ** ** Copyright (C) 2008 Trolltech ASA. ** ** Contact: Qt Extended Information (info@qtextended.org) ** ** This file may be used under the terms of the GNU General Public Licen...
C
src/libraries/handwriting/profile.h
muromec/qtopia-ezx
gpl-2.0
2,853
101
codeparrot/github-code
8f7108f8c96cdb2ac9089e725b7642989b5ee2de68fdb0be32a1ceca0782289a
package sslnpn.ssl; import java.util.List; import java.util.Arrays; public class NextProtocolNegotiationChooserWithFallback implements NextProtocolNegotiationChooserUsingRawBytes { private byte[][] choices; private byte[] fallback; public NextProtocolNegotiationChooserWithFallback(String fallback,...
Java
src/main/java/sslnpn/ssl/NextProtocolNegotiationChooserWithFallback.java
benmmurphy/ssl_npn
gpl-2.0
1,245
42
codeparrot/github-code
a3135869f7d1bfe265282a5590f637e2a2754a0d7956131a62228d84c2d8e8f8
package at.anchor.game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Vector2; public class FloatingScore { private static final float duration = 0.75f; priv...
Java
core/src/at/anchor/game/FloatingScore.java
wfx/Esthetique-Gems
gpl-2.0
1,648
58
codeparrot/github-code
be52a2f572661fcce55b2c33bb8d62dc3d85b16bcff1773ff78a4e64e16fbca1
# needrestart - Restart daemons after library updates. # # Authors: # Thomas Liske <thomas@fiasko-nw.net> # # Copyright Holder: # 2013 - 2020 (C) Thomas Liske [http://fiasko-nw.net/~thomas/] # # License: # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
Perl
perl/lib/NeedRestart/CONT/machined.pm
liske/needrestart
gpl-2.0
2,413
95
codeparrot/github-code
8a59c7d6d4d04f79d1ac7fa76c7a8ceeca664421a60ab1e4a35af61d5a30d151
/* * drivers/base/power/generic_ops.c - Generic PM callbacks for subsystems * * Copyright (c) 2010 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc. * * This file is released under the GPLv2. */ #include <linux/pm.h> #include <linux/pm_runtime.h> #include <linux/export.h> #ifdef CONFIG_PM_RUNTIME /** ...
C
drivers/base/power/generic_ops.c
Jackeagle/android_kernel_sony_c2305
gpl-2.0
9,170
330
codeparrot/github-code
1cdca9668d3807466c62e026c90c82071e66b295fbd6c55eb91020a2f72635f7
<html> <head> <script type="text/javascript" language="Javascript" src="./listUtils.js"></script> <script> function listCompare() { var listAs = document.getElementById("listA").value; var listBs = document.getElementById("listB").value; var linesA = listAs.split('\n'); var linesB = listBs.split('\n'); var linesAm...
HTML
web/listCompare.html
greatgautam/ListUtils
gpl-2.0
2,746
135
codeparrot/github-code
75ff1326af26abbdc596240f16f0b98cbfd4a730b55a64ed7287e5ca4b52832d
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <errno.h> #include "io_util.h" /* * "Timed" read - timout specifies the # of seconds to wait before * giving up (5th argument to select con...
C
io_util.c
buaaqbh/CMD_SourceCode
gpl-2.0
1,702
79
codeparrot/github-code
b8da686f4637c1e98fb39b8beb1ad527744b2597a1f521e19e36d7cf0d1f97e7
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/TargetApplicationGetter.java
rex-xxx/mt6572_x201
gpl-2.0
2,540
71
codeparrot/github-code
4d9c42e64a038f22066ad0d777a8a199b654abab2fd7b9e08294af584e86ab59
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* * Copyright (C) 2012-2013 Intel Corporation * Copyright (C) 2013-2015 Red Hat 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 Softw...
C
src/wayland/meta-wayland-wl-shell.c
endlessm/mutter
gpl-2.0
25,556
780
codeparrot/github-code
c5984b1fefca34efbfe27f492f3a68c1f9e7dd09e8b18c948fb5f09ba7bb791d
// xConq // Lifecycle management and ser/deser of worlds. // $Id: world.cc,v 1.2 2006/06/02 16:57:43 eric_mcdonald Exp $ /*//////////////////////////// COPYRIGHT NOTICE //////////////////////////////// Copyright (C) 1986-1989 Stanley T. Shebs Copyright (C) 1991-2000 Stanley T. Shebs Copyright (C) 2005-2006...
C++
src/gdl/world.cc
brentjohnson/xconq
gpl-2.0
4,932
184
codeparrot/github-code
d0857f044ecb41005763da0313d508f644b9fcde913335255e2f8e63bc7f18da
/* ************************************************************************** * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice ...
C
package/qca-nss-drv/src/nss_hal/fsm9010/nss_hal_pvt.c
dan82840/Netgear-RBR40
gpl-2.0
18,026
685
codeparrot/github-code
e383cee3efe15842722da24b24afd0bb6433831d4b2ee90113de3d808d8111da
/* * Copyright (c) 2013-2014 Tito Latini * * 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 d...
C
src/rtjack.h
GitoriousLispBackup/incudine
gpl-2.0
4,112
111
codeparrot/github-code
a15e4c51a3de48a2ed4edf2f1adf8eeda66bae6723539a3a48697cd8789c0d40
<?php class TM_EPO_FIELDS_textarea extends TM_EPO_FIELDS { public function display_field( $element=array(), $args=array() ) { return array( 'textbeforeprice' => isset( $element['text_before_price'] )?$element['text_before_price']:"", 'textafterprice' => isset( $element['text_after_price'] )?$element['text...
PHP
wp-content/plugins/woocommerce-tm-extra-product-options/include/fields/class-tm-epo-fields-textarea.php
bsantana/bsantana
gpl-2.0
2,987
69
codeparrot/github-code
6cc899248cb82ab53865c2cdc42570b678d0f97013b7b4c26206281b22b13917
/** @format */ /** * External dependencies */ import { expect } from 'chai'; import { keyBy } from 'lodash'; /** * Internal dependencies */ import { areOrdersLoaded, areOrdersLoading, getOrder, getOrders, getTotalOrders, isOrderLoaded, isOrderLoading, isOrderUpdating, getNewOrders, getNewOrdersRevenue, ...
JavaScript
client/extensions/woocommerce/state/sites/orders/test/selectors.js
Automattic/woocommerce-connect-client
gpl-2.0
12,234
425
codeparrot/github-code
a419a4d548770b9be12b2fcb7f44c322ae8f14852f71a8abbdf059b7453435f1
/* * CombiningRules.cpp * * Created on: Aug 18, 2011 * Author: Martin Uhrin */ // INCLUDES ////////////////////////////////// #include "spl/potential/CombiningRules.h" #include "spl/SSLib.h" #include <map> #include <boost/foreach.hpp> // NAMESPACES //////////////////////////////// namespace spl { names...
C++
src/potential/CombiningRules.cpp
muhrin/SPL
gpl-2.0
2,096
104
codeparrot/github-code
5157733289072cf9ed75c0090af1ffe85b5c238dee8aecc639f2df0dde83a44b
#ifndef __CMU_H__ #define __CMU_H__ #define FIN (24000000) #define CLK27M (27000000) typedef enum { SYSC_INIT_LOW, // ARM 800MHz, BUS 165MHz, DMC 330MHz SYSC_INIT_NOR, // ARM 800MHz, BUS 200MHz, DMC 400MHz SYSC_INIT_HIGH, // ARM 1000MHz, BUS 200MHz, DMC 400MHz SYSC_INIT_VERYLOW, ...
C
cpu/arm_cortexa9/s5pc210/cmu.h
lvfanzai/iTop4412_uboot
gpl-2.0
13,587
593
codeparrot/github-code
1164ad7505b7118654f27c2fa123938db069798999ebec63d905d6d6e0a30fc1
<?php /*Import Friends from Skyrock * You can send private message using Skyrock system to your Friends */ $_pluginInfo=array( 'name'=>'Skyrock', 'version'=>'1.0.7', 'description'=>"Get the contacts from a Skyrock account", 'base_version'=>'1.8.0', 'type'=>'social', 'check_url'=>'http://www.skyrock.com/', 'req...
PHP
sites/all/libraries/OpenInviter/plugins/skyrock.plg.php
edwardyy/aeb
gpl-2.0
5,937
207
codeparrot/github-code
01a9184899d1e5fa476270d78aad5ce1859cbf478cc571f5e7f66e698db67a74
/* value_string.h * Definitions for value_string structures and routines * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Pub...
C
epan/value_string.h
boundary/wireshark
gpl-2.0
4,996
180
codeparrot/github-code
31497c94e34984f15e93160020861281223850d8f450f2a780a223a5ca528eaa
/*=================================================================================== PROGRAMMER: Brett Story, Kyle Falconer FOLDERS: Brett322, Falconer1 BRETT'S TASKS: Creation of 3D world and camera/perspective controls KYLE'S TASKS: Creation and placement of teapots, info window and context menu. COURSE: ...
C++
hws/hw6/hw6.cpp
netinept/CSC-525-Computer-Graphics
gpl-2.0
8,604
319
codeparrot/github-code
acbf07c17210901dfb412b4ac17fa11492d7208cad2dfe11f017b678eee4e434
package org.melati.poem.test; import org.melati.poem.Table; import org.melati.poem.UserTable; /** * A test of the example database which exercises every datatype and table type. * * @author timp */ public class EverythingDatabaseTest extends EverythingTestCase { /** * Constructor for PoemTest. * @pa...
Java
poem/src/test/java/org/melati/poem/test/EverythingDatabaseTest.java
timp21337/melati-old
gpl-2.0
2,613
79
codeparrot/github-code
f9ee27f2136039809bd7fb0fdf219fc672fd731e28cec1f9e382dfa0a4c6f38d
/* Command line option handling. Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any ...
C
gcc/opts.h
Gurgel100/gcc
gpl-2.0
17,683
500
codeparrot/github-code
ffb324b24b5261e56939c28f2e4eecf1d38394f954f334ba177af68407c1fd7b
/* This file is part of the KDE libraries Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org> Copyright (C) 2004 Christoph Cullmann <cullmann@kde.org> based on ktoolbarhandler.cpp: Copyright (C) 2002 Simon Hausmann <hausmann@kde.org> This library is free software; you can redistribute it and/or modify ...
C++
kmdi/kmdi/guiclient.cpp
iegor/kdelibs
gpl-2.0
7,360
231
codeparrot/github-code
2910fea131acc31a5e1c5aab8298eb2e1bf1779f35c25bd331da0aec6d32bbc4
/**************************************************************************************** * Copyright (c) 2009 Nikolaj Hald Nielsen <nhn@kde.org> * * * * This program is free software; you can redistri...
C
src/core-impl/meta/multi/MultiTrack.h
phalgun/amarok-nepomuk
gpl-2.0
4,533
92
codeparrot/github-code
941fc0b1066a1521094bed286d53f1c01b4dfe76becb99f558f12913c88d5665
<?php /* +--------------------------------------------------------------------+ | CiviCRM version 4.6 | --------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2015 | +----------------...
PHP
sites/all/modules/civicrm/CRM/Campaign/Page/Vote.php
acappellamaniac/eva_website
gpl-2.0
5,044
148
codeparrot/github-code
d8e4825e8d3e23dd6d2d49d327a46a0ace1de7e1ba3c160bf4d34c4645e35303
/* * leds_ktd2026.c - driver for KTD2026 led driver chip * * Copyright (C) 2012, Samsung Electronics Co. Ltd. All Rights Reserved. * * Contact: Hyoyoung Kim <hyway.kim@samsung.com> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ...
C
drivers/leds/leds-ktd2026.c
DJSteve/G800F-LL_Kernel
gpl-2.0
27,110
1,074
codeparrot/github-code
85872eed147274f8fc91d82bd381abd53381d552224a3b32031a10a7d8acab09
#include <stdio.h> #include <stdlib.h> #include "avltree.h" #define HEIGHT(tree) ((tree == NULL) ? -1 : (((Node*)(tree))->height)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) int avltree_height(AVLTree tree) { return HEIGHT(tree); } void preorder_avltree(AVLTree tree) { if(tree != NULL) { printf("%...
C++
AVL/C/avltree.cpp
liangjisheng/Data-Struct
gpl-2.0
7,691
343
codeparrot/github-code
7030cf25fc6d84e66c3b56841a93fd2714bab486d77c9543e03096a6e5baeee2
<?php /***************************/ /* Brankic WP SHORT CODES */ /***************************/ function register_button( $buttons ) { array_push( $buttons, "|", "bra_shortcodes" ); return $buttons; } function add_plugin( $plugin_array ) { $plugin_array['bra_shortcodes'] = get_template_directory_uri() . '/...
PHP
includes/bra_shortcodes.php
Sean-Cesmat/Theme
gpl-2.0
28,579
577
codeparrot/github-code
5a46e001b704ee13670c392ecf70c80a756880a26ea5e051d49caf60a0fa51f8
/* * Copyright (C) 2013-2015 DeathCore <http://www.noffearrdeathproject.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any l...
C++
src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_general_husam.cpp
Stenlibg/4.3.4
gpl-2.0
19,698
597
codeparrot/github-code
dd2ff89c858352c74456747b024635910e944812c11c383b83f78daf693cb9ec
/* * USB redirector usb-guest * * Copyright (c) 2011-2012 Red Hat, Inc. * * Red Hat Authors: * Hans de Goede <hdegoede@redhat.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software ...
C
hw/usb/redirect.c
PKUCloud/qemu-1.2.2-replay
gpl-2.0
47,209
1,436
codeparrot/github-code
7c2bea79cc7a2206645089409f161e220881faae56548a7adafad883bdaa3712
######################################################################### # OpenKore - Packet sending # This module contains functions for sending packets to the server. # # This software is open source, licensed under the GNU General Public # License, version 2. # Basically, this means that you're allowed t...
Perl
src/Network/Send/kRO/RagexeRE_2011_11_22a.pm
OpenKore/OpenKore
gpl-2.0
4,248
132
codeparrot/github-code
8185a0c76f83106a408f86cf5281da86d7c0085931ff2ec54881328c7ab1a4b5
<?php // This file is part of Esprit, a web Learning Management System, developped // by the Unite de Technologie de l'Education, Universite de Mons, Belgium. // // Esprit is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2, // as published...
PHP
src/sousactiv/collecticiel/ressource_evaluation-tuteurs.php
Ced-le-pingouin/esprit-mirror
gpl-2.0
3,332
106
codeparrot/github-code
d972d5ed83f4b59a867fc0b6ffca143c437df584261edd75a933e7aa419bd600
/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use of th...
C
Src/Board/nrf6310/gzll/gzll_ack_payload/main_device_ack_payload.c
xiaogan-Studio/OpenCloudEnvMonitor
gpl-2.0
5,648
167
codeparrot/github-code
1a4d575477b4ccd96d9939dfdf5e8805b1832619b6eeddd1b52827995d35a769
<?php /** * FILE: register.php * Created on Feb 12, 2013 at 7:31:02 PM * Author: Mr.Vibe * Credits: www.VibeThemes.com * Project: vEstate * License: GPLv2 */ global $vibe_options; if(function_exists('add_image_size')){ add_image_size('mini', 128, 999); add_image_size('small', 310, 9999); add_im...
PHP
wp-content/themes/vestate/includes/register.php
ielijose/grupoprediac
gpl-2.0
16,108
451
codeparrot/github-code
339ca6f9c666bd8d6cf58271615017bff0db80e98a024581b0b7b6c9abb619b4
/** * OWASP Benchmark Project v1.1 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The Benchmark is free software: you can redistribute it and/...
Java
src/main/java/org/owasp/benchmark/testcode/BenchmarkTest12375.java
iammyr/Benchmark
gpl-2.0
2,787
75
codeparrot/github-code
2d383adea97062840e84683cd58b5c4174c41d9db507e51dece5fa92b70e3bce
/* * Wazuh app - React component for building the Overview welcome screen. * * Copyright (C) 2015-2021 Wazuh, 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 2 of th...
TypeScript
public/components/common/modules/overview-current-section.tsx
wazuh/wazuh-kibana-app
gpl-2.0
2,960
102
codeparrot/github-code
7f3db5cc74df71e0d3b96e456c2ebdaba0fb4c49b43360bce5e5a774d6abfa8c
#include "EclipseSQLThemeImporter.h" #include <wx/stc/stc.h> EclipseSQLThemeImporter::EclipseSQLThemeImporter() { SetKeywords0("absolute action add admin after aggregate alias all allocate alter and any are array as asc " "assertion at authorization before begin binary bit blob boolean bo...
C++
Plugin/EclipseSQLThemeImporter.cpp
zuzanak-ondrej/codelite_appmonitor
gpl-2.0
5,602
69
codeparrot/github-code
7d80af976b81b2fffa6b3c7b49eddeadfb1762219e0cdaaf6c9322305353cce8
/* * BRLTTY - A background process providing access to the console screen (when in * text mode) for a blind person using a refreshable braille display. * * Copyright (C) 1995-2017 by The BRLTTY Developers. * * BRLTTY comes with ABSOLUTELY NO WARRANTY. * * This is free software, placed under the terms o...
C
Drivers/Braille/NinePoint/brldefs-np.h
mlang/brltty
gpl-2.0
1,428
52
codeparrot/github-code
d5887e479dc21933f74f45cae01bb90eace7ae5715d2909ecc4f9eff5049041e
/* * stash.c - this file is part of Geany, a fast and lightweight IDE * * Copyright 2008-2011 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> * Copyright 2008-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> * * This program is free software; you can redistribute it and/or mod...
C
src/stash.c
terfect/Geany-plus
gpl-2.0
27,444
903
codeparrot/github-code
3207dfa594c3da0b1077f7ea7c8a80953f1aba022c59e46a3dbb270e28ed7893
""" urlresolver XBMC Addon Copyright (C) 2011 t0mm0 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. ...
Python
lib/urlresolver/plugins/videohut.py
VioletRed/script.module.urlresolver
gpl-2.0
5,173
141
codeparrot/github-code
3bf0a6acc4564d388a2fcc4d0050bd1862be795e8024db70fde738421dbff270
#include "pan1026.h" #include "bt.h" extern pan1026 bt_pan1026; CreateStdOut(bt_pan1026_out, bt_pan1026.StreamWrite); #define BT_TIMEOUT 1000 #define BT_TIMEOUT_CONN 2000 #define BT_TIMEOUT_ACCEPT 200 #define BT_TIMEOUT_TCU_ERR 50 #define BT_TIMEOUT_SEND 100 #define BT_NO_TIMEOUT 0xFFFFFFFF #define DEBUG_BT_...
C++
psychosonda_bt_ng192/src/bluetooth/pan1026.cpp
fhorinek/MotionLog
gpl-2.0
55,045
2,131
codeparrot/github-code
c7069a7d6bc04ae6da8874ece904a2a4422ce1c8685a18be6ab8a9e88cfb3f61
#include "common.h" #include "dbsql.h" #include "dbjson.h" void showjson(const char *interface, const int ifcount, const char mode, const char *databegin, const char *dataend) { interfaceinfo info; timeused_debug(__func__, 1); if (!db_getinterfacecountbyname(interface)) { return; } if (!db_getinterfaceinfo(i...
C
src/dbjson.c
vergoh/vnstat
gpl-2.0
3,348
141
codeparrot/github-code
e94323f794397fe48e2b45be19ba57ca072ddc87e62487322c7788c0ea4ee92e
package com.plywet.imeta.core.log; /** * * @author 潘巍(PeterPan) * @since 2011-7-12 下午03:18:21 * */ public abstract class Log { static LogFactory logFactory; public static synchronized Log getLog(String name) { if (logFactory == null) { ClassLoader classLoader = Thread.currentThread() .getContextC...
Java
imeta3.x/imeta-src/imeta-core/src/main/java/com/plywet/imeta/core/log/Log.java
panbasten/imeta
gpl-2.0
1,631
74
codeparrot/github-code
dfae2f5985f4057d805f8738cec68d7e2b6c3294bcefe6f3e1aecf8f5e55fa55
#include <fstream> #include <vector> #include <stack> #include <stdlib.h> using namespace std; class Tokenizer { public: Tokenizer(istream & input) : currentLine(1), errors(0), inputStream(input) {} char getNextOpenClose(); string getNextID(); int getLineNumber() const; int getErrorCount() const;...
C++
Algothrim/algothrim/Tokenizer.hpp
gudigudi/practice
gpl-2.0
617
31
codeparrot/github-code
a011f5a07d8583411469e4e4d94478b23d7f6ef0c44befc1456b97bae71f1417
/** Euclidean distance */ function distance(p1, p2) { return Math.sqrt((p2.x-p1.x)*(p2.x-p1.x) + (p2.y-p1.y)*(p2.y-p1.y)); }; /** Point distance to line */ function distanceToLine(l, p) { var p1 = new Point(l.x1, l.y1); var p2 = new Point(l.x2, l.y2); return ((Math.abs((l.y2-l.y1)*p.x - (l.x2-l.x1)*p.y + (l.x2*l.y...
JavaScript
src/utils.js
ahmedjolani/mazeman
gpl-2.0
4,379
162
codeparrot/github-code
3fdd470bd47c80b2e62303762e83acf5b7b77a598e9f74299e2f36463fd19635
#include <sys/select.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <pwd.h> #include <shadow.h> #include <crypt.h> #include <lib/base/eerror.h> #include <lib/base/init.h> #include <lib/base/init_num.h> #include <lib/base/wrappers.h> #include <lib/base/nconfig.h> #include <lib/base/cfile.h> ...
C++
lib/dvb/streamserver.cpp
kajgan/stbgui
gpl-2.0
8,595
313
codeparrot/github-code
6dc110a1aadbe0ac4102134e39f5b1c08d3a425cc68858977a1e292882d40130
using MediaBrowser.Common.Net; using MediaBrowser.Controller; using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Dlna; using MediaBrowser.Controller.Drawing; using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Localization; using MediaBrowser.Controller.Session; using MediaBrow...
C#
MediaBrowser.Dlna/PlayTo/PlayToManager.cs
SmakyTaky/MediaBrowser
gpl-2.0
6,687
161
codeparrot/github-code
a9c0c7ae8ab6b5e16dde71f4af628cc6c955d6cd98142973bd83225af1b10556
#include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/param.h> #include <sys/wait.h> #include <sys/select.h> #include <sys/utsname.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <fcntl.h> #include <dirent.h> #include <ctype.h>...
C
src/os_auth/ssl-test.c
dcid/ossec-hids
gpl-2.0
3,220
162
codeparrot/github-code
f513f2c18bf8f42310974043f63a4ebd2230cbf603b339239551c636ed029053
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_ #define REMOTING_HOST_POLICY_HACK_FAKE_POLICY_WATCHER_H_ #include "remoting/host/policy_hack...
C
external/chromium_org/remoting/host/policy_hack/fake_policy_watcher.h
qtekfun/htcDesire820Kernel
gpl-2.0
796
31
codeparrot/github-code
37868757ecd8f367b42e90de388ea4bcc77c7c31036493b5a052f9d916b17cf6
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* NetworkManager -- Network link manager * * 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 th...
C
src/nm-checkpoint.c
mar-kolya/NetworkManager
gpl-2.0
19,910
577
codeparrot/github-code
e9589d98605b5148836ef573ee564db4ae93269fcd15c8bf026c4ae808531217
<?php namespace MaxServ\FalS3\Driver; /* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license informati...
PHP
Classes/Driver/CachedDirectoryIterator.php
MaxServ/t3ext-fal_s3
gpl-2.0
4,033
180
codeparrot/github-code
593d8087f89adf1be8070c4d03d31c2af7c779e9fd4f9dd0fd3f39756d8e70e6
<?php /** * This code is free software; you can redistribute it and/or modify it under * the terms of the new BSD License. * * Copyright (c) 2009-2012, Sebastian Staudt * * @license http://www.opensource.org/licenses/bsd-license.php New BSD License */ require_once STEAM_CONDENSER_PATH . 'steam/communi...
PHP
sites/all/modules/custom/steam_api/steam-condenser/lib/steam/community/l4d/AbstractL4DStats.php
dmitriy-zhluktov/dota2project
gpl-2.0
10,831
247
codeparrot/github-code
ac8668e0662e9fbb0c65b0ae070d9ea854a7105643a1b8b325f4c193a261631b
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * 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 Softwa...
Java
graal/com.oracle.graal.replacements.amd64/src/com/oracle/graal/replacements/amd64/AMD64ConvertSnippets.java
BunnyWei/truffle-llvmir
gpl-2.0
7,744
194
codeparrot/github-code
40d05e18bf25b824c97e9fe24016dcc421f01d5f768b7df37de057a0ccdf6632
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <CL/cl.h> unsigned char *read_buffer(char *file_name, size_t *size_ptr) { FILE *f; unsigned char *buf; size_t size; /* Open file */ f = fopen(file_name, "rb"); if (!f) return NULL; /* ...
C
test/math/pow_float16float16/pow_float16float16_bin.c
xianggong/m2c_unit_test
gpl-2.0
11,495
354
codeparrot/github-code
e6aed593238d1fe9eef282666530f5e80d4ccc73f82554f97180fa872acaa2c3
/* Copyright (C) 2004-2005 Angel Death 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 ho...
C++
src/DialogEngine.cpp
angeld29/morr_text_dll
gpl-2.0
5,172
193
codeparrot/github-code
5d45c624d29f525e978af8257362e68e067a3e783395527fc5413532fed378a3
/* (DC)² - DataCenter Deployment Control Copyright (C) 2010, 2011, 2012, 2013 Stephan Adig <sh@sourcecode.de> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of ...
JavaScript
frontends/frontend-qooxdoo/cs2-frontend/source/class/cs2/frontend/dialogs/SSLCrlView.js
sadig/DC2
gpl-2.0
3,206
83
codeparrot/github-code
a6a50666ed183f34ff1d2ff61c03320a3b29fbd70dc1d37211edd8b3ea859e3f
class Admin::StatisticsController < Admin::BaseController before_filter :check_engineer_rights def index redirect_to :action => 'customers_statistics' end def customers_statistics get_statistics_for 'customers' end def engineers_statistics @engineers = Engineer.find(:all) end def users...
Ruby
app/controllers/admin/statistics_controller.rb
nishad/SimpleTicket
gpl-2.0
1,028
39
codeparrot/github-code
5d7efa6d84110a3a4cce01744975560c9cff07c19725f89f59919e7ca3a4da64
/* * mm/mmap.c * * Written by obz. * * Address space accounting code <alan@lxorguk.ukuu.org.uk> */ #include <linux/slab.h> #include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/shm.h> #include <linux/mman.h> #include <linux/pagemap.h> #include <linux/swap.h> #include <linux/syscalls.h> #include <l...
C
mm/mmap.c
schqiushui/Kernel_Lollipop_GPE5.1_M8ACE
gpl-2.0
49,013
2,129
codeparrot/github-code
5ce5093f3b82e2f80f2a247d56b8d91ced0a793c560335ca6e0fbaa38b8157e4
/* * zsmalloc memory allocator * * Copyright (C) 2011 Nitin Gupta * * This code is released using a dual license strategy: BSD/GPL * You can choose the license that better fits your requirements. * * Released under the terms of 3-clause BSD License * Released under the terms of GNU General Public License Vers...
C
drivers/staging/zsmalloc/zsmalloc.h
F4uzan/f4kernel-u0
gpl-2.0
1,121
45
codeparrot/github-code
137bd13e08b82589b37d28c4aaf930bbf6e715764eb019564b186465059d362d
using Server.Events.Halloween; using Server.Items; using System; namespace Server.Engines.Events { public class PumpkinPatchSpawner { private static readonly Rectangle2D[] m_PumpkinFields = { new Rectangle2D(4557, 1471, 20, 10), new Rectangle2D(796, 2152, 36, 24), ...
C#
Scripts/Services/PumpkinPatch.cs
Argalep/ServUO
gpl-2.0
2,244
72
codeparrot/github-code
7001eb710a32c5af42d1a2ecddd627bcb9bf457acdef3daad630f1287130d781
/** * External dependencies */ import React, { useState, useCallback } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { compose } from 'redux'; import { Button, Card } from '@wordpress/components'; import classNames from 'classn...
JavaScript
client/extensions/woocommerce/woocommerce-services/views/carrier-accounts/dynamic-settings-form.js
Automattic/woocommerce-services
gpl-2.0
5,788
203
codeparrot/github-code
03cde79de274c1e7192f1085ace7cf38854a2f8a63ee8ac35ac29db5b415027e
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * 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 Softwa...
Java
graal/com.oracle.graal.nodes.test/src/com/oracle/graal/nodes/test/ReinterpretStampIntToFloatTest.java
mcberg2016/graal-core
gpl-2.0
3,306
86
codeparrot/github-code
6407830a3017b84d3deb592240d12d40fbb81fde58d729b98d861aedace760d5
<html> <!-- Mirrored from www.w3school.com.cn/tiy/loadtext.asp?f=jseg_pro_object_defining_hybrid_factory_paradigm by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 06:58:25 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=GB2312" /><!-- /Added by HTTrack --> <body>...
HTML
Coding/W3School/W3CN/www.w3school.com.cn/tiy/loadtext5d25.html
platinhom/ManualHom
gpl-2.0
922
33
codeparrot/github-code