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
41b1d5016cacf56b2d1c836b7b0754acdf044a747955d2e68dbb35d76766ab24
<?php /** * Shopping Cart widget class * * @since 3.8 * * @todo Check if widget_wp_shopping_cart_init function is still required? */ class WP_Widget_Shopping_Cart extends WP_Widget { /** * Widget Constuctor */ function WP_Widget_Shopping_Cart() { $widget_ops = array( 'classname' ...
PHP
wp-content/plugins/wp-e-commerce/wpsc-components/theme-engine-v1/widgets/shopping_cart_widget.php
fernando1704vale/iemi
gpl-2.0
4,988
153
codeparrot/github-code
543bc90e55ef3962d33b3052a0c50cb717523d57b4c4471177f5df01f62e9565
#ifndef GGP_STATE_H #define GGP_STATE_H #include "common.h" #pragma pack(1) struct BaseState { Color _winner:2, _just_played:2; bool _game_over:1; void reset() { _winner = NONE; _just_played = WHITE; } Color winner() const { return _winner; } ...
C
engine/state.h
thomasmarsh/ggp
gpl-2.0
808
34
codeparrot/github-code
3e19f0ddd5c7e0fbd060a0eb0beba712c81b77ab0fd918febaa3180a0ef067c2
#!/bin/bash set -eu set -o pipefail # CI would set the log directories, else just create a ./log one LOG_DIR=${LOG_DIR:-log} mkdir -p "$LOG_DIR" rm -f "$LOG_DIR"/{before.txt,current.txt}{,.gz} _dir="$(dirname "$0")" repodir="$(realpath "$_dir/..")" # Runs zuul-server validation layout and log stderr to a file funct...
Shell
utils/zuul-layout-diff.sh
wikimedia/integration-config
gpl-2.0
2,785
92
codeparrot/github-code
b218b51836e0b3057acd04e7db3d68ae6c5b2c632a9ceb89fdb63b653e244107
/* * leds-bd2802.c - RGB LED Driver * * Copyright (C) 2009 Samsung Electronics * Kim Kyuwon <q1.kim@samsung.com> * Kim Kyungyoon <kyungyoon.kim@lge.com> modified * 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 * publishe...
C
drivers/leds/leds-bd2802.c
playfulgod/Kernel_AS85-LG-Ignite
gpl-2.0
32,765
1,294
codeparrot/github-code
91bc64d16befd7278d29b7fec22a40c45111f59e1c03a2d5d4ac83a9f57e50f6
import pdb import math import time from types import * import wx import wx.lib.wxcairo import cairo import rsvg import yang import svg import wx.lib.scrolledpanel as scrolled #from wx.py import shell, #from wx.py import version import dot from common import * from module import Module from entity import * from model ...
Python
src/ide/umlEditor.py
OpenClovis/SAFplus-Availability-Scalability-Platform
gpl-2.0
42,936
1,080
codeparrot/github-code
a1e54a0a77e20b2041ee3ab008bed43d2e683ed0ec0bb2955b757a13eb040221
/****************************************************************************\ ** Exemple de la formation "Temps-reel sous Linux" ** ** ** ** Christophe Blaess 2010-2021 ** ** h...
C
exemples/chapitre-04/example-IV-10.c
Logilin/ilt
gpl-2.0
1,108
42
codeparrot/github-code
be629c208d1103d4f9871009b9c1eb04ce682258d011aed2a8e8c9936dbcd44d
/* this file is part of xreader, a generic document viewer * * Copyright (C) 2004 Martin Kretzschmar * * Author: * Martin Kretzschmar <martink@gnome.org> * * Xreader 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 So...
C
shell/ev-window.h
Piiit/xreader
gpl-2.0
4,806
117
codeparrot/github-code
f4a897351a9f91e5016b3d0dda6a6328bd0b373ddca25a988d1fe4fac06965bd
VERSION = 3 PATCHLEVEL = 4 SUBLEVEL = 110 EXTRAVERSION = NAME = Saber-toothed Squirrel # *DOCUMENTATION* # To see a list of typical targets execute "make help" # More info can be located in ./README # Comments in this file are targeted only to the developer, do not # expect to learn how to build the kernel reading thi...
Makefile
Makefile
DJSteve/G800F-LL_Kernel
gpl-2.0
53,988
1,578
codeparrot/github-code
841c7213fb0eb266f686dc7a87837adbc937a988609e40cbce2ca646ec5b576b
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.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/modules/SD3/scripts/northrend/utgarde_keep/utgarde_keep/instance_utgarde_keep.cpp
mangosthree/server
gpl-2.0
7,608
250
codeparrot/github-code
14b3e3d1f0b57771d9e7fd7b72d4df79834b0d2912f183f2b9b8a12ffc7ac0d6
/* * Copyright 2013-2022 the HotswapAgent authors. * * This file is part of HotswapAgent. * * HotswapAgent 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 *...
Java
plugin/hotswap-agent-osgiequinox-plugin/src/main/java/org/hotswap/agent/plugin/osgiequinox/OsgiEquinoxPlugin.java
HotswapProjects/HotswapAgent
gpl-2.0
10,683
295
codeparrot/github-code
20c5a81305255638e47b1e32850b4ddc41059f2096534d2edbb36a216f710314
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any la...
C
src/server/scripts/Kalimdor/RazorfenDowns/razorfen_downs.h
S-proyect/Emu-S
gpl-2.0
1,196
45
codeparrot/github-code
c47d4e6b4d5a8b96193d8cc150cfc18c95686d6c1418d162bbf2d69a7b36410b
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/err.h> #include <linux/slab.h> #include <linux/i2c.h> #include <linux/hwmon.h> #include <linux/hwmon-sysfs.h> /* Here are names of the chip's registers (a.k.a. commands) */ enum ltc4215_cmd { LTC4215_CONTROL = 0x00, /* rw ...
C
kernel/drivers/hwmon/ltc4215.c
luckasfb/OT_903D-kernel-2.6.35.7
gpl-2.0
7,800
310
codeparrot/github-code
b974b58a3ebd5ae2f9488fceceafed1129807405c2649f95684a7b204365deba
/*************************************************************************** board.h - description ------------------- begin : Wed May 2 2001 copyright : (C) 2001 by Kevin O'Gorman email : kogorman@kosmanor.com...
C
qval/qubicvalidate/board.h
kogorman/qubic
gpl-2.0
5,915
160
codeparrot/github-code
ae4e83b008a2a5645021d9440778b899893273919d668294f8e7e4046378744d
<!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" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>holler for being done! | MS 190: Authorship<...
HTML
190-2006/taxonomy/term/781/index.html
kfitz/machines
gpl-2.0
10,447
153
codeparrot/github-code
43bf45d9129ad3fa266b792697a28d9d8236baa4cb9871dffebad159c9796150
#!/usr/bin/env ruby # -*- coding: utf-8 -*- # # ============================================================================= # # Copyright (C) 2014 by the author(s) # # 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...
Ruby
measure.rb
andre-richter/pcie-lat
gpl-2.0
5,402
199
codeparrot/github-code
1983722c1bc4069d26d7615528cac01117079517d0c6db5b4e27527687bc061e
<?php // Generates semantic classes for BODY element function thematic_body_class( $print = true ) { global $wp_query, $current_user; $c = ''; if (apply_filters('thematic_show_bc_wordpress', TRUE)) { // It's surely a WordPress blog, right? $c = array('wordpress'); } if (a...
PHP
wp-content/themes/thematic/library/extensions/dynamic-classes.php
mariocontext/beautytv3
gpl-2.0
13,126
399
codeparrot/github-code
53b3d26e642b4c72a02fbc552ebc5b322e7a400458c5e9d25285033fc857e77f
/* foldtree.cpp Поиск каталога по Alt-F10 */ /* Copyright (c) 1996 Eugene Roshal Copyright (c) 2000 Far Group All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
C++
far2l/foldtree.cpp
invy/far2l
gpl-2.0
8,972
380
codeparrot/github-code
e9575042799f5ef18410178e955e6ea7d7f09408986a79d08c93ea6129873ac6
/* * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. * Copyright (c) 2008 Dave Chinner * 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. * * This program is d...
C
fs/xfs/xfs_trans_ail.c
hiikezoe/android_kernel_fujitsu_f11d
gpl-2.0
23,949
891
codeparrot/github-code
bf44c2ee923051319e2d1f86c4c0c026d39fd38f36b8bc0a4f7dd4e5125d2737
<?php /* +---------------------------------------------------------------------------+ | OpenX v${RELEASE_MAJOR_MINOR} | | =======${RELEASE_MAJOR_MINOR_DOUBLE_UNDERLINE} | | ...
PHP
www/delivery_dev/al.php
soeffing/openx_test
gpl-2.0
5,253
121
codeparrot/github-code
358bbc571f6462cfc379c0250317a1ca7d5d05405aee471de6dd5b34c3ee3320
package tr.edu.gsu.nerwip.recognition.combiner.votebased; /* * Nerwip - Named Entity Extraction in Wikipedia Pages * Copyright 2011 Yasa Akbulut, Burcu Küpelioğlu & Vincent Labatut * Copyright 2012 Burcu Küpelioğlu, Samet Atdağ & Vincent Labatut * Copyright 2013 Samet Atdağ & Vincent Labatut * Copyright 2014-15 V...
Java
src/tr/edu/gsu/nerwip/recognition/combiner/votebased/VoteCombiner.java
CompNet/Nerwip
gpl-2.0
22,425
675
codeparrot/github-code
9b108b56cb489ad112aa79bc07bcf716b935557a6152e1e35d5f295b201266c4
/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.debug"); dojo.debug = function () {...
JavaScript
ui/dojo/htdocs/dojo/src/debug.js
freemed/freemed
gpl-2.0
2,367
84
codeparrot/github-code
d69101adda3962f228b95d4e52405d804b1bf8ca2df701310db87868f3866d4c
import os import logging import time import ConfigParser from fabric.operations import get from fabric.api import sudo, local, lcd, cd, shell_env from aws_collector.config.config import MAIN_CFG, S3_BUCKET OUTPUT_FILE_FMT = '%s-%s-collect-output.tar' S3_UPLOAD_CMD = 'aws s3 cp --region us-east-1 %s s3://%s/%s' def...
Python
aws_collector/utils/collect.py
andresriancho/collector
gpl-2.0
4,386
126
codeparrot/github-code
3f24f41f7da930d36db3e3997d23975af849013b27b12e9ed95691e31775f562
/* * IPv6formatConvertor.java * * This work 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 work is distributed in the...
Java
iDiscover/netDiscoverer/src/main/java/net/itransformers/idiscover/util/IPv6formatConvertor.java
iTransformers/netTransformer
gpl-2.0
3,204
94
codeparrot/github-code
4f620b9ca01cc25099e60f99f6cf2c535ff50bd66bbff8876dab7216beeb8a18
<?php namespace Drupal\devel\Plugin\Devel\Dumper; use Drupal\Component\Utility\Variable; use Drupal\devel\DevelDumperBase; /** * Provides a DrupalVariable dumper plugin. * * @DevelDumper( * id = "drupal_variable", * label = @Translation("Drupal variable."), * description = @Translation("Wrapper for <a hr...
PHP
modules/contrib/devel/src/Plugin/Devel/Dumper/DrupalVariable.php
cooper-webdesign/cooper.dk
gpl-2.0
1,540
67
codeparrot/github-code
9bc8b75c86897d1d61634685da35a1fc4b86a7728e198a338a878a928a8aed11
--[[ Title: Player Asset files Author(s): LiXizhi Date: 2014/4/23 Desc: buildin asset file and their short names. Only short names is used in movie clip serialization. so that you can change the filename without breaking the movie file in future. use the lib: ----------------------------------------------------------...
Lua
script/apps/Aries/Creator/Game/Entity/PlayerAssetFile.lua
NPLPackages/paracraft
gpl-2.0
14,006
438
codeparrot/github-code
0f5b9812d32957936b580d839b733d994483e9788c8ee5ce35fa35a9a71c532c
/** * * Copyright (c) 2009-2015 Freedomotic team http://freedomotic.com * * This file is part of Freedomotic * * 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, or (at yo...
Java
plugins/devices/twitter/src/main/java/com/freedomotic/plugins/devices/twitter/TwitterActuator.java
bestmazzo/freedomotic
gpl-2.0
3,059
94
codeparrot/github-code
c15eff9997d5355eca2eb18e76a0e7f3250e90d4323ad98c146eba626bac2ff8
/* * MidiAlsaRaw.h - midi-client for RawMIDI via ALSA * * Copyright (c) 2005-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net> * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the...
C
include/MidiAlsaRaw.h
fronin/lmms
gpl-2.0
1,907
91
codeparrot/github-code
fede18dd44d11781c4ae6041a83b0878646c3a525cd55e2aae1fb4aa343bf7e4
// General Bazel-related warnings package warn import ( "fmt" "strings" "github.com/bazelbuild/buildtools/build" ) var functionsWithPositionalArguments = map[string]bool{ "distribs": true, "exports_files": true, "licenses": true, "print": true, "register_toolchains"...
GO
elisp/buildtools/warn/warn_bazel.go
kevintianbalance/.emacs.d
gpl-2.0
5,129
205
codeparrot/github-code
82720d35eb4cb8862d387c74a156015d1490d63e60b155543d50399ad3a687a5
<?php /** * @package admin * @copyright Copyright 2003-2011 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: order.php 18695 2011-05-04 05:24:19Z drbyte $ * * Stock by Attributes 1.5.2 */ clas...
PHP
1_5_3 and 1_5_4/admin/includes/classes/order.php
mc12345678/Stock_By_Attributes_Combined
gpl-2.0
11,165
187
codeparrot/github-code
1f5000a6f8821e33d4887ce5b38e19c9f25f3339077ea1197a4b687ef3385b02
/* * hid2hci : switch the radio on devices that support * it from HID to HCI and back * * Copyright (C) 2003-2010 Marcel Holtmann <marcel@holtmann.org> * Copyright (C) 2008-2009 Mario Limonciello <mario_limonciello@dell.com> * Copyright (C) 2009-2011 Kay Sievers <kay.sievers@vrfy.org> * * This ...
C
tools/hid2hci.c
g-k-r/bluez
gpl-2.0
10,214
434
codeparrot/github-code
79fbdd4fa177d4153f964ae7796244d1f971a132482277f4fe08e310fac7063b
/* * ************************************************************************* * NetworkBrowseFragment.java * ************************************************************************** * Copyright © 2015 VLC authors and VideoLAN * Author: Geoffrey Métais * * This program is free software; you can redistribut...
Java
vlc-android/flavors/tv/src/org/videolan/vlc/gui/tv/browser/NetworkBrowserFragment.java
marek-g/libvlc-signio
gpl-2.0
9,569
259
codeparrot/github-code
fdd6b3b92157c380ff76bcd26087b5ba6b551f8a70132d3b94e7d251d5206ae6
package com.swayam.demo.lambda; import java.math.BigDecimal; public class BankDetail { private int id; private int age; private String job; private String marital; private String education; private String defaulted; private BigDecimal balance; private String housing; private String loan; private String con...
Java
code/lambda-demo/src/main/java/com/swayam/demo/lambda/BankDetail.java
paawak/blog
gpl-2.0
3,071
183
codeparrot/github-code
e73eb3f95552e60c23f0792264772b743800e30e4354c7f9934238d51cc13d1b
<?php namespace Drupal\range\Plugin\Field\FieldType; use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\Form\FormStateInterface; /** * Plugin implementation of the 'range_decimal' field type. * * @FieldType( * id = "range_decimal", * label = @Translation("Range (decimal)"), * descript...
PHP
docroot/modules/contrib/range/src/Plugin/Field/FieldType/RangeDecimalItem.php
darrylri/vintagebmw
gpl-2.0
2,887
99
codeparrot/github-code
d3daf8edc8fbdb7ad3a8e8bb702f9b60c3c2837af4f80821299d25a534a8fd5b
#include "sqlite.h" jfieldID queryArgsCountField; jint sqliteOnJNILoad(JavaVM *vm, void *reserved, JNIEnv *env) { jclass class = (*env)->FindClass(env, "ml/easychad/lax/SQLite/SQLitePreparedStatement"); queryArgsCountField = (*env)->GetFieldID(env, class, "queryArgsCount", "I"); return JNI_VERSION_1_4; } int Java...
C
EasychadProj/jni/sqlite_statement.c
mtwain/Easychad
gpl-2.0
4,613
126
codeparrot/github-code
70568d4f7febdd73563fc7af193dabd301b46243b57a8f7ccdc4a0ab229d336a
(function ($) { /** * Drag and drop table rows with field manipulation. * * Using the drupal_add_tabledrag() function, any table with weights or parent * relationships may be made into draggable tables. Columns containing a field * may optionally be hidden, providing a better user experience. * * Created tableD...
JavaScript
sites/default/files/js/js_cFaNT3_r3XNWP8evGT2r0wG0YkO1eo98zcSgqyKdM2o.js
collishc/mentalsneeze
gpl-2.0
78,434
2,332
codeparrot/github-code
d4031dae3eb5770356659025090c1438ec9297987252d10bfd1f49de64305f84
#include "move.h" #include <cassert> Move::Move() { data_ = 0; } Move::Move(bool color, MoveType type, int origin, int target) { assert(type != PROMOTE && type != PROMO_CAPTURE); data_ = (type) | (color << 3) | (origin << 4) | (target << 15); } Move::Move(bool color, MoveType type, int origin, int targe...
C++
src/move.cpp
HenrySwanson/3d-chess
gpl-2.0
1,008
57
codeparrot/github-code
7feab7dea68aa19303f802e0a4ac603cef4b17186617702117b62dc28688d952
#pragma once namespace YaHTTP { static const char *MONTHS[] = {0,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",0}; //<! List of months static const char *DAYS[] = {"Sun","Mon","Tue","Wed","Thu","Fri","Sat",0}; //<! List of days bool isspace(char c); bool isspace(char c, const std::lo...
C++
ext/yahttp/yahttp/utility.hpp
cyclops1982/pdns
gpl-2.0
16,232
463
codeparrot/github-code
4bb52ea2ee1f7a16507c2e31da0fc0b34917c0374908066a27a6a63765811da3
from simulator import fasthenry as simulator from syntax import * from math import pi, sqrt from simulator import fasthenry as simulator __all__ = ['FastHenry', 'Title', 'Units', 'Default', 'Node', 'Segment', 'Port', 'Freq', 'Equiv'] class FastHenry(list): def __init__(self): list.__init__(self...
Python
syntax/bin/fasthenry.py
raphaelvalentin/qtlayout
gpl-2.0
1,919
51
codeparrot/github-code
d6da3a5e0b77c1c8110b3d66e5202e29b3b28b56fae8a222eccb9f670cd1fe75
template <typename Owner> class FileOwnerCollection { FileOnwerCollection(string& filename); ~FileOnwerCollection(); int addOwner (const Owner& x); int deleteOwner (const Owner& x); int searchOwner (const Owner& x, std::vector<Owner> res); private: string file...
C
File.h
baiming969696/sharedon
gpl-2.0
13,100
588
codeparrot/github-code
9700c2368f92c0b1b1bec5124e63f7ce04b4bd64da5934bd22e70d2c4487968e
<?php /* Plugin Name: Simple Breadcrumb Navigation Plugin URI: http://www.kriesi.at/archives/wordpress-plugin-simple-breadcrumb-navigation Description: A simple and very lightweight breadcrumb navigation that covers nested pages and categories Version: 1 Author: Christian "Kriesi" Budschedl Author URI: http://www.kries...
PHP
wp-content/themes/Karma/truethemes_framework/extended/breadcrumbs.php
rjlchris/network-buckets
gpl-2.0
4,577
172
codeparrot/github-code
8bddd55b631d33c99be5b5c221cc2c36d51bedf90a57e5b51b73599f38c7e1a7
/* * max1619.c - Part of lm_sensors, Linux kernel modules for hardware * monitoring * Copyright (C) 2003-2004 Oleksij Rempel <bug-track@fisher-privat.net> * Jean Delvare <khali@linux-fr.org> * * Based on the lm90 driver. The MAX1619 is a sensor chip made by Maxim. * It reports...
C
drivers/hwmon/max1619.c
evolver56k/xpenology
gpl-2.0
10,433
363
codeparrot/github-code
e06fad26b182031bbf9b1344309fae16779a0c63be4dceb9b9be392b9f2e0a0d
/* * dir.c * Routines for messing about with directories */ #include <sys/fs.h> #include "dos.h" #include <ctype.h> #include <std.h> #include <stdio.h> #include <hash.h> #include <time.h> #include <fcntl.h> #include <abc.h> #include <sys/assert.h> #include <syslog.h> struct node *rootdir, /* Flag special root hand...
C
src/srv/dos/dir.c
vandys/vsta
gpl-2.0
40,682
2,117
codeparrot/github-code
831f7d6dcc0a1571cdc1d538a54b582cade33f90effa7f383f589226a446582c
#include "TskFsMultipleFilesystem.hpp" #include "TskFsDirectory.hpp" #include "misc.hpp" namespace ocfa { namespace tsk { TskFsMultipleFilesystem::TskFsMultipleFilesystem(TSK_IMG_INFO *img,carvpath_entity *cptop,int fscount,AbstractLoopDetector &parentdetector,std::string timesource,bool doslack,bool verbosemeta):ocf...
C++
tree/tskfs/src/TskFsMultipleFilesystem.cpp
DNPA/OcfaModules
gpl-2.0
3,323
81
codeparrot/github-code
bd8b71176fae5b9a75b423b4a8c200c0db59ae7ac2e8f9df37f294fd061ac3cb
/* * Compressed RAM block device * * Copyright (C) 2008, 2009, 2010 Nitin Gupta * * This code is released using a dual license strategy: BSD/GPL * You can choose the licence that better fits your requirements. * * Released under the terms of 3-clause BSD License * Released under the terms of GNU General Publi...
C
drivers/staging/zram/zram_drv.c
RyanAM/gs5-kernel
gpl-2.0
23,290
1,003
codeparrot/github-code
c152d73d4d081f7909aaadf5eccefa1a1cfd964e2903adfda9463936a0e07295
''' Created on 2015. 4. 20. @author: sunabove ''' from abc import ABCMeta, abstractmethod class DroneCmd(object): ''' classdocs ''' __metaclass__ = ABCMeta def __init__(self, cmd): ''' Constructor ''' self.cmd = cmd @abstractmethod def doCm...
Python
lib/cfclient/DroneCmd.py
kdrone/crazyflie-python-client
gpl-2.0
955
59
codeparrot/github-code
7c160d46e058740b77c49f01a13c72a4dabe24b14bbac23684926822a197c61c
/* Copyright (c) 2010-2013, The Linux Foundation. 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 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
C
arch/arm/mach-msm/include/mach/qdsp6v2/apr.h
TeamLGOG/android_kernel_lge_d800
gpl-2.0
4,335
172
codeparrot/github-code
f3dc517a3260121aef87fd532ddb665994b37a5917a86270f9c4ede0c65e1b83
// cae_jack.cpp // // The JACK Driver for the Core Audio Engine component of Rivendell // // (C) Copyright 2002-2015 Fred Gleason <fredg@paravelsystems.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 // publishe...
C++
cae/cae_jack.cpp
radio-helsinki-graz/rivendell
gpl-2.0
45,257
1,660
codeparrot/github-code
479e5baacdb8deb46356d37a129d00b29729c6d233c3d8f59aa92aeff14151d7
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of guh. * * * * Copyrigh...
C
libguh-core/hardware/radio433/radio433transmitter.h
guh/guh
gpl-2.0
2,516
79
codeparrot/github-code
04b03d780515290693e575f43b26028e60e06c93c29b320e652fc20ca1fdd4ff
/* * Copyright (c) 1998-2010 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source is free software; you can redistribute it and/or modify * it under the terms o...
Java
modules/resin/src/com/caucho/ejb/session/StatelessManager.java
christianchristensen/resin
gpl-2.0
6,993
267
codeparrot/github-code
8ff35f3ef77d616ee4e9f827f2ef0b9244642e098a063d2135a25c15ef8b8716
// license:BSD-3-Clause // copyright-holders:Miodrag Milanovic /* DataEast/Sega Version 1 and 2 Main CPU: 6808 @ 4MHz Audio CPU: 68B09E @ 8MHz (internally divided by 4) Audio: YM2151 @ 3.58MHz, MSM5205 @ 384kHz */ #include "emu.h" #include "machine/genpin.h" #include "cpu/m6800/m6800.h" #include "cpu...
C++
src/mame/drivers/de_2.cpp
h0tw1r3/mame
gpl-2.0
34,683
865
codeparrot/github-code
116f93e91131a46d2d505fcdb8425146c28a2eaf4e0833ea5c608fa928e728ee
// drumkv1_config.h // /**************************************************************************** Copyright (C) 2012-2022, rncbc aka Rui Nuno Capela. 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 publishe...
C
src/drumkv1_config.h
rncbc/drumkv1
gpl-2.0
3,670
146
codeparrot/github-code
ce4244f4c8d334b827a810bac12cb5334ea7e21af50b7a48940cc3ab0526090a
<?php /** * @package Joomla.Administrator * @subpackage mod_menu * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; /* @var $menu JAdminCSSMenu...
PHP
administrator/templates/bluestork/html/mod_menu/default_enabled.php
portalgas/site
gpl-2.0
15,488
434
codeparrot/github-code
5ee7491c6a31d414806cb426d6a310c5b75a13b1ffa6d9b63ba4baaaec7855cd
// Java Programming Assignment 9-31 // Implement THE HANGED MAN game // Written by 121220130 import java.util.Scanner; public class Hanger { static Scanner input; public static void main ( String [] args ) { String [] words = { "programming", "data", "structure", "algorithm", "database", "network", "bazinga", ...
Java
upload/ch09/ch09-31/Hanger.java
plumer/java-8e-assignments
gpl-2.0
1,803
68
codeparrot/github-code
5a34c4314d611effec62e65bb248aaf105d0691583926fc6c89c72d5a651e6c3
/** @file mlan_decl.h * * @brief This file declares the generic data structures and APIs. * * (C) Copyright 2008-2011 Marvell International Ltd. All Rights Reserved * * MARVELL CONFIDENTIAL * The source code contained or described herein and all documents related to * the source code ("Material") are owned...
C
arch/arm/mach-berlin/modules/wlan_sd8897/mlan/mlan_decl.h
laserbg2/laser_bg2
gpl-2.0
28,221
916
codeparrot/github-code
531a92a6dbba0e1e14eafe6c13200f076d5d7fc6a016e5645cc9b21c8a7fce55
/* --------------------------------------------------------------------------- Copyright (c) 2006-2008 Micrel, Inc. All rights reserved. --------------------------------------------------------------------------- interrupt.c - Linux network device driver interrupt processing. Author Date ...
C
drivers/net/ethernet/micrel/ks8692/interrupt.c
robacklin/uclinux-linux
gpl-2.0
22,293
836
codeparrot/github-code
b81fb3d795e932be53663a3c31646b24b1275fb36ac3e4b031ff57a40e72eb00
/** * \file ProgramOptionsSamples.cpp * \brief ProgramOptions samples source file * * * ProgramOptions provides support for storing command line option description as well as parsing * the arguments that are passed to the program at run time. It supports the grouping of options, * nested option groups, and...
C++
c++/Options/OptionsSamples/ProgramOptionsSamples.cpp
ajaniv/softwarebook
gpl-2.0
3,823
122
codeparrot/github-code
6fc8c7586513b173b5136bdeea6a0af79e5bcf1806203fd2f48aaf243e4089b0
/* * This file is part of the CMaNGOS 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 o...
C
src/game/DBScripts/ScriptMgr.h
blueboy/portal
gpl-2.0
31,749
583
codeparrot/github-code
1cd67fe088963e050d5f2a6a34b0b7c4be9b616559fdbc3524ca962d0d06789e
package com.provias.solicitud.entidad; public class MercanciaBean { private String idMercancia; private String idSolicitud; private String tipo; private String descripcion; private String alto; private String largo; private String ancho; private String peso; private String pesoFormt; private String tipoDesc;...
Java
src/com/provias/solicitud/entidad/MercanciaBean.java
itzcadilac/provias48a60
gpl-2.0
1,984
90
codeparrot/github-code
8082c96cdfc0724f3b641778f244dcfa65b7eff88e341ea33871cd2356ce1bb7
<?php namespace Drupal\ldap_authentication; /** * */ class LdapAuthenticationTestCase extends LdapTestCase { /** * */ public static function getInfo() { return array( 'name' => 'LDAP Authentication Tests', 'description' => 'Test ldap authentication.', 'group' => 'LDAP Authentication',...
PHP
ldap_authentication/src/LdapAuthenticationTestCase.php
7rin0/project-ldap-drupal-8
gpl-2.0
29,036
848
codeparrot/github-code
9c283590fadf18df057a604ba5e502e900b226ccac961bc8897facf22e12a5c3
////////////////////////////////////////////////////////////////////// // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // // ...
C++
burglish/desktop/bgl_textservice/ThreadMgrEventSink.cpp
thetnswe/zawgyi
gpl-2.0
4,094
141
codeparrot/github-code
a9967d2ee6c8f5e347d0738d2a173f48515e5132cdcf488d42b18809a017f99f
#include <string.h> #include <unistd.h> #include "chord/chord.h" #include "chord/sendpkt.h" #include "chord/util.h" #include "dhash.h" #include "pack.h" #include "send.h" #include "transfer.h" void dhash_send_push(DHash *dhash, const uchar *name, int name_len) { fprintf(stderr, "sending push for \"%s\"\n", buf_to_str...
C++
file_client/send.cpp
michaelstorm/Tangent
gpl-2.0
5,172
169
codeparrot/github-code
12703bac4424bb9313ad01db434849e79b5dfb1ceffd1081156c47f090a7f3b8
<?php declare(strict_types=1); /* * 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 information, ple...
PHP
Classes/Hooks/TcaItemsProcessorFunctions.php
TYPO3-CMS/core
gpl-2.0
23,030
482
codeparrot/github-code
bf98c47f7ddcd534ba407a63e85013c8a915d9ddc8616a64a170e2ea96937cdb
/* $Id$ */ /** @file * VBox Qt GUI - UIConverterBackend implementation. */ /* * Copyright (C) 2012-2014 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under th...
C++
src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
Chilledheart/vbox
gpl-2.0
35,297
631
codeparrot/github-code
4e989159ef0069d700bf2fdb402f7b22a5f907253e40165be76f6c3a339fdcca
// // Copyright (C) 2004 Telecommunication Networks Group (TKN) at Technische Universitaet Berlin, Germany. // // Documentation for these modules is at http://veins.car2x.org/ // // SPDX-License-Identifier: GPL-2.0-or-later // // This program is free software; you can redistribute it and/or modify // it under the terms...
C++
src/veins/base/connectionManager/ChannelAccess.cc
dbuse/veins
gpl-2.0
6,817
176
codeparrot/github-code
13f784bf5aeaed6d60041f0417485738174de06c432be2d6c5e5b66fec4507c2
<?php /** * @file * Definition of DeimsContentDataSetMigration. */ class EmlDatasetMigration extends XMLMigration { protected $dependencies = array('EmlDataFile'); public function __construct(array $arguments) { parent::__construct($arguments); $this->description = t('EML migration of the main data ...
PHP
eml_2_deims/premigration/consumers/EmlDatasetMigration.php
lter/deims-knz-custom
gpl-2.0
12,681
316
codeparrot/github-code
26f637cf933b7b5062d3bf9ab249bf4721979a327dd712e0117bc93cd5963041
<?php include ("jpgraph/jpgraph.php"); require_once ("jpgraph/jpgraph_pie.php"); require_once ("jpgraph/jpgraph_pie3dc.php"); include ("jpgraph/jpgraph_regstat.php"); /** * RingChart class * * @author Jonathan Abbett <jonathan.abbett@childrens.harvard.edu> * @version 1.1 * @copyright Jonathan Abbett and Childre...
PHP
php-growth-charts/3Chart.class.php
fsainsbu/moodle-mod_baseline-orig
gpl-2.0
3,429
133
codeparrot/github-code
95ef1395b1258532a65573c8f66696d31d21089fc8b4ecbc863e4b020d047582
/* * libnetcrypt -- Encrypted communication with DH and AES * * Copyright (C) 2013-2014 Martin Wolters * * 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 Lice...
C
libnetcrypt/lnc_aes_tables.h
SirDzstic/libnetcrypt
gpl-2.0
5,704
85
codeparrot/github-code
96723966ae29206d37797200e90ad42e42cc4171ce227a7b6838891fb7e8feba
--[[ Title: Context menu, using a tree view internally for sub level menus. It has a modern appearance. Author(s): LiXizhi Date: 2007/9/24 Rewritten by WangTian Date: 2008/12/8 NOTE: context menu with treeview implementation is completely depracated the contextmenu is rewritten in traditional menu form, Changed from...
Lua
script/ide/ContextMenu.lua
NPLPackages/main
gpl-2.0
35,870
961
codeparrot/github-code
1c335ba5c193f30c6864547c539be77834ed4282601457f650aa309148f42a1a
/* hist [syndicate] Prints the recent rankings of the specified syndicate */ var GroupWriter = require('../group-writer'); var Syndicate = require('../../model/syndicate'); var chip = require('../../chip'); var util = require('../../lib/util'); exports.exp = /^hist(?:\s+(.+?))\s*$/i exports.run = function(mat...
JavaScript
src/voice/cmd/hist.js
uzrbin/chip
gpl-2.0
1,085
41
codeparrot/github-code
11edec78ea2adbb583460e78fa751ece23290dc577a6a188dd95da25abcd7a86
/* Welcome to Compass. * In this file you should write your main styles. (or centralize your imports) * Include all partials you want compiled to style.css. You don't need to include the _ (underscore) * Import this file using the following HTML or equivalent: * <link href="/css/screen.css" media="screen, projectio...
CSS
css/style.css
workdept/detroit-head-start
gpl-2.0
21,471
987
codeparrot/github-code
bbcfcdba0d7c9afb1cca7497c379723b688ed5fcbec51b3ddfc73e0f5503da35
/* Revision of last commit: $Rev$ Author of last commit: $Author$ Date of last commit: $Date$ */ #ifndef NEUROFITTER_NSGA2POPULATION_H #define NEUROFITTER_NSGA2POPULATION_H #include <vector> #include <limits> #include "FixedParamObject.h" #include "NSGA2Individual.h" #include "ErrorValueCalculator.h" #include "Mers...
C
src/NSGA2Population.h
tclose/Neurofitter
gpl-2.0
1,881
68
codeparrot/github-code
78b9b9ddd6faee1370f2cd381cfb1931a5102b805bd1507722945306e72b4483
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Russian language. */ /**#@+ @type String @example */ /** * Constains the dictionary of lan...
JavaScript
v1/web/apostropheCkEditorPlugin/js/ckeditor/_source/lang/ru.js
Goutte/Ni
gpl-2.0
21,896
754
codeparrot/github-code
95d34794bb355e564ee43ea22870be2ea3b01395a0d042605216975854425e46
<?php /* Plugin Name: System Plugin Description: Author: Plugin URI: Author URI: Version: Text Domain: gd_system Domain Path: /gd-system-plugin/lang */ /** * Copyright 2013 Go Daddy Operating Company, LLC. All Rights Reserved. */ // Make sure it's wordpress if ( !defined( 'ABSPATH' ) ) die( 'Forbidden' ); // S...
PHP
wp-content/mu-plugins/gd-system-plugin.php
ravi-ranjan/GEBS
gpl-2.0
6,536
207
codeparrot/github-code
3d49775877862a6eafb576364e4ca6347db1386c45cfa58ac99a263f873cff88
/***************************************************************************** NoximPower.cpp -- Statistics implementation *****************************************************************************/ #include <iostream> #include <iomanip> #include "NoximStats.h" //------------------------------------...
C++
src/NoximStats.cpp
bniazmand/Noxim-LBDR3D
gpl-2.0
6,826
263
codeparrot/github-code
5f95d6b491b72ca4a95b289594dac4522c51e05566c824c993a598c04313b072
#if !defined(_LOG_H_) #define _LOG_H_ #include <syslog.h> #include <string> #include <boost/thread.hpp> #include <boost/thread/condition.hpp> #include <boost/thread/mutex.hpp> #include <queue> const int MSG_NORMAL = 20; const int MSG_CRITICAL = 10; const int MSG_VERY_CRITICAL = 10; class lo...
C
src/log.h
yandex/NwSMTP
gpl-2.0
748
46
codeparrot/github-code
33e2a717f50ec9354a4e4c9518c6e38b302f0b69c347d6dfa1331d8627da2728
<?php require_once ($CFG->dirroot.'/course/moodleform_mod.php'); class mod_wiki_mod_form extends moodleform_mod { function definition() { global $CFG, $COURSE, $WIKI_TYPES; $mform =& $this->_form; if (!empty($this->_instance)) { $queryobject = new stdClass(); $...
PHP
mod/wiki/mod_form.php
bobpuffer/1.9.12-LAE1.3
gpl-2.0
5,003
98
codeparrot/github-code
3ea57f89c323e9675cdcdb38d00bd01af83803c23fff044d1caf4fa9cc7a247a
/************************************************************************************************** Filename: CustomToast.java Copyright (c) 2013 - 2014 Texas Instruments Incorporated All rights reserved not granted herein. Limited License. Texas Instruments Incorporated grants a world-wide, royalty...
Java
src/main/java/com/example/ti/util/CustomToast.java
vanjo9800/SensortagSAPCloud
gpl-2.0
3,622
69
codeparrot/github-code
3ea3a67a70b87b5881f857790225f4fa840c62dd432930c573c7071d8de20529
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CRAN - Package BIFIEsurvey</title> <link rel="stylesheet" type="text/css" href="../../CRAN_web.css" /> <meta http-equiv="Content-Type" content="text/htm...
HTML
Code/GetMetaDataFromCRAN/raw_html/BIFIEsurvey.html
esander91/NamespacePollution
gpl-2.0
4,810
127
codeparrot/github-code
8a0c6b063ffa14c67a8fd29040c9ad3f9e0af689101369f82ed932e172d1f623
/********************************************************************** * * Copyright (C) Imagination Technologies Ltd. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by ...
C
drivers/gpu/pvr/sgx_bridge.h
andi34/kernel_samsung_espresso-cm
gpl-2.0
18,578
641
codeparrot/github-code
79680447e243fae907c99698074b56bfc3dab28b136f0fe0ef89bb86dac573a5
/* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS Display Control Panel * FILE: dll/cpl/desk/background.c * PURPOSE: Background property page * * PROGRAMMERS: Trevor McCort (lycan359@gmail.com) * Alexey Minnekhanov (minlexx@rambler.ru)...
C
dll/cpl/desk/background.c
rickerliang/reactos-mirror2
gpl-2.0
36,676
1,144
codeparrot/github-code
86b070f2ab0ad111b930bf730378b764e0bdfcafcf3ed887a5cca1820c6e91db
# # Copyright (C) 2011 OpenWrt.org # . /lib/ar71xx.sh PART_NAME=firmware RAMFS_COPY_DATA=/lib/ar71xx.sh CI_BLKSZ=65536 CI_LDADR=0x80060000 platform_find_partitions() { local first dev size erasesize name while read dev size erasesize name; do name=${name#'"'}; name=${name%'"'} case "$name" in vmlinux.bin.l...
Shell
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
fqrouter/openwrt-trunk
gpl-2.0
6,049
304
codeparrot/github-code
f4b5bba99342952aa2e0787353102fde4429a8faa620d9421dab595ac84e656c
<?php /** * TODO: Change PluginName into your real plugin name .... * Class PluginName_Plugin_Core */ class WbbPosttypeGenerator_Plugin_Core { /** * Set all plugin settings here . * This will be accessible from admin and public class.. * * @var array */ private $plugin_general_settings; /** * Defi...
PHP
core/class-plugin-core.php
webberty/wbb-posttype-generator
gpl-2.0
2,833
119
codeparrot/github-code
abec8c1a0dd97fbf23e99e991478933bfc1954f346ab33098c84602d76dc85e2
PROJ := lab2 EMPTY := SPACE := $(EMPTY) $(EMPTY) SLASH := / V := @ ifndef GCCPREFIX GCCPREFIX := riscv32-unknown-linux-gnu- endif ifndef QEMU QEMU := qemu-system-riscv32 endif ifndef SPIKE SPIKE := spike endif # eliminate default suffix rules .SUFFIXES: .c .S .h # delete target files if there is an error (o...
Makefile
labcodes/lab2/Makefile
ring00/bbl-ucore
gpl-2.0
4,721
210
codeparrot/github-code
16077b189fb0b6d735667f8f1009b6350070399565b672534a7275c75a4d2dd9
/*************************************************************************** * Copyright (C) 2006 by Veselin Georgiev * * anrieff@mailg.com (convert to gmail) * * * * This pr...
C
src/konsole.h
anrieff/fract
gpl-2.0
2,882
118
codeparrot/github-code
cf98857085a4764d1d56f392995035a8a22726a02d8a97dc88babea8f1ea89a2
/* * FLAC common code * Copyright (c) 2009 Justin Ruggles * * 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 License, or (at...
C
ffmpeg/libavcodec/flac.c
svn2github/MPlayer-SB
gpl-2.0
7,700
245
codeparrot/github-code
4e30aea2f1a20d4cbf757114ff526bac23e9a3ee12c233a06f898ff3e0414d0b
<?php /** * Element: Block * Displays a block with optionally a title and description * * @package NoNumber Framework * @version 12.5.1 * * @author Peter van Westen <peter@nonumber.nl> * @link http://www.nonumber.nl * @copyright Copyright © 2012 NoNumber All Rights Reserved * @license ht...
PHP
plugins/system/nnframework/fields/block.php
viollarr/alab
gpl-2.0
5,459
206
codeparrot/github-code
0eef933fe4e4aedb6fc66235dcee14d0653875db83aa69371769c0fd712a0bb1
<?php require_once(dirname(__FILE__).'/option.php'); require_once(dirname(__FILE__).'/usermeta.php'); // ----------------------------------------------------------------------------- // the ExecPhp_Cache serves as a cache for the option // ----------------------------------------------------------------------------- ...
PHP
wp-content/plugins/exec-php/includes/cache.php
sebadlf/masvalor
gpl-2.0
1,435
48
codeparrot/github-code
0c73da738880fad84bf90d651b3adcd9b8ef9c3f944a57d7ff53d1adc4ea61bc
/* FILE tStatus source code of unxsSPS.cgi Built by mysqlRAD2.cgi (C) Gary Wallis 2001-2007 svn ID removed PURPOSE Schema dependent RAD generated file. Program app functionality in tstatusfunc.h while RAD is still to be used. */ #include "mysqlrad.h" //Table Variables //Table Variables //uStatus: Primary Key ...
C
uSIPSwitch/unxsSPS/tstatus.c
unxs0/unxsVZ
gpl-2.0
13,194
545
codeparrot/github-code
ce6014c7751a84677ac133326e1f5478a80fcd478a911fa584bfc540de0c1d1b
/* asn.h * * Copyright (C) 2006-2014 wolfSSL Inc. * * This file is part of CyaSSL. * * CyaSSL 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...
C
cyassl/ctaocrypt/asn.h
spindance/CyaSSL
gpl-2.0
22,759
705
codeparrot/github-code
2f75f9b0c1c349661c373c49b11a21364e2577af1ca54fe163cf2a6f5102ef1d
import cv2 import numpy as np import sys from time import sleep class Hue: h = 0 s = 0 v = 0 class HueAverage: def __init__(self, wname, wwidth, wheight, avgSize): self.avgSize = avgSize self.x = self.y = 0 self.at = Hue(); self.avg = Hue(); self.clicked = False...
Python
src/test/colormatch/pick_color.py
philkroos/tinkervision
gpl-2.0
2,616
87
codeparrot/github-code
bf7f30999474dc959f39a92c240f0b3b6251abb6dc986e50abe8689eb09e92a4
package org.iocaste.install.dictionary; import java.util.HashSet; import java.util.List; import java.util.Locale; import java.util.Set; import org.iocaste.documents.common.DataType; import org.iocaste.kernel.common.Table; public class Package extends Module { public Package(byte dbtype) { super(dbtype);...
Java
src/install/classes/org/iocaste/install/dictionary/Package.java
fprates/iocaste
gpl-2.0
3,580
109
codeparrot/github-code
07a74448a018eb9d540ac59720f727c6490297e95ea4f907c9f068aad8c0c98a
import { pubUrl } from 'utils/canonicalUrls'; import { getPubPublishedDate } from 'utils/pub/pubDates'; import { relationTypeDefinitions } from 'utils/pubEdge/relations'; import transformAttributions from './attributions'; function getIdentifierData(pubEdge, isInboundEdge) { const { externalPublication } = pubEdge; ...
JavaScript
utils/crossref/transform/pub.js
pubpub/pubpub
gpl-2.0
1,963
64
codeparrot/github-code
75898dc6be757a73166913c3d37eccf804369fb64523f6c65a06c56b28af3f4b
<div class="announce instapaper_body md" data-path="README.md" id="readme"><article class="markdown-body entry-content" itemprop="mainContentOfPage"><h1> <a name="user-content-tesseract-ocr-ios-23" class="anchor" href="#tesseract-ocr-ios-23" aria-hidden="true"><span class="octicon octicon-link"></span></a>Tesseract OCR...
HTML
readme_files/c++/124-readme.html
lalo/readme-fads
gpl-2.0
9,963
164
codeparrot/github-code
f9d7f27811867be5d18316de854c3cd657812ee4b0ff00d2730905647b77dd21
using System; using System.Collections.Generic; using UnityEngine; using System.Linq; using Merlin; using YinYang.CodeProject.Projects.SimplePathfinding.Helpers; namespace YinYang.CodeProject.Projects.SimplePathfinding.PathFinders { public abstract class BasePathfinder<TNode, TMap, TValue> : IPathfinder<TValue> ...
C#
Albion/Merlin/Pathing/BasePathfinder.cs
lauw/Albion-Online-Bot
gpl-2.0
6,682
225
codeparrot/github-code
b6e8ada12799c77b4a256ad5dd593c087c40a4495f9ec8cc683e649727e19bac
package de.burlov.ultracipher.core.bouncycastle.crypto.params; import java.math.BigInteger; import de.burlov.ultracipher.core.bouncycastle.crypto.CipherParameters; public class ElGamalParameters implements CipherParameters { private BigInteger g; private BigInteger p; private int l; public ...
Java
core/src/main/java/de/burlov/ultracipher/core/bouncycastle/crypto/params/ElGamalParameters.java
pburlov/ultracipher
gpl-2.0
1,234
62
codeparrot/github-code
29f3dc4b2b489f8cdf3e74cde20c04d214f8439e51524f536801f1d82bd8d5dd
/* * kernel/power/main.c - PM subsystem core functionality. * * Copyright (c) 2003 Patrick Mochel * Copyright (c) 2003 Open Source Development Lab * * This file is released under the GPLv2 * */ #include <linux/kobject.h> #include <linux/string.h> #include <linux/resume-trace.h> #include <linux/workqueue.h> #...
C
kernel/power/main.c
steev/linux-kernel
gpl-2.0
6,689
313
codeparrot/github-code
1c0ad0fd4ea116c22561039c2389a883545f3e51cbb684e0e12978777258067d
package org.nwnx.nwnx2.jvm.constants; /** * This class contains all unique constants beginning with "VFX_COM". * Non-distinct keys are filtered; only the LAST appearing was * kept. */ public final class VfxCom { private VfxCom() {} public final static int BLOOD_CRT_GREEN = 116 ; public final static int BLOOD...
Java
plugins/jvm/java/src/org/nwnx/nwnx2/jvm/constants/VfxCom.java
Baaleos/nwnx2-linux
gpl-2.0
4,852
106
codeparrot/github-code
7944d5a32c74061678ca3c826234d8bbb6cb32788f78c0e9420d4424799dbb9b
/* kernel/power/powersuspend.c * * Copyright (C) 2005-2008 Google, Inc. * Copyright (C) 2013 Paul Reioux * * Modified by Jean-Pierre Rasquin <yank555.lu@gmail.com> * * v1.1 - make powersuspend not depend on a userspace initiator anymore, * but use a hook in autosleep instead. * * v1.2 - make kernel ...
C
kernel/power/powersuspend.c
raden/cempaka-kernel
gpl-2.0
8,883
330
codeparrot/github-code
603472e76d25cf91291b6c2797bda3cd35483fdf345a178cb5c34f8aeb6d9c97
/* * Cracking the coding interview, edition 6 * Problem 1.1 * Write an algorithm to determine whether a string has unique characters or not * Can we do it without using addtional data structures? */ #include <iostream> #include <cstring> /* * Function hasUniqueChars1 * Args - std::string * Output:: True if ...
C++
cracking_the_coding_interview_problems/1-1-hasUniqueChars.cpp
navinsoni/algorithms_and_ds_playground
gpl-2.0
2,296
86
codeparrot/github-code
870257d64b76579055861b1d20dc1c0a61ea7507cc809a67a35c8928d7aa3a82
#!/bin/bash #################################################### # Developers notes # # # Single # is used for commenting out code. i.e. code that is not yet functioning # double # is used for Code Explain i.e. ##Download required files # ##TODO is for planned implements # # #########################################...
Shell
Buux.sh
lonix/BUUX
gpl-2.0
14,563
507
codeparrot/github-code