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 |
|---|---|---|---|---|---|---|---|---|
2c81fd6adf89bf6fa6ff7696c27b95cc40d2d4583533e4848ab6198c878c7afe | package models.planners
import java.awt.Color
import java.awt.image.BufferedImage
import utils._
import models.{Yarn, Needle}
import models.units.Stitches
object Helper {
/** First/last needle for the knitting with the given width when center alignment. */
def center(width: Stitches): (Needle, Needle) = {
(Ne... | Scala | app/models/planners/Helper.scala | knittery/knittery-ui | gpl-2.0 | 1,801 | 47 | codeparrot/github-code |
2aac92a82991076a2d2cf0d634f68cf295bdeb66f7d49e6c27c9599a815dc05a | /* dnsmasq is Copyright (c) 2000-2015 Simon Kelley
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991, or
(at your option) version 3 dated 29 June, 2007.
This ... | C | release/src/router/dnsmasq/src/loop.c | ghmajx/asuswrt-merlin | gpl-2.0 | 3,165 | 118 | codeparrot/github-code |
8e919a1b82082294b3d42bda704c58d79e9cd34f2d8207592a0b02ab85a4e213 | using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
namespace WeifenLuo.WinFormsUI.Docking
{
#region DockPanelSkin classes
/// <summary>
/// The skin to use when displaying the DockPanel.
/// The skin allows custom gradient color schemes to be used when dra... | C# | QuestAnalyser/src/Docking/DockPanelSkin.cs | DragonFiestaTeam/DragonFiesta_Tools | gpl-2.0 | 14,802 | 420 | codeparrot/github-code |
dcaa588d121b539db418363f5bca1feed003139169446c92b28f930a0ab72e35 | #!/usr/bin/env bash
# Usage example:
# PLot the chirp signal and its frequency domain presentation:
# (while true; do echo line; sleep 0.01; done)| \
# awk 'BEGIN{PI=atan2(0,-1);t=0;f0=1;f1=32;T=256;k=(f1-f0)/T;}{print sin(2*PI*(t*f0+k/2*t*t));t+=0.1;fflush()}'| \
# tee >(bin/dsp/fft.sh 64 "w1;0.5;0.5"|bin/dsp/fftab... | Shell | .bin/dsp/fft.sh | flux242/dotfiles | gpl-2.0 | 3,368 | 159 | codeparrot/github-code |
c25b46d1eabfbe3c3df91eae080b416057469c45d2806889677b27f16a8dd13e | package ch.hgdev.toposuite.utils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Useful static method for manipulating String.
*
* @author HGdev
*/
public class StringUtils {
public static final String UTF8_BOM = "\uFEFF";
/**
* This method assumes that the String contains a n... | Java | app/src/main/java/ch/hgdev/toposuite/utils/StringUtils.java | hgdev-ch/toposuite-android | gpl-2.0 | 1,224 | 41 | codeparrot/github-code |
fb4b600c4f186ef9a049ec82e50cf11b5c80d03d82665c8fe6671fe8190bd30c | package org.currconv.services.impl;
import java.util.List;
import org.currconv.dao.UserDao;
import org.currconv.entities.user.User;
import org.currconv.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transact... | Java | src/main/java/org/currconv/services/impl/UserServiceImpl.java | miguel-gr/currency-converter | gpl-2.0 | 738 | 30 | codeparrot/github-code |
45e8076408eb8dec8750311c89e9db7a2178da75ec8bcd52e8047cfb00a1beb0 | void dflu_pack_fin(DFluPack *p) {
UC(dmap_fin(NFRAGS, /**/ &p->map));
UC(comm_bags_fin(PINNED, NONE, /**/ &p->hpp, &p->dpp));
if (p->opt.ids) UC(comm_bags_fin(PINNED, NONE, /**/ &p->hii, &p->dii));
if (p->opt.colors) UC(comm_bags_fin(PINNED, NONE, /**/ &p->hcc, &p->dcc));
EFREE(p);
}
void dflu... | C | src/distr/flu/imp/fin.h | slitvinov/uDeviceX | gpl-2.0 | 849 | 31 | codeparrot/github-code |
46d9cc8638c63ef03d041b62f567bfa64894d24b08ab19e964c054c4e39046ac | /*
MobileRobots Advanced Robotics Interface for Applications (ARIA)
Copyright (C) 2004, 2005 ActivMedia Robotics LLC
Copyright (C) 2006, 2007, 2008, 2009 MobileRobots Inc.
Copyright (C) 2010, 2011 Adept Technology, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms o... | C++ | arnetworking/ArServerModeRatioDrive.cpp | admo/aria | gpl-2.0 | 17,363 | 551 | codeparrot/github-code |
67c0a61bb1a6722d8c42fbb5bbabd08e6e78be88fb6d6934ec055d484ceba23e | package com.networkprofiles.widget;
/** Service to refresh the widget **/
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.graphics.Color;
import android.os.IBinder;
import android.provider.Settings;
import android.widget.RemoteViews;
import com.netwo... | Java | src/com/networkprofiles/widget/NPWidgetService.java | ektodorov/ShortcutsOfPower_Android | gpl-2.0 | 5,416 | 151 | codeparrot/github-code |
d6e80974d852daa7edeea3359e7c75e35bc4747a63fb951950f3ad77eaa8df96 | #!/usr/bin/env python3
# Copyright (c) 2008-9 Qtrac Ltd. All rights reserved.
# This program or module 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
# version 3 of the Lic... | Python | CPP/full_examples/pyqt/chap03/item.py | paradiseOffice/Bash_and_Cplus-plus | gpl-2.0 | 3,660 | 145 | codeparrot/github-code |
29e476587fcdd1dc519d0ba8ac3966c613e8d5183b4f5673f7c5434470784cfd | /* GNU ddrescue - Data recovery tool
Copyright (C) 2004-2019 Antonio Diaz Diaz.
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 optio... | C++ | mapbook.cc | mruffalo/ddrescue | gpl-2.0 | 6,040 | 184 | codeparrot/github-code |
8e229d885310397326208329615c80e0880997091581e3c159742f4630ec2e14 | /* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
* (Software) available for public use and benefit with the expectation
* that others will use, modify and enhance the Software and contribute
* those enh... | C++ | elements/local/OpenFlow/lib/csum.cc | JaeyongYoo/VisualXSwitch | gpl-2.0 | 4,507 | 119 | codeparrot/github-code |
3887a9211356fb01c292cff58a817a469653dacdbbcdc5dc63a01901da806d43 | package net.minecartrapidtransit.path.launcher;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class FileStoreUtils {
private String version;
public FileStoreUtils(String versionFile) throws IOException{
BufferedReader br = new BufferedReader(... | Java | launcher/src/main/java/net/minecartrapidtransit/path/launcher/FileStoreUtils.java | MinecartRapidTransit/MRTPath2 | gpl-2.0 | 1,412 | 51 | codeparrot/github-code |
9f5276b5a82e481c9622702d8c0d35bad9e814ea95e1d91fb848cf35dfd616d0 | /******************************************************************************
* Icinga 2 *
* Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/) *
* *
... | C++ | lib/livestatus/endpointstable.cpp | zearan/icinga2 | gpl-2.0 | 4,193 | 130 | codeparrot/github-code |
1d94e82faf80194d25161e47b16a1633503b61666ec1f04510efb6b9e6f91038 | <?php
/**
* The template for displaying the footer.
*
* @package WordPress
*/
?>
</div>
</div>
<!-- Begin footer -->
<div id="footer">
<?php
$pp_footer_display_sidebar = get_option('pp_footer_display_sidebar');
if(!empty($pp_footer_display_sidebar))
{
$pp_footer_style = get_op... | PHP | wp-content/themes/nemesis/footer.php | Seizam/atelierweb | gpl-2.0 | 4,068 | 176 | codeparrot/github-code |
986882cddd8dd856b7da40fcd8e86aff90438c6ece8a12b6b26d56ab7b91c243 |
#include "logging.hpp"
#include <fstream>
#include <boost/log/sinks/text_file_backend.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sinks.hpp>
namespace p2l { namespace common {
//=====================================================... | C++ | src/logging.cpp | velezj/pods.ptp.object-search.common | gpl-2.0 | 2,078 | 51 | codeparrot/github-code |
163495a09463dd0f4d5eef48fc94e4b967f3dc13ef025867ad885cbad870354e | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.dialect.unique;
import org.hibernate.boot.Metadata;
import o... | Java | 3rdParty_sources/hibernate-core/org/hibernate/dialect/unique/InformixUniqueDelegate.java | lamsfoundation/lams | gpl-2.0 | 1,458 | 40 | codeparrot/github-code |
ac50dd732ccc32bfd9816c65bbe6041e42f5aec72f449acc416f4f7bb17b1a8d | /*
* Copyright 2002-2005, Instant802 Networks, Inc.
* Copyright 2005-2006, Devicescape Software, Inc.
* Copyright 2007 Johannes Berg <johannes@sipsolutions.net>
* Copyright 2008 Luis R. Rodriguez <lrodriguz@atheros.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms... | C | net/wireless/reg.c | vSlipenchuk/ac100hd | gpl-2.0 | 61,693 | 2,340 | codeparrot/github-code |
56159db12b592858caf10d4fdc74cda82d865cc45eafe74fef4c6e66326b9d70 | #include "steadystatetest.hh"
#include <models/REmodel.hh>
#include <models/LNAmodel.hh>
#include <models/IOSmodel.hh>
#include <models/sseinterpreter.hh>
#include <models/steadystateanalysis.hh>
#include <eval/jit/engine.hh>
#include <parser/sbml/sbml.hh>
using namespace iNA;
SteadyStateTest::~SteadyStateTest() {
... | C++ | test/steadystatetest.cc | hmatuschek/intrinsic-noise-analyzer | gpl-2.0 | 2,341 | 77 | codeparrot/github-code |
b2aee519af8fdab12b124969f91c3e71e1b9642185b73f5bd4a1e6331b793d5a | /*
* pcm audio input device
*
* Copyright (C) 2008 Google, Inc.
* Copyright (C) 2008 HTC Corporation
* Copyright (c) 2009-2010, Code Aurora Forum. All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
... | C | arch/arm/mach-msm/qdsp5v2/audio_pcm_in.c | marcOcram/Acer-Liquid-MT-Kernel | gpl-2.0 | 20,064 | 774 | codeparrot/github-code |
5472a3731ce55979beb1540af32daf78c6843b56ad1a492be691f139ab919cb9 | <?php die("Access Denied"); ?>#x#s:4516:" 1448241693
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-tw" lang="zh-tw">
<head>
<script type="text/javascript">
var siteurl='/';
... | PHP | cache/t3_pages/e8efe7956197beb28b5e158ad88f292e-cache-t3_pages-160aa8f95d30404c7ac89ff054f766d9.php | ForAEdesWeb/AEW32 | gpl-2.0 | 4,364 | 125 | codeparrot/github-code |
71404d5c49d94b11a88f67f23315b98d7483c7e708aaa3aae107be8527442a04 | package kieranvs.avatar.bending.earth;
import java.util.Arrays;
import java.util.concurrent.ConcurrentHashMap;
import net.minecraft.block.Block;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.Blocks;
import kieranvs.avatar.Protection;
import kieranvs.avatar.bending.Ability;
import... | Java | Blockbender/src/kieranvs/avatar/bending/earth/EarthStream.java | kieranvs/Blockbender | gpl-2.0 | 4,514 | 132 | codeparrot/github-code |
7ebe05c9fc10aeed0d2e0b99e8316d67559728d5d0c7f08a96c2ad47221f91b3 | #include <iostream>
#include <stdint.h>
#include <map>
#include <set>
#include "macros.h"
#include <assert.h>
using namespace std;
#include <fstream>
struct defsetcmp {
bool operator() (const pair<uint64_t, uint64_t> &l, const pair<uint64_t, uint64_t> &r) {
return (l.first < r.first || l.second < r.second);
... | C++ | parse.cpp | sumanthsprabhu/atva_tool | gpl-2.0 | 3,546 | 151 | codeparrot/github-code |
b68761394e51f8ab4abf07d762980264534b82162b3bb4a6a10a850efab78be6 | /*****************************************************************
Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
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 restrictio... | C++ | kicker/menuext/recentdocs/recentdocsmenu.cpp | iegor/kdebase | gpl-2.0 | 4,232 | 154 | codeparrot/github-code |
894334afb5d1351585b12dd797e45881bd953786d2cf63c0451c8c6383c6f7f2 | /* linux/arch/arm/mach-s3c2410/mach-bast.c
*
* Copyright 2003-2008 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* http://www.simtec.co.uk/products/EB2410ITX/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* p... | C | arch/arm/mach-s3c24xx/mach-bast.c | Oleh-Kravchenko/asusp535 | gpl-2.0 | 14,795 | 612 | codeparrot/github-code |
0e9b4ed0e3b193efb0f0c4d26649dbbae1559b15537828f4310d36f768f52ce5 | # Portions Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# match.py - filename matching
#
# Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others
#
# This software may be used and distribute... | Python | eden/hg-server/edenscm/mercurial/match.py | facebookexperimental/eden | gpl-2.0 | 53,143 | 1,683 | codeparrot/github-code |
3010f7b2482f2050ac5fa75157ac031a79df84ce33fb99a4742db10cdf5e41b2 | import numpy as np
from OpenGL.GL import *
from OpenGL.GLU import *
import time
import freenect
import calibkinect
import pykinectwindow as wxwindow
# I probably need more help with these!
try:
TEXTURE_TARGET = GL_TEXTURE_RECTANGLE
except:
TEXTURE_TARGET = GL_TEXTURE_RECTANGLE_ARB
if not 'win' in globals():
... | Python | misc/demo/ipython/demo_pclview.py | Dining-Engineers/left-luggage-detection | gpl-2.0 | 5,742 | 244 | codeparrot/github-code |
3753c39caed9dfff0583bd7442497f05e378e0d69960a5266bb24e29e121b7e7 | /*
* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in ... | C | arch/arm/mach-msm/acpuclock-krait.c | cnexus/NexTKernel-d2spr | gpl-2.0 | 31,611 | 1,219 | codeparrot/github-code |
bf5a8f54a7010e853e41f81e565b5f1b548de9798794bb3f6f948c7ad3789ae8 | /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the... | C | sound/soc/msm/qdsp6v2/q6adm.c | EloYGomeZ/test_kernel_g620s | gpl-2.0 | 55,954 | 1,848 | codeparrot/github-code |
2404264e6e86c3fae4663ca2a966cff276b0a7baebc94b598c600722b0671a31 | /*
* PROJECT: ReactOS i8042 (ps/2 keyboard-mouse controller) driver
* LICENSE: GPL - See COPYING in the top level directory
* FILE: drivers/input/i8042prt/pnp.c
* PURPOSE: IRP_MJ_PNP operations
* PROGRAMMERS: Copyright 2006-2007 Hervé Poussineau (hpoussin@reactos.org)
* Copyright 2... | C | drivers/input/i8042prt/pnp.c | sunnyden/reactos | gpl-2.0 | 27,818 | 765 | codeparrot/github-code |
9f5e2335cf1bf78009d4b4f74286d85fc22838c1dc39bc4ca4b6f004447c64ff | #!/usr/bin/perl
#
# Controller - is4web.com.br
# 2007 - 2011
package Controller;
require 5.008;
require Exporter;
#use strict;
use vars qw(@ISA $VERSION $INSTANCE %SWITCH);
#CONTROLLER
use Controller::DBConnector;
use Controller::SQL;
use Controller::LOG;
use Controller::Date;
use Controlle... | Perl | backend/src/sistema/include/mods/Controller.pm | milhomem/controller | gpl-2.0 | 73,414 | 2,567 | codeparrot/github-code |
9c420b9ba0f259f1bacd9eb19c4819b49484e76e32caf53d65dc595af184c746 | core:import( "CoreMissionScriptElement" )
ElementPlayerSpawner = ElementPlayerSpawner or class( CoreMissionScriptElement.MissionScriptElement )
function ElementPlayerSpawner:init( ... )
ElementPlayerSpawner.super.init( self, ... )
managers.player:preload()
end
-- Returns a value
function ElementPlayerSpawner:val... | Lua | lib/managers/mission/elementplayerspawner.lua | zjohn4/PD2-lua-src | gpl-2.0 | 1,095 | 34 | codeparrot/github-code |
0d1c21d0d047b0fc4bc0ed042816e08ce1a8e4afc7407d818af5998950ad13e0 | /*
* Copyright (C) 2016 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 | TMessagesProj/src/main/java/com/google/android/exoplayer2/ext/flac/LibflacAudioRenderer.java | CzBiX/Telegram | gpl-2.0 | 2,743 | 74 | codeparrot/github-code |
670ca8af5997ee982ced00ed37d13f1c5138638650f08918881b6a4aea55d12b | /*
* Compiler error handler
* Copyright
* (C) 1992 Joseph H. Allen
*
* This file is part of JOE (Joe's Own Editor)
*/
#include "types.h"
/* Error database */
typedef struct error ERROR;
struct error {
LINK(ERROR) link; /* Linked list of errors */
long line; /* Target line number */
long org; /* Original ... | C | joe/uerror.c | jhallen/joe-editor | gpl-2.0 | 11,705 | 555 | codeparrot/github-code |
baa38070f5c49f97da5179035abce035f336af5a14bd5186252b0847e5c6d497 | <?php
class Metabox
{
public static $boxes = array();
/**
* @static
* @param $type
* @param $options
* @return Metabox
*/
public static function factory($type, $options = null) {
$parts = explode('_', $type);
array_walk(
$parts,
function(&$item){
$item = ucfirst($item);
}
);
$class =... | PHP | wp-content/themes/hmvc/core/classes/metabox.php | vladcazacu/Wordpress-HMVC | gpl-2.0 | 805 | 45 | codeparrot/github-code |
abc3cb4904de153ea91e53d68840fee7602a34ec7ab559b94f6ff1ebb0e4d13e | <?php
/**
* General API for generating and formatting diffs - the differences between
* two sequences of strings.
*
* The original PHP version of this code was written by Geoffrey T. Dairiki
* <dairiki@dairiki.org>, and is used/adapted with his permission.
*
* Copyright 2004 Geoffrey T. Dairiki <dairiki@dairiki... | PHP | wp-includes/Text/Diff.php | ajspencer/NCSSM-SG-WordPress | gpl-2.0 | 11,727 | 424 | codeparrot/github-code |
58cfb33249d3d55155738ec012bbac4cf8171176f7bcf4f63bea1d5fa6f5fa5d | /*
Stuart Bowman 2016
This class contains the graph nodes themselves, as well as helper functions for use by the generation class
to better facilitate evaluation and breeding. It also contains the class definition for the nodes themselves,
as well as the A* search implementation used by the genetic algorithm to check... | C# | Assets/Scripts/Graph.cs | stuartsoft/gngindiestudy | gpl-2.0 | 12,515 | 385 | codeparrot/github-code |
49019e97c57294093c526f11d7cb4fe0d059568fb2c472ed257cac6e0e0014c5 | <?php
function migrate_blog() {
/*
* $tabRub[0] = "Annonces";
$tabRub[1] = "Partenariat";
$tabRub[2] = "Vie d'Anciela";
$tabRub[3] = "Autres";
* */
$categories = array('annonces','partenariat','anciela','autres');
$categoryNames = array('annonces'=>"Annonces",'partenariat'=>'Partenari... | PHP | wp-content/themes/anciela/inc/anciela-setup.php | Anciela/anciela.info | gpl-2.0 | 22,292 | 569 | codeparrot/github-code |
b6621353991fd744bb85a1cc03466e2944d18f6569202773e6dd368ce517ac16 | #include "Input.h"
#include "Core.h"
#include "Memory.h"
#include "Cpu.h"
//Gameboy keys:
//[Up][Left][Right][Down][A][B][Start][Select]
//Mapped to standard keyboard keys:
//[Up][Left][Right][Down][Z][X][Enter][RShift]
//Mapped to standard Xbox controller buttons:
//[Up][Left][Right][Down][A][X][Start][Select]
// ... | C++ | GameBeak/src/Input.cpp | Daniel-McCarthy/GameBeak | gpl-2.0 | 8,311 | 340 | codeparrot/github-code |
42dba0aa3c45fd2493aff95b1d26fcc3edda93927a11dc23fbdeeb0f82a7ce25 | {% spaceless %}
{% load django_tables2 %}
{% load i18n %}
{% if table.page %}
<div class="table-container">
{% endif %}
{% block table %}
<table {% if table.attrs %} {{ table.attrs.as_html }}{% endif %}>
{% block table.thead %}
<thead>
<tr>
{% for column in table.columns %}
{% if col... | HTML | genomeportal/templates/custom_table.html | maglab/naked-mole-rat-portal | gpl-2.0 | 3,496 | 76 | codeparrot/github-code |
fbd6a5d1ef5cec00722d45880ddc23f8c035d483cb8ce7cc2e1696473f0267c1 | /* This file is part of the KDE project
* Copyright (C) 2010 Carlos Licea <carlos@kdab.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or ... | C | filters/libmsooxml/MsooXmlDrawingTableStyleReader.h | KDE/koffice | gpl-2.0 | 5,703 | 216 | codeparrot/github-code |
67b50345a4f71cd2ddf7fb11366186911dc95837376716851627e2eda4299555 |
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif
/*
* 1 Header File Including
*/
#include <linux/module.h>
#include <linux/netdevice.h>
#include "hwifi_tps.h"
#include "cfg80211_stru.h"
#include "hwifi_cfg80211.h"
#include "hwifi_wpa_ioctl.h" /* for wl_pwrm_set */
#include "hwifi_wl_config_ioctl.h... | C | drivers/huawei_platform/connectivity/hisi/hisiwifi/hwifi_tps.c | gabry3795/android_kernel_huawei_mt7_l09 | gpl-2.0 | 28,729 | 1,008 | codeparrot/github-code |
2dc2691f0ef7e34964711095057d87e9bb8ab66d4679d157dd7da59bbc397532 | # -*- coding: utf-8 -*-
# pylint: disable=too-many-lines,too-complex,too-many-branches
# pylint: disable=too-many-statements,arguments-differ
# needs refactoring, but I don't have the energy for anything
# more than a superficial cleanup.
#-------------------------------------------------------------------------------
... | Python | voicetrainer/midi.py | nihlaeth/voicetrainer | gpl-3.0 | 42,010 | 1,203 | codeparrot/github-code |
40a15d69d8054f5377df37cce530a394314775aeb29298359f4ab6a0980e2c2b | AddCSLuaFile()
SWEP.HoldType = "ar2"
if CLIENT then
SWEP.PrintName = "AUG"
SWEP.Slot = 2
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 54
SWEP.Icon = "vgui/ttt/icon_aug.png"
SWEP.IconLetter = "l"
end
SWEP.Base = "weapon_tttbas... | Lua | stupid-ttt/lua/weapons/weapon_ttt_aug.lua | SirFrancisBillard/stupid-ttt | gpl-3.0 | 4,457 | 168 | codeparrot/github-code |
2da087c252d8899d8293894b9a7862264511b7f0bfac8e278dbc7a1da2c6f3d5 | require 'y_support/all'
# Places are basically glorified variables, with current contents (marking), and
# default contents (default_marking).
#
class Place
attr_reader :name, :default_marking
attr_accessor :marking
def initialize name, default_marking=0
@name, @default_marking = name, default_marking
end
... | Ruby | test/mongoid_example.rb | boris-s/y_nelson | gpl-3.0 | 2,409 | 101 | codeparrot/github-code |
c4ba62e56a01670f1ba22a713dcfdc87e68be0e41a51565d8b7bba9dde00a7d2 | using System;
using System.Runtime.InteropServices;
namespace ABC.PInvoke
{
/// <summary>
/// Class through which user32.dll calls can be accessed for which the .NET framework offers no alternative.
/// TODO: Clean up remaining original documentation, converting it to the wrapper's equivalents.
/// </summary... | C# | ABC/ABC.PInvoke/User32.cs | Whathecode/ABC | gpl-3.0 | 3,653 | 60 | codeparrot/github-code |
9902adb9b1803927d69dbadab957a675780ee1396f63c76ae2bc235f66050ffa | #!/usr/bin/python
from django.http import HttpResponse
from django.template import RequestContext, loader
from django.views.decorators.csrf import csrf_exempt
import django.shortcuts
from wlokalu.api import presence
#-----------------------------------------------------------------------------
from wlokalu.logging ... | Python | wlokalu/views.py | HackerspaceWroclaw/wlokalu | gpl-3.0 | 1,663 | 53 | codeparrot/github-code |
0a562105efd0ac10bcfd0a92e84ce77712979e780a198ab11edd1715b377cbd5 | /**
* Copyright (C) 2007-2012 Hypertable, Inc.
*
* This file is part of Hypertable.
*
* Hypertable is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or any later versio... | Java | examples/java/org/hypertable/examples/PerformanceTest/Result.java | deniskin82/hypertable | gpl-3.0 | 2,057 | 63 | codeparrot/github-code |
6ef4558fe43b84ce9570170dd279154c30a900a35b3962c578be894bba23bbfc | #ifndef JME_RpcHandler_h__
#define JME_RpcHandler_h__
#include <string>
#include <map>
#include "boost/shared_ptr.hpp"
#include "boost/function.hpp"
#include "google/protobuf/message.h"
#include "log/JME_GLog.h"
using namespace std;
namespace JMEngine
{
namespace rpc
{
class RpcHandlerInterfa... | C | include/rpc/JME_RpcHandler.h | jimmy0313/JMEngine | gpl-3.0 | 950 | 36 | codeparrot/github-code |
38fdb0f19c572ebf88731d086e151711cddc2da007bd52ae6ddfa4051f6031c3 | <?php
/**
* @package Projectlog.Administrator
* @subpackage com_projectlog
*
* @copyright Copyright (C) 2009 - 2016 The Thinkery, LLC. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined( '_JEXEC' ) or die( 'Restricted access');
jimport('joomla.app... | PHP | admin/controllers/ajax.json.php | thinkerytim/ProjectLog | gpl-3.0 | 5,016 | 164 | codeparrot/github-code |
78e40f80a4c37fad597e1f1a77e47f4601bd8098bbbd18511888be87783bd2ba | #include <psp2/display.h>
#include <psp2/io/fcntl.h>
#include <psp2/kernel/processmgr.h>
#include <stdio.h> // sprintf()
#include <psp2/ctrl.h> // sceCtrl*()
#include "graphics.h"
#define VER_MAJOR 0
#define VER_MINOR 9
#define VER_BUILD ""
#define VAL_LENGTH 0x10
#define VAL_PUBLIC 0x0A
#define VAL_PRIVATE 0x06
#... | C | main.c | Yoti/psv_idpsdump | gpl-3.0 | 7,135 | 311 | codeparrot/github-code |
1079a274c96653b976b9d934856e767960e1b1192e62a7fee7978faf80b93814 | var gulp = require('gulp')
var mocha = require('gulp-mocha')
var nodemon = require('gulp-nodemon')
var env = require('gulp-env');
gulp.task('API-Server', (cb) => {
let started = false
env({
vars: {
httpPort: 8080
}
});
return nodemon({
script: 'index.js'
})
.on('start', () => {
... | JavaScript | gulpfile.js | HeyYZU/HeyYZU-server | gpl-3.0 | 690 | 40 | codeparrot/github-code |
c97fe771798ca9acd79888056a2bfaa0e0aa2c3aa1984f65554397aa2afe7fe6 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright (C) 2015 Leslie Zhai <xiang.zhai@i-soft.com.cn>
*
* 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; e... | C | src/stat/hello-stat.c | LeetcodeCN/leetcodecn.github.io | gpl-3.0 | 1,716 | 57 | codeparrot/github-code |
541ff358c4e3b4854ef30d7d6029f9471ed1f46f39ff0c872aad6d68df0c0248 | //# ShapeletCoherence.h: Spatial coherence function of a source modelled as a
//# shapelet basis expansion.
//#
//# Copyright (C) 2008
//# ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is part of the LOFAR software suite.
//# The LOFAR software su... | C | CEP/Calibration/BBSKernel/include/BBSKernel/Expr/ShapeletCoherence.h | kernsuite-debian/lofar | gpl-3.0 | 2,451 | 75 | codeparrot/github-code |
5a05816fea72da632838ce5d9a1505f0f517d5ab2421279f4dcdaa4c8fdda095 | <?php
/*
This file is part of Vosbox.
Vosbox 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.
Vosbox is distributed ... | PHP | audioFile.class.php | naggie/vosbox | gpl-3.0 | 5,333 | 182 | codeparrot/github-code |
5caf6399d77f866353fcb1c2adbdffbd1afc2e6e8b55325f00830962865d139e | from urllib.request import urlopen
from urllib.parse import urlparse, parse_qs
from socket import error as SocketError
import errno
from bs4 import BeautifulSoup
MAX_PAGES_TO_SEARCH = 3
def parse_news(item):
'''Parse news item
return is a tuple(id, title, url)
'''
url = 'http://www.spa.gov.sa' + item[... | Python | bots/spa.py | saudisproject/saudi-bots | gpl-3.0 | 4,224 | 136 | codeparrot/github-code |
8c27af0fd44782052fadddfc0e54362f439b2bb2293762077e67b68724fe5e07 | <?php
/*
* +----------------------------------------------------------------------+
* | PHP Version 4 |
* +----------------------------------------------------------------------+
* | Copyright (c) 2002-2005 Heinrich Stamerjohanns |
* | ... | PHP | blocks/oai_target/target/lib/getrecord.php | agroknow/agrimoodle | gpl-3.0 | 5,026 | 158 | codeparrot/github-code |
c1621492c951a06964792bd4c65d12a55214beea6054b4e6f25641645bfce71c | import time
from threading import Thread
import threading
from wtfj_ids import *
from wtfj_utils import *
class Printer:
''' Opens a new output window and prints messages sent to it '''
def __init__(self,header=''):
self._header = header
def send(self,string):
print(self._header+string)
class Console:
''' Al... | Python | src/wtfj/connectors_local.py | WritingTechForJarrod/app | gpl-3.0 | 2,202 | 99 | codeparrot/github-code |
c90d412739b69a5020e2ad9d0ff4f727da1c7fcc82fda3d0395ee34bc509ccc2 | /*
Playdar - music content resolver
Copyright (C) 2009 Richard Jones
Copyright (C) 2009 Last.fm Ltd.
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 ... | C++ | resolvers/local/resolved_item_builder.hpp | RJ/playdar | gpl-3.0 | 2,176 | 66 | codeparrot/github-code |
2ec05f6a9202d24151560d594b32951df642af62aae9e943636a6a9f52df7989 | use std::collections::HashMap;
use std::rc::Rc;
use serde::de::{Deserialize, Deserializer};
use serde_derive::Deserialize;
use toml::value;
use crate::errors;
use crate::icons::Icons;
use crate::protocol::i3bar_event::MouseButton;
use crate::themes::Theme;
#[derive(Debug)]
pub struct SharedConfig {
pub theme: Rc... | Rust | src/config.rs | greshake/i3status-rust | gpl-3.0 | 4,609 | 171 | codeparrot/github-code |
d01bb8632569a671a88681ffbce73cd3cd09dc1e5419f88f97378d9a8b42aed5 | /*
* WANDORA
* Knowledge Extraction, Management, and Publishing Application
* http://wandora.org
*
* Copyright (C) 2004-2016 Wandora Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundat... | Java | src/org/wandora/query/JoinDirective.java | wandora-team/wandora | gpl-3.0 | 3,327 | 104 | codeparrot/github-code |
4c5bda82acd72168b41c45a1f277e5722c5c7f64015cfc59033f7ce96781d13c | //
// CreditsViewController.h
// P5P
//
// Created by CNPP on 25.2.2011.
// Copyright Beat Raess 2011. All rights reserved.
//
// This file is part of P5P.
//
// P5P is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Soft... | C | Classes/CreditsViewController.h | braess/p5p | gpl-3.0 | 1,526 | 67 | codeparrot/github-code |
25275497336b7aead1ad823f7f0317f80da8e6748f6c7bf99ad785f648d459b7 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
namespace SO.SilList.Manager.Mod... | C# | SO.SilList.Manager/Models/ValueObjects/JobTypeVo.cs | SilverObject/SilList | gpl-3.0 | 1,430 | 60 | codeparrot/github-code |
a8c50f439f6ed1017ae3f1f8ac069c8f4c777a2af03d8cd7477bd2bedcacefd6 | /****************************************************************************
**
** Copyright (C) 2014-2015 Dinu SV.
** (contact: mail@dinusv.com)
** This file is part of C++ Snippet Assist application.
**
** GNU General Public License Usage
**
** This file may be used under the terms of the GNU General Public License... | C++ | modules/csa-lib/codebase/QSourceLocation.hpp | dinusv/cpp-snippet-assist | gpl-3.0 | 2,242 | 89 | codeparrot/github-code |
3dd26d23f9b32b3bd6e6ea36df69a4646ce45e1a5b6be9d531ae082aed58b2fd | package com.acgmodcrew.kip.tileentity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
/**
* Created by Malec on 05/03/2015.
*/
public class TileEntityRepositry extends TileEntity implements ... | Java | src/main/java/com/acgmodcrew/kip/tileentity/TileEntityRepositry.java | ACGModCrew/kip | gpl-3.0 | 2,563 | 123 | codeparrot/github-code |
1431b0147fff392bc98b7660844eeb2acd771cd5d4ad70f2e356d5c8d2c54265 | import os
import re
import subprocess
# Copied from Trojita
"""Fetch the .po files from KDE's SVN for GCompris
Run me from GCompris's top-level directory.
"""
SVN_PATH = "svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/"
SOURCE_PO_PATH = "/messages/kdereview/gcompris_qt.po"
OUTPUT_PO_PATH = "./po/"
OUTPUT_PO_PATTERN ... | Python | tools/l10n-fetch-po-files.py | siddhism/GCompris-qt | gpl-3.0 | 1,862 | 53 | codeparrot/github-code |
99bba0df5092413072751f900f25bff21f4a5e175bb6316966889d60ea3b8cc7 | #include <includes.h>
#include <utils.h>
#include <methnum.h>
#include "s_param.h"
#include "integral.h"
double Ivac ( Param * P , double m )
{
double m2 = m*m ;
double LE = sqrt ( m2 + P->L2 );
return 0.5 * ONE_OVER_8PI_2 * ( P->L * LE * ( m2 + 2*P->L ) + m2*m2 * log ( m/(P->L + LE) ) ) ;
}
double dm_Iva... | C | legacy/programs/njl-0/njl1-b/integral.c | AlexandreBiguet/NJLlikeModels | gpl-3.0 | 2,487 | 102 | codeparrot/github-code |
74dcfdadcfb0bc9fcfb80ff49876171a6ba89f9c01780f8f24ef0a93e0d58e07 | #include "Scene.h"
#include "Screen.h"
Scene::Scene()
{
}
void Scene::Update()
{
Object::AddPreparedObjects();
for (Object* obj : Object::objects)
{
if (obj->IsActive())
obj->Update();
}
for (auto iter = Object::objects.begin(); iter != Object::objects.end(); iter++)
{
if (!(*iter)->IsActive())
{
... | C++ | MagicEdge/Scene.cpp | TrinityLab/MagicEdge | gpl-3.0 | 1,367 | 87 | codeparrot/github-code |
2b3553fb9ede7b24ad9ce9bd74da096bb98da04c63b4c4f0c6e37088cd88a2b6 | package com.simplecity.amp_library.playback;
import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.media.... | Java | app/src/main/java/com/simplecity/amp_library/playback/MediaSessionManager.java | timusus/Shuttle | gpl-3.0 | 15,327 | 330 | codeparrot/github-code |
948dd124ad4f4e2e63e010439c1de128bc4b1ebcc030c72e0b6b04a4cac3974f | /**
* Copyright 2017 Kaloyan Raev
*
* This file is part of chitanka4kindle.
*
* chitanka4kindle 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) ... | Java | src/main/java/name/raev/kaloyan/kindle/chitanka/model/search/label/Label.java | kaloyan-raev/chitanka4kindle | gpl-3.0 | 1,251 | 52 | codeparrot/github-code |
bc350578872a1f7ea2b5b93178ac596adbe988546a0c8f8ab5475589e636b9d1 | #! /usr/bin/python
from xml.sax.saxutils import escape
import re
def ConvertDiagnosticLineToSonqarqube(item):
try:
id, line, message, source_file = GetDiagnosticFieldsFromDiagnosticLine(item)
WriteDiagnosticFieldsToFile(id, line, message, source_file)
except:
print 'Cant parse line {}'... | Python | report_converter.py | deadloko/ClangCompilerWarningsToSonarQubeRules | gpl-3.0 | 1,862 | 59 | codeparrot/github-code |
4812488dfa88793b85fef709edcbea5bb57f913e79b772d06fa6f5b507006db7 | #!/usr/bin/env python
import os
import tempfile
import pipes
import subprocess
import time
import random
import shutil
try:
from wand.image import Image
from wand.display import display
except ImportError as e:
# cd /usr/lib/
# ln -s libMagickWand-6.Q16.so libMagickWand.so
print("Couldn't import Wand packag... | Python | WebAlbums-FS/WebAlbums-Utils/Photowall/photowall.py | wazari972/WebAlbums | gpl-3.0 | 15,846 | 541 | codeparrot/github-code |
e53026604274682bae2c61895eed5e41f0cbb276c549bb22cc4cae8b80aa7e82 | /*
* Copyright (C) 2019 phramusca ( https://github.com/phramusca/ )
*
* 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 versi... | Java | test/jamuz/process/book/TableModelBookTest.java | phramusca/JaMuz | gpl-3.0 | 7,906 | 295 | codeparrot/github-code |
93b5767f2050901db5410e5d7ab208f4a2e3ffc3bb0b4de664160b690e233cdc | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
LNSTAT(8)</title>
</head>... | HTML | man/lnstat.8.html | fusion809/fusion809.github.io-old | gpl-3.0 | 3,538 | 164 | codeparrot/github-code |
b220bd254a1dade69e5d114db99c7706229ffcf977d5517d87a82cdc225ef47c | #ifndef RESIDUAL_H
#define RESIDUAL_H
#include "base.h"
#include "peak_detection.h"
#include "partial_tracking.h"
#include "synthesis.h"
extern "C" {
#include "sms.h"
}
using namespace std;
namespace simpl
{
// ---------------------------------------------------------------------------
// Residual
//
// Calcu... | C | src/simpl/residual.h | johnglover/simpl | gpl-3.0 | 2,081 | 84 | codeparrot/github-code |
5c572de3ec700efef263843816770d33f523f7c2d10ae9f570303cd3764121b2 | /*
* This file is part of EchoPet.
*
* EchoPet 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.
*
* EchoPet is distributed in th... | Java | modules/v1_14_R1/src/com/dsh105/echopet/compat/nms/v1_14_R1/entity/type/EntityGiantPet.java | Borlea/EchoPet | gpl-3.0 | 1,596 | 45 | codeparrot/github-code |
222d6b462b6779f29e8082522756b1f6634adc08ddf3b96c851a48cf9d9165c7 | <?php
namespace GO\Base\Fs;
class MemoryFile extends File{
private $_data;
public function __construct($filename, $data) {
$this->_data = $data;
return parent::__construct($filename);
}
public function getContents() {
return $this->_data;
}
public function contents() {
return $this->_dat... | PHP | files/rootdir/usr/local/src/groupoffice-6.3/go/base/fs/MemoryFile.php | deependhulla/powermail-debian9 | gpl-3.0 | 2,677 | 155 | codeparrot/github-code |
ee3d53a872f1689f256ee19f13de067b887b0a280eee079bc03f4d3698fb2ac4 | /*
* This file is part of InTEL, the Interactive Toolkit for Engineering Learning.
* http://intel.gatech.edu
*
* InTEL 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 L... | Java | exercises/Keyboard/src/keyboard/KeyboardExercise.java | jogjayr/InTEL-Project | gpl-3.0 | 12,512 | 298 | codeparrot/github-code |
00b8947dacb6466e541cf5886bf5f12a65a7dd10a2213b3a41dfe2d666f74d9a | <?php
/**
* Online Course Resources [Pre-Clerkship]
* Module: Courses
* Area: Admin
* @author Unit: Medical Education Technology Unit
* @author Director: Dr. Benjamin Chen <bhc@post.queensu.ca>
* @author Developer: James Ellis <james.ellis@queensu.ca>
* @version 0.8.3
* @copyright Copyright 2009 Queen's Univers... | PHP | www-root/api/fetchobjectives.api.php | EntradaProject/entrada-1x | gpl-3.0 | 4,728 | 121 | codeparrot/github-code |
8b3340dbc256be19597fa7f072db7ce58dded1288225b4d05774f3448de452b0 | /*
* Transportr
*
* Copyright (c) 2013 - 2021 Torsten Grote
*
* 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... | Java | app/src/androidTest/java/de/grobox/transportr/data/locations/FavoriteLocationTest.java | grote/Transportr | gpl-3.0 | 9,335 | 219 | codeparrot/github-code |
dbb46f4b2ad058f0f836059cb4956af3bb0fc8c12632e95f47869dcc04373f14 | /**
* Bukkit plugin which moves the mobs closer to the players.
* Copyright (C) 2016 Jakub "Co0sh" Sapalski
*
* 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 Licen... | Java | src/main/java/pl/betoncraft/hordes/Blocker.java | Co0sh/Hordes | gpl-3.0 | 2,168 | 74 | codeparrot/github-code |
2d19778c96bba50f41f8226f6bcb9ef5f049c0a87280f93ea53f427a4c5c8eb5 | /*
* RenderRasterize_Shader.h
* Created by Clemens Unterkofler on 1/20/09.
* for Aleph One
*
* http://www.gnu.org/licenses/gpl.html
*/
#ifndef _RENDERRASTERIZE_SHADER__H
#define _RENDERRASTERIZE_SHADER__H
#include "cseries.h"
#include "map.h"
#include "RenderRasterize.h"
#include "OGL_FBO.h"
#include "OGL_... | C | Source_Files/RenderMain/RenderRasterize_Shader.h | MaddTheSane/alephone | gpl-3.0 | 1,903 | 65 | codeparrot/github-code |
917a8c83702730ad9c285ebdf69a343991095983131cd932bf4167e4785d0e4e | #include <QtGui>
#include <QTcpSocket>
#include "phonecall.h"
#include "dcc.h"
DCCDialog::DCCDialog(QWidget *parent)
: QDialog(parent)
{
QStringList list;
QVBoxLayout* mainLayout = new QVBoxLayout(this);
table = new QTableWidget(this);
table->setColumnCount(8);
list << tr("Status") << tr("Fi... | C++ | dcc.cpp | korbatit/qtchat | gpl-3.0 | 5,563 | 155 | codeparrot/github-code |
e64732eaf77ddff2f34c8215a460987a7333bc2d2e4d7a4854776a42e6c87362 | package cn.com.jautoitx;
import org.apache.commons.lang3.StringUtils;
import com.sun.jna.platform.win32.WinDef.HWND;
/**
* Build window title base on Advanced Window Descriptions.
*
* @author zhengbo.wang
*/
public class TitleBuilder {
/**
* Build window title base on Advanced Window Descriptions.
*
* @... | Java | src/cn/com/jautoitx/TitleBuilder.java | Pheelbert/twitchplayclient | gpl-3.0 | 12,238 | 499 | codeparrot/github-code |
b0876dafc3ef1f288db0c830d80f7b2938b36c1bdcf810f0e14474005610c8a3 | package me.vadik.instaclimb.view.adapter;
import android.content.Context;
import android.databinding.ViewDataBinding;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import me.vadik.instaclimb.databinding.RowLayoutRouteBinding;
import me.vadik.instaclimb.databinding.UserCardBinding;
import me.vadik... | Java | app/src/main/java/me/vadik/instaclimb/view/adapter/UserRecyclerViewAdapter.java | sirekanyan/instaclimb | gpl-3.0 | 1,531 | 45 | codeparrot/github-code |
7a42ea2e212436054fcb77412cf45fcfd4c07ee91e454c9ca7d769f1469117ce | # Copyright (C) 2012 Statoil ASA, Norway.
#
# The file 'enkf_node.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT 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... | Python | ThirdParty/Ert/devel/python/python/ert/enkf/data/enkf_node.py | iLoop2/ResInsight | gpl-3.0 | 3,730 | 97 | codeparrot/github-code |
bfdef79c0d648e26fc20e932185c90766ba3f8396d837940d91807b2b23fe908 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Web;
using System.Xml;
using System.Xml.XPath;
using System.IO;
using LyricsFetcher;
using iTunesLib;
using WMPLib;
using WMFSDKWrapper;
public class TestSong : Song
{... | C# | CommandLine/Program.cs | mattshall/lyricsfetcher | gpl-3.0 | 14,293 | 324 | codeparrot/github-code |
4c138499d13ad1334d00247fa063d97b3a3b2deb0d2d276499fae23ec63be9d4 | #!/bin/sh
# AwesomeTTS text-to-speech add-on for Anki
# Copyright (C) 2010-Present Anki AwesomeTTS Development Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Li... | Shell | tools/symlink.sh | AwesomeTTS/awesometts-anki-addon | gpl-3.0 | 2,285 | 97 | codeparrot/github-code |
46cd840553508b36ae4b875495cd36a538535e4f7e03a5ade78625eee55a6371 | #pragma once
#ifndef HPTT_PARAM_PARAMETER_TRANS_H_
#define HPTT_PARAM_PARAMETER_TRANS_H_
#include <array>
#include <utility>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <hptt/types.h>
#include <hptt/tensor.h>
#include <hptt/arch/compat.h>
#include <hptt/util/util_trans.h>
#include ... | C | inc/hptt/param/parameter_trans.h | tongsucn/hptt | gpl-3.0 | 2,854 | 96 | codeparrot/github-code |
e28d15adb29c181db0fb7eee7c4fa5e65b15f89415ae9b0e5b958df64b809cc3 | #include "cdi.h"
#include "mds_reader.h"
#include "common.h"
SessionInfo mds_ses;
TocInfo mds_toc;
DiscType mds_Disctype=CdRom;
struct file_TrackInfo
{
u32 FAD;
u32 Offset;
u32 SectorSize;
};
file_TrackInfo mds_Track[101];
FILE* fp_mdf=0;
u8 mds_SecTemp[5120];
u32 mds_TrackCount;
u32 mds_ReadSSect(u8* p_out,u32... | C++ | nulldc/plugins/ImgReader/mds.cpp | workhorsy/nulldc-linux | gpl-3.0 | 7,400 | 320 | codeparrot/github-code |
02272bcda90c7830f2069a77fd34def4b95c0e345a599cfc57a5dec936dab44f | package visGrid.diagram.edit.parts;
import java.io.File;
import java.util.Collections;
import java.util.List;
import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
im... | Java | ie.tcd.gmf.visGrid.diagram/src/visGrid/diagram/edit/parts/Series_reactorNameEditPart.java | mikesligo/visGrid | gpl-3.0 | 16,066 | 610 | codeparrot/github-code |
6b48ad4dd2e27a6c3143f0e939c8d0e7cf205862b022704d761a839f87f67d32 | #include "mainwindow.h"
#include <exception>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
//setWindowFlags(Qt::CustomizeWindowHint);
menuBar()->close();
setStyleSheet("QPushButton{"
"background-color:gray;"
"colo... | C++ | Calculator/mainwindow.cpp | Zix777/Complex-mathematical-expressions | gpl-3.0 | 9,380 | 280 | codeparrot/github-code |
96b924c7a5025ad9b557b67355b439759895fe81a3503beb8e74869efa176732 | // Copyright 2017 Ryan Wick (rrwick@gmail.com)
// https://github.com/rrwick/Unicycler
// This file is part of Unicycler. Unicycler 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 Lic... | C++ | unicycler/src/overlap_align.cpp | rrwick/Unicycler | gpl-3.0 | 3,185 | 82 | codeparrot/github-code |
40b8cacac23111e9d0a3e4a9a487c3ac4321a7594c38fc8a930ed8e7e72b56cf | package me.anthonybruno.soccerSim.reader;
import org.apache.pdfbox.io.RandomAccessFile;
import org.apache.pdfbox.pdfparser.PDFParser;
import org.apache.pdfbox.text.PDFTextStripperByArea;
import java.awt.geom.Rectangle2D;
import java.io.File;
import java.io.IOException;
/**
* A class that parsers team PDF files in... | Java | src/main/java/me/anthonybruno/soccerSim/reader/TeamPdfReader.java | AussieGuy0/soccerSim | gpl-3.0 | 9,771 | 253 | codeparrot/github-code |
839218add00ee4c26dd17b4ccf072977cf1b1316b28a689bcac73068b3c38776 | module TransactionChains
class Lifetimes::ExpirationWarning < ::TransactionChain
label 'Expiration'
allow_empty
def link_chain(klass, q)
q.each do |obj|
user = if obj.is_a?(::User)
obj
elsif obj.respond_to?(:user)
obj.user
else... | Ruby | api/models/transaction_chains/lifetimes/expiration_warning.rb | vpsfreecz/vpsadmin-webui | gpl-3.0 | 792 | 32 | codeparrot/github-code |
afcfb87913e3173916c3ba1ad3247f704e56005b5c095a76b8c5dcc96c7adafa | #pragma once
#include <vector>
#include <boost/thread.hpp>
#include <boost/thread/condition_variable.hpp>
#include <boost/bind.hpp>
#include <boost/version.hpp>
#include <boost/function.hpp>
#include <boost/interprocess/detail/atomic.hpp>
#if (BOOST_VERSION < 104800)
using boost::interprocess::detail::atomic_inc32;... | C | core/scheduler.h | marwan-abdellah/luxrender-lux | gpl-3.0 | 2,656 | 163 | codeparrot/github-code |
c453594c62f9a3126ca572f57d8b02b23f043698f3a2ea85bd70100f241619b0 | //
// tcpconnection.cpp
//
// This implements RFC 793 with some changes in RFC 1122 and RFC 6298.
//
// Non-implemented features:
// dynamic receive window
// URG flag and urgent pointer
// delayed ACK
// queueing out-of-order TCP segments
// security/compartment
// precedence
// user timeout
//
// Circle - A C++ bare ... | C++ | lib/net/tcpconnection.cpp | rsta2/circle | gpl-3.0 | 34,730 | 1,623 | codeparrot/github-code |
aef369b385c562d9798c54ca744af4118df7f416e45d148bafcb94d2d9a99f45 | #include "template_components.h"
#include <QtGui/QSpacerItem>
TemplateComponents::TemplateComponents(const QSharedPointer<const Template>& templ,
QWidget *parent)
: QWidget(parent), templ(templ)
{
ui.setupUi(this);
QList<FoodComponent> components = templ->getComponen... | C++ | application/src/widgets/template_components.cpp | tylermchenry/nutrition_tracker | gpl-3.0 | 3,460 | 95 | codeparrot/github-code |
48c9f8ddc3d3af2ef20c9b97d92dae1ee4d1d55e0dcc5fd13da19a242fe17324 | /*
-------------------------------------------------------------------------------
This file is part of the weather information collector.
Copyright (C) 2018, 2019, 2020, 2021 Dirk Stolle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public... | C++ | src/synchronizer/main.cpp | striezel/weather-information-collector | gpl-3.0 | 19,214 | 465 | codeparrot/github-code |
bd4c0aa6b9852fd9836f729003fcb1e78d6e49e69dc0f16d0b7a639a3d38599c | #define BOOST_TEST_MODULE segmentize tests
#include <boost/test/unit_test.hpp>
#include <ostream>
#include "segmentize.hpp"
#include "bg_operators.hpp"
using namespace std;
BOOST_AUTO_TEST_SUITE(segmentize_tests)
void print_result(const vector<std::pair<linestring_type_fp, bool>>& result) {
cout << result;
}
BOO... | C++ | segmentize_tests.cpp | pcb2gcode/pcb2gcode | gpl-3.0 | 2,382 | 88 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.