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 |
|---|---|---|---|---|---|---|---|---|
02a1b4c05b374f549dbe7f1093822e60df5046bc6b527338d0bdd7ad7de23121 | module Main where
import Control.Applicative
import Control.Concurrent.Async
import Control.Concurrent.STM
import Control.Monad
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BSL
import Data.Function (on)
import Data.List (foldl')
import Data.Map.KDMap
import Data.Monoid
import Data.Ti... | Haskell | utils/drawKD.hs | imalsogreg/tetrode-ephys | gpl-3.0 | 4,889 | 143 | codeparrot/github-code |
9fb54d39e0c6f184433b3e68ae4fde7d9c3a560414d39138d4abddca6bd372be | #include <exceptions.h>
#include "Features.h"
double Features::NoFeatureValue = 0;
Features::Features() :
_nextSegmentIndex(0) {}
void
Features::addName(const std::string& name) {
_featureNames.push_back(name);
}
const std::vector<std::string>&
Features::getNames() const {
return _featureNames;
}
void
Feature... | C++ | sopnet/core/features/Features.cpp | catsop/python-sopnet | gpl-3.0 | 2,047 | 132 | codeparrot/github-code |
fcc4ab08f8b75587917a439210a68173a1d95b5ad7756c6302196ceea6555999 | sgs.ai_skill_cardask["@xiaoguo"] = function(self, data)
local currentplayer = self.room:getCurrent()
local has_analeptic, has_slash, has_jink
for _, acard in sgs.qlist(self.player:getHandcards()) do
if acard:isKindOf("Analeptic") then has_analeptic = acard
elseif acard:isKindOf("Slash") then has_slash = acard
... | Lua | lua/ai/hegemony-ai.lua | Satoshi-t/Re-SBS | gpl-3.0 | 24,080 | 689 | codeparrot/github-code |
3e3f6333215c40ec22ea7d935b63dc630ff3218bce9f9dc2cdb4a151700d68b7 | #!/bin/python
# -*- coding: utf-8 -*-
# ####################################################################
# gofed-ng - Golang system
# Copyright (C) 2016 Fridolin Pokorny, fpokorny@redhat.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public Lice... | Python | scenarios/golangDepsUpdate.py | gofed/gofed-ng | gpl-3.0 | 3,711 | 84 | codeparrot/github-code |
809a1f9251bf1fb26cee565ecfcfde9ae19b8ec1c90b6d70ea7759863dfcca79 | /* connections.cpp
* -------------
* Implementation of AlpacaConnection, the wrapper class for al_connection_t. */
//#include <iostream>
#include "alpaca/connections.hpp"
#include "alpaca/server.hpp"
//using namespace std;
AlpacaConnection::AlpacaConnection(al_connection_t *connection) {
this->connection = co... | C++ | src/cpp/connections.cpp | Synival/alpaca | gpl-3.0 | 1,060 | 47 | codeparrot/github-code |
10df41fc512c294dc4c904a43646cd8d346219823286d2590d4324dca74e15d7 | /* realpath - print the resolved path
Copyright (C) 2011-2016 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 the License, or
(at you... | C | src/realpath.c | gyl33333/coreutils | gpl-3.0 | 7,782 | 279 | codeparrot/github-code |
34de5e4068650952080c193a89d62f45a1c014d3e1b012e2f7e56ecd7a577b40 | class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
helper_method :current_user
private
def current_user
@current_user ||= User.find(session[:user_id]) if session[... | Ruby | app/controllers/application_controller.rb | CeutecIngDeSoftware/PropuestasInformatica | gpl-3.0 | 1,037 | 47 | codeparrot/github-code |
0c3781a0a487a9cddb9c764618b3733c1e3702439cf7185c7d09362a17f48e75 | /*
* This file is part of INAV.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Alternatively, the contents of this file may be used under the terms
* of t... | C | src/main/drivers/bus.h | digitalentity/cleanflight | gpl-3.0 | 13,561 | 323 | codeparrot/github-code |
2fc53670f829d49d19fef6a16f1b360d48156242ee5e466b81fad0520f93b2e8 | /*
* Copyright (c) 2016 Christian Micocci. This file is part of Concerto.
*
* Concerto 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 ver... | Java | src/com/n_micocci/concerto/filters/FilterVelocity.java | iksoiks/concerto-framework-core | gpl-3.0 | 1,590 | 47 | codeparrot/github-code |
d9986db0a8aa81176b878a45b357c56fff5f815d7040667660e906839cd38f69 | // Copyright © 2016, Ugo Pozo
// 2016, Câmara Municipal de São Paulo
// token_selector.js - floating action button component for the interface.
// This file is part of Anubis.
// Anubis is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publ... | JavaScript | anubis/frontend/src/components/TokenField/token_selector.js | cmspsgp31/anubis | gpl-3.0 | 7,241 | 254 | codeparrot/github-code |
3e70f76c6c92aea072b003ec825920ef3724a15b813f5d323926df260d292da3 | if (BUILD_STATIC AND XMRIG_OS_UNIX AND WITH_OPENCL)
message(WARNING "OpenCL backend is not compatible with static build, use -DWITH_OPENCL=OFF to suppress this warning")
set(WITH_OPENCL OFF)
endif()
if (WITH_OPENCL)
add_definitions(/DXMRIG_FEATURE_OPENCL)
add_definitions(/DCL_USE_DEPRECATED_OPENCL_1_2... | CMake | src/backend/opencl/opencl.cmake | xmrig/xmrig | gpl-3.0 | 8,040 | 186 | codeparrot/github-code |
8c91486cf360c88c8781a2296aa6bf986269895e920c9b39cac6bcf5cc8d428e | package eu.siacs.conversations.ui;
import android.app.AlertDialog.Builder;
import android.app.PendingIntent;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.Menu... | Java | src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | eriuzo/Conversations | gpl-3.0 | 23,901 | 669 | codeparrot/github-code |
2eacf06f4a9420591ff90ebcdce315b7b32868262a9c457e8693c9ef2b9aca39 | /*******************************************************************************
uBlock Origin - a browser extension to block requests.
Copyright (C) 2014-present Raymond Hill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... | JavaScript | src/js/contentscript.js | dhowe/AdNauseam2 | gpl-3.0 | 49,724 | 1,420 | codeparrot/github-code |
9e0d2ef4896c7f6391258c6cb95b24cc234fc84c234c321e3081c7513cc9fc4f | package net.sourcewalker.svnnotify.data.xmldb;
import java.util.Date;
import net.sourcewalker.svnnotify.data.interfaces.IRevision;
/**
* Revision class to be used with the flat-file XML database implementation in
* {@link XmlDatabase}.
*
* @author Xperimental
*/
public class XmlRevision implements IRevision {
... | Java | src/net/sourcewalker/svnnotify/data/xmldb/XmlRevision.java | xperimental/svn-notify | gpl-3.0 | 1,667 | 77 | codeparrot/github-code |
cd247076f2c24a9b188e806c4597441c2ad8f26b276aebe4d7be4670428c044a | # log moments (mean, variance, skewness, kurtosis) and quantiles
# why am I spending time creating a complex quantile and histogram
# estimator when I only need average, so far
from math import sqrt
from bisect import bisect_left
import scipy.stats as st
maxlong = 9223372036854775807
class RunningStat(object):
'... | Python | hardcoded/statistics.py | PillowLounge/lolibot | gpl-3.0 | 3,778 | 132 | codeparrot/github-code |
4e19f25206765eca5a97ae710aa1644952a0ead26588673773381e0963550213 | # frozen_string_literal: true
class Wpxf::Exploit::MdcPrivateMessageXssShellUpload < Wpxf::Module
include Wpxf
include Wpxf::WordPress::Login
include Wpxf::WordPress::Plugin
include Wpxf::WordPress::Xss
def initialize
super
update_info(
name: 'MDC Private Message XSS Shell Upload',
desc... | Ruby | lib/wpxf/modules/exploit/xss/stored/mdc_private_message_xss_shell_upload.rb | rastating/wordpress-exploit-framework | gpl-3.0 | 3,202 | 119 | codeparrot/github-code |
dd502cc0a0f6a726d133718a108d8445aea62748d1d8fff44a8c137ee42e4d06 | #ifndef NODE_DETAIL_NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODE_DETAIL_NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
#pragma once
#endif
#include "yam... | C | src/Yaml/yaml-cpp/node/detail/node.h | nutjunkie/IQmol | gpl-3.0 | 4,014 | 132 | codeparrot/github-code |
fdb6ba5b0434adddbf2d862eed59c2fb47e8e529725d6c4d29e8eef8ff3b4d00 | package org.dhydrated.kanbanana.server.controller;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.dhydrated.kanbanana.server.repository.BaseRepository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.Reques... | Java | src/main/java/org/dhydrated/kanbanana/server/controller/BaseService.java | dhydrated/kan-banana-server | gpl-3.0 | 1,217 | 58 | codeparrot/github-code |
310357ed796d89ef578b25af91b7d6426356e1f6b3182e7f4c5613e3b90ec0ac | #!/usr/bin/env python
#
# Author: Pablo Iranzo Gomez (Pablo.Iranzo@redhat.com)
#
# Description: Script for monitoring host Memory status and VM's rhevm-sdk
# api and produce NAGIOS valid output
#
# Requires rhevm-sdk to work
#
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | Python | monitoring/rhev-nagios-table-host-mem.py | DragonRoman/rhevm-utils | gpl-3.0 | 2,283 | 81 | codeparrot/github-code |
5e05fafd2b04dfb2fbea942c63280a3d7f0b34764536db32bf19069384495fb2 | /*
* MainWindow.cpp
# ------------------------------------------------------------------------ #
# Copyright (c) 2010-2014 Rodrigue Chakode (rodrigue.chakode@gmail.com) #
# Last Update: 23-03-2014 #
# ... | C++ | client/src/MainWindow.cpp | jameseriot/realopinsight-workstation | gpl-3.0 | 12,977 | 279 | codeparrot/github-code |
86f1ea93911d4c5490db8fbbe1ff3ee3bd204b2a83af13c734b4d5e1dae996c4 | package com.captainbern.minecraft.game.nbt;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
public class NbtTagIntArray extends NbtTag<int[]> {
public NbtTagIntArray() {
this(new int[0]);
}
public NbtTagIntArray(int[] value) {
super(value);
}
@Ov... | Java | src/main/java/com/captainbern/minecraft/game/nbt/NbtTagIntArray.java | CaptainBern/MinecraftNetLib | gpl-3.0 | 976 | 41 | codeparrot/github-code |
9e8c738bb0bbcc777bd795f2302a4ac367bb82d5f70883c15507e3c54905189d | /*
* MPEG1/2 demuxer
* Copyright (c) 2000, 2001, 2002 Fabrice Bellard.
*
* This file is part of FFmpeg.
*
* FFmpeg 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 2.1 of the Li... | C | ffmpeg/libavformat/mpeg.c | descent/xvidcap | gpl-3.0 | 17,784 | 586 | codeparrot/github-code |
edd73c477015239413073300576d159522bdc0b7430cbf1e80935219e89a27f4 | #include "Field.h"
#include <cmath>
#include "ClickableButton.h"
#include "Globals.h"
#include "MinesweeperApp.h"
#include "Resources.h"
using namespace std;
// definitions of static constants
const unsigned char Field::mineChar = 15;
const unsigned char Field::markedChar = 4;
const unsigned char Field::hiddenCha... | C++ | Minesweeper/src/Field.cpp | PeteyPii/Minesweeper | gpl-3.0 | 13,910 | 408 | codeparrot/github-code |
8cb715b006afe8a8d0f141a15de44269bb38935c78fcc357cd8b9db64bc87702 | //Copyright (c) 2011 Municipalidad de Rosario and Coop. de Trabajo Tecso Ltda.
//This file is part of SIAT. SIAT is licensed under the terms
//of the GNU General Public License, version 3.
//See terms in COPYING file or <http://www.gnu.org/licenses/gpl.txt>
package ar.gov.rosario.siat.emi.view.struts;
import javax.se... | Java | siat-1.0-SOURCE/src/view/src/WEB-INF/src/ar/gov/rosario/siat/emi/view/struts/AdministrarResLiqDeuDAction.java | avdata99/SIAT | gpl-3.0 | 14,979 | 338 | codeparrot/github-code |
f543665f71789487b5947ba64cdeacf900047ab4ce6488a393251a188d153778 | ---------------------------------------------
-- Nihility Song
-- Family: Hippogryph
-- Description: A song dispels a positive effect in an area of effect, including food.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Radial 12.5'
-- Notes:
---------------------------------------------... | Lua | scripts/globals/mobskills/Nihility_Song.lua | Vadavim/jsr-darkstar | gpl-3.0 | 1,602 | 55 | codeparrot/github-code |
db647909500343b013afb4577ace16a7ce01d3b304fcb9f7cc4013a3da354ba9 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Tlen.pl: Dokumentacja klasy TlenChatManager</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">... | HTML | sdk/documentation/classTlenChatManager.html | kklimek/Tlen7Plugins | gpl-3.0 | 8,430 | 164 | codeparrot/github-code |
44412ac4a2ea75b754b06bab1056ff86bad6f90702631db75bacb8efec1117dd | import { Injectable } from '@angular/core';
import { AngularFireDatabase, FirebaseListObservable, FirebaseObjectObservable } from 'angularfire2/database';
import { AngularFireAuth } from 'angularfire2/auth';
//import firebase namespace for functions that aren't in AngularFire2
import * as firebase from 'firebase/app'... | TypeScript | src/app/providers/refeicao.service.ts | luizcieslak/ru-unesp-admin | gpl-3.0 | 2,038 | 65 | codeparrot/github-code |
5bbb3da99dc9652557ac3dc3ac7d116a890d744fd5f7c00aef6f38a632c85c2f | /**
* GFW.Press
* Copyright (C) 2016 chinashiyu ( chinashiyu@gfw.press ; http://gfw.press )
* <p/>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | Java | src/main/java/press/gfw/android/CompatActivity.java | chinashiyu/gfw.press.android | gpl-3.0 | 3,761 | 166 | codeparrot/github-code |
90fc6759edad83b3b59d34abb8c7b069e56bac32d6dbd9711f439388c0430b34 | // Representa um ação que pode ser desfeita e refeita
// A ação é associada a uma aba aberta
// Nas funções redo e undo, this se refere à aba associada à ação
function Acao(nome, redo, undo) {
var aba = Interface.abaFoco
this.id = String(Math.random())
this.nome = nome
this.redo = redo
this.undo = undo
if (ab... | JavaScript | js/dados/Acao.js | sitegui/editorHP | gpl-3.0 | 2,007 | 75 | codeparrot/github-code |
3e37b62e34a5b303deeaf7d1a3572835389373d788c5c782742772bb806f8b38 | /**
* GRAVITY WORKFLOW AUTOMATION
* (C) Copyright 2015 Orcon Limited
*
* This file is part of Gravity Workflow Automation.
*
* Gravity Workflow Automation 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/main/java/nz/net/orcon/kanban/automation/plugin/FreemarkerPlugin.java | cheetah100/gravity | gpl-3.0 | 2,280 | 68 | codeparrot/github-code |
110bfa442ad4a4d00d7bb732f372022ce56b3560629a35cb8a3517e8331a1505 | package com.kiluet.jgringotts.dao.jpa;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceUnit;
import javax.persistence.Query;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.kiluet.jgringot... | Java | jgringotts-dao/jgringotts-dao-jpa/src/main/java/com/kiluet/jgringotts/dao/jpa/BaseDAOImpl.java | jdr0887/jgringotts | gpl-3.0 | 2,776 | 87 | codeparrot/github-code |
ca38b2e8f99c458cf35b7f7179efa4df5ec714383dfd9d49c73972dbe16a1d34 | package org.thoughtcrime.securesms.giph.mp4;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.TextureView;
import android.view.View;
import android.widget.FrameLayout;
import androidx.annotation.NonNull;
import androi... | Java | app/src/main/java/org/thoughtcrime/securesms/giph/mp4/GiphyMp4VideoPlayer.java | AsamK/TextSecure | gpl-3.0 | 3,611 | 144 | codeparrot/github-code |
8fad552e6af609228a76aa8812e18c82f497bcddf27532b9147ccefb5b0aebc0 | from .base import BaseInterface
import eventlet
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
from flask import Flask, render_template, session, request, send_from_directory
from flask_socketio import SocketIO, emit, join_room, leave_room, close_room, rooms, disconnect
... | Python | core/interfaces/regie.py | Hemisphere-Project/HPlayer2 | gpl-3.0 | 10,996 | 338 | codeparrot/github-code |
8d99974052d913c0212870d1ad77655a3b7f13cfbe68ca544a13ed548ac7bbdc | /* zxatasp.h: ZXATASP interface routines
Copyright (c) 2003-2004 Garry Lancaster,
2004 Philip Kendall
$Id: zxatasp.h 4972 2013-05-19 16:46:43Z zubzero $
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 ... | C | fuse/peripherals/ide/zxatasp.h | matthewbauer/fuse-libretro | gpl-3.0 | 1,336 | 41 | codeparrot/github-code |
f346dc78ea6fdd9b680e1bc79b7a1c29013a553f0bf3d8151803d9be48f0f1f7 | /*
* Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
*
* This file is part of mpblocks.
*
* mpblocks 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/mpblocks/kd_tree/euclidean/KNearest.h | cheshirekow/codebase | gpl-3.0 | 2,736 | 101 | codeparrot/github-code |
b3acf298a2f8fc7465576bb27350a091645de2ff2a85aa217acf910db0edb456 | #include "yJRTP_R.h"
boost::circular_buffer<uint8_t> cir_buf(BUFF_SIZE);
using namespace boost::lockfree;
//boost::lockfree::fixed_sized<false>;
boost::lockfree::queue<DataCache,boost::lockfree::fixed_sized<false> > queue_buf(0);
void checkerror(int rtperr)
{
if (rtperr < 0)
{
std::cout << "ERROR: " <... | C++ | Codes/src/jrtp/JRTPR_FF/yJRTP_R.cpp | flyinskyin2013/GraduationDesign | gpl-3.0 | 4,637 | 175 | codeparrot/github-code |
8a6f08168b20f783e5d944bc34bc7b3ff46b2bc49b46d26ee166a81e20dfdd8f | /**
* Copyright 2011-2016 Marc Comas - Santiago Thió
*
* This file is part of CoDaPack.
*
* CoDaPack 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/coda/plot2/window/TernaryPlot2dDialogDataSet.java | mcomas/codapack | gpl-3.0 | 6,628 | 188 | codeparrot/github-code |
a78025aac2014f435a8bc54b9aa6439ddb7ab8ed584c199ecf8225983f459261 | <?php
class ControllerPaymentAmazonLoginPay extends Controller {
private $error = array();
public function index() {
$this->load->language('payment/amazon_login_pay');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('setting/setting');
$this->load->model('payment/amaz... | PHP | upload/admin/controller/payment/amazon_login_pay.php | huangguozhen/opencart | gpl-3.0 | 26,201 | 567 | codeparrot/github-code |
21fcae282d570acee1fbaa9199150c181d7784984793a4d252270023d1721931 | /*
* Carnegie Mellon University
* Copyright (c) 2004, 2009
* All Rights Reserved.
*
* Any use of this software must follow the terms
* outlined in the included LICENSE file.
*/
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.net.URL;
import java.util.ArrayList;
import ... | Java | MEMT/Alignment/MMBRMatcherMEMT.java | kpu/MEMT | gpl-3.0 | 7,217 | 229 | codeparrot/github-code |
7642c64423e19f05016280e055cd952ef1738c4283a7b828739c064378bfb86c | /*
* Copyright 2015 Andrea Del Signore sejerpz@gmail.com
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework.Forms;
using Microsof... | C# | GoodMood/FormMain.cs | sejerpz/goodmood | gpl-3.0 | 17,065 | 508 | codeparrot/github-code |
42474e151b1e5e049be3931848c270498831e8d2f10730ca6382f554fa837081 | <?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 | classes/activity.php | liip-elearning/moodle-format_topcoll | gpl-3.0 | 36,183 | 936 | codeparrot/github-code |
753bb332fa658189c9cd90f1b7d2f409da8a51b15b0f9e9b8e3ccbc5c8e5dde5 | require 'package'
class Httpd < Package
description 'The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.'
homepage 'https://httpd.apache.org/'
version '2.4.39'
compatibility 'all'
source_url 'https://www-us.ap... | Ruby | packages/httpd.rb | cstrouse/chromebrew | gpl-3.0 | 2,617 | 67 | codeparrot/github-code |
1481ee5c8d9b9799cb415919639228f9ee3e14e941c834315bf780d71ca29a0d | /*
Copyright (C) 2010,2011,2012,2013,2014 The ESPResSo project
Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
Max-Planck-Institute for Polymer Research, Theory Group
This file is part of ESPResSo.
ESPResSo is free software: you can redistribute it and/or modify
it under the terms of the... | C++ | src/core/particle_data.hpp | Smiljanic/Esspresso-Code | gpl-3.0 | 32,656 | 1,024 | codeparrot/github-code |
92459a44b0115051e69d04a2f25ec37ca74d252449e34fa14e91d8d12ae9743d | let fs = require('fs');
const {dialog} = require('electron').remote;
let drivelist = require('drivelist');
let distrosList = require('./js/distros.json');
let numeral = require('numeral');
let fileNameRoute;
let fileName;
let fileChoosed = false;
let downloadFile = false;
let checksumFileDownloaded;
let di... | JavaScript | virty-app/js/index.js | Brunux/virtydrive | gpl-3.0 | 13,712 | 377 | codeparrot/github-code |
eef4fc278e8eefbe24d6f732d7ff69f7e2699a99e9b6320e14fad19234299b78 | <?php
/**
* Axis
*
* This file is part of Axis.
*
* Axis 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.
*
* Axis is distribu... | PHP | app/code/Axis/ShippingPickup/sql/0.1.0.php | axis/axiscommerce | gpl-3.0 | 3,309 | 77 | codeparrot/github-code |
d7c6e33f31afb660aaae3fc94690556d02af97615889b9ec8c86c9c2969aeca6 |
'use strict';
/* globals app, ajaxify, define, socket */
define('forum/topic/events', ['forum/topic/browsing', 'forum/topic/postTools', 'forum/topic/threadTools'], function(browsing, postTools, threadTools) {
var Events = {};
var events = {
'event:update_users_in_room': browsing.onUpdateUsersInRoom,
'user.is... | JavaScript | public/src/forum/topic/events.js | erikahan/NodeBB-fungus | gpl-3.0 | 4,591 | 162 | codeparrot/github-code |
a01afcc09ba1a8f2d775705cc88d17ecb4d4bc1ed2f2b05be223652eba94bbf9 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from pyquery import PyQuery
from novel import serial, utils
BASE_URL = 'http://www.sto.cc/{}-1/'
PAGE_URL = 'http://www.sto.cc/{}-{}/'
class StoTool(utils.Tool):
def __init__(self):
super().__init__()
word_list = (
's思s兔s網s文... | Python | novel/sources/sto.py | wangjiezhe/FetchNovels | gpl-3.0 | 1,996 | 72 | codeparrot/github-code |
faf91ac2e3200dc5547a46920875bb677c1a70bd1b9e4f044dffe882717d30d4 | /**
* Copyright (c) 2002-2011 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | Java | server/src/main/java/org/neo4j/server/rest/domain/TraversalDescriptionBuilder.java | eldersantos/community | gpl-3.0 | 7,331 | 207 | codeparrot/github-code |
ffce76bf29530ac2386280ee6c798ad9aea6fb5d5ca8e1161161f0da507c99d6 | <?php
/* Copyright (C) 2010-2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010-2014 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under t... | PHP | htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php | tomours/dolibarr | gpl-3.0 | 44,205 | 1,198 | codeparrot/github-code |
1988ab76ead4faaecc55ec07fdabcec4d216b5181cc9a1efbf74c4d996eebc69 | /*
* This file is part of SGEA - Sistema de Gestão de Eventos Acadêmicos - TADS IFNMG Campus Januária.
*
* SGEA 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 | Projetos/GerenciamentoEventosDomainModel/src/br/edu/ifnmg/GerenciamentoEventos/DomainModel/EventoInscricaoCategoria.java | petroniocandido/GerenciadorEventos | gpl-3.0 | 6,699 | 258 | codeparrot/github-code |
230f3ea044c82d083e2b3b46f0c5e79b0a299d4d70df01c1ca4b33e22528791d | /*
* Copyright 2012-2020 Rafal Lewczuk <rafal.lewczuk@jitlogic.com>
* <p/>
* 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.... | Java | zorka-core/src/test/java/com/jitlogic/zorka/core/test/tracer/STraceHandlerUnitTest.java | jitlogic/zorka | gpl-3.0 | 14,714 | 428 | codeparrot/github-code |
19fe6ef7243faea6ed1d34fb91c1bb55367f36fb2961c400610e5f81e0c69f1a | /*----------------------------------------------------------------------------
AstroSim: Simulation of astrocyte networks Ca2+ dynamics
Copyright (c) 2016-2017 Jules Lallouette
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | C | src/KChICell.h | jlallouette/AstroSim | gpl-3.0 | 8,438 | 202 | codeparrot/github-code |
a28bbbcea169777d2d0589ec7035d9e23d00204fe0a3c5a3cabe1fdaf85bac98 | using UnityEngine;
using Google.Protobuf;
using Org.Dragonet.Cloudland.Net.Protocol;
namespace CloudLand.Networking.Handlers
{
class ServerEntityUpdateHandler : MessageHandler
{
public void handle(CloudLandClient client, IMessage messageReceived)
{
ServerEntityUpdateMessage messag... | C# | Assets/Networking/Handlers/ServerEntityUpdateHandler.cs | CloudLandGame/CloudLand-UnityClient | gpl-3.0 | 1,608 | 40 | codeparrot/github-code |
97b1da86e3728b7c99a4d50c47a9b83c3e5ad159b18cef526309d7c489794427 |
#include "stdafx.h"
//#define WITH_GPIO
#include "HomeEasy.h"
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include "RfTxRx/Print.h"
#ifdef WITH_GPIO
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sched.h>
#include <wiringPi.h>
//#include "RCSwitch.h"
#include "RfTxR... | C++ | hardware/HomeEasy.cpp | labelette91/domoticz-git | gpl-3.0 | 13,013 | 529 | codeparrot/github-code |
cbea231d4ede4618d3ca9efba7e06d3e29d4d6a112f36399aaf5937bd188b43d | package com.acmebutchers.app.presentation.map;
import com.acmebutchers.app.domain.interactor.DefaultSubscriber;
import com.acmebutchers.app.domain.interactor.map.GetButcherShops;
import com.acmebutchers.app.domain.interactor.map.GetCurrentLocation;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mo... | Java | app/src/test/java/com/acmebutchers/app/presentation/map/MapPresenterTest.java | chusobadenas/ACMEButchers | gpl-3.0 | 1,582 | 60 | codeparrot/github-code |
c5dd530614e7cf1e296c5c1a7e01f0ef165af09c4d4a0b95c341033b195fa249 | package amidst.gui;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import amidst.logging.Log;
import amidst.resources.ResourceLoader;
public class License
{
private InputStream fileStream;
private String name;
private String content... | Java | src/amidst/gui/License.java | Sedridor/AMIDST-CC | gpl-3.0 | 2,107 | 94 | codeparrot/github-code |
ea23522a195b619b51f3edc07e517ff48d34be88c6c35e7df639d9fb4fc77434 | /**********************************************************************
Golgotha Forever - A portable, free 3D strategy and FPS game.
Copyright (C) 1999 Golgotha Forever Developers
Sources contained in this distribution were derived from
Crack Dot Com's public release of Golgotha which can be
fou... | C++ | i4/loaders/mp3/layer3.cc | hairymunky/golg | gpl-3.0 | 57,361 | 2,174 | codeparrot/github-code |
9de88088df224dd2f93e8a4dce0e61056f62dd6a525e276a7dde61c297ac7607 | /* dataset.h */
/*
Copyright (C) 2015 Scott A. Czepiel
This file is part of mlelr.
mlelr 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)... | C | src/dataset.h | czep/mlelr | gpl-3.0 | 2,499 | 74 | codeparrot/github-code |
7f124533304105b8cae53ad7b2a328efb0accc0d17c4cf872032fda20c5ec7f5 | <?php
$users = $d->GetRows("*", "tab_utenti", "", "", "user");
$tot_res = -1;
$Where = "";
if (!isset($_GET['page']))
{
$_GET['page'] = "first";
}
if (!empty($_POST))
{
$Where = "user LIKE '" . $_POST['user'] . "'";
if (trim($_POST['ip']) == "")
{
$_POST['ip'] = "%";
}
if (trim($_POST['... | PHP | forms/frm_connections.php | clagiordano/weblibs | gpl-3.0 | 4,224 | 159 | codeparrot/github-code |
e3cd0dc98c74356cecc676331560643ada4e8f1ff202bc0b6a09b21c7e0feefa | <!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7 "> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class... | HTML | content/painter/portfolio-item-2.html | blakel12/metavault | gpl-3.0 | 16,270 | 324 | codeparrot/github-code |
788f330ec3439c1d2ea1105df1d956195e952655add9bf5e23a58251c5a9d271 | package org.hacker.core.config;
import javax.sql.DataSource;
import org.hacker.core.Dict;
import com.jfinal.kit.PathKit;
import com.jfinal.plugin.activerecord.generator.Generator;
import com.jfinal.plugin.druid.DruidPlugin;
/**
* 在数据库表有任何变动时,运行一下 main 方法,极速响应变化进行代码重构
*/
public class _JFinalDemoGenera... | Java | src/main/java/org/hacker/core/config/_JFinalDemoGenerator.java | slashchenxiaojun/wall.e | gpl-3.0 | 1,845 | 59 | codeparrot/github-code |
2add0e0132d4c5832f55bdb9be2d2aac72c546258181ca13732f31e24461a80d | #!/usr/bin/env python
# This file is part of nexdatas - Tango Server for NeXus data writer
#
# Copyright (C) 2014-2017 DESY, Jan Kotanski <jkotan@mail.desy.de>
#
# nexdatas is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | Python | nxsselector/Data.py | nexdatas/selector | gpl-3.0 | 3,391 | 107 | codeparrot/github-code |
53d0198f87475470f78ed1a45473514d7ebea55da7904c88aba9aec440594816 | /*
* Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License,
* Version 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.h2.jaqu;
import org.h2.jaqu.Table.IndexType;
/**
* This class provides utility met... | Java | AD/Tema 2/h2/src/tools/org/h2/jaqu/Define.java | ferquies/2dam | gpl-3.0 | 2,168 | 72 | codeparrot/github-code |
6bb7c2d993cc054ae6c656eb325c925d4b4b20529b4417d491ebe6bb5f163e94 | #include <iostream>
#include "core/tuple.hpp"
#include "core/alarm.h"
int main(void)
{
auto t1 = std::tuple<int, std::string>{1, "one"};
auto t2 = jle::tuple<int, std::string>{2, "two"};
if(t1 == t2)
std::cout << "yes" << std::endl;
if(t1 < t2)
std::cout << "yes" << std::endl;
... | C++ | examples/onefile/core/ex_tuple.cpp | jleahred/jle_cpp_tk | gpl-3.0 | 533 | 39 | codeparrot/github-code |
7f92b400c6cffcaf5e5635aebc94a1b6c7bfc24b575a4151064b1400ab2600b2 | /*
File: leasurfaceboxprivate.h
Project: leafhopper
Author: Douwe Vos
Date: Nov 17, 2014
e-mail: dmvos2000(at)yahoo.com
Copyright (C) 2014 Douwe Vos.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published b... | C | leafhopper/src/surface/leasurfaceboxprivate.h | douwevos/natpad | gpl-3.0 | 1,104 | 32 | codeparrot/github-code |
5dd0d9289b43476c84d0a1bfd22599ac90eab3897332399750f58c5b819e0a97 | import { Component, OnInit, OnDestroy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Response } from '@angular/http';
import { NgbActiveModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
import { EventManager, AlertService, JhiLanguageService } from 'ng-jhipster';
import { Pag... | TypeScript | anelclothesapp/src/main/webapp/app/entities/pago/pago-dialog.component.ts | jlopezjuy/ClothesHipster | gpl-3.0 | 3,275 | 113 | codeparrot/github-code |
8912cdcac3ef8ccc9bcee720b40c32ddccd49eba11d23ab52daf94228a375504 | import React from 'react';
import PermitSearchResultsByAddress from './PermitSearchResultsByAddress'
function PermitSearchResultsAddress(props) {
if (props.data === null) {
return <p>No results found</p>;
}
if (!props.data.length) {
return <p>No results found</p>;
}
const addressList = props.data.... | JavaScript | src/app/development/permits/PermitSearchResultsAddresses.js | cityofasheville/simplicity2 | gpl-3.0 | 1,185 | 40 | codeparrot/github-code |
bb234c427b22e5fc0f67a156a57283235cce0e632f6a380d0a58293e73feadb5 | @import url("../../../css/common.css");
.interact .attented{background:url(../images/btn_attented2.gif) no-repeat 0 0;}
html,
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
padding: 0;
}
body {
margin: 0;
font-family: 'microsoft yahei';
min-width:1265px;
}
body .pub_footerall {
border-top-color: #a7b9c4;
}
body .... | CSS | 30_Android_Looper/Handler运行机制 - maimingliang - 博客频道 - CSDN.NET_files/style.css | wangchaoqun1997/fuck_times | gpl-3.0 | 20,119 | 985 | codeparrot/github-code |
1695061addaa786618e03ed6c87df884fc3f3486028054b7c19218f6c2fe1f12 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation
\\... | C++ | src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.C | will-bainbridge/OpenFOAM-dev | gpl-3.0 | 3,358 | 128 | codeparrot/github-code |
2a62c0fba49c55748f618407f339ab8b8caf5bd252bc97a8c5706b68acf2019d | package de.indiplex.multiworlds.generators;
import java.util.Random;
import org.bukkit.Chunk;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.generator.BlockPopulator;
/**
*
* @author temp
*/
public class PicWoolPopulator extends BlockPopulator {
private PicGenerator pg;
pub... | Java | src/de/indiplex/multiworlds/generators/PicWoolPopulator.java | IndiPlex/MultiWorlds | gpl-3.0 | 1,231 | 43 | codeparrot/github-code |
1099974e14de8ba52a96d65920db6f7702442ab12926d46996c8dda79ac9abe7 | /////////////////////////////////////////////////////////////////////////////
// Name: src/gtk/print.cpp
// Author: Anthony Bretaudeau
// Purpose: GTK printing support
// Created: 2007-08-25
// Copyright: (c) 2007 wxWidgets development team
// Licence: wxWindows Licence
///////////////////////... | C++ | libs/wxMSW-3.1.4/src/gtk/print.cpp | CarlosManuelRodr/wxChaos | gpl-3.0 | 79,780 | 2,498 | codeparrot/github-code |
8cd67b7bd94dcf5f8c9ec6b600cfd80d8d3216fdd75cd3e432dd79e1cbf7ea8d | package org.kucro3.tool.asm;
import java.util.*;
import org.kucro3.clazz.util.ClassDef;
import org.kucro3.jam.opcodes.CodeBlock;
import org.kucro3.jam.opcodes.OpcodeMap;
import org.objectweb.asm.*;
public class ASM implements Opcodes {
public static void asm(String... lines) throws InstantiationException,... | Java | Jam/src/org/kucro3/tool/asm/ASM.java | kucro3/Jam | gpl-3.0 | 2,273 | 77 | codeparrot/github-code |
31094746d758880264c167df4b3eb02d809d557b6db4a550c27ceac6f252839f | import * as mongoose from 'mongoose';
import { AndesDocWithAudit, AuditPlugin } from '@andes/mongoose-plugin-audit';
import * as direccionSchema from './direccion';
import * as contactoSchema from './contacto';
import { ObjSIISASchema, EspecialidadSIISASchema } from './siisa';
import { IProfesional } from '../interface... | TypeScript | core/tm/schemas/profesional.ts | andes/api | gpl-3.0 | 7,035 | 182 | codeparrot/github-code |
447fc48a7fa9b533c7f34aa6aebb6574dc66126472196337467f1c22614e7448 | package sct.hexxitgear.net;
import com.google.common.collect.Maps;
import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.FMLEmbeddedChannel;
import cpw.mod... | Java | src/main/java/sct/hexxitgear/net/HexxitGearNetwork.java | CannibalVox/HexxitGear | gpl-3.0 | 4,110 | 93 | codeparrot/github-code |
b539fba1fd6afaf2702bc2b75c74607329fc58901ff6605c36847d8ba8eea121 | package call;
import java.awt.Color;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
public class Server extends AbstractId imple... | Java | src/call/Server.java | tobiasschulz/voipcall | gpl-3.0 | 5,571 | 194 | codeparrot/github-code |
ae462dc5815be72a4bf3fbacedc1a37af72ef05d269ba1552f0e7bc25bfd593d | package clientUI;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.io.IOException;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swin... | Java | TASystem/src/clientUI/LoginUI.java | misaki-nyanya/MyPieces | gpl-3.0 | 8,138 | 277 | codeparrot/github-code |
62a8f162d2fa0c861b4fda862125ceb0ef2c1591a386e2fcf883ea982ea49e49 | <?php
/**
* @package XG Project
* @copyright Copyright (c) 2008 - 2015
* @license http://opensource.org/licenses/gpl-3.0.html GPL-3.0
* @since Version 3.0.0
*/
if ( ! defined ( 'INSIDE' ) ) { die ( header ( 'location:../../' ) ) ; }
class Forum extends XGPCore
{
const MODULE_ID = 14;
/**
... | PHP | application/controllers/game/forum.php | XG-Project/XG-Project | gpl-3.0 | 1,016 | 53 | codeparrot/github-code |
843a2b51c304c3e0fa239d6a3fc09fce08f525ca9f03ddb76626abfa2c9918c8 | /*
* ESPRESSIF MIT License
*
* Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on ESPRESSIF SYSTEMS products only, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to de... | C | lib/libesp32_div/ESP32-HomeKit/src/esp_hap_pair_common.c | stefanbode/Sonoff-Tasmota | gpl-3.0 | 3,834 | 128 | codeparrot/github-code |
e4acb0e15cad3473735d96b2276a4b5ceafd873e80c862bd83486b75298ac75b | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\/ M anipulation |
-------------... | C++ | src/lagrangian/spray/submodels/BreakupModel/ETAB/ETAB.H | OpenFOAM/OpenFOAM-2.0.x | gpl-3.0 | 4,222 | 160 | codeparrot/github-code |
485d1c7e16b02582e1fdbc19015f900a7fda739c6d43e96717671e8ae805233e | using System; // IComparable
using System.Diagnostics; // Debug.Assert
using static RAM.Base; // Operator
namespace RAM {
class Nbr : IComparable<Nbr> {
internal ulong Val { get; } = 0; // Numerical value of the number itself
internal int Level { get; } = 0; // Number of operators (parent... | C# | Nbr.cs | Blanvillain/LeCompteEstBon | gpl-3.0 | 3,634 | 82 | codeparrot/github-code |
db91745b1357b2d31b1e19fab3fb390bf77ac1c74fc8a8f70f20b925c1980831 | /*
* Copyright (c) 2013 Yaroslav Stavnichiy <yarosla@gmail.com>
*
* This file is part of NXJSON.
*
* NXJSON 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 ... | C | lib/SRC/VideoAndroid/nxjson.c | hyyh619/ARToolKit_5.3.1 | gpl-3.0 | 13,585 | 539 | codeparrot/github-code |
3f60b4355f8365bd8551eec8181531443ce1a54fdb9b50beb51e9df3d5493fef | package com.hh.framework.gamestate.states;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import com.hh.Game;
import com.hh.framework.RenderHelper;
import com.hh.framework.gamestate.GameState;
import com.hh.input.KeyInput;
import com.hh.objects.TextBox;
/**
* COSC... | Java | project/src/com/hh/framework/gamestate/states/ControlsState.java | Solarnum/Hydrogen-Hank | gpl-3.0 | 1,881 | 79 | codeparrot/github-code |
3826f5317219644a71470ca79dfb0c81f8e42a82da4990ea079a49d90c39a9b1 | /*
* (c) Copyright 2010-2011 AgileBirds
*
* This file is part of OpenFlexo.
*
* OpenFlexo 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... | Java | flexographicutils/src/main/java/org/openflexo/jedit/FMLTokenMarker.java | openflexo-team/gina | gpl-3.0 | 4,845 | 125 | codeparrot/github-code |
8e2c190a5d4b4067ace7c1d16aaaf00381d3c1a4bbd54ad613feb5f048858536 | module Util where
import Ast
import Char
import Data.Bits
import Text.ParserCombinators.Parsec.Pos
hex d v = hex_ d (fromInteger v)
hex_ 0 v = ""
hex_ d v = (hex_ (d-1) (v `div` 16)) ++ [(hx (v `mod` 16))]
bv n b = if (testBit b n) then "1" else "0"
bz 0 v = ""
bz n v = (bv (n-... | Haskell | tools/fsmLanguage/kurm/assembler/Util.hs | luebbers/reconos | gpl-3.0 | 2,160 | 55 | codeparrot/github-code |
fc8306258bf0c45922ff4ac0d14b7c29fe8d32b69b900f4217e1f7ea260d271c | // $Id: iwDemolishBuilding.cpp 9357 2014-04-25 15:35:25Z FloSoft $
//
// Copyright (c) 2005 - 2015 Settlers Freaks (sf-team at siedler25.org)
//
// This file is part of Return To The Roots.
//
// Return To The Roots is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public ... | C++ | src/ingameWindows/iwDemolishBuilding.cpp | uqs/s25client | gpl-3.0 | 3,218 | 98 | codeparrot/github-code |
c43806085dad2ec710b743b654235ebbfac26b4d310ca4512bd9b71e4141ebdc | package io.github.projektmedinf.wifisdcryptolocker;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import io.github.projektmedinf.wifisdcryptolocker.data.dao.UserDao;
import io.github.projektmedinf.wifisdcryptolocker.data.dao.impl.... | Java | app/src/androidTest/java/io/github/projektmedinf/wifisdcryptolocker/UserServiceImplTest.java | ProjektMedInf/WiFiSDCryptoLocker | gpl-3.0 | 2,033 | 56 | codeparrot/github-code |
5776b1e6aa91cf8e90d91b2acca7a65db3e2e159bd245867337968f88cf648a5 | package br.nom.strey.maicon.loterias.quina;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflat... | Java | mobile/Loterias/src/main/java/br/nom/strey/maicon/loterias/quina/QuinaListFragment.java | mstrey/lotoNaMao | gpl-3.0 | 9,624 | 270 | codeparrot/github-code |
55ff77a863f203d93176c1d49882d72c786b450fde9c7512818c5c461640af08 | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright (C) 2012-2015 Marco Craveiro <marco.craveiro@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 Fou... | C++ | projects/masd.dogen.dia/src/types/attribute.cpp | DomainDrivenConsulting/dogen | gpl-3.0 | 3,418 | 81 | codeparrot/github-code |
377764a73ae33005ad05c2d37c03211516b080bdc362314dd16966a6bcc29941 | var fs = require('fs'), path = require('path');
var uaList = fs.readFileSync(path.join(__dirname, 'ua.txt'));
uaList = uaList.toString().split('\n');
var OSs = {};
var browsers = {};
var browserVersions = {};
var unknown = [];
var osMatch = {
ios: /iOS|iPhone OS/i,
android: /Android/i,
linux: /Linux/i,
win: /W... | JavaScript | ua_handler.js | MulberryComic20/ConnectMessenger-web | gpl-3.0 | 1,808 | 96 | codeparrot/github-code |
d5ad814257b4d55a280b8ab89ea823f5f256bf949d0e07cb61e8a4469ac56b44 | import gzip
import os
import pickle
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
matplotlib.use('TKagg')
def show_attention():
# Load attentions
print('Loading attentions to pickle file')
with gzip.open(
os.path.join('training_results', 'torch_train', 'attentions.pkl.gz'),
... | Python | attention_graphs.py | albertaparicio/tfg-voice-conversion | gpl-3.0 | 905 | 39 | codeparrot/github-code |
d24911a23c82f52a011cf5aafb66f08abc03d502d8458f7086077fbe5b2be164 | /******************************************************************************
Utility to create a pcap file of a 6in4 stream present in an origin pcap file
Copyright (C) 2013 Samuel Jero <sj323707@ohio.edu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General P... | C | strip6in4.c | samueljero/strip6in4 | gpl-3.0 | 4,544 | 188 | codeparrot/github-code |
2324d0e7f9d098e8204f26fb0cb263c3e558e638ddd87bee68c65d5bbcfe761e | /***************************************************************************
* *
* Copyright (C) 2017 Seamly, LLC *
* *
* https:/... | C++ | src/libs/vtools/tools/drawTools/operation/mirror/vabstractmirror.cpp | FashionFreedom/Seamly2D | gpl-3.0 | 10,591 | 224 | codeparrot/github-code |
11ba0a2132d8df32613e5dc2e064965531f8fadb4c2524d8fdba2ecd18aa1ed4 | package org.odfi.indesign.core.module.filestash
import org.odfi.ooxoo.model.ModelBuilder
import org.odfi.ooxoo.model.producer
import org.odfi.ooxoo.model.producers
import org.odfi.ooxoo.model.out.markdown.MDProducer
import org.odfi.ooxoo.model.out.scala.ScalaProducer
import org.odfi.ooxoo.core.buffers.structural.io.sa... | Scala | indesign-stdplatform/src/main/scala/org/odfi/indesign/core/module/filestash/FileStashModel.xmodel.scala | opendesignflow/indesign | gpl-3.0 | 1,332 | 53 | codeparrot/github-code |
f6f55fd4ff3dd4f93edb51e83a86b5c661c68f7d82922a9767d06beaf84e0567 | <?php
/**
* Single Product stock.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Ook al doen we voorraadbeheer, statuslabel nooit tonen op nationaal niveau
if ( ! is_main_site() ) {
?>
<p ... | PHP | woocommerce/single-product/stock.php | OxfamFairTrade/ob2c | gpl-3.0 | 5,751 | 129 | codeparrot/github-code |
9c89ff7eaa88523987cbcb9ebe01d343d3cd6c362872c421d9d3f6bff19f4a3a | /*******************************************************************************
Project : Auto-SAT_Tools
FileName : GraphRightView.cpp
Description : Implementation file for CGraphRightView class
$Log: X:/Archive/Sources/SigGrphWnd/GraphRightView.cpv $
Author(s) : Raja N
Date Create... | C++ | Sources/SigGrphWnd/GraphRightView.cpp | bentearadu/UDS_Lear | gpl-3.0 | 11,326 | 338 | codeparrot/github-code |
5a38e6ded11ca56c105dd7571a55158687e29a76287647616ef8d4f2d2ec9068 | <?php
/**
* Copyright © 2015 Customer Paradigm. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Infobeans\OneStepCheckout\Model\CustomBlock;
use Magento\Checkout\Model\ConfigProviderInterface;
use Magento\Store\Model\ScopeInterface;
class CustomBlock implements ConfigProviderInte... | PHP | app/code/Infobeans/OneStepCheckout/Model/CustomBlock/CustomBlock.php | rajmahesh/magento2-master | gpl-3.0 | 1,205 | 38 | codeparrot/github-code |
087b6889299481bf87a61d52536a135fb8062d1498202314603e9b163f20f4da | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using EasyHook;
using System.IO;
using System.Runtime.Remoting;
using System.Drawing;
using System.Drawing.Imaging;
using System.Diagnostics;
using Capture.Interface;
using System.Threading;
nam... | C# | Capture/Hook/BaseDXHook.cs | arvydas/blinkstick-client | gpl-3.0 | 14,106 | 455 | codeparrot/github-code |
951bb7ff3bd17a454cccf403af6ebf38809a9e42d60e67890a1fc09e459b1a98 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
\\/ M anipulation |
---------------... | C++ | src/OpenFOAM/db/dictionary/functionEntries/inputModeEntry/inputModeEntry.C | themiwi/freefoam-debian | gpl-3.0 | 3,487 | 139 | codeparrot/github-code |
09c09fc5f6d70f8f5f1ab9bf6b17a71ac8c9501656b6c14d353875582ad76391 | /* xoreos - A reimplementation of BioWare's Aurora engine
*
* xoreos is the legal property of its developers, whose names
* can be found in the AUTHORS file distributed with this source
* distribution.
*
* xoreos is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Publ... | C++ | src/xoreos.cpp | Supermanu/xoreos | gpl-3.0 | 9,680 | 379 | codeparrot/github-code |
4822818942a99159effe59db5968f86a7e0b2e584dcc8b257a1e38d4db680235 | import Client from '../../../api';
import { AsyncActionStatus } from '../../../const/AsyncActionStatus';
import { getCurrency, getNobtName, getPersonNames } from './selectors';
export const UPDATE_CREATE_NOBT_STATUS = 'NewNobt.UPDATE_CREATE_NOBT_STATUS';
export const SELECT_CURRENCY = 'NewNobt.SELECT_CURRENCY';
expor... | JavaScript | src/routes/CreateNobt/modules/actions.js | nobt-io/frontend | gpl-3.0 | 2,130 | 103 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.