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 |
|---|---|---|---|---|---|---|---|---|
048f94a879e7afb37f096c3dc72110ed576f76e69603f092bbaee053ab1330dc | using SITC.Tools;
using UnityEngine;
namespace SITC.Controls
{
[RequireComponent(typeof(Entity), typeof(AlertCone))]
public class InputHandler : SitcBehaviour
{
#region Data structures
public enum EDirection
{
Right,
Left,
Up,
Down
... | C# | Someone in the Crowd/Assets/Scripts/Controls/InputHandler.cs | corndl/SomeoneInTheCrowd | gpl-3.0 | 5,886 | 195 | codeparrot/github-code |
e6daf754c8b03b8797255380045ab9d1b256cbf150f4aa50fe7e5f4f438a32e7 | /*
* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2010 Free
* Software Foundation, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* This file is part of GnuTLS.
*
* The GnuTLS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as publ... | C | lib/gnutls_cipher_int.h | Chronic-Dev/gnutls | gpl-3.0 | 1,768 | 60 | codeparrot/github-code |
9f04e1406a66e4ff8efce48a2c2e6df6b6fd24c4faf6344c2ac4aeefbe15e413 | package net.minecraft.server;
public class PathfinderGoalHorseTrap extends PathfinderGoal {
private final EntityHorse a;
public PathfinderGoalHorseTrap(EntityHorse entityhorse) {
this.a = entityhorse;
}
public boolean a() {
return this.a.world.isPlayerNearby(this.a.locX, this.a.locY,... | Java | src/main/java/net/minecraft/server/PathfinderGoalHorseTrap.java | bergerkiller/SpigotSource | gpl-3.0 | 3,225 | 69 | codeparrot/github-code |
a0dff95c7070b051ee02975dcb4917ebaa8fa9fd425f6612637770727248a85b | /*
* WANDORA
* Knowledge Extraction, Management, and Publishing Application
* http://wandora.org
*
* Copyright (C) 2004-2016 Wandora Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundat... | Java | src/org/wandora/utils/Textbox.java | wandora-team/wandora | gpl-3.0 | 17,395 | 586 | codeparrot/github-code |
0acf17df5ec04977463e6ad7775d3401eb0ce3209ce730a1d12945e8116b2643 | #include "ulog_parameters_dialog.h"
#include "ui_ulog_parameters_dialog.h"
#include <QTableWidget>
#include <QSettings>
#include <QHeaderView>
ULogParametersDialog::ULogParametersDialog(const ULogParser& parser, QWidget* parent)
: QDialog(parent), ui(new Ui::ULogParametersDialog)
{
ui->setupUi(this);
QTableWidg... | C++ | plugins/DataLoadULog/ulog_parameters_dialog.cpp | facontidavide/SuperPlotter | gpl-3.0 | 3,963 | 113 | codeparrot/github-code |
9510f942402de0527d8d692edcdf73fd9732d3c841b71b8732d07e973308d53e | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" ... | HTML | frameworks/base/docs/html/reference/com/google/android/gms/common/data/package-summary.html | s20121035/rk3288_android5.1_repo | gpl-3.0 | 27,317 | 960 | codeparrot/github-code |
2dd995e33be4672bf31954036864c87ce4ae2e416feda89cd203fe1300dca1c9 | var moment = require('moment');
module.exports = {
getDate: function(){
return moment().format("YYYY-MM-DD");
},
getTime: function(){
return moment().format("hh:mm:ss A");
},
getDateTime: function(){
return moment().format("YYYY-MM-DD hh:mm:ss A");
},
getFriendlyDate: function(date){
if(!date){
date ... | JavaScript | helpers/date-time.js | NJLaPrell/home | gpl-3.0 | 1,036 | 44 | codeparrot/github-code |
a2351719f6ca3d2181a31342799bb7adcbc283f640bc2352ab0ba0f8b8c3258f | package cn.nukkit.level.format.anvil;
import cn.nukkit.Server;
import cn.nukkit.level.Level;
import cn.nukkit.nbt.NBTIO;
import cn.nukkit.scheduler.AsyncTask;
import cn.nukkit.tile.Spawnable;
import cn.nukkit.tile.Tile;
import cn.nukkit.utils.Binary;
import java.io.IOException;
import java.nio.ByteBuffer;
import java... | Java | src/main/java/cn/nukkit/level/format/anvil/ChunkRequestTask.java | LinEvil/Nukkit | gpl-3.0 | 4,437 | 134 | codeparrot/github-code |
1c9a30ab02b2913a65f5158cad8998b143cb78a3f410c68bf9a523e65119dfc8 | package com.SecUpwN.AIMSICD.activities;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
i... | Java | app/src/main/java/com/SecUpwN/AIMSICD/activities/DebugLogs.java | tobykurien/Android-IMSI-Catcher-Detector | gpl-3.0 | 12,286 | 340 | codeparrot/github-code |
2ad0c17c8bfce30501779b1269ddb9771e0fce6b1a9397ece4249b6d8d2abd63 | <?php
namespace App\Http\Controllers\Admin;
use App\Category;
use App\Article;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Mockery\CountValidator\Exception;
class CategoryController extends Controller
{
public function index()
{
return view('admin.cat... | PHP | app/Http/Controllers/Admin/CategoryController.php | netcan/HFUT_ChemLab | gpl-3.0 | 2,652 | 92 | codeparrot/github-code |
254c70976b23e47870d7f5cd4cd6f34dd6643633542538a3afaf0238d1c62e2b | /*
(C) 2014 by Michael Neuendorf <michael@neuendorf-online.de>
This file is part of OmmiKomm.
OmmiKomm 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) a... | C++ | src/TypingState.cpp | Mik-/ommikomm | gpl-3.0 | 3,890 | 130 | codeparrot/github-code |
2ad35cef015457032fa0c915830bd68c9d7e3ff2016b7aa26a95d566db5b738a | package de.htwberlin.selabs.ssme.operations;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.operations.AbstractOperation;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core... | Java | de.htwberlin.selabs.ssme/src/de/htwberlin/selabs/ssme/operations/VariableBlockChangePositionOperation.java | m-toussaint/SME | gpl-3.0 | 2,194 | 66 | codeparrot/github-code |
949c7693834936174c198ec11be74ac7d3161f60e004403ec0012b1ec42fbd1e | #pragma once//☀SDX_STG
namespace SDX_STG
{
using namespace SDX;
class Unit;
class Shot;
class Enemy;
class Item;
class IStage : public IScene
{
public:
int timer = 0;
virtual Rect* GetMoveArea() = 0;//移動可能な範囲を返す
virtual Rect* GetLiveArea() = 0;//生存可能な範囲を返す
... | C | IStage.h | mrdagon/SDX_STG | gpl-3.0 | 1,056 | 44 | codeparrot/github-code |
3d6d321095b80893e8ce005d6bc065468b24df28f4b572f8ca6c87a92be41323 | /*
* MediathekView
* Copyright (C) 2008 W. Xaver
* W.Xaver[at]googlemail.com
* http://zdfmediathk.sourceforge.net/
*
* 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 t... | Java | src/main/java/mServer/tool/MserverDaten.java | mediathekview/MServer | gpl-3.0 | 6,032 | 173 | codeparrot/github-code |
0c4ae0c87637d1bd29c05d53bc330f4bbfdb6cc8019529334a3346a0f1245c7f | /*
* context.h
*
* Created on: Feb 12, 2014
* Author: wilbur
*/
#ifndef CXX_PEG_CONTEXT_H_
#define CXX_PEG_CONTEXT_H_
#include <vector>
#include <map>
#include "rule.h"
namespace cxx {
namespace peg {
class _context : public context {
public:
explicit _context(const expr& ws);
void add_node(_node* ... | C | context.h | zigzed/peg | gpl-3.0 | 1,012 | 54 | codeparrot/github-code |
78b4d9180fb9d30681b7526fb40aa6bc9f4cd9c8ac0115f29177471a44a2f9b3 | /* Mume Reader - a full featured reading environment.
*
* Copyright © 2012 Soft Flag, Inc.
*
* 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... | C | src/foundation/mume-scrollbar.h | tomnotcat/mume | gpl-3.0 | 2,311 | 77 | codeparrot/github-code |
a1c786ca2a51c3c89a96556cc8ec175014a110ae70e56f63c20495fec6ac0784 | package org.royaldev.royalcommands.rcommands;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.royaldev.royalcommands.RUtils;
import org.... | Java | src/org/royaldev/royalcommands/rcommands/CmdRepair.java | PlugMania/Commands | gpl-3.0 | 2,865 | 72 | codeparrot/github-code |
9d7d2df6445463a5000946b7463c45306d310712f2451c48db558608bfc723d8 | # Report.pm: prepare error messages and translate strings.
#
# Copyright 2010, 2011, 2012 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of th... | Perl | tp/Texinfo/Report.pm | cgwalters/texinfo-git-mirror | gpl-3.0 | 17,222 | 542 | codeparrot/github-code |
df8c24d4e389ed8d090935527ec12aa98fa62ae8a50bb183156b9c9340f00a03 | package cuina.editor.core;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Objects;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.vi... | Java | CuinaEclipse/cuina.editor.core/src/cuina/editor/core/PreviewPropertySection.java | TheWhiteShadow3/cuina | gpl-3.0 | 7,217 | 303 | codeparrot/github-code |
17799e5ebdc27887d578928a7c4e3f37044e030de0da9847bd451a4974225b15 | function clicked(id) {
if (!isLogin) return;
var tile = document.getElementById(id);
if (currentColor == tiles.color[id]) {
tile.className = "tile gray";
tiles.color[id] = "gray";
} else {
if (currentColor == "red") {
tile.className = "tile red";
tiles.color[id] = "red";
} else if (currentColor == "bl... | JavaScript | public/js/main.js | ShinCurry/Tile-Play | gpl-3.0 | 6,435 | 260 | codeparrot/github-code |
fab59996254ba7be03dd4ef050465532fdbf6670d4d8129924d9fac295ed6c2b | package com.xxl.job.core.log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by xuxueli on 17/4/28.
*/
public class XxlJobLogger {
private static Logger logger = LoggerFactory.getLogger("xxl-job lo... | Java | xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobLogger.java | dupengcheng/xxl-job | gpl-3.0 | 2,064 | 63 | codeparrot/github-code |
20f6552f25432ff492cd03cff57f588000dd8256e38dc110c58c9f4a9b00fca6 | 'use strict';
const path = require('path');
const fs = require('fs');
const electron = require('electron');
const app = electron.remote.app;
class electronConfig {
constructor() {
//console.log('electronConfig');
let dataPath = app.getPath('userData');
let appPath = app.getAppPath();
//console.log(app... | JavaScript | app/js/config.js | pboymt/school-idol-board | gpl-3.0 | 1,890 | 59 | codeparrot/github-code |
53e33d44986a160ec34b44caecffd10b6ec10007dbff7a58cc8cc56a5eeff59c | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <string.h>
#include "hmm.h"
int main (int argc, char **argv){
int c;
char *hmm_file, *seq_file, *sig1_file, *sig2_file, *out_file, *phmm_dir, *out_dir, *hmmerv;
int debug=1;
FILE *fp;
HMM hmm;
int i,j;
int... | C | mgescan/nonltr/hmm/main.c | MGEScan/mgescan | gpl-3.0 | 1,614 | 90 | codeparrot/github-code |
7845b74e5f29be2e3257f84ebbcf8b0ef03b6f191b935dd1bbbb3021c0b8c64d | var ssb_config = {
bid_url: 'http://ssb.all-that-is-interesting.com/ssb/',
};
var ssb_client = function() {
var bid_request_id = 100;
var br_map = {};
return {
// [{ tagid: <placement>, sizes: [[<width>, <height>], [<width>, <height>], ...], placements: { <provider>: <placement_data> } }, ...]
bid: function(a... | JavaScript | client-example.js | kitwestneat/OpenS2SBid | gpl-3.0 | 1,693 | 76 | codeparrot/github-code |
e5e1d2a18b9358b1badc1a21211447cde8f8d1362e491ac74bce44f060f4c642 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle... | PHP | tag/lib.php | arborrow/moodle-patch_jsea | gpl-3.0 | 39,936 | 1,096 | codeparrot/github-code |
60fa3dfe5f5dd3734b8f1ec4874608c98c9f91dd7f818800a362c5eb10e81339 | define(['knockout', 'encasapi', 'model/transaction', 'common'],
function (ko, api, transactionModel, common) {
var accountAdminModel = {
accounts : ko.observableArray(),
add_fields : {
firstname : ko.observable(),
lastname : ko.observable(),
... | JavaScript | static/js/model/admin.js | hugoatease/encas | gpl-3.0 | 4,661 | 140 | codeparrot/github-code |
1b03c733f4fa5a32830d74f04c3fe30a66f6a9d9eb56f54f58a895fd5bc77f76 | /*
* Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved.
*/
package com.fr.design.designer.creator;
import com.fr.base.BaseUtils;
import com.fr.design.designer.beans.AdapterBus;
import com.fr.design.designer.beans.ComponentAdapter;
import com.fr.design.designer.beans.events.DesignerEditor;
import com.fr.des... | Java | designer_form/src/com/fr/design/designer/creator/XCreator.java | fanruan/finereport-design | gpl-3.0 | 12,739 | 659 | codeparrot/github-code |
a013cfb6445e67d7fa54b89ebcdc2d989a25989ff5f3924e85356a344c20b0bc | // * This file is part of the COLOBOT source code
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
// * Copyright (C) 2012, Polish Portal of Colobot (PPC)
// *
// * This program is free software: you can redistribute it and/or modify
// * it under the terms of the GNU General Public License as pub... | C | src/graphics/core/light.h | OdyX/colobot | gpl-3.0 | 2,709 | 102 | codeparrot/github-code |
6626cfdca828c7c0dec60a23fc4f3e30ea6c2913e07b7766e49c211070e1df56 | /************************************************************************
* Copyright (C) 2019 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/Action/UndoState.cpp | richeytastic/FaceTools | gpl-3.0 | 3,281 | 106 | codeparrot/github-code |
f899d6177d8e8313170551ba23ff2dd8f174bf09547465c69d2cb8e8509d8050 | /****************************************************************************
* Open RPG Maker 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 ... | C++ | src/editor/configureevent_mapconditionalbranch.cpp | timdetering/openrpgmaker | gpl-3.0 | 6,358 | 173 | codeparrot/github-code |
84489194af82fbd833b02a82a01c7605e87d04f601ed7d252ccc70c4e9dcd786 | # -*- coding: utf-8 -*-
from itertools import product, imap
import copy
import math
import string
import multiprocessing
import platform
import numpy as np
import pandas as pd
from pandas.tools.plotting import radviz
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from matplotlib.colors import ColorConverte... | Python | pygauss/analysis.py | chrisjsewell/PyGauss | gpl-3.0 | 44,913 | 1,084 | codeparrot/github-code |
3b908554be81c2e79ba30d8860da6feb533137259258f5541c206bc9f5c2ff09 | /**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @lic... | JavaScript | html/commun/src/js/syntaxhighlighter/scripts/shBrushJava.js | legagneur-matthieu/DevWebFramework | gpl-3.0 | 2,270 | 60 | codeparrot/github-code |
4bf4be8327313dd03306f68f0eaea269ed19686167ffab0819af510c61baaf39 | //
// Created by Aman LaChapelle on 1/25/17.
//
// homeAutomation
// Copyright (c) 2017 Aman LaChapelle
// Full license at homeAutomation/LICENSE.txt
//
/*
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 Soft... | C++ | messaging/include/log.hpp | bzcheeseman/homeAutomation | gpl-3.0 | 7,298 | 228 | codeparrot/github-code |
a47b01a8e53445a10bf879cca05ec77b4e42f56800c851c5afe2f431a3e112aa | /*!
\mainpage openchronos-ng (new generation)
\section contact_sec Contact
Project website: http://openchronos-ng.sourceforge.net
IRC: \#openchronos @ chat.freenode.net
<i>for mailing list, bug tracker and forum please go to the project website, you will find that info there.</i>
\section devs_sec ... | C | openchronos.h | nechutny/openchronos-ng-elf | gpl-3.0 | 2,621 | 52 | codeparrot/github-code |
657e5d58cc24c68498a89b3eaeed044d95e1b24b3329ac2f71d46e2947e209c1 | //
// ReceiveMessageState.cs
//
// Authors:
// Alan McGovern alan.mcgovern@gmail.com
//
// Copyright (C) 2010 Alan McGovern
//
// 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 w... | C# | MonoTorrent/MonoTorrent.Client/NetworkIO/ReceiveMessageState.cs | leekyeongtae/TotalManagerment | gpl-3.0 | 3,189 | 97 | codeparrot/github-code |
9cdb32817b86b490e070055e95be12aafc8b20ae9e35c1411b820ca0b341928d | //
// bowtie2convert.cpp
// swalo
//
#include <iostream>
#include <string>
#include <limits>
#include <vector>
using namespace std;
#include "cgal.h"
#include <math.h>
#define MAX_REC_LEN 4096
#define MAX_READLENGTH 1000
#define MAX_NAMELENGTH 1000
struct SAM
{
char qname[MAX_NAMELENGTH];
int flag;
char rname... | C++ | bowtie2convert.cpp | atifrahman/SWALO | gpl-3.0 | 24,896 | 1,196 | codeparrot/github-code |
99afccc681ea9d9159ae8ee3c33cc57a042808eaedaa7584131555c130638f46 | package com.nearsoft.httpclientexample.service;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.reflect.TypeToken;
import com.nearsoft.httpclientexample.model.Mentor;
import com.nearsoft.httpclientexample.mode... | Java | 2017/oct/14/http_lesson/HttpClientExample_jmsalcido/app/src/main/java/com/nearsoft/httpclientexample/service/AndroidSchoolHttpServiceImpl.java | Nearsoft/androidschool | gpl-3.0 | 3,600 | 101 | codeparrot/github-code |
507eb0f26b2a4fe81ed1c075fb47d54cf6f375d8448bc3fc818284b15f8781f7 | /*************************************************************************
* Copyright 2009-2013 Eucalyptus Systems, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3 of the ... | Java | clc/modules/msgs/src/main/java/com/eucalyptus/entities/Entities.java | grze/parentheses | gpl-3.0 | 46,425 | 1,266 | codeparrot/github-code |
6f923cec5447ef503dfb82eb8357ad44e744efa39429e174f6b00a05fc0e82f2 | <?php /* Smarty version Smarty-3.1.19, created on 2016-06-17 11:06:27
compiled from "C:\xampp\htdocs\joyeria\themes\default-bootstrap\product.tpl" */ ?>
<?php /*%%SmartyHeaderCode:225475764200316a2d5-89978249%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperti... | PHP | cache/smarty/compile/9c/92/83/9c9283ed91917d74eea2cfb7f1594c649b2ea53a.file.product.tpl.php | JeanMarsUltor/j | gpl-3.0 | 97,568 | 1,134 | codeparrot/github-code |
e6ba4a7ae248f6a20b4c3c6051c7453ce4a66275763937dbd231770f70c52f01 | /*
* This file is part of EasyRPG Player.
*
* EasyRPG Player 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.
*
* EasyRPG Player... | C++ | src/game_interpreter_map.cpp | scurest/Player | gpl-3.0 | 24,729 | 850 | codeparrot/github-code |
848e772af34ff72afc1532b123f3726ce93faf7bd8105cec2a30376777503a99 | /*
* java-math-library is a Java library focused on number theory, but not necessarily limited to it. It is based on the PSIQS 4.0 factoring project.
* Copyright (C) 2018 Tilman Neumann (www.tilman-neumann.de)
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU Gen... | Java | symja_android_library/matheclipse-gpl/src/main/java/de/tilman_neumann/jml/factor/siqs/sieve/DoubleBlockSieve.java | axkr/symja_android_library | gpl-3.0 | 14,789 | 404 | codeparrot/github-code |
f4842cc856b756c65512d1a5f921afae5faf0ae651e1b194210d5e32aff44286 |
#include <R.h>
#include <Rdefines.h>
#include "dc_spa.h"
SEXP R_dc_solve(SEXP A, SEXP b, SEXP w, SEXP neq, SEXP tol, SEXP maxiter, SEXP x){
PROTECT(A);
PROTECT(b);
PROTECT(w);
PROTECT(neq);
PROTECT(tol);
PROTECT(maxiter);
PROTECT(x);
SEXP dim;
double *xx = REAL(x);
PROTECT(dim = ge... | C | pkg/src/R_dc_spa.c | markvanderloo/supral | gpl-3.0 | 1,433 | 68 | codeparrot/github-code |
df06f679b44c1a8273feede00f0982cdbaff25aec4140c9e815db3971db7c49b | // Copyleft 2015 Chris Korda
// 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 any later version.
/*
chris korda
revision history:
rev date co... | C | trunk/TripLightView.h | victimofleisure/TripLight | gpl-3.0 | 6,097 | 207 | codeparrot/github-code |
eadc03a5e18841dafa2f00fe3f4dac3ccc0769a92d2b78af22a3036df3937162 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
# #############################################################################
# ################################ Notes ##################################
# #############################################################################
"""
1.... | Python | democratos/CreateYourLaws/dl_law_codes/download_codes.py | denisjul/democratos | gpl-3.0 | 19,152 | 502 | codeparrot/github-code |
5407a9ae26f31aa7806deb47d109d4f2f55cdda938009bc4a111ac7476e9cbe6 | /*
* Copyright (c) 2016 Helmut Neemann
* Use of this source code is governed by the GPL v3 license
* that can be found in the LICENSE file.
*/
package de.neemann.digital.builder.circuit;
import de.neemann.digital.analyse.DetermineJKStateMachine;
import de.neemann.digital.analyse.ModelAnalyserInfo;
import de.neeman... | Java | src/main/java/de/neemann/digital/builder/circuit/CircuitBuilder.java | hneemann/Digital | gpl-3.0 | 33,597 | 804 | codeparrot/github-code |
98a940081c056d802d641720ee63b6997921c27737f9a11f99d8ee92a9bd408b | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reactive.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Telegram.Td.Api;
using Unigram.Collections;
using Unigram.Common;
using Unigram.Converters;
using Unigram.ViewModels;
using Unigram.ViewModels.Setti... | C# | Unigram/Unigram/Controls/Views/UsersSelectionView.xaml.cs | ikarago/Unigram | gpl-3.0 | 10,921 | 319 | codeparrot/github-code |
51f2716aa36bea573ee229f89476d87deb62db258155c2b4c92333f495399753 | /*
* 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 SOAPServer;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.... | Java | Conpartir-war/src/java/SOAPServer/SOAPServiceClient.java | grzegorzbrze/Conpartir0.2 | gpl-3.0 | 33,536 | 780 | codeparrot/github-code |
7748ad27d2bf47046c2bcefdbfeee382a96c1df676dd0d67cc10bde2985029a2 | from time import clock
# Actual Sum
def SommePartielle (L, a, b) :
s = 0
for i in range (a, b+1) :
s += L[i]
return s
# Partial Sum
def SommesPartielles_1 (L) :
S = []
for i in range (0, len(L)) :
S.append ( SommePartielle (L, 0, i) )
return S
# Partial Sum
de... | Python | Info/TPs/2016-11-22.py | tqdv/info-lstl | gpl-3.0 | 4,210 | 176 | codeparrot/github-code |
e8bdb7bda4dd4297568a01eb12b2ea792d4a86b28e6b3546c6be5b75d4fdcbef | #include "qabstracttreemodel.h"
QAbstractTreeModel::QAbstractTreeModel(QObject *parent): QAbstractItemModel(parent)
{
}
void QAbstractTreeModel::setRoot(QTreeItem* root)
{
m_root = root;
}
int QAbstractTreeModel::columnCount(const QModelIndex & /* parent */) const
{
return m_root->columnCount();
}
QVariant ... | C++ | qabstracttreemodel.cpp | luxiaodong/UIDesigner | gpl-3.0 | 5,009 | 199 | codeparrot/github-code |
c35bd4c04e81ae3ff2e9334260ce008917b0068253b9d4942782f49cdc29f673 | //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "glquake.h"
#include "sys.h"
#include "baseautocompletefilelist.h"
//-------------------------------------------... | C++ | root/engine/baseautocompletefilelist.cpp | RaisingTheDerp/raisingthebar | gpl-3.0 | 2,042 | 80 | codeparrot/github-code |
fc4312ae542abfbd27d45c2f7d7584879578e89e2f71822eec3a367fb077e50e | /*
* Copyright (C) 2012 Yee Young Han <websearch@naver.com> (http://blog.naver.com/websearch)
*
* 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
*... | C++ | TestXmlParser/TestXmlParser.cpp | YeeYoungHan/cpphttpstack | gpl-3.0 | 2,469 | 82 | codeparrot/github-code |
6c1abdd1205f452b23935d76507c87d6d3f0971d580ebf968e803c17c397ea10 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
SectionDescriptor (POI API Documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
fu... | HTML | CSC 445 WebCentric Programming/Final Project/poi-3.14/docs/apidocs/org/apache/poi/hwpf/model/SectionDescriptor.html | jmemmons/university-assignments | gpl-3.0 | 13,472 | 381 | codeparrot/github-code |
1d136f626c31390e769e2530e19e01de3f9401143b5112eb9ff414ff45d18eb5 | /**
* Sticky blocks wrapper.
*
* @author Htmlstream
* @version 1.0
* @requires
*
*/
;(function ($) {
'use strict';
$.HSCore.components.HSStickyBlock = {
/**
*
*
* @var Object _baseConfig
*/
_baseConfig: {},
/**
*
*
* @var jQuery pageCollection
*/
page... | JavaScript | public/assets/js/components/hs.sticky-block-old.js | Yunfeng/h5buk | gpl-3.0 | 10,380 | 277 | codeparrot/github-code |
d8d853702391d1bc483ce75175e61ba338ebb391a2a3f80659ccb39d51519e23 | /*
* Copyright (C) 2017 Stuart Howarth <showarth@marxoft.co.uk>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be use... | C++ | app/src/webif/clipboardserver.cpp | marxoft/qdl2 | gpl-3.0 | 2,977 | 86 | codeparrot/github-code |
ba8e2fae66acda65b27c5b9d7b5391a8e7d3c72ecdcd99cc3f3c19fce9d328d2 | <?php
/**
* Translation Manager for Android Apps
*
* PHP version 7
*
* @category PHP
* @package TranslationManagerForAndroidApps
* @author Andrej Sinicyn <rarogit@gmail.com>
* @copyright 2017 Andrej Sinicyn
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 or lat... | PHP | module/Application/src/View/Helper/DataTablesInitHelper.php | rarog/TranslationManagerForAndroidApps | gpl-3.0 | 3,713 | 116 | codeparrot/github-code |
4a7e5e48d75dc0db22f834574ad1937d9fe684197465fe88e458eba7b9883ce7 | <?php
/**
* Created by PhpStorm.
* User: valentinlacour
* Date: 05/01/17
* Time: 16:46
*/
namespace lib;
class Crypt {
static private $init = false;
static private $key;
private static function _init(){
$config = new Config();
self::$key = $config->getCryptKey();
self::$ini... | PHP | private/lib/Crypt.php | vlacour97/projetTuto | gpl-3.0 | 1,500 | 59 | codeparrot/github-code |
0173232444563e0f073a402acc2324ecf7e69b4945f97ad147956f14632bc68e | import os
import errno
class LockError (Exception):
pass
class LockIsLocked (LockError):
pass
class LockIsUnlocked (LockError):
pass
class Lock (object):
def __init__ (self, path):
self.path = path
self.locked = False
def acquire (self):
if self.locked:
rais... | Python | gitblogger/lock.py | larsks/gitblogger | gpl-3.0 | 966 | 49 | codeparrot/github-code |
b48283aebe5a1331eebd5f1df19402bb0a69e2adff143c8416e08e12db915a95 | /*
Copyright (C) 2013 University of Lugano
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 progra... | C | src/unit/bptree_unittest.h | atomic77/mosql-storage | gpl-3.0 | 3,316 | 121 | codeparrot/github-code |
3ac124b869e8458679abf4378be1b38430cd89abcae84f13f3cde51a61149ff2 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\... | C++ | src/OpenFOAM/meshes/meshShapes/face/oppositeFace.H | OpenFOAM/OpenFOAM-dev | gpl-3.0 | 2,977 | 113 | codeparrot/github-code |
47bc977bfe753e314904820dba6372b597a57f7c7f95eef4efa18100a8842067 | /*
* Copyright (C) 2017 The "MysteriumNetwork/node" Authors.
*
* 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.
*
... | GO | tequilapi/http_api_server.go | MysteriumNetwork/node | gpl-3.0 | 2,734 | 98 | codeparrot/github-code |
e7d62f064b8aab60a4b7c430eab44183090e5934e9f4801d7edd9493821c5fd4 | #include "precompiled.h"
/*
* Globals initialization
*/
#ifndef HOOK_GAMEDLL
DebugOutputLevel outputLevel[ NUM_LEVELS ] =
{
{ "bot", DEBUG_BOT },
{ "career", DEBUG_CAREER },
{ "tutor", DEBUG_TUTOR },
{ "stats", DEBUG_STATS },
{ "hostage", DEBUG_HOSTAGE },
{ "all", DEBUG_ALL }
};
unsigned int t... | C++ | regamedll/dlls/debug.cpp | Adidasman1/ReGameDLL_CS | gpl-3.0 | 4,289 | 220 | codeparrot/github-code |
3a23d85eb949912da1f8d692c19e41efda859264cfeb94fc1872aa984fa75a30 | /*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... | C++ | libsolidity/analysis/ViewPureChecker.cpp | elementrem/solidity | gpl-3.0 | 10,381 | 326 | codeparrot/github-code |
7063174dbe55f8a12359b5cf8051ef1ae2462e57d914a9287f9ff2dd1610c113 | <?php
/**
* This is the model class for table "account_voucher_line".
*
* The followings are the available columns in table 'account_voucher_line':
* @property integer $id
* @property integer $create_uid
* @property string $create_date
* @property string $write_date
* @property integer $write_uid
* @property ... | PHP | backend/protected/models/AccountVoucherLine.php | futurable/futural | gpl-3.0 | 5,713 | 165 | codeparrot/github-code |
a69b622d3b95f8e88a9da2714d7a8548e264ca8c3b9ebde1a7ccc880a3773ba2 | # -*- coding: utf-8 -*-
"""
This class can be used to load an RDF-type summary graph.
:author: Spyridon Kazanas
:contact: s.kazanas@gmail.com
"""
import networkx as nx
import cPickle,csv
from os import path
class RDFTypeSummary():
# db info
db_graph = None
db_file = None
def __init__(self,inputfile=N... | Python | RDFTypeSummary.py | SWRG/semanticsdata | gpl-3.0 | 1,493 | 55 | codeparrot/github-code |
a69802b646b5ff5c23b3a73e0e2624e9575f50a427d174453a57a6ba2b623f4b | /* Reflexil Copyright (c) 2007-2012 Sebastien LEBRETON
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge... | C# | Reflexil.JustDecompile/reflexil.1.5.src/Controls/Misc/TextComboUserControl.cs | telerik/justdecompile-plugins | gpl-3.0 | 3,451 | 111 | codeparrot/github-code |
e62cb2f79b7549dabd2eb5b11e5eb397f25f749419624b4c942379c2171c89e5 | /*
* 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 | src/java/org/jax/haplotype/analysis/MultiGroupHaplotypeAssociationTest.java | cgd/haplotype-analysis | gpl-3.0 | 8,045 | 237 | codeparrot/github-code |
6717df95e3a314f57cae78bfc3a3b8e9273c67bc889b714be63dc430a03da40b | // Tetris.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "Tetris.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
TCHAR szTitle[MAX_LOADSTRING]; // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class ... | C++ | Tetris/Tetris.cpp | bobxiv/TetrisWin32 | gpl-3.0 | 13,520 | 523 | codeparrot/github-code |
5eef769cd1ab93c7711ae619058dd560106bd89e9de94bbdb109e6ab2e8e981b | var Entities = require('html-entities').AllHtmlEntities;
var Promise = require('bluebird');
var request = require('request');
var api, app, config, log, entities;
var handlers = {}, offsets = {};
var maxOffset = 0;
module.exports = function loadPlugin(resources) {
api = resources.api;
config = resources.confi... | JavaScript | plugins/googleimages/googleimages.js | tvdstaaij/nocto | gpl-3.0 | 7,517 | 226 | codeparrot/github-code |
accc2be388aa994e703573d63b210e0cff074615a1e6afa3271e2fd84ebfee0c | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2016 Evan Debenham
*
* Lovecraft Pixel Dungeon
* Copyright (C) 2016-2017 Leon Horn
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | Java | core/src/main/java/com/shatteredpixel/lovecraftpixeldungeon/items/potions/PotionOfExperience.java | TypedScroll/Lovercraft.Pixel.Dungeon | gpl-3.0 | 1,196 | 46 | codeparrot/github-code |
b622ef3359f16f6065b3670fab2f72bd3d6018d6ce6c63975687a9b3af0b53aa | package com.proxerme.library.connection.info.entity;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import com.proxerme.library.interfaces.IdItem;
import com.proxerme.library.parameters.SeasonParameter.SeasonConstraint;
im... | Java | library/src/main/java/com/proxerme/library/connection/info/entity/Season.java | Desnoo/ProxerLibAndroid | gpl-3.0 | 3,202 | 139 | codeparrot/github-code |
ec3827ca75eb7746a27c73b9eed19192407dd2ab3d0215e5650a419eb4fc23fd | package mods.mud.gui;
import mods.mud.ModUpdateDetector;
import mods.mud.UpdateChecker;
import mods.mud.UpdateEntry;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.util.StatC... | Java | battlegear mod src/minecraft/mods/mud/gui/GuiChangelogDownload.java | nalimleinad/Battlegear2 | gpl-3.0 | 20,024 | 532 | codeparrot/github-code |
c5ec44d3eb8d9712dfb504d14be878b6adad9c08c712660232bc2611d4c9490b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace keepass2android
{
public abstract class ActivityLaunchMode
{
public abstract vo... | C# | src/keepass2android/ActivityLaunchMode.cs | PhilippC/keepass2android | gpl-3.0 | 1,160 | 50 | codeparrot/github-code |
5e67da3a72414dab572dbb8a5b4516dd41eea6112fa987ba04469e1a66d41bfc | #ifndef GEARRATIOGRAPH_H
#define GEARRATIOGRAPH_H
#include <QMap>
#include "graphtab.h"
class GearRatioGraph : public GraphTab
{
Q_OBJECT
public:
GearRatioGraph(QWidget *parent = 0);
QString label() const {return tr("Gear ratio");}
QList<GraphItem*> loadData(const Data &data);
void clear();
void showTracks(bo... | C | src/GUI/gearratiograph.h | halftux/GPXSee | gpl-3.0 | 546 | 31 | codeparrot/github-code |
5a7e0c61c6555cdfe0321fbddb164ce6e27bab92bcb4824877d1de10257a979a | // SuperTuxKart - a fun racing game with go-kart
// Copyright (C) 2010-2013 Marianne Gagnon
//
// 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... | C++ | src/states_screens/dialogs/debug_slider.cpp | zombieCraig/stk-code | gpl-3.0 | 3,351 | 100 | codeparrot/github-code |
5f87660cd1d84a80df95a42cb32e5ae76783f92a98c8b9f27fa29c984b5b8217 | /*
* This file is part of JaTeCS.
*
* JaTeCS 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.
*
* JaTeCS is distributed in the h... | Java | src/main/java/it/cnr/jatecs/utils/CodeVersion.java | jatecs/jatecs | gpl-3.0 | 2,899 | 103 | codeparrot/github-code |
33fbccec4e1eccfc3019745409ffdeb0bd800bed79727dec4e668a82f8c2dc0d | package gnu.app.redbook;
import gnu.x11.extension.glx.GL;
/**
* Test fog. It draws 5 red spheres, each at a different z distance from
* the eye, in different types of fog. In this program, there is a fixed
* density value, as well as fixed start and end values for the linear fog.
* Modified from <code>fog.c</co... | Java | QMOLEDEV/escher-0.3/src/gnu/app/redbook/Fog.java | chriskmanx/qmole | gpl-3.0 | 4,350 | 152 | codeparrot/github-code |
f12479a00eb34bb5c3efa56356db230151a1a216ab7d94319662fd7a41c3126f | /*
* QueryEditorResultsPanel.java
*
* Copyright (C) 2002-2013 Takis Diakoumis
*
* 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 any later version.
... | Java | java/src/org/executequery/gui/editor/QueryEditorResultsPanel.java | toxeh/ExecuteQuery | gpl-3.0 | 22,817 | 866 | codeparrot/github-code |
73780fd4ca9fc423c91f71b320736ebda3c3a9efa3111e2224e5e732b99584e6 | /*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... | C | libyul/optimiser/Substitution.h | bobsummerwill/solidity | gpl-3.0 | 1,249 | 47 | codeparrot/github-code |
43a42012d8418ca0acd1f2e3f111f157359be0e7cdfcd2353c06293e3a63da21 | /*global Deckbox, $ */
/* Tooltip code originally from https://deckbox.org/help/tooltips and now much hacked around and jQuery dependency introduced. */
// Initialize namespaces.
if (typeof Deckbox === "undefined") Deckbox = {};
Deckbox.ui = Deckbox.ui || {};
/**
* Main tooltip type.
*/
Deckbox.ui.Tooltip = functio... | JavaScript | shared_web/static/js/tooltips.js | PennyDreadfulMTG/Penny-Dreadful-Tools | gpl-3.0 | 10,499 | 313 | codeparrot/github-code |
e965aeeedba0594bc9c0b20f17bb922e10229167787fe77c7bcaae9600f171c8 | from flask_user import login_required
from app.API_Rest.Services.BaseService import BaseService
from app.models.generadorJSON.respuestas_encuestas_generadorJSON import generarJSON_encuesta_alumno
from app.models.respuestas_encuesta_models import EncuestaAlumno, RespuestaEncuestaTematica, RespuestaEncuestaTags
from app.... | Python | MUSSA_Flask/app/API_Rest/Services/AlumnoServices/EncuestaAlumnoService.py | jennywoites/MUSSA | gpl-3.0 | 6,276 | 160 | codeparrot/github-code |
580853970690bf2a5566f88ce24a1df2dd1e7d5aec5e008e1e51057157f2da6d | #!/usr/bin/perl
# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any l... | Perl | admin/auth_subfields_structure.pl | KohaAloha/Koha-Dev | gpl-3.0 | 9,914 | 271 | codeparrot/github-code |
f604aa492a045fa8fafc326297df17caff7e2a4f4dd9b11da6f10470e05a4729 | using UnityEngine;
[RequireComponent(typeof(Camera))]
public class PlatformerCameraController : MonoBehaviour {
protected Camera cam;
protected Transform tForm;
/// <summary>
/// Camera will be locked on the target position
/// </summary>
public Transform target;
public float lBorder... | C# | KyrlkProject/Assets/Scripts/PlatformerCameraController.cs | KyrlkTeam/KyrlkProject | gpl-3.0 | 1,428 | 45 | codeparrot/github-code |
e91d76dc335f9d9335fe938aaaf5601131f8aae085ac53369d3f4caa101d0fa8 | // Copyright 2015 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library 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... | GO | xeth/whisper.go | soilcurrency/go-ethereum | gpl-3.0 | 4,132 | 122 | codeparrot/github-code |
c9632577870857171aa21278071a8356798896215b4a226a85952d2078513f44 | /*
* Copyright (C) 2012,2013 yogpstop This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any later version.
*
* This program is distr... | Java | src/main/java/com/yogpc/qp/item/ItemBlockQuarry.java | yogpstop/QuarryPlus | gpl-3.0 | 1,408 | 38 | codeparrot/github-code |
627932667114df51ec6fa090183647c2af6f2357ad7a800d1927365799db9dc7 | <?php
/********************************************************************************************/
/**
* @defgroup compiler Compiler
* @ingroup shader
*
* @file shader_compiler.php
* @author mzpx <atomantinator@gmail.com>
* @date 2009
*
* @brief
*
* All rights reserved
*
... | PHP | entropy/elusive/packages/shader/shader_virtual_machine_pure.php | tib/entropy-framework | gpl-3.0 | 26,073 | 736 | codeparrot/github-code |
94df5b827d675899656cd33d23c8b60a48eeaede62f7fe11ce104b8fffe6aeb3 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><!--JBuilder QuickDoc-->
<HEAD>
<TITLE>Class nparker.gapi.structure.Chromosome</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
<H2>
<FONT SIZE="-1">nparker.gapi.structure</FONT>
<BR>Interface Chromosome</H2>... | HTML | nga/doc/nparker/gapi/structure/Chromosome.html | parker20121/kaggle-santa | gpl-3.0 | 5,674 | 112 | codeparrot/github-code |
a31295255303f52c7de3e07672b3df4d051b279ac4e06f194e2bf802d9c2e15d | /*
* Copyright (C) 2010 Daniel Nilsson
*
* 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 law or ag... | Java | app/src/main/java/org/emdev/ui/preference/ColorPickerPreference.java | nivieru/ebookdroid | gpl-3.0 | 4,233 | 132 | codeparrot/github-code |
a2b7c025ccb06cfd38409d3d8fdcffd0e3cb768686c4c904727eaeebae8da37b | #region Copyright & License Information
/*
* Copyright 2007-2017 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.Mods.Common/Traits/Conditions/GrantConditionOnPrerequisite.cs | LipkeGu/OpenRA | gpl-3.0 | 3,016 | 89 | codeparrot/github-code |
feed33e7b79902270250f249bf052a537c3d31b72f1161d4d72a2c355e7dde79 | /* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
Contact: Nokia Corporation (qt-info@nokia.com)
This file is part of the Trojita Qt IMAP e-mail client,
http://trojita.flaska.net/
It was taken from the examples of the Qt Toolkit.
$QT_BEGIN_LICENSE:LGPL$
Co... | C | src/trojita/src/Gui/FlowLayout.h | bobo1993324/qmlTrojita | gpl-3.0 | 2,912 | 85 | codeparrot/github-code |
a02fcb690986b5d4c859a3eb59a46def2684122441380391a0b5fcaf0e7c7712 | 'use strict';
/* Built-in method references for those with the same name as other `lodash` methods. */
const nativeMax = Math.max;
const nativeMin = Math.min;
/**
* Gets the view, applying any `transforms` to the `start` and `end` positions.
*
* @private
* @param {number} start The start of the view.
* @param {n... | JavaScript | lib/xml2js-req/xmlbuilder/lodash/_getView.js | rafa1231518/CommunityBot | gpl-3.0 | 1,051 | 35 | codeparrot/github-code |
a553ecd840ff5c998e9eb0eb86715b0e43a3ce04ee6c64998b5c38362b7a7d3b | <?php
namespace VediX;
/**
* Главный контроллер веб-приложения "Сайт" (site)
*/
class SiteController extends CatalogController {
public function __construct( $params = Array() ) {
parent::__construct( $params );
}
public function run() {
parent::run();
if (Request::AJAX()) {
switch (Request::JX... | PHP | www/catalog/site/site.controller.php | IlyaKB/vedix | gpl-3.0 | 4,637 | 104 | codeparrot/github-code |
d32c08dc3e9b5c3d61439356ae6e86579d62fe26ca2eabeb79e2a5161e3be3be | package com.supaham.powerjuice.game;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import com.supaham.powerjuice.PowerJuicePlugin;
import com.supaham.powerjuice.arena.Arena;
import com.supaham.powerjuice.events.game.GameStopEvent.Reason;
import com.supaham.powerjuice.lobby.LobbyCountdown;
import... | Java | src/main/java/com/supaham/powerjuice/game/GameManager.java | SupaHam/PowerJuice | gpl-3.0 | 4,353 | 159 | codeparrot/github-code |
a52782794bc7ad351b186b96ed8c71ad72180a989c59990ea16a747e3ec48d41 | <?php
/**
* This file is part of the "iManaJUZment" - complex system for internet service providers
*
* Copyright (c) 2005 - 2011 Jan Dolecek (http://juzna.cz)
*
* iManaJUZment is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... | PHP | app/classes/ActiveEntity/Behaviours/Taggable.php | juzna/iManaJUZment | gpl-3.0 | 2,070 | 67 | codeparrot/github-code |
4c58d03ac34c3de7b16145f1e6294f79fe35e90088f54d903eefb79e7e522b11 | __author__ = 'Indra Gunawan'
import math, sys, time
import pp
import re
import collections, string, pickle
def isprime(n):
"""Returns True if n is prime and False otherwise"""
if not isinstance(n, int):
raise TypeError("argument passed to is_prime is not of 'int' type")
if n < 2:
return Fa... | Python | Cluster/Manajer.py | ardinusawan/Sistem_Terdistribusi | gpl-3.0 | 7,838 | 267 | codeparrot/github-code |
d49fc441148cc90e15c17e5b10f875480d0902887f3e24608e43bd18a5006bc7 | using Kamilla.Network.Protocols.Wow.Game;
namespace Kamilla.Network.Protocols.Wow.Parsers.Misc
{
[WowPacketParser(WowOpcodes.SMSG_INSPECT_RESULTS)]
[WowPacketParser(WowOpcodes.SMSG_INSPECT_RESULTS_UPDATE)]
internal sealed class InspectResultsParser : WowPacketParser
{
protected override Packet... | C# | Kamilla.Network.Protocols.Wow/Parsers/Misc/InspectResultsParser.cs | LordJZ/Kamilla.Wow | gpl-3.0 | 3,362 | 83 | codeparrot/github-code |
e77d5d3f7bd7645b59fb351479a0791553a4d866d8f12a4fe8dcafbc00147c8c | /*******************************************************************************
* 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... | Java | src/org/worldgrower/actions/BuildAction.java | WorldGrower/WorldGrower | gpl-3.0 | 1,622 | 41 | codeparrot/github-code |
462c0a8129a558db5a28ae9e61e1a4edbbf0239c2ffe25204fc86c62acd437ea | #include <stdio.h>
#include <windows.h>
#include "ntapi.h"
#include "misc.h"
ULONG_PTR parent_process_id() // By Napalm @ NetCore2K (rohitab.com)
{
ULONG_PTR pbi[6]; ULONG ulSize = 0;
LONG (WINAPI *NtQueryInformationProcess)(HANDLE ProcessHandle,
ULONG ProcessInformationClass, PVOID ProcessInformation,... | C | misc.c | evil365/moon | gpl-3.0 | 3,035 | 92 | codeparrot/github-code |
0d462c9df9f6bace563d8dc5c11528b36ab1bc053792c5f536ad089aa919c688 | package electricfish.item;
import ic2.api.item.ElectricItem;
import ic2.api.item.IElectricItem;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.Enti... | Java | electricfish_common/electricfish/item/ItemElectricRod.java | Shalashalska/Electric-Fishing-Pole-2 | gpl-3.0 | 3,911 | 109 | codeparrot/github-code |
db77d9be29e30ec37d70af957a77b72d2ddd1a2b69c93143b094b79918c5b493 | #ifndef PLOTFRAME_H
#define PLOTFRAME_H
#include "plotlineappframe.h"
#include "plotlineitemmodel.h"
class PlotlineAppFrame;
namespace Ui {
class PlotFrame;
}
class PlotFrame : public PlotlineAppFrame
{
Q_OBJECT
public:
explicit PlotFrame(MainWindow *mainWindow, QWidget *parent = 0);
~PlotFrame();
... | C | src/app/plotframe.h | freckles-the-pirate/plotline | gpl-3.0 | 1,220 | 57 | codeparrot/github-code |
1fb098b8421e8d54c0ea6cadf2d7fd7f4fbffc22716fee70304a3b0c4c0c3fed | /*
Copyright 2010-2012 Mark Boots, David Chevrier, and Darren Hunter.
Copyright 2013-2014 David Chevrier and Darren Hunter.
This file is part of the Acquaman Data Acquisition and Management framework ("Acquaman").
Acquaman is free software: you can redistribute it and/or modify
it under the terms of the GNU General Pu... | C++ | source/analysis/AM2DNormalizationAB.cpp | acquaman/acquaman | gpl-3.0 | 12,064 | 392 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.