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
62dc330a5cf9877ad493231b90b109c4a0e31d3f8775c0ffffb8f87f315067d9
#define _MACRO_CLASS_NAME_ PolarPoint class _MACRO_CLASS_NAME_ { public: double theta, phi ; using TYPE_SELF = _MACRO_CLASS_NAME_ ; inline double distance (PolarPoint const & other) const { double constexpr r = 6367000 ; double const ct1 = std::cos(theta); double const st1 = std::sin(theta); d...
C++
LatestHeaders/old/PolarDistance.hh
aravindhv10/CPP_Wrappers
gpl-2.0
1,223
52
codeparrot/github-code
00e2b4292e8d6abe8e4fe4b8f985dae46b27d35b652689fa38a9750d47a05be7
<?php namespace App\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Import extends Command { protected function configure() { $this->addOption('file', 'F', InputOption::VALUE_REQ...
PHP
classes/Commands/Import.php
vaibhavpandeyvpz/frameworx
gpl-2.0
1,254
38
codeparrot/github-code
34cc03d3f4c8827f55e0859748bc4ab124323ced5c6e19fe230564fcd08a1610
/****************************************************************************** * * Copyright(c) 2003 - 2013 Intel Corporation. All rights reserved. * * Portions of this file are derived from the ipw3945 project, as well * as portions of the ieee80211 subsystem header files. * * This program is free software; yo...
C
drivers/net/wireless/iwlwifi/dvm/sta.c
zparallax/amplitude_shamu
gpl-2.0
40,397
1,480
codeparrot/github-code
4caaed36cc5ef43d616a7a4736a4cd246758852f0d011e1fd46f599ca674c115
<?php /** * @package SjCore * @subpackage Elements * @version 1.0 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @copyright (c) 2012 YouTech Company. All Rights Reserved. * @author YouTech Company http://www.smartaddons.com * */ defined('_JEXEC') or die; if (!class_exists('_Core_Fiel...
PHP
modules/mod_sj_vm_extraslider_res/core/class/field/zooapplication.php
nazarkin659/best4hunting
gpl-2.0
2,099
60
codeparrot/github-code
11c8a228c0e992ca238f24896b70e0418ad1b2e7c416f94d24710eb311514025
# Copyright (C) 2012 University of Southern California # This software is licensed under the GPLv3 license, included in # ./GPLv3-LICENSE.txt in the source distribution from collections import defaultdict import itertools import logging import os import shlex import sys from magi.util import helpers from magi.util.ex...
Python
magi/testbed/emulab.py
deter-project/magi
gpl-2.0
7,564
216
codeparrot/github-code
91a6db9501b30b1c61808062ec9356168f33eefbe5b44f12b109b986b1f995c9
import os from record import Record from timeutils import isodate from git import Git import applib import re class XmlStorage: """ XML storage engine for the record """ @staticmethod def setup(dataDir): engineDir = os.path.join(dataDir, 'xml') os.makedirs(engineDir, exist_ok=True) ...
Python
xmlstorage.py
iesugrace/log-with-git
gpl-2.0
13,529
374
codeparrot/github-code
de83fec18e0c2f2e93935f8a042869cde75840e131e3c6fce423fb7638bbd3b8
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in t...
C
sql/sql_select.h
ngaut/mysql
gpl-2.0
58,537
1,721
codeparrot/github-code
34ffca9839029fc5469f25e1dd097dda961f677603f2afcf663053941c6ca5e4
package es.uniovi.asw.Parser; import es.uniovi.asw.conf.Driver; public class Parser { protected String[] lineas; String[] transformado; protected Document file; public Parser(){} /** * * @param lineas */ public Parser(String[] lineas) { super(); this.lineas = lineas; } /** * Metodo que ver...
Java
extract/src/main/java/es/uniovi/asw/Parser/Parser.java
Arquisoft/Trivial5a
gpl-2.0
942
60
codeparrot/github-code
e485248dcab9ce86b60637d7ba5d57a086ca957cd36208e1666259367d401d3b
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2013 Nils Maier * * 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 ...
C
src/AppleTLSContext.h
dzw/as3croelib
gpl-2.0
3,088
100
codeparrot/github-code
88acf661ce761c68c3136d63b2b936b38dd7223d2254780cc6b915c749fa90a6
Banner = new Meteor.Collection('banner'); var bannerSchema = new SimpleSchema({ currentContent: { type: Boolean, defaultValue: false, label: "Set as Homepage Banner Content" }, title: { type: String, max: 60 }, banners: { type: Array, optional: true, minCount: 0, }, "banners.$...
JavaScript
lib/collections/bannerCollection.js
cosmicBboy/lander-analytics
gpl-2.0
1,243
64
codeparrot/github-code
cc5baba135c1d157982a1eddf631a3d6228ccd373816e6c4b4bf3e4f277e0e72
package hillfly.wifichat.file; import hillfly.wifichat.bean.Message.CONTENT_TYPE; public class FileState { public long fileSize = 0; public long currentSize = 0; public String fileName = null; public int percent = 0; public CONTENT_TYPE type = CONTENT_TYPE.TEXT; public FileState() { } public FileState(Str...
Java
src/hillfly/wifichat/file/FileState.java
evcehiack/WifiChat
gpl-2.0
806
43
codeparrot/github-code
89511991f56c49682d98bb3c60f9fa183bc32ed5d136d44ac432128db3f7b926
///////////////////////////////////////////////////////////////////////////// // BSynthComposer - frame window implementation for MS-Windows // // Much of the GUI implementation is here. This class manages the main frame // layout, tree view, creation of dialogs and editors, and menu/toolbar commands. // Propertie...
C++
Src/BSynthComposer/mswin/MainFrame.cpp
travisgoodspeed/basicsynth
gpl-2.0
44,963
1,724
codeparrot/github-code
bdebe113d8cc049bd9e4bbad1bae5cf65711fbcf9dc1c3b05b356b3f5cf054f8
/****************************************************************************** * * CAEN SpA - Front End Division * Via Vetraia, 11 - 55049 - Viareggio ITALY * +390594388398 - www.caen.it * ***************************************************************************//** * \note TERMS OF USE: * This program is f...
C
03_Upgrades_DT5780/DPP-PHA_ControlSoftware-1.2.3/src/Digitizer_ci.c
jaromrax/vme
gpl-2.0
13,701
384
codeparrot/github-code
15d918785036022d5cf0b461e560f7470f5aac9161a23f0ae7f9be85ea607ac4
/* Theme Name: Twenty Fourteen Theme URI: http://wordpress.org/themes/twentyfourteen Author: the WordPress team Author URI: http://wordpress.org/ Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or ...
CSS
wp-content/themes/twentyfourteen/style.css
laborautonomo/WordPress
gpl-2.0
77,435
4,318
codeparrot/github-code
809652c52670c3d6d64f802e4e7b5de6814bf0fda845dcd286091390972cdf40
package lex; import java.io.File; import java.rmi.UnexpectedException; import java.util.LinkedList; import utils.Functions; public class FileCleaner { private String content; public FileCleaner(String fileContent) { this.content = fileContent; } public FileCleaner(File file) { if(file.exists()) { this....
Java
src/lex/FileCleaner.java
dcouturier/LibraryOverrider
gpl-2.0
1,417
62
codeparrot/github-code
32d0510d8b4a5fd26ff247ecca4089ae5e0ab06d77d726e2173dd11c5d954f21
#include <linux/module.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> #include <linux/percpu.h> #include <linux/sched.h> #define EX_PROC_ENTRY "ex_seqfile" /* * operations of seq file * * NOTE: the object to be present is passed during these operations by * void *. So the actually state of this o...
C
fs/seq_file/seqfile_ex.c
kafka-on-the-shore/touch_kernel
gpl-2.0
2,065
97
codeparrot/github-code
624b8e11d5bd0eb6a57b29ffd5bda3e84321ef610e6e319a58f1176571d155d9
# Implementation of classic arcade game Pong import simplegui import random # initialize globals - pos and vel encode vertical info for paddles WIDTH = 600 HEIGHT = 400 BALL_RADIUS = 20 PAD_WIDTH = 8 PAD_HEIGHT = 80 HALF_PAD_WIDTH = PAD_WIDTH / 2 HALF_PAD_HEIGHT = PAD_HEIGHT / 2 LEFT = False RIGHT = True ball...
Python
pong.py
analca3/InteractivePythonCoursera
gpl-2.0
4,431
154
codeparrot/github-code
8ef592c8c91b868e26294a8da30b8ce4ff5aef4ae32cabb263adafc31c14f74d
<?php /** * @package LiveUpdate * @copyright Copyright (c)2010-2012 Nicholas K. Dionysopoulos / AkeebaBackup.com * @license GNU LGPLv3 or later <http://www.gnu.org/copyleft/lesser.html> */ defined('_JEXEC') or die(); /** * Fetches the update information from the server or the cache, depending on * whether the c...
PHP
admin/liveupdate/classes/updatefetch.php
eugeis/eugeis-seminarman
gpl-2.0
10,940
357
codeparrot/github-code
b29dbde6192179b4124f665e8536dd08ec5b22b05c0b214b47b4bf341d73a214
/* * All procedures for saving and loading state * Problems to deal with in persistence: * - how to deal with node identifiers that have changed after a reboot? * - where to store the databasefile on OpenWRT so that is persists a reboot? */ package main import ( "bufio" "encoding/json" "errors" "fmt" "io/io...
GO
src/tools/peak-detection/persistence.go
SIDN/spin
gpl-2.0
1,732
80
codeparrot/github-code
3dd860391c6a57f96b27f13c8faa28204c34a474828fc382cd413760d26856dd
/* * Copyright (C) 2010 - 2014 Eluna Lua Engine <http://emudevs.com/> * This program is free software licensed under GPL version 3 * Please see the included DOCS/LICENSE.md for more information */ #ifndef GUILDMETHODS_H #define GUILDMETHODS_H namespace LuaGuild { /* GETTERS */ int GetMembers(lua_State* L, Gui...
C
src/LuaEngine/GuildMethods.h
DrYaling/eluna-trinitycore
gpl-2.0
5,225
210
codeparrot/github-code
55284abbd0dbcffc8828de7800710140d7d2f69864e92dfeb3d367fc0264d8d0
#!/usr/bin/env python2 # Rekall Memory Forensics # Copyright 2016 Google Inc. All Rights Reserved. # # Author: Michael Cohen scudette@google.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...
Python
rekall-agent/rekall_agent/flows/find.py
dsweet04/rekall
gpl-2.0
8,647
251
codeparrot/github-code
ee5d9600d5512e72048e66fdd2a4af56c5208c278eaaaf3e5b607df077a6fcca
<?php /******************************************************************************* Copyright 2015 Whole Foods Co-op This file is part of CORE-POS. IT CORE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
PHP
fannie/classlib2.0/data/models/op/FloorSectionsModel.php
CORE-POS/IS4C
gpl-2.0
2,613
71
codeparrot/github-code
2cb0e80b652ed64ad34836ce534cd93fd620facd335d127d1cb9b9197bdddbdd
<!DOCTYPE html> <html lang="en-US"> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=try_dom_select_option by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:36:54 GMT --> <head> <title>Tryit Editor v2.3</title> <meta id="viewport" name='viewport'> <script> (function() { if ( navigator.userAge...
HTML
Coding/W3School/W3Schools_Offline_2015/www.w3schools.com/js/tryit0b99.html
platinhom/ManualHom
gpl-2.0
5,431
162
codeparrot/github-code
af3bc286542c8793e214c9700873619f0f7eb3c509391416601d7b78e48c258a
import yaml # We try to dump using the CSafeDumper for speed improvements. try: from yaml import CSafeDumper as Dumper except ImportError: #pragma: no cover from yaml import SafeDumper as Dumper #pragma: no cover from hepdata_converter.common import Option, OptionInitMixin from hepdata_converter.writers import ...
Python
hepdata_converter/writers/yaml_writer.py
HEPData/hepdata-converter
gpl-2.0
3,048
68
codeparrot/github-code
3d55364938b02269a46ab8832f7b246379cb0a4b34c74d61483848cab4533195
<script type="text/javascript" src="<?php echo plugins_url(); ?>/pricing-table/js/admin/jquery.tablednd_0_5.js"></script> <script> jQuery(document).ready(function() { // Initialise the table jQuery("#pricetable").tableDnD({dragHandle: "dh"}); }); jQuery("#pricetable tr").hover(function(...
PHP
wp-content/plugins/pricing-table/tpls/metabox-feature-options.php
JulieKuehl/PartyOnStillwater
gpl-2.0
19,169
430
codeparrot/github-code
9ec1c4d95a76287255f53516f4bcc454a55f0ffadfe89972f8fdef5024098095
function buildmenu() { var menu = ""; menu += "<nav class=\"navbar navbar-expand-sm bg-dark navbar-dark fixed-top\">"; menu += "<a class=\"navbar-brand\" href=\"https://github.com/Barracuda09/SATPI\">SatPI</a>"; menu += "<button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#Sa...
JavaScript
web/assets/js/menu.js
issue/SATPI
gpl-2.0
2,199
37
codeparrot/github-code
b2129c2f4f558049c5bab092549934d8d4267d2e55e40b4f52db775b92621f9b
/* * Copyright (C) 2008-2015 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/Battlegrounds/Battleground.cpp
M0ra/Core
gpl-2.0
71,599
1,916
codeparrot/github-code
71fc1f210d7646a0ee9ffe0ad3578daea58679c7871420d43e55fcb64a154c81
#pragma once #include "Rectangle.hpp" #include "Font.hpp" #include <string> class GuiObject { friend class GuiEngine; public: //constructor and destructor GuiObject(); GuiObject(std::string txt); virtual ~GuiObject(); //Make uncopyable GuiObject(const GuiObject&) = delete; GuiObject& operator=(const GuiObject&...
C++
source/UI Engine/Components/GuiObject.hpp
Illation/LightWhat
gpl-2.0
1,133
55
codeparrot/github-code
2166e124d05990a86ce7b0ddcfef661551052377ea2da090a880178381aed85b
#define INCL_DOS #define INCL_WIN #define INCL_GPI #define DATAS 1 #include <os2.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include "msehook.h" #include "mse.h" #include "dialog.h" char * strip_trail_char (char *strip,char *a) { register char *p; if(a && *a && ...
C++
MISC.C
OS2World/UTIL-MOUSE-MSE
gpl-2.0
23,180
858
codeparrot/github-code
5f0eb2958a92807368231374d19657d83f939d8356043e14ed08049ba1d4b722
# filter_json.pl # # filter some json calendar to import in meteor, # # perl filter_json.pl <some_cal>.json # # mongoimport --host localhost:3001 -d meteor -c events --jsonArray import.json use strict; use warnings; use JSON qw( decode_json encode_json); use MongoDB; use MongoDB::OID; use POSIX qw(...
Perl
filter_json.pl
yvesago/meteor-conf
gpl-2.0
1,193
54
codeparrot/github-code
d53fc242c0c01425bb5b04320e26931691098d6fee64459c27990cae2c360ed6
package com.sprd.settings; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.hardware.usb.UsbManager; import android.os.Bundle; import android.os.Environment; import android.os.Handler; import android.os.Message;...
Java
Settings/src/com/sprd/settings/SprdUsbRadioSettings.java
louis20150702/mytestgit
gpl-2.0
8,984
238
codeparrot/github-code
cad1be04ca60394633f349db1ea5206f13c0a797849788599866493d948257ff
/* * drivers/acpi/device_pm.c - ACPI device power management routines. * * Copyright (C) 2012, Intel Corp. * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This program is free software; you can redistribute it and/or m...
C
drivers/acpi/device_pm.c
TeamFahQ/kernel_linux_next
gpl-2.0
32,531
1,134
codeparrot/github-code
2255eed37e2c7fcea2b1c234efd0c6e1be987eeff28a5388c8d102aea1a7ee98
/** * This file is part of gui-serverbackend. * * gui-serverbackend 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. * * gui-ser...
Java
hobbit-gui/gui-serverbackend/src/main/java/de/usu/research/hobbit/gui/rabbitmq/StorageServiceChannel.java
hobbit-project/platform
gpl-2.0
3,144
94
codeparrot/github-code
1dbdda58fb00d11cf0b261afbbe028021e36029beb9b9b312b8824c1bb07b6ab
<?php /** * @tempversion * @name [%%ArchitectComp_name%%] (Release [%%COMPONENTSTARTVERSION%%]) * @author [%%COMPONENTAUTHOR%%] ([%%COMPONENTWEBSITE%%]) * @package [%%com_architectcomp%%] * @subpackage [%%com_architectcomp%%].finder.[%%architectcomp%%].[%%compobjectplural%%] * @copyright [%%COMPONENTCOPYR...
PHP
administrator/components/com_componentarchitect/codetemplates/j_3_3_standard/com_architectcomp_j33standard/plugins/finder/plg_finder_compobjectplural/compobjectplural.php
esorone/efcpw
gpl-2.0
16,725
499
codeparrot/github-code
e0d323cbcabf2f65bade0bc5b32eba666fb299f841662303c6a2fdb16542859c
/**************************************************************************** * * ======================================================================== * * Copyright (C) 1991-2004 SciTech Software, Inc. All rights reserved. * * This file may be distributed and/or modified under the terms of the * GNU General ...
C
src/util/p4_cvs.c
OS2World/DEV-UTIL-SNAP
gpl-2.0
8,761
296
codeparrot/github-code
26d8bd95d2ea24621b623a4dbb92a88ac37bb793c58125b8fe4d66cb08973389
#ifndef BDAQ53_H #define BDAQ53_H #include <string> #include <map> #include "BdaqRBCP.h" #include "Bdaq_i2c.h" #include "BdaqSi570.h" #include "BdaqAuroraRx.h" #include "BdaqCmdRd53.h" #include "BdaqTCP.h" #include "BdaqSiTcpFifo.h" #include "BdaqGPIO.h" struct bdaqConfig { std::string ipAddr; uint ud...
C
src/libBdaq/include/Bdaq53.h
Yarr/Yarr
gpl-2.0
1,745
82
codeparrot/github-code
64b649a3ff99e7aa92d36166c819912aa8cc010321abd5c8c36decd8a8b0d0fb
/* -------------------------------------------------------------------- EXTREME TUXRACER Copyright (C) 1999-2001 Jasmin F. Patry (Tuxracer) Copyright (C) 2010 Extreme Tuxracer Team 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...
C
src/newplayer.h
dbluelle/pandora-extremetuxracer
gpl-2.0
1,048
36
codeparrot/github-code
b38645fd900a6c852a2074d5f095fd14211a3f009b6bf07a102d42eb4df5d787
<!-- frm_clasificaciones.php Copyright 2013-2016 by Juan Antonio Martinez ( juansgaviota at gmail dot 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 (a...
PHP
agility/console/frm_clasificaciones.php
nedy13/AgilityContest
gpl-2.0
1,840
48
codeparrot/github-code
b3d19f51ee4868ed1d07e74b791e8978e92be07d74fd23994d8ff43c8c2d5e79
/* * Copyright (c) 2021, 2021, 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 ...
Java
espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/substitutions/Target_com_oracle_truffle_espresso_hotswap_HotSwapHandler.java
smarr/Truffle
gpl-2.0
1,831
47
codeparrot/github-code
976e8dfee1ff35e2779ac30a65d1b5bc72679f65dbe50ce47a9b492037650529
/* Copyright (c) 2013, iRacing.com Motorsport Simulations, LLC. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this lis...
C++
src/TelemetryPlugins/iRacingTelemetryPlugin/irsdk/irsdk_utils.cpp
OpenSimwheel/OpenSimwheelCommander
gpl-2.0
8,097
361
codeparrot/github-code
357cf1a8b7d62a5b937e81ea83a75bf174311b1ae8dd1f487fa0b9b1c78c9748
package lumaceon.mods.clockworkphase.client.handler; import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.InputEvent; import lumaceon.mods.clockworkphase.ClockworkPhase; import lumaceon.mods.clockworkphase.client.gui.interfaces.GuiMul...
Java
src/main/java/lumaceon/mods/clockworkphase/client/handler/KeyHandler.java
Lumaceon/ClockworkPhase
gpl-2.0
3,137
81
codeparrot/github-code
cfbde4628882ba8bf7956b98f471e053c0bbfff61b314f88503bfa60b8bcd881
import datetime import mailman import mailbox import numpy as np from bigbang.thread import Thread from bigbang.thread import Node import pandas as pd import pytz import utils def load(path): data = pd.read_csv(path) return Archive(data) class Archive: """ A representation of a mailing list archive...
Python
bigbang/archive.py
raj4/bigbang
gpl-2.0
6,045
201
codeparrot/github-code
5ff7a44669cd7dd6c9549006cd00e022c3c1e995bb946edb40c56665ad7a0df4
/* OptimalCeilingTier.cpp * * Copyright (C) 2015 David Weenink * * 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++
dwtools/OptimalCeilingTier.cpp
motiz88/praat
gpl-2.0
1,614
46
codeparrot/github-code
f00865f389c09dbec13a45c57f8a78728aef7e026b99b6c14ce8748ce4bd348e
package com.zerokol.views; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; public class JoystickView extends View implements Runnable { // Constan...
Java
src/BluetoothMouse/src/com/zerokol/views/JoystickView.java
Arseny-N/Android2Mouse
gpl-2.0
7,401
262
codeparrot/github-code
d1a31632d2b02bbf7e8f5c12de21082c014806cb82a4c904647539232c49ad70
/* * * Copyright (c) 2006 LinogistiX GmbH. All rights reserved. * *<a href="http://www.linogistix.com/">browse for licence information</a> */ package de.linogistix.common.bobrowser.query.gui.object; import de.linogistix.los.query.*; /** * * @author trautm */ public enum QueryOperatorNumeric implements QueryOp...
Java
rich.client/los.clientsuite/LOS Common/src/de/linogistix/common/bobrowser/query/gui/object/QueryOperatorNumeric.java
Jacksson/mywms
gpl-2.0
895
40
codeparrot/github-code
fc9e6dd0c4b31df9dc1b79ae3093afbbb8dd44145988bcc9402f6d94206f34ac
<!DOCTYPE html> <!-- --> <html lang="zh-CN"/> <head> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="Tue, 01 Jan 2013 00:00:00 GMT"> <meta http-equiv="Cache-Control" content="no-cache,must-revalidate"> <meta name="author" content="william" /> <meta name="generator" content="Jeky...
HTML
_site/assets/rforcats-gh-pages/index.html
williamlfang/cn
gpl-2.0
43,962
1,227
codeparrot/github-code
53785f443746600e62b504d6b0b91033a05d288c6fca0c52586d3a9c68082c3a
<?php class select{ public function block($delete){ if(isset($delete)){ global $wpdb; $result = $wpdb->get_results("SELECT id, name, visibility FROM " . $wpdb->prefix . "team_block WHERE trash = '$delete'", 'ARRAY_A'); return $result; } } public function b...
PHP
wp-content/plugins/Boc_Team/inc/classes/select.php
kiselyou/BOC
gpl-2.0
5,156
129
codeparrot/github-code
ae2c34db2dd8f8abe567f13afea97d42904d60b9deb4fd99cfbd14c59be41a94
using System; using System.Web.UI; using ICaiBan.IBLL; using ICaiBan.Remoting.Client; using ICaiBan.ModelAPI; using ICaiBan.ModelAPI.Admin; using ICaiBan.ModelBL.Enums; using System.Web.UI.WebControls; using System.Web; namespace AdminManager.Master { // 作者:邓俊龙 //修改时间:2014-2-19 public partial class SubMast...
C#
Web/AdminManager/AdminManager/Master/SubMaster.Master.cs
zhangbojr/ICB
gpl-2.0
19,628
454
codeparrot/github-code
ecf4a2e49c4d45c99dfa122057f41bd4196492ccd2afda598e5658b0f863dd0f
/*************************************************************************** * Copyright (C) 2005 by sonicat * * is87098@cis.nctu.edu.tw * * * * This pr...
C++
src/main.cpp
chunyisu/hdass
gpl-2.0
3,274
93
codeparrot/github-code
27ee731f321259ab50a9b0e89ab935d6829b42a74b9cb9dad4ef5cd879b5f81f
/* * $Id: Part.cpp,v 1.24 2007/01/26 07:39:55 rhizome Exp $ * * Copyright (C) 2004-2008 Alex Marandon * * This file is part of slag, a pattern-based audio sequencer. * * slag is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by...
C++
src/audio_engine/Part.cpp
amarandon/slag
gpl-2.0
5,875
226
codeparrot/github-code
bd035aebfb8f28dbd6e1129a265ed2cb4171570ec9e99d74c824cbcbb2245e72
package base.selector; import java.util.List; import base.Individual; /** * The Selector class selects individuals using a certain way using fitness * values in Evolutionary Computation. * * @author Tanji */ public abstract class Selector<T extends Individual> { /** the flag which means fitness value should b...
Java
src/base/selector/Selector.java
tan-z-tan/EvolutionaryComputation
gpl-2.0
1,126
44
codeparrot/github-code
fc6f74daa1aaca2ee932a29b4a26ee28505a6a05b74332de63b0a0d4590c6ed1
package com.neuo.android; import java.util.ArrayList; import com.neuo.common.WorkState; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.SoundPool; import android.util.SparseArray; import android.app.Service; import android.content.Context; public class SoundMan...
Java
Simim/src/com/neuo/android/SoundManager.java
chongtianfeiyu/Simim
gpl-2.0
6,888
286
codeparrot/github-code
80c3f899b16b9008ef5d0f1491f44ee3db4fb8f29803724209e0b52380a4c24e
/* Definitions of target machine for GNU compiler for Renesas / SuperH SH. Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Steve Chamberlain (sac@cygnus.com). Improved by Jim Wilso...
C
gcc/config/sh/sh.h
chapuni/gcc
gpl-2.0
94,665
2,479
codeparrot/github-code
7bdf0f0d046a1283dd060ddd55927d2cf2d02865c0ee6639b8856d4aec52a6a8
<?php /** * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved. * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2 * @version 2012.5 * @package kernel */ $Module = $Params['Module']; if ( isset( $Params['UserID'] ) && is_numeric( $Params['UserID'] ) ) { $User...
PHP
kernel/user/edit.php
pauletienney/siliconnexion
gpl-2.0
2,588
91
codeparrot/github-code
e9ec1a05558314925d4cf37664bd7ce1e0447ba2f9a5fdf37cf52f76baca1f66
<?php // $Id: template.php 8021 2010-10-19 13:01:34Z sheena $ /** * Breadcrumb themeing */ function commons_roots_breadcrumb($breadcrumb) { if (!empty($breadcrumb)) { return '<div class="breadcrumb">'. implode(' > ', $breadcrumb) .'</div>'; } } /** * Node preprocessing */ function commons_roots_preprocess...
PHP
profiles/drupal_commons/themes/commons_roots/template.php
agalligani/finalrepo
gpl-2.0
11,964
322
codeparrot/github-code
3382f4374063c954686e751d81f6526d5235123655c3b3b38293382ec0379378
# Library from https://github.com/nikipore/alfred-python import alfred import re import unicodedata import xml.dom import xml.dom.minidom import time # XML verbs db conjFR = xml.dom.minidom.parse('conjugation-fr.xml') verbsFR = xml.dom.minidom.parse('verbs-fr.xml') conjList = conjFR.getElementsByTagName('template') v...
Python
verbizr.py
usrix/alfred-verbizr-workflow
gpl-2.0
1,716
58
codeparrot/github-code
efd31d5282a4294f9779e8b59b94b160a55097e29c1f1e569a1cbbec7eee5aa3
#ifndef __FM_H__ #define __FM_H__ //#define FMDEBUG #include <linux/ioctl.h> #include <linux/time.h> //fm type define typedef signed char fm_s8; typedef signed short fm_s16; typedef signed int fm_s32; typedef signed long long fm_s64; typedef unsigned char fm_u8; typedef unsigned short fm_u16; typedef unsigned int fm_...
C
kernel-headers/linux/fm.h
walter79/android_device_elephone_p8000
gpl-2.0
20,184
632
codeparrot/github-code
08af32c13a726db0056c4b36918a1568474f6e1f8aa7dca916f01101bcf6f585
/* * Copyright (c) 2011, 2015, 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 ...
C++
src/share/vm/gc_implementation/g1/heapRegionSet.cpp
netroby/hotspot9
gpl-2.0
16,317
453
codeparrot/github-code
dd213d7400d3b87840bcde395b7e210472e076ebbd8d36d82aea68ab823f6275
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Stefan Schimanski (1Stein@gmx.de) * Copyright (C) 2004-2017 Apple Inc. All rights reserved. * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * * This library is free so...
C++
modules/web/src/main/native/Source/WebCore/html/HTMLObjectElement.cpp
teamfx/openjfx-8u-dev-rt
gpl-2.0
20,103
520
codeparrot/github-code
15b70ed15f9506cbc92fd737fad673d0aecc93c86145edad17e01a13fbf5d9fa
#include <linux/init.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/string.h> #include <linux/spinlock.h> #include <hwregs/reg_map.h> #include <hwregs/reg_rdwr.h> #include <pinmux.h> #include <hwregs/pinmux_defs.h> #include <hwregs/clkgen_defs.h> #undef DEBUG #define PINS 80 #define PORT_PINS...
C
kernel/arch/cris/arch-v32/mach-a3/pinmux.c
luckasfb/OT_903D-kernel-2.6.35.7
gpl-2.0
9,720
381
codeparrot/github-code
76624f4d20fca70ac2f18072d1394100f7b060d24cd0d369354a882cc87ca4cc
#include <stdio.h> #include "genocop.h" /* ** ** void optimize( EVOLDATA ev, ** MATRIX fSearchPop, ** VECTOR fSearchProbDist, ** MATRIX fRefPop, ** VECTOR fRefProbDist, ** FILE * outfile); ** ** ** Performs the main optimization of both po...
C
Demo/@Unsorted/gcopIII10/optimize.c
VladSerhiienko/Nena.v.1
gpl-2.0
8,727
309
codeparrot/github-code
55f4bb60ae8b67a2be461588bcc08a86c2f80c851f1e3906c3ad55f374e85768
/** * Copyright (C) 2004 - 2012 Nils Asmussen * * 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...
Java
bbcodeeditor/control/view/QuoteEnvironmentView.java
script-solution/BBCodeEditor
gpl-2.0
4,729
160
codeparrot/github-code
a709eea8086fdfa0a89b5be34ca8eed4817bdbfa96cbc0fc45c09d647e8e6e3c
import time import binascii import struct from twisted.internet import defer from stratum.services import GenericService from stratum.pubsub import Pubsub, Subscription from stratum.custom_exceptions import ServiceException, RemoteServiceException from jobs import JobRegistry import stratum.logger log = stratum.log...
Python
stratum-mining-proxy/mining_libs/stratum_listener.py
oxagast/hashnet
gpl-2.0
7,466
202
codeparrot/github-code
40a5db3bae03e274e061391c4b67e3f1c1d86e754698835d38d536a2c66a0dd5
<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <title> </title> <!--[if !mso]><!--> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--<![endif]--> <meta http-equiv="Content-Type" content="t...
HTML
html/captive-portal/templates/emails/emails-security_event-triggered.html
inverse-inc/packetfence
gpl-2.0
16,686
280
codeparrot/github-code
6d04e00d49ad37512c79121037733c623dac1d176c9b2153f61811fb1d3e3743
/* * LZ4 Decompressor for Linux kernel * * Copyright (C) 2013, LG Electronics, Kyungsik Lee <kyungsik.lee@lge.com> * * Based on LZ4 implementation by Yann Collet. * * LZ4 - Fast LZ compression algorithm * Copyright (C) 2011-2012, Yann Collet. * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-licen...
C
lib/lz4/lz4_decompress.c
F4uzan/f4kernel-u0
gpl-2.0
7,767
333
codeparrot/github-code
8ae3498a9aa1250057096e1c84a65c5f2a900e8f18ff0f2379a5d0a8e49cbbae
var tempgraph = (function(module) { module.Profile = function(graph, scale, schedule, start_time) { var end = schedule[schedule.length-1][0]; this.length = end; this.time_total = juration.stringify(end); this.time_start = start_time; this.schedule = schedule; this.graph = graph; this.scalefunc = scale; ...
JavaScript
kiln/static/js/temp_profile.js
jamesgao/kiln_controller
gpl-2.0
12,433
345
codeparrot/github-code
359959139369f2a2ccbf609da9a3b4427ea08ebc66a87d0a68529f128f35903e
<?php /** * HUBzero CMS * * Copyright 2005-2015 HUBzero Foundation, LLC. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
PHP
core/plugins/courses/discussions/views/threads/tmpl/_threads.php
mulligaj/hubzero-cms
gpl-2.0
3,391
115
codeparrot/github-code
4f6b13e4cf6174ac6d0f4914181337e5646e9a75a8612bf575978383a303f4bc
package com.example.toast; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.widget.Toast; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { su...
Java
Android_6_weekTraning/Toast/src/com/example/toast/MainActivity.java
erpragatisingh/androidTraining
gpl-2.0
876
42
codeparrot/github-code
4b6507a5e212b07273e908531676544358a33fe9703e2c993d0d71a30d654dfd
using System; using System.IO; using System.Security.Cryptography; using System.Text; using System.Runtime.Remoting.Metadata.W3cXsd2001; namespace Allegiance.CommunitySecuritySystem.Client.Utility { public class Encryption<T> : IDisposable where T : HashAlgorithm, IDisposable { #region Fields ...
C#
Client/Allegiance.CommunitySecuritySystem.Client/Utility/Encryption.cs
FreeAllegiance/Allegiance-Community-Security-System
gpl-2.0
1,181
56
codeparrot/github-code
91ed240af37da2bc8ea1898b8b1db1ec11ac79c581a1730e08a255fd0832a935
/* -*- c++ -*- ---------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator https://lammps.sandia.gov/, Sandia National Laboratories Steve Plimpton, sjplimp@sandia.gov Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC...
C
src/fix_spring.h
rbberger/lammps
gpl-2.0
1,847
82
codeparrot/github-code
90ac1a25c2cf41e651d85b13996f446dba0b312c2c55c81c4b001ed4f0f59a79
/* * Copyright (c) 2002-2003, Intel Corporation. All rights reserved. * Created by: rusty.lynch REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. Test case for assertion #4 of the si...
C
testcases/open_posix_testsuite/conformance/interfaces/sigaction/4-92.c
anthony-kolesov/arc_ltp
gpl-2.0
900
40
codeparrot/github-code
51a4a343d06cb4d33a54911d33e78679cd0d7271666607e46396aa99df03459f
/* * Copyright (C) 2011 mooege project * * 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 di...
C#
src/Mooege/Net/GS/Message/Definitions/ACD/ACDDestroyActorMessage.cs
fengjz1/mooege
gpl-2.0
2,069
63
codeparrot/github-code
e6a0af71fb5aab892d31a6daf595d59ae782f88328a606505b94e3e1f29d57da
<?php class includes{ static $fonts = array( 'Arvo&v1' => 'http://fonts.googleapis.com/css?family=Arvo&v1', 'Cousine&v1' => 'http://fonts.googleapis.com/css?family=Cousine&v1', 'Quattrocento&v1' => 'http://fonts.googleapis.com/css?family=Quattrocento&v1', 'Wire+One&v1' => 'http://fonts.googleapis.c...
PHP
wp-content/themes/evento/lib/php/includes.class.php
trevhud/healthtechnologyforum
gpl-2.0
15,718
237
codeparrot/github-code
c213d8f5bacfc70d36f50619c8f8595fa6120dca61d5dceb10426d82e6e2e112
package cinemetroproject.cinemetro; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; /** * Created by kiki__000 on 20-Nov-14. */ public class ListViewAdapter extends ArrayAda...
Java
app/src/main/java/cinemetroproject/cinemetro/ListViewAdapter.java
efikalti/CineMetro
gpl-2.0
988
34
codeparrot/github-code
723afbf51cbd9221fce41885b5d5e3cee3c52ff3007fd2fa8952ef9307cfb1f4
#include "tr_local.h" #include <iostream> using namespace std; #include <cstdlib> #include <sys/timeb.h> #include "tr_debug.h" #ifdef __PERFORMANCE_DEBUG__ #include <chrono> std::chrono::time_point<std::chrono::steady_clock> DEBUG_PERFORMANCE_TIME; char DEBUG_PERFORMANCE_NAME[128] = { 0 }; #endif //__PER...
C++
codemp/rd-warzone/tr_debug.cpp
Stoiss/Rend2
gpl-2.0
2,767
97
codeparrot/github-code
9a0cd6b685adfb4c1ac07ab7a505ca8c35e8df19b5fded18de1fbb164b6cbd95
<?php /** * @package Joomla.Site * @subpackage mod_login * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; require_once JPATH_SITE . '/components/com...
PHP
templates/new/html/mod_login/default.php
jdrzaic/joomla-dummy
gpl-2.0
5,818
114
codeparrot/github-code
e5b712bfdcf0f8ba90e53d761a57f737eda4f904d5989b83e109d56d5d3d80fc
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); BST bst = new BST(); while (in.hasNext()) { String preorder = in.next(); String inorder = in.next(); for (int i = 0; i < preorder.length...
Java
TreeRecovery/Main.java
emanuelsaringan/uva
gpl-2.0
1,826
80
codeparrot/github-code
a11f0acc19e5bda54062a0e2865e25cd787ce70ead9ff097a6ff32cdc55b756a
/******************************************************************************* * Copyright (c) 2004, 2014 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
Java
org.eclipse.jface/src/org/eclipse/jface/util/Policy.java
AntoineDelacroix/NewSuperProject-
gpl-2.0
7,768
299
codeparrot/github-code
3edc3f427d73006b5ed25b51bf13ad9c02914052f98b5d864925d70b3d5daf7e
package com.liveman.shop.entity.user; import java.util.ArrayList; import java.util.List; public class ResetPasswordExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public ResetPasswordExample() { oredCriteria = new ArrayList<Criter...
Java
src/main/java/com/liveman/shop/entity/user/ResetPasswordExample.java
RainyZou/Shop
gpl-2.0
13,916
470
codeparrot/github-code
906e555b87b1fdbc3f526f951d11d10c6c919c3194807c864a3c68c1f8e8754d
;(function () { /* * Off-the-Record Messaging bindings for node/javascript * Copyright (C) 2012 Mokhtar Naamani, * <mokhtar.naamani@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as ...
JavaScript
lib/libotr-js-bindings.js
mnaamani/otr3-em
gpl-2.0
22,672
647
codeparrot/github-code
d7f396aa3b015a2911208a7bb873dcbd6a662aa3d5097797ca4469ae4a3195b5
/* * RapidMiner * * Copyright (C) 2001-2008 by Rapid-I and the contributors * * Complete list of developers available at our web site: * * http://rapid-i.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Lice...
Java
src/com/rapidminer/generator/BasicArithmeticOperationGenerator.java
ntj/ComplexRapidMiner
gpl-2.0
3,102
110
codeparrot/github-code
dfb4aa4c3cf3caba24341ec63b1b45f1f6f41d2cffada2829f7e20f1127d2689
#include<iostream> #include<cstdio> #include<cstring> //#include<vector> #include<algorithm> #define U_DEBUG //#define L_JUDGE #ifdef L_JUDGE #pragma warning(disable:4996) #endif using namespace std; int main(){ #ifdef L_JUDGE freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); #endif char str[100]...
C++
1_Algorithm/hdu/ACM_STEP/ch1_basic_c_grammar/s2_c_algorithm/4_The_Seven_Percent_Solution/4.cpp
fangtanchen/Learning
gpl-2.0
919
65
codeparrot/github-code
de018d8acad96c96476cb690d7de8cf7c8af66fd656d1f3845d12fafc1879ba6
/* Copyright 2008-2013 Josh Drummond This file is part of WebPasswordSafe. WebPasswordSafe 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 ...
Java
src/main/java/net/webpasswordsafe/server/dao/PasswordDAO.java
alfameCom/salasanasiilo
gpl-2.0
1,869
47
codeparrot/github-code
d85f579e6755ce7153ab571eef0da4ec6b9f9806e787f8ffd4a5c495b9df7e99
/* Copyright_License { XCSoar Glide Computer - http://www.xcsoar.org/ Copyright (C) 2000-2021 The XCSoar Project A detailed list of copyright holders can be found in the file "AUTHORS". This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
C++
src/Plane/PlaneFileGlue.cpp
sandrinr/XCSoar
gpl-2.0
5,937
193
codeparrot/github-code
3c2da4c6df56841c1c9bdde3757cd8d46f60a3451785a88b46f180d0c3b8ec08
/** * @package ZT Headline module for Joomla! 1.7 * @author http://www.zootemplate.com * @copyright (C) 2011- ZooTemplate.Com * @license PHP files are GNU/GPL **/ var ZTSlideShow5 = new Class({ Implements: [Events, Options], options:{}, initialize:function(options){ this.setOptions(options); this.jvSlide...
JavaScript
modules/mod_zt_headline/assets/js/zt_maju.js
yuri12015/leluan
gpl-2.0
17,043
408
codeparrot/github-code
458b70fb7fef29bddd21a784edd782528489e5692dfdece771984893efeff529
<?php /** * @package WordPress * @subpackage ThemeWoot * @author ThemeWoot Team * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/g...
PHP
wp-content/themes/emulate/theme/js-composer/js-composer.php
junxionstrategy/svnindia
gpl-2.0
8,316
325
codeparrot/github-code
b4706060ca00dc5ae2b1e2a071635e3af2d35e9764dea1c13b692ad839e21d27
/* * AudioPlayer.java * * Copyright 2017 Dariusz Sikora <dev@isangeles.pl> * * 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...
Java
src/main/java/pl/isangeles/senlin/audio/AudioPlayer.java
Isangeles/Senlin
gpl-2.0
8,868
299
codeparrot/github-code
b3a7c35e6a8c5bd65519161f10f5c2e4ae6f23926e9e20679470b48f4562435f
<?php global $post; $htmlvar_name = $htmlvar_name; $featured=get_post_meta($post->ID,'featured_c',true); $classes =($featured=='c')?'featured_c':''; ?> <article class="post <?php echo $classes;?>"> <?php do_action('event_before_category_page_image'); /*do_action before the post...
PHP
wp-content/plugins/Tevolution-Events/templates/entry-event.php
nhiha60591/sumona-new
gpl-2.0
2,008
48
codeparrot/github-code
0c87e1a1b52df458339affd7a49a392624b46782ea4372d37895b5e316964261
<?php /** * Comment model * * @copyright 2009-2016 Vanilla Forums Inc. * @license http://www.opensource.org/licenses/gpl-2.0.php GNU GPL v2 * @package Vanilla * @since 2.0 */ /** * Manages discussion comments data. */ class CommentModel extends VanillaModel { /** Threshold. */ const COMMENT_THRESHOLD...
PHP
applications/vanilla/models/class.commentmodel.php
chuck911/vanilla4china
gpl-2.0
51,383
1,425
codeparrot/github-code
380d8f70a764e4e79fdeabd43fad3cbbef5a518ebedf4d2f1d5cc829001e9419
/* * Copyright (c) 2011-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 ...
C
arch/arm/mach-msm/acpuclock-8064.c
SerenityS/Solid_Kernel-Stock-KK
gpl-2.0
46,677
1,048
codeparrot/github-code
85b7d4419385c51eb589474d9b3c42e82751179db31152d0cd14a88a5c34e3a8
#!/bin/bash # Copyright 2014-2017 Holger Levsen <holger@layer-acht.org> # © 2015 Mattia Rizzolo <mattia@mapreri.org> # released under the GPLv=2 DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" # common code defining db access . /srv/jenkins/bin/reproducible_common.sh DIRTY=false REP_RESU...
Shell
bin/reproducible_maintenance.sh
lamby/jenkins.debian.net
gpl-2.0
19,953
525
codeparrot/github-code
0606dc610e33f890ec5c3108b549880d015894983f50deaf0304475c39d460d9
#!/usr/bin/perl -w # vi: set ts=4: # Copyright (c) 2001 David Schleef <ds@schleef.org> # Copyright (c) 2001 Erik Andersen <andersen@codepoet.org> # Copyright (c) 2001 Stuart Hughes <stuarth@lineo.com> # Copyright (c) 2002 Steven J. Hill <shill@broadcom.com> # This program is free software; you can redistribute it and/o...
Perl
tools/depmod.pl
amoxoo/dir-615-c1-uboot
gpl-2.0
5,710
238
codeparrot/github-code
7e49ad54a6500f6eb7bb1856adbeddb899a2d04f34a37ccebc38dbea33d4ffee
#include "cache.h" #include "wt-status.h" #include "color.h" #include "object.h" #include "dir.h" #include "commit.h" #include "diff.h" #include "revision.h" #include "diffcore.h" #include "quote.h" #include "run-command.h" #include "remote.h" int wt_status_relative_paths = 1; int wt_status_use_color = -1; int wt_stat...
C
wt-status.c
certik/git
gpl-2.0
11,997
415
codeparrot/github-code
620d5f80467c05f7e02639f2b98711509b8aa27748fb1c2273b191eaaa605b11
function reemp(val) { document.getElementById("d").value = val; } function ader(val) { document.getElementById("d").value += val; } String.prototype.insertAt = function (index, string) { return this.substr(0, index) + string + this.substr(index); }; String.prototype.isNegative = function () { return t...
JavaScript
src/main/webapp/resources/mytheme/js/javascript.js
JordanEC/spring-mvc-calculator
gpl-2.0
1,855
79
codeparrot/github-code
ab62f43b14c27ec80e4705c049a941efcd52121eb23fa626dee311962511f107
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.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, or (at your option) * any later version. * * ...
C++
xbmc/cores/DSPlayer/VideoRenderers/RenderDSManager.cpp
kodibrasil/xbmc
gpl-2.0
13,488
578
codeparrot/github-code
bd1e1506349fb4b03d51567e772139bc36eaa52988496e25aa9692dcdaf10c24
<?php /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
PHP
aliyun-openapi-php-sdk-master/aliyun-php-sdk-ecs/Ecs/Request/V20140526/StartInstanceRequest.php
q963181875060/freedom-v1
gpl-2.0
2,263
84
codeparrot/github-code
97e7801c74530d89a958861c42a831ca2b44f19b919bb63cf111d41fbb79034f
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2014 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides default renderer for control sap.ui.commons.MessageToast jQuery.sap.declare("sap.ui.commons.MessageToastRende...
JavaScript
ALS_client/src/main/webapp/openui5-runtime-1.24.3/resources/sap/ui/commons/MessageToastRenderer-dbg.js
amiramw/ALS-hackathon
gpl-2.0
2,104
57
codeparrot/github-code
0389b6370bc1e8fe3e1564aac6c0ce119f747c4d6569296425d0c150b625d258
/* * Copyright (C) 2005 Martin Budaj * * -------------------------------------------------------------------- * 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
thepsparse.h
therion/test
gpl-2.0
4,024
171
codeparrot/github-code
c8e78500290329da3c998b105b65bff4356eae945560a5c5e257ef969cd62e33
/*------------------------------------------------------------------------- math.h - Floating point math function declarations Copyright (C) 2001, Jesus Calvino-Fraga <jesusc AT ieee.org> Ported to PIC16 port by Vangelis Rokas, 2004 <vrokas AT otenet.gr> This library is free software; you can redistribute...
C
device/include/pic16/math.h
darconeous/sdcc
gpl-2.0
3,378
93
codeparrot/github-code
3d5c9c56ecee084ed5618f363b15f8abb05cc661a382d71ede563a592119b873
#include "Wire.h" WireModel::WireModel() { } WireModel::~WireModel() { } void WireModel::SetHumanModel(Model* humanModel) { human = *humanModel; humanBoneIndex = new int[pmx->boneNum]; int i; for( i=0; i<pmx->boneNum; i++ ) { int index = boneIndexList[ i ]; int parentIndex = pmx->bone[index].parentBoneInde...
C++
Wire.cpp
mskyj/3DGame
gpl-2.0
11,192
474
codeparrot/github-code