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 |
|---|---|---|---|---|---|---|---|---|
931cc9f8617e3bb584af3f21d7239d674232ade5a73dfed6b73f5480dc07fba3 | /**
* dfs 找 LCA. 只有一次查询,所以不需要 tarjan 或者 rmq
* 个人感觉 rmq 好理解一些,dfs标号一下然后转化成区间最小值。( u v 之间最短路径上深度最小的节点)
*/
using namespace std;
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* ... | C++ | leetcode/lowest-common-ancestor-of-a-binary-tree.cc | ShengRang/c4f | gpl-3.0 | 890 | 42 | codeparrot/github-code |
77e36e2d9372aff1c63f18841f28b9e4f8fe571f8ef599ce23eabaf49e83baed | /*
* Symphony - A modern community (forum/SNS/blog) platform written in Java.
* Copyright (C) 2012-2017, b3log.org & hacpai.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 ve... | Java | src/main/java/org/b3log/symphony/service/CommentMgmtService.java | gaozhenhong/symphony | gpl-3.0 | 22,223 | 536 | codeparrot/github-code |
e0e42dd5ce85f1584e23e741bfb3febe90f95ca83e2641a31151bccac5b24397 | /*
* Copyright (C) 2010-2019 The ESPResSo project
*
* This file is part of ESPResSo.
*
* ESPResSo 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/core/grid_based_algorithms/lbgpu.hpp | fweik/espresso | gpl-3.0 | 7,560 | 236 | codeparrot/github-code |
d811d47f4273d4a100c462252d09478dc9394e33ba0bf35181dede8381fab606 | /*
* Copyright (C) 2000 - 2011 TagServlet Ltd
*
* This file is part of Open BlueDragon (OpenBD) CFML Server Engine.
*
* OpenBD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Free Software Foundation,version 3.
*
* Open... | Java | src/org/alanwilliamson/openbd/plugin/crontab/CronSetDirectory.java | OpenBD/openbd-core | gpl-3.0 | 2,444 | 63 | codeparrot/github-code |
eb20f1b7add8d65ef0f27129d9c53284bdd8212c4a2ecf7680f44f7a210006af | package com.gentasaurus.ubahfood.inventory;
import com.gentasaurus.ubahfood.init.ModBlocks;
import com.gentasaurus.ubahfood.item.crafting.SCMCraftingManager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.inven... | Java | src/main/java/com/gentasaurus/ubahfood/inventory/ContainerSCM.java | gentasaurus/UbahFood | gpl-3.0 | 3,263 | 105 | codeparrot/github-code |
75722ae1940991aae9afe22bcc28e22cf42c85faa6aebe086afd538f749f8e0c | #include "prism/animation.h"
#include <stdlib.h>
#include "prism/log.h"
#include "prism/datastructures.h"
#include "prism/memoryhandler.h"
#include "prism/system.h"
#include "prism/timer.h"
#include "prism/stlutil.h"
using namespace std;
static struct {
int mIsPaused;
} gPrismAnimationData;
int getDurationInFra... | C++ | animation.cpp | CaptainDreamcast/libtari | gpl-3.0 | 13,226 | 489 | codeparrot/github-code |
26d3629e0a404bc5f1e9c977d4ee2142391a650b0a480537e62d82941b372096 | /*
* Copyright (c) 2011-2013 Lp digital system
*
* This file is part of BackBee.
*
* BackBee is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | JavaScript | src/tb/component/formbuilder/form/element/views/form.element.view.hidden.js | ndufreche/BbCoreJs | gpl-3.0 | 2,067 | 62 | codeparrot/github-code |
700c17cc5ed28ed6b2fa8be14c942e15a85e54b1d292ed2b824aecf4cbe6588e | /*
RWImporter
Copyright (C) 2017 Martin Smith
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in t... | C++ | rw_snippet.cpp | farling42/csv2rw | gpl-3.0 | 17,289 | 437 | codeparrot/github-code |
ca623eb8bf4d930e7519d201c3bae7602c10fb737e2b9ab679f0fd8374a4e48e | #include "podcastclient.h"
QStringList PodcastClient::getFeedsFromSettings()
{
QStringList resultList = settings.value("feeds").toStringList();
if(resultList.isEmpty())
{
QString string = settings.value("feeds").toString();
if(!string.isEmpty())
resultList.push_back(string);
}
return resultList... | C++ | podcastclient.cpp | R-Rudolph/minicatcher | gpl-3.0 | 4,030 | 181 | codeparrot/github-code |
f224ea44e6f878bbc5c02790d0fc858304c91733f8126806ca2f62081d26dc59 | package org.epilot.ccf.codec;
import org.apache.mina.common.ByteBuffer;
import org.epilot.ccf.core.code.AbstractMessageEncode;
import org.epilot.ccf.core.protocol.Message;
import org.epilot.ccf.core.protocol.MessageBody;
import org.epilot.ccf.core.protocol.MessageHeader;
import org.epilot.ccf.core.util.ByteBufferDataH... | Java | spring-game/src/main/java/org/epilot/ccf/codec/MessageEncode.java | bozhbo12/demo-spring-server | gpl-3.0 | 1,185 | 46 | codeparrot/github-code |
23b116f2eca6a858d265137ea6fede798f361957c11691e1dc887b804ce4aa3a | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Description of create_links_stl</title>
<meta name="keywords" content="create_links_stl">
<meta name="description" content="%%%%%%%%%%%%%%%%%">
<meta http-equiv="Conte... | HTML | doc/arte3.1.4/robots/MITSUBISHI/PA-10/create_links_stl.html | Dechcaudron/octARTE | gpl-3.0 | 13,068 | 225 | codeparrot/github-code |
bf4d40710bc06498bc5af70eb80843b4614b45293d766b7bf0a24536f9855497 | package com.baeldung.iteratorguide;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
public class IteratorGuide {
public static void main(String[] args) {
List<String> items = new ArrayList<>();
items.add("ONE");
items.add("T... | Java | projects/tutorials-master/tutorials-master/core-java-modules/core-java-collections/src/main/java/com/baeldung/iteratorguide/IteratorGuide.java | Niky4000/UsefulUtils | gpl-3.0 | 1,260 | 40 | codeparrot/github-code |
73ab52362b94cb38dacd2f365365745589c44dac25fbdb08efd406110e313a2e | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SPCtoMML
{
public partial class Form2 : Form
{
/// <summary>
/// Callback for updating progress
/// </summary>
pri... | C# | SPCtoMML/Form2.cs | VitorVilela7/SPCtoMML | gpl-3.0 | 1,631 | 77 | codeparrot/github-code |
c71996292288beeb9a6e8383d64f7bfc0237b095a516bbae14fac5dd649ff2c1 | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_A_SUBJECT_D002015').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)
sc.... | Python | spark/crm/PROC_A_SUBJECT_D002015.py | cysuncn/python | gpl-3.0 | 3,101 | 78 | codeparrot/github-code |
6020f288b1941d890cd34766d13ba8cc82a8a53f95fe7975585669d74f5f56dc | /*
ID: zhou.yo1
PROG: palsquare
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstring>
#include <set>
#include <map>
#include <algorithm>
using namespace std;
const char* digits = "0123456789ABCDEFGHIJKLMN";
void to_base( int num, int base... | C++ | usaco/palsquare.cc | zhouyouyi/puzzles | gpl-3.0 | 1,092 | 70 | codeparrot/github-code |
d6f3d1efaebd1eecf415544dfc25b52fab97ef50127703e7ebdb8d2c450d2c15 |
<div class='fossil-doc' data-title='fileutil - file utilities'>
<style>
HTML {
background: #FFFFFF;
color: black;
}
BODY {
background: #FFFFFF;
color: black;
}
DIV.doctools {
margin-left: 10%;
margin-right: 10%;
}
DIV.doctools H1,DIV.doctools H2 {
margin-left: -5%;
}
H1... | HTML | tcltk/share/doc/tcllib/tcllib/files/modules/fileutil/fileutil.html | donomii/svarmr | gpl-3.0 | 34,323 | 532 | codeparrot/github-code |
7f4978e11848edb350e198d14c34e85d939847ec39a070c56b1cf12d50014854 | /*
Copyright (C) 2004 Jacquelin POTIER <jacquelin.potier@free.fr>
Dynamic aspect ratio code Copyright (C) 2004 Jacquelin POTIER <jacquelin.potier@free.fr>
originally based from APISpy32 v2.1 from Yariv Kaplan @ WWW.INTERNALS.COM
This program is free software; you can redistribute it and/or modify
it under the terms of... | C | Tools/Win32Override/_Common_Files/ExportedStructs.h | uholeschak/ediabaslib | gpl-3.0 | 3,256 | 55 | codeparrot/github-code |
9621a4fc9c6d59d252ee36c2bc826ea2c5f1f734573cfab64751eb2e017e2fd0 | #ifndef PLANG_TOKENIZER
#define PLANG_TOKENIZER
#include <map>
#include <vector>
#include <string>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <algorithm>
class PlangTokenizer {
// Input buffer
std::string m_input;
// Current possition in input buffer
std::size_t m_input_pos;
... | C | include/plang_tokenizer.h | PrzemekWirkus/plang | gpl-3.0 | 4,712 | 198 | codeparrot/github-code |
00da7a53c2bfb1f82adb32eddcd66a139cb7b9003f35135df3f6e7ee4e83c344 | // Author:
// Noah Ablaseau <nablaseau@hotmail.com>
//
// Copyright (c) 2017
//
// 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 o... | C# | src/IO/ffmpeg/FFMPEG.cs | jealouscloud/linerider-advanced | gpl-3.0 | 6,948 | 204 | codeparrot/github-code |
a5a0f1238e3cf6cc219a5b61f8b6cdfc6d1ded3f30674c73315786440cedcb8e | /*
* Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this fi... | C | _resources/kernels/xnu-arm/bsd/netat/adsp.c | p01arst0rm/decorum-linux | gpl-3.0 | 10,262 | 396 | codeparrot/github-code |
fd21fd2ecbb8d19f4602f1359655249f2f1721e3fefdb9d03850bfacce39240f | require "active_support/core_ext/integer/time"
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your applica... | Ruby | config/environments/production.rb | ryanjohns/passmaster | gpl-3.0 | 3,780 | 95 | codeparrot/github-code |
850e5de1c7f4cf3542299b641183c3d5e768d4841e2cf9563bf8b2a9cd171868 | package com.tikaji.halocraft;
import com.tikaji.halocraft.common.handlers.ConfigurationHandler;
import com.tikaji.halocraft.common.proxy.IProxy;
import com.tikaji.halocraft.common.utility.Reference;
import com.tikaji.halocraft.common.utility.VersionChecker;
import net.minecraftforge.common.config.Configuration;
import... | Java | src/main/java/com/tikaji/halocraft/HaloCraft.java | Tikaji/HaloCraft | gpl-3.0 | 1,665 | 53 | codeparrot/github-code |
dacae2c9b827602408b085014e9847d01894edc0ac26ed7e6f3667bd79eea125 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: GnssLogTime.cpp
* Author: markov
*/
#include <boost/date_time/posix_time/posix_time.hpp>
#include "gnss_f... | C++ | src/common/GnssLogTime.cpp | arch1tect0r/iono_zond_post_processing | gpl-3.0 | 2,745 | 112 | codeparrot/github-code |
227b0d622f3aa9393aa1ba9b27d04e44edf63d93f596ea65456ea7173ce8f037 | #ifndef Func_seq_H
#define Func_seq_H
#include "Procedure.h"
#include <string>
namespace RevLanguage {
/**
* @brief Function that creates a numerical sequence.
*
* This function is the equivalent to the 'R' function seq().
* The function creates a numerical sequence from the specified val... | C | src/revlanguage/functions/basic/Func_seq.h | revbayes/revbayes | gpl-3.0 | 5,926 | 184 | codeparrot/github-code |
ac0cb347d22940ed52693aaa5ab8f57807127fe27ef41dfa43125dde1cf10093 | package com.taobao.api.response;
import com.taobao.api.TaobaoResponse;
import com.taobao.api.internal.mapping.ApiField;
/**
* TOP API: taobao.logistics.consign.order.createandsend response.
*
* @author auto create
* @since 1.0, null
*/
public class LogisticsConsignOrderCreateandsendResponse extends TaobaoRespon... | Java | src/main/java/com/taobao/api/response/LogisticsConsignOrderCreateandsendResponse.java | kuiwang/my-dev | gpl-3.0 | 1,145 | 59 | codeparrot/github-code |
c8cfc3f47c9b586172c5e3768ee0ee320808d9b6e232df898e008f50b67d67c6 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 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.
*
* T... | Java | java/com/voicecrystal/pixeldungeonlegends/actors/hero/HeroSubClass.java | Cerement/pixel-dungeon-legends | gpl-3.0 | 2,845 | 85 | codeparrot/github-code |
c81aa409d1f88858c9b675c5c1f64d176402f6e60310608c43a4c402b401cf2a | <?php
/**
* TrcIMPLAN Índice Básico de Colonias
*
* Copyright (C) 2016 Guillermo Valdes Lozano
*
* 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... | PHP | lib/IBCTorreon/VillaJardin.php | TRCIMPLAN/beta | gpl-3.0 | 5,157 | 122 | codeparrot/github-code |
b6b0b57f11c6fb02e4e5ced0de9d4c38781f03acad6ae6343c33a00fd4f0c541 | #ifndef _ASM_X86_UACCESS_64_H
#define _ASM_X86_UACCESS_64_H
/*
* User space memory access functions
*/
#include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/lockdep.h>
#include <linux/kasan-checks.h>
#include <asm/alternative.h>
#include <asm/cpufeatures.h>
#include <asm/page.h>
/*
* Copy To/From Us... | C | arch/x86/include/asm/uaccess_64.h | williamfdevine/PrettyLinux | gpl-3.0 | 7,549 | 334 | codeparrot/github-code |
1d788fac11a9cf30942806a8018508ec08fb9d87eda8348eac4020be9ee2cb72 | <?php
/**
* @package Joomla.Platform
* @subpackage Google
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
use Joomla\Registry\Registry;
/**
... | PHP | libraries/joomla/google/data/plus.php | MasiaArmato/coplux | gpl-3.0 | 2,261 | 99 | codeparrot/github-code |
0a3daec244f5dc7616bc38fc1fdc7969b87991e31dca241de42071d121885fcf | <?php
namespace Smartling\Jobs;
use Smartling\ApiWrapperInterface;
use Smartling\Base\ExportedAPI;
use Smartling\Helpers\ArrayHelper;
use Smartling\Queue\QueueInterface;
use Smartling\Settings\SettingsManager;
use Smartling\Submissions\SubmissionManager;
class DownloadTranslationJob extends JobAbstract
{
public ... | PHP | inc/Smartling/Jobs/DownloadTranslationJob.php | Smartling/wordpress-localization-plugin | gpl-3.0 | 1,886 | 63 | codeparrot/github-code |
7eebad9b867e1eef8ea2e9cf7b27d024816fa88f91687b0ec9ba5606f38a5b2b | """1.5 : Migrating work unity
Revision ID: 1212f113f03b
Revises: 1f07ae132ac8
Create Date: 2013-01-21 11:53:56.598914
"""
# revision identifiers, used by Alembic.
revision = '1212f113f03b'
down_revision = '1f07ae132ac8'
from alembic import op
import sqlalchemy as sa
UNITIES = dict(NONE="",
HOUR=u"h... | Python | autonomie/alembic/versions/1_5_migrating_work_u_1212f113f03b.py | CroissanceCommune/autonomie | gpl-3.0 | 2,158 | 68 | codeparrot/github-code |
25e13eb7dad06a8a37b3d1670a5c78291f010eda2c2847448895ec53820dcb90 | package com.actelion.research.orbit.imageAnalysis.components.icons;
import java.awt.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.lang.ref.WeakReference;
import java.util.Base64;
import java.util.Stack;
import javax.imageio.ImageIO;
import javax.swing.SwingUtilities;
imp... | Java | src/main/java/com/actelion/research/orbit/imageAnalysis/components/icons/toggle_markup.java | mstritt/orbit-image-analysis | gpl-3.0 | 7,640 | 245 | codeparrot/github-code |
11a679f8f6c29bc451c4999549dae7665f781e908476ae467009857ec15e32ac | /*
**
** This file is part of BananaCam.
**
** BananaCam 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.
**
** BananaCam is distribu... | C | src/main.c | OliverNicolini/BananaCam | gpl-3.0 | 4,707 | 205 | codeparrot/github-code |
4dfd9ac4150945ecb9f3ab36ef8d0538077979136cfb1b9d685c0b6dd06ed2cf | <!--
~ Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.de)
~
~ 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)
~ ... | HTML | s2tbx-help/src/main/resources/doc/help/visat/ExportColorLegend.html | corinavaduva/s2tbx-s2tbx-1.0.2 | gpl-3.0 | 2,276 | 59 | codeparrot/github-code |
b5da24c84beec97542e80ab78c67ae382a1c140a79b4ab5a90bac1e4d072c876 | /*
* This file is part of the demos-linux package.
* Copyright (C) 2011-2022 Mark Veltzer <mark.veltzer@gmail.com>
*
* demos-linux is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the ... | C++ | src/examples/lang_cpp/placement.cc | veltzer/demos-linux | gpl-3.0 | 4,246 | 136 | codeparrot/github-code |
9f6014f9ee53b5867498290040420958b8d0283211e5966a8108b862eb8fbcbd | var Connection = require("./db/db-connection").Connection;
var Tables = require("./db/tables");
const R = require("ramda");
var QUERY_MATCHES = {
$or: [
{percent_name: {$gt: 0.9}},
{
distance: {$lt: 1}
},
{
percent_name: {$gt: 0.8},
distance: {$lt:... | JavaScript | dati-jobs/fuzzy-match-fb-places-step_2.js | marcog83/cesena-online-demo | gpl-3.0 | 3,057 | 107 | codeparrot/github-code |
3192c361b788d100c58ac44e639913a77c3e809242ac6ebb868ba81a76e6a45a | ///////////////////////////////////////////////////////////////////////////////
//
//
//
//
///////////////////////////////////////////////////////////////////////////////
// Includes
#include "include/mdShared.h"
#include "include/mdBreakPoint.h"
#include "include/mdSpy.h"
#include "include/mdSymbol.h"
#include "inc... | C++ | mdstudio/src/mdProject.cpp | pascalorama/megadrive-studio | gpl-3.0 | 11,136 | 562 | codeparrot/github-code |
4af9e3ba6ab363b989196582827ce398395f92b0336d0e5e70100d838b6e2d33 | from math import ceil
import numpy as np
from ipywidgets import widgets
from tqdm.notebook import tqdm
from matplotlib import pyplot as plt
import lib.iq_mixer_calibration
from drivers import IQAWG
from lib.data_management import load_IQMX_calibration_database, \
save_IQMX_calibration
from lib.iq_mixer_calibratio... | Python | drivers/IQVectorGenerator.py | vdrhtc/Measurement-automation | gpl-3.0 | 12,060 | 297 | codeparrot/github-code |
03bef6f320ded01bc81bca645c46cb6561e56c5e58eb3480fd243b88dc0cc5f0 | /*
Copyright 2012-2016 Michael Pozhidaev <michael.pozhidaev@gmail.com>
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or ... | Java | src/main/java/org/luwrain/core/ShortcutManager.java | rPman/luwrain | gpl-3.0 | 2,884 | 106 | codeparrot/github-code |
9aa02d99c823ff62d81b65f99dae7030c4898541bcb7802668f94d9d8d640d85 | #include "tool_move.hpp"
#include "document/idocument_board.hpp"
#include "board/board.hpp"
#include "document/idocument_package.hpp"
#include "pool/package.hpp"
#include "document/idocument_padstack.hpp"
#include "pool/padstack.hpp"
#include "document/idocument_schematic.hpp"
#include "schematic/schematic.hpp"
#includ... | C++ | src/core/tools/tool_move.cpp | carrotIndustries/horizon | gpl-3.0 | 14,465 | 431 | codeparrot/github-code |
f4805d16399d62722d109ad603fc377a0113d781a961595f6ef8e9effe3f728c | #include <cstdlib> // srand()
#include <ctime> // time()
#include "StateManager.hpp"
#include "SDL.hpp"
#include "Log.hpp"
#include "Config.hpp"
#include "GameStateMainMenu.hpp"
#include "GameStateGame.hpp"
#include "GameStateGameOver.hpp"
#include "Window.hpp"
#include "Graphics.hpp"
StateManager::StateManager(int ... | C++ | src/StateManager.cpp | alexdantas/idj | gpl-3.0 | 2,154 | 94 | codeparrot/github-code |
05f7b4f6332ff50affa2d00804e9b24769bc28495fa2a9a84e39c8be2dec8c1c | /*
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free
Software Foundation, Inc.
This file is part of GNU Inetutils.
GNU Inetutils is free software: you can redistribute it and/or modify
it under the terms of the GNU Gen... | C | telnet/authenc.c | infoburp/inetutils | gpl-3.0 | 3,857 | 131 | codeparrot/github-code |
04946812d14a5aa31e45a86b0a6dece1c0b40eaa3d232c8a1d02a199de104f59 | ace.require("ace/ext/language_tools");
var editor = ace.edit("editor");
editor.setOptions({
enableBasicAutocompletion: true
});
editor.setTheme("ace/theme/eclipse");
editor.getSession().setMode("ace/mode/java");
document.getElementById('editor').style.fontSize = '18px';
editor.setAutoScrollEditorIntoView(true);
... | JavaScript | src/main/resources/webapp/js/main.js | AbdallaMahmoud/codeyard | gpl-3.0 | 7,360 | 302 | codeparrot/github-code |
e0edc8999dddb506350b6044751c09558b497d038e6f287e0d7df2667ec161b8 | import {Component, OnInit} from '@angular/core';
import {FundDataService} from '../funddata/funddata.service';
@Component({
selector: 'app-fund-table',
templateUrl: './fund-table.component.html',
styleUrls: ['./fund-table.component.css']
})
export class FundTableComponent implements OnInit {
private colShow: stri... | TypeScript | src/app/fund-table/fund-table.component.ts | jensim/fundscreener | gpl-3.0 | 1,096 | 43 | codeparrot/github-code |
de8592da940bd021f105af2996685c3e17748b91c4ff91957f0b5f0b495451f3 | /*
* Copyright appNativa Inc. All Rights Reserved.
*
* This file is part of the Real-time Application Rendering Engine (RARE).
*
* RARE 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 | source/rare/swingx/com/appnativa/rare/platform/swing/ui/view/RadioButtonView.java | appnativa/rare | gpl-3.0 | 8,918 | 314 | codeparrot/github-code |
c049fc1bc96ca02aadfaf9b0c4f7591114ca4e9cd88a59034dbc7ba9b5a1ec56 | require('dotenv').config({ silent: true });
var Express = require('express');
var path = require('path');
var fs = require('fs');
var merge = require('lodash/merge');
var proxy = require('proxy-middleware');
var ejs = require('ejs');
var config = require('./config');
var server = new Express();
server.set('port', c... | JavaScript | server/index.js | Nebo15/gandalf.web | gpl-3.0 | 1,008 | 39 | codeparrot/github-code |
689a42adf2b62ba31f59433144db8d03fe28b5ffc9a7eb571c9c614c434584eb | /**
*
* Copyright (C) 2004-2008 FhG Fokus
*
* This file is part of the FhG Fokus UPnP stack - an open source UPnP implementation
* with some additional features
*
* You can redistribute the FhG Fokus UPnP stack and/or modify it
* under the terms of the GNU General Public License Version 3 as published by
* the Free So... | Java | upnp-core/src/main/java/de/fraunhofer/fokus/upnp/core/UPnPDocParser.java | fraunhoferfokus/fokus-upnp | gpl-3.0 | 5,855 | 191 | codeparrot/github-code |
72cae171b06fb15c2ec0924406cd37e084473741a17f9d2f594612978824efdd | /*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC 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/filters/renderer/VideoRenderers/PixelShaderCompiler.h | jeeb/mpc-hc | gpl-3.0 | 1,932 | 65 | codeparrot/github-code |
e951aa1aeb39fc6a936686b2f30f67288657790b20eff8ba04c0092b58d78db9 | --
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
local _detalhes = _G._detalhes
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
local _... | Lua | AddOns/Details/core/network.lua | qyh214/wow_addons_private_use | gpl-3.0 | 30,094 | 865 | codeparrot/github-code |
451c758d5bc07be5d369348054a4aac9e70994ec502d3080eaee5ec5392db554 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Andrew Kofink <ajkofink@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) ... | Python | plugins/modules/subscription_manifest.py | ATIX-AG/foreman-ansible-modules | gpl-3.0 | 5,027 | 135 | codeparrot/github-code |
da16f5472bde8aa3574cb3203449584cdfdbed4c55b216bb72826b235e67011e | #!/usr/bin/env bash
# Copyright © 2019 by The qTox Project Contributors
#
# This file is part of qTox, a Qt-based graphical interface for Tox.
# qTox is libre 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,... | Shell | bootstrap.sh | Diadlo/qTox | gpl-3.0 | 6,735 | 234 | codeparrot/github-code |
c3cd95a516776e719cbb401604613d7234c64469d389c81990d44196c9acd543 | import moment from 'moment';
import PublicationsController from './controller/publications.controller.js';
import AuthorsController from './controller/authors.controller.js';
import PublishersController from './controller/publishers.controller.js';
/*
* Application routing
*/
function routing($routeProvider) {
$r... | JavaScript | web/src/app/app.config.js | enric-sinh/publication-library | gpl-3.0 | 1,574 | 58 | codeparrot/github-code |
f04a83704ff0be0d4552824393f0da56af7504a28547fb7d46e669844482c4b5 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=yes'>
<title>Video Poker</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Luckiest+Guy');
body { background-color:#0032b4; color:#fff; font-fam... | HTML | poker5.html | chrisrobison/crcasino | gpl-3.0 | 41,692 | 1,141 | codeparrot/github-code |
f187ebdbee797b6d053f5c49ee752d9767168adda141a4277755d2401f0a9aaa | <?php
namespace Chamilo\Core\Repository\Selector;
/**
* A category of options in a ContentObjectTypeSelector
*
* @author Hans De Bisschop <hans.de.bisschop@ehb.be>
*/
class TypeSelectorCategory
{
/**
*
* @var string
*/
private $type;
/**
*
* @var string
*/
private $... | PHP | src/Chamilo/Core/Repository/Selector/TypeSelectorCategory.php | vanpouckesven/cosnics | gpl-3.0 | 2,653 | 146 | codeparrot/github-code |
23f40939a919e5464a43d9c61d9bf7cc0b451e58f0e2605c6e89a80ff2cb6d06 | <?php
/**
* @version $Id: search.class.php v1.0 $
* @package PBDigg
* @copyright Copyright (C) 2007 - 2008 PBDigg.com. All Rights Reserved.
* @license PBDigg is free software and use is subject to license terms
*/
class search
{
/**
* 搜索类型
*/
var $_searchtype;
/**
* 搜索条件语句
*/
var $_searchsql = '';
... | PHP | include/search.class.php | mikeshou/pbdigg | gpl-3.0 | 12,580 | 478 | codeparrot/github-code |
642aa6d9e4197f8da2ef66b8dac7da1fe453f51a302299ce260c212f147733c4 | /*
* Copyright (C) 2013 Huub de Beer
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... | JavaScript | src/models/model.js | htdebeer/PhD-DE3 | gpl-3.0 | 19,138 | 613 | codeparrot/github-code |
a8f9776d0a2a2931f1790442c82cbb4d585173ecb2a308e8925b2fb57f03c9a0 | /////////////////////////////////////////////////////////////////////////////
// C# Version Copyright (c) 2003 CenterSpace Software, LLC //
// //
// This code is free software under the Artistic license. //
// ... | C# | sentcore/MersenneTwister.cs | bashrc/sentience | gpl-3.0 | 15,228 | 444 | codeparrot/github-code |
8c16b9af6266bedb4ed6169c22ad3360eafbb49ee3f107cd2c9f58256c33ebdc | package main
import (
"net/http"
"os"
"path"
"strings"
"github.com/zenazn/goji/web"
)
func fileServeHandler(c web.C, w http.ResponseWriter, r *http.Request) {
fileName := c.URLParams["name"]
filePath := path.Join(Config.filesDir, fileName)
if !fileExistsAndNotExpired(fileName) {
notFoundHandler(c, w, r)
... | GO | fileserve.go | matthazinski/linx-server | gpl-3.0 | 1,505 | 74 | codeparrot/github-code |
49ecb9dc5543e2ac280180670158a074752c1ac01f5dbc9a3d7cb98a2a44844c | /******************************************************************************
*******************************************************************************
*******************************************************************************
libferris
Copyright (C) 2001 Ben Martin
libferris is free software... | C++ | plugins/context/libferrisgoogle_shared.cpp | monkeyiq/ferris | gpl-3.0 | 87,216 | 2,463 | codeparrot/github-code |
dd4cdc58b7d655278eff596020ace9c8716d70bf3a5ca28604883adeabf785d0 | //
// 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 License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any later version.
//
// Retu... | C++ | libs/s25main/gameTypes/LanGameInfo.cpp | stefson/s25client | gpl-3.0 | 1,822 | 54 | codeparrot/github-code |
ef52c9714eb4eb2364313b5f64ebce8613b99a75b3b240660d4b62e0ed2651bb | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
add word counts to Cornetto lexical units database file
The word count file should have three columns, delimited by white space,
containing (1) the count, (2) the lemma, (3) the main POS tag.
The tagset is assumed to be the Spoken Dutch Corpus tagset,
and the characte... | Python | bin/cornetto-add-counts.py | emsrc/pycornetto | gpl-3.0 | 4,585 | 152 | codeparrot/github-code |
2415ca7c8b56db0f091d4804467f14558ae6b2b03296b04a4a3d8499719c0901 | /*
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | spring-boot-demo/data-jpa/src/main/java/com/stt/data/jpa/service/HotelRepository.java | shitongtong/libraryManage | gpl-3.0 | 1,574 | 43 | codeparrot/github-code |
dff937b430fbfd5bc60ecb2ccec8fd98bad2ac9cff67a3f919d83e6bf830cb59 | /************************************************************************
* Copyright (C) 2019 Spatial Information Systems Research Limited
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation,... | C++ | src/Action/ActionToggleCameraActorInteraction.cpp | richeytastic/FaceTools | gpl-3.0 | 4,893 | 127 | codeparrot/github-code |
65f92877a4798eff08dea38faabd26a5e5cf7e2345ace95f5af2e82b9a877d6e | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Geotagger Map</title>
<style t... | HTML | Geotagger/html/bing.html | kokuda/geotagger | gpl-3.0 | 1,737 | 56 | codeparrot/github-code |
91710ebe73f8dd4236814b9cdaf36e8df86186a3297f3a6e7d09b21c1c8915ff | #include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <string.h>
#define BUFFER_SIZE 1024
int main()
{
int socketfd;
int port = 2047;
struct sockaddr_in server_in;
struct sockaddr_in client_in;
int client_in_l... | C++ | playground/src/udpserver.cpp | dashee/dashee | gpl-3.0 | 1,733 | 65 | codeparrot/github-code |
2435827054c821baadd7d09c1d556dceea5a06aca8e80fdcb5f52c97dc72451e | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 lat... | Rust | rpc/src/v1/impls/eth.rs | destenson/ethcore--parity | gpl-3.0 | 22,169 | 660 | codeparrot/github-code |
27800cf21d2b9e24740f243fe00cba7fcba978e6237a8e3011d283e67409733e | package net.joaopms.PvPUtilities.helper;
import net.minecraftforge.common.config.Configuration;
import java.io.File;
public class ConfigHelper {
private static Configuration config;
public static void init(File file) {
config = new Configuration(file, true);
config.load();
initConfi... | Java | src/main/java/net/joaopms/PvPUtilities/helper/ConfigHelper.java | joaopms/PvPUtilities | gpl-3.0 | 1,117 | 35 | codeparrot/github-code |
a01ec4f1dc415976570032f4e8b0d5eb3d2428eadf8ff05124a68f5813f1ec0e | /* $OpenBSD: stdlib.h,v 1.10 1999/06/11 22:47:48 espie Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | C | doc/linux/mips-architecture/loongson-datasheet/pmon/src/pmon-loongson3/include/stdlib.h | tupelo-shen/my_test | gpl-3.0 | 6,742 | 214 | codeparrot/github-code |
36c34e64ff0ea43d65ce8fc6a05ce7f14d4c9fbd7da11c7ded84aa3dea97d0d6 | <?php
/* Copyright (C) 2014 Daniel Preussker <f0o@devilcode.org>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... | PHP | includes/html/common/worldmap.inc.php | rasssta/librenms | gpl-3.0 | 11,457 | 277 | codeparrot/github-code |
0b2b10ddeef4df0b92d93c98d9d25d49d76c4958ecfa80d4c284e0687361e74c | package com.bruce.android.knowledge.custom_view.scanAnimation;
/**
* @author zhenghao.qi
* @version 1.0
* @time 2015年11月09日14:45:32
*/
public class ScanAnimaitonStrategy implements IAnimationStrategy {
/**
* 起始X坐标
*/
private int startX;
/**
* 起始Y坐标
*/
private int startY;
/**... | Java | app/src/main/java/com/bruce/android/knowledge/custom_view/scanAnimation/ScanAnimaitonStrategy.java | qizhenghao/Hello_Android | gpl-3.0 | 1,957 | 95 | codeparrot/github-code |
babedd09bf05b92344dba84b55770d39b27f2d0393258f7a5a23165ce175a962 | // needs Markdown.Converter.js at the moment
(function () {
var util = {},
position = {},
ui = {},
doc = window.document,
re = window.RegExp,
nav = window.navigator,
SETTINGS = { lineLength: 72 },
// Used to work around some browser bugs where we c... | JavaScript | public/scripts/pagedown/Markdown.Editor.js | MitchellMcKenna/LifePress | gpl-3.0 | 80,755 | 2,161 | codeparrot/github-code |
66b5493e6da9e0ee28fb181dee57a04cf14d6a0d7947df35489d2f6e40cb9327 | package de.jdellert.iwsa.sequence;
import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
/**
* Symbol table for mapping IPA segments to integers for efficient inte... | Java | src/de/jdellert/iwsa/sequence/PhoneticSymbolTable.java | jdellert/iwsa | gpl-3.0 | 2,258 | 89 | codeparrot/github-code |
f80bc511165acd9e3f1fbd7f965aa9597d2bcb85cba90cc32b8ae4b5f7473214 | /*
* GNU LESSER GENERAL PUBLIC LICENSE
* Version 3, 29 June 2007
*
* Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
*
* You can view LICENCE file ... | Java | src/main/java/org/dragonet/proxy/network/translator/MessageTranslator.java | WeaveMN/DragonProxy | gpl-3.0 | 7,245 | 193 | codeparrot/github-code |
7f4423589b0574d5df425c917baed081b2502e2326fc8c4a9c7e7ffb451ba85f | /*
* LBFGS.java
*
* Copyright (C) 2016 Pavel Prokhorov (pavelvpster@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... | Java | src/main/java/org/interactiverobotics/ml/optimization/LBFGS.java | pavelvpster/Math | gpl-3.0 | 9,411 | 360 | codeparrot/github-code |
4387323582d025180b1c673bd0726c160881bdcb0fcab60721ec9b05151ffdc0 | /*
* Copyright (C) 2018 Johan Dykstrom
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | Java | src/main/java/se/dykstrom/jcc/common/ast/AbstractJumpStatement.java | dykstrom/jcc | gpl-3.0 | 1,652 | 56 | codeparrot/github-code |
8afb94a774cf5e60d0f44fb2031826a6f905c408b786d54b6a9fd6e3f602e217 | /*
* Copyright (C) 2012 MineStar.de
*
* This file is part of Contao.
*
* Contao is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* Contao is distributed in the ... | Java | src/main/java/de/minestar/contao/manager/PlayerManager.java | Minestar/Contao | gpl-3.0 | 3,520 | 116 | codeparrot/github-code |
4cfe23f90d364d681a653cfaad794588a56f314c93b5580eb58520aed41ab87b | package org.grovecity.drizzlesms.jobs.requirements;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import org.grovecity.drizzlesms.service.KeyCachingService;
import org.whispersystems.jobqueue.requirements.RequirementListen... | Java | src/org/grovecity/drizzlesms/jobs/requirements/MasterSecretRequirementProvider.java | DrizzleSuite/DrizzleSMS | gpl-3.0 | 1,144 | 37 | codeparrot/github-code |
3f551ae173124faf5d797c9f7472da04840192829eaa68e3796d52d0e6476f38 | define(['backbone', 'underscore'], function (Backbone, _) {
return Backbone.Model.extend({
idAttribute: 'username',
defaults: {
persona: {
personaPnombre: '',
personaSnombre: '',
personaApaterno: '',
personaAmaterno: '',
dni: ''
}
},
validate: function (attrs, options) {
console.lo... | JavaScript | src/main/webapp/resources/js/app/models/docente-model.js | jaxkodex/edu-stat | gpl-3.0 | 1,442 | 47 | codeparrot/github-code |
33273a01166732e86248d227fb80490b6e2790cd764b0f5f55a542450fe30bf7 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... | C | eigen/Eigen/src/Core/ProductBase.h | anders-dc/cppfem | gpl-3.0 | 10,519 | 279 | codeparrot/github-code |
4aed451c8aad0b93e8facb42de8fc242c63582898c3cbfcf48a6dd803351d829 | #include <math.h>
#include <stdlib.h>
#include "camp_judge.h"
#include "game_event.h"
#include "monster_ai.h"
#include "monster_manager.h"
#include "path_algorithm.h"
#include "player_manager.h"
#include "time_helper.h"
#include "partner.h"
#include "check_range.h"
#include "cached_hit_effect.h"
#include "count_skill_d... | C++ | Server/game_srv/so_game_srv/partner_ai_1.cpp | tsdfsetatata/xserver | gpl-3.0 | 5,636 | 214 | codeparrot/github-code |
4d3aae26a0898cacb5e7f9cb3444f7aaebdb668a2ac2b7eb6831148f11397e6b | package redsgreens.Pigasus;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEntityEvent;
/**
* Handle events for all Player related e... | Java | src/redsgreens/Pigasus/PigasusPlayerListener.java | redsgreens/Pigasus | gpl-3.0 | 1,558 | 48 | codeparrot/github-code |
3c5c366c4447dd0b1674309bda863f75f455bc0eddafee980d2cb38affb13b5c | /*
Original code by Lee Thomason (www.grinninglizard.com)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
Permission is granted to anyone to use this software for any
purpose, including comme... | C | MT_UseCases/Source/MT_UseCases/external/tinyxml2.h | alex-mitrevski/delta-execution-models | gpl-3.0 | 63,328 | 2,182 | codeparrot/github-code |
0531d453f850200effb2893efd3c4aea60237a313063bff2dab61af4600474d6 | package fi.metatavu.edelphi.jsons.queries;
import java.util.Locale;
import fi.metatavu.edelphi.smvcj.SmvcRuntimeException;
import fi.metatavu.edelphi.smvcj.controllers.JSONRequestContext;
import fi.metatavu.edelphi.DelfoiActionName;
import fi.metatavu.edelphi.EdelfoiStatusCode;
import fi.metatavu.edelphi.dao.querydat... | Java | edelphi/src/main/java/fi/metatavu/edelphi/jsons/queries/SaveQueryAnswersJSONRequestController.java | Metatavu/edelphi | gpl-3.0 | 3,237 | 71 | codeparrot/github-code |
021cdf34059c242fcb946c4d419f4efac7f16b417a4014c79cbbd8d483c97ad0 | /***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. Sánchez (luciano@uniovi.es)
J. Alcalá-F... | Java | src/keel/Algorithms/Genetic_Rule_Learning/RMini/Main.java | SCI2SUGR/KEEL | gpl-3.0 | 2,625 | 85 | codeparrot/github-code |
a863529151d37da8bd7e79094e51dedb1d067736a6d647e8d3dd7401563a501f | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
\\/ M anipulation |
---------------... | C++ | src/OpenFOAM/meshes/polyMesh/globalMeshData/globalPoints.H | themiwi/freefoam-debian | gpl-3.0 | 8,920 | 269 | codeparrot/github-code |
02cf09903a109fc37729997610e7dbcb49bad94e07e2fb0a042ee8f7114a49ae | /*
* Multi2Sim
* Copyright (C) 2012 Rafael Ubal (ubal@ece.neu.edu)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any late... | C | src/arch/southern-islands/emu/opencl-repo.c | filippo-ceid/multi2sim | gpl-3.0 | 6,076 | 212 | codeparrot/github-code |
210429509fe4d2bae477a5ffb81ad2a22b9916e3e4e81986e9a8595e1d04ed6a | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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.... | JavaScript | js/src/ui/ParityBackground/parityBackground.js | pdaian/parity | gpl-3.0 | 1,825 | 68 | codeparrot/github-code |
f50b808b466633072c2d33ab3e4443f8fd8415993e00225a5d95b75424e263c3 | /**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
(function ($, require) {
var exports = require('piwik/UI');
/**
* Creates a new notifications.
*
* Example:
* var UI = require('piwik/UI');
... | JavaScript | plugins/CoreHome/javascripts/notification.js | piwik/piwik | gpl-3.0 | 7,980 | 204 | codeparrot/github-code |
c3bfed88c10c92d53c2578b14017cee92c2295c16f244eb391cd4d16daa58b71 | <?php
/**
*
* @version 1.0.9 June 24, 2016
* @package Get Bible API
* @author Llewellyn van der Merwe <llewellyn@vdm.io>
* @copyright Copyright (C) 2013 Vast Development Method <http://www.vdm.io>
* @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
*
**/
defined( '_JEXEC' ) ... | PHP | admin/models/import.php | getbible/Joomla-3-Component | gpl-3.0 | 27,659 | 869 | codeparrot/github-code |
1724bf0a88e0ca6a843d12d5f5e4cfbdc40addc63e7253373ddef6a326b9705a | /* Multiple Lua Programming Language : Intermediate Code Generator
* Copyright(C) 2014 Cheryl Natsu
* This file is part of multiple - Multiple Paradigm Language Interpreter
* multiple is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* ... | C | mlua_icg.c | zooxyt/lua | gpl-3.0 | 15,534 | 428 | codeparrot/github-code |
db5b5b9c25a724ed4d60b10e1d25c90ebe73a222d972458c629db06e129af4f2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Library\CommandLine\AbstractCommandLineController | Library</title>
<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css">
<link rel="styleshee... | HTML | phpdoc/Library/CommandLine/AbstractCommandLineController.html | atelierspierrot/library | gpl-3.0 | 63,915 | 2,025 | codeparrot/github-code |
0c61a37610a9fd8c494298ecb0fab478ae3835402468a660b69d0ac1873ce444 | /*********************
* bio_tune_menu.cpp *
*********************/
/****************************************************************************
* Written By Mark Pelletier 2017 - Aleph Objects, Inc. *
* Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
* ... | C++ | Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/bio_tune_menu.cpp | tetious/Marlin | gpl-3.0 | 3,525 | 80 | codeparrot/github-code |
75f189683605a0bb9e7c9c221af36fdf069656f7a8a6237e781dffc7b7d7fce6 | /*
* Copyright (C) 2006-2010 - Frictional Games
*
* This file is part of HPL1 Engine.
*
* HPL1 Engine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opti... | C++ | sources/scene/Entity3D.cpp | FrictionalGames/HPL1Engine | gpl-3.0 | 11,350 | 432 | codeparrot/github-code |
32e688db3997d49b523797fb86c9eae2e40b41ea0c6323ca9258c81ba7eba790 | from feeluown.utils.dispatch import Signal
from feeluown.gui.widgets.my_music import MyMusicModel
class MyMusicItem(object):
def __init__(self, text):
self.text = text
self.clicked = Signal()
class MyMusicUiManager:
"""
.. note::
目前,我们用数组的数据结构来保存 items,只提供 add_item 和 clear 方法。
... | Python | feeluown/gui/uimodels/my_music.py | cosven/FeelUOwn | gpl-3.0 | 836 | 38 | codeparrot/github-code |
659153e81b56b311639a3c80a4e70b8ea03eaf4541a687a47ab95b7f38d9f9d2 | (function() {
var app = angular.module('article-directive', ['ui.bootstrap.contextMenu']);
app.config(function($sceProvider) {
// Completely disable SCE. For demonstration purposes only!
// Do not use in new projects.
$sceProvider.enabled(false);
});
app.directive('article', function () {
var c... | JavaScript | src/main/resources/static/article/angular-article-directive.js | lowdev/Article-Annotater | gpl-3.0 | 1,330 | 51 | codeparrot/github-code |
5157db75eb350bd80fe043c23e53d834dacd3b368df419712b3b2d871173648a | /*
Copyright (C) 2014 PencilBlue, LLC
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is... | JavaScript | plugins/pencilblue/controllers/admin/content/topics/manage_topics.js | shihokoui/pencilblue | gpl-3.0 | 2,715 | 92 | codeparrot/github-code |
5e3eb407f1c7eed5b735a75904b6a4eefccaae7a6413ab43a232e46971e226bd | /* Copyright David Strachan Buchan 2013
* This file is part of BounceBallGame.
BounceBallGame 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 | src/uk/co/ashndave/KeepyUppy.java | davidsbuchan/BounceBallGame | gpl-3.0 | 2,378 | 75 | codeparrot/github-code |
ffd4aa9f12613287e0478eee9369289357d0bb5ee414fcc55da65ab61ac36077 | /**
******************************************************************************
* @file Examples_LL/USART/USART_Communication_TxRx_DMA/Src/main.c
* @author MCD Application Team
* @brief This example describes how to send/receive bytes over USART IP using
* the STM32F0xx USART LL API in DMA m... | C | Software/Handmouse_STM/Lib_DL/STM32Cube_FW_F0_V1.8.0/Projects/STM32F072RB-Nucleo/Examples_LL/USART/USART_Communication_TxRx_DMA/Src/main.c | Fdepraetre/Handmouse | gpl-3.0 | 19,128 | 576 | codeparrot/github-code |
ffc8876f8598cc857a0c7542582ca862b11d8d84605939bdc0db2044c40a6b68 | /*
* FuchsTracker.c Copyright (C) 1999 Sylvain "Asle" Chipaux
*
* Depacks Fuchs Tracker modules
*
* Modified in 2006,2007,2014 by Claudio Matsuoka
*/
#include <string.h>
#include <stdlib.h>
#include "prowiz.h"
static int depack_fuchs(HIO_HANDLE *in, FILE *out)
{
uint8 *tmp;
uint8 max_pat;
/*int ssize;*/
... | C | _dependencies/libxmp-4.4.0/src/loaders/prowizard/fuchs.c | DodgeeSoftware/OpenALWrapper | gpl-3.0 | 3,794 | 203 | codeparrot/github-code |
185e729a9957f20d2b771ecd5410821fda40d9f4fa5ee591b3ceb54cd5bcc479 | //
// UDPConnection.hpp for server in /home/galibe_s/rendu/Spider/server/core
//
// Made by stephane galibert
// Login <galibe_s@epitech.net>
//
// Started on Sun Nov 6 17:00:50 2016 stephane galibert
// Last update Thu Nov 10 12:34:21 2016 stephane galibert
//
#pragma once
#include <iostream>
#include <string>
#... | C++ | server/core/UDPConnection.hpp | Stephouuu/Spider | gpl-3.0 | 1,378 | 59 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.