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 |
|---|---|---|---|---|---|---|---|---|
095d5192b7eeee9dea4d091700e3ff5dcb28a26f95fbcd33d140de59b5d15bba | class TitleCategoryMembershipsController < ApplicationController
before_filter :authenticate_user!
load_and_authorize_resource
# GET /title_category_memberships
# GET /title_category_memberships.json
def index
@title_category_memberships = TitleCategoryMembership.all
respond_to do |format|
f... | Ruby | app/controllers/title_category_memberships_controller.rb | johm/borges | gpl-3.0 | 2,852 | 88 | codeparrot/github-code |
5f95c927f8d76d58c716627494f933dc92da1f60569949712287b0c6c7a99f55 | package housing.gui;
import housing.LandlordRole;
import housing.OccupantRole;
import housing.personHome;
import housing.Interfaces.landLord;
import java.awt.BorderLayout;
import java.awt.Container;
import java.util.Vector;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
im... | Java | src/housing/gui/HomePanel.java | marcuseng/simcity | gpl-3.0 | 2,534 | 107 | codeparrot/github-code |
eb4f00d4efd839d7b75c7d354fa0731d7413ac3af1a17c6a835827db41bd96f0 | -----------------------------------
-- Area: Altar Room (152)
-- Mob: Fee_Jugu_the_Ramfist
-----------------------------------
-- require("scripts/zones/Altar_Room/MobIDs");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
------------... | Lua | scripts/zones/Altar_Room/mobs/Fee_Jugu_the_Ramfist.lua | salamader/ffxi-a | gpl-3.0 | 809 | 43 | codeparrot/github-code |
1838cfc6b77414bada52e1336aac0c7d3d199733a099a3c930362446c814bbbe | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Knockout UI - Window Bindings</title>
<link rel="stylesheet" href="css/reset.css" type="text/css"/>
<link rel="stylesheet" href="css/style.css" type="text/css"/>
<link rel="stylesheet" ... | HTML | static/js/plugins/Knockout-UI-master/examples/window.html | Stavatech/Webinal | gpl-3.0 | 11,325 | 271 | codeparrot/github-code |
8adf045dc86c5d0cdb818df014a91ba3724fcf84b3c192fd0dd02cafc29f7434 | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | C | src/osdcore.c | PlayUAV/PlayuavOSD | gpl-3.0 | 24,735 | 705 | codeparrot/github-code |
28755b68994d19822d2a10d6f2e1912d54bd02cdbe167d2d5390f8cbfa15ac2c | <!-- user_tabs.html -->
<div class="tabBar">
<div class="tabsC">
<a id="stats" {% if tab_name=="stats" %}class="on"{% endif %}
title="{% trans %}User profile{% endtrans %}"
href="{% url user_profile view_user.id, view_user.username|slugify %}?sort=stats"
><span>{% trans %}o... | HTML | askbot/skins/old/templates/user_profile/user_tabs.html | rosihorrorshow/askbot-devel | gpl-3.0 | 3,358 | 53 | codeparrot/github-code |
a79cd49b869bc2c9ab1e46089abd05b63a54c8857fbb475086a2fdc5449c548c | /***************************************************************************
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... | C | core/form.h | jschultz/okular-kf5-tagging | gpl-3.0 | 9,183 | 348 | codeparrot/github-code |
eed68f1dd2d715f7878a436db9cf4fa2a8ece93a35fc223a288dcbe7d469afe8 | /**
* Nebula - Copyright (C) 2012
* Gwenn Aubert, Thomas Di'Meco, Matthieu Maugard, Gaspard Perrot
*
* This file is part of project 'Nebula'
*
* 'Nebula' is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foun... | Java | src/nebula/core/NebulaGame.java | tectronics/epu-nebula | gpl-3.0 | 9,419 | 316 | codeparrot/github-code |
6f38f0dc3537e40017151bc20569ffcae0f8e2c42d6005cc5a56c7791347fda9 | /* mbed Microcontroller Library
*******************************************************************************
* Copyright (c) 2014, STMicroelectronics
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | C | STM32F070/RTkGPIOV1/mbed-dev/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralPins.c | RyanteckLTD/RTk.GPIO-MCU-Firmware | gpl-3.0 | 8,195 | 152 | codeparrot/github-code |
069f88c855abb0d9f6e580f1603bb95b0739f2a07688860b7d685965edc637c5 | #region License Information (GPL v3)
/*
ShareXYZ - A program that allows you to take screenshots and share any file type
Copyright (c) 2015 ShareXYZ Team
Copyright (c) 2007-2015 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General... | C# | ShareXYZ.ImageEffectsLib/Adjustments/Gamma.cs | ShareXYZ/ShareXYZ | gpl-3.0 | 1,605 | 52 | codeparrot/github-code |
352471de7371bfdf8aa0961ea2e890834f665fe3692fbddee737825737a239bd | /*
* Copyright (C) 2012-2013 Dominik Schürmann <dominik@dominikschuermann.de>
*
* This file is part of Birthday Adapter.
*
* Birthday Adapter is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | Java | Birthday-Adapter/src/main/java/org/birthdayadapter/util/Constants.java | won21kr/birthday-adapter | gpl-3.0 | 1,454 | 41 | codeparrot/github-code |
aff708fe6a3e1a7b375285eb4a34d5b3e85a001306f8d35e8bfb5ec0d9a94343 | /*
Copyright (C) 2012-2015, Quarkslab.
This file is part of qb-sync.
qb-sync 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.
This program ... | C | ext_x64dbg/x64dbg_sync/tunnel.h | nihilus/qb-sync | gpl-3.0 | 1,324 | 51 | codeparrot/github-code |
cfa2a05652f1f3de4e59d876d57c3d5b6b1be663a62d4da8638c028280cc96bc | <?php
namespace Chamilo\Libraries\File\Compression\Pclzip;
use Chamilo\Libraries\File\Compression\Filecompression;
use Chamilo\Libraries\File\Filesystem;
use PclZip;
/**
* This class implements file compression and extraction using the PclZip library
*/
class PclzipFilecompression extends Filecompression
{
pub... | PHP | src/Chamilo/Libraries/File/Compression/Pclzip/PclzipFilecompression.php | vanpouckesven/cosnics | gpl-3.0 | 1,891 | 72 | codeparrot/github-code |
33192b248e96f0a38905640df7d092d55df59a110bb686601462b92fca35ed04 | //=============================================================================
//=== Copyright (C) 2001-2007 Food and Agriculture Organization of the
//=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
//=== and United Nations Environment Programme (UNEP)
//===
//=== This program is free software;... | Java | openwis-metadataportal/openwis-portal/src/main/java/org/fao/geonet/services/harvesting/Update.java | dimipapadeas/openwis | gpl-3.0 | 2,742 | 72 | codeparrot/github-code |
af9136662dea712fcb1e531eb36e57bd854a935cda493dc75995364ec65d6a65 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: South Plate
-- @zone 195
-- @pos 180 -34 -31
-- 17576330
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
----------------... | Lua | FFXI Server-Development/Build Files/scripts/zones/The_Eldieme_Necropolis/npcs/_5fr.lua | ffxinfinity/ffxinfinity | gpl-3.0 | 2,331 | 85 | codeparrot/github-code |
acda9ce6fdcade863fb50e036d361a2fbd66999b1f9b53f516714438da8e6e35 | /*
* Copyright (C) 2010-2019 The ESPResSo project
* Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
* Max-Planck-Institute for Polymer Research, Theory Group
*
* This file is part of ESPResSo.
*
* ESPResSo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Gener... | C++ | src/core/bonded_interactions/bonded_tab.hpp | pkreissl/espresso | gpl-3.0 | 9,988 | 276 | codeparrot/github-code |
b424548aa013480f8bcaeab5f98e55b4fb167f5e83e5ad617b4f2645e3aa4476 | // Copyright (C) 2011-2012 CRS4.
//
// This file is part of Seal.
//
// Seal 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.
//
// S... | Java | src/it/crs4/seal/tsv_sort/TsvSortOptionParser.java | ilveroluca/seal | gpl-3.0 | 2,594 | 84 | codeparrot/github-code |
660f5ce8463a62e892d1db25a5e9cc92754ea539361f5ac05a58fe468e4df82a | <?php
/**
* Dolumar, browser based strategy game
* Copyright (C) 2009 Thijs Van der Schaeghe
* CatLab Interactive bvba, Gent, Belgium
* http://www.catlab.eu/
* http://www.dolumar.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | PHP | src/Dolumar/Players/Village/Equipment.php | Toxicat/dolumar | gpl-3.0 | 10,305 | 494 | codeparrot/github-code |
559ac35480ca1c2859e2fca2ae1150c72235999c9c3aa309fe0ca87da164a30f | #ifdef _HAVE_PORTAUDIO_
/*
* portaudioutil.c
* PortAudio utility functions.
*
* for Denemo, a gtk+ frontend to GNU Lilypond
* Copyright (C) 2011 Dominic Sacré
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the F... | C | src/audio/portaudioutil.c | azmeuk/denemo | gpl-3.0 | 1,799 | 101 | codeparrot/github-code |
410d1f1338ef929ea89e70028370b60050bdf77f5a77084d4cb933ce3cea1c46 | /*
Copyright or © or Copr. Nicolas Debeissat
nicolas.debeissat@gmail.com (http://debeissat.nicolas.free.fr/)
This software is a computer program whose purpose is to rotate svg
pictures in a 3 dimensional space and projects it back on the screen.
This software is governed by the CeCILL license under French l... | JavaScript | javascript/svg3d/backup/svg3d_parsing.js | christopherreay/thisEqualsThat_frontEnd | gpl-3.0 | 9,328 | 270 | codeparrot/github-code |
0737aadb63017e726022f6f17c7a84e2f1e021e68d1f794baa442dd7ed6f85f4 | goog.provide('bitex.view.AccountOverview');
goog.require('bitex.view.View');
goog.require('bitex.ui.Dialog');
goog.require('bitex.ui.WithdrawList');
goog.require('bitex.ui.DepositList');
goog.require('bitex.templates');
goog.require('goog.style');
goog.require('goog.string');
goog.require('goog.array');
goog.require('... | JavaScript | jsdev/bitex/view/account_overview.js | Anderson-Juhasc/frontend | gpl-3.0 | 36,662 | 1,158 | codeparrot/github-code |
f7ad47f4cd42566e12784f3fb2142cb9e0e55252440af859f49243dec1d7feb7 | // Pingus - A free Lemmings clone
// Copyright (C) 2000 Ingo Ruhnke <grumbel@gmx.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 3 of the License, or
// (at your o... | C++ | src/pingus/actions/waiter.cpp | gcourtois/pingus | gpl-3.0 | 1,316 | 55 | codeparrot/github-code |
8c478a7f6a5fe6abec1b83950afc229be85b468f751fca67a9f27d999a6b7dc9 | /* Copyright 2012-2014 Neko. */
/* VFDC implements Floppy Driver Controller: Intel 8272A. */
#include "../utils.h"
#include "vdma.h"
#include "vfdd.h"
#include "vpic.h"
#include "vbios.h"
#include "vport.h"
#include "vfdc.h"
t_fdc vfdc;
#define VFDC_RET_ERROR 0x80 /* Error Code */
/* Commands */
#define C... | C | src/device/vfdc.c | cshaxu/nxvm | gpl-3.0 | 17,353 | 581 | codeparrot/github-code |
fb0726bfc83825d1be6afed61c690ed8b3ac59c008282e754bf28b947be50e6f | #include <omega.hh>
namespace omega {
CodeCastExpression::CodeCastExpression() : CodeExpression() {
this->m_expression = nullptr;
this->m_target_type = nullptr;
}
CodeCastExpression::~CodeCastExpression() {}
CodeTypeReference* CodeCastExpression::target_type() {
return this->m_target_type;
}
void CodeCastExp... | C++ | lib/omega/codedom/code_cast_expression.cpp | devchild/omega | gpl-3.0 | 1,055 | 43 | codeparrot/github-code |
538fe7a7aee406caa00deac7d99b154dd6e5d703a44e422d774b90ae7e43be62 | /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#include <AP_HAL.h>
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_150
// uncomment this to force the optimisation of this code, note that
// this makes debugging harder
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX... | C++ | libraries/AP_NavEKF/AP_SmallEKF.cpp | Punchcard123/DMX-AP | gpl-3.0 | 36,508 | 912 | codeparrot/github-code |
8db0248550754169878db5eb0cb0fb6dd59531e8ff16c71ec23728289f09a5ab | \section{Sequences}{}{}
\nobreak
While the idea of a sequence of numbers, $a_1,a_2,a_3,\ldots$ is
straightforward, it is useful to think of a sequence as a function. We
have up until now dealt with functions whose domains are the real
numbers, or a subset of the real numbers, like $f(x)=\sin x$. A
sequence is a functio... | TeX | public/textbook/Guichard/section11.01.tex | ASCTech/mooculus | gpl-3.0 | 16,809 | 398 | codeparrot/github-code |
1f89bdb82ec0c1cec6aecff120c6efd0a721063abe9bd82c21b1661fde892645 | #-#####################################################################################
#- File: Scoring.pm
#- Synopsys: Base package for user-defined Scoring classes.
#- See class ScoringFunctionTemplate for an example of how to implement
#- an application-specific Scoring class.
#-############... | Perl | modules/Scoring.pm | LifeWorks/biojazz | gpl-3.0 | 36,826 | 862 | codeparrot/github-code |
c02860398a8e0bf8e3e12b5ce5be965a0dc9899bebbd7d48b14f849c2b7c0991 | #pragma once
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
#include "LuaLuna.h"
#include "LuaComponent.h"
namespace ui
{
class Textbox;
}
class LuaScriptInterface;
class LuaTextbox: public LuaComponent
{
int onTextChangedFunction;
ui::Textbox * textbox;
int text(lua_State * l);
i... | C | src/cat/LuaTextbox.h | jacksonmj/Powder-Toy-Mods | gpl-3.0 | 545 | 33 | codeparrot/github-code |
4a722a834b70bcc2c3392117335575d9e584bf7685d6499ce2e6e1040dc6d44b | # encoding: utf-8
class GpTemplate::Admin::TemplatesController < Cms::Controller::Admin::Base
include Sys::Controller::Scaffold::Base
def pre_dispatch
@content = GpTemplate::Content::Template.find(params[:content])
return error_auth unless Core.user.has_priv?(:read, :item => @content.concept)
@item = @... | Ruby | app/controllers/gp_template/admin/templates_controller.rb | zomeki/zomeki2-development | gpl-3.0 | 1,860 | 73 | codeparrot/github-code |
be58064b756cb9befcae9efd964f82a47501e6c241f67ed267c9699446c8f517 | /*
* IRC - Internet Relay Chat, ircd/umkpasswd.c
* Copyright (C) 2002 hikari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
... | C | ircd/umkpasswd.c | macressler/nefarious | gpl-3.0 | 11,342 | 461 | codeparrot/github-code |
1f1e96e101f5a485cd72afc3656ae5194ba6b3b09f390e502003a8efc0d8f3f2 | package uk.ac.cs.ncl.ccbd.cdt2014;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
publi... | Java | gateway-manager/src/test/java/uk/ac/cs/ncl/ccbd/cdt2014/AppTest.java | b0354345/iot-deployment | gpl-3.0 | 653 | 39 | codeparrot/github-code |
e36bbf06cd05cb54874f23f7e205a651f514013f1bf67d3a8cad69718f829a83 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2014 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | Java | src/main/java/org/projectforge/fibu/KundeStatus.java | micromata/projectforge-webapp | gpl-3.0 | 2,109 | 71 | codeparrot/github-code |
4270e535fecd32cf54daa28dae6bc490a5afccfc3f7f2a22bb545c856c1fc480 | /*
Zombie browser pack, remote control Chrome browsers via extensions, lite edition
Copyright (C) 2012 Zoltan Balazs
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,... | JavaScript | lite/client/chrome/background.js | Z6543/ZombieBrowserPack | gpl-3.0 | 4,226 | 149 | codeparrot/github-code |
49f7fd9689b42e11ce7a370ec36419694e6ba308309f0493f0e8292b42e81081 | # (c) Copyright 2013, 2014, University of Manchester
#
# HydraPlatform is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Hydra... | Python | HydraLib/python/HydraLib/config.py | UMWRG/HydraPlatform | gpl-3.0 | 5,352 | 160 | codeparrot/github-code |
31eb1f76d941a9ada5396ac8f72e56d81f759adcd5d44af3c14bd218eac85ce7 | <?php
/*
##########################################################################
# #
# Version 4 / / / #
# -----------__---/__---__------__----__---/---/- #
# ... | PHP | download.php | nerdiabet/webSPELL | gpl-3.0 | 4,335 | 129 | codeparrot/github-code |
ed17571532caba6ccefb06e45074689c3d1e208f4c458cc64816426330ee8689 | /*
Unix SMB/CIFS implementation.
Copyright (C) Stefan Metzmacher 2012
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later... | C | source3/smbd/smbXsrv_version.c | kernevil/samba | gpl-3.0 | 7,449 | 266 | codeparrot/github-code |
aa79e5fe22b5ea5b3fb3fc1e9f5bd3b38f687c08a5e3a92598090d969148a476 | package bssentials.api;
import java.math.BigDecimal;
import java.util.Set;
import java.util.UUID;
import bssentials.include.FileConfiguration;
public interface User {
public boolean isPlayer();
public FileConfiguration getConfig();
public Location getHome(String home);
public void save();
pu... | Java | Bssentials-Common/src/main/java/bssentials/api/User.java | Bssentials/Bssentials-2 | gpl-3.0 | 1,555 | 81 | codeparrot/github-code |
3d9c23bde369f09cc77cd463c36a475d0c61e13929de0c134bc5656553096018 | package cn.nukkit.block;
import cn.nukkit.item.Item;
import cn.nukkit.item.ItemTool;
import cn.nukkit.utils.BlockColor;
/**
* Created on 2015/12/1 by xtypr.
* Package cn.nukkit.block in project Nukkit .
*/
public class BlockEndStone extends BlockSolid {
public BlockEndStone() {
this(0);
}
pub... | Java | src/main/java/cn/nukkit/block/BlockEndStone.java | JupiterDevelopmentTeam/JupiterDevelopmentTeam | gpl-3.0 | 1,139 | 63 | codeparrot/github-code |
e99c059aef2313e13deec6b14bc350263f943ba6c46f5a7ae35f1fd6f5f6ece6 | /* Copyright (C) 2003-2015 LiveCode Ltd.
This file is part of LiveCode.
LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.
LiveCode is distributed in the hope that it will be useful, but WITHOU... | C++ | engine/src/player.cpp | livecodestephen/livecode | gpl-3.0 | 4,025 | 87 | codeparrot/github-code |
3683f3752995b4585c6f362b2187be08db77e3b01d986b0797443dc0703a179b | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* 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 F... | Java | worldedit-core/src/main/java/com/sk89q/worldedit/extent/inventory/BlockBagExtent.java | HolodeckOne-Minecraft/WorldEdit | gpl-3.0 | 3,890 | 116 | codeparrot/github-code |
a575597445cdd2b3e7e4e3a51aad0b6ead8543165d18618aaa4088b135e814ae | import os
from datetime import datetime
class HQ(object):
def __init__(self, fpath, kpath):
self.people_in_hq = 0
self.keys_in_hq = 0
self.joined_users = []
self.hq_status = 'unknown'
self.status_since = datetime.now().strftime('%Y-%m-%d %H:%M')
self.is_clean = True... | Python | modules/hq.py | ccc-ffm/christian | gpl-3.0 | 3,293 | 109 | codeparrot/github-code |
d302758367ca746f5def1629ad1a2a6d892046c006bea4a8a224658075e8bebe | //-----------------------------------------------------------------------------
// Copyright (C) 2014 Tormod Haugland and Inge Edward Haulsaunet
//
// This file is part of WS-Nu.
//
// WS-Nu is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as publish... | Java | Services/src/test/java/org/ntnunotif/wsnu/services/implementations/notificationproducer/NotificationProducerImplTest.java | tOgg1/WS-Nu | gpl-3.0 | 3,250 | 98 | codeparrot/github-code |
0ac72c5cc951423c7825d4ad60ff69623f8317cfde5a7bc3188d1e6b17ac57d5 | <!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title>CRUD PHP</title>
<style>
body {text-align:... | PHP | Servidor/databasePHP/index.php | ricardo7227/DAW | gpl-3.0 | 3,472 | 98 | codeparrot/github-code |
02b48f2cad610a9e4fc7aed84bf0e60778467ec82ce794cb2d778ecffe4845a9 | /**
* Roundware Android code is released under the terms of the GNU General Public License.
* See COPYRIGHT.txt, AUTHORS.txt, and LICENSE.txt in the project root directory for details.
*/
package org.roundware.rwapp;
import android.app.Application;
import android.content.Context;
import org.roundware.rwapp.utils.... | Java | rwapp/src/main/java/org/roundware/rwapp/RwApplication.java | Sillson/roundware-android | gpl-3.0 | 1,350 | 41 | codeparrot/github-code |
e2a3f3671b0a9bf8c53d7ab5087ee79259171a6af325cac416257bb2898b4be1 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\... | C++ | applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/kineticTheoryModels/granularPressureModel/SyamlalRogersOBrien/SyamlalRogersOBrienPressure.C | OpenFOAM/OpenFOAM-dev | gpl-3.0 | 2,888 | 102 | codeparrot/github-code |
b5c59a276e44dbd1bc9bcf82134a15a207325cce6f27ae1fc1a679d3b241d43b | var AppDispatcher = require("../dispatcher/AppDispatcher");
var EventEmitter = require("events").EventEmitter;
var CollectionActionTypes = require("../constants/CollectionActionTypes");
class CollectionStore extends EventEmitter {
constructor() {
this.id = null;
this.uniqueId = null;
this.title = "";
... | JavaScript | app/assets/javascripts/stores/Collection.js | leftees/honeycomb | gpl-3.0 | 3,311 | 107 | codeparrot/github-code |
826ce5d70c2ef001678444345ef4cb3473bbb37c0c184facc61037c5dd202735 | package nl.knaw.huygens.timbuctoo.search.description.property;
import nl.knaw.huygens.timbuctoo.search.description.PropertyDescriptor;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.junit.Test;
import static nl.knaw.huygens.timbuctoo.search.MockVertexBuilder.vertex;
import static org.hamcrest.Matche... | Java | timbuctoo-instancev4/src/test/java/nl/knaw/huygens/timbuctoo/search/description/property/AppenderPropertyDescriptorTest.java | HuygensING/timbuctoo | gpl-3.0 | 2,461 | 66 | codeparrot/github-code |
4d8c5647381b1e28afd4cc58fcc05b6ce4b9e14be86de8bd35d3a07d322829bf | //
// multicore.h
//
// Circle - A C++ bare metal environment for Raspberry Pi
// Copyright (C) 2015-2019 R. Stange <rsta2@o2online.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, ei... | C | include/circle/multicore.h | rsta2/circle | gpl-3.0 | 2,201 | 85 | codeparrot/github-code |
7b4f0ab2a59c2f3446757226caf6fe484100d7d0f14e322a19a589ed4bc678a4 | /*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy 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... | C# | Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/Impl/Attach/DotNetFrameworkAttachToProgramOptions.cs | manojdjoshi/dnSpy | gpl-3.0 | 1,799 | 53 | codeparrot/github-code |
d6408ecc9b4a188e90ac838bd9c70689b4cdabab979d3a91d57a7e4e059cae20 | /*
24 state EKF based on https://github.com/priseborough/InertialNav
Converted from Matlab to C++ by Paul Riseborough
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 th... | C | libraries/AP_NavEKF2/AP_NavEKF2_core.h | alvin1991/ardupilot | gpl-3.0 | 60,366 | 1,119 | codeparrot/github-code |
bded258d4a3568fd76320f0ea1f0bcfa20ac9955d7ed608d138b45209155f3cf | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.sena.sami.jsf.controllers;
import co.edu.sena.sami.jpa.entities.TipoContrato;
import co.edu.sena.sami.jpa.sessions.Ti... | Java | src/java/co/edu/sena/sami/jsf/controllers/TipoContratoController.java | jemc0291/Pruebas_SAMI | gpl-3.0 | 6,393 | 196 | codeparrot/github-code |
c980bf1d55b8df6b31ed907a549f1d65e8d63b0912b69d686ad80d888fd86cd7 | /* Copyright 2015-2017 charfa, Kerbas_ad_astra.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pro... | C# | Landertron/source/ModeHandlers/ModeHandlerBase.cs | Kerbas-ad-astra/XTLandertron | gpl-3.0 | 2,698 | 83 | codeparrot/github-code |
ae7510cfd756547dfb4eaa228a3cb04f662edf85f222f3d1283a407fb9af2122 | # Copyright 2011-2015 Lars Wirzenius
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed ... | Python | obnamlib/encryption.py | tjanez/obnam | gpl-3.0 | 7,881 | 277 | codeparrot/github-code |
1178f8c58c0ae1dfdc72a42e9f5c0ec518e2ce9ce47496b95968b99e3c7eb5fb | #region Derivative Work License (Stability.Data.Compression.ThirdParty)
// Disclaimer: All of the compression algorithms in this assembly are the work of others.
// They are aggregated here to provide an easy way to learn about and test
// alternative techniques. In the subfolders "Internal\<li... | C# | Stability.Data.Compression.ThirdParty/Internal/SharpZipLib/Zip/Inflater.cs | bstabile/DeltaCodec | gpl-3.0 | 25,160 | 885 | codeparrot/github-code |
5aade3a9af297359bc2ef9a50b3a4bc57ff42a77782214e7dbc7a5a49ca5d6ee | using Shem.Replies;
using Shem.Utils;
namespace Shem.AsyncEvents
{
public class StreamEvent : TorEvent
{
public StreamEvent()
{
}
public override TorEvents Event
{
get { return TorEvents.STREAM; }
}
/// <summary>
///
/// <... | C# | Shem/AsyncEvents/StreamEvent.cs | TyKonKet/Shem | gpl-3.0 | 3,231 | 147 | codeparrot/github-code |
cb95e9bfcbb340b54873f2fb14d935163126e755aacf32089eb4fa36c889d3f3 | /*
* This file is part of Kiama.
*
* Copyright (C) 2013-2015 Anthony M Sloane, Macquarie University.
*
* Kiama is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or ... | Scala | library/src/org/kiama/util/Config.scala | seanjensengrey/kiama | gpl-3.0 | 5,328 | 147 | codeparrot/github-code |
9ea10708998a9ebdbd0ae3e69f4035c2af5885c28b5952a568f1178ec4f196d7 | -----------------------------------
-- Area: Temple of Uggalepih
-- NPC: Granite Door
-- Involved in Missions: San dOria Mission 8-2
-- !pos -50 -17 -154
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tem... | Lua | scripts/zones/Temple_of_Uggalepih/npcs/_4fv.lua | waterlgndx/darkstar | gpl-3.0 | 1,370 | 42 | codeparrot/github-code |
4f1a606689dd58e51687a6a7d542f35f4a51a7adc288e0e07c7f6e4ee172b4c3 | /*
* Copyright (C) 2011-2019 Project SkyFire <http://www.projectskyfire.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 3 of the License, or (at your
* option) any l... | C++ | src/server/scripts/EasternKingdoms/TheStonecore/boss_priestess_azil.cpp | SkyFireArchives/SkyFireEMU_406a | gpl-3.0 | 1,576 | 58 | codeparrot/github-code |
315e172a729c694072bd477f0a164444b70d70dfaccafc11fb82f57aa6fe9500 | /*********************************************************************
CombLayer : MCNP(X) Input builder
* File: geomInc/Cylinder.h
*
* Copyright (c) 2004-2015 by Stuart Ansell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | C | transportInc/System/geomInc/Cylinder.h | milocco/sinbad | gpl-3.0 | 3,231 | 109 | codeparrot/github-code |
403f57ba2297b2957b2c68e83bcefd89e7ad505df53d737d7c74edcd4e022398 | // XzDecoder.cpp
#include "StdAfx.h"
#include "../../../C/Alloc.h"
#include "../Common/CWrappers.h"
#include "XzDecoder.h"
namespace NCompress {
namespace NXz {
#define RET_IF_WRAP_ERROR_CONFIRMED(wrapRes, sRes, sResErrorCode) \
if (wrapRes != S_OK && sRes == sResErrorCode) return wrapRes;
#define RET_IF_WRAP_... | C++ | endless/src/7z/CPP/7zip/Compress/XzDecoder.cpp | endlessm/rufus | gpl-3.0 | 3,167 | 151 | codeparrot/github-code |
0d3fb329c0278eba42e077c04af2ba8a3d07d6354e4feb8047fc7c763c5213d2 | /*****************************************************************************
IXXAT Automation GmbH
******************************************************************************
File : VCINPLDYNL.H
Summary : Native VCI Programming Library.- for dynamic loading of vcinpl.dll
Date : 2007-07-03
Author : Mi... | C | Sources/CAN_IXXAT_VCI/vcinpldynl.h | bentearadu/UDS_Lear | gpl-3.0 | 31,563 | 889 | codeparrot/github-code |
c2615602ef349ec695ae84ce64a892a3f5c1ffd210af2e9df19126ae385c58ae | /* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXDE-Qt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2010-2011 Razor team
* Authors:
* Alexander Sokoloff <sokoloff.a@gmail.com>
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redis... | C++ | src/runner/c++/dialog.cpp | MoonLightDE/mlde.d.moonlightde | gpl-3.0 | 11,888 | 383 | codeparrot/github-code |
638835594a6e7b0821bb3572df3796703a9500f4a1cf4c19430dca18b235b34a | /*
* Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* Yo... | C | lib/zstd/examples/dictionary_compression.c | soedinglab/mmseqs2 | gpl-3.0 | 4,548 | 158 | codeparrot/github-code |
a1c5132fd2b14fe373e45fbbea252ade74345eae7a06352aecca4cf54819ca88 | package org.esa.beam.pixex.aggregators;
import org.esa.beam.pixex.calvalus.ma.AggregatedNumber;
import org.esa.beam.pixex.calvalus.ma.Record;
/**
* {@inheritDoc}
* <p/>
* Retrieves the minimum value for a record.
*/
public class MinAggregatorStrategy extends AbstractAggregatorStrategy {
/**
* Returns th... | Java | beam-pixel-extraction/src/main/java/org/esa/beam/pixex/aggregators/MinAggregatorStrategy.java | seadas/beam | gpl-3.0 | 955 | 36 | codeparrot/github-code |
07ec20eaa15142e16b376d6e564675c8a41a279141b05078cb7fc82df82cec54 | package org.jlinda.core.io;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
public class LittleEndianDataInputStream extends InputStream implements DataInput {
private DataInputStream d; // to get at high level readFully methods of
// DataInpu... | Java | jlinda/jlinda-core/src/main/java/org/jlinda/core/io/LittleEndianDataInputStream.java | kristotammeoja/ks | gpl-3.0 | 3,079 | 143 | codeparrot/github-code |
8d97f8d749bf6ee8f4767aef6470459f591e1bddfa84a53ae268df6f90d6e1b7 | /* stb_image - v1.46 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c
when you control the images you're loading
no warranty implied; use at your own risk
Do this:
#define STB_IMAGE_IMPLEMENTATION
before you include this file in *one* C or C++ file t... | C | src/extern/stb/stb_image.h | nshkurkin/VitalK | gpl-3.0 | 21,543 | 469 | codeparrot/github-code |
500a33a9139fa20ecb66df169ab75c48045048ff9d1b02df2ec2e76b4adca003 | /*
* Copyright (C) 2011-2019 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2019 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foun... | C++ | src/server/game/Handlers/MailHandler.cpp | ProjectSkyfire/SkyFire.406a | gpl-3.0 | 28,231 | 792 | codeparrot/github-code |
6db2da2a92dd40717e23ab88462323c2521c6a3af2dae66d9060cf983063c91c | window.onload=function(){
var expression1 = document.getElementById("f1"),
expression2 = document.getElementById("f2"),
expression3 = document.getElementById("f3"),
expression4 = document.getElementById("f4");
expression1.addEventListener("click", function() {
document.getElementById("f1answer").value = ... | JavaScript | data/js/controller.js | bobbyrne01/percentage-calculator-chrome | gpl-3.0 | 1,921 | 41 | codeparrot/github-code |
5702271df7c50096b3cd5643679062b017e8027f0d1a77b3730077d315f5a231 | /*
Copyright (C) 2001, 2008, 2011 Herbert Valerio Riedel <hvr@gnu.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 3 of the License, or
(at your option) any... | C | test/check_sizeof.c | claunia/libcdio-osx | gpl-3.0 | 2,225 | 81 | codeparrot/github-code |
ad26df6254d53d239ee8b3e18120fe65b306c65c974757c7a9e4a198c4a276ac | /*
* Decompiled with CFR 0_115.
*
* Could not load the following classes:
* android.app.ActionBar
* android.app.Activity
* android.content.res.TypedArray
* android.graphics.drawable.Drawable
* android.os.Build
* android.os.Build$VERSION
* android.util.Log
* android.view.View
* android.view.ViewGro... | Java | uploads/a0f7e957f1e78c487b8766c7359e45af/java_source/android/support/v4/app/ActionBarDrawerToggleHoneycomb.java | SPACEDAC7/TrabajoFinalGrado | gpl-3.0 | 4,681 | 128 | codeparrot/github-code |
1e807e9ffedbf6e95b932c0c38fccca8c2160f118450ac7fd15ef351bcec121a | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class UserWidget extends Model
{
public $timestamps = false;
protected $table = 'users_widgets';
protected $primaryKey = 'user_widget_id';
protected $fillable = ['user_id', 'widget_id', 'col', 'row', 'size_x', 'size_y', 'title', 'ref... | PHP | app/Models/UserWidget.php | vitalisator/librenms | gpl-3.0 | 790 | 32 | codeparrot/github-code |
df9eae4886070c438b1a4e33c639857b036611d01f9e1e54ef65ccced34011a1 | <?php
function actionSql() {
class DbClass {
var $type;
var $link;
var $res;
function DbClass($type) {
$this->type = $type;
}
function connect($host, $user, $pass, $dbname){
switch($this->type) {
case 'mysql':
if( $this->link = @mysql_connect($host,$user,$pass,true) ) return true;
break... | PHP | include/functions/action/sql.php | mal-project/shell | gpl-3.0 | 13,225 | 342 | codeparrot/github-code |
4bba8562aa496a3a7273533978627b40a69f4673512733449116b9a25622a231 | import socket
import time
import re
from util import hook
socket.setdefaulttimeout(10)
nick_re = re.compile(":(.+?)!")
# Auto-join on Invite (Configurable, defaults to True)
@hook.event('INVITE')
def invite(paraml, conn=None):
invite_join = conn.conf.get('invite_join', True)
if invite_join:
conn.jo... | Python | plugins/core_misc.py | blha303/ytbot | gpl-3.0 | 2,257 | 77 | codeparrot/github-code |
de09e1249b342288b5f285fb2276de0c71db3e51d53756fbd11bb238b53dc645 |
package cz.incad.kramerius.k5indexer;
import cz.incad.kramerius.FedoraAccess;
import cz.incad.kramerius.FedoraNamespaceContext;
import cz.incad.kramerius.FedoraNamespaces;
import cz.incad.kramerius.impl.FedoraAccessImpl;
import cz.incad.kramerius.utils.DCUtils;
import cz.incad.kramerius.utils.XMLUtils;
import cz.inca... | Java | k5indexer/src/main/java/cz/incad/kramerius/k5indexer/KrameriusDocument.java | moravianlibrary/kramerius | gpl-3.0 | 25,722 | 630 | codeparrot/github-code |
061316f09a5b794b1b07b8620160618d06ca0d893b0e1548056c0915dbc73c22 | --[[
Rogue FLF Elimination Mission
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distribu... | Lua | dat/missions/flf/flf_rogue.lua | jayman39tx/naev | gpl-3.0 | 6,097 | 218 | codeparrot/github-code |
168871f2adbd857d09f961c7bfd7b44fa20661b88199e994aa172d22541597c0 | #include "websiteactionsprovider.h"
#include <QtNetwork>
#include "tldretriever.h"
WebsiteActionsProvider::WebsiteActionsProvider(QObject *parent) : QObject(parent)
{
TLDRetriever::retrieve([this](QStringList domains) {
m_topLevelDomains = domains;
});
}
void WebsiteActionsProvider::requestPossibleAct... | C++ | src/actionsproviders/websiteactionsprovider.cpp | iamakulov/joly | gpl-3.0 | 2,040 | 77 | codeparrot/github-code |
fd4ad020f54a896fab200aadddb025ca0a7b25474117ae9e9faa23c9868c6ffe | /*
* Copyright (C) 2011-2019 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2008-2019 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foun... | C++ | src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp | SkyFireArchives/SkyFireEMU_406a | gpl-3.0 | 63,525 | 1,541 | codeparrot/github-code |
b79625488abd5c81eb0e70f00b13a685f61113f5fe2d095d347d32e5a62a6364 | #include "../Utils/utils.h"
#include "script.h"
void Func_write_der ( Func * F )
{
size_t Nv = F->var_der->N ;
size_t Nt = F->ct->N ;
size_t Nf = Nt+1 ;
char *t[Nt], *v[Nv] ;
FILE *f[Nf] ;
if ( !F->der1 && (F->der2 || F->der3 ) )
{
WARNING ( stdout , "%s", "1st der cannot be false if"
" 2... | C | legacy/programs/njl-2-b/Script/version/func_write_der_2015-10-15--13-39-14.c | AlexandreBiguet/NJLlikeModels | gpl-3.0 | 4,664 | 183 | codeparrot/github-code |
8c9473ded0be4797cd069e181f7977c2fbb31315aacb23a46da2f0017e774ded | /*
* JGrass - Free Open Source Java GIS http://www.jgrass.org
* (C) HydroloGIS - www.hydrologis.com
*
* 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 Lic... | Java | gears/src/main/java/org/hortonmachine/gears/io/dxfdwg/libs/dwg/utils/AcadExtrusionCalculator.java | moovida/jgrasstools | gpl-3.0 | 3,081 | 96 | codeparrot/github-code |
b8f8e35905b0162c374122bb5a7276fcb548f27cef170f06c0cdca22d0455d9d | /***************************************************************************
$RCSfile$
-------------------
cvs : $Id$
begin : Mon Mar 01 2004
copyright : (C) 2004 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* T... | C | src/libs/aqbanking/bankinfoplugin_be.h | sttts/aqbanking | gpl-3.0 | 4,197 | 155 | codeparrot/github-code |
2241739cbb5db42880923afa8df645c1efb1620919da0f72c751f9c52537b39b | /*
* Copyright (c) 2012, Google Inc. 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 list of conditi... | C++ | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/WebKit/Source/wtf/SaturatedArithmeticTest.cpp | geminy/aidear | gpl-3.0 | 6,753 | 154 | codeparrot/github-code |
f1ac530ebc1c55bde0d1a33eaabe639e84534891505e3f89c2d37585a57cda37 | /*
* All Sigmah code is released under the GNU General Public License v3
* See COPYRIGHT.txt and LICENSE.txt.
*/
package org.sigmah.server.dao.hibernate;
import com.google.inject.Inject;
import org.sigmah.server.dao.LocationDAO;
import org.sigmah.shared.domain.AdminEntity;
import org.sigmah.shared.doma... | Java | sigmah/src/main/java/org/sigmah/server/dao/hibernate/LocationHibernateDAO.java | Polfo/sigma-h | gpl-3.0 | 1,797 | 57 | codeparrot/github-code |
1fb610359edede4b480effc524930270ad26fbf395bc30fbc5bccefe852bc15c | #ifndef _SKILL_H
#define _SKILL_H
class Player;
class ServerPlayer;
class Card;
class QDialog;
class GuhuoBox;
#include "room.h"
#include "namespace.h"
#include <QMap>
#include <QObject>
class Skill : public QObject
{
Q_OBJECT
Q_ENUMS(Frequency)
public:
enum Frequency
{
Frequent,
No... | C | src/core/skill.h | NijigenDevs/QSanguosha-For-Saimoe | gpl-3.0 | 12,168 | 475 | codeparrot/github-code |
c4812c3e436df16aca1567d8beef21caad66f3d952a68864c4382ee220ed0afd | <?php
/**
Copyright 2016 Nick Korbel
This file is part of Booked Scheduler.
Booked Scheduler 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... | PHP | Pages/Export/CalendarExportDisplay.php | sdc/booked | gpl-3.0 | 1,549 | 57 | codeparrot/github-code |
54609e7d3e4ccf7d2bc414f76ddaee3139d8cca265263ffcfcedd7bb37d68e72 | //counts number of inversions
#include<algorithm>
#include<iostream>
#include<cstring>
using namespace std;
#define F(x) (x&(x+1))
#define H(x) (x|(x+1))
int tree[1000];
//return sum upto index r in O(log(Maxval))
int sum(int r){
int result=0;
for(;r>=0;r=F(r)-1)
result+=tree[r];
return result;
}
//update the v... | C++ | CountingInversions/bit.cpp | uditsharma7/Algorithms | gpl-3.0 | 906 | 57 | codeparrot/github-code |
9f1c73051bd94879b5849cb709a094af72302620a532da95be3cac589a491cf5 | // -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2018 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope tha... | GO | interfaces/builtin/dvb.go | ubuntu-core/snappy | gpl-3.0 | 1,542 | 53 | codeparrot/github-code |
48d004f97d4803da0c7b062f4f9ba6ad5de16c467c331502c6903e317f547b61 | #include <AP_HAL/AP_HAL.h>
#include "AP_InertialSensor_SITL.h"
#include <SITL/SITL.h>
#include <stdio.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
const extern AP_HAL::HAL& hal;
AP_InertialSensor_SITL::AP_InertialSensor_SITL(AP_InertialSensor &imu) :
AP_InertialSensor_Backend(imu)
{
}
/*
detect the sensor
*/
AP... | C++ | libraries/AP_InertialSensor/AP_InertialSensor_SITL.cpp | peterbarker/ardupilot-1 | gpl-3.0 | 5,681 | 181 | codeparrot/github-code |
94bed7327e4bf04ec98e374ed63d34aa001d2263443e7636ab40eff4bc05d2aa | import sys
import xbmc,xbmcaddon
import sqlite3
from vpnapi import VPNAPI
ADDON = xbmcaddon.Addon(id='script.tvguide.fullscreen')
channel = sys.argv[1]
start = sys.argv[2]
path = xbmc.translatePath('special://profile/addon_data/script.tvguide.fullscreen/source.db')
try:
conn = sqlite3.connect(path, detect_types=... | Python | script.tvguide.fullscreen/play.py | bigoldboy/repository.bigoldboy | gpl-3.0 | 1,273 | 37 | codeparrot/github-code |
24513f8ac0937b6f2e49ecc6137243c8e46e310e841c0625ef64775a06a506e9 | package net.dragon9815.playerinterfacemod.helpers;
import buildcraft.api.transport.IPipeTile;
import cofh.api.energy.IEnergyProvider;
import cpw.mods.fml.common.Loader;
import net.dragon9815.playerinterfacemod.reference.ModIDs;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDire... | Java | src/main/java/net/dragon9815/playerinterfacemod/helpers/BlockHelper.java | Dragon9815/PlayerInterfaceMod | gpl-3.0 | 1,081 | 33 | codeparrot/github-code |
01dfb371386cd2990f83f54c599b39457a19b34240bd1fd35148e1c3a10243c1 | package com.earth2me.essentials;
import com.earth2me.essentials.utils.NumberUtil;
import org.bukkit.enchantments.Enchantment;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class Enchantments {
private static final Map<String, En... | Java | Essentials/src/com/earth2me/essentials/Enchantments.java | Azewilous/Essentials | gpl-3.0 | 10,945 | 226 | codeparrot/github-code |
a59bebb69daf8a9c11c36c7be03865ddc58e3023a25f0eb2a5a8ca1433e014a7 | <html>
<head>
<title>KEEL Tool for Statistical Analysis</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"><h1>KEEL Tool for Statistical Analysis</h1></div>
<h2>Statistical procedures</h2>
<p>This module ... | HTML | src/keel/GraphInterKeel/resources/help/stat/stat_help.html | adofsauron/KEEL | gpl-3.0 | 4,953 | 137 | codeparrot/github-code |
235bf6abf75fc49d4db1b7b536e8c5e5f77a30c672462ce4e6f1e4755adf8703 | /******************************************************************************
sprite.c
CPS2 スプライトマネージャ
******************************************************************************/
#include "cps2.h"
/******************************************************************************
定数/マクロ等
********************... | C | cps2/sprite.c | libretro/NJEMU-libretro | gpl-3.0 | 45,755 | 1,834 | codeparrot/github-code |
a64a5658147850d37ede857415ee470373c39116afbad94196b504f35516a024 | /***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. Sánchez (luciano@uniovi.es)
J. A... | Java | src/keel/Algorithms/Complexity_Metrics/Statistics.java | TheMurderer/keel | gpl-3.0 | 7,959 | 255 | codeparrot/github-code |
4f8db0f14ca8731ae9c72bba017ea1d4c05b6913b241b1027f8403643c39a565 | package com.plexobject.docusearch.service.impl;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Med... | Java | src/main/java/com/plexobject/docusearch/service/impl/RepositoryServiceImpl.java | xingh/docusearch | gpl-3.0 | 11,801 | 294 | codeparrot/github-code |
d140d78664fcd7bf697dd59a0b6a370b9729c08866c08db7df530b7ec55f2bf9 | /*
* MainMenuWindow.java
*
* Copyright (C) 2011 Thomas Everingham
*
* 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 3 of the License.
*
* This program is distributed in the hope... | Java | src/org/ingatan/component/MainMenuWindow.java | tectronics/ingatan | gpl-3.0 | 11,547 | 341 | codeparrot/github-code |
35b390c89fa50d73722d697ad47f44fbc594c4e2d7dc739159f17cbe838d2fd5 | // Copyright John Maddock 2012.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// This tests that cpp_dec_float_50 meets our
// conceptual requirements when used wi... | C++ | foreign/boost/libs/multiprecision/test/concepts/sf_concept_check_gamma.cpp | cppisfun/GameEngine | gpl-3.0 | 4,589 | 139 | codeparrot/github-code |
f55373068c5703b8b54d86d63d332a3a472760abf3037f002469aa95d9666510 |
/********************************************/
/* gd interface to freetype library */
/* */
/* John Ellson ellson@graphviz.org */
/********************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <stdli... | C | external/libgd/gdft.c | xuminic/ezthumb | gpl-3.0 | 44,252 | 1,669 | codeparrot/github-code |
2658f0f1193ead1388211155367e842f4f700c3a8bb8dba95e488bfcb5523303 | function c56540050.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(c56540050.condition)
e1:SetTarget(c56540050.target)
e1:SetOperation(c56540050.activate)
c:Regi... | Lua | script/c56540050.lua | TheOnePharaoh/YGOPro-Custom-Cards | gpl-3.0 | 2,166 | 58 | codeparrot/github-code |
275c5007a6bb635a5476c946b91d7e08362a6f29c354c12e86c144da9a2e8305 | /*
* HeavySpleef - Advanced spleef plugin for bukkit
*
* Copyright (C) 2013-2014 matzefratze123
*
* 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
* (a... | Java | src/main/java/de/matzefratze123/heavyspleef/config/sections/SettingsSectionGeneral.java | xaniox/HeavySpleef-Legacy | gpl-3.0 | 4,666 | 175 | codeparrot/github-code |
c0156e9e9b7936be30a1558f7b3f86a191a3b084d893e6a3de38fed040f847ff | package com.eveningoutpost.dexdrip.watch.miband.message;
import com.eveningoutpost.dexdrip.watch.miband.Const;
import java.util.List;
import java.util.UUID;
public class DisplayControllMessageMiBand2 extends DisplayControllMessage {
private static final String TAG = DisplayControllMessageMiBand2.class.getSimpleN... | Java | app/src/main/java/com/eveningoutpost/dexdrip/watch/miband/message/DisplayControllMessageMiBand2.java | jamorham/xDrip-plus | gpl-3.0 | 1,860 | 47 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.