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 |
|---|---|---|---|---|---|---|---|---|
2e0168c8b3a6b3d0ec3a19cd3293192f0f9ee9e751fa1730f584818c7cec23a3 | package biz.dealnote.messenger.util;
import android.content.Context;
import android.text.Spannable;
import java.text.DateFormat;
import java.util.Date;
import biz.dealnote.messenger.R;
import biz.dealnote.messenger.link.internal.OwnerLinkSpanFactory;
/**
* Created by admin on 17.06.2017.
* phoenix
*/
public clas... | Java | app/src/main/java/biz/dealnote/messenger/util/FormatUtil.java | PhoenixDevTeam/Phoenix-for-VK | gpl-3.0 | 1,322 | 35 | codeparrot/github-code |
35990f4131c736f5851fd6964184db58a118d5973728e955a376af3987c5d677 | // Copyright 2014 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program is distributed in the hope that it will be... | C | string/String.h | jvaemape/utilities | gpl-3.0 | 6,594 | 229 | codeparrot/github-code |
dd7f6757f2d5d41ee2a0f5c775db092d6c92053053cc7e216e242d45472cbe8d | import { AlloyTriggers, Attachment, Debugging, Swapping } from '@ephox/alloy';
import { Cell, Fun } from '@ephox/katamari';
import { PlatformDetection } from '@ephox/sand';
import { Element, Focus, Insert, Node } from '@ephox/sugar';
import DOMUtils from 'tinymce/core/api/dom/DOMUtils';
import ThemeManager from 'tinym... | TypeScript | hp/core/static/lib/tinymce/src/themes/mobile/main/ts/Theme.ts | jabber-at/hp | gpl-3.0 | 7,637 | 238 | codeparrot/github-code |
45f70e84463e438f45961f1f53acb67ffe6a1fcaf5f242dd3433cc1e505e54a4 | '''
*******************************************************************************
* ButtonEvent.py 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... | Python | ButtonEvent.py | iocanto/bug-python-libraries | gpl-3.0 | 2,246 | 92 | codeparrot/github-code |
28aa78a158da79eaaab899517590f2844f91c4c32ca8c1a60bf2a3c9c30b6b78 | /*
* modeline-parser.c
* Emacs, Kate and Vim-style modelines support for gedit.
*
* Copyright (C) 2005-2007 - Steve Frécinaux <code@istique.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Fou... | C | libide/modelines/modeline-parser.c | mwleeds/gnome-builder | gpl-3.0 | 19,079 | 816 | codeparrot/github-code |
22b210348c2e468b404209cd191e30a96c3c6035adda3eafaaafed38b72b433f | /*
* This file is part of Radio Downloader.
* Copyright © 2007-2018 by the authors - see the AUTHORS file for details.
*
* 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... | C# | Forms/Preferences.cs | nbl1268/RadioDownloader | gpl-3.0 | 7,637 | 208 | codeparrot/github-code |
94d2eabaa554c866ea79aa96847ee82640a755c05e778b7ff16e6d888bd43f64 | # -*- coding: utf-8 -*-
# Dioptas - GUI program for fast processing of 2D X-ray diffraction data
# Principal author: Clemens Prescher (clemens.prescher@gmail.com)
# Copyright (C) 2014-2019 GSECARS, University of Chicago, USA
# Copyright (C) 2015-2018 Institute for Geology and Mineralogy, University of Cologne, Germany
... | Python | dioptas/model/Configuration.py | Dioptas/Dioptas | gpl-3.0 | 34,175 | 749 | codeparrot/github-code |
20721052cc458cfaddf5e2c0317a2f4f05324c404ed5a0d52f4750ee33a4809d | <?php
/**
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link https://github.com/bderidder/ldm-guild-website
*/
namespace LaDanse\ServicesBundle\Service\DTO\Callback;
use JMS\Serializer\Annotation\ExclusionPolicy;
use JMS\Serializer\Annotation\SerializedName;
use JMS\Serialize... | PHP | src/LaDanse/ServicesBundle/Service/DTO/Callback/LogCallback.php | bderidder/ldm-guild-website | gpl-3.0 | 1,366 | 70 | codeparrot/github-code |
dc0f414f839ac108e9de3298b3d0983516b1098f9c18e46af954f4d9694920ec | var express = require('express');
var reload = require('reload');
var fs = require('fs');
var wss = new require('ws').Server({port: 3030});
var app = express();
var Chopper = require('./lib/Chopper');
app.set('port', process.env.PORT || 3000);
app.set('view engine', 'ejs');
app.use(require('./routes/index')... | JavaScript | exp_app.js | gjgjwmertens/LedBlinkJohhny5 | gpl-3.0 | 1,517 | 55 | codeparrot/github-code |
dfb272574c477eaea37db95d8e0614856c35c58a92b209e9632c707ca0fa1d70 | package org.trrusst.software.recommender;
import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Lis... | Java | TrWebApp/src/main/java/org/trrusst/software/recommender/TrustBasedServiceRecommender.java | sandakith/TRRuSST | gpl-3.0 | 2,115 | 59 | codeparrot/github-code |
6194376469b3406fc95b5a2a6168f631f14b54f5ee285a564b211ff9a4ffcf05 | import time
import json
import pytz
from datetime import datetime, timedelta
from django.utils import timezone
from django.conf import settings
from rest_framework import status
from rest_framework.decorators import api_view, permission_classes
from rest_framework.response import Response
from rest_framework.permissi... | Python | djangodashpanel/security/views.py | dspichkin/djangodashpanel | gpl-3.0 | 9,113 | 250 | codeparrot/github-code |
0a9db44aa46e36613af8dc6270e96ac2498910c064fa0501c7c911a503b18541 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace Plasmosis
{
public partial class frmClassical : Form
{
privat... | C# | Plasmosis/Form1.cs | shawnkoon/Plasmosis | gpl-3.0 | 14,505 | 448 | codeparrot/github-code |
5308bb8abc320f3361e4052c6eb9df06e51772a3e6645805b4463240622b0145 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package solomonserver;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.sql.Connection;
i... | Java | projects/solomon/Server/SolomonServer/src/solomonserver/SolomonServer.java | beia/beialand | gpl-3.0 | 11,938 | 309 | codeparrot/github-code |
d80ecfead92b2ed52af9afa50470d8cea88398543b99f70b8765729b0fa125d0 | #include "BioXASCarbonFilterFarm.h"
BioXASCarbonFilterFarm::BioXASCarbonFilterFarm(const QString &deviceName, QObject *parent) :
BioXASBeamlineComponent(deviceName, parent)
{
// Create upstream actuator.
upstreamActuator_ = new BioXASCarbonFilterFarmActuator(QString("%1%2").arg(deviceName).arg("UpstreamActuator"),... | C++ | source/beamline/BioXAS/BioXASCarbonFilterFarm.cpp | acquaman/acquaman | gpl-3.0 | 6,658 | 231 | codeparrot/github-code |
da55d4a35469327df9ad20d5bdfbaf357176dfcf8a0c4ea8eb35642943fdb83b | #ifndef APPSTATMODEL_H
#define APPSTATMODEL_H
#include <util/model/stringlistmodel.h>
class AppInfoCache;
class StatManager;
class AppStatModel : public StringListModel
{
Q_OBJECT
public:
explicit AppStatModel(QObject *parent = nullptr);
StatManager *statManager() const;
AppInfoCache *appInfoCache(... | C | src/ui/model/appstatmodel.h | tnodir/fort | gpl-3.0 | 1,016 | 48 | codeparrot/github-code |
ff1c39c2c87a1b251e2b0fd0513885d43c2c47cdaa735663867fcd22ac1b8c70 | package org.optimizationBenchmarking.evaluator.attributes.clusters.propertyValueGroups;
import org.optimizationBenchmarking.utils.math.NumericalTypes;
import org.optimizationBenchmarking.utils.math.functions.arithmetic.Div;
import org.optimizationBenchmarking.utils.math.functions.arithmetic.Mul;
import org.optimi... | Java | src/main/java/org/optimizationBenchmarking/evaluator/attributes/clusters/propertyValueGroups/EGroupingMode.java | optimizationBenchmarking/evaluator-attributes | gpl-3.0 | 24,903 | 841 | codeparrot/github-code |
21091380e18f93e3dd2d1393450868c829e4dcfdd3c1c3fc56e6aa3927f2e7ff | // Copyright 2014 The go-krypton Authors
// This file is part of the go-krypton library.
//
// The go-krypton library is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, o... | GO | core/types/receipt.go | covertress/go-krypton | gpl-3.0 | 4,699 | 142 | codeparrot/github-code |
afc37166ebc289863f619b066c6c582ce1aea0550136af250f27af2e082158cd |
#include "mssmUtils.h"
#include "softsusy.h"
#include <iostream>
namespace softsusy {
double sw2 = 1.0 - sqr(MW / MZ),
gnuL = 0.5,
guL = 0.5 - 2.0 * sw2 / 3.0,
gdL = -0.5 + sw2 / 3.0,
geL = -0.5 + sw2,
guR = 2.0 * sw2 / 3.0,
gdR = -sw2 / 3.0,
geR = -sw2,
yuL = 1.0 / 3.0,
yuR = -4.0 / 3.0,
ydL = ... | C++ | models/smssm/mssmUtils.cpp | McLenin/gm2 | gpl-3.0 | 17,306 | 502 | codeparrot/github-code |
23f4fad94b191e7f2af81514c97119016faf1bcd6af792846a7238ad1212490d | // Copyright (c) 2009 Frank Laub
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions an... | C# | openssl-net/ManagedOpenSsl/Core/Asn1Integer.cs | dantmnf/YASS | gpl-3.0 | 2,084 | 63 | codeparrot/github-code |
54a6c7ebf784016c05e6154bf8c9412fd9eec2a742f10bb2e2ec1b6a2d9bbd39 | # -*- coding: utf-8 -*-
#
# Copyright © 2011 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""IPython v0.11+ Plugin"""
from spyderlib.qt.QtGui import QHBoxLayout
# Local imports
from spyderlib.widgets.ipython import create_widget
from spyderlib.plu... | Python | distinclude/spyderlib/plugins/ipython.py | jromang/retina-old | gpl-3.0 | 2,011 | 66 | codeparrot/github-code |
88399a9d036090cbf0f5b486d7c72a0f3adc1e716e49a1dfb22c6a6839bed1a5 | package com.jmbsystems.fjbatresv.mascotassociales.photoList.ui;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.provider.MediaStore;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snac... | Java | app/src/main/java/com/jmbsystems/fjbatresv/mascotassociales/photoList/ui/PhotoListActivity.java | fjbatresv/MascotasSociales | gpl-3.0 | 5,594 | 175 | codeparrot/github-code |
a88b3b9d8b0ddae8a6b7de8d66042e70b62321e047ca834c58fbb9ed0c86442c | /**
* Copyright © 2021 Rémi Pace.
* This file is part of Abc-Map.
*
* Abc-Map is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later vers... | TypeScript | packages/frontend/src/core/history/tasks/layers/RemoveLayerTask.ts | remipassmoilesel/abcmap | gpl-3.0 | 1,387 | 43 | codeparrot/github-code |
ba1870369bd9b1acbaa0e017d4033c170ec95e886a3da6a1a022b5a42090da6c | # coding: utf-8
import os
import urllib
import numpy as np
import pickle
from Experiment import Experiment
ROOT_PATH = './full_dataset/article_4_data/grouped_ephys'
ZIPFILE_PATH = './full_dataset/article_4_data'
EXPM_PATH = './results/experiments/'
URL = 'http://microcircuits.epfl.ch/data/released_data/'
if not os.... | Python | bbp_analysis/bluebrain_data_io.py | awakenting/gif_fitting | gpl-3.0 | 9,533 | 268 | codeparrot/github-code |
1656824f1442c4ad3e35ca9c33755a83571c9fe612f36fb8ea2e9712ac7019b2 | /*---------------------------------------------------------------------------
* Copyright (C) 2008-2017 - Emanuele Bovisio
*
* This file is part of Mulk.
*
* Mulk 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 Softw... | C | lib/option_obj.c | emabo/mulk | gpl-3.0 | 28,323 | 900 | codeparrot/github-code |
c7c9ab700714d776f446c9f32805a69fe096940622640bef6dbe0032e3f05dfc | package org.safehaus.penrose.ldap;
import java.util.Map;
import java.util.TreeMap;
/**
* @author Endi S. Dewata
*/
public class RDNBuilder {
public Map<String,Object> values = new TreeMap<String,Object>();
public RDNBuilder() {
}
public boolean isEmpty() {
return values.isEmpty();
}
... | Java | common/src/main/java/org/safehaus/penrose/ldap/RDNBuilder.java | rgorosito/penrose | gpl-3.0 | 1,607 | 74 | codeparrot/github-code |
2442df73c79657012e55fa02c8c25fd968a3682440c880a9bc623d06926cd09f | package de.gwdg.metadataqa.marc.definition.general.validator;
import de.gwdg.metadataqa.marc.dao.DataField;
import de.gwdg.metadataqa.marc.dao.MarcRecord;
import de.gwdg.metadataqa.marc.MarcSubfield;
import de.gwdg.metadataqa.marc.definition.ValidatorResponse;
import de.gwdg.metadataqa.marc.definition.tags.tags01x.Tag... | Java | src/test/java/de/gwdg/metadataqa/marc/definition/general/validator/ISBNValidatorTest.java | pkiraly/metadata-qa-marc | gpl-3.0 | 6,000 | 160 | codeparrot/github-code |
8c7e72e9d6356e42f93a0a3abc14cb3b6e2e07271808d8b6dee82445f46605fe | // Copyright 2017 voidALPHA, Inc.
// This file is part of the Haxxis video generation system and is provided
// by voidALPHA in support of the Cyber Grand Challenge.
// Haxxis 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 Softwar... | C# | Assets/Scripts/Utility/DevCommand/DevCommandConsoleResizeBehaviour.cs | voidALPHA/cgc_viz | gpl-3.0 | 3,345 | 76 | codeparrot/github-code |
978d92edb00db89f1f65670e7ee3a55a8034d29390b4044c7d61b9a267cd7aaf | var index = require('express').Router();
var Member = require('../models/Member');
var sitemap = require('../middlewares/sitemap');
var utils = require('../middlewares/utils');
index.get('/', function (req, res) {
res.redirect('/article');
});
index.get('/lang', function (req, res) {
var setLang;
if (req.cookie... | JavaScript | routes/default.js | hfut-xcsoft/xcsoft.hfut.edu.cn | gpl-3.0 | 829 | 36 | codeparrot/github-code |
a03c4b06d17b8f09a1841e0119404d06cfb397c7686f04f5e2bf3f1b91b3288b | package PACMethod_remote_tty;
##################################################################
# This file is part of PAC( Perl Auto Connector)
#
# Copyright (C) 2010-2014 David Torrejon Vaquerizas
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Publ... | Perl | lib/method/PACMethod_remote_tty.pm | CharellKing/pac | gpl-3.0 | 3,805 | 168 | codeparrot/github-code |
722e66cee73c98f871e23d8696af459c29cec3875e74268df68b21ec99a697f5 | /* homefrog
* Copyright (C) 2016 Ognyan Tonchev <otonchev at 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) any later... | C | src/shp-complextype-factory.c | otonchev/homefrog | gpl-3.0 | 4,083 | 167 | codeparrot/github-code |
4e9561fc0ad6efbf89fb4c3dcfd61e7552c545bd9200f9235b871cd57326c946 | // tinyfs.c
//
//[reference]
// https://blog.csdn.net/dog250/article/details/100099936
// https://blog.csdn.net/Angel_94/article/details/100880297
// https://blog.csdn.net/u011784994/article/details/52614935
//
// $ make all install test
// dmesg
// [ 382.940306] tinyfs_mount; -enter, dev_name=none
// [ 382.940317... | C | linux_kernel/vfs/self_implemented_tinyfs/tinyfs.c | syslover33/ctank | gpl-3.0 | 11,863 | 455 | codeparrot/github-code |
ab5d344fa15108d790dada01d14b0ec8ccb1de68da626dadffedcb012396d2f5 | #
# controller.py
#
# Copyright (C) 2013-2014 Ashwin Menon <ashwin.menon@gmail.com>
# Copyright (C) 2015-2018 Track Master Steve <trackmastersteve@gmail.com>
#
# Alienfx is free software.
#
# You may redistribute it and/or modify it under the terms of the
# GNU General Public License, as published by the Free Software
... | Python | alienfx/core/controller.py | ashwinm76/alienfx | gpl-3.0 | 11,875 | 301 | codeparrot/github-code |
7727888b97f8ad239f0c4aacf9247ab5514a3a0cefe539ef5e545546e9b4b325 | //
// SuperTuxKart - a fun racing game with go-kart
// Copyright (C) 2004-2015 Steve Baker <sjbaker1@airmail.net>
// Copyright (C) 2010-2015 Steve Baker, Joerg Henrichs
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as publishe... | C++ | src/graphics/material.hpp | nado/stk-code | gpl-3.0 | 17,686 | 432 | codeparrot/github-code |
c9ecf25afbaf88cc1edadf1bed09522e44805585a93ed97dd694307df2d33c58 | <?php
$this->beginWidget('zii.widgets.jui.CJuiDialog',
array( // the dialog
'id'=>'dialogTimetracker',
'options'=>array(
'title'=>'Log Time',
'autoOpen'=>false,
'modal'=>true,
'width'=>'420',
'height'=>'auto',
'mi... | PHP | protected/views/issue/backup/_sidebar.php | Renaud-Diez/NFT | gpl-3.0 | 4,692 | 175 | codeparrot/github-code |
a0f63e6fad1793103cc6da3465271876c28cc72b91df20b916080b2bc4f09121 | /** \file pluginLoader.h
\brief Define the plugin loader
\author alpha_one_x86
\licence GPL3, see the file COPYING */
#ifndef PLUGIN_LOADER_TEST_H
#define PLUGIN_LOADER_TEST_H
#include <QObject>
#include <QMessageBox>
#include <QString>
#include <QStringList>
#include <QProcess>
#include <QSet>
#ifdef Q_OS_WIN32
... | C | plugins/PluginLoader/catchcopy-v0002/pluginLoader.h | coolshou/Ultracopier | gpl-3.0 | 1,968 | 64 | codeparrot/github-code |
833893168b6ecfe2cd6ab1e0ff4d1c7a36084ec2f6a00f8c1c11e21cdd9a1df0 | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* 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 Li... | C++ | Marlin/src/lcd/touch/touch_buttons.cpp | 1stsetup/Marlin | gpl-3.0 | 3,431 | 93 | codeparrot/github-code |
3b441a678dcbe104ce7f32ffcfadba96da84695972c9462ab65a0dda06594208 | /*========================================================
* TypeParsing.h
* @author Sergey Mikhtonyuk
* @date 17 August 2009
=========================================================*/
#ifndef _TYPEPARSING_H__
#define _TYPEPARSING_H__
#include "../../Engine.Graphics/Interfaces/EffectTypes.h"
#include "../../... | C | Engine.Graphics.Parsers/Common/TypeParsing.h | mikhtonyuk/3DEngine | gpl-3.0 | 2,163 | 53 | codeparrot/github-code |
49fd0c07f8496967bb6d5657bcd4674ef26f7e7da7e5429f42a6302b8a9cca6e | #region license
/*
MediaFoundationLib - Provide access to MediaFoundation interfaces via .NET
Copyright (C) 2007
http://mfnet.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; e... | C# | src/ReadWrite/Enums/MF_SOURCE_READER_FLAG.cs | todor-dk/SuperMFLib | gpl-3.0 | 3,893 | 104 | codeparrot/github-code |
f986a9d06ce95f94d2ea1487ef7fec9095e5c08b09f4326f6441efbd83ae6508 | <?php
header('Content-Type: text/xml');
include '../xmlbuilder.php';
if(isset($_POST['HomeUrl']) &&isset($_POST['DBHost']) && isset($_POST['DBName']) && isset($_POST['DBPw']) && isset($_POST['DBLogin'])){
if(createConfigFile($_POST['HomeUrl'],$_POST['DBHost'], $_POST['DBLogin'], $_POST['DBName'], $_POST['DBPw'])) {
... | PHP | app/webroot/services/installation/index.php | DHBW-Projekt/BeePublished | gpl-3.0 | 2,644 | 98 | codeparrot/github-code |
6e0ec9f9db7203923f91a9e81c7543a7def2bd11dae2d37bdbfd183d42ad3b78 | package battlecode.world;
import battlecode.common.Direction;
import battlecode.common.GameConstants;
import battlecode.common.MapLocation;
import battlecode.common.RobotType;
import battlecode.common.TerrainTile;
import battlecode.serial.GenericGameMap;
import java.util.Arrays;
import java.util.EnumMap;
import java.... | Java | src/main/battlecode/world/GameMap.java | bovard/battlecode-server-2014 | gpl-3.0 | 12,224 | 389 | codeparrot/github-code |
40cb16bcd3c8ee55c9aa3892ddefb0bb2d2e927d25dc3ca36c2d89ddd272e6d7 | #ifndef __blast_partassign_h
#define __blast_partassign_h
#include <string>
#include <iostream>
#include <vector>
#include <map>
namespace papara {
template<typename pvec_t, typename seq_tag>
class references;
template<typename seq_tag>
class queries;
}
namespace partassign {
struct blast_hit {
std::string ... | C | blast_partassign.h | sim82/papara_nt | gpl-3.0 | 1,735 | 85 | codeparrot/github-code |
d215e9fc8033c11f64b5ac77a7d91b5b4b3c2ec335f5c76e23b5d559eee70b53 | 'use strict';
const Stack = require('./_Stack');
const baseIsEqual = require('./_baseIsEqual');
/** Used to compose bitmasks for comparison styles. */
const UNORDERED_COMPARE_FLAG = 1;
const PARTIAL_COMPARE_FLAG = 2;
/**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @priva... | JavaScript | lib/xml2js-req/xmlbuilder/lodash/_baseIsMatch.js | rafa1231518/CommunityBot | gpl-3.0 | 1,805 | 62 | codeparrot/github-code |
7105142865f1f13d7703e14820e870269d8f7112e594e9e58769e7a3e451e302 | ///////////////////// DIVERSITY /////////////////////
// DIVERSITY is a tool to explore multiple ways of protein-DNA
// binding in the genome. More information can be found in the README file.
// Copyright (C) 2015 Sneha Mitra, Anushua Biswas and Leelavati Narlikar
// DIVERSITY is free software: you can ... | C | motifops.c | NarlikarLab/DIVERSITY | gpl-3.0 | 8,441 | 261 | codeparrot/github-code |
b62b7cae9eb93ea8146605ca5b901d3aa26f8e3092dac1dcbd398490fc80aba4 | /* pbmtoppa.c
* program to print a 600 dpi PBM file on the HP DJ820Cse or the HP720 series.
* Copyright (c) 1998 Tim Norman. See LICENSE for details
* 2-24-98
*/
#define _BSD_SOURCE
/* This makes sure strcasecmp() is in string.h */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.... | C | labs/netpbm/converter/pbm/pbmtoppa/pbmtoppa.c | fritsche/curso-cuda | gpl-3.0 | 14,286 | 461 | codeparrot/github-code |
232e65209d7f59159aabb249d8175bae65b3625ca8b14fadfc0291b9a871a8f1 | <?php
//prohibit unauthorized access
require 'core/access.php';
$status_msg = '';
/* delete items from excludes list */
if(isset($_POST['del_exclude']) && is_numeric($_POST['del_exclude'])) {
$del_exclude = (int) $_POST['del_exclude'];
fc_delete_excludes($del_exclude);
}
if(isset($_POST['add_exclude_url'])) {
fc... | PHP | acp/core/pages.index.php | flatCore/flatCore-CMS | gpl-3.0 | 16,732 | 551 | codeparrot/github-code |
616eba950ccdae961db17543dbb08944deba22eec221240ecc3ec8dcad27676f | :global {
/**
* React Select
* ============
* Created by Jed Watson and Joss Mackison for KeystoneJS, http://www.keystonejs.com/
* https://twitter.com/jedwatson https://twitter.com/jossmackison https://twitter.com/keystonejs
* MIT License: https://github.com/JedWatson/react-select
*/
.Select {
position: re... | CSS | web/src/components/inputs/select.css | doeg/plantly-graphql | gpl-3.0 | 9,811 | 389 | codeparrot/github-code |
fa3b4a1a95d06fc63bcb5b365af3b012c082441beab2f74ae7802d7b4ed9204b | <?php
/**
* Modul pro konverzi textu
*
* @category Module
* @package Module
* @author onovy <onovy@nomi.cz>
*/
// Security
if (!defined('ONOVY_PHP_LIB')) die;
define('MODULE_I2HTML',1);
/**
* Konverze textu na HTML
*
* @param $input - vstupni text
* @param $typo - provadet typografickou upravu?... | PHP | onovyPHPlib/mlib/i2html.php | onovy/KvizBot-web | gpl-3.0 | 3,603 | 130 | codeparrot/github-code |
1e8140549c5e503d64978c617e828543118a035258ac54bc4bf5234a7bfb096c | <?php
namespace Code\Base\Paradigm\Helpers;
use Jarvis;
/**
* String utilities
*
* String related functions, particularly around token substitution
*
* PHP version 7.2+
*
* @category Utility
* @package Framework
* @author Rick Myers rick@enicity.com
* @since File available since Release 1.0.0
*... | PHP | app/Code/Base/Paradigm/Helpers/Str.php | RickMyers/Jarvis | gpl-3.0 | 5,127 | 200 | codeparrot/github-code |
ece7531d9413372700202e9dcda84ec2ed2481f3e0cf4e715de1b6fc354f67c4 | package abd.p1.model;
import java.util.Date;
import javax.persistence.*;
@Entity
public class MensajeAmistad extends Mensaje{
@Column
private boolean aceptado;
public MensajeAmistad(){
super();
}
public MensajeAmistad(Usuario usu, Usuario amigo){
super(usu, amigo);
aceptado = true;
}
public boolean... | Java | practica1User/src/main/java/abd/p1/model/MensajeAmistad.java | juanmont/ABD | gpl-3.0 | 542 | 38 | codeparrot/github-code |
621d268ed53b267d51f97e9e574c15add7b9d48bb2f727ebee519fc7fb062af2 | /*
* This file is part of trolCommander, http://www.trolsoft.ru/en/soft/trolcommander
* Copyright (C) 2014-2016 Oleg Trifonov
*
* trolCommander 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 | src/main/com/mucommander/ui/action/impl/ToggleTableViewModeCompactAction.java | Keltek/mucommander | gpl-3.0 | 2,674 | 77 | codeparrot/github-code |
eae71817771168c9819e048eed7083b59c328f5ade4b32adcacc62daa84528d6 | /**
* The µkleos scheduler implementation
*
* Copyright (C) 2010 Freie Universität Berlin
*
* This file subject to the terms and conditions of the GNU General Public
* License. See the file LICENSE in the top level directory for more details.
*
* @ingroup kernel
* @{
* @file
* @author Kaspar Schleiser <kaspa... | C | core/sched.c | benpicco/RIOT-old | gpl-3.0 | 5,513 | 192 | codeparrot/github-code |
29b943fd5f82ba65372f4e54be3c23ea5ba89db8165435fec37c87b7c1517d96 | /***************************************************************************/
/*
* m5407.c -- platform support for ColdFire 5407 based boards
*
* Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
* Copyright (C) 2000, Lineo (www.lineo.com)
*/
/************************************************************... | C | arch/m68k/coldfire/m5407.c | williamfdevine/PrettyLinux | gpl-3.0 | 1,450 | 55 | codeparrot/github-code |
932bf748b3ecb893d84d824e0ef3e25a9099a00ae469a63758306f9e659bf92a | /* File: RA250.H 'C' structures for RemoteAccess 2.50 Gamma
Version: 0.3 (22/04/96)
Author: Damien Guard
Copyright: Envy Technologies, 1996.
Changes: 0.1 - Initial release
0.2 - Fixed some compile problems
Sorted enumeration types
0.3 - Added some examples
All new documentation ... | C++ | remoteaccess-bbs/ra-cdk/RA250C.H | damieng/graveyard | gpl-3.0 | 27,536 | 849 | codeparrot/github-code |
938b168f76ac43b30caaf74a5c2fbedca0e0ca0089546f3a074250455aa17ec4 | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... | Java | java/android-sdk-linux_r24.4.1_src/sources/android-23/android/support/v17/leanback/widget/SearchOrbView.java | syslover33/ctank | gpl-3.0 | 12,627 | 373 | codeparrot/github-code |
14192b877b53f8f17c2e8a1ce67addf335fc9f850fd319d7c91772b00ed2fd76 | #!/bin/bash
set -e
bold() {
printf "\033[1m%s\033[0m\n" "$*"
}
dim() {
printf "\033[2m%s\033[0m\n" "$*"
}
delete_gcda_files() {
bold "Deleting .gcda files . . .";
printf "\033[2m";
find . -name '*.gcda' -delete -print | sed -e 's:./::'
printf "\033[0m";
}
if [ -x "$(command -v ccache)" ]; then
b... | Shell | etc/test-code-coverage.sh | james-d-mitchell/semigroupsplusplus | gpl-3.0 | 2,751 | 107 | codeparrot/github-code |
927ad9b45ec6780f3b4bf2093c2c84f6822b92200422457de232a32ef596f5cc | using System;
namespace Server.Items
{
public class DaemonBloods : Item
{
public override int LabelNumber { get { return 1023965; } } // Daemon Blood
public override bool ForceShowProperties { get { return ObjectPropertyList.Enabled; } }
[Constructable]
public DaemonBloods()
... | C# | Scripts/Core/Mondains Legacy/Items/Magincia Invasion/DaemonBloods.cs | GenerationOfWorlds/GOW | gpl-3.0 | 4,575 | 186 | codeparrot/github-code |
6f681d10e62150fc969c3a5f05cb3d3dd03b132a81f5b27155c3c2798267ce74 | namespace Maticsoft.ZipLib.Tar
{
using System;
using System.IO;
public class TarBuffer
{
private int blockFactor = 20;
public const int BlockSize = 0x200;
private int currentBlockIndex;
private int currentRecordIndex;
public const int DefaultBlockFactor = 20;
... | C# | Maticsoft.ZipLib_Source/Maticsoft.ZipLib.Tar/TarBuffer.cs | 51zhaoshi/myyyyshop | gpl-3.0 | 10,590 | 353 | codeparrot/github-code |
93e4f4d48c5f11277b2326682f90a77c821fb5cb6708e390d778a24bc3a49f2c | /*
* Copyright (C) 2011 Dmitry Skiba
*
* 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 distr... | C | src/CoreGraphics/CGAffineTransform.c | DmitrySkiba/itoa-main | gpl-3.0 | 4,932 | 161 | codeparrot/github-code |
d3ea75420f6ae59540dd5e465ad344b6b6fca1de8d955db6f0cbe5f1b4bf2f42 | import re
import sys
import whoisSrvDict
import whoispy_sock
import parser_branch
OK = '\033[92m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def query(domainName):
rawMsg = ""
tldName = ""
whoisSrvAddr = ""
regex = re.compile('.+\..+')
match = regex.search(domainName)
if not match:
# Invalid ... | Python | whoispy/whoispy.py | nemumu/whoispy | gpl-3.0 | 1,198 | 51 | codeparrot/github-code |
fe89f845700881d9b249f58ac23df1e5618c3b63f06f0880de9bd41556da7eb5 | /*==LICENSE==*
CyanWorlds.com Engine - MMOG client, server and tools
Copyright (C) 2011 Cyan Worlds, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | C++ | Sources/Plasma/FeatureLib/pfPython/Games/Heek/pyHeekGame.cpp | v1nc3ntm/Plasma | gpl-3.0 | 3,285 | 108 | codeparrot/github-code |
39f6c0f7c93cca2a2596c7b1ece217ae80ddb011253457fa2f32e71235ce6132 | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2015 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 | src/com/mrlolethan/butteredpd/effects/particles/SmokeParticle.java | mrlolethan/Buttered-Pixel-Dungeon | gpl-3.0 | 1,728 | 63 | codeparrot/github-code |
c2434fd4bf5d65cb491ebf88f812cda1034010e7655259f41a5a8a7186b17811 | """
RESTx: Sane, simple and effective data publishing and integration.
Copyright (C) 2010 MuleSoft Inc. http://www.mulesoft.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... | Python | src/python/restx/components/_ResourceCreateForm.py | jbrendel/RESTx | gpl-3.0 | 9,666 | 224 | codeparrot/github-code |
4840a66908101e9507c1068bbb94d0c0f43559f7aec42ade7b79dd4e2558edf6 | /**************************************************************************
**
** Copyright (C) 2013 by Philip Schuchardt
** www.cavewhere.com
**
**************************************************************************/
#include "cwEdgeTile.h"
//Qt includes
#include <QDebug>
cwEdgeTile::cwEdgeTile()
{
}
voi... | C++ | src/cwEdgeTile.cpp | Cavewhere/cavewhere | gpl-3.0 | 3,566 | 127 | codeparrot/github-code |
248063d5b73ba888a9483e1bdee2473336bac6148476c78969444b7863e25bc3 | #!/usr/bin/env python
# Unix SMB/CIFS implementation.
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007-2010
# Copyright (C) Matthias Dieter Wallnoefer 2009
#
# Based on the original in EJS:
# Copyright (C) Andrew Tridgell <tridge@samba.org> 2005
#
# This program is free software; you can redistribute it and/or ... | Python | source4/scripting/python/samba/samdb.py | gwr/samba | gpl-3.0 | 28,037 | 761 | codeparrot/github-code |
826e076c7ede89dec8f4d2de1754cedd524680572343dd0ea981c824ef70d610 | package com.ftninformatika.bisis.opac.search;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* @author badf00d21 15.8.19.
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Sort {
private SortType type;
private Boolean ... | Java | bisis-model/src/main/java/com/ftninformatika/bisis/opac/search/Sort.java | ftninformatika/bisis-v5 | gpl-3.0 | 788 | 33 | codeparrot/github-code |
9bcbf2c468e23a5d7515441a12f5b44c11426442bb2003a6c23824cb3ff63492 | /*
UTILIZZO DEL MODULO:
var mailer = require('percorso/per/questoFile.js');
mailer.inviaEmail(nome, cognome, emailDestinatario, oggetto, corpoInHtml);
OPPURE
mailer.inviaEmail(opzioniEmail);
dove opzioniEmail è un oggetto JSON formato così:
{
from: '"Nome Visualizzato" <mail@example.com>', // mail del mittente
... | JavaScript | server/utilities/mailer.js | ecommerce-unicam/Sito-Tranquillo | gpl-3.0 | 4,045 | 132 | codeparrot/github-code |
8709e355dae183dba2e0cbb984f5fee57d6041169d4c3be6c28fd5b2bc805b2a | /*
Free Download Manager Copyright (c) 2003-2016 FreeDownloadManager.ORG
*/
#include "stdafx.h"
#include "FDMCustomized.h"
#include "Dlg_Banner.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CDlg_Banner::CDlg_Banner(CWnd* pParent )
: CDialog(CDlg_... | C++ | FDMCustomized/Dlg_Banner.cpp | mirror/freedownload | gpl-3.0 | 1,120 | 49 | codeparrot/github-code |
dd2ab02f4b97d9d0ee0433fff46c8ce14b73aadf8f235a9a514a6544ab2292a4 | package jbse.tree;
public final class DecisionAlternative_XNEWARRAY_Wrong extends DecisionAlternative_XNEWARRAY {
private static final String WRONG_ID = "XNEWARRAY_Wrong";
private static final int HASH_CODE = 2;
DecisionAlternative_XNEWARRAY_Wrong(boolean isConcrete) {
super(isConcrete, (isConcrete ? 1 : ... | Java | src/jbse/tree/DecisionAlternative_XNEWARRAY_Wrong.java | chubbymaggie/jbse | gpl-3.0 | 758 | 40 | codeparrot/github-code |
c050becc4a8cc3cfef72b785047cb1b38839b30a2d56f11695cf2e3fc92cf874 | /* Steca/3rdparty/optparse.h
*
* From https://github.com/skeeto/optparse
*
*/
/* Optparse --- portable, reentrant, embeddable, getopt-like option parser
*
* This is free and unencumbered software released into the public domain.
*
* To get the implementation, define OPTPARSE_IMPLEMENTATION.
* Optionally defin... | C | 3rdparty/optparse.h | scgmlz/STeCa2 | gpl-3.0 | 12,114 | 410 | codeparrot/github-code |
7a2d2d4f5625d11be847f742509b49991d552dfe2f9857733492fb314ab375a6 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xam... | C# | TTSSX/TTSSX.UWP/App.xaml.cs | domints/TTSSX | gpl-3.0 | 3,856 | 100 | codeparrot/github-code |
1a252efa6476679bc76de4576f9bcfb29cc475a5b3516aea6c3f56b05e712e27 | #include "Sub.h"
// manual_init - initialise manual controller
bool Sub::manual_init()
{
// set target altitude to zero for reporting
pos_control.set_alt_target(0);
// attitude hold inputs become thrust inputs in manual mode
// set to neutral to prevent chaotic behavior (esp. roll/pitch)
set_neutr... | C++ | ArduSub/control_manual.cpp | hamishwillee/ardupilot | gpl-3.0 | 1,159 | 36 | codeparrot/github-code |
b8fe3c825b8db568a4dfda9b04883a1c60d6360a86a28b051641ae9cc007d7b0 | <?php
class ControllerProductSearch extends Controller {
public function index() {
$this->language->load('product/search');
$this->load->model('catalog/category');
$this->load->model('catalog/product');
if (isset($this->request->get['limit']) && ((int)$this->request->get['limit'] < 1)) {
$this->request->... | PHP | upload/catalog/controller/product/search.php | skyosev/OpenCart-Overclocked | gpl-3.0 | 17,877 | 540 | codeparrot/github-code |
db10f8a2b126d18178aade7611ed2088851c3bc50e4f70578c6f2572ba1f5bb1 | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (2013) Alexander Stukowski
//
// This file is part of OVITO (Open Visualization Tool).
//
// OVITO is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publis... | C++ | src/plugins/particles/modifier/coloring/ColorCodingModifier.cpp | bitzhuwei/OVITO_sureface | gpl-3.0 | 27,106 | 655 | codeparrot/github-code |
5581f4c2c0faa2ef3945c16517bdd77f834dff975b2e27a0876a942c0903549c | ////////////////////////////////////////////////////////////////////////////
// This file is part of BlazeFly. //
// //
// BlazeFly is free software: you can redistribute it and/or modify //
// it under ... | Java | com/bradleyjh/blazefly/Main.java | mrbradleyjh/BlazeFly | gpl-3.0 | 16,141 | 380 | codeparrot/github-code |
6049d2f73108894c3bd3a9b9b943cfbbf1cc5e9287dab8b0977b496ad080d696 | package de.voidnode.trading4j.strategyexpertadvisor;
import java.time.Instant;
import java.util.Optional;
import de.voidnode.trading4j.api.Broker;
import de.voidnode.trading4j.api.ExpertAdvisor;
import de.voidnode.trading4j.api.Failed;
import de.voidnode.trading4j.api.OrderEventListener;
import de.voidnode.trading4j.... | Java | core/src/main/java/de/voidnode/trading4j/strategyexpertadvisor/StrategyExpertAdvisor.java | rbi/trading4j | gpl-3.0 | 3,923 | 115 | codeparrot/github-code |
1cbf416afdbebf022f4582828b0734750b0e64e2b5dfed9d54739e7a7df43118 | // Generated from /mnt/hdd/Programming/Projects/Groovy/intellidots/src/main/antlr/R.g4 by ANTLR 4.2.2
package ua.edu.hneu.ast.parsers;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
@SuppressWarnings({"al... | Java | src/main/java/ua/edu/hneu/ast/parsers/RParser.java | IsThisThePayneResidence/intellidots | gpl-3.0 | 34,879 | 1,206 | codeparrot/github-code |
457113e26396319add3924987e9a438f5f4c2caf823b1fe90f05c57068a10bb2 | /*
* Preferanser is a program to simulate and calculate Russian Preferans Card game deals.
*
* Copyright (C) 2013 Yuriy Lazarev <Yuriy.Lazarev@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
* ... | Java | web-test/src/test/java/com/preferanser/webtest/CardsPresenceTest.java | Unisay/preferanser | gpl-3.0 | 1,414 | 39 | codeparrot/github-code |
67fbab22063d7d139ac694171e9617243bf70a92c5af02266445b162413ca330 | #Makefile criado por Lucas Alexandre Soares, adaptado por Rafael Augusto Monteiro
# Project name
NAME=Sensor
# Directories
INCDIR=include
# LIBDIR=lib
BLDDIR=build
SRCDIR=src
OBJDIR=$(SRCDIR)/obj
DEBUGGER=
DBGFLAGS=-v --leak-check=full --show-leak-kinds=all --read-var-info=yes --track-origins=yes
# Search for sourc... | Makefile | sensors/Makefile | RafaelMonteiro95/RedesMMO | gpl-3.0 | 1,918 | 94 | codeparrot/github-code |
e6929cb27b3ecf7de13a4551cf27ec1c9b027964b7ba0d93a4037b2d6d94703d | /*****************************************************************************
The Dark Mod GPL Source Code
This file is part of the The Dark Mod Source Code, originally based
on the Doom 3 GPL Source Code as published in 2011.
The Dark Mod Source Code is free software: you can redistribute ... | C | framework/Compressor.h | Extant-1/ThieVR | gpl-3.0 | 2,495 | 65 | codeparrot/github-code |
2b628686725584b25a31e5b051abe725e389d536e5debf676300efe6859827df | /**
* Class: Webgl
* Description: Her goes description
*/
import {m, utils} from '../../js/main';
import * as THREE from './three.min.js'
import dat from './dat.gui.min.js'
import Detector from './Detector.js'
// GLOBAL
var EightBitMode = false;
export default class Webgl {
/**
* @param {number} param this i... | JavaScript | src/modules/webgl/webgl.js | GreatWorksCopenhagen/gw-xmascard | gpl-3.0 | 10,063 | 403 | codeparrot/github-code |
5a4ee315936c01445e469a2237e1dc864405f3b14729bf6eb3d41a720111f201 | #
# Copyright 2009-2010 Goran Sterjov
# This file is part of Myelin.
#
# Myelin is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) a... | Python | bindings/python/myelin/introspection/value.py | gsterjov/Myelin | gpl-3.0 | 11,453 | 364 | codeparrot/github-code |
11fcf4acec36816bbf8d3c9b2e56eaa06089b8d4e5931cd3e87cad5b52cdda27 | package pl.edu.agh.idziak.asw.common;
import com.google.common.base.Preconditions;
/**
* Created by Tomasz on 13.07.2016.
*/
public class Pair<X, Y> {
private final X one;
private final Y two;
Pair(X one, Y two) {
this.one = Preconditions.checkNotNull(one);
this.two = Preconditions.che... | Java | src/main/java/pl/edu/agh/idziak/asw/common/Pair.java | mastablasta1/a-star-w-algorithm | gpl-3.0 | 765 | 39 | codeparrot/github-code |
df3c166b837645812e7ce8f5f0ece98de5ba5a09de0f92bf52a11a8376942f00 | /*
* This file is part of Cleanflight.
*
* Cleanflight 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.
*
* Cleanflight is distr... | C | src/main/drivers/adc_stm32f4xx.c | sambas/cleanflight | gpl-3.0 | 6,156 | 167 | codeparrot/github-code |
80a5915f897227826b312c96b4f3c79d9a9abc077d57a5c012f0a14658d07578 | /*
* This file is part of GLShaderDev.
*
* GLShaderDev 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.
*
* GLShaderDev is distr... | C | src/ShaderInputView/InputItem/FloatInputItem.h | Ryp/GLShaderDev | gpl-3.0 | 1,146 | 44 | codeparrot/github-code |
f178539f03065e2d5f4dbb81c559cfe569d0e8ec9407f051f0da65bf47a59130 | import requests
import hashlib
import json
import random
import sys
class ApiItemAmount(object):
def __new__(self, item_type, amount):
return {"type": item_type, "amount": amount}
class SagaAPI(object):
secret = ""
episodeLengths = {}
apiUrl = ""
clientApi = ""
unlockLevelItemId = -1
... | Python | regicide.py | boskee/regicide | gpl-3.0 | 8,891 | 229 | codeparrot/github-code |
e135ed0bb725ec3d7b62feb244f900477889f79726f2d64c3362c62e5ed4e7d4 | package com.harium.keel.filter.selection.skin;
import com.harium.keel.core.helper.ColorHelper;
import com.harium.keel.core.strategy.SelectionStrategy;
import com.harium.keel.filter.selection.SimpleToleranceStrategy;
/**
* Based on: Nusirwan Anwar bin Abdul Rahman, Kit Chong Wei and John See
* RGB-H-CbCr Skin Colour... | Java | src/main/java/com/harium/keel/filter/selection/skin/SkinColorRGBHCbCrStrategy.java | yuripourre/e-motion | gpl-3.0 | 1,693 | 56 | codeparrot/github-code |
bdc4cca51d40b5e59345b83b4ddfc2511b155fbd9c1a91fa76674bd6b8840979 | #!/usr/bin/python3
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
from sklearn.cluster import KMeans
from sklearn import datasets
from PIL import Image, ImageChops
from scipy.spatial.distance import cdist
import matplotlib.pyplot as plt
from random ... | Python | scan-stills2.py | mikehankey/fireball_camera | gpl-3.0 | 42,716 | 1,337 | codeparrot/github-code |
9013d50c9336bec2aa411865e3971cdac8e68602f3d090c604264c6117754d87 | /*
* microMathematics - Extended Visual Calculator
* Copyright (C) 2014-2021 by Mikhail Kulesh
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation, either version 3 of the License,
* or (at you... | Java | app/src/main/java/com/mkulesh/micromath/properties/AxisProperties.java | mkulesh/microMathematics | gpl-3.0 | 6,711 | 203 | codeparrot/github-code |
15d2c59ea2c526b928f11eab3ef37704272a0db31961891bd130c07c802c98a7 | from math import sqrt
from collections import defaultdict, Counter
from fractions import Fraction
def reverse_erathos(n):
d = defaultdict(set)
for i in range(2, n + 1):
if i not in d:
j = 2 * i
while j <= n:
d[j].add(i)
j += i
return d
def to... | Python | problem_070/problem.py | rodgzilla/project-euler | gpl-3.0 | 895 | 37 | codeparrot/github-code |
215c1a689fdb8926f2fe176a2e95f83cd8a6b7f819cf3eaead9b1c1849cefe24 | /* ------------------------------------------------------------ */
/*
HTTrack Website Copier, Offline Browser for Windows and Unix
Copyright (C) 1998-2013 Xavier Roche and other contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... | C | src/proxy/proxytrack.c | bukka/httrack | gpl-3.0 | 52,619 | 1,734 | codeparrot/github-code |
011f26fa9a8fce7886ff2919d92a458e320f387be5804cdbd3888467c2e19b5d | # ===============================================================================
# Copyright (C) 2010 Diego Duclos
#
# This file is part of eos.
#
# eos 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, ... | Python | eos/db/gamedata/item.py | Ebag333/Pyfa | gpl-3.0 | 3,101 | 62 | codeparrot/github-code |
2019593a85b73b69b260915a2c4f032054d1013537d2ef3f89b8c6537b4a1a8e | using System.Collections.Generic;
using CacheUtils.TranscriptCache.Comparers;
using ErrorHandling.Exceptions;
using VariantAnnotation.Interface.AnnotatedPositions;
namespace CacheUtils.Commands.GFF
{
public static class InternalGenes
{
public static IDictionary<IGene, int> CreateDictionary(IG... | C# | CacheUtils/Commands/GFF/InternalGenes.cs | Illumina/Nirvana | gpl-3.0 | 1,016 | 31 | codeparrot/github-code |
93fa10bc35d709dd6a81165cdf313f803ef4491cd16e3acefddad3faf2e3b747 | /*
* -----------------------------------------------------------------
* Programmer(s): Daniel Reynolds @ SMU
* Based on code sundials_spfgmr.h by: Daniel R. Reynolds and
* Hilari C. Tiedeman @ SMU
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2... | C | numcosmo/sundials/include/sunlinsol/sunlinsol_spfgmr.h | NumCosmo/NumCosmo | gpl-3.0 | 5,168 | 136 | codeparrot/github-code |
434c8515db11ed1053c305852e5f61e958c8aab046808964d0a046d15e5ce126 | package org.cleverframe.sys.controller;
import org.cleverframe.common.controller.BaseController;
import org.cleverframe.common.mapper.BeanMapper;
import org.cleverframe.common.persistence.Page;
import org.cleverframe.common.vo.response.AjaxMessage;
import org.cleverframe.sys.SysBeanNames;
import org.cleverframe.sys.Sy... | Java | clever-sys/src/main/java/org/cleverframe/sys/controller/MenuController.java | Lzw2016/cleverframe | gpl-3.0 | 5,220 | 153 | codeparrot/github-code |
e0f7520951d00f22e1ecee50291f0b84c2e578b7f3fcec03d63552b2844c1a95 | use printspool_machine::components::ControllerConfig;
use super::*;
use crate::gcode_parser::parse_gcode;
pub fn send_serial(
effects: &mut Vec<Effect>,
gcode_line: GCodeLine,
context: &mut Context,
is_polling: bool,
) {
// Allow for a byte of spacing between receiving and sending over the serial ... | Rust | crates/marlin/src/state_machine/send_serial.rs | tegh/tegh-daemon | gpl-3.0 | 1,865 | 63 | codeparrot/github-code |
791378287ec95473ca572c0096e7862aa3c6b4739abdd735cce9a5445bf947ca | #!/usr/bin/perl -w
use strict;
use warnings;
(@ARGV > 1) or die "Need at least 2 integers, $!";
my $gcd = pop @ARGV;
my $lcm = $gcd;
while (my $value = pop @ARGV) {
$gcd = gcd($gcd, $value);
$lcm = $lcm * $value / gcd($lcm, $value);
}
print "GCD is $gcd\n";
print "LCM is $lcm\n";
sub gcd {
# derived from c code ... | Perl | 13_gcd_lcm/gcd_lcm_tail.pl | bobblestiltskin/problems_for_computer_solution | gpl-3.0 | 1,064 | 50 | codeparrot/github-code |
b8a672921ba9386c80e58323fdfc092ae8aabf518db6fb3a85fd188f7c76b3eb | package com.technode.terrafirmastuff.core.proxy;
import com.bioxx.tfc.api.Tools.ChiselManager;
import com.technode.terrafirmastuff.handler.ServerTickHandler;
import com.technode.terrafirmastuff.tileentity.TEOilLampMod;
import com.technode.terrafirmastuff.tools.ChiselMode_Chiseled;
import com.technode.terrafirmastuff.t... | Java | src/main/java/com/technode/terrafirmastuff/core/proxy/CommonProxy.java | Bunsan/TerraFirmaStuff | gpl-3.0 | 1,619 | 48 | codeparrot/github-code |
da5a7b38b5e5448c02d6230003e8d62652a8a86f8dbce3ef0d8207be1c56dfbe | /* -*- Mode: C++; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/*
* generallayout.h
* Copyright (C) 2015 Dejardin Gilbert <dejarding@gmail.com>
*
* audio 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 Softwa... | C++ | src/generallayout.hpp | Dagal/DagalTone | gpl-3.0 | 1,330 | 51 | codeparrot/github-code |
69b09ccc488c98658bdc3a026106730051d5b63108de2dcabddfa29c3a8a7365 | package com.aliyun.api.ess.ess20140828.response;
import com.aliyun.api.AliyunResponse;
import com.taobao.api.internal.mapping.ApiField;
/**
* TOP API: ess.aliyuncs.com.DetachInstances.2014-08-28 response.
*
* @author auto create
* @since 1.0, null
*/
public class DetachInstancesResponse extends AliyunResponse {... | Java | src/main/java/com/aliyun/api/ess/ess20140828/response/DetachInstancesResponse.java | kuiwang/my-dev | gpl-3.0 | 961 | 45 | codeparrot/github-code |
465edee4d1fde667b4fac5d4a44a87f082a3fb6ad562ef0900dc453da65bd22e | #!/usr/bin/env python
"""
A pure python ping implementation using raw socket.
Note that ICMP messages can only be sent from processes running as root.
Derived from ping.c distributed in Linux's netkit. That code is
copyright (c) 1989 by The Regents of the University of California.
That cod... | Python | Backend/src/ControlAula/Utils/ping.py | jredrejo/controlaula | gpl-3.0 | 7,021 | 228 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.