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
3d4d17029b32394d305eebeef83203c3f5c8e3c446a2eca8486d08a5f5c9e417
local E, L, V, P, G = unpack(ElvUI) local UF = E:GetModule('UnitFrames') local _, ns = ... local ElvUF = ns.oUF assert(ElvUF, 'ElvUI was unable to locate oUF.') local _G = _G local tinsert = tinsert function UF:Construct_TargetTargetTargetFrame(frame) frame.Health = UF:Construct_HealthBar(frame, true, true, 'RIGHT'...
Lua
AddOns/ElvUI/Core/Modules/UnitFrames/Units/TargetTargetTarget.lua
qyh214/wow_addons_private_use
gpl-3.0
4,173
93
codeparrot/github-code
ddaeb074b7d33f70910d7bb5e19983a6b03b494993bb84874f986071ed5ddd1c
package com.fxs.platform.security.core.authorize; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizatio...
Java
fxs-platform-security-core/src/main/java/com/fxs/platform/security/core/authorize/FxsAuthorizeConfigManager.java
charlesyao/FXS-Platform
gpl-3.0
1,697
47
codeparrot/github-code
235918bf048035c5782c6b653833586845707cbe8b9f0bf10501ed58df373c89
package org.transandalus.backend.domain; import javax.persistence.*; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.d...
Java
src/main/java/org/transandalus/backend/domain/Category.java
jbernach/transandalus-backend
gpl-3.0
2,055
95
codeparrot/github-code
1900bb0141a6bba290f8f0262c1222169fd75991fe6622a4a1dbbdfaf8e45b40
<?php /** * Copyright 2008, Jefferson González (JegoYalu.com) * This file is part of Jaris CMS and licensed under the GPL, * check the LICENSE.txt file for version and details or visit * https://opensource.org/licenses/GPL-3.0. * * Database file that stores the sqlite download backup script. */ //For security t...
PHP
system/pages/admin/settings/sqlite/admin.php
jegoyalu/jariscms
gpl-3.0
1,720
69
codeparrot/github-code
3c912b62e3d5d2b31517b0c2f06fc278740a1333f6bb22aec44c3fec1d29562d
/* * 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 pkg3evaluacionarraylist; import java.util.ArrayList; import java.util.ListIterator; /** * * @author dam115 */...
Java
3EvaluacionArrayList/src/pkg3evaluacionarraylist/Listin.java
Urco13/3Evaluacion
gpl-3.0
2,376
82
codeparrot/github-code
f37dd9d88471e3d740614bb13ab5db8b9ac2da4842a688f7ecd9eac196c27667
/* * Cantata * * Copyright (c) 2015 Craig Drummond <craig.p.drummond@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 2 of the License, or * (at you...
C++
db/librarydb.cpp
COLABORATI/cantata
gpl-3.0
30,088
1,041
codeparrot/github-code
a2055ddc256909969299a7892968222f489764a77b571afa275bea38576cd25e
package org.manifold.compiler.front; import java.util.List; public class VariableIdentifier { private String name; private NamespaceIdentifier namespaceIdentifier; public VariableIdentifier(List<String> identifiers) { assert(identifiers.size() > 0); this.name = identifiers.get(identifiers.size() - 1);...
Java
src/main/java/org/manifold/compiler/front/VariableIdentifier.java
manifold-lang/manifold
gpl-3.0
1,602
63
codeparrot/github-code
4ccd5c204d642848d109e188e64456f21d681d0706edfc19157cb0bb486cbd7d
package org.optimizationBenchmarking.utils.io.structured.impl.abstr; import java.nio.file.Path; import java.util.logging.Logger; import org.optimizationBenchmarking.utils.text.textOutput.MemoryTextOutput; /** the output job */ final class _InputJob extends _IOJob { /** the sources */ private final _L...
Java
src/main/java/org/optimizationBenchmarking/utils/io/structured/impl/abstr/_InputJob.java
optimizationBenchmarking/utils-base
gpl-3.0
2,534
89
codeparrot/github-code
142803d82c94882149e2ef78f531b269f86c4146528e81c8f9c948fd5862f034
#ifndef DRCHUBOKIN_H #define DRCHUBOKIN_H #include <RobotKin/Robot.h> #include <Hubo_Control.h> class DrcHuboKin : public RobotKin::Robot { public: DrcHuboKin(); DrcHuboKin(std::string filename); RobotKin::TRANSFORM handFK(int side); RobotKin::TRANSFORM footFK(int side); RobotKin::rk_result_t ...
C
include/DrcHuboKin.h
hubo/hubo-motion-rt
gpl-3.0
1,186
47
codeparrot/github-code
adc4af4fdb6138b6417e097c72ede58293ff15fa76f922e9bad4f61301d67422
using System.Drawing; namespace CNCMaps.Engine.Types { public class TerrainType : ObjectType { public TerrainType(string ID) : base(ID) { } // Rules public bool IsVeinhole; public bool WaterBound; public bool SpawnsTiberium; public bool IsFlammable; public Color RadarColor; public bool I...
C#
CNCMaps.Engine/Types/TerrainType.cs
zzattack/ccmaps-net
gpl-3.0
1,348
46
codeparrot/github-code
e8e3bacf10ca7c310f2f7e14807cde269d978449e056216995bc0a71f5a72c15
package com.earth2me.essentials.commands; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; import java.util.List; import org.bukkit.Server; import org.bukkit.command.CommandSender; import org.bukkit.entity.LightningStrike; import org.bukkit.entity.Player; public class Commandlightni...
Java
Essentials/src/com/earth2me/essentials/commands/Commandlightning.java
joansmith/Essentials
gpl-3.0
1,603
69
codeparrot/github-code
f535a69154b9eef03e4a4fc4496c38ece923346c682968a40968e01faacc05fc
/* * Driver for Aeroflex Gaisler SVGACTRL framebuffer device. * * 2011 (c) Aeroflex Gaisler AB * * Full documentation of the core can be found here: * http://www.gaisler.com/products/grlib/grip.pdf * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General ...
C
drivers/video/fbdev/grvga.c
williamfdevine/PrettyLinux
gpl-3.0
14,650
690
codeparrot/github-code
04da6a34a37c266be8f9f08eedd35ca206064ddd6daf116c4ee133ed9983cd74
//****************************************************************************** //* File: Sample.h //* Author: Jon Newman <jpnewman snail mit dot edu> //* //* Copyright (c) Jon Newman (jpnewman snail mit dot edu) //* All right reserved. //* This file is part of the Oat project. //* This is free software: you can red...
C
lib/datatypes/Sample.h
jonnew/Oat
gpl-3.0
3,753
127
codeparrot/github-code
bb32189d1b8b262bd09a571201ef62f0a4c28280d08390723f40aa033a6d47fa
----------------------------------- -- -- Zone: Cloister_of_Tremors -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; require("scripts/zones/Cloister_of_Tremors/TextIDs"); ----------------------------------- -- ...
Lua
scripts/zones/Cloister_of_Tremors/Zone.lua
Laterus/Darkstar-Linux-Fork
gpl-3.0
1,138
55
codeparrot/github-code
69486942ea931e6de2cf15fbc35c35553970ed5cbf09837025e15a535cd0db42
function New-DbaDirectory { <# .SYNOPSIS Creates new path as specified by the path variable .DESCRIPTION Uses master.dbo.xp_create_subdir to create the path Returns $true if the path can be created, $false otherwise .PARAMETER SqlInstance The SQL Server you want to run ...
PowerShell
functions/New-DbaDirectory.ps1
shaneis/dbatools
gpl-3.0
3,862
99
codeparrot/github-code
b8a157d08af01f890af23d347c135470a2b3c24065716bbea43403081d9684e4
package cn.nukkit.entity.item; import cn.nukkit.Player; import cn.nukkit.block.Block; import cn.nukkit.block.BlockAir; import cn.nukkit.block.BlockLiquid; import cn.nukkit.entity.Entity; import cn.nukkit.entity.data.IntEntityData; import cn.nukkit.event.entity.EntityBlockChangeEvent; import cn.nukkit.event.entity.Enti...
Java
src/main/java/cn/nukkit/entity/item/EntityFallingBlock.java
Angelic47/Nukkit
gpl-3.0
5,179
202
codeparrot/github-code
e338329531e41b89bae1f0d6935dc3f8d855e7919b0353774ad8c88b0439863d
/* Copyright 2016 - Jorge Miguel Ferreira da Silva * * This file is part of AnonymousPatientData. * * AnonymousQuery 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...
Java
src/main/java/pt/ieeta/anonymouspatientdata/pluginset/jetty/AnonynousServletPlugin.java
jorgeMFS/AnonymousWrapper
gpl-3.0
3,361
110
codeparrot/github-code
47754ddb7fe2617b25361468e19248408da91bfa09524d2b97427ab8118f5b56
package tomoBay.model.services.stockUpdateService; /** Copyright(C) 2015 Jan P.C. Hanson & Tomo Motor Parts Limited * * 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...
Java
src/tomoBay/model/services/stockUpdateService/StockRequiredQueryFactory.java
jpchanson/OpenDMS
gpl-3.0
3,498
95
codeparrot/github-code
8f4ef2f75f8bc0645351d98f189201b36f59a432bec08f85a223b9e7ca98f216
/* Graffik Motion Control Application Copyright (c) 2011-2012 Dynamic Perception This file is part of Graffik. Graffik 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 L...
C++
Graffik/gui/core/Dialogs/deletedevicedialog.cpp
DynamicPerception/Graffik_Legacy
gpl-3.0
2,319
94
codeparrot/github-code
0c65ac58b636e3249f1ce772429514fa6bbcb9bba53f511928d277406631e7c0
/* * IcyInputStream. * * jicyshout : http://sourceforge.net/projects/jicyshout/ * * JavaZOOM : mp3spi@javazoom.net * http://www.javazoom.net * *----------------------------------------------------------------------- * This program is free software; you can redistribute it and/or modify * it under the...
Java
src/main/java/javazoom/spi/mpeg/sampled/file/tag/IcyInputStream.java
zcourts/groovesquid
gpl-3.0
16,235
448
codeparrot/github-code
69435d8dd4ca7529895b5d36d7cd529def54285145b0430e7eac6ec8c37df249
/* * Kontalk Android client * Copyright (C) 2018 Kontalk Devteam <devteam@kontalk.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 optio...
Java
app/src/main/java/org/kontalk/ui/prefs/PreferencesActivity.java
115ek/androidclient
gpl-3.0
5,705
170
codeparrot/github-code
06115ac7f73abb62765af6786d11ea582d465acbad764f88965a341145987d35
/* * Copyright 2011-2014 Red Hat, Inc. * * This file is part of PressGang CCMS. * * PressGang CCMS 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 ...
Java
src/main/java/org/jboss/pressgang/ccms/ui/client/local/mvp/presenter/search/topic/TopicSearchTagsFieldsAndFiltersPresenter.java
pressgang-ccms/PressGangCCMSUI
gpl-3.0
2,241
65
codeparrot/github-code
47af2c3c5f01cd176e9730e29f47df5ec0660741111515898351a68ddfe1891a
package com.redeye123.firstmod.blocks; import com.redeye123.firstmod.FirstMod; import com.redeye123.firstmod.help.Reference; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import java.util.Random; /** * C...
Java
src/main/java/com/redeye123/firstmod/blocks/BlockFirstOre.java
Redeye123/FirstMod
gpl-3.0
1,337
48
codeparrot/github-code
eb0956c6c4bfb558d082ee0f3614446e0e3a9b013afe014b766214936c769720
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
PHP
application/library/Zend/Captcha/Word.php
Emergen/zivios-panel
gpl-3.0
8,466
370
codeparrot/github-code
2993998d1f2f6a167e17228864f956753490d8174326b637e6400823884bea44
# IMAPFS - Cloud storage via IMAP # Copyright (C) 2013 Wes Weber # # 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. # # T...
Python
imapfs/directory.py
waweber/imapfs
gpl-3.0
2,645
103
codeparrot/github-code
2fea90208525e4ef7574d8af884cb22487aa9dcef75aabe8449922e09a72f08c
$(document).ready(function () { var UUIDPosition = document.getElementById('uuid_p'); var btnGenerateNewUUID = document.getElementById('btnGenerateNewUUID'); var btnCopyUUID = document.getElementById('btnCopyUUID'); //initial presentation UUIDPosition.innerHTML = uuid(); //button generate new...
JavaScript
web/General/uuid/main.js
mikusher/JavaBasico
gpl-3.0
2,609
58
codeparrot/github-code
4355be9ad488065bd80cc831800e482a78d7265c31913ff8fb7e0adcd3344113
<?php /** * The admin-specific functionality of the plugin. * * Defines the plugin name, version, and two examples hooks for how to * enqueue the admin-specific stylesheet and JavaScript. * * @link https://edwiser.org * @since 1.0.0 * * @author WisdmLabs <support@wisdmlabs.com> */ namespace ap...
PHP
wp-content/plugins/edwiser-bridge/admin/class-eb-admin.php
tumanob/tili.kg
gpl-3.0
3,354
133
codeparrot/github-code
d5de3e6af6632cb075e0b87bba4e4b82341b0aaf3189a7b9f958073e493b13a1
<?php /** * Loads the POS Payment Gateways * * @package WCPOS\Gateways * @author Paul Kilmurray <paul@kilbot.com.au> * @link http://www.wcpos.com */ namespace WCPOS; class Gateways { protected static $instance; /** * Constructor */ public function __construct() { add_action( 'woocommerce_pa...
PHP
includes/gateways.php
kilbot/WooCommerce-POS
gpl-3.0
1,506
74
codeparrot/github-code
69aa6747e36684681d00b2646aa858ab285b3a3e956262885863cfcd7c8cccb1
/*************************************************************************** * Copyright (C) 1998-2009 by authors (see AUTHORS.txt ) * * * * This file is part of LuxRender. * * ...
C
shapes/hyperboloid.h
marwan-abdellah/luxrender-lux
gpl-3.0
2,392
54
codeparrot/github-code
c58810974718fa986c8f866e4deb03ff45d688d06fd5875b0b73b9222887abbe
define([], function(){ "use strict"; var BtnExportSelectionDirective = function BtnExportSelectionDirective(alertService, mevSelectionLocator){ function BtnExportSelectionVM(scope){ var self = this; this.target = scope.muiTarget; this.analysis = scope.muiAnalysis; this.dataset = scope.muiDataset; ...
JavaScript
web/src/main/javascript/edu/dfci/cccb/mev/web/ui/app/widgets/analysis/analysisMenu/btnExportSelection/btnExportSelectionDirective.js
lev-kuznetsov/mev
gpl-3.0
3,606
95
codeparrot/github-code
3f2521f15579a3d6734e1618808bd41e94b5679474ae9a78924c96fbb474b948
import urllib from django.contrib import messages from django.contrib.admin import RelatedFieldListFilter, SimpleListFilter from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from oioioi.base import admin from oioioi.base.utils import make_html_link from oioioi.base.p...
Python
oioioi/oi/admin.py
papedaniel/oioioi
gpl-3.0
10,760
277
codeparrot/github-code
a2a3f8c401154cf7143a0ccc9e0e433fa0696ccb995d43f751c7a9b2eb4b0630
package fr.lessaging.preferences; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; import android.support.v7.app.ActionBarActivity; import fr.lessaging.R; /**...
Java
Lessaging/app/src/main/java/fr/lessaging/preferences/LessagingPreference.java
lheido/Lessaging
gpl-3.0
1,994
70
codeparrot/github-code
41f8f5ac24837e34945d63e1855db6704a1620b78f904affbb10822af21c87f6
#include <iostream> #include "list.h" template <typename NODETYPE> void printListBackward(const ListNode<NODETYPE>* a_listNode) { if (a_listNode == nullptr) return; printListBackward(a_listNode->nextNode()); std::cout << a_listNode->getData() << ' '; } template<typename NODETYPE> void printListBa...
C++
How_to_programC++/19.Custom_Templatized_Data_Structure/Exercises/19.20-Recursively_print_a_list_backward/src/main.cpp
vedalken/How_to_program_Cpp
gpl-3.0
681
35
codeparrot/github-code
9af728e347a6163b5943d47b3b5629ce98bbb6ccbcf99acec20b55fb8c587854
#ifndef CORPUSRECORDINGTABLEMODEL_H #define CORPUSRECORDINGTABLEMODEL_H #include <QObject> #include <QPointer> #include <QList> #include <QAbstractTableModel> namespace Praaline { namespace Core { class CorpusRecording; class MetadataStructureAttribute; } } struct CorpusRecordingTableModelData; cla...
C
pngui/model/corpus/CorpusRecordingTableModel.h
praaline/Praaline
gpl-3.0
1,528
46
codeparrot/github-code
b8921cf3f357a1e3ce76236c02ad0d19e8cb600e5229a9b1de3d72830d56ad81
#include "ucw/lib.h" #include "ucw/getopt.h" #include "ucw/fastbuf.h" #include "ucw/ff-binary.h" #include "ucw/lizard.h" #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> static char *options = CF_SHORT_OPTS "cdtx"; static char *help = "\ Usage: lizard-test <options> input-file [output-file...
C
moe/ucw/lizard-test.c
fushar/regrader-v1
gpl-3.0
2,459
124
codeparrot/github-code
2712247bbea9b9a429685e76d4efb17742f7f376076f1fb0637a37a89762ca64
/* --------------------------------------------- */ /* $APPASERVER_HOME/library/relation.c */ /* --------------------------------------------- */ /* */ /* Freely available software: see Appaserver.org */ /* --------------------------------------------- */ #include <stdio.h> #include <stdlib.h> #include <string...
C
library/relation.c
timhriley/appaserver
gpl-3.0
14,106
596
codeparrot/github-code
fd54daa7fac43bc35ab8d9ebd62db4a5e034ba25ba305556b1cdcf9379db9306
/* * libutil - Yet Another Utility Library * Copyright (c) 2012-2015, Christian Wressnegger * -- * This file is part of the library libutil. * * libutil 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, ...
C
lib/util/src/archive.c
chwress/salad
gpl-3.0
4,384
189
codeparrot/github-code
49d380d8538f60a09619e27bc479985b479add2d9c8c32987cbaf758a3a3ae5e
package magic.model.action; import magic.model.MagicGame; import magic.model.MagicPlayer; import magic.model.event.MagicStackChangeTargetsEvent; import magic.model.stack.MagicCardOnStack; public class CopyCardOnStackAction extends MagicAction { private final MagicPlayer player; private final MagicCardOnStack...
Java
src/magic/model/action/CopyCardOnStackAction.java
magarena/magarena
gpl-3.0
1,201
38
codeparrot/github-code
080807fce11c540c1f1d096ac28410fe98930fbf9ce23cdae5f31940b55b664e
/* * smup.hpp * * Copyright (c) 2015, Kevin Laeufer <kevin.laeufer@rwth-aachen.de> * * This file is part of smup. * * smup 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 Licen...
C++
cpp/smup.hpp
ekiwi/smup
gpl-3.0
5,009
204
codeparrot/github-code
3e4ab3cb2ddab9f651cb268e3d56cd6d06f9bcbcfdee562274fde134f56f4d68
<?php ///////////////////////////////////////////////////////////////////////////// // // // NOTICE OF COPYRIGHT // // // /...
PHP
calendar/export.php
khan0407/FinalArcade
gpl-3.0
7,264
161
codeparrot/github-code
f405a7da81ae70921815711b9d701aab53c6db65a5dd80a05b8080ed3081875b
package jisssea.controller.messages; import java.util.Arrays; import jisssea.bot.Bot; import org.jibble.pircbot.User; public class UserListMessage extends Message { final String channel; final User[] users; final Bot bot; public Bot getBot() { return bot; } public String getChannel() { return channel; ...
Java
src/jisssea/controller/messages/UserListMessage.java
RichardWarburton/Jisssea
gpl-3.0
674
38
codeparrot/github-code
621d4dc3b533807c4bb59a73e4cce315ddb337b42a6a9e8b2152898798f0c1c0
ClientTaskWeapon = { } ClientTaskWeapon.__index = ClientTaskWeapon local modelAnimTypes = { [ 346 ] = 1, [ 347 ] = 1, [ 348 ] = 1, [ 342 ] = 1, [ 352 ] = 1, [ 353 ] = 1, [ 363 ] = 1, [ 372 ] = 1, [ 349 ] = 2, [ 351 ] = 2, [ 355 ] = 2, [ 356 ] = 2, [ 358 ] = 2, [ 357 ] = 2, [ 250 ] = 2,...
Lua
[gm]/gm-shops/ClientTaskWeapon.lua
tederis/mta-resources
gpl-3.0
5,127
201
codeparrot/github-code
c9a5bf2baf1417a98bcb28632ea077038246c81d45e8de4965a5a99949744232
module Main where import Control.Applicative ((<$>), (<|>)) import Control.Monad(replicateM) import qualified Data.HashMap.Strict as Map import Data.List (find) import Data.Maybe (isJust, isNothing) import Data.Monoid ((<>)) import quali...
Haskell
src/SneakyBeaky/Main.hs
pmiddend/sneakybeaky
gpl-3.0
9,799
253
codeparrot/github-code
7f2e3d9956e83196d2d1a55ddc88273f1d33f1d280bcc173704e41565021cbf6
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using CoreAnimation; using CoreGraphics; using Foundation; using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; using XFAnimatingTextColorButton; using XFAnimat...
C#
XFAnimatingTextColorButton/XFAnimatingTextColorButton/XFAnimatingTextColorButton.iOS/AnimatingTextColorButtonRenderer.cs
UdaraAlwis/Xamarin-Playground
gpl-3.0
3,744
124
codeparrot/github-code
f56a2a53611bf3e5a3f61a08b3a757a4a1e988790fc8059a12a556589e5983a0
/* * Overchan Android (Meta Imageboard Client) * Copyright (C) 2014-2016 miku-nyan <https://github.com/miku-nyan> * * 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 o...
Java
src/nya/miku/wishmaster/chans/allchan/AllchanModule.java
miku-nyan/Overchan-Android
gpl-3.0
29,955
624
codeparrot/github-code
02bce7418d8efa374e1465de48c8127d69aa7617f91230fba5c8f2647c311acb
/* * MindmapsDB - A Distributed Semantic Database * Copyright (C) 2016 Mindmaps Research Ltd * * MindmapsDB 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 you...
Java
mindmaps-engine/src/test/java/io/mindmaps/api/GraphFactoryControllerTest.java
duckofyork/mindmapsdb
gpl-3.0
3,604
89
codeparrot/github-code
037ead2a325952e3f13f113e04922491a0b466871f439524d44d235cac07236e
#!/usr/bin/env python from argparse import ArgumentParser import os import shlex import subprocess import sys from vsc.atools.int_ranges import int_ranges2set, InvalidRangeSpecError from vsc.atools.config import (get_var_config, get_mode_config, ConfigFileError) if __name__ == '__main...
Python
lib/areduce.py
gjbex/atools
gpl-3.0
5,227
118
codeparrot/github-code
5a390f75c2407ab719c0373252105bd8298f3fca85ac92b056d8a5e82c331cd2
using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using JetBrains.Annotations; using Selkie.Windsor; namespace Selkie.Services.Monitor.Configuration { [ExcludeFromCodeCoverage] //ncrunch: no coverage start [ProjectComponent(Lifestyle.Transient)] public class SelkieProcess : ISelkieProce...
C#
Selkie.Services.Monitor/Configuration/SelkieProcess.cs
tschroedter/Selkie.Services.Monitor
gpl-3.0
999
40
codeparrot/github-code
4683fa2317f47c134d00f253b13b9f543a324602fa42ac25637bdb0c73cf8003
# Copyright 2010 Ramon Xuriguera # # This file is part of BibtexIndexMaker. # # BibtexIndexMaker 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 late...
Python
src/bibim/gui/custom_widgets.py
rxuriguera/bibtexIndexMaker
gpl-3.0
3,769
111
codeparrot/github-code
ecef6ced44967a6421b392855ede06f855f6a27a6b586c47d63fd814100f164e
package HyipSimulator; import Players.Hyip; public class HyipAccount { private Hyip owner; private volatile double cash; private volatile double income; public HyipAccount(Hyip owner, double cash) { this.owner = owner; this.cash = cash; this.income = 0; } public void addMoney(double val...
Java
src/HyipSimulator/HyipAccount.java
ResearchGeek/hyip-simulation
gpl-3.0
1,389
77
codeparrot/github-code
2fec0f53524201f8d8bdc2dec1f078d3122b79a5521ad746118ceb30e07d160d
namespace WowPacketParser.Enums.Version.V4_0_6_13596 { // ReSharper disable InconsistentNaming // 4.0.6 enum ObjectField { OBJECT_FIELD_GUID = 0x0000, // Size: 2, Type: LONG, Flags: PUBLIC OBJECT_FIELD_TYPE = 0x0002, // Size: 1, Type: TWO_SHORT, Flags: PUBLIC OBJECT_FIELD_ENTRY =...
C#
WowPacketParser/Enums/Version/V4_0_6_13596/UpdateFields.cs
TrinityCore/WowPacketParser
gpl-3.0
52,848
538
codeparrot/github-code
cf0b26952e318811cdcf31fc65137b8c80a8a47d0e6f627399611e4c621b22e9
# frozen_string_literal: true # rubocop:disable Metrics/ClassLength module SupplejackApi class UserSet include Mongoid::Document include Mongoid::Timestamps include ActionView::Helpers::SanitizeHelper include SupplejackApi::Concerns::Privacyable include SupplejackApi::Concerns::Taggable stor...
Ruby
app/models/supplejack_api/user_set.rb
DigitalNZ/supplejack_api
gpl-3.0
10,568
359
codeparrot/github-code
37cae1a95c23560304fdf4bc27b39674dee2e75dbc6bc759864f723b5f89d89b
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ---------------...
C++
solvers/incompressible/shallowWaterFoam/shallowWaterFoam.C
asimurzin/managedFlu
gpl-3.0
11,952
313
codeparrot/github-code
a1240c12837d36e35451ba8c9f5b60bf6bead7965acbf2b7511a7ff100a9a8a3
# -*- coding: utf-8 -*- # Copyright (c) 2002 - 2015 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing the debug thread. """ import bdb import sys from DebugBase import DebugBase class DebugThread(DebugBase): """ Class implementing a debug thread. It represents a thread in the pyth...
Python
DebugClients/Python/DebugThread.py
testmana2/test
gpl-3.0
3,920
135
codeparrot/github-code
fa08ecf3fd343fa40d5a84c6a1046802774e859d59893d5bb3a378fd814f9314
/* * This source is part of the * _____ ___ ____ * __ / / _ \/ _ | / __/___ _______ _ * / // / , _/ __ |/ _/_/ _ \/ __/ _ `/ * \___/_/|_/_/ |_/_/ (_)___/_/ \_, / * /___/ * repository. * * Copyright (C) 2015 Benoit 'BoD' Lubek (BoD@JRAF.org) * * This program is free sof...
Java
wear/src/main/java/org/jraf/android/simplewatchface/wear/app/settings/size/SizePickActivity.java
BoD/SimpleWatchface
gpl-3.0
5,057
135
codeparrot/github-code
933f3d390664229aca277d3bbc474ffec41c44c3207ff14f7fb5bdb52961482a
import greenfoot.*; /** * This class represents the "MAIN SCREEN" * * @author (Forkhead) * @version (1.0.0) */ public class MainScreen extends Screen { // instance variables - replace the example below with your own private IScreenHandler nextScreen = null; private SortingWorld world; private Lead...
Java
Java/MainScreen.java
SalmaanP/CMPE202-Team17
gpl-3.0
2,854
94
codeparrot/github-code
d66309fac603021dcc3189fea9818b9b7137d874df8635b444433d312decbe30
using System; using System.Linq; using System.Threading.Tasks; using MongoRepository; using Portal.DAL.Entities.Table; using Portal.DAL.Subscriptions; namespace Portal.DAL.Azure.Subscriptions { public class ClientRepository : IClientRepository { private readonly MongoRepository<ClientEntity> _collecti...
C#
Source/DAL/Portal.DAL.Azure/Subscriptions/ClientRepository.cs
clickberry/video-portal
gpl-3.0
2,161
82
codeparrot/github-code
528cf693903bf034edd4ac5bff7fd399cced129a5f141024598a5c91fd3c4ac4
package com.example.convertidor_mastered_; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.Gravity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import ...
Java
App/src/com/example/convertidor_mastered_/MainActivity.java
Man-gel/Android4
gpl-3.0
2,723
113
codeparrot/github-code
b90f84059c2d95cb58459b8327c2528b411487caef71fa714953b641e6906ddf
//===========================================================================// // Copyright (C) Microsoft Corporation. All rights reserved. // //===========================================================================// #include"mlrheaders.hpp" //#############################################...
C++
mclib/mlr/mlrshape.cpp
alariq/mc2
gpl-3.0
14,405
695
codeparrot/github-code
8ca7556ebdfaa653ec41ed0060ade3437654ebf5e62dd5860a7060ed82af7840
/* Copyright (C) 2010-2013 Jounayd Id Salah https://github.com/smogpill/dataspace. This file is part of the Dataspace project. Dataspace 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...
C++
src/core/io/coXMLSerializer.cpp
smogpill/dataspace
gpl-3.0
3,980
143
codeparrot/github-code
0de1b642b30831279c80b65dd2d09ff5aa501a1f9ba00130c06f88c75875fa8e
#include "file_helper.hpp" #include <algorithm> extern "C" { #include <dirent.h> } std::string get_extension(const std::string& filename, std::string::size_type& idx) { idx = filename.rfind('.'); std::string extension; if (idx != std::string::npos) extension = filename.substr(idx + 1); el...
C++
source/util/file_helper.cpp
TricksterGuy/bottomless-block-barrage
gpl-3.0
1,308
56
codeparrot/github-code
21e448162622d2de01a2398bcf548b2a7a771f1afefe087438a5fdc9207c77e7
/* * Copyright 2008-2011 NVIDIA Corporation * * 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 required by applicable...
C
tools/libm2s-cuda/cuda_inc/thrust/detail/internal_functional.h
vtselfa/m2s
gpl-3.0
12,415
504
codeparrot/github-code
86dd3def053207eb5193398a26ca23bea88f220145fa45b8737e1eabfbbb469f
package net.einsteinsci.betterbeginnings.items; import net.einsteinsci.betterbeginnings.ModMain; import net.einsteinsci.betterbeginnings.register.RegisterItems; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; publ...
Java
src/main/java/net/einsteinsci/betterbeginnings/items/ItemRoastingStickMallow.java
einsteinsci/betterbeginnings-MC1.7
gpl-3.0
1,464
51
codeparrot/github-code
d53949b311023267c5ba4af95d16e8a7df61a54fdac436baa077247c0b134706
/* Copyright 2017-2018 Will Winder This file is part of Universal Gcode Sender (UGS). UGS 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 opti...
Java
ugs-platform/DowelModule/src/main/java/com/willwinder/ugs/platform/dowel/DowelTopComponent.java
winder/Universal-G-Code-Sender
gpl-3.0
11,487
302
codeparrot/github-code
dbe4cc641cd5257771e01e2a63b0b6cacbac4bc2e7f81f97b4bf40ad36e61c28
/* * Copyright (C) 2017 Worldline, Inc. * * MultiChainJavaAPI code distributed under the GPLv3 license, see COPYING file. * https://github.com/SimplyUb/MultiChainJavaAPI/blob/master/LICENSE * */ package multichain.object; /** * @author Ub - H. MARTEAU * @version 2.0.1 */ public class AddressRecei...
Java
src/main/java/multichain/object/AddressReceived.java
SimplyUb/MultiChainJavaAPI
gpl-3.0
1,781
93
codeparrot/github-code
787482b2e59c6d02d80485ab06344bda263da658df23bb0b159e6170444daa83
/* 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 usefu...
C++
libraries/AP_GPS/AP_GPS.cpp
phoneguy/ardupilot
gpl-3.0
58,244
1,459
codeparrot/github-code
96391d9d454c011a438810909812302f4e4b204f8e013050bd13fd02f74ebbd9
/* * Copyright (C) 2015, Simon Fuhrmann * TU Darmstadt - Graphics, Capture and Massively Parallel Computing * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the LICENSE.txt file for details. */ #ifndef MVE_IMAGE_BASE_HEADER #define MVE_I...
C
DeepBlue/3D_reconstruction/ImageBasedModellingEdu/core/image_base.h
AIBluefisher/SfM
gpl-3.0
13,184
571
codeparrot/github-code
1d4e0dee2e2418d87c6fd95d6352e1419cd4a0afe7c63bafbcd31ba3aac811b2
/************************************************************************ * Copyright (C) 2018 Spatial Information Systems Research Limited * * 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,...
C++
src/ModelViewerAnnotator.cpp
richeytastic/FaceTools
gpl-3.0
3,533
109
codeparrot/github-code
1ae538fd2c78f6b5b6c49cc5070f154609b3a68bcbaa765645f6fc4befcc6909
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using RacePredictor.Db.Models; using System; using System.Collections.Generic; namespace RacePredictor.Service.Runners.Predict { //TODO: refactor public class RunnerQualityCalculator : IRunnerQualityCalculator { private readon...
C#
api/RacePredictor.Service/Runners/Predict/RunnerQualityCalculator.cs
orrshilon/RacePredictor
gpl-3.0
3,399
101
codeparrot/github-code
19eed4d214d68c794d098f4a8fd8b05d1a03a964e8639260654d7e3559aa1cc5
/******************************************************************************* * Copyright (C) 2015 Anton Gustafsson * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restricti...
Java
retinazer/src/test/java/com/github/antag99/retinazer/util/LongBagTest.java
antag99/retinazer
gpl-3.0
6,842
208
codeparrot/github-code
c954e82f47d9895ef08eb605a329c83a5a74c0856e21146cf6d20f2ca85e57c1
// // string_utils.cpp // ServerPlugIn // // Created by MikeRiy on 16/7/30. // Copyright © 2016年 MikeRiy. All rights reserved. // #include "string_utils.h" namespace StringUtil { std::string format(const char* fm, ...) { std::string ret; STR_FORMAT(1024); ret = buf; return...
C++
ServerPlugIn/com/string_utils.cpp
mikestrange/ServerPlugIn
gpl-3.0
873
52
codeparrot/github-code
4ac3e6200f1b91be41eba2ee35c7b483059b23a4791e8838d904fb12ce6079ab
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\/ M anipulation | ---------------...
C++
Foam/patches/r2.0.0/incompressible/turbulenceModel.H
alexey4petrov/pythonFlu
gpl-3.0
5,953
221
codeparrot/github-code
de0c5954a400bcfa42cd3685056c6db518f5cdce4cd1f0ad2f835560ed77c9d9
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> === * * Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org> * Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org> * * Tomahawk is free software: you can redistribute it and/or modify * it under the te...
C++
src/libtomahawk/infosystem/infoplugins/mac/adiumplugin.cpp
neycho/tomahawk
gpl-3.0
5,949
229
codeparrot/github-code
dca4b3338dbc9187027f6b90ee43f29c842a998fe5dbccfb3e2db60e539f53e3
/** * 冒泡排序:C 语言 * * @author skywang * @date 2014/03/11 */ #include <stdio.h> // 数组长度 #define LENGTH(array) ( (sizeof(array)) / (sizeof(array[0])) ) // 交互数值 #define swap(a,b) (a^=b,b^=a,a^=b) /* * 冒泡排序 * * 参数说明: * a -- 待排序的数组 * n -- 数组的长度 */ void bubble_sort1(int a[], int n) { int i,j; for (i=n-...
C
datastructs_and_algorithm-master/source/algrightm/sort/bubble/c/bubble_sort.c
seapub/SourceCode
gpl-3.0
1,145
87
codeparrot/github-code
8771664a11b9fbe5172269096b55d56eef40b6453c6797e56066f447df2f260a
<!DOCTYPE html><html lang="en" class="no-js"> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Unity - Manual: Size By Speed...
HTML
Manual/PartSysSizeBySpeedModule.html
rakuten/Uinty3D-Docs-zhcn
gpl-3.0
9,869
174
codeparrot/github-code
e240d2ac0ec8194d94b3029ac951d2e8e10014e9a1c0e9b29a8fe7e19058cf39
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.cobi.kggseq.entity; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Co...
Java
src/org/cobi/kggseq/entity/ReferenceGenome.java
mulin0424/cepip
gpl-3.0
40,961
941
codeparrot/github-code
560807f75ce07107f5cec9cc2d40f31b459e25d747ec765ce8390e1575469d93
/* * Author: Bob Limnor (info@limnor.com) * Project: Limnor Studio * Item: Visual Expression Display and Edit * License: GNU General Public License v3.0 */ /* * All rights reserved by Longflow Enterprises Ltd * * Formula Editor */ using System; using System.Collections.Generic; using System...
C#
Source/MathExp/CodeValue.cs
Limnor/Limnor-Studio-Source-Code
gpl-3.0
8,134
216
codeparrot/github-code
e8c9724509496796ce2906e1532efdc1dba08b83a5fe6f99c053995d70a0e542
@extends('layouts.master') @section('header-title') Edit Course @stop @section('stylesheets') <link rel="stylesheet" href="{{ asset('plugins/datatables/dataTables.bootstrap.css')}}"> <link rel="stylesheet" href="{{asset('plugins/dropzone/dropzone.min.css')}}"> @stop @section('content') <!-- Content Wrapper. Contains ...
PHP
v2/admin/resources/views/courses/edit.blade.php
ntja/smartschool
gpl-3.0
4,301
114
codeparrot/github-code
d0f037b74aae84a7ae5584f8753ba1995291bd974920227f2dd6322c3decaa1a
<?php namespace library\pdf; class PostTreeFilterPostponed extends PreTreeFilter { var $_driver; function __construct(&$driver) { $this->_driver =& $driver; } function process(&$tree, $data, &$pipeline) { if (is_a($tree, 'library\pdf\GenericContainerBox')) { for ($i=0; $i<count($tree->content...
PHP
library/pdf/PostTreeFilterPostponed.php
fearless359/simpleinvoices_zend2
gpl-3.0
783
31
codeparrot/github-code
0b3b24f763b57b4669b92814f201bd89ba40edc3c1d3d72ff1f4b182041506f4
import { expect } from "chai"; import { adsr } from "../adsr"; describe("adsr", () => { describe("attack", () => { it("returns value of 100 and phase of 'decay' given low attack", () => { let keyPressed = true; let elapsed = 10; let adsrValues = { attack: 0 }; let previous =...
JavaScript
src/js/library/audio-api/__tests__/adsr.test.js
MattBridgeman/drum-machine
gpl-3.0
4,328
157
codeparrot/github-code
906e4bb056deaa9d3ba724e87c12c8adea72823635b3ac410717b3446edff76a
// This file is part of TeslaDriver. // // Copyright (C) 2016 Kurt Skauen <http://kavionic.com/> // // TeslaDriver 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...
C
Firmware/TeslaDriver/TeslaDriver/AccessPointSelector.h
kavionic/TeslaDriver
gpl-3.0
1,471
46
codeparrot/github-code
d2ed667ef978ad556efadd65a1a69bc03be9bf850a6d9057d48d88caf67bd1a2
#region Copyright & License Information /* * Copyright 2007-2016 The OpenRA Developers (see AUTHORS) * This file is part of OpenRA, which is free software. It is made * available to you under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of * the Licen...
C#
OpenRA.Game/Traits/Player/PlayerResources.cs
RailTracker/OpenRA
gpl-3.0
5,512
223
codeparrot/github-code
e153b97a710a3673263db2e194bf4b5767c35fbe884cddf8c61e1bb32c56b440
#ifndef Trace_H #define Trace_H #include <stddef.h> #include <vector> #include <ostream> #include "RbVector.h" #include "Simplex.h" #include "Cloneable.h" #include "IsDerivedFrom.h" #include "RbException.h" #include "Serializer.h" namespace RevBayesCore { class Serializable; class AbstractTrace : public Cloneab...
C
src/core/analysis/mcmc/output/Trace.h
revbayes/revbayes
gpl-3.0
6,270
210
codeparrot/github-code
3904a120d0ff8c579e11f0d5ae7f494b0bf3754a5aaccc6aebe556edc44c0a90
""" AIRLINE RESERVATION SYSTEM DEVELOPERS Stephen Tafoya Ryan Hamilton **** All comments will have ST or RH for **** **** Stephen Tafoya or Ryan Hamilton **** GUI CREATION FILE - CREATES AND HANDLES GUI ELEMENTS """ # class WindowObject() ############################### # IMPORT STATEMENTS # This...
Python
Program/gui.py
YOUR-WORST-TACO/AdvPythonProject
gpl-3.0
34,156
852
codeparrot/github-code
36b0917c1a4c3e21100bb134f191a2da113d1c7f5294b943af2b1cf774162d45
# -*- coding: utf-8 -*- import re from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class FileStoreTo(SimpleHoster): __name__ = "FileStoreTo" __type__ = "hoster" __version__ = "0.07" __status__ = "testing" __pattern__ = r'http://(?:www\.)?filestore\.to/\?d=(?P...
Python
module/plugins/hoster/FileStoreTo.py
fzimmermann89/pyload
gpl-3.0
1,290
41
codeparrot/github-code
0f483b893d7d80f09ae11f35ca7edbd1f9aa6be03d1e37fbe4b23c94bc2068f2
#ifndef RADIO_H_F8ULXMAI #define RADIO_H_F8ULXMAI #ifdef __cplusplus extern "C" { #endif #include <stdlib.h> #include <stdint.h> #include "types.h" typedef struct Radio { // status uint8_t transmitting; uint8_t receiving; // options radio_time pulse_length; radio_time tolerance; uint8_t transmit_repeat; ...
C
radio.h
wilhelmmatilainen/radio
gpl-3.0
1,354
66
codeparrot/github-code
a8dc8035212a878ed528e14edb278b73b813705116078deb44b857da07d78ba9
/** * This file is part of Graylog Anonymous Usage Statistics Plugin. * * Graylog Anonymous Usage Statistics Plugin 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/org/graylog/plugins/usagestatistics/dto/elasticsearch/ClusterHealth.java
Graylog2/graylog-plugin-anonymous-usage-statistics
gpl-3.0
2,838
75
codeparrot/github-code
ac92ca71d0df9770b8061dd456a19c5bc4a0250b918b551a46bca45ba8e2bc6c
""" Permissions to use with the rest_framework_serializer_field_permissions.field classes: class PersonSerializer(FieldPermissionSerializerMixin, serializers.ModelSerializer): family_names = fields.CharField(permission_classes=(IsAuthenticated(), )) given_names = fields.CharField(permission_classe...
Python
rest_framework_serializer_field_permissions/permissions.py
InterSIS/django-rest-serializer-field-permissions
gpl-3.0
1,438
54
codeparrot/github-code
f044e7571250bc8a4deb8856144638548b1d2428cd5fdda3f800ca11875a9cc4
<? spl_autoload_register(function($cls) { /** @noinspection PhpIncludeInspection */ require_once "modules/" . str_replace("\\", "/", $cls) . ".php"; }); define("KEY_ACCESS_TOKEN", "userAccessToken"); define("KEY_AUTH_KEY", "authKey"); define("KEY_SALT", "salt"); define("KB", 1024); define("MB", 1024 * KB)...
PHP
functions.php
vladislav805/APIdog
gpl-3.0
2,097
87
codeparrot/github-code
cbd40841e0039815feff25e4aec038296bae7a1d3ed8ff3d5b7787cc48618088
#ifndef __ANSIGL_ACHAR_H__ #define __ANSIGL_ACHAR_H__ /* * achar.h * * Defines an ANSI-enabled "char". */ #include <string> #include "color.h" #include "uchar.h" namespace AnsiGL { // // Default Color Codes // // Color codes are easily hand-generated via a typeable escape sequence. // astring assignments...
C
src/AnsiGL/achar.h
nicrohobak/AnsiGL
gpl-3.0
8,979
330
codeparrot/github-code
9407429a73bd35cc93ab6c1a8b27204280f212f69b0549b2cc6ac90c2bd46864
/* * linux/arch/m32r/platforms/usrv/io.c * * Typical I/O routines for uServer board. * * Copyright (c) 2001-2005 Hiroyuki Kondo, Hirokazu Takata, * Hitoshi Yamamoto, Takeo Takahashi * * This file is subject to the terms and conditions of the GNU General * Public License. See th...
C
arch/m32r/platforms/usrv/io.c
williamfdevine/PrettyLinux
gpl-3.0
5,811
280
codeparrot/github-code
faca6da9c357d67d88da962dea665bbd761bdbfc1ed19153d0ed372c7c837ef3
<!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> WCSNLEN(3)</title> </head...
HTML
man/wcsnlen.3.html
fusion809/fusion809.github.io-old
gpl-3.0
3,131
107
codeparrot/github-code
4a336a5f94a760317e572d9478ccc5b0e763068974ba6d2bd3766587461e4bf5
from Serial import * R = Serial("RxRxPx", '', Matrix([['x','x','0'],['y','y','x']]).T) n_mot = 2 mot = [Motor("mot"+str(i+1),str(R.dof+i+1)) for i in range(n_mot)] R.StaticBal = solve(R.gh_, R.lg) R.Mh_sb_ = simplify(R.Mh_.subs(R.StaticBal)) R.vh_sb_ = simplify(R.vh_.subs(R.StaticBal)) R.gh_sb_ = simplify(R.gh_.subs...
Python
Robotics/RxRxPx.py
mrcouts/Nyquist-Attack
gpl-3.0
1,308
52
codeparrot/github-code
17a74b5d89f79855a7f3523fef8dcc202e3795fbc34cdfb220f2de0f73d208a1
var tasksLength; var sections; var currentCycle; var selectedUrl, selectedAction; $(document).ready(function() { sections = $('#sectionsForChecking').text().split(','); // Progress bar tasksLength = sections.length; $(".progressbar").progressbar({ max: tasksLength }); // Event for validate button in...
JavaScript
marlo-web/src/main/webapp/crp/js/capDev/capDevSubmit.js
CCAFS/MARLO
gpl-3.0
6,453
203
codeparrot/github-code
6169c470948b6195525e849e0d7babb0af6330f736b0fa31648aa764115d996e
""" Compute class """ import numpy as np import matplotlib matplotlib.use('Agg') import pylab as pl #TODO: Take care of the looks of these plots class Compute(object): """ Abstract compute class. It will never be used, but is parent of all the different computes. """ def __init__(self): """ Construc...
Python
pylammps/Computes/Compute.py
pabloalcain/lammps-python
gpl-3.0
1,563
66
codeparrot/github-code
8c898c1f198880a8416e4a6df01515c7e123a46b5a989f6561cfa88db823fb44
package com.bsdsolutions.sanjaydixit.p2_popular_movies_app; import com.google.gson.GsonBuilder; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import java.lang.reflect.Type; import java.text.Par...
Java
app/src/main/java/com/bsdsolutions/sanjaydixit/p2_popular_movies_app/TmdbHelper.java
sanjaydixitb/P2-Popular-Movies-App
gpl-3.0
2,014
58
codeparrot/github-code
125559fa030020926aa4faf3511e7058bde7d2e343649077f6da6b9d96344eef
var express = require('express'); var http = require('http'); var feedutil = require('./feedutil.js') var router = express.Router(); Feedback = require('../models/feedback'); router.get('/feedbacks/:SurveyId', function(mainreq, mainres, mainnext) { var surveyId = mainreq.params.SurveyId; // Get all fee...
JavaScript
app/routes/feedback.js
websteroy/esiefeed
gpl-3.0
1,441
65
codeparrot/github-code
1691db68d794840e493406134c36139ea976805c6ae53445d68ecdcb1ff713af
use std::collections::HashMap; use std::iter; use world; use entity::{Entity}; use components; use component_ref::{ComponentRef, ComponentRefMut}; use stats; use world::{WorldState}; /// Entity component system. #[derive(RustcDecodable, RustcEncodable)] pub struct Ecs { next_idx: usize, reusable_idxs: Vec<usiz...
Rust
world/src/ecs.rs
rsaarelm/phage
gpl-3.0
6,396
199
codeparrot/github-code
3d367ae92b787336ee62d4918c80d7ac874227f61eede07ca6d6c86e99c347c1
function loaderDisplay(status) { if (status == "beforeSend") { $("#loader").show(); $("#loader").fadeIn("slow"); $("#import-dataset-btn").prop('disabled', true); $("#import-dataset-btn").html('Importing'); $(".statusText").hide(); } else if (status == "success") { ...
JavaScript
static/dataset_importer/argument_validators.js
texta-tk/texta
gpl-3.0
3,187
77
codeparrot/github-code
ebef5ecbb40848539c31e71b4c14b38bc4bf7d0db4724bac2bff75ef3bb13b95
FIND_PATH(OPENSSL_INCLUDE_PATH NAMES openssl/ssl.h PATHS ${TOOLCHAIN_HEADER_PATH} /opt/local/include /sw/include /usr/include /usr/local/include /usr/local/ssl/include NO_DEFAULT_PATH) IF($ENV{COMPILE_STATIC} MATCHES "1") SET(CMAKE_FIND_LIBRARY_SUFFIXES_OLD ${CMAKE_FIND_LIBRARY_SUFFIXES}) SET(CMAKE...
CMake
builders/cmake/cmake_find_modules/Find_openssl.cmake
pas-jim/crtmpserver-knife
gpl-3.0
3,650
136
codeparrot/github-code