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 |
|---|---|---|---|---|---|---|---|---|
08f23e82d287096d9acc85bbf8782d8c8d506d166c6996d32761e7203dc4f468 | /*
* This file is part of QuarterBukkit-Plugin.
* Copyright (c) 2012 QuarterCode <http://www.quartercode.com/>
*
* QuarterBukkit-Plugin is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of... | Java | plugin/src/main/java/com/quartercode/quarterbukkit/util/QuarterBukkitExceptionListener.java | QuarterCode/QuarterBukkit | gpl-3.0 | 2,265 | 63 | codeparrot/github-code |
b115a54addd6861b90ec9b4bbb323c5b8a425ee1463fc740b1d61f6d6629ab26 | local function run(msg, matches)
local group = load_data('bot/group.json')
local addgroup = group[tostring(msg.chat_id)]
if addgroup then
if is_momod(msg) or is_robot(msg) then
return false
else
local group_mute_all = group[tostring(msg.chat_id)]['settings']['mute_all']
if group_mute_all == 'yes' then
tg.deleteMessages... | Lua | plugins/msg_checks.lua | CRUELTM/cruel_bot | gpl-3.0 | 4,464 | 97 | codeparrot/github-code |
92d85d374a39aabf34915f95f3f0cfc0ff6e7174d42f7c4439bfd6d04732b65d |
#include "h17disk.h"
#include <stdio.h>
static int usage(char *progName) {
fprintf(stderr,"Usage: %s old_h17disk_file new_h17disk_file\n",progName);
return 1;
}
int main(int argc, char *argv[]) {
H17Disk *image = new(H17Disk);
if (argc < 2 || argc > 3)
{
usage(argv[0]);
return 1;
... | C++ | src/cmd/h17d_raw.cpp | mgarlanger/heath-imager | gpl-3.0 | 850 | 52 | codeparrot/github-code |
5a5d7b1f0b9e1d7520c51d2983989175910f609924637ece970abfeb25199728 | __author__ = 'xiaoxiaol'
import numpy as np
import pylab as pl
import scipy
import pandas as pd
import seaborn as sns
import os
import sys, getopt
from scipy.cluster import hierarchy
import platform
from scipy.stats.stats import pearsonr
import scipy.stats as stats
from PIL import Image
import glob
from sklearn.metri... | Python | IVSCC/morph_clustering_on_bbp_features_old_example.py | XiaoxiaoLiu/morphology_analysis | gpl-3.0 | 37,767 | 893 | codeparrot/github-code |
b03fdf83966df4d5e3868dcbd8e1914aed9160c165b80037fcb80b7b96275053 | public class Schuler
{
private String name;
private int test1;
private int test2;
private int test3;
public Schuler()
{
name = "";
test1 = 0;
test2 = 0;
test3 = 0;
}
public void setName(String nm)
{
name = nm;
}
public String getName()
{
return name;
}
public void setPunkte(int i, int punkte... | Java | src/Schuler.java | Dominik-Licari/schoolwork | gpl-3.0 | 758 | 45 | codeparrot/github-code |
14a09646d8c36e6f9fe0ce5c7d8fac7f5f4f67dc0961ce86547700bebe9290a4 | /**
* This file is part of Graylog.
*
* Graylog 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.
*
* Graylog is distributed in t... | Java | graylog2-server/src/test/java/org/graylog2/alerts/types/FieldContentValueAlertConditionTest.java | pdepaepe/graylog2-server | gpl-3.0 | 7,289 | 186 | codeparrot/github-code |
1f1fa56feb34b80897b11fa68f6abfd5af3884f9af799523a655d4cf6abce388 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/***************************************************************************
* drumkitparser.cc
*
* Tue Jul 22 16:24:59 CEST 2008
* Copyright 2008 Bent Bisballe Nyeng
* deva@aasimon.org
**********************************... | C++ | src/drumkitparser.cc | joulez/drumgizmo | gpl-3.0 | 8,523 | 266 | codeparrot/github-code |
4e48087d58be5f6a2b4ba469b40fc79a61afe0bd971485145c3f273c8481b98c | /*******************************************************************************
* Signavio Core Components
* Copyright (C) 2012 Signavio GmbH
*
* 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 Found... | Java | platform extensions/bpmn20xmlbasic/src/de/hpi/bpmn2_0/factory/node/DataStoreFactory.java | KarnYong/BPaaS-modeling | gpl-3.0 | 3,603 | 99 | codeparrot/github-code |
4010211e28a423a1c325f9feb9519ecda8cc05748391b5c97de930b4c236d008 | from xboxdrv_parser import Controller
from time import sleep
import argparse
import os
import sys
sys.path.append(os.path.abspath("../../.."))
from util.communication.grapevine import Communicator
from robosub_settings import settings
def main (args):
com = Communicator (args.module_name)
controller = Controll... | Python | src/movement/fuzzification/test/xbox_controller.py | pi19404/robosub-1 | gpl-3.0 | 2,612 | 65 | codeparrot/github-code |
5212c3c7348c143ad53629753c3616acccb1514e0d867d19725bac1f6b0a084e | /*
Grammatical Evolution in Java
Release: GEVA-v2.0.zip
Copyright (C) 2008 Michael O'Neill, Erik Hemberg, Anthony Brabazon, Conor Gilligan
Contributors Patrick Middleburgh, Eliott Bartley, Jonathan Hugosson, Jeff Wrigh
Separate licences for asm, bsf, antlr, groovy, jscheme, commons-logging, jsci is included in the l... | Java | GEVA/test/Operator/Operations/ContextSensitiveOperations/NodalMutationTest.java | leokdawson/di-geva | gpl-3.0 | 6,288 | 178 | codeparrot/github-code |
ff13731ce81e9d24ef3261640c5ed33fbfde31b5c7232fe8f19e6791295d3355 | package com.bonepeople.android.sdcardcleaner.basic;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Message;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatAc... | Java | app/src/main/java/com/bonepeople/android/sdcardcleaner/basic/BaseAppCompatActivity.java | bonepeople/SDCardCleaner | gpl-3.0 | 3,305 | 100 | codeparrot/github-code |
989726224d6979be5106c183573703e5bd3a4febf87fdf53be899ef0c13c4ef5 | /* Define frame-object for GNU Emacs.
Copyright (C) 1993-1994, 1999-2011 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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... | C | QMOLEDEV/emacs24/src/frame.h | chriskmanx/qmole | gpl-3.0 | 40,765 | 1,144 | codeparrot/github-code |
24f232b7460b6c3771064deb469517b72a49992de4c581d4a7969bc73f85bfa7 | /*
* Copyright (C) 2010---2013 星星(wuweixing)<349446658@qq.com>
*
* This file is part of Wabacus
*
* Wabacus 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... | Java | src/com/wabacus/system/datatype/IntType.java | foxerfly/Wabacus4.1src | gpl-3.0 | 3,446 | 117 | codeparrot/github-code |
b4bee4fd135509b15931425474c3a27e97861761d8cb89185591d99f0dae9f5c | <?php
/**
* Classes for dealing with devices
*
* PHP Version 5
*
* <pre>
* HUGnetLib is a library of HUGnet code
* Copyright (C) 2014 Hunt Utilities Group, LLC
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the... | PHP | src/php/devices/inputTable/drivers/virtual/CloneVirtual.php | hugllc/HUGnetLib | gpl-3.0 | 7,072 | 211 | codeparrot/github-code |
185a16f9ada4614c46dc8e9ddfe7ff04d74e0d0911ab1ae0f800307ae7c2b253 | /*********************************************************************
* Copyright 2010, UCAR/Unidata
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
* $Id$
* $Header$
*********************************************************************/
#include "config.h"
#include <stdlib.h>
#in... | C | ropp-7.0/netcdf-4.1.3/libcdmr/nccrproto.c | MengbinZhu/pfldp | gpl-3.0 | 12,060 | 456 | codeparrot/github-code |
c23523d0f4200b7c2da8038b53155d6df8db0a8a334c37ab9e6b8d152029ad84 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>Help - DInSAR</title>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<table class="header">
<tbody>
<tr class="header">
<td class="header"> Three-Pass DInSAR (InSAR operator)</td>
<td clas... | HTML | jlinda/jlinda-nest/src/main/resources/doc/help/operators/DInSAROp.html | kristotammeoja/ks | gpl-3.0 | 3,868 | 91 | codeparrot/github-code |
dff64a8331723eb7247de66644e50ea91ac7789e638db4843f0b7b37937b4252 | #include <stdio.h>
#include "thash.h"
#include<stdlib.h>
// As chaves dos valores a serem armazenados
#define CHAVE1 "abcd"
#define CHAVE2 "xyz2"
#define CHAVE3 "3qwert"
// Tamanho default da tabela
#define CAPACIDADE 5
// Funcao para converter os dados armazenados em strings
char* mostra(void * p) {
return (ch... | C | Hash Table/p5.c | EltonBroering/Programacao_C | gpl-3.0 | 1,567 | 63 | codeparrot/github-code |
c91f8045c6ac3b7a97adb2d83f9e40760ae6017fb10113fa0007e23a48b33f72 | if (Meteor.isClient) {
Session.setDefault('degF',-40);
Session.setDefault('degC',-40);
Template.temperatureBoxes.helpers({
degF: function(){
return Session.get('degF');
},
degC: function(){
return Session.get('degC');
}
});
Template.temperatureBoxes.events({
'keyup #c': func... | JavaScript | tempconv.js | a2life/meteor-temp-converter | gpl-3.0 | 786 | 40 | codeparrot/github-code |
9db6a535f2843c77fdfcc8e6d259b12ce93c18f468ce1ad34a971a8a4d97d69c | /*
* Twidere - Twitter client for Android
*
* Copyright (C) 2012 Mariotaku Lee <mariotaku.lee@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Lice... | Java | src/com/pahans/kichibichiya/loader/UserSearchLoader.java | pahans/Kichibichiya | gpl-3.0 | 1,944 | 61 | codeparrot/github-code |
c887624f59485505969f4e49c2aec64d997d7357ebca884e3ece9eb1dabad174 | <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252" />
<title> About permissions to manage the Kaspersky Security Service </title>
<link rel="stylesheet" type="text/css" href="css.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="styleshe... | HTML | Directory/146612.html | MemsourceDemo/MemsourceDemo | gpl-3.0 | 11,714 | 160 | codeparrot/github-code |
54e2b7452815d35952d4d0659161313ce49833e20481e242090cabd3aaa913d3 | <?php
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2021 Yurii Kuznietsov, Taras Machyshyn, Oleksii Avramenko
* Website: https://www.espocrm.com
*
* EspoCRM is free software: you can redist... | PHP | application/Espo/Core/Hooks/Base.php | ayman-alkom/espocrm | gpl-3.0 | 3,319 | 129 | codeparrot/github-code |
eff9bc8b04aab2c31e6ebecc767bad51264460fea32870725a945c2de7e5b479 | /**
******************************************************************************
* @file BSP/Src/joystick.c
* @author MCD Application Team
* @version V1.1.0
* @date 17-February-2017
* @brief This example code shows how to use the joystick feature in the
* STM32F446ZE Nucleo 14... | C | libs/STM32Cube_FW_F4_V1.16.0/Projects/STM32F446ZE-Nucleo/Examples/BSP/Src/joystick.c | TRothfelder/Multicopter | gpl-3.0 | 6,406 | 208 | codeparrot/github-code |
b3e35fa73bd4e334aff953ebf71f92994aff48b613e38718b973a26f3f85715b | /*
* ArtTreeKS: Finite dimensional kinematic synthesis for articulated trees
* Copyright(C) 2010-2012 Edgar Simo-Serra <esimo@iri.upc.edu>
* License: see synthesis.h
*/
#include "mapmask.h"
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
static void* memdup( const void *base, size_t size )
{
void... | C | mapmask.c | bobbens/ArtTreeKS | gpl-3.0 | 5,699 | 223 | codeparrot/github-code |
c4586a4dbf04f4b45ba2b5e5478cf504bea97469ac340e03981af5ef76723ade | package com.teckcoder.crashengine.file;
import com.teckcoder.crashengine.utils.logger.Logger;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
public class FileStream {
File file = null;
FileLocationType locationType = null;
private FileStrea... | Java | src/com/teckcoder/crashengine/file/FileStream.java | Techwave-dev/OpenGlModernGameEngine | gpl-3.0 | 1,379 | 55 | codeparrot/github-code |
73f630dc6410c890752a87846cdfec9c562e4ff6f0b126ac02a012eb4a0415e8 | /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/gfx/vid_rdcl.c,v 1.3 2003/02/21 16:51:10 alanh Exp $ */
/*
* $Workfile: vid_rdcl.c $
*
* This file contains routines to control the Redcloud display filter video overlay hardware.
*
* NSC_LIC_ALTERNATIVE_PREAMBLE
*
* Revision 1.0
*
* National Semiconducto... | C | QMOLEDEV/vnc-4_1_3-unixsrc/unix/xc/programs/Xserver/hw/xfree86/drivers/nsc/gfx/vid_rdcl.c | chriskmanx/qmole | gpl-3.0 | 94,281 | 2,914 | codeparrot/github-code |
aacded66f98a8934a42c27575359048cbbf69917d6ac46c9222779f2456760ac | //-----------------------------------------------------------------------------
// Class implementation: Input_Value::Line
//-----------------------------------------------------------------------------
#include "../pragmas.h"
#include "Input_Value_Line.h"
#include "Input_Text_File.h"
#include "Assert_That.... | C++ | libs/common/Input_Value_Line.cpp | geoSpacer/SUE | gpl-3.0 | 1,416 | 59 | codeparrot/github-code |
381c4150348f5013b2f76f19fd0e3255d2ce63bef053df612bf1e59e146b4ac8 | from django.core.management.base import BaseCommand, CommandError
from django.core import management
from django.db.models import Count
from scoping.models import *
class Command(BaseCommand):
help = 'check a query file - how many records'
def add_arguments(self, parser):
parser.add_argument('qid',ty... | Python | BasicBrowser/scoping/management/commands/check_query_file.py | mcallaghan/tmv | gpl-3.0 | 1,107 | 36 | codeparrot/github-code |
0dface7a1e19107e667e7a2acde93474da6f978f3525f6d775b9283186b78ccb | package com.watabou.pixeldungeon.windows;
import com.nyrds.pixeldungeon.game.GameLoop;
import com.nyrds.pixeldungeon.game.GamePreferences;
import com.nyrds.pixeldungeon.ml.R;
import com.nyrds.pixeldungeon.utils.ModDesc;
import com.nyrds.pixeldungeon.windows.DownloadProgressWindow;
import com.nyrds.pixeldungeon.windows... | Java | RemixedDungeon/src/main/java/com/watabou/pixeldungeon/windows/WndModSelect.java | NYRDS/pixel-dungeon-remix | gpl-3.0 | 5,619 | 199 | codeparrot/github-code |
e9363e7e2293de1885f9bb5d9d63752d76792fa99776133bfa58f465086df308 | /* -*- mode: c; c-basic-offset: 8 -*- */
/* NCR Dual 700 MCA SCSI Driver
*
* Copyright (C) 2001 by James.Bottomley@HansenPartnership.com
**-----------------------------------------------------------------------------
**
** This program is free software; you can redistribute it and/or modify
** it under the terms o... | C | drivers/scsi/NCR_D700.c | williamfdevine/PrettyLinux | gpl-3.0 | 10,721 | 461 | codeparrot/github-code |
4fee8ad67f66cd45c9015780c770be6cd07a082ad80e38f27441c32b1cc402d4 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
*
* The contents of this file are subject to the terms of the GNU General Public License Version 3
* only ("GPL"). You may not use this file except in compliance with th... | Java | OpenConcerto/src/org/openconcerto/sql/element/SQLElementDirectory.java | mbshopM/openconcerto | gpl-3.0 | 11,868 | 297 | codeparrot/github-code |
bc571ef1728990584c8d6924e82e7b9e2e5178271cd198467fdd71f9f273951c | #include <stdio.h>
#define MAXLINE 1000
int getlinee(char line[], int max);
int stringdex(char source[], char searchfor[]);
char pattern[] = "ould";
main()
{
char line[MAXLINE];
int found = 0;
while (getlinee(line, MAXLINE) > 0)
if ( strindex(line, pattern) >= 0) {
printf("%s", line... | C | anciC/subgrep.c | hhuseyinpay/Practice-C | gpl-3.0 | 822 | 46 | codeparrot/github-code |
8ab5db12ba2969d6bb228feacf09110375bd521852185c4532f62b054677b67c | package Mojolicious::Command::daemon;
use Mojo::Base 'Mojolicious::Command';
use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
use Mojo::Server::Daemon;
has description => 'Start application with HTTP and WebSocket server';
has usage => sub { shift->extract_usage };
sub run {
my ($sel... | Perl | perl5/lib/perl5/Mojolicious/Command/daemon.pm | smotti/delta_reporting | gpl-3.0 | 3,554 | 109 | codeparrot/github-code |
26745621187307435914514b2694dba0dd7f3e594da40b68ff4f435c237f5bfe | package cn.bjsxt.oop.inherit;
/**
* 测试组合
* @author dell
*
*/
public class Animal2 {
String eye;
public void run(){
System.out.println("跑跑!");
}
public void eat(){
System.out.println("吃吃!");
}
public void sleep(){
System.out.println("zzzzz");
}
public Animal2(){
super();
... | Java | J2SE300/28_51OO/src/cn/bjsxt/oop/inherit/Animal2.java | yangweijun213/Java | gpl-3.0 | 927 | 60 | codeparrot/github-code |
5ea775a79179ee72cbb438c26ab65ea56eed2480311d7eef5c60b09db9abd61c | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2021 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | Java | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/tiles/DungeonWallsTilemap.java | 00-Evan/shattered-pixel-dungeon | gpl-3.0 | 3,780 | 102 | codeparrot/github-code |
f0f16a0357e4eddd97160874ab43bbf1f197dda9b34220b928906c3be34a7c96 | /* $Xorg: PsPolygon.c,v 1.4 2001/02/09 02:04:36 xorgcvs Exp $ */
/*
Copyright 1996, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both ... | C | QMOLEDEV/vnc-4_1_3-unixsrc/unix/xc/programs/Xserver/Xprint/ps/PsPolygon.c | chriskmanx/qmole | gpl-3.0 | 7,703 | 234 | codeparrot/github-code |
551a20841658a187f6de146dc49eb163e163b4e27a398adde8e924939a4c569e | using System;
using System.Windows;
using System.Windows.Threading;
using StructureMap;
using TailBlazer.Views;
namespace TailBlazer.Infrastucture
{
public class BootStrap
{
[STAThread]
public static void Main(string[] args)
{
var app = new App { ShutdownMode = ShutdownMode... | C# | Source/TailBlazer/Infrastucture/BootStrap.cs | MendelMonteiro/TailBlazer | gpl-3.0 | 752 | 31 | codeparrot/github-code |
e0690b7e92db76f651038c4bfabe9bf548b8a00259c02c32fb74e2465fbfdb28 | package org.schabi.newpipe.player;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.ut... | Java | app/src/main/java/org/schabi/newpipe/player/LunchAudioTrack.java | BlenderViking/NewPipe | gpl-3.0 | 10,189 | 238 | codeparrot/github-code |
aefdc0df3db69737719976b6c8b9c181379d349d66e030339d989c5f51f4533f | #include "MD5.h"
#include "string.h"
namespace engine
{
namespace tools
{
using namespace std;
/* Constants for MD5Transform routine. */
#define S11 7
#define S12 12
#define S13 17
#define S14 22
#define S21 5
#de... | C++ | engine/common/tools/src/MD5.cpp | WusiStudio/Genesis | gpl-3.0 | 13,017 | 332 | codeparrot/github-code |
e2ded92ee08bbe87b41d898876d199f1b2d38c83ceb98a72368f4cece4ebd9d2 | package org.melodi.learning.service;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import org.melodi.tools.dataset.DataSet_Corpora;
import org.melodi.tools.evaluation.Evaluation_Service;
import opennlp.ma... | Java | src/org/melodi/learning/service/Classifier_MaxEnt.java | fauconnier/LaToe | gpl-3.0 | 3,137 | 95 | codeparrot/github-code |
979e17baf09de1d63a324443a4c73d50fa26ee48c85c25b1f1e033609d06640d | # -*- coding: utf-8 -*-
import pilas
archi = open('datos.txt', 'r')
nivel = archi.readline()
pantalla = archi.readline()
idioma = archi.readline()
archi.close()
if idioma == "ES":
from modulos.ES import *
else:
from modulos.EN import *
class EscenaMenu(pilas.escena.Base):
"Es la escena de presentación d... | Python | mendeleiev_bros/escena_menu.py | MendeleievBros/Mendeleiev-Bros | gpl-3.0 | 2,715 | 94 | codeparrot/github-code |
c4f05b94838648c839ea32b449abd71ca2e1ba8fae5d51660fd081cf0155a236 | #pragma once
#include "GLObject.h"
#include "GLContext.h"
#include "MessageList.h"
class GLPrintf
{
public:
static QString requiredVersion() { return "#version 430"; }
static QString preamble();
const char *bufferBindingName() const { return "_printfBuffer"; }
const GLObject &bufferObject() const { r... | C | src/render/GLPrintf.h | houmaster/gpupad | gpl-3.0 | 1,101 | 42 | codeparrot/github-code |
4825452eb75a87e9253c4452feb0262f50f85d9a8aa190fb30df77f49e0a415d | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# SSHplus
# A remote connect utlity, sshmenu compatible clone, and application starter.
#
# (C) 2011 Anil Gulecha
# Based on sshlist, incorporating changes by Benjamin Heil's simplestarter
#
# This program is free software: you can redistribute it and/or modify
# it under th... | Python | sshplus.py | NoXPhasma/sshplus | gpl-3.0 | 9,010 | 269 | codeparrot/github-code |
07f695b732b43947fc840bede9b0ddeab8c0f20ce49e369684f613c05341c344 | /*
Copyright (c) 2009 Sebastian Steiger, Integrated Systems Laboratory, ETH Zurich.
Comments, suggestions, criticism or bug reports are welcome: steiger@purdue.edu.
This file is part of ANGEL, a simulator for LEDs based on the NEGF formalism.
The software is distributed under the Lesser GNU General Public License (LG... | C++ | src/negf/GreenFunctions.cpp | XSZHOU/negf-reference | gpl-3.0 | 27,272 | 762 | codeparrot/github-code |
a20b17e4619f5f34f9a3ba42e4a9d23e554be457d9493e7810579ae1aae17f29 | # Copyright 2016 Mycroft AI, Inc.
#
# This file is part of Mycroft Core.
#
# Mycroft Core 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 versio... | Python | mycroft/skills/LILACS_chatbot/__init__.py | ElliotTheRobot/LILACS-mycroft-core | gpl-3.0 | 5,092 | 138 | codeparrot/github-code |
235261cbe5e6fdde4c4c3d91322daf57187a2833402794ff27377cc03ae825d8 | # -*- coding: utf-8 -*-
# This file is part of Gertrude.
#
# Gertrude 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.
#... | Python | document_dialog.py | studio1247/gertrude | gpl-3.0 | 13,956 | 317 | codeparrot/github-code |
9dd1954771eb29938b98cd18fea78b10cc631aa03ed305f2101629253af88177 | /*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... | JavaScript | graylog2-web-interface/src/stores/simulator/SimulatorStore.js | Graylog2/graylog2-server | gpl-3.0 | 1,756 | 54 | codeparrot/github-code |
b5704f82cea683b2086d2e20da09bb2af0f35fb664b9619d87cafdc476d35261 | /*******************************************************************************
* Copyright (C) 2010 Lucas Madar and Peter Brewer
*
* 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 ... | Java | src/main/java/org/tellervo/desktop/hardware/device/LintabDevice.java | petebrew/tellervo | gpl-3.0 | 11,041 | 360 | codeparrot/github-code |
6c0efe74d2001654ba74a3ea779afdd68a2bc806eb1af984b0b5eca2b11ed797 | /*
* JsNameAddrObjectFactory.h
*
* Created on: Jul 9, 2013
* Author: dcampbell
*/
#ifndef JSNAMEADDROBJECTFACTORY_H_
#define JSNAMEADDROBJECTFACTORY_H_
#include "JsObjectFactory.h"
#include <resip/stack/SipMessage.hxx>
#include "JsProxyBase.h"
namespace jessip
{
class JsNameAddrObjectFactory : public jes... | C | src/JsNameAddrObjectFactory.h | mustaphamond/jessip | gpl-3.0 | 708 | 32 | codeparrot/github-code |
84ae493f11028926ebe00f7e64c40aa1764e88c4b708ba4b8af4ce31818206ed | <?php
/**
* @package leavesandlove-wp-plugin-util
* @author Felix Arntz <felix-arntz@leaves-and-love.net>
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
if ( ! class_exists( 'LaL_WP_Plugin' ) ) {
/**
* The base plugin main class.
*
* The main class of each plugin that should use the plugin loader must extend... | PHP | leavesandlove-wp-plugin.php | felixarntz/leavesandlove-wp-plugin-util | gpl-3.0 | 15,683 | 364 | codeparrot/github-code |
2223db40971e9eabb40c5c0b8641e8cf2703c2e6b9f4b13b52bc75b3a0962ae2 | #ifndef __BASEGE_MATRIX4_H__
#define __BASEGE_MATRIX4_H__
//////////////////////////////////////////////////////////////////////////////
//
// MATRIX4.H
//
// Copyright © 2006, Rehno Lindeque. All rights reserved.
//
//////////////////////////////////////////////////////////////////////////////
/* ... | C | implementations/basege/src/basege/old/math/matrix4.h | rehno-lindeque/osi | gpl-3.0 | 4,908 | 128 | codeparrot/github-code |
fa9d5d31a40f1e1b906e5e9b98686298eadcbfd2ef250d5b8d6cb9b9e5f3ffa5 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>Uses of Interface org.apache.poi.sl.usermodel.Notes (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title=... | HTML | resources/Apache/Apache-POI-3.16-beta2/poi-bin-3.16-beta2-20170202/poi-3.16-beta2/docs/apidocs/org/apache/poi/sl/usermodel/class-use/Notes.html | doughtnerd/POD | gpl-3.0 | 13,244 | 245 | codeparrot/github-code |
05029a6d7f14475b21007bc32c14e690d80df18d502e03820e2c7cf265888b45 | // Copyright (C) 2007-2012 Christian Stehno
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CImageLoaderPPM.h"
#ifdef _IRR_COMPILE_WITH_PPM_LOADER_
#include "IReadFile.h"
#include "CColorConverter.h"
#include "CImage.h"
#include "... | C++ | WolvenKit.Irrlicht/source/CImageLoaderPPM.cpp | Traderain/Wolven-kit | gpl-3.0 | 5,858 | 276 | codeparrot/github-code |
1209ac0807a6dd8cf26c8844d45dc09f809e272d456ade8c52ff918a04d75658 | local Missile = require("world/missile")
local Particles = require("world/particles")
local Shot = require("world/shot")
local Structure = require("world/structure")
local PhysicsReferences = require("world/physicsReferences")
local World = class()
World.objectTypes = {
structure = Structure,
shot = Shot,
mis... | Lua | src/world/world.lua | xordspar0/synthein | gpl-3.0 | 5,543 | 217 | codeparrot/github-code |
08cf2580498b363141996f7193c786dbf6614c08f667d89617d0c92b0f1b9c70 | using System;
using System.Collections.Generic;
using Server.Items;
namespace Server.Mobiles
{
public class SBButcher : SBInfo
{
private readonly List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();
private readonly IShopSellInfo m_SellInfo = new InternalSellInfo();
public SBButc... | C# | Scripts/Mobiles/Vendors/SBInfo/SBButcher.cs | ironclad88/JustZH | gpl-3.0 | 2,268 | 64 | codeparrot/github-code |
b07b3cc087bb808a2234628e2e408aa5d6878d815b8a37aa3d0410318f3ee613 | /*
* ULife, the old computer simulation of Life.
* Copyright (C) 1998 by Ian Lane (email: lanei@ideal.net.au)
*
* Distribution: This control is free for public use and components may be
* freely descended from it as long as credit is given to the author.
*
* Converted to C#: 20/07/2011, Serg V. Zhd... | C# | projects/GKv2/GKLifePlugin/ConwayLife/LifeOptions.cs | ruslangaripov/GEDKeeper | gpl-3.0 | 3,422 | 118 | codeparrot/github-code |
bc66ac72320f3242f7f36ee0a4970f2500bfea350fbf87746dc90c9849fe7abe | // polyFEM
// with mass matrix, and all
// plus, correction to quadratic consistency
// periodic boundary conditions
// Solves NS equation for an incompressible
// fluid in Fourier space
#include <CGAL/Timer.h>
// write out matrices
//#define WRITE
//#define EXPLICIT
#include"main.h"
#include"CH_FFT.h"
#include"... | C++ | mains/projected/main_Fourier_TG_2.cpp | ddcampayo/polyFEM | gpl-3.0 | 14,759 | 724 | codeparrot/github-code |
cdf0d0d1c3955b0db625678fa39a084a4acc5a9340742537780fc8e637bcae36 | package bms.player.beatoraja.result;
import static bms.player.beatoraja.ClearType.*;
import static bms.player.beatoraja.skin.SkinProperty.*;
import java.util.*;
import java.util.logging.Logger;
import bms.player.beatoraja.input.KeyCommand;
import com.badlogic.gdx.utils.FloatArray;
import bms.model.BMSModel;
import ... | Java | src/bms/player/beatoraja/result/CourseResult.java | exch-bms2/beatoraja | gpl-3.0 | 12,343 | 355 | codeparrot/github-code |
4a3a35ad3bbfd3ac0369cee3a3708fe9b8d22f87469625c6d3b90a199520384f | // Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source
// & Institut Laue - Langevin
// SPDX - License - Identifier: GPL - 3.0 +
#include "MantidMDAlgorithms/MinusMD.h"... | C++ | Framework/MDAlgorithms/src/MinusMD.cpp | mganeva/mantid | gpl-3.0 | 5,591 | 149 | codeparrot/github-code |
c0c7f2d107c4e512fa92fe67ac21033d84bf14befa347861b883d07da74995c7 | from planarprocess import *
from gds_helpers import *
from itertools import cycle
xmin, xmax = -5, 5
layers = gds_cross_section('mypmos.gds', [(0,xmin), (0, xmax)], 'gdsmap.map')
['P-Active-Well', 'Active-Cut', 'N-Well', 'Metal-2', 'Metal-1', 'P-Select',
'N-Select', 'Transistor-Poly', 'Via1']
wafer = Wafer(1., 5., 0... | Python | test.py | ignamv/PlanarProcess | gpl-3.0 | 2,927 | 86 | codeparrot/github-code |
f920df539dc46ccff37cbe2a986bd80fc84722f344921f1dec82174f8984fc27 | /*
Unix SMB/CIFS implementation.
SMB torture tester - header file
Copyright (C) Andrew Tridgell 1997-1998
Copyright (C) Jeremy Allison 2009
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 ... | C | source3/torture/proto.h | LukeM12/samba | gpl-3.0 | 3,819 | 118 | codeparrot/github-code |
87ccb04b34fefdb3879752feb6bd1a9732296c7bc20577b48f8afcd4a834ce58 | package tools.renamers;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import tools.EntryPoint;
import tools.Tool;
import tools.utils.EnumerationIterator;
import tools.utils.MappingUtils;
import tools.utils.Utils;
public class AllClassesRenamer imple... | Java | src/tools/renamers/AllClassesRenamer.java | MCCarbon/DecompileTools | gpl-3.0 | 1,654 | 53 | codeparrot/github-code |
2d087936a0404cf27820b0343bdf6cb345bc31cced5050f43beaa473ed0c893a | <?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 | blocks/search/lang/en/block_search.php | dpogue/thss-moodle | gpl-3.0 | 2,246 | 49 | codeparrot/github-code |
205386de86dab6d4a715e6a1b47a7d1fa135f5d87fe8c597ab954fd0eb908174 | /*
* Copyright 2016 Takashi Inoue
*
* This file is part of EzPuzzles.
*
* EzPuzzles 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... | C++ | MineSweeper/WallPiece.cpp | Takashi-Inoue/EzPuzzles | gpl-3.0 | 1,118 | 54 | codeparrot/github-code |
32237ce4f1b0df07d10af6a59780169f14798c4dfd71e1e66c97c28bee07622b | /*
* EventAddPlayer.h
*
* Created on: 4 sept. 2010
* Author: fred
*/
#ifndef EIN_EVENT_PRIMARY_ACTION_END_H_
#define EIN_EVENT_PRIMARY_ACTION_END_H_
#include <einheri/common/Event.h>
#include <einheri/common/Player.h>
namespace ein {
class EventVisitor;
class EventPrimaryActionEnd : public Event{
public... | C | src/einheri/common/event/EventPrimaryActionEnd.h | niavok/einheri | gpl-3.0 | 582 | 34 | codeparrot/github-code |
e7fc76757c3546236360eaaefc8610784fc81280bf2ba0516f18da803987e14b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.DependencyInjection;
namespace OpenRnD.AppNgine
{
public class Startup
{
// This meth... | C# | src/OpenRnD.AppNgine/Startup.cs | OpenRnD2/appngine | gpl-3.0 | 1,109 | 35 | codeparrot/github-code |
902b94887221943a94159d34d461bf0516aefe1f58890dd545e6641ecae8f509 | #include "camera.h"
#include "../window.h"
D3DXMATRIX Camera::GetViewMatrix()
{
if (recalculateViewMatrix)
updateViewMatrix();
return viewMatrix;
}
D3DXMATRIX Camera::GetProjectionMatrix()
{
if (recalculateProjectionMatrix)
updateProjectionMatrix();
return projectionMatrix;
}
D3DXVECTOR3 C... | C++ | Graphics/camera.cpp | XZelnar/Simplex | gpl-3.0 | 1,019 | 41 | codeparrot/github-code |
ef6ba3328a5b268f2cf61900a33c807d86cfebfb0d56bb2194aac4bd0e0f6432 | package ft.sim.monitoring;
import static ft.sim.monitoring.ViolationSeverity.*;
import static ft.sim.monitoring.ViolationType.*;
import ft.sim.world.train.Train;
import ft.sim.world.connectables.Connectable;
import ft.sim.world.connectables.Section;
import ft.sim.world.connectables.Station;
import ft.sim.world.connec... | Java | src/main/java/ft/sim/monitoring/ViolationBuilder.java | sinaa/train-simulator | gpl-3.0 | 2,596 | 63 | codeparrot/github-code |
b0268d024e4f2dfba7878e7efa40650a74cf16b17f6c2194c13cfc2c78f3d3cf | from .submaker import Submaker
from inception.tools.signapk import SignApk
import shutil
import os
from inception.constants import InceptionConstants
class UpdatezipSubmaker(Submaker):
def make(self, updatePkgDir):
keys_name = self.getValue("keys")
signingKeys = self.getMaker().getConfig().getKeyCo... | Python | inception/argparsers/makers/submakers/submaker_updatezip.py | tgalal/inception | gpl-3.0 | 1,747 | 41 | codeparrot/github-code |
0b1d2e86a690369267e998699c5f8ec05cfb1c38158fa93818c42525dea8bdad | /**
* Created by ken_kilgore1 on 1/11/2015.
*/
jQuery(document).ready(function ($) {
$("#spouse_info").hide();
$("#spouse_spacer").hide();
$("#family_info").hide();
$("#family_spacer").hide();
$("input:radio[name$='memb_type']").click(function () {
if ($("input[name$='memb_type']:checked... | JavaScript | includes/js/mp-show-hide-script.js | ctxphc/beach-holiday | gpl-3.0 | 1,199 | 34 | codeparrot/github-code |
bcba610ebb330db86b854b63a6c165c08e096978d4265fce71f65b54270b5136 | /**
* Copyright (C) Intersect 2012.
*
* This module contains Proprietary Information of Intersect,
* and should be treated as Confidential.
*/
package au.org.intersect.exsite9.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertN... | Java | exsite9/test/au/org/intersect/exsite9/service/SchemaServiceUnitTest.java | IntersectAustralia/exsite9 | gpl-3.0 | 9,680 | 199 | codeparrot/github-code |
5480c8b95511ccc79a1dde195e3b9ec9d2072c4427a132930b96f778d2348fb1 | /* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | JavaScript | ext/poxdesk/qx/framework/source/class/qx/Interface.js | 09zwcbupt/undergrad_thesis | gpl-3.0 | 16,949 | 569 | codeparrot/github-code |
f3aa7dd6574735f3fc32115adc7b82370d9294c9c45ca6e355eaba2f48ba087d | package com.esd.phicomm.bruce.esdapp;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
/**
* Created by Bruce on 201... | Java | app/src/main/java/com/esd/phicomm/bruce/esdapp/Gpio.java | bruce-wei/EsdApp | gpl-3.0 | 3,231 | 120 | codeparrot/github-code |
96dbcd264ef0c2cd9c4e58a2e3dafed7068cefb8dc29326bcd8c9c6d2087a978 | /**
* @file GeneticAlgorithm.hpp
* @author Renato Oliveira (renatorro@comp.ufla.br)
* @version 1.0
* @since GeneticNet 1.0
* @date 10/07/2012
*/
#ifndef GRUBI_GENETICNET_GENETICALGORITHM_HPP_INCLUDED
#define GRUBI_GENETICNET_GENETICALGORITHM_HPP_INCLUDED
#include <iostream>
#include <cstdlib>
#include <boost/ar... | C++ | src/GeneticAlgorithm/GeneticAlgorithm.hpp | renatorroliveira/dissertacao | gpl-3.0 | 3,334 | 107 | codeparrot/github-code |
fda95b42067739e8d60c535950c92d8a2eb982a0b97f3754c142e657921c9790 | /*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ... | Java | src/com/watabou/legacy/items/Stylus.java | sloanr333/opd-legacy | gpl-3.0 | 3,298 | 123 | codeparrot/github-code |
705239b375060bc42e7d40762cc4add18ef18baeded8dd10a698bc4e82258fc1 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Kalender_model extends CI_Model {
public function __construct()
{
}
public function tambah_kalender($data)
{
$this->db->insert('kalender_akademik', $data);
}
public function t... | PHP | aplikasi/SIA_mancib/application/models/Kalender_model.php | SisteminformasisekolahMANCibadak/Sistem-informasi-sekolah-menggunakan-framewok-codeigniter-dengan-sub-modul-akademik | gpl-3.0 | 1,048 | 36 | codeparrot/github-code |
3d6573789af147d257e3a2fd6685e432706b31b89d79e41f9325316708bac1fc | package PicLib;
use strict;
use warnings;
use Carp;
use Image::Imlib2;
sub edge_simple ($$) { # input image (Imlib2), treshold
my $self = shift;
my $in_img = shift;
my $treshold = shift // 70;
my $tresh_sq = $treshold ** 2;
my $width = $in_img->width ();
my $height = $in_img->height ();
m... | Perl | lib/PicLib.pm | draculus/xgazn | gpl-3.0 | 5,371 | 188 | codeparrot/github-code |
fb981bb4661a2bbef75f86c60aace66081ad7cfb72b1fdecd344de8ac843d352 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package beans;
import dao.EstadoJpaController;
import dao.exceptions.NonexistentEntityException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.application.Fac... | Java | src/java/beans/EstadoBean.java | dnspinheiro/cooperTaxi | gpl-3.0 | 3,047 | 97 | codeparrot/github-code |
5146566a3399510553c21dc7e8de9e2f0e910129bb8be3f0d99b49a047d9d222 | /* -*- c++ -*- */
/*
* Copyright 2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option... | C++ | gr-qtgui/lib/waterfall_sink_c_impl.cc | levelrf/level_basestation | gpl-3.0 | 9,644 | 367 | codeparrot/github-code |
2f3313ac8590dee17a5c2f3ccaf51ffdd75a59c5aeb1ce8cf6fb70265cef40fa | # -*- coding: utf-8 -*-
import hashlib, time
from django import forms
from django.contrib.auth.models import User, Group
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from poetry.models import Poem, Theme
from user.models import Contributor
my_default_errors = {
'required': 'Еңгізуге м... | Python | user/forms.py | ra1ski/poetrydb | gpl-3.0 | 4,190 | 131 | codeparrot/github-code |
8fc5c4936325201d2a796c8589cc007b34c5dbe420e3954ff3d84d7489693c61 | /*
This file is part of visgeom.
visgeom 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.
visgeom is distributed in the hope that it will be... | C | include/localization/mapping.h | BKhomutenko/visgeom | gpl-3.0 | 4,566 | 155 | codeparrot/github-code |
9a868c531895adaeb817d9c39ac52b9573db36c7899793eefe8c58325767ec9b | function content($slide) {
return $slide.children().first().nextAll();
}
function addReplToSlide($, deck, $slide) {
var endpoint = $[deck]('getOptions').repl.endpoint;
content($slide).wrapAll('<div class="repl-slide-column repl-text-column"></div>');
var replHtmlId = "console-" + $slide[0].id;
$('<div/>', { ... | JavaScript | web/deckjs/extensions/repl/deck.repl.js | ptitfred/slidecoding | gpl-3.0 | 5,191 | 204 | codeparrot/github-code |
c17374c98e9de81e971b9f23b9ab4ebaebf52e868f18e1a41be0e2c0299eb350 | /*
This file is a part of BeastBox.
Copyright (C) 2016 Marcos Mori de Siqueira. <mori.br@gmail.com>
website: http://softfactory.com.br
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 ... | C | common/ps.h | mori-br/BeastBox | gpl-3.0 | 7,040 | 249 | codeparrot/github-code |
122be36cec7abdbaaa87999d56f6ed13c302c44cd1de468db0c33ad6db14c4e2 | package toncc;
import javax.swing.*;
/** Utility class to run JFrame-based GUI classes.
*
* @author Bruce Eckel, Giacomo Parolini
*/
class SwingConsole {
private static void prepare(final JFrame f) {
f.setTitle(f.getClass().getSimpleName());
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
public stati... | Java | SwingConsole.java | silverweed/toncc | gpl-3.0 | 1,849 | 81 | codeparrot/github-code |
83a69f4c2d6967e09e2ac8ea3aa2309f495966867e4d27d090743715bd75de12 | package controle.gui_jogo;
import controle.configuradores_gui.ConfiguradorVisualizadorDeCartas;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
import javax.imageio.IIOImage;
import javax.imageio.ImageIO;
impo... | Java | src/controle/gui_jogo/ObservadorDoControleRemoto.java | vandaimer/TrabalhoEs | gpl-3.0 | 1,791 | 76 | codeparrot/github-code |
aceb709847e58edc9c3849846998013060382ac962b479f174f012cecc963191 | {-|
Module : Main
Copyright : (c) Chris Tetreault, 2014
License : GPL-3
Stability : experimental
The Main module implements the main function; the entry point to the program.
-}
module Main where
import DMP.Photobooth
import DMP.Photobooth.Monads
import DMP.Photobooth.Core
import System.Exit
{-|
The main function ... | Haskell | Main.hs | christetreault/dmp-photo-booth-prime | gpl-3.0 | 746 | 37 | codeparrot/github-code |
375ebf50229c75d79c6ff60626ec36545c0cce79caa9f2601347472a59137bf6 | #!/bin/bash
# git-etc simple daemon written on BASH for monitoring changes in files
# Copyright (C) 2013 Evgeniy Alekseev
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; ei... | Shell | sources/ctrlconf.sh | arcan1s/git-etc | gpl-3.0 | 2,119 | 58 | codeparrot/github-code |
1a6aa3f4be080ba965e367d51ea41a14e2c44d8a8db2de581df6cdb2a3f76f99 | #!/bin/bash
# OpenRA packaging script for macOS
command -v curl >/dev/null 2>&1 || { echo >&2 "macOS packaging requires curl."; exit 1; }
command -v markdown >/dev/null 2>&1 || { echo >&2 "macOS packaging requires markdown."; exit 1; }
if [[ "$OSTYPE" != "darwin"* ]]; then
command -v cmake >/dev/null 2>&1 || { echo ... | Shell | packaging/osx/buildpackage.sh | WolfGaming/OpenRA | gpl-3.0 | 4,190 | 127 | codeparrot/github-code |
2f76686cd0dc1d3c80fe9557605f0159ad6e5eeb8d492d7e2a9f8b31c9a9d93b | /*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
* Copyright (C) 1999-2011 Colin Leroy <colin@colino.net>
* and the Claws Mail 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 Softw... | C | QMOLEDEV/claws-mail-3.7.10/src/ssl_manager.c | chriskmanx/qmole | gpl-3.0 | 11,516 | 463 | codeparrot/github-code |
eb02f3e6d793d331a226e373a29e0483a70ee53129610555f042da6e26fd0f4c | package bigarrays;
/**
* @author vincent.gardeux@epfl.ch
*
* Class for representing a float static array requiring address space larger than 32 bits.
*/
public class FloatArray64
{
private static final int CHUNK_SIZE = 1024*1024*512;
private long size;
private float[][] data;
public FloatArray64(... | Java | Java/src/bigarrays/FloatArray64.java | DeplanckeLab/ASAP | gpl-3.0 | 2,467 | 80 | codeparrot/github-code |
d0666ec5828593c0dcf868dce06b63362aa01f91e5df7a66dfb4a450001af286 | namespace UnityEditor
{
using System;
using UnityEngine;
internal class PopupWindowWithoutFocus : EditorWindow
{
private Rect m_ActivatorRect;
private float m_BorderWidth = 1f;
private Vector2 m_LastWantedSize = Vector2.zero;
private PopupLocationHelper.PopupLocation[] ... | C# | tags/unity5/UnityEditor/PopupWindowWithoutFocus.cs | randomize/VimConfig | gpl-3.0 | 5,031 | 133 | codeparrot/github-code |
442348f17971b6c8936ef59c1d15d752b7ff2d398d5f4812414b39fc2ebcb464 | <?php
namespace MinSal\SidPla\DepUniBundle\EntityDao;
use MinSal\SidPla\DepUniBundle\Entity\TipoRRHumano;
use Doctrine\ORM\Query\ResultSetMapping;
class TipoRRHumanoDao {
var $doctrine;
var $repositorio;
var $em;
//Este es el constructor
function __construct($doctrine) {
$this->doctrine = $... | PHP | MinSal/SidPla/DepUniBundle/EntityDao/TipoRRHumanoDao.php | bagonzalez/sidpla-minsal | gpl-3.0 | 2,507 | 100 | codeparrot/github-code |
61b79b507e815783cedc3f9024802d5a70a57ca2643046a22364416de3a31b2f | /* Multiple versions of strspn. PowerPC64 version.
Copyright (C) 2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 Soft... | C | oss/glibc/glibc-2.24/sysdeps/powerpc/powerpc64/multiarch/strspn.c | geminy/aidear | gpl-3.0 | 1,259 | 36 | codeparrot/github-code |
6c0885f600bda9b644a0826592824a354cbab2e9c0dd102d043842b532e25022 | /*
* Monomial.hh, part of the RotationShield program
* Copyright (c) 2007-2014 Michael P. Mendenhall
*
* 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++ | MathUtils/Monomial.hh | mpmendenhall/rotationshield | gpl-3.0 | 8,516 | 276 | codeparrot/github-code |
1ac821bbb48cb3973d76f3e87f9d7c7dde9b9b8e76e1a044743fdfd705f9b20f | <?PHP
/******************************************************************************
* *
* Copyright (c) 1999-2006 Horizon Wimba, All Rights Reserved. *
* ... | PHP | mod/voiceboard/welcome.php | junwan6/cdhpoodll | gpl-3.0 | 5,245 | 103 | codeparrot/github-code |
0881263a5d71568cf702849961b3bccde2c4f89424caef7c611ea56b096dd1c9 | #include "message_value.h"
//#include <iostream>
MessageValue::MessageValue() : message_array(NULL), sequence_name(NULL) {}
MessageValue::MessageValue(char type, char* name) : message_type(type) {
sequence_name = name;
length = 1 + strlen(sequence_name) + 1;
if (message_array != NULL) {
delete[] message_array;
... | C++ | src/message_value.cpp | armenabnousi/minhash_clustering | gpl-3.0 | 3,012 | 113 | codeparrot/github-code |
55042b0e94c0f408eba8caf2beca9f1eff5ade23aed03384b927162758991c03 | /* radare - LGPL - Copyright 2009-2016 - pancake */
#include <stdio.h>
#include <string.h>
#include <getopt.c>
#include <r_io.h>
#include <r_hash.h>
#include <r_util.h>
#include <r_print.h>
#include <r_crypto.h>
#include "../blob/version.c"
static ut64 from = 0LL;
static ut64 to = 0LL;
static int incremental = 1;
sta... | C | binr/rahash2/rahash2.c | Ekleog/radare2 | gpl-3.0 | 16,653 | 663 | codeparrot/github-code |
f3735e2e18f65f26a5f3302b42631792765689479066cb4e902df2faf13ea126 | package Mojo::Base;
use strict;
use warnings;
use utf8;
use feature ();
# No imports because we get subclassed, a lot!
use Carp ();
# Only Perl 5.14+ requires it on demand
use IO::Handle ();
# Protect subclasses using AUTOLOAD
sub DESTROY { }
sub import {
my $class = shift;
return unless my $flag = shift;
#... | Perl | perl5/lib/perl5/Mojo/Base.pm | smotti/delta_reporting | gpl-3.0 | 5,699 | 237 | codeparrot/github-code |
36b6b6e3de2e2c753214268b886f1c48a63ca17224e67cd66697ffe5346299af | <?php
/**
* The template for displaying 404.
*
* @package 9Pixels.
*/
get_header();
?>
<div class="wrap">
<div id="custom-page">
<div class="fullwidth-page-title">
<?php
if ( get_theme_mod( 'denta_lite_404_general_title', 'Error' ) ) {
echo '<h3>'. esc_attr( get_theme_mod( 'denta_lite_404_general_title... | PHP | 404.php | Codeinwp/dentatheme-lite | gpl-3.0 | 3,540 | 69 | codeparrot/github-code |
1d1fd6b5c187644f954320ba405c7cfcbbdb0c85b40e66c829b4784e32cbe96d | <?php
/**
Copyright 2012-2017 Nick Korbel
This file is part of Booked Scheduler.
Booked Scheduler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any... | PHP | booked/Web/Services/index.php | rafaelperazzo/ufca-web | gpl-3.0 | 11,284 | 211 | codeparrot/github-code |
2bd314afba5408b22fce1e316a73fda9ff9a0e65d3c1f53af01ab7bcf6f98828 | /* addition.cc
*
* KNOWN BUGS: will fail if entered with a tsp with identical pos_t's.
*
* nearest addition and fathest insertion, with initial convex hull and
* maximal angle selections for euclidean.
*
* orig ceh 12-91
*
* c++ conversion ceh 12-93
* added farthest insertion functionality 9-94
#define PRINTI... | C++ | letteratura/tsp_solve-1.3.6/addition.cc | catacopil/memoco-course-project | gpl-3.0 | 15,119 | 564 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.