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 |
|---|---|---|---|---|---|---|---|---|
a429fa44db189b1ea6e22eb03c08358791bf931a6ae78e271fa3f8105b18a5a5 | /*FreeMind - A Program for creating and viewing Mindmaps
*Copyright (C) 2000-2011 Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitri Polivaev and others.
*
*See COPYING for Details
*
*This program is free software; you can redistribute it and/or
*modify it under the terms of the GNU General Public License
... | Java | plugins/map/JCursorMapViewer.java | derekprovance/Freemind | gpl-2.0 | 9,023 | 288 | codeparrot/github-code |
7189c96dd6fa557882217d3f2b80368b596e197ba8b4843c4f63b0e34453b28e | /* GStreamer
* Copyright (C) 2005 Wim Taymans <wim@fluendo.com>
*
* gstalsasink.h:
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at yo... | C | modules/media/src/main/native/gstreamer/gstreamer-lite/gst-plugins-base/ext/alsa/gstalsasink.h | teamfx/openjfx-8u-dev-rt | gpl-2.0 | 2,736 | 90 | codeparrot/github-code |
dd8e9d9abf651de7dc8d502646b4fd25fc19f25972e471d4911601974cbd0d85 | package io.github.dousha.randomCraft.randomcraft;
import java.util.HashMap;
// WHY DOESN'T JAVA HAVE A STRUCT
public class ItemDescription implements Cloneable{
public boolean type; // false = in, true = out, I would use #define in c/c++!
public String itemname;
@Deprecated
public int itemid;
public boolean isM... | Java | RandomCraft/src/main/java/io/github/dousha/randomCraft/randomcraft/ItemDescription.java | dousha/MySpigotPlugins | gpl-2.0 | 815 | 35 | codeparrot/github-code |
e8ebe8f6b406e5ae895a762594bf442f5e443f68a125a0d35e411ec653c2ca13 | // Simple class for communicating with a serial port.
// Copyright (C) 2016 Kevin Somervill
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your... | C | communication_manager.h | ksomervi/serialport | gpl-2.0 | 1,650 | 59 | codeparrot/github-code |
22f58f6eecf14abf5bc6d191ae9305989ec217c58e701fca6da65df523ba7788 | # pygopherd -- Gopher-based protocol server in Python
# module: serve up gopherspace via http
# $Id: http.py,v 1.21 2002/04/26 15:18:10 jgoerzen Exp $
# Copyright (C) 2002 John Goerzen
# <jgoerzen@complete.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GN... | Python | pygopherd/protocols/http.py | mas90/pygopherd | gpl-2.0 | 12,731 | 230 | codeparrot/github-code |
116c882cfe346549a51d84bc21f2ef55572e0ca77c91c051d7962375c7a7ec12 | /* LAPD over datagram user-mode example. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/logging.h>
#include <osmocom/c... | C | examples/lapd-over-datagram-user.c | osmocom/libosmo-netif | gpl-2.0 | 5,441 | 242 | codeparrot/github-code |
34f5461855db4b8ea9c058dfd1932ba6aecf828231796895ebdf2abe10d5746a | // leave this line at the top for all g_xxxx.cpp files...
#include "g_headers.h"
#include "G_Local.h"
typedef map < string, int > timer_m;
timer_m g_timers[ MAX_GENTITIES ];
/*
-------------------------
TIMER_Clear
-------------------------
*/
void TIMER_Clear( void )
{
for ( int i = 0; i < MAX_GENTITIES; i++ )... | C++ | code/game/G_Timer.cpp | grayj/Jedi-Outcast | gpl-2.0 | 4,730 | 257 | codeparrot/github-code |
90e5805b5484f21e68331d2797081fd586ac7f71c59e2d837170a78b59bed731 | /***************************************************************************
* Copyright (C) 2010 by Xavier Lefage *
* xavier.kwooty@gmail.com *
* *
* This pr... | C | src/systraylegacy.h | KDE/kwooty | gpl-2.0 | 2,704 | 89 | codeparrot/github-code |
87bab99876e015c2df0d1dbd46e4ec60b79a145ec085ebce11f17b993dfd907e | /*
* Copyright 2013, Red Hat, Inc. and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public ... | Java | zanata-war/src/main/java/org/zanata/file/FileSystemPersistService.java | itsazzad/zanata-server | gpl-2.0 | 5,646 | 159 | codeparrot/github-code |
de6bb154f21fe1950d6c6dc62148495204a3ee251ba46a408f1c6625a17b312b | /*
* PowerNV OPAL high level interfaces
*
* Copyright 2011 IBM Corp.
*
* 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 ve... | C | arch/powerpc/platforms/powernv/opal.c | JPRasquin/Ubuntu14.04 | gpl-2.0 | 13,370 | 530 | codeparrot/github-code |
4809afc34a3351af3b40df2ac6c31a419fb08c0f149e952c90f19199047d2e2b | /*
Copyright (C) 2017 Axel Müller <axel.mueller@avanux.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is dis... | TypeScript | src/main/angular/src/app/control/startingcurrent/starting-current-switch.ts | camueller/SmartApplianceEnabler | gpl-2.0 | 1,174 | 35 | codeparrot/github-code |
80c27da7e2a69ca66bba36a73ce01da57b33c1a946bfab07f18640b226abd364 | package info.thecodinglive.service;
import info.thecodinglive.model.Team;
import info.thecodinglive.repository.TeamDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;... | Java | ch06/src/main/java/info/thecodinglive/service/TeamServiceImpl.java | thecodinglive/hanbit-gradle-book-example | gpl-2.0 | 902 | 44 | codeparrot/github-code |
e9cd1ffa308c48209669631b12d787510e4b90bfd7f104ade81224c9f06bbe8c | #pragma once
#include "Cute/Foundation.h"
#include "Cute/Timestamp.h"
CUTE_NS_BEGIN
enum LogLevel
{
LOG_LEVEL_FATAL = 1,
LOG_LEVEL_CRITICAL,
LOG_LEVEL_ERROR,
LOG_LEVEL_WARNING,
LOG_LEVEL_NOTICE,
LOG_LEVEL_INFORMATION,
LOG_LEVEL_DEBUG,
LOG_LEVEL_TRACE,
LOG_LEVEL_MAX,
};
struct CUTE_CORE_API LogMessage
{
publ... | C | engine/include/Cute/LogMessage.h | jeckbjy/engine | gpl-2.0 | 2,947 | 172 | codeparrot/github-code |
7d0428915920a8759e5ebaf2dcadb112d8c8d25b9674c68b389a3893d5891930 | <?php
/**
* @file
* Contains \Drupal\fillpdf\Service\FillPdfLinkManipulator.
*/
namespace Drupal\fillpdf\Service;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Url;
use Drupal\fillpdf\Entity\FillPdfForm;
use Drupal\fillpdf\FillPdfLinkManipulatorInterface;
use Symfony\Component\HttpFoundation\Request;
/*... | PHP | modules/fillpdf/src/Service/FillPdfLinkManipulator.php | AshishNaik021/iimisac-d8 | gpl-2.0 | 6,027 | 201 | codeparrot/github-code |
5258068c792544c36b6da723b4e06b76d26a0baf094ddd01037ac76bf054ccf1 | package org.lastbamboo.common.sip.stack.message.header;
import java.io.IOException;
import java.net.InetAddress;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.id.uuid.UUID;
import org.apac... | Java | common/sip/stack/src/main/java/org/lastbamboo/common/sip/stack/message/header/SipHeaderFactoryImpl.java | adamfisk/littleshoot-client | gpl-2.0 | 7,606 | 217 | codeparrot/github-code |
f43377beb94be94a055ebab28ff3b18f5585b45b9cd6178f89553368bf1487fc | package testing;
/**
* Copyright (C) 2015 Matthew Mussomele
*
* This file is part of ChoiceOptimizationAlgorithm
*
* ChoiceOptimizationAlgorithm 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, e... | Java | testing/TestSchedule.java | Unit4TechProjects/ChoiceOptimization | gpl-2.0 | 3,494 | 105 | codeparrot/github-code |
c1baf9f58e207101a94a00a45a6e7fc42a5f244d30bb6177cda1c795586c2d69 | //
// --------------------------------------------------------------------------
// Gurux Ltd
//
//
//
// Filename: $HeadURL$
//
// Version: $Revision$,
// $Date$
// $Author$
//
// Copyright (c) Gurux Ltd
//
//------------------------------------------------------------... | C# | Development/Objects/GXApplicationContextName.cs | Gurux/Gurux.DLMS.Net | gpl-2.0 | 2,668 | 101 | codeparrot/github-code |
ef622945f73a49f6fb4a97d979d038297f999ef156f034673ffc1da1670fdd38 | #
# Copyright 2019-2022 Ghent University
#
# This file is part of vsc-mympirun,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# the Flemish Research Foundat... | Python | test/mytaskprolog.py | hpcugent/vsc-mympirun | gpl-2.0 | 1,831 | 55 | codeparrot/github-code |
b5d075daf1aaed372477b29bf56c2e6ea3a2788203a27345a60b55410f57116d | /**
*
*/
package co.innovate.rentavoz.services.ciudad;
import java.util.List;
import co.innovate.rentavoz.model.Ciudad;
import co.innovate.rentavoz.model.Departamento;
import co.innovate.rentavoz.services.GenericService;
/**
* @author <a href="mailto:elmerdiazlazo@gmail.com">Elmer Jose Diaz Lazo</a>
* @project ... | Java | src/main/java/co/innovate/rentavoz/services/ciudad/CiudadService.java | kaisenlean/rentavoz3 | gpl-2.0 | 887 | 50 | codeparrot/github-code |
044db030f1a058f5d6f4302c7a1b03e480a925406b51514be997f288962567d6 | /*
* Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
* Copyright (c) 2014- QLogic Corporation.
* All rights reserved
* www.qlogic.com
*
* Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms ... | C | drivers/scsi/bfa/bfa_fcpim.h | linux-scraping/linux-grsecurity | gpl-2.0 | 14,648 | 437 | codeparrot/github-code |
7b77f714fe6094a281aa62b87a095b0b6751a29e65b1f45cb090b167c2da9fee | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
* (C) 2006 Alexey Proskuryakov (ap@nypop.com)
*
* This library is free sof... | C++ | modules/web/src/main/native/Source/WebCore/html/FormAssociatedElement.cpp | 166MMX/openjdk.java.net-openjfx-8u40-rt | gpl-2.0 | 8,934 | 308 | codeparrot/github-code |
98c29176c0cae277126942e20fb562e43e4677c7e75ae25429803fb65fb7ce72 | /*
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | Java | openjdk/jdk/test/javax/management/modelmbean/UnserializableTargetObjectTest.java | TheTypoMaster/Scaper | gpl-2.0 | 7,371 | 160 | codeparrot/github-code |
86ba98e0963b363147758a9e332b0edac20f18c5b3c1bc637145c580a743d753 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 Zomboided
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option)... | Python | managefiles.py | Zomboided/VPN-Manager | gpl-2.0 | 11,679 | 218 | codeparrot/github-code |
5b2c77f3632fa0aac45bd8752c53e62396c5e8d47a3265fe75e5b0d958eb1c34 | /*-------------------------------------------------------------------------
*
* libpq-fe.h
* This file contains definitions for structures and
* externs for functions used by frontend postgres applications.
*
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 199... | C | src/libpq/libpq-fe.h | gestiweb/eneboo | gpl-2.0 | 17,499 | 510 | codeparrot/github-code |
9048ab7bec8c06be1fec0f8a2c69245910713685fb056add8e504a41eaf67d4c | package nl.HAN.ASD.APP.dataStructures;
import com.google.gag.annotation.disclaimer.WrittenWhile;
import java.util.*;
/**
* Created by Pim van Gurp, 9/9/2015.
*/
@SuppressWarnings({"NullableProblems", "ConstantConditions"})
public class MyArrayList<T> implements List<T>, Iterable<T> {
/**
* Amount of eleme... | Java | src/nl/HAN/ASD/APP/dataStructures/MyArrayList.java | PimvanGurp/advanced-java | gpl-2.0 | 6,537 | 288 | codeparrot/github-code |
f83945573f90258c578ed933513e92cb8bec43fb7c4e4bd5b13d21a884e96701 | /**
* Copyright 2007 Wei-ju Wu
*
* This file is part of TinyUML.
*
* TinyUML 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.
*... | Java | src/test/java/test/mdauml/umldraw/shared/NoteElementTest.java | proyectos-fiuba-romera/nilledom | gpl-2.0 | 2,826 | 83 | codeparrot/github-code |
052f1a4fac14e337df4cc6adc7f2b63b99874fd25a8e2ee9196a65fd8d24a66c | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Downloadable\Test\Unit\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloadable;
/**
* Class LinksTest
*
* @package Magento\Downloadable\Test\Unit\Block\Adminhtml\Catalog\Product\Edit\Tab\Downloada... | PHP | app/code/Magento/Downloadable/Test/Unit/Block/Adminhtml/Catalog/Product/Edit/Tab/Downloadable/LinksTest.php | kunj1988/Magento2 | gpl-2.0 | 7,482 | 190 | codeparrot/github-code |
9cbd85bf027ac0f708e307309142b663cf8f6583a0e846d03ec911d082b19246 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Uduino;
public class MegaReadWrite : MonoBehaviour {
// Be sure to select Arduino MEGA as board type
// If your board is not detected, increase Discover delay to 1.5s or more.
int pin14;
int digitalPin42;
void ... | C# | Assets/Uduino/Examples/Advanced/Arduino Mega/MegaReadWrite.cs | BeAnotherLab/The-Machine-to-be-Another-Unity | gpl-2.0 | 1,804 | 50 | codeparrot/github-code |
348c56540a6dccb8b24f7a9325400ce8ee8f77dd7ba916f894474fe662a5a623 | /*
* This file is part of MetaTheme.
* Copyright (c) 2004 Martin Dvorak <jezek2@advel.cz>
*
* MetaTheme 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 opt... | Java | toolkits/java/metatheme/MetaThemeMenuItemUI.java | Icenowy/metatheme | gpl-2.0 | 6,011 | 192 | codeparrot/github-code |
6d40c45bba3c27c8b9ec17a3cb13caa6be85bdf977a07fdbb2528c44f3bbb2b2 | /*
Copyright (C) 2003 - 2016 by David White <dave@whitevine.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.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 v... | C++ | src/leader_scroll_dialog.cpp | Dugy/wesnoth-names | gpl-2.0 | 9,320 | 287 | codeparrot/github-code |
5f17abbaf73526ac5b18e06d576a5e8ab6b5a754cccbec5a3ea25eb558cd9b4c | /** \file
* SVG <feSpecularLighting> implementation.
*
*/
/*
* Authors:
* hugo Rodrigues <haa.rodrigues@gmail.com>
* Jean-Rene Reinhard <jr@komite.net>
* Abhishek Sharma
*
* Copyright (C) 2006 Hugo Rodrigues
* 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more info... | C++ | src/filters/specularlighting.cpp | danieljabailey/inkscape_experiments | gpl-2.0 | 11,839 | 337 | codeparrot/github-code |
e615b3e9f2fac538a71338bbd66901c37b99f53c41f7988994d65b21b6883526 | /*
* Epson Blizzard LCD controller driver
*
* Copyright (C) 2004-2005 Nokia Corporation
* Authors: Juha Yrjola <juha.yrjola@nokia.com>
* Imre Deak <imre.deak@nokia.com>
* YUV support: Jussi Laako <jussi.laako@nokia.com>
*
* This program is free software; you can redistribute it and/or modify... | C | drivers/video/omap/blizzard.c | umeshkrishnan/pb-bugbase-kernel | gpl-2.0 | 43,420 | 1,650 | codeparrot/github-code |
8554f4299e9723a7cad250ca51f21927e069c774208d2b4f1b67c31971cf083f | /*
*
* $Id: pvrusb2-tuner.c,v 1.1.1.1 2010/03/11 21:07:26 kris Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
* Copyright (C) 2004 Aurelien Alleaume <slts@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... | C | drivers/media/video/pvrusb2/pvrusb2-tuner.c | fgoncalves/Modified-TS7500-Kernel | gpl-2.0 | 3,287 | 122 | codeparrot/github-code |
7308acad4a6b2a28a4210a1b6794cc449cedca7a3f09e41a679e58c91c5c917c | /*
* Copyright (C) 2011-2021 Project SkyFire <https://www.projectskyfire.org/>
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2005-2021 MaNGOS <https://www.getmangos.eu/>
* Copyright (C) 2006-2014 ScriptDev2 <https://github.com/scriptdev2/scriptdev2/>
*
* This program is free ... | C++ | src/server/scripts/EasternKingdoms/BlackrockMountain/BlackrockSpire/boss_shadow_hunter_voshgajin.cpp | ProjectSkyfire/SkyFire.548 | gpl-2.0 | 3,515 | 111 | codeparrot/github-code |
af98c7b77a000e0c8747fe4950f7317e1b08a09cbc30b47517365965b78a08f4 | /**
* Copyright 2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public
* License as published by the Free Software Foundation; either version
* 2 of the License (GPLv2) or (at your option) any later version.
* There is NO WARRANTY for this software, express or implied,
* including t... | JavaScript | engines/bastion/test/content-views/details/content-view-versions.controller.test.js | dustints/katello | gpl-2.0 | 2,686 | 72 | codeparrot/github-code |
74db30cdda928a8f7ea2f9f951a2a212990d138cf556f373c1dac101f3f04859 | <?php
/* -----------------------------------------------------------------
* $Id: create_pdf.php 1457 2015-04-21 09:38:44Z akausch $
* Copyright (c) 2011-2021 commerce:SEO by Webdesign Erfurt
* http://www.commerce-seo.de
* ------------------------------------------------------------------
* based on:
... | PHP | admin/create_pdf.php | commerceseo/v2next | gpl-2.0 | 9,467 | 184 | codeparrot/github-code |
45d80eab977fe602e5630192e7668e948b4952d87813381e2ebd572c0f746d80 | /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* Mutter X property convenience routines */
/*
* Copyright (C) 2001 Havoc Pennington
* Copyright (C) 2002 Red Hat Inc.
*
* Some trivial property-unpacking code from Xlib:
* Copyright 1987, 1988, 1998 The Open Group
* Copyright 1988 by Wyse... | C | src/x11/xprops.c | GNOME/mutter | gpl-2.0 | 33,286 | 1,127 | codeparrot/github-code |
44c6ac72bb26f6edb6fe870a42d71c60f8b30cca328e101946423cea8f2c9b78 |
/******************************************************************************
*
* This file is part of canu, a software program that assembles whole-genome
* sequencing reads into contigs.
*
* This software is based on:
* 'Celera Assembler' (http://wgs-assembler.sourceforge.net)
* the 'kmer package' ... | C++ | src/AS_UTL/splitToWords.H | sgblanch/canu | gpl-2.0 | 4,157 | 155 | codeparrot/github-code |
c878c8c3e2fd8a4eeca0eebd5f49f1056a6a92734865d75735ea6a39319dc9af | using System.Data;
using System.Linq;
namespace Travelling.DataLayer.DatabaseTypes
{
public class SqlServerCEDatabaseType : DatabaseType
{
public override string BuildPageQuery(long skip, long take, PagingHelper.SQLParts parts, ref object[] args)
{
var sqlPage = string.Format("{0}\n... | C# | src/Travelling.DataLayer/DatabaseTypes/SqlServerCEDatabaseType.cs | binlyzhuo/travelling | gpl-2.0 | 1,054 | 31 | codeparrot/github-code |
da6aeee29c74c6e31bd5085dbaf4882d19aa1671825eab8250bbba77dd3306a8 | /*
* Copyright © 2009 Jonny Lamb <jonny@debian.org>
*
* based on the Python extension by Stefan Stuhr:
* Copyright (C) 2006 Stefan Stuhr
*
* 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 Fou... | C | extensions/confirmwindowclose/ephy-confirmwindowclose-extension.h | jonnylamb/epiphany-extensions-jonny | gpl-2.0 | 2,535 | 73 | codeparrot/github-code |
babaccdef2fbbab6fce4a911831c1ef94d3e88d02eb60c88312de87a6bba3248 | using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using AKMII.DMRA.Common;
using AKMII.DMRA.DataAccess;
using AKMII.DMRA.Business.Rule;
namespace AKMII.DMRA.Business.Management
{
public class OrderManager
{
private OrderAccessor orderAccessor;
... | C# | Agent Lead Spanish/AKMII.DMRA.Business/Management/OrderManager.cs | limao4223127/NCR_Pay | gpl-2.0 | 9,469 | 282 | codeparrot/github-code |
839b05a4d95f826b46ea99dc1735968ba57657f19814c947aa658bd56e0e748e | /*
JPC: An x86 PC Hardware Emulator for a pure Java Virtual Machine
Copyright (C) 2012-2013 Ian Preston
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation.
This progra... | Java | src/main/java/com/github/smeny/jpc/emulator/execution/opcodes/pm/fsub_ST5_ST1.java | smeny/JPC | gpl-2.0 | 2,064 | 64 | codeparrot/github-code |
8d77f8367e64f0718873badf47dc5c32278c05ee6c2a53f20580c52f962de556 | #ifndef _BZOS_TYPE_H_
#define _BZOS_TYPE_H_
typedef unsigned long long u64;
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef void (*irq_handler)(int irq);
typedef void (*int_handler)();
typedef void (*task_f)();
typedef void* system_call;
typedef char* va_list;
/* mesaage... | C | include/type.h | liangbizhi/bzOS | gpl-2.0 | 915 | 60 | codeparrot/github-code |
ace4f70dc138534d1c2a8a264ad6845c75db2f6479e4616e51889ca14658d890 | /*
* Copyright (c) 2003, Brent Fulgham <bfulgham@debian.org>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*
* This module contains functions for generating tags for Erlang language
* files. Some of ... | C | parsers/erlang.c | p-montanus/ctags | gpl-2.0 | 4,920 | 193 | codeparrot/github-code |
1f1b12a4223a725e18fbd4b6b7e93216ae353f962d4982f8ffe50317f2a7653d | using System;
using System.Drawing;
using Sdl.Desktop.IntegrationApi.Interfaces;
namespace Sdl.Community.InSource.Notifications
{
public class InSourceCommand : IStudioNotificationCommand
{
private readonly Action action;
public event EventHandler CanExecuteChanged;
public InSourceCommand(Action action)
{
... | C# | InSource/Notifications/InSourceCommand.cs | sdl/Sdl-Community | gpl-2.0 | 612 | 32 | codeparrot/github-code |
5b167c6b21dcfca15ffa1edfc7f0532e322c398c387ddf0a2058c9439a978821 | /*
* linux/mm/vmscan.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
*
* Swap reorganised 29.12.95, Stephen Tweedie.
* kswapd added: 7.1.96 sct
* Removed kswapd_ctl limits, and swap out as many pages as needed
* to bring the system back to freepages.high: 2.4.97, Rik van Riel.
* Zone aware k... | C | mm/vmscan.c | arpitjain9819/FIRE-AND-FLAMES | gpl-2.0 | 96,926 | 3,407 | codeparrot/github-code |
f3c9b99007d03194d0902d3fbfa1cd5afcea5c3af60a1cc0a6a6f813d8031f83 | <script type="text/javascript" src=" http://api.sandbox.premium-itc.com/js/pitc.wapi.js"></script>
<script language="javascript">
/*var pitc;
// Build pitc only once: may be included in both parent and child pages
(function ($) {
if (pitc === undefined) {
pitc = {};
pitc.wapi = {};
... | PHP | wp-content/plugins/tarificateur/templates/tarificateur-show-ccn-prevoyance.php | Hellrikh/test | gpl-2.0 | 6,136 | 169 | codeparrot/github-code |
f731a2064193b0a9086e5855565cbefc2631b0eef60d5ea8a38ad8000befbd34 | /*
===========================================================================
blockattack - Block Attack - Rise of the Blocks
Copyright (C) 2005-2012 Poul Sander
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 ... | C | source/code/common.h | blockattack/blockattack-game | gpl-2.0 | 5,531 | 188 | codeparrot/github-code |
3db259f8f59e3e81ea74a5b1fdcae306811e6d12122e8a3a47cbf5d701e2976a | <?php
/* core/themes/classy/templates/block/block.html.twig */
class __TwigTemplate_bfe7de7029fe23539e40b1b3d2a1fb03458b678ab1f31a91b772626576939d2c extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->bl... | PHP | sites/default/files/php/twig/5950fd5a54b19_block.html.twig_IN1I9oXrcwZUfj1L4CZRKjtGc/e-KEHTy1bHxjQyEJEUjjaTyko65jzTOpXNmtkgttEp0.php | ijisthee/dr8_c1_prd | gpl-2.0 | 6,068 | 152 | codeparrot/github-code |
844c9b37e2a7849a3c195f993204f56474c7665a213f861b4fc3319933fc991e | # -*- coding: utf-8 -*-
"""
uds.warnings
~~~~~~~~~~~~
:copyright: Copyright (c) 2015, National Institute of Information and Communications Technology.All rights reserved.
:license: GPL2, see LICENSE for more details.
"""
import warnings
def deprecated(func):
"""This is a decorator which can be used to mark func... | Python | uds/warnings.py | nict-isp/uds-sdk | gpl-2.0 | 979 | 43 | codeparrot/github-code |
53ea54bbcd3f72828530902023a9d2b1550e047ae25745465ca7323443ff6b4a | /* Copyright (C) 2022, Specify Collections Consortium
*
* Specify Collections Consortium, Biodiversity Institute, University of Kansas,
* 1345 Jayhawk Boulevard, Lawrence, Kansas, 66045, USA, support@specifysoftware.org
*
* This program is free software; you can redistribute it and/or
* modify it under the term... | Java | src/edu/ku/brc/specify/tools/schemalocale/SchemaLocalizerDlg.java | specify/specify6 | gpl-2.0 | 43,764 | 1,145 | codeparrot/github-code |
45104f63b0df96b2f2026f0cc99869d3f834e06bf26fbc516617849bc7635e59 | <!DOCTYPE html>
<html lang="zh-cn">
<!-- Mirrored from www.w3school.com.cn/tiy/t.asp?f=html_header by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Dec 2015 00:30:04 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=GB2312" /><!-- /Added by HTTrack -->
<head>
<meta charset=... | HTML | Coding/W3School/W3CN/www.w3school.com.cn/tiy/tb30d.html | platinhom/ManualHom | gpl-2.0 | 2,507 | 107 | codeparrot/github-code |
66f1c0e2be943d3bbca7458af0a76fb724ab603b57f2f2373ca6ad7a2ee4c3c5 | /** @file io/xmlparser.cc xml parsing class used in xmlreader.cc */
///////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2004 California Institute of Technology
// Copyright (c) 2004-2007 University of Southern California
// Rob Peters <https://github.com/rjpcal/>
//
// crea... | C++ | src/io/xmlparser.cc | rjpcal/groovx | gpl-2.0 | 5,403 | 200 | codeparrot/github-code |
4f11fe4bf74798449e13c5b31dc0b1e56c347fcbb8c90a28289e79744077665a | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
namespace Zen.Massage.Site
{
public static class ClaimsHelpers
{
private static readonly string AdminClaim = "http://schemas.zenmassage.com/claims/administrator";
priv... | C# | src/Zen.Massage.Site/ClaimsHelpers.cs | dementeddevil/zenmassage | gpl-2.0 | 1,358 | 43 | codeparrot/github-code |
98ac943be936fb9eadf173366052418bb95aecead99f62cd4c6fa09f3a98504c | __author__ = 'dako'
class SessionHelper:
def __init__(self, app):
self.app = app
def login(self, username, password):
wd = self.app.wd
self.app.open_home_page()
wd.find_element_by_name("user").click()
wd.find_element_by_name("user").clear()
wd.find_element_by_... | Python | fixture/session.py | EvilDako/PyTraining | gpl-2.0 | 1,421 | 48 | codeparrot/github-code |
9effa0cd92969322d274cf34f8c56f8d72afed7cf4a844cada7e3b4e74720464 | local questSystemOld = Action()
function questSystemOld.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.uid <= 100 or item.uid >= 41560 then
return false
end
local itemType = ItemType(item.uid)
if itemType:getId() == 0 then
return false
end
local itemWeight = itemType:getWeight()
l... | Lua | data/scripts/actions/system/questSystemOld.lua | mattyx14/otxserver | gpl-2.0 | 944 | 31 | codeparrot/github-code |
2d855beaeec3dae1d0ffa6a7010fea37b7f4ba5f5c7efd5cdb07603054017e2d | <?php
/// First we check that form variables have been initialised
if (!isset($form->name)) {
$form->name = '';
}
if (!isset($form->description)) {
$form->description = "";
}
if (!isset($form->format)) {
$form->format = "";
}
?>
<form name="form" method="post" action="mod.php">
<c... | HTML | mod/ilpconcern/mod.html | orvsd/moodle19 | gpl-2.0 | 2,761 | 79 | codeparrot/github-code |
601ce4948b88e617d98b9ec294dc91c409a83b216ac802d559403ed2f8a696c7 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Computer_Drafter.Models
{
class MotherboardModel : PartModel
{
private List<string> amdChipsets;
private List<string> intelChipsets;
private string selChipset;
... | C# | Computer Drafter/Models/MotherboardModel.cs | VesnaBrucoms/computer-drafter-wpf | gpl-2.0 | 3,226 | 120 | codeparrot/github-code |
00b69f80bf4615b2f72ae0196bb96b8a8185741aad5d1070d5d24ffa86438571 | <?php
/*
Plugin Name: WordPress Backup to Dropbox
Plugin URI: http://wpb2d.com
Description: Keep your valuable WordPress website, its media and database backed up in Dropbox! Need help? Please email support@wpb2d.com
Version: 4.5
Author: Michael De Wildt
Author URI: http://www.mikeyd.com.au
License: Copyright 2011-2015... | PHP | wp-content/plugins/wordpress-backup-to-dropbox/wp-backup-to-dropbox.php | Rockdrill/intranet | gpl-2.0 | 12,259 | 385 | codeparrot/github-code |
ad7f7abf22b076a2dfc462a56cf767d58ec9381b9c7153f098f96b90395359cb | /*
* drivers/cpufreq/cpufreq_zzmoove.c
*
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
* (C) 2009 Alexander Clouter <alex@digriz.org.uk>
*
* This program is free software; ... | C | drivers/cpufreq/cpufreq_zzmoove.c | SamueleCiprietti/nova_kernel | gpl-2.0 | 42,911 | 1,178 | codeparrot/github-code |
cd48104c81ce697eb593f659460442afd7bf0760ca05ca600a83d6e3a9013bd8 | // Copyright (c) 2012- PPSSPP 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, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// b... | C++ | Core/MIPS/x86/RegCache.cpp | glaubitz/ppsspp-debian | gpl-2.0 | 8,092 | 302 | codeparrot/github-code |
81d400258d9319541828da8e694120eee6de1de97125eeeadc6a1c452af51d65 | <?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
class ht_div_equal_heights {
var $code = 'ht_div_equal_heights';
var $group = 'footer_scripts';
var $title;
var $description... | PHP | includes/modules/header_tags/ht_div_equal_heights.php | geraldbullard/osCommerce-v2.3.4-Responsive-Admin | gpl-2.0 | 5,611 | 162 | codeparrot/github-code |
2ea8fc05920d86eeaaf5826064595eb7a23960d84496075865819419dd0a8285 | <?php
use HRNParis\mediapartners as mediapartners;
use HRNParis\main as main;
include_once('controllers/mediapartners_main.php');
include_once('controllers/main.php');
$main = new main\main;
$sponsors = new mediapartners\mediapartners_main;
?>
<!doctype html>
<html lang="en">
<head>
<meta name="description" cont... | PHP | press.php | HRNIT/paris2015 | gpl-2.0 | 23,261 | 457 | codeparrot/github-code |
6cffa5462c0e6fe8cf82ef22d36e6f3c93a5721f99370adb72e832696dbebfaa | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2016 Intel Corporation
*/
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/queue.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <rte_common.h>
#include <rte_malloc.h... | C | examples/multi_process/client_server_mp/mp_client/client.c | bisdn/dpdk-dev | gpl-2.0 | 6,278 | 272 | codeparrot/github-code |
3e2075c2e1d11cf005ed6d4cb5317a215db2ee5e7538fce0821c2e41db6fbd3a | /**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | Java | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest11613.java | iammyr/Benchmark | gpl-2.0 | 2,984 | 79 | codeparrot/github-code |
37a8543c1bd943501cbb6cb14d84ff8f869aee257f1e80a6d58d9a4e4a43bdf0 | package server.thread.systemSettingsThread;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.Socket;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import server.serverMain.serverMain;
i... | Java | server/src/server/thread/systemSettingsThread/setting_dealingThread.java | wangchangshuai/fei_Q | gpl-2.0 | 1,521 | 62 | codeparrot/github-code |
8011745cf039ebe1d704403935d13027605f1b330b5cc47afaf0f41fd2fae5a1 | <?php
/**
* Description of class-fscf-util
* Utility class sets default variables, wp actions, and sanitize functions
* Functions are called statically, so no need to instantiate the class
* @authors Mike Challis and Ken Carlson
*/
class FSCF_Util {
static $global_defaults, $form_defaults, $field_defaults;
st... | PHP | wp-content/plugins/si-contact-form/includes/class-fscf-util.php | dinhkk/viking_vietnam | gpl-2.0 | 37,762 | 887 | codeparrot/github-code |
df7d5849094f35f2a006f81c6d7eba66f6be02a366e311f2cd38d52b807a6615 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from time import gmtime, strftime
import ephem
import wx.calendar
# Test
# here = ephem.Observer()
# here.lat = '-17.576166667'
# here.lon = '-149.618575000'
class App(wx.App):
def OnInit(self):
self.frame = MyFrame("Lunacy", (50, 60), (640, 220))
self.frame.Show()
... | Python | lunacy.py | wadda/Lunacy | gpl-2.0 | 10,999 | 342 | codeparrot/github-code |
e874778f005c0f8032962486b9287ccdf7aaca3876f479e23f2f002833af1c9a | //
// ContractDescriptionGenerator.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
// Atsushi Enomoto <atsushi@xamarin.com>
//
// Copyright (C) 2005-2007 Novell, Inc. http://www.novell.com
// Copyright (C) 2011 Xamarin, Inc. http://xamarin.com
//
// Permission is hereby granted, free of charge, to any person ... | C# | class/System.ServiceModel/System.ServiceModel.Description/ContractDescriptionGenerator.cs | hardvain/mono-compiler | gpl-2.0 | 23,695 | 620 | codeparrot/github-code |
a58bd73288d3fcfc6b16ce5240ddcabc01e62af9cd2329019455a22c9e28f752 | /*
*
* Author: Sylvain Afchain <safchain@gmail.com>, (C) 2008 - 2013
*
* Copyright: See COPYING file that comes with this distribution
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <stropts.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/netdevi... | C | src/librdb/options.c | safchain/nnodes | gpl-2.0 | 4,752 | 185 | codeparrot/github-code |
42f0c847da227804d10aff8a62b31bf1ec10cac7555a6363ddfc00c749b75ee4 | #include<cstdio>
#include<cstring>
#include<algorithm>
#define maxn 1010
using namespace std;
struct node {
int len, weight;
bool vis;
node(int len = 0, int weight = 0, bool vis = false) :len(len), weight(weight), vis(vis){}
}num[maxn];
int sum;
bool cmp(node a, node b)
{
if (a.len == b.len)
r... | C++ | ACM 2015/零件分组.cpp | sunmoyi/ACM | gpl-2.0 | 933 | 52 | codeparrot/github-code |
5a8074c928367b01a995c80fc9ef81bd61547d6196e6e6b0407b660104016b48 | /*
*
* Copyright (c) International Business Machines Corp., 2001
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | C | testcases/kernel/syscalls/creat/creat04.c | anthony-kolesov/arc_ltp | gpl-2.0 | 5,269 | 225 | codeparrot/github-code |
b1c3b232942b5ff673219c37bd6062c229a828d15f3495dbbb11b011b7081a7d | /* ----------------------------------------------------------------------
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/MOLECULE/dihedral_opls.cpp | rbberger/lammps | gpl-2.0 | 10,302 | 357 | codeparrot/github-code |
b2ad5736be99ada20558370376345e7d53943429c30a37f473ffc49c6c2fb8c2 | var Class = {
create: function() {
return function() { //vararg
this.initialize.apply(this, arguments);
}
}
};
Color = Class.create();
Color.prototype = {
red: 0, green: 0, blue: 0,
initialize: function(r,g,b) {
this.red = r;
this.green = g;
this.blue = b;
}
}
function bench(x) {
... | JavaScript | test/examples/apply_to_call_benchmark.js | hazzik/nashorn | gpl-2.0 | 674 | 38 | codeparrot/github-code |
69b41459249113a75f80ce3e683ee92c361ad3a3f9a20c7e9bf8a1e7c8d2bec2 | /******************************************************************************
* Copyright (C) 2007 by Anton Maksimenko *
* antonmx@post.kek.jp *
* *
... | C++ | src/executables/rc2fd.cpp | antonmx/ctas | gpl-2.0 | 3,586 | 98 | codeparrot/github-code |
1177d113e7dcaf93a665e39ee83cb8d6f4cc13b0696b6fe71fa319a4dc7f592b | #!/usr/bin/perl
#####################################################################
#
# gen_neuerwerbungslisten.pl
#
# Aufbau der Neuerwerbungslisten fuer ein Institut. Dabei Zugriff
# auf Sybase-DBMS via DBD::Proxy fuer Erwerbungsinformationen und
# lokal auf zugehoerige bibliogr. Daten via OpenBib::Record::Tit... | Perl | tools/gen_neuerwerbungslisten.pl | oflimm/openbib | gpl-2.0 | 20,663 | 668 | codeparrot/github-code |
eb293cedff1cb4cc1cbb46b60df264b34994aaa4f32e04e78e3da4b49d2cb0e6 | /*
* Copyright (c) 2009, 2011, 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 | graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/StoreIndexedNode.java | rjsingh/graal | gpl-2.0 | 3,269 | 85 | codeparrot/github-code |
7e804565affd2e3213a2ed41acfecbe66049ea6d550cff7162e35ee0878da155 | /******************************************************************************
*
* Copyright(c) 2009-2012 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the F... | C | drivers/net/wireless/realtek/rtlwifi/usb.c | rkollataj/linux-can-next | gpl-2.0 | 30,649 | 1,163 | codeparrot/github-code |
19dcc2f72ba34bd039adc3f32bc511aaa4ef0f345ab20b74a79aef697329fc9c |
/*
wlalink - part of wla dx gb-z80/z80/6502/65c02/6510/65816/huc6280/spc-700
macro assembler package by ville helin <vhelin@iki.fi>. this is gpl software.
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "defines.h"
#include "main.h"
#include "memory.h"
#include "files.h"
#... | C | wlalink/main.c | meesokim/wla-dx | gpl-2.0 | 21,741 | 778 | codeparrot/github-code |
213081c0d61b3a88a3da8aa2598198a87678a3f97552310ff9959f81cfe62f3b | /* Copyright (c) 2013-2015, 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 | drivers/gpu/msm/adreno_dispatch.c | thanhphat11/android_kernel_xiaomi_msm8996 | gpl-2.0 | 75,988 | 2,595 | codeparrot/github-code |
4d8b58fcbbb43b6fe512905cc6eb40ad526a93f652aeda40e4f9d4625fd329a7 | package net.demo.model;
import javax.persistence.*;
/**
* Created by toannh on 10/9/14.
*/
@Entity
@Table(name = "USER_ROLE")
public class UserRole {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String username;
private String role;
@OneToOne(cascade = CascadeType.ALL... | Java | src/main/java/net/demo/model/UserRole.java | toannh/demo | gpl-2.0 | 836 | 53 | codeparrot/github-code |
ccb32b2cd0cbe024925dce81214ba8f2c87f7046a3310b553a977f7b8c936829 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÔÚÏß¶·µØÖ÷</title>
<meta name="keywords" content="ÔÚÏß¶·µØÖ÷" />
<meta name="description" content="ÔÚÏß¶·µØÖ÷¼ÇÅÆÊ... | HTML | wulu/2015.11.23/qipai/doudizhu/264.html | bylu/Test | gpl-2.0 | 11,383 | 226 | codeparrot/github-code |
415e75b5b1db1bbdd533bae602d53e933506d4784ed62ee0f355b1b333fb34bd | /*
* Copyright (C) 2011-2015 severalnines.com
*/
#pragma once
#include <map>
#include <vector>
#include <string>
#include "S9sGlobal"
#include "S9sString"
#include "S9sVector"
template <typename Key, typename T>
class S9sMap : public std::map<Key, T>
{
public:
bool contains(const Key &key) const;
... | C | libs9s/s9smap.h | severalnines/s9s-tools | gpl-2.0 | 2,307 | 109 | codeparrot/github-code |
1c392f60bd11e3eb898c50295ff7e123477a6ee3a1e14bdddf85c0fc55cc63f7 | /***************************************************************************
qgshttptransaction.cpp - Tracks a HTTP request with its response,
with particular attention to tracking
HTTP redirect responses
-------------------
... | C++ | src/core/qgshttptransaction.cpp | dakcarto/QGIS | gpl-2.0 | 16,693 | 574 | codeparrot/github-code |
33e8328d2265091e58bbf76e9415cbc35f5f7cbadbb8c28d16ba9174eb029ebc | /* ResidualVM - A 3D game interpreter
*
* ResidualVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms ... | C | engines/grim/costume/model_component.h | clone2727/residual | gpl-2.0 | 1,970 | 66 | codeparrot/github-code |
d3edb3e80bef8c3d81eda02ecaf270baf83553af1c0dda8bf81c4ba478fa63f4 | #--------------------------------------------------
# Revision = $Rev: 20 $
# Date = $Date: 2011-08-05 20:42:24 +0200 (Fri, 05 Aug 2011) $
# Author = $Author: stefan $
#--------------------------------------------------
from pluginInterfaces import PluginFit, Parameter,leastsqFit
import numpy as np
class PluginFit... | Python | plugins/pluginFitSigmoidal.py | wakalixes/sqldataplot | gpl-2.0 | 1,665 | 45 | codeparrot/github-code |
bf28e64d1dd8628329cc3ce3420bbe3007685ccc96fe644f28fc4fad322337e1 | package org.globalgamejam.maze.tweens;
import aurelienribon.tweenengine.TweenAccessor;
import com.badlogic.gdx.graphics.g2d.Sprite;
public class SpriteTween implements TweenAccessor<Sprite> {
public static final int BOUNCE = 1;
public static final int ALPHA = 2;
public static final int ROTATION = 3;
@Override
... | Java | maze/src/org/globalgamejam/maze/tweens/SpriteTween.java | MyRealityCoding/maze | gpl-2.0 | 1,020 | 47 | codeparrot/github-code |
aa1248b2b2599e6cdfe2ead2bce2b3508be850fb2bb4c30351f26acb59c79c08 | <?php namespace RainLab\GoogleAnalytics;
/**
* The plugin.php file (called the plugin initialization script) defines the plugin information class.
*/
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Google Analytics'... | PHP | plugins/rainlab/googleanalytics/Plugin.php | imfaber/imfaber_v2 | gpl-2.0 | 2,066 | 67 | codeparrot/github-code |
e8b035df018a30ee8d4d9d1838ffe255328d48312c894b20ea578d8cf6013777 | /* local apic based NMI watchdog for various CPUs.
This file also handles reservation of performance counters for coordination
with other users (like oprofile).
Note that these events normally don't tick when the CPU idles. This means
the frequency varies with CPU load.
Original code for K7/P6 written ... | C | arch/x86_64/kernel/perfctr-watchdog.c | dduval/kernel-rhel5 | gpl-2.0 | 19,966 | 786 | codeparrot/github-code |
128acf3226130afc1dcc1618a393eb82a97b992b21b43ea183a975844be17d56 | <?php
/**
* This file is loaded automatically by the app/webroot/index.php file after core.php
*
* This file should load/create any application wide configuration settings, such as
* Caching, Logging, loading additional configuration files.
*
* You should also use this file to include any files that provide globa... | PHP | Config/bootstrap.php | xemle/phtagr | gpl-2.0 | 8,589 | 224 | codeparrot/github-code |
c064d00377f2796e85c2ad828c34862639acb14a4d1266d4c02c99f158c390b7 | /*
* linux/arch/arm/kernel/smp.c
*
* Copyright (C) 2002 ARM Limited, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#incl... | C | arch/arm/kernel/smp.c | lovers-fancy/SC-05D_Kernel | gpl-2.0 | 15,454 | 684 | codeparrot/github-code |
3450480db5e9455f8cf605a31635321edcae727375981277454ec372d29b60e5 | /*
* drivers/cpufreq/cpufreq_conservative.c
*
* Copyright (C) 2001 Russell King
* (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>.
* Jun Nakajima <jun.nakajima@intel.com>
* (C) 2009 Alexander Clouter <alex@digriz.org.uk>
*
* This program is free softw... | C | drivers/cpufreq/cpufreq_conservative.c | Fechinator/FechdaKernel_V500 | gpl-2.0 | 15,767 | 593 | codeparrot/github-code |
8b4956658eb59fed97eec7b3a31ec37cd772436b6cad01461d3f70949864b63f | (function ($) {
Drupal.viewsSlideshow = Drupal.viewsSlideshow || {};
/**
* Views Slideshow Controls
*/
Drupal.viewsSlideshowControls = Drupal.viewsSlideshowControls || {};
/**
* Implement the play hook for controls.
*/
Drupal.viewsSlideshowControls.play = function (options) {
// Route the co... | JavaScript | hotel_athens_ga/js/js_i0lWZY61n-2X7sezox7DfNdyQ2tsrQFGHT9wlJhktj8.js | mikeusry/HolidayInnAthens | gpl-2.0 | 51,563 | 1,409 | codeparrot/github-code |
e40264f498e622d157728a58072d9abe9dd8c92d1937f713b0ec75bf933523b4 | <?php
$output = '';
$links = '';
if ($node->nid) {
$children_list = eds_profile_book_children($node->nid);
//echo '<pre>';
//var_dump($node);
//echo '</pre>';
//exit;
if ($prev = book_prev($node->book)) {
// Previous page
drupal_add_html_head_link(array('rel' => 'prev', 'href' => url($prev['hr... | PHP | sites/all/modules/edsuite/eds_profile/templates/eds_profile_book_children.tpl.php | Roma48/ekreative_test_task | gpl-2.0 | 2,079 | 59 | codeparrot/github-code |
332b4ea16fdad65f3d878fbb62b9854d35a87a175a8b57d556091745758a87a4 | /*
* filetypes.h - this file is part of Geany, a fast and lightweight IDE
*
* Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* Copyright 2006-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
*
* This program is free software; you can redistribute it and/or... | C | src/filetypes.h | juvasquezg/geany-hacking | gpl-2.0 | 6,521 | 226 | codeparrot/github-code |
4ba4ba1dae1b38b413b364cb7420339e1c3c86056ae167aa06535db46db8edba | /*
* jQuery.liveFilter
*
* Copyright (c) 2009 Mike Merritt
*
* Forked by Lim Chee Aun (cheeaun.com)
*
*/
(function($){
$.fn.liveFilter = function(inputEl, filterEl, options){
var defaults = {
filterChildSelector: null,
filter: function(el, val){
return $(el).text().toUpperCase().ind... | JavaScript | sites/all/themes/uportal_backend_theme/scripts/plugins/jquery.liveFilter.js | unicef/uPortal | gpl-2.0 | 1,210 | 51 | codeparrot/github-code |
a9e7e6c66bf1f82e2364eaecfdb601e2a2d2360472c69567062fa2e015dfd54c | #!/usr/bin/perl
#
# Copyright (C) 2008-2010 ARM Limited
#
# This software is provided 'as-is', without any express or implied
# warranties including the implied warranties of satisfactory quality,
# fitness for purpose or non infringement. In no event will ARM be
# liable for any damages... | Perl | arch/arm/cpu/aml_meson/m6/firmware/appf/arm_to_gnu.pl | superdjc/tbdg773b_uboot | gpl-2.0 | 29,168 | 896 | codeparrot/github-code |
cae0f7a54c34dc535e594527a555b1234998c4dc06df037ceed5e92d4ec79b70 | #include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "geekcode.h"
#include "lines.h"
#include "parse.h"
const char *parse_errors[] = {
"Success",
"Trailing text in data",
"Missing alias",
"Missing dependant",
"Syntax error",
"Unexpected EOF",
"File error",
};
/*
* Parses the contents of data in... | C | parse.c | masterdriverz/geekcode | gpl-2.0 | 2,988 | 151 | codeparrot/github-code |
df6e7eddb266f18fb8117f1bcf0c8cd5ab6aa32d42b4088528f7823ab292d539 | # Copyright 2006 John Duda
# This file is part of Infoshopkeeper.
# Infoshopkeeper 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 any later version.
# Infoshopkeeper ... | Python | popups/checkout.py | johm/infoshopkeeper | gpl-2.0 | 2,958 | 71 | codeparrot/github-code |
3afe7708642c7ce03b7b1869f7bd41ef33d675ac5b32a203c5070e3d6110b380 | package com.test.JUnit;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
public class CalculatorTest {
private static Calculator calculator = new Calculator();
@Before
public void setUp() throws Exception {
calculator.clear();
... | Java | src/com/test/JUnit/CalculatorTest.java | fyffyt/LearnJava | gpl-2.0 | 882 | 43 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.