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 |
|---|---|---|---|---|---|---|---|---|
31a81667a7774d2b0a80123a53af0b30d52b550d4a4ea99b9e8e17951d84a630 | /**
* This file is part of lavagna.
*
* lavagna 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.
*
* lavagna is distributed in t... | Java | src/main/java/io/lavagna/service/CardRepository.java | digitalfondue/lavagna | gpl-3.0 | 10,668 | 329 | codeparrot/github-code |
91abd9644a2ddac3aec43b347f5da1e567c49419e8ffd4a6487e898b68391e46 | // SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_EBPF_CACHESTAT_H
#define NETDATA_EBPF_CACHESTAT_H 1
// Module name
#define NETDATA_EBPF_MODULE_NAME_CACHESTAT "cachestat"
// charts
#define NETDATA_CACHESTAT_HIT_RATIO_CHART "cachestat_ratio"
#define NETDATA_CACHESTAT_DIRTY_CHART "cachestat_dirties"
#defin... | C | collectors/ebpf.plugin/ebpf_cachestat.h | 3cky/netdata | gpl-3.0 | 1,862 | 71 | codeparrot/github-code |
48e36b156d2ca15c3b3293d9ac6dfe6a303f48df24f7b44aaf7f26e0b8c6cefb | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="ObjectInfrastructure.cs" company="">
//
// </copyright>
// <summary>
//
// </summary>
// ------------------------------------------------------------------------------------... | C# | Il2Native.Logic/Gencode/ObjectInfrastructure.cs | FrankLIKE/il2bc | gpl-3.0 | 30,926 | 872 | codeparrot/github-code |
8780e755a4878336e5063ad6961fe6f9e17889443d3442d62e38140f0c738e23 | /*
Copyright (C) 2014 PencilBlue, LLC
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... | JavaScript | plugins/pencilblue/controllers/actions/admin/content/pages/delete_page.js | bitcot/bitcot | gpl-3.0 | 2,064 | 72 | codeparrot/github-code |
64041b7ebd760b47eb39e260587d920122d31d1695298cf24b49921915e0d4b4 | # 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 useful,
# bu... | Python | src/map.py | cmr/cmr_rrt | gpl-3.0 | 2,764 | 73 | codeparrot/github-code |
14c8edf609165d9ac5e555d451f52ea342e1f0d97030d80acc0c159d79f03235 | import discord, os, logging
from discord.ext import commands
from .utils import checks
from .utils.dataIO import dataIO
from .utils.chat_formatting import pagify, box
#The Tasty Jaffa
#Requested by Freud
def get_role(ctx, role_id):
roles = set(ctx.message.server.roles)
for role in roles:
if role.id ==... | Python | say/say.py | The-Tasty-Jaffa/Tasty-Jaffa-cogs | gpl-3.0 | 6,218 | 151 | codeparrot/github-code |
7d6d975deca09c8e9eb6438171cbf73a3a11428c0f51f660b71451795e3ad9bf | view.dialog.Contributors = Backbone.Dialog.extend({
subevents: {
"keypress input.js-input-contributor" : "contributorSubmitOnEnter",
"click button.js-add-contributor" : "contributorSubmit",
"click .js-contributor-delete" : "contributorRemove"
},
dialogClass: "contributor... | JavaScript | webclient/src/app/views/dialogs/contributors.js | urlist/urlist | gpl-3.0 | 6,182 | 200 | codeparrot/github-code |
4116b957d384481b89136d5c9391644729a8c4c37df11d32c5388d4ec42fc6fe | <?php # -*- coding: utf-8 -*-
namespace tfrommen\DefaultPostDate\Asset;
use tfrommen\DefaultPostDate\Setting\Option;
/**
* Script model.
*
* @package tfrommen\DefaultPostDate\Asset
*/
class Script {
/**
* @var string
*/
private $file;
/**
* @var Option
*/
private $option;
/**
* Constructor. Set... | PHP | src/inc/Asset/Script.php | tfrommen/default-post-date | gpl-3.0 | 1,407 | 83 | codeparrot/github-code |
876d7caca60e3de8601137db045445b213b3e8b0372c8e36bdc12c1d0fef0a8d | '''
Task Coach - Your friendly task manager
Copyright (C) 2004-2013 Task Coach developers <developers@taskcoach.org>
Task Coach 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
... | Python | taskcoach/taskcoachlib/persistence/autosaver.py | TaskEvolution/Task-Coach-Evolution | gpl-3.0 | 2,170 | 56 | codeparrot/github-code |
59d7deabb574eb1f2c975526e3ff786e6c7003c05c155214ecfd6b152b4458c8 | #include "Copter.h"
#if MODE_POSHOLD_ENABLED == ENABLED
/*
* Init and run calls for PosHold flight mode
* PosHold tries to improve upon regular loiter by mixing the pilot input with the loiter controller
*/
#define POSHOLD_SPEED_0 10 // speed below which it is always safe to switc... | C++ | ArduCopter/mode_poshold.cpp | matternet/ardupilot | gpl-3.0 | 30,643 | 639 | codeparrot/github-code |
b053448f358c95f374f2e56f4ca2e2f64f6f4df824d767b262840616175adaa4 | ////////////////////////////////////////////////////////////////////////////////////////////////////
// PlotSquared - A plot manager and world generator for the Bukkit API /
// Copyright (c) 2014 IntellectualSites/IntellectualCrafters /
// ... | Java | src/main/java/com/intellectualcrafters/plot/commands/Template.java | Litss/PlotSquared | gpl-3.0 | 10,881 | 223 | codeparrot/github-code |
1552b66217b4f41719325a06a654623931349aa394fcfa7354fedd7bec847131 | package loader.features
import loader.Element
import loader.exceptions._
/**
* Handler for errors.
* The standard way is to handle all exceptions as to analyze as far as possible,
* but leave InternalLoaderException as the only way out.
* This exception may be used by the user's code to handle cases that... | Scala | XX3/obsolete/ErrorHandler.scala | Y-P-/data-processing-binding | gpl-3.0 | 1,531 | 42 | codeparrot/github-code |
081ad39552071668f12e0b0db4afd9a64aa256a632dd45d9b6469f4368ac2d29 | <?php
/**
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF LICENSE
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | PHP | library/source/Resources/Responsibility.php | pagseguro/woocommerce | gpl-3.0 | 2,816 | 94 | codeparrot/github-code |
3ade6aebd17c31fa1cc6e4dd429832b1b0d677b0d6c7427d0ef294f292890ea3 | <?php
namespace ikitiera\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $poli... | PHP | app/Providers/AuthServiceProvider.php | sawyl/soulDkp | gpl-3.0 | 590 | 31 | codeparrot/github-code |
e887b6dfad67728a1775e3fe4110636cc15cfa84850a7ec8eaadb56f0aed1dbd | package com.yc.ccs.web.handler;
import java.util.Random;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.logging.log4j.LogManager;
import org.springframework.beans.factory.an... | Java | ccs/src/main/java/com/yc/ccs/web/handler/UserHandler.java | xiaokunji/study_26 | gpl-3.0 | 3,063 | 94 | codeparrot/github-code |
d1b84615c7bdc26925013b94e4ab9ed619fe6e4a2947c79f859b224f40252aa0 | <?php
/*--=----|----=----|----=----|----=----|----=----|----=--*/
/* App: link shortner */
require_once("db.php");
/*header("Content-Type: text/txt");*/
/*echo "<pre>".json_encode([['a', 'b'=>'test','c'],'d'], JSON_PRETTY_PRINT)."</pre>\n";*/
interface data_crypt_interface{
public function enc_html($something) : Stri... | PHP | functions.php | sapioit/Z-Url-Shortener | gpl-3.0 | 10,069 | 337 | codeparrot/github-code |
47569851c5e4706bebe2b9be2fe8338b82856bf3c18e743732608ec80a31d2d9 | package Net::DNS::Parameters;
#
# $Id: Parameters.pm 1439 2015-12-07 10:37:41Z willem $
#
use vars qw($VERSION);
$VERSION = (qw$LastChangedRevision: 1439 $)[1];
################################################
##
## Domain Name System (DNS) Parameters
## (last updated 2015-12-01)
##
#################################... | Perl | cygwin/lib/perl5/vendor_perl/5.22/Net/DNS/Parameters.pm | justathoughtor2/atomicApe | gpl-3.0 | 10,133 | 376 | codeparrot/github-code |
b6ae30b0f5052e025a0c8ab6653cc91406fe4a72bb3f5dd98a297e3864b41501 | package fact.features;
import fact.Utils;
import stream.Data;
import stream.Processor;
import stream.annotations.Parameter;
/**
* This Processor converts the FACT UnixTime {seconds, microseconds} to a DateTime instance.
* Be aware that this object has only miliseconds precision.
* Created by maxnoe on 07.02.16.
*... | Java | src/main/java/fact/features/UnixTimeUTC2DateTime.java | fact-project/fact-tools | gpl-3.0 | 993 | 32 | codeparrot/github-code |
c8883f44f133dc94c8be252329bed80315c359f73007e63791a9ee59665edd56 | <?php
/*
* Copyright (C) 2015 Welch IT Consulting
*
* 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... | PHP | mod_form.php | WelchITConsulting/moodle-mod_sbregistration | gpl-3.0 | 8,096 | 145 | codeparrot/github-code |
aa812bc615d51c4876fd6b5bd7b134bd40bf371124b850ba16cb7a845dae151a | /* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* GIMP PSD Plug-in
* Copyright 2007 by John Marshall
*
* 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 Sof... | C | plug-ins/file-psd/psd-thumb-load.c | brion/gimp | gpl-3.0 | 8,519 | 310 | codeparrot/github-code |
a8df0e801bf592d8c95d9be3d5074c5a794a2badba5325ef623ad9fc6fa6a58a | /*
* Copyright 2011-2012 Arx Libertatis Team (see the AUTHORS file)
*
* This file is part of Arx Libertatis.
*
* Arx Libertatis 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 Li... | C | src/gui/MenuPublic.h | xoddark/libretro-arxlibertatis | gpl-3.0 | 3,531 | 95 | codeparrot/github-code |
d5cb086c82b150f739cf80479c23adb33d2d1f39b8ce3c0ff5bd3c6a0270901f | using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using PoGo.PokeMobBot.Logic.Common;
using PoGo.PokeMobBot.Logic.Event;
using PoGo.PokeMobBot.Logic.Logging;
using PoGo.PokeMobBot.Logic.State;
using POGOProtos.Enums;
using POGOProtos.Inventory.Item;
using POGOProtos.Network... | C# | Catchem/Classes/WpfEventListener.cs | kchen-tw/Catchem-PoGo | gpl-3.0 | 20,042 | 436 | codeparrot/github-code |
ae0a6b9a758f2c348f19a05e1ed6b9d17c0b157cd84618d27f0ede8f3a103b60 | /********************************************************************************
Advance control led of e-puck
December 2004: first version
Lucas Meier & Francesco Mondada
August 2007: Led effects added
Jonathan Besuchet
This file is part of the e-puck library license.
See htt... | C | epfl/motor_led/advance_one_timer/e_led.h | jennyhasahat/Firefly-epuck | gpl-3.0 | 2,395 | 79 | codeparrot/github-code |
255f29a605e5a50fc91d08eda1d77e9754519c3f60f13fe21f2d03b759383452 | /* Copyright 1990-2009, Jsoftware Inc. All rights reserved. */
/* Licensed use only. Any other use is in violation of copyright. */
/* */
/* Conjunctions: Inner Product */
#includ... | C | jsrc/cip.c | PlanetAPL/j-language | gpl-3.0 | 16,220 | 382 | codeparrot/github-code |
a4647641ddea2b742af0dd01a3e3743c4c31e7750e772587f577c3e99a64c7d2 | #!/usr/bin/perl
# This is copied from augustus_scripts.
#
# createAugustusJoblist.pl
# Create a joblist with overlapping sequence chunks from multiple fasta files.
# Mario Stanke, 22.01.2007
#
#
use strict;
use Getopt::Long;
my $usage = "$0 -- Create a joblist with sequence chunks from multiple fasta files.\n\n";
$u... | Perl | annot_tools/createAugustusJoblist.pl | Sunhh/NGS_data_processing | gpl-3.0 | 4,920 | 138 | codeparrot/github-code |
4431e01ac59990a0e5f36fc3b30249bd48f555c70f17f770849d2e66749a1a70 | /*-------------------------------------------------------------------------
*
* regexport.c
* Functions for exporting info about a regex's NFA
*
* In this implementation, the NFA defines a necessary but not sufficient
* condition for a string to match the regex: that is, there can be strings
* that match the N... | C | libpg/src/backend/regex/regexport.c | oneeyeman1/dbhandler | gpl-3.0 | 7,067 | 293 | codeparrot/github-code |
132c81daea648a18271f51f5beeef82940b9dca4eb55e0d75a1cf071426c9fea | /**
* File ./src/main/java/de/lemo/dms/connectors/moodle_2_7/mapping/ChatLogLMS.java
* Lemo-Data-Management-Server for learning analytics.
* Copyright (C) 2015
* Leonard Kappe, Andreas Pursian, Sebastian Schwarzrock, Boris Wenzlaff
*
* This program is free software: you can redistribute it and/or modify
... | Java | src/main/java/de/lemo/dms/connectors/moodle_2_7/mapping/ChatLogLMS.java | LemoProject/Lemo-Data-Management-Server | gpl-3.0 | 2,278 | 96 | codeparrot/github-code |
2e87e2da84055c58dbe7e46c99e94769a911209ddb493c7e880b111997dab864 | <?php
/**
* The template for displaying Archive pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package SKT Full Width
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content container">
<main id="main" class="site-main" ... | PHP | archive.php | pboettch/vc-skt-full-width | gpl-3.0 | 2,876 | 96 | codeparrot/github-code |
9789658a91f1fb17f3c0a7fb7f736f0076e69a8249105a7fb38c3177bbce3c41 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... | C | resources/3rdparty/eigen-3.3-beta1/demos/opengl/trackball.h | MazZzinatus/storm | gpl-3.0 | 983 | 43 | codeparrot/github-code |
f8687d4927e30bc892630a5d2441f9f1347d1d23a9a377287534a60f3ff652bc | package com.khasang.fixmynumber.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AlertDialog;
import android.view.View;
import android.widget.Toast;
import com.khasang.fixmynumbe... | Java | app/src/main/java/com/khasang/fixmynumber/Activity/RestoreContactsActivity.java | khasang/FixMyNumber | gpl-3.0 | 7,024 | 173 | codeparrot/github-code |
60f3a1f24bc4964db60482f3ed39fe64b012999f273214b899e1095c641cecd7 | /*
Copyright (C) 2013, 2014, 2015, 2016, 2017 Phil Wieland
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.
... | C | jsondb.c | philwieland/openrail | gpl-3.0 | 44,480 | 1,421 | codeparrot/github-code |
5551b0a372c01a0195b4dcf8054654251144b3743d0d80a64a103b3b8b6a0e16 | package org.optimizationBenchmarking.utils.text.charset;
/**
* The base class for characters
*/
final class _EscapedChar extends Char {
/** the serial version uid */
private static final long serialVersionUID = 1L;
/** the escape sequence */
transient final char m_afterBackslash;
/**
* ... | Java | src/main/java/org/optimizationBenchmarking/utils/text/charset/_EscapedChar.java | optimizationBenchmarking/utils-base | gpl-3.0 | 746 | 33 | codeparrot/github-code |
2a2f80dcdd28532d67833d08492d972ddb5956227bb3540fa1ae48556cf57d58 | // Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
#include <iostream>
#include <queue>
#include <random>
#include <string>
#include <unordered_set>
#include <utility>
using std::cout;
using std::default_random_engine;
using std::endl;
using std::pair;
using std::queue;
using std::random_d... | C++ | Programming/MPI — AMath 483 583, Spring 2013 1.0 documentation_files/transform_string_to_other.cc | meisamhe/GPLshared | gpl-3.0 | 2,411 | 96 | codeparrot/github-code |
2888e386be9c2f401f6a5689435273957f62772cb13100a065c5eddb43d3ea56 | # Copyright 2011, 2012, 2013, 2014 Kevin Ryde
# This file is part of Math-PlanePath.
#
# Math-PlanePath 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
# versio... | Perl | lib/Math/PlanePath/TerdragonMidpoint.pm | gitpan/Math-PlanePath | gpl-3.0 | 26,315 | 821 | codeparrot/github-code |
d7c31aad192faf5f3c94bc539ea76f3eedbc17ef9a880f369bc0e6ceea0778c0 | # Generates some automatic tags based on the value of other tags or information
# available.
import math
from pylux import reference
def tag_fixture_colour(fixture):
if 'gel' in fixture.data:
try:
fixture.data['colour'] = reference.gel_colours[fixture.data['gel']]
except KeyError:
... | Python | pylux/lib/tagger.py | jackdpage/pylux | gpl-3.0 | 1,597 | 45 | codeparrot/github-code |
3414104782b70ceda2a67800088b0568978e92a53345be660fcf802d43026949 | <!DOCTYPE html>
<!--
BeyondAdmin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.2.0
Version: 1.0.0
Purchase: http://wrapbootstrap.com
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
<meta charset="utf-8" />
<title>Form Editors</title>
<meta name="de... | HTML | Resources/public/template/html/form-editors.html | Tecnocreaciones/CrmTemplateBundle | gpl-3.0 | 57,874 | 1,045 | codeparrot/github-code |
80be567fb9d3dbcb92ac2ce698c86a22a5f61d23732e0b69f61e405fd539664d | // Author: Hu Yuhuang
// Date: 2014-04-16
#include "sys_lib.h"
#include "votracker_lib.h"
void computeWindow(vector<VOTKeyPoint> preO, vector<VOTKeyPoint> B, Rect preW, vector<KeyPoint> keypointsI, cv::Mat descriptorsI, Rect & predictedW)
{
// for ESS
}
void computeWindow(vector<VOTKeyPoint> preO, vector<VOTKeyPoi... | C++ | src/votrackernew.cpp | duguyue100/votracker | gpl-3.0 | 3,367 | 124 | codeparrot/github-code |
608a6c2a062130eccabc264cabd78b22bf021d6e51996b1f1863535e9e9417e0 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#define HERCULES_CORE
#include "../config/core.h" // GP_BOUND_ITEMS
#include "intif.h"
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/typ... | C | src/map/intif.c | karanjagdev/bhmro | gpl-3.0 | 71,807 | 2,473 | codeparrot/github-code |
4f8a13b519875d902d616609bea406ef0bd6e10b9c38962267ae1ec55061b5bc | """Peter's re-write of word completion for GNU readline
The foundation for this is the wonderful rlcompleter module that comes
with Python. It has been re-written to make it more informative.
When you import this module, it does this for you:
readline.parse_and_bind("tab: complete")
which makes the tab key the c... | Python | stk/p4/p3rlcompleter.py | supertree-toolkit/stk | gpl-3.0 | 19,120 | 455 | codeparrot/github-code |
6e4826934306aecc9b903482f09a2a3954821bf56c1721fa1be1442e05411b3c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style/style.css">
<script type="text/javascript" src="javascript/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="javascript/websocket.js"></script>
<script type="text/javasc... | HTML | browser/chat.html | imliuda/chatease | gpl-3.0 | 5,488 | 139 | codeparrot/github-code |
f47ae879fd15905a1002c381baa1749e83b219056a69430936c1d742ca19fbb4 | /*
* Copyright © 2014 mathdu07 <mathdu07.minecraft@gmail.com>
*
* This file is part of NBT Viewer.
*
* NBT Viewer 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
*... | Java | src/main/java/fr/mathdu07/nbtviewer/nms/nbt/NBTTagString.java | mathdu07/NBTViewer | gpl-3.0 | 4,147 | 160 | codeparrot/github-code |
19032d01d2fcf634c38a3e425c89ba4c89955d1d10c59d8b0fe1b9ac1a5097bb | <?php
require_once '../lib/Controller.php';
require_once '../lib/View.php';
require_once '../model/eventoEU.php';
require_once '../model/ubigeos.php';
class eventoEUController extends Controller {
public function index() {
if (!isset($_GET['p'])) {
$_GET['p'] = 1;
}
if (!isset... | PHP | controller/eventoEUController.php | AnthonyWainer/sisacreditacion | gpl-3.0 | 15,370 | 350 | codeparrot/github-code |
f1bf4a42fa43970d189bd5f8a8dbd8db02503d962ac39632b844c199d9ffa0b3 | package magic.ui.screen.menu.main;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.event.KeyEvent;
import magic.data.GeneralConfig;
import magic.translate.MText;
import magic.ui.ScreenController;
import magic.ui.WikiPage;
import magic.ui.screen.HeaderFooterScreen;
import magi... | Java | src/magic/ui/screen/menu/main/MainMenuScreen.java | magarena/magarena | gpl-3.0 | 3,017 | 99 | codeparrot/github-code |
201d51d83eb461d7b43c32a6c47f99eab038edf49fd0c0ad60c524ea67d240af | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
TAN(3)</title>
</head>
<b... | HTML | man/tan.3.html | fusion809/fusion809.github.io-old | gpl-3.0 | 4,055 | 129 | codeparrot/github-code |
a11ecab04551ebe3b5d3bcd2297ed91b123c23acc32a307f6c7f1219ab5e9da0 | /*
* Copyright (C) 2015 Federico Iosue (federico.iosue@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version... | Java | omniNotes/src/main/java/it/feio/android/omninotes/models/holders/NoteViewHolder.java | jfreax/Omni-Notes | gpl-3.0 | 1,929 | 52 | codeparrot/github-code |
8b1ac83ec4d393f03fcc2a4160d4dabdcb73037824c0c31e5d1dbe4ea78aa2d8 | #ifdef NSPIRE
#include <os.h>
#endif
#include "nx.h"
#include <SDL/SDL.h>
#include <stdarg.h>
#include <unistd.h>
#include "graphics/safemode.h"
#include "main.fdh"
#ifdef NSPIRE
const char *data_dir = "./data";
const char *stage_dir = "./data/Stage";
const char *pic_dir = "./endpic";
const char *nxdata_dir = ".";
#e... | C++ | main.cpp | gameblabla/nxengine-nspire | gpl-3.0 | 12,648 | 649 | codeparrot/github-code |
6800c4a18c0738e1a41198c9e05d625a0844dca27e84a021c7a5ac18148a6f47 | # -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2015 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | Python | horton/cache.py | eustislab/horton | gpl-3.0 | 14,592 | 420 | codeparrot/github-code |
a725a85b2894eb0cd79ec19e1a72981619b9d03c3a334be9dbc6187bdf34998c | import java.awt.Color;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
public class Labirinto
{
private BufferedImage img = null;
private Image imagem;
private URL urlParaImagem;
private Im... | Java | Pacman/Labirinto.java | evertoncoan/Programacao-Orientada-a-Objetos | gpl-3.0 | 1,379 | 60 | codeparrot/github-code |
9fc60269eb1f73c9e81a5328d878a7ec3ef7cbf401c64ba9266812f2418ad51b | <!DOCTYPE html >
<html>
<head>
<title>ObjectExpression - ScalaFX API 8.0.0-R4 - scalafx.beans.binding.ObjectExpression</title>
<meta name="description" content="ObjectExpression - ScalaFX API 8.0.0 - R4 - scalafx.beans.binding.ObjectExpression" />
<meta name="keywords" content="Obj... | HTML | Documents/ohjelmointistuff/ProjectAsteroid/docs/scalafx/beans/binding/ObjectExpression.html | TarmoA/ProjectAsteroid | gpl-3.0 | 35,658 | 628 | codeparrot/github-code |
a7d6ea4ebb8ea56e9ed0d8eae8a2ae4a6a8310833f58d49c544a26166e624e9d | /*
Copyright (c) 2021 Tarek Mohamed <tarekkma@gmail.com>
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
This program is... | Java | AnkiDroid/src/main/java/com/ichi2/utils/FragmentFactoryUtils.java | donald-w/Anki-Android | gpl-3.0 | 1,292 | 33 | codeparrot/github-code |
1b428f23699c8d83bdc85d6bbcd89e84889977158195a552db05b593256d2cdc | /****************************************************************************
Copyright (C) 2013 Henry van Merode. All rights reserved.
Copyright (c) 2015 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associate... | C++ | cocos2d/extensions/Particle3D/PU/CCPULineAffector.cpp | jun496276723/CocosMFCEditor | gpl-3.0 | 6,481 | 181 | codeparrot/github-code |
ea81b0dd6a76334b3b076be39ee9cedd10ab332ac70bc358232790708cc50075 | #-------------------------------------------------------------------------------
# Copyright (c) 2012 Gael Honorez.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Public License v3.0
# which accompanies this distribution, and is available at
# htt... | Python | src/fa/replayserver.py | IDragonfire/modular-client | gpl-3.0 | 8,647 | 204 | codeparrot/github-code |
b2af2d2d253edec8a64e1434e21993d3ce1f0713ea133bd1f900abf16bf5eb86 | package org.georchestra.cadastrapp.service;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.... | Java | cadastrapp/src/main/java/org/georchestra/cadastrapp/service/InfoBulleController.java | landryb/cadastrapp | gpl-3.0 | 5,784 | 169 | codeparrot/github-code |
67f3e50c58c28481cd0ff0937f8416b54cc8565babed076f512b1a787b728e80 | // Copyright 2015 Urs Fässler, www.bitzgi.ch
// SPDX-License-Identifier: GPL-3.0+
#ifndef LIBRARY_HPP
#define LIBRARY_HPP
#include "Component.hpp"
#include "../visitor/VisitorClient.hpp"
#include "../util/Observer.hpp"
#include "../util/List.hpp"
#include <vector>
class Library final :
public VisitorClient,
... | C++ | src/core/component/Library.hpp | ursfassler/evdraw | gpl-3.0 | 750 | 37 | codeparrot/github-code |
4680f342f0443490d890e902c46ad404b67809e3b0519c6aa69d9a1cc9ed94fc | package net.troja.eve.producersaid.utils;
/*
* ========================================================================
* Eve Producer's Aid
* ------------------------------------------------------------------------
* Copyright (C) 2015 Jens Oberender <j.obi@troja.net>
* ------------------------------------------... | Java | src/test/java/net/troja/eve/producersaid/utils/EveFormatterTest.java | burberius/eve-producersaid | gpl-3.0 | 1,995 | 48 | codeparrot/github-code |
eaf720fcd00b6b7169ed31e0f2a6a1d9568e4b186461525cabc618f0f2eb8692 | /* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Design System
*
* File: Nand2_star_sy.java
*
* Copyright (c) 2003 Sun Microsystems and Static Free Software
*
* Electric(tm) 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 S... | Java | com/sun/electric/tool/generator/layout/gates/Nand2_star_sy.java | imr/Electric8 | gpl-3.0 | 6,885 | 183 | codeparrot/github-code |
84485a5eecc440908d852347ebb1e4832a82bedd1329f433495e1bbcc8b0467d | /*
* Copyright (c) 2010 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#include <Swiften/Presence/PayloadAddingPresenceSender.h>
namespace Swift {
PayloadAddingPresenceSender::PayloadAddingPresenceSender(PresenceSender* sender) : ... | C++ | plugins/buddycloud/3rdparty/swift/Swiften/Presence/PayloadAddingPresenceSender.cpp | marosi/SocialDesktopClient | gpl-3.0 | 1,105 | 49 | codeparrot/github-code |
6ddb32be246334eb46c937d1f61ffcab2bed259a94dbae1312cb8200ce039123 | /*
ID: wjl1241
PROG: nuggets
LANG: C++
*/
#include<fstream>
#include<vector>
using namespace std;
int gcd(int a, int b){
if(a<b)swap(a,b);
int c=a%b;
while(c){
a=b;
b=c;
c=a%b;
}
return b;
}
bool makeup[257]={0};
vector<int> base;
int main(){
ifstream fin("nuggets.in"... | C++ | USACO/Section4.1/nuggets/nuggets/nuggets.cpp | tadvent/OnlineJudgeSolutions-Cpp | gpl-3.0 | 924 | 54 | codeparrot/github-code |
72346fa2ebe13c073df370778d657c5a3341965d905ee80827771f08e649fe49 | //
// AquaConnection.h
// AquaGiPhoneDriver
//
// Created by Tony Milosch (amilosch@iastate.edu) on 4/11/10.
// Copyright 2010 Virtual Reality Applications Center
// Iowa State University All rights reserved.
//
#import <Foundation/Foundation.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.... | C | devices/AquaiPhone/AquaConnection.h | jroltgen/aqua-gesture-framework | gpl-3.0 | 687 | 32 | codeparrot/github-code |
daee6b19b9a6f690c6b3b8c17f25f702c53dd9e47e729b7c33ed10f7dea67970 | MODULE torsion
!
!**********************************************************************************
!* TORSION *
!**********************************************************************************
!* This module reads cartesian coordinates from an ... | FORTRAN | src/options/opt_torsion.f90 | pierrehirel/atomsk | gpl-3.0 | 6,304 | 193 | codeparrot/github-code |
ff94e8809ca821b7b2ef653fa79d61da34dd771fb465b5775ef9c467b61e01b0 | /*
* Copyright (c) 2010 The Jackson Laboratory
*
* This 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 software is d... | Java | modules/main/src/java/org/jax/bham/io/ExportMultiGroupHaplotypeAssociationTestResultsTask.java | cgd/bham | gpl-3.0 | 7,480 | 203 | codeparrot/github-code |
ddd1d4648ec7985edfe353389d936c1f14a2f8e70870c9dec955677bbdd584cd | package org.fostash.atomic.jdbctojson;
/**
*
* Pair class
*/
public final class Pair<L, R> {
/** l field */
private final L l;
/** r field */
private final R r;
/**
* private constructor
* @param left left value
* @param right right value
*/
private Pair(final L left, f... | Java | src/main/java/org/fostash/atomic/jdbctojson/Pair.java | fostash/atomic-core | gpl-3.0 | 1,137 | 61 | codeparrot/github-code |
da4a2c654411261acbb3955c39e17723d54aedb7027f04fe2a309eb7b547db59 | import bones.event
from bones.bot import Module
class NickServ(Module):
def __init__(self, *args, **kwargs):
Module.__init__(self, *args, **kwargs)
self._disabled = False
if not self.settings.get("services", "nickserv.password"):
self.log.error(
"Configuration d... | Python | bones/modules/services.py | 404d/Bones-IRCBot | gpl-3.0 | 3,923 | 103 | codeparrot/github-code |
eefc381eb6d05fc8be67be86b3641672177b2bef95b66b878b9e671a15557a0f | //
// ReactiveSystem.cs
//
// Author:
// Shane Synan <digitalcircuit36939@gmail.com>
//
// Copyright (c) 2015 - 2016
//
// 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 vers... | C# | Actinic/ReactiveSystem.cs | digitalcircuit/actinic | gpl-3.0 | 14,535 | 429 | codeparrot/github-code |
1d916c2fc6859ae441392a3487bef336413cbc88dbb1e4217217e0fd9778cea4 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
/** To decode a BWT back to its original. */
public final class BWTDecoder {
private BWTDecoder() { }
/** Checks if ASCII
@param... | Java | BWT/BWTDecoder.java | arpan-ghosh/string-manipulation | gpl-3.0 | 3,176 | 118 | codeparrot/github-code |
3500e9767b205f4f6a0e5e1abed0a1394d5878e148b21518e62b3c8aa7bb58d9 | package org.machine.learning.cart.model;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* <p>
* 构建 CART 决策树的结点
* </p>
* Create Date: 2016年6月22日
* Last Modify: 2016年6月22日
*
* @author <a href="http://weibo.com/u/5131020927">Q-WHai</a>
* @see <a href="http... | Java | src/org/machine/learning/cart/model/AttributeNode.java | MachineLeanring/MachineLearningCART | gpl-3.0 | 1,843 | 78 | codeparrot/github-code |
ad3aa5b628f44902fffc7cd93fb25edb4ac38a0aa76a7af5c96f6122b6c895ed | // Underscore.js 0.5.5
// (c) 2009 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the terms of the MIT license.
// Portions of Underscore are inspired by or borrowed from Prototype.js,
// Oliver Steele's Functional, and John Resig's Micro-Templating.
// For all details and document... | JavaScript | gensim-develop/docs/src/gensim_theme/static/underscore.js | samantp/gensimPy3 | gpl-3.0 | 13,989 | 418 | codeparrot/github-code |
09d90997a18a7e62ad1154c14ca2d07f2cd8866e56c293c7268eee8004116391 | /**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with t... | C | src/csql/backends/csv/csvbackend.h | zscale/libcsql | gpl-3.0 | 876 | 35 | codeparrot/github-code |
7063f5fe0328639361d66399b670237deeb42ac6d023e3efaf5ac996d17c6d00 | /*
* Copyright 2011 Matthew Tytel
*
* dfex 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.
*
* dfex is distributed in the hope ... | C++ | src/BitCrush.cpp | mtytel/dfex | gpl-3.0 | 1,445 | 56 | codeparrot/github-code |
059add53d0451b99d577cbb9e32cedd9bb81d06b21550a84f37ba29aaa41932f | ''' generic library functions '''
import re
# urllib works different in python 2 and 3 try catch to get the correct one
try:
import urllib.request as urllib2
except ImportError:
import urllib2
import urllib.request
import pywikibot
import json
from unidecode import unidecode
def load_from_url(url):
"""
... | Python | libraries/utils.py | infobliss/sibutest2 | gpl-3.0 | 5,431 | 156 | codeparrot/github-code |
f26af881443832efc4e9767128f691285ecc3bbeb1bb35e0ad4e755f9ce96685 | from databaseObject import *
from nntrainer import *
from nnbuilder import *
import os
import xml.etree.ElementTree
import time
import Queue
import multiprocessing
import numpy as np
import sys
THREADS = 5
NEWONLY = 0
class testingHandler:
def __init__(self, fileName):
self.openSchema(fileName)
def ... | Python | testingHandlerMultithreaded.py | iistyler/TreeBeard-IDS | gpl-3.0 | 8,901 | 285 | codeparrot/github-code |
e2b5bc58c84773b4819f115a5ab2c3044c5248282218860e20d42e866f270afa | package pbg
PokèmonDB interface {
}
PokèmonDBInterface interface {
Get(id int) (Pokèmon, error)
}
MoveDB interface {
}
MoveDBInterface interface {
Get(id int) (Move, error)
}
TrainerDB interface {
}
TrainerDBInterface interface {
Get(id string) (Trainer, error)
Add(user, password string) (Trainer, error)
... | GO | code/pbg/components.go | gdgpisa/goIntermediate | gpl-3.0 | 552 | 38 | codeparrot/github-code |
441b08f57576cc8a7642b53953f2ad404e021fbda1f2f8dec0b40f4c9145d6b2 | <?php
/**
* @package Mautic
* @copyright 2014 Mautic Contributors. All rights reserved.
* @author Mautic
* @link http://mautic.org
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
namespace Mautic\LeadBundle\Form\Type;
use Mautic\CoreBundle\Factory\MauticFactory;
use Symfon... | PHP | app/bundles/LeadBundle/Form/Type/CampaignEventLeadFieldValueType.php | kasobus/edenstest | gpl-3.0 | 3,934 | 119 | codeparrot/github-code |
f1455d9ccf700fad365b904591f1251c1b86384e91b5abb40d33241abdeb3336 | /*
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# | dnSpy/Roslyn/dnSpy.Roslyn/Intellisense/Completions/RoslynCompletionSet.cs | manojdjoshi/dnSpy | gpl-3.0 | 8,028 | 199 | codeparrot/github-code |
5565064c512f774cddc6c091fa30a08d49c3dfa42e167d7cd2bcaa6b884e714c | /*
Copyright (c) 2012, Lunar Workshop, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
... | C | common/sockets/sockets.h | BSVino/LunarWorkshop | gpl-3.0 | 3,786 | 125 | codeparrot/github-code |
0b9b146e043b320e34795fded340ecb1ac4d6fb9c884d4bcc9d8434452dfba4d | package fi.pyramus.json.projects;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.hibernate.StaleObjectStateException;
import fi.internetix.smvc.Severity;
import fi.internetix.smvc.controll... | Java | pyramus/src/main/java/fi/pyramus/json/projects/EditProjectJSONRequestController.java | leafsoftinfo/pyramus | gpl-3.0 | 5,056 | 121 | codeparrot/github-code |
e57d7e0cd597d579f6f381fc8fe48edae999cc031068aeac145029b80595f280 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | C# | Unigram/Telegram.Api.Native.Test/App.xaml.cs | revan1199/Unigram | gpl-3.0 | 4,157 | 101 | codeparrot/github-code |
87a3bab2df755c18a3f7abeefdd128e33262c4176f9781bb39b1f35036db2af3 | // Use ECMAScript 5 restricted variant of Javascript
'use strict';
/*
* This variable will manage all en-US translations
*/
var lang_en_us = angular.module('myApp.translate.en-US', []);
/*
* Load en-US translations
*/
lang_en_us.config(function($translateProvider) {
// Supply translations
... | JavaScript | apps/admin/lang/angular_en-US.js | hrz-unimr/Ilias.RESTPlugin | gpl-3.0 | 8,259 | 155 | codeparrot/github-code |
ed9295897f93e56d4371b0949d4667341b8ad508c018d2f19c4692be95b7481e | package edu.upc.eetac.dsa.kujosa.auth;
import edu.upc.eetac.dsa.kujosa.dao.AuthTokenDAOImpl;
import edu.upc.eetac.dsa.kujosa.entity.Role;
import javax.annotation.Priority;
import javax.ws.rs.InternalServerErrorException;
import javax.ws.rs.Priorities;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.con... | Java | kujosa-service/src/main/java/edu/upc/eetac/dsa/kujosa/auth/AuthRequestFilter.java | dsaqt1516g4/kujosa-project | gpl-3.0 | 2,397 | 69 | codeparrot/github-code |
a33f6d08767e0cf6ca490344688cfe08612828ed0d8eff8a6533b68551e7d19b | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* MiniConfig: a simple configuration file reading library *
* Copyright (C) 2017 LeqxLeqx *
* ... | Java | src/miniConfig/io/SpaciousRenderer.java | LeqxLeqx/miniConfig | gpl-3.0 | 3,517 | 114 | codeparrot/github-code |
58ddaa77d4ea15e41b80fe76b6c081a86f3e383eacfd3607a3cfad3bbd30b7a8 | package Vmprobe::Daemon::Router;
use 5.10.0;
use common::sense;
use Regexp::Assemble;
use Plack::Request;
use Plack::Response;
use JSON::XS;
use Callback::Frame;
use Vmprobe::Daemon::API::RequestContext;
sub new {
my ($class, %args) = @_;
my $self = \%args;
bless $self, $class;
$self->{ra} = Rege... | Perl | old/Vmprobe/lib/Vmprobe/Daemon/Router.pm | vmprobe/vmprobe | gpl-3.0 | 4,437 | 206 | codeparrot/github-code |
a8f65008604d551bee0f537b561e7fcf0400c9e587562cc254852ce1d6ad2220 | var express = require('express');
var fs = require('fs');
var mysql = require('mysql');
var connection = mysql.createConnection({
database : process.env.RDS_DB_NAME ,
host : process.env.RDS_HOSTNAME,
user : process.env.RDS_USERNAME,
password : process.env.RDS_PASSWORD,
port : process.env.RDS_PORT
});
connectio... | JavaScript | functions/firstTimeSetup.js | lordcrekit/am.nesia | gpl-3.0 | 1,604 | 46 | codeparrot/github-code |
34504331292d0a82e9d2d6f44446cf54045b84ec72944695802fc211e4fee80f | #include "git.h"
git_uint32 gestalt (enum GestaltSelector sel, git_uint32 param)
{
switch (sel)
{
case GESTALT_SPEC_VERSION:
return 0x00030100;
case GESTALT_TERP_VERSION:
return GIT_VERSION_NUM;
case GESTALT_RESIZEMEM:
return 1;
... | C | twisty/jni/git/gestalt.c | gevrik/gevrik-twistypad | gpl-3.0 | 1,159 | 52 | codeparrot/github-code |
0db66cc8217b5c72de7de5e8736a9962056c162d6d80458c45e100753548252e | //
// Created by sunalong on 17/3/8 15:25.
// Email:466210864@qq.com
//
#include<iostream>
#include <functional>//处理函数
#include<stdlib.h>
using namespace std;
struct MyStruct {
void add(int a) {
cout << "add, a:" << a << endl;
}
void add2(int a, int b, int c) {
cout << "add2, a:" << a << ... | C++ | app/src/main/cpp/02CPP/_20140816/bindTest.cpp | sunalong/CDemo | gpl-3.0 | 1,324 | 55 | codeparrot/github-code |
28a4fb6ff5f6a6d59ca1ca7a7438844aaf3748d3523666faf8ccfad96d50ca73 | /*********************************************************************
Network connections
-------------------
UVa ID: 007 93
This file is covered by the LICENSE file in the root of this project.
**********************************************************************/
#include "base.hpp"
#include <algorithm>
#include ... | C++ | src/uva/00793_network_connections.cpp | eugnsp/algorithms | gpl-3.0 | 2,801 | 143 | codeparrot/github-code |
bdfbcf3118fa6c89ff91739855f3e82618025dce1326dbeda17be933f8e4ee7e | #include <cmath>
#include <cstdlib>
#include <time.h>
#include "armory.h"
#include "consumable.h"
#include "defines.h"
#include "item.h"
#include "manager.h"
#include "monster.h"
#include "tile.h"
// singletons
Manager manager;
WorldMap worldmap;
// options
bool doo_option_brightbg = false;
/... | C++ | src/defines.cpp | dirtybytes/doo | gpl-3.0 | 12,323 | 612 | codeparrot/github-code |
017d237375f4edaebe7fd8726f20e7aac811b3f5812a99e3714abe48df7ca824 | package org.mythtv.android.data.repository;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
im... | Java | mythtv-player/src/test/java/org/mythtv/android/data/repository/DvrDataRepositoryTest.java | MythTV-Clients/MythtvPlayerForAndroid | gpl-3.0 | 6,145 | 138 | codeparrot/github-code |
b00e98910a2a47a8268fc4c88503ec3acd5efeaa7655e931107de8aef8bd720c | // -----------------------------------------------------------------------
// Copyright © Microsoft Corporation. All rights reserved.
// -----------------------------------------------------------------------
using System.Collections.Generic;
using System.Composition.Hosting.Core;
using System.Composition.Runtime;
u... | C# | src/System.Composition.TypedParts/TypedParts/Discovery/DiscoveredInstanceExport.cs | crystalbyte/paranoia | gpl-3.0 | 1,188 | 32 | codeparrot/github-code |
f3be91f585246c837c49bd5bc9fc60728f4613b2680e77dbc15127510793067d | <?php
/*********************************************************************************
* This file is part of Sentrifugo.
* Copyright (C) 2014 Sapplica
*
* Sentrifugo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* ... | PHP | application/modules/default/models/Myemployees.php | sureshverity/VHRIS_NEW | gpl-3.0 | 6,639 | 178 | codeparrot/github-code |
2b4a9d7536baa66f7a870736057b2aaa3f289e81827a5a33e8d84fbeb6e87f9b | #include "flash.h"
Flash::Flash(void): baseAddress_127kB(0x0801FC00) {}
void Flash::write(uint16_t data)
{
unlock();
clearFlags();
pageErase();
programHalfWordFlash(data);
lock();
}
uint16_t Flash::readFlash(void)
{
return *(uint16_t *)(baseAddress_127kB);
}
void Flash::unlock(void)
{
FLASH->KEYR... | C++ | stm32_receiver_nrf/flash/flash.cpp | lukaszpatulski/embedded | gpl-3.0 | 1,255 | 75 | codeparrot/github-code |
3ecf0695053b8de2d627a8c46098dcfca84104dfe817048331a2510c698522f7 | /************************************************************************
* This file is part of FoxCRM.
*
* FoxCRM - Open Source CRM application.
* Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* FoxCRM is free software: you can redistribute it an... | JavaScript | client/src/views/user/modals/access.js | ilovefox8/cc2crm | gpl-3.0 | 1,875 | 63 | codeparrot/github-code |
7bb51e7eecb341d09588c5c6dd85b8eb5a5bd2f8ed81908c38e97573038e2ca8 | /*
* serial.cpp - Serial port access.
*
* Copyright (c) 2014 Stefan Taferner <stefan.taferner@gmx.at>
*
* 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.
*/
#include <sblib... | C++ | sblib/src/serial.cpp | baycom/software-arm-lib | gpl-3.0 | 4,124 | 184 | codeparrot/github-code |
fbf67044d8baae5307b36d5e3a434bfad1e8cbfa4376f87e6a07b3ac32734053 | /*
Ophidia Analytics Framework
Copyright (C) 2012-2021 CMCC Foundation
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 | include/drivers/OPH_DELETECONTAINER_operator.h | OphidiaBigData/ophidia-analytics-framework | gpl-3.0 | 2,210 | 61 | codeparrot/github-code |
7c901e2f3b12de54467d57dcabeff13688889e2967ddf4e7e0c639c2f55515a8 | module NodeCtld
class VpsConfig::NetworkInterface
Route = Struct.new(:address, :version, :via, :class_id, :max_tx, :max_rx) do
# @param data [Hash]
def self.load(data)
addr = IPAddress.parse(data['address'])
new(
addr,
addr.ipv4? ? 4 : 6,
data['via'],
... | Ruby | libnodectld/lib/nodectld/vps_config/network_interface.rb | vpsfreecz/vpsadmin-webui | gpl-3.0 | 2,018 | 95 | codeparrot/github-code |
391bd829080ff908b593c45ff20ffde031d4073ec99987c4c03abc8ac794dd2c | /*******************************************************************************
* Copyright (c) 2010 Torsten Zesch.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
... | Java | src/de/tudarmstadt/ukp/wikipedia/api/PageQueryIterable.java | fauconnier/LaToe | gpl-3.0 | 6,794 | 187 | codeparrot/github-code |
c2309eeb593c0735b61d3563a63ec04d30d7449ce3fbef131112ee157cbdb7d2 | /**
* 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.
*
* You should have received a copy of the GNU General Public ... | Java | core/src/main/java/com/andune/minecraft/hsp/storage/cache/PlayerLastLocationDAOCache.java | andune/HomeSpawnPlus | gpl-3.0 | 5,894 | 173 | codeparrot/github-code |
df3d60703ca680b32228a1c67233bb77e3fbe794124c482b41557f5352e7da16 | <?php
namespace Polyfony\Profiler\HTML;
use \Polyfony\Element as Element;
use \Polyfony\Logger as Logger;
class Logs {
private static function getLogs($stack) {
$logs_count = 0;
$logs = [];
foreach($stack as $element) {
if($element['user'] == 'log') {
++$logs_count;
$title_container = ... | PHP | Private/Polyfony/Profiler/HTML/Logs.php | SIB-FRANCE/Polyfony2 | gpl-3.0 | 2,120 | 84 | codeparrot/github-code |
55ab6e0c959db11b04d2d3be0de44a0050d2e48265e4767097be45d3a23c66d4 | /*
* This file is part of the Droid Roach project
* Copyright 2013 Stefano Gabryel
* Author: Stefano Gabryel
* License: GPL v3 - http://www.gnu.org/licenses/gpl-3.0.html
* Author website: http://www.stefano-workshop.com
* Project website: http://droid-roach.stefano-workshop.com
*
*/
package esse.droidroach.mo... | Java | DroidRoach/src/esse/droidroach/module/subdomainenumerator/thread/BingThread.java | LucaBongiorni/DroidRoach | gpl-3.0 | 2,821 | 102 | codeparrot/github-code |
9b3d0eb333f0d0a2cdb0dc42a727e718172be256758c4945a962d02d580c5ff2 | # -*- coding: utf-8 -*-
#
# (c) Copyright 2001-2008 Hewlett-Packard Development Company, L.P.
#
# 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 opt... | Python | i386-squashfs-root/usr/share/hplip/ui4/makecopiesdialog.py | Alberto-Beralix/Beralix | gpl-3.0 | 2,669 | 92 | codeparrot/github-code |
96c43fa4ceb37eeac5611f89024de26ebe983c7d14c2d0727d402034e12c7a64 | from PySide2 import QtGui, QtCore, QtWidgets
from design import SidUi, DdUi
from ServersData import ServersDownloadThread, servers
import sys
class SpeedInputDialog(QtWidgets.QDialog, SidUi):
def __init__(self):
QtWidgets.QDialog.__init__(self)
self.setupUi()
def get_data(self)... | Python | CustomDialogs.py | ZeX2/TWTools | gpl-3.0 | 3,155 | 82 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.