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 |
|---|---|---|---|---|---|---|---|---|
e0278fd8994be6c26d252605da220af7c37d8780ac7268fe45eecbb8c8145277 | module Util where
import Data.Acid (Update)
import Data.Aeson.Encode.Pretty
import Data.IxSet (empty)
import Data.Text (pack, unpack, Text)
import Data.Text.IO (hPutStr)
import qualified Data.Text.IO as TIO
import Happstack.Server (toResponse, Response)
import System.Directory (removeFile)
import System.IO (hClose)
... | Haskell | src/Util.hs | ibabushkin/morgue-server | gpl-3.0 | 2,663 | 78 | codeparrot/github-code |
0e627b469d0834f6e1ab23f3fdda0f27142a68a670a208fe6b996b06d5c56e34 | import { PushRequest } from './../protocol/push/PushRequest';
import { PushRequestNewObject } from './../protocol/push/PushRequestNewObject';
import { PushRequestObject } from './../protocol/push/PushRequestObject';
import { PushResponse } from './../protocol/push/PushResponse';
import { PushResponseNewObject } from '.... | TypeScript | Platform/Workspace/Typescript/src/allors/framework/workspace/Session.ts | Allors/allors | gpl-3.0 | 6,112 | 199 | codeparrot/github-code |
955fe49495ab0c42b80a886c2ab4bbeb75738fbfe8e4489de17a01c1a8b12548 | /*
Nodics - Enterprice Micro-Services Management Framework
Copyright (c) 2017 Nodics All rights reserved.
This software is the confidential and proprietary information of Nodics ("Confidential Information").
You shall not disclose such Confidential Information and shall use it only in accordance with ... | JavaScript | gFramework/nDynamo/src/service/class/defaultClassConfigurationService.js | Nodics/nodics | gpl-3.0 | 11,955 | 261 | codeparrot/github-code |
5f7833cf212eff8b04809c638a933ecff7ed6374c140046278eb68730e92082b | #! /usr/bin/python
import sys
sys.path.append('../')
from toolbox.hreaders import token_readers as reader
from toolbox.hreducers import list_reducer as reducer
SOLO_FACTURA = False
def reduction(x,y):
v1 = x.split(',')
v2 = y.split(',')
r = x if int(v1[1])>=int(v2[1]) else y
return r
_reader = reader... | Python | Modulo4/ejercicio3/reducer.py | xavi783/u-tad | gpl-3.0 | 915 | 32 | codeparrot/github-code |
48b2d720065e3975fb1dedd76d11a562090b0b22e26f7ce6f872f08708665dcd | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
--------... | C++ | src/fvOptions/sources/derived/radialActuationDiskSource/radialActuationDiskSource.C | Atizar/RapidCFD-dev | gpl-3.0 | 3,628 | 139 | codeparrot/github-code |
b6e0d1c6d73098c80365fec614bc12b089d6c37d8a5349afee30e3c97c6d2f88 | /*
* Kerbal Space App
*
* Copyright (C) 2014 Jim Pekarek (Amagi82)
*
* 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 | src/com/amagi82/kerbalspaceapp/MissionPlanner.java | Amagi82/KerbalSpaceApp | gpl-3.0 | 17,210 | 498 | codeparrot/github-code |
ba8679c5585aaf393bc1be0ddb7633985c646b474af00d76bae9b6dd41382b44 | package alexiil.mods.load.json.subtypes;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import net.minecraft.util.ResourceLocation;
import alexiil.mods.load.baked.func.BakedFunction;
import alexiil.mods.load.baked.func.FunctionBaker;
import alexiil.mods.load.baked.insn.BakedInstruction;
i... | Java | src/main/java/alexiil/mods/load/json/subtypes/JsonImagePanorama.java | Adaptivity/BetterLoadingScreen | gpl-3.0 | 1,195 | 38 | codeparrot/github-code |
3554911fd2b1c9a5d00d0f162958a2a3f7dd69f91dc96ead6526b84ba0e9c943 | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | Java | adams-core/src/test/java/adams/flow/sink/RemoteCommandWriterTest.java | waikato-datamining/adams-base | gpl-3.0 | 4,366 | 164 | codeparrot/github-code |
498cbc6b67058563f868b0af92ffa3f5195fcb982c98e06df96556e4ca07e441 | #include "privatestorage.h"
#include <definitions/namespaces.h>
#include <definitions/stanzahandlerorders.h>
#include <utils/options.h>
#include <utils/stanza.h>
#include <utils/logger.h>
#define PRIVATE_STORAGE_TIMEOUT 30000
#define SHC_NOTIFYDATACHANGED "/message/x[@xmlns='" NS_VACUUM_PRIVATESTORAG... | C++ | src/plugins/privatestorage/privatestorage.cpp | Nikoli/vacuum-im | gpl-3.0 | 14,432 | 373 | codeparrot/github-code |
4579de9ac34a9fda2c1754ed61c3d845b7902fca0bd30ad2fb086d43671e8563 | <?php
/**
* Mobile class
*
* @author Arnia (dev@karybu.org)
*/
class MobileInstance
{
/**
* Whether mobile or not mobile mode
* @var bool
*/
var $ismobile = null;
/**
* Get current mobile mode
*
* @return bool If mobile mode returns true or false
*/
function isFr... | PHP | classes/mobile/Mobile.class.php | arnia/Karybu | gpl-3.0 | 7,236 | 247 | codeparrot/github-code |
ca69dfb3dfa5c21a746cec7eb39172c6a0a16085b7893f11158a46f7ac0d7f9b | /*
* MidiEditor
* Copyright (C) 2010 Markus Schwenk
*
* 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... | C++ | src/MidiEvent/KeySignatureEvent.cpp | easyaspi314/MidiEditor | gpl-3.0 | 3,781 | 214 | codeparrot/github-code |
4b23c7af01e23a71d8e904ca0e0e4d2c34d7024dc32a688e75103c2d9d97a22e | <?php
/**
* xmlseclibs.php
*
* Copyright (c) 2007-2010, Robert Richards <rrichards@cdatazone.org>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source co... | PHP | libwebpay/soap/xmlseclibs.php | sGarciaCL/Transbank | gpl-3.0 | 69,536 | 1,736 | codeparrot/github-code |
6d032218aed3d4a7d191d91200c3cb48af8ad3afa2f3e46e1ff021b721bf8226 | <?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is ... | PHP | vilesci/kommunikation/kontakt.php | zsh2938/FHC-Core | gpl-3.0 | 5,668 | 154 | codeparrot/github-code |
c63517941448b68ef040696cc4cd78a4d0f5108804bad3b195625b31c0a37653 | from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, PageBreak
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.rl_config import defaultPageSize
from reportlab.lib.units import cm
import operator
import os
import ConfigParser
import string
config = ConfigP... | Python | abook2pdf.py | andydrop/x17papertrail | gpl-3.0 | 3,106 | 94 | codeparrot/github-code |
70953f38d84952b4dded8b793f9900584b2aa8e0f615e5e05f0efc10e03e4759 | package unagoclient.partner;
import unagoclient.Global;
import unagoclient.gui.*;
import javax.swing.*;
/**
* Displays a send dialog, when the partner presses "Send" in the GoFrame. The
* message is appended to the PartnerFrame.
*/
public class PartnerSendQuestion extends CloseDialog {
/**
... | Java | unagoclient/partner/PartnerSendQuestion.java | rdnz/UnaGo | gpl-3.0 | 1,804 | 57 | codeparrot/github-code |
87f865497a34c3d00955e9b5d5920d05672114f92544c48339e66b4be3599705 | #!/usr/bin/perl -w
# Asynchronous boolean circuit consisting in a square grid of NxN AND gates.
#
# The inputs of every gate are the outputs of the its north and west gates.
# The initial state of all signals is low except for the signals at the
# top and left boundaries of the grid, which are non-deterministally simu... | Perl | scripts/mkandnet2.pl | cesaro/cunf | gpl-3.0 | 2,628 | 118 | codeparrot/github-code |
f1363392b11acf58bcedd8ed0378233892be4d53fc1bd7d315aeb24f8fb5c082 | #ifndef MANTID_ALGORITHMS_SPECTRUMALGORITHM_H_
#define MANTID_ALGORITHMS_SPECTRUMALGORITHM_H_
#include <tuple>
#include "MantidKernel/IndexSet.h"
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidAlgorithms/DllConfig.h"
namespace Mantid {
namespace DataObjects {
class Event... | C | Framework/Algorithms/inc/MantidAlgorithms/SpectrumAlgorithm.h | ScreamingUdder/mantid | gpl-3.0 | 7,475 | 178 | codeparrot/github-code |
f30d7f81d908b262f712e0272441db6d6c0106afc8cea1b102e6d7b2d28861bb | # coding=utf8
r"""
csection.py -- Create a tree of contents, organized by sections and inside
sections the exercises unique_name.
AUTHOR:
- Pedro Cruz (2012-01): initial version
- Pedro Cruz (2016-03): improvment for smc
An exercise could contain um its %summary tag line a description of section
in form:... | Python | megua/csection.py | jpedroan/megua | gpl-3.0 | 10,442 | 355 | codeparrot/github-code |
48aaf5b2ff94476e5fe3bd42b88aab1e3c86720e3646376009aa273371021968 | # Copyright 2008 Dan Smith <dsmith@danplanet.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 version.
#
# This program is ... | Python | chirp/drivers/icf.py | tylert/chirp.hg | gpl-3.0 | 23,992 | 789 | codeparrot/github-code |
c1e5fb68abfd6bacbd8531134f127bcb1dc776d21676ce564450a70387594ea0 | //===--- ASTContext.h - Context to hold long-lived AST nodes ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | llvm/tools/clang/include/clang/AST/ASTContext.h | Bootz/multicore-opimization | gpl-3.0 | 78,392 | 1,893 | codeparrot/github-code |
d97d89ce5f6530da6e555eeac35b0a5fed76a2d5f50e0d1d6737b0e44fc2612c | package com.winthier.linkportal;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public final class LinkPortalPlugin extends JavaPlugin {
private final LinkPortalListener listener = new LinkPortalListener(this);
pri... | Java | src/main/java/com/winthier/linkportal/LinkPortalPlugin.java | StarTux/LinkPortal | gpl-3.0 | 997 | 33 | codeparrot/github-code |
99d3cb789eeac6e2f574da088b5b725b3ee8cb45f654c434ebda8bbe73131c42 | <?php
/**
* Entrada [ http://www.entrada-project.org ]
*
* This file gives Entrada users the ability to update their user profile.
*
* @author Organisation: Queen's University
* @author Unit: School of Medicine
* @author Developer: Jonathan Fingland <jonathan.fingland@queensu.ca>
* @copyright Copyright 2010 Que... | PHP | www-root/core/modules/admin/users/manage/students/mspr.inc.php | mattsimpson/entrada-1x | gpl-3.0 | 68,918 | 1,748 | codeparrot/github-code |
463e6c7d852725489cdf78a71b363340c72f93d92c3d237e2bbcbf7beac94a39 | /*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2017 Free Software Foundation, Inc.
*
* GRUB 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... | C | grub-core/commands/getkey.c | a1ive/grub2-mod | gpl-3.0 | 1,812 | 71 | codeparrot/github-code |
e10922d61f40af8e9d20ed785555128c24189ac87c6198e9f04ecf966aa7e002 | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | Java | jasperreports-6.2.1-project/jasperreports-6.2.1/demo/samples/csvdatasource/src/CsvDataSourceApp.java | aleatorio12/ProVentasConnector | gpl-3.0 | 15,435 | 507 | codeparrot/github-code |
729aae750f600ff5470b5bbd697952a97406bca17326a6f8d188121b8255c84a | #! /usr/bin/env python
# I found this file inside Super Mario Bros python
# written by HJ https://sourceforge.net/projects/supermariobrosp/
# the complete work is licensed under GPL3 although I can not determine# license of this file
# maybe this is the original author, we can contact him/her http://www.pygame.org/pro... | Python | ezmenu.py | juanjosegzl/learningpygame | gpl-3.0 | 2,298 | 74 | codeparrot/github-code |
e194741faebaa11a567859b166928882d5be4bc586895ab873d668ecf6f1dbba | /* ----------------------------------------------------------------------------
(c) The University of Glasgow 2004
Support for System.Process
------------------------------------------------------------------------- */
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)
#define UNICODE
#endif
/... | C | libraries/process/cbits/runProcess.c | jwiegley/ghc-release | gpl-3.0 | 18,971 | 629 | codeparrot/github-code |
9c5b2b1002b2ef6c9b3516a273829a97f73cc7499dbf19bf89a60784317fa07d | // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, co... | C# | dnSpy/GuessFileType.cs | zuloloxi/dnSpy | gpl-3.0 | 4,192 | 153 | codeparrot/github-code |
a453e881bc3a58d59099273d09d365163f36fbe3730a1c455fbf7d5d118c376d | #! /usr/bin/env python
"""Keywords (from "graminit.c")
This file is automatically generated; please don't muck it up!
To update the symbols in this file, 'cd' to the top directory of
the python source tree after building the interpreter and run:
python Lib/keyword.py
"""
__all__ = ["iskeyword", "kw... | Python | org.modelsphere.sms/lib/jython-2.2.1/Lib/keyword.py | DarioGT/OMS-PluginXML | gpl-3.0 | 2,162 | 98 | codeparrot/github-code |
ab7a0c24f3771f32c758b9361e1bd53cd26f29d937e61b99342c6805225e5a3c | /*
* Copyright (C) 2014 Emil
*
* 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... | Java | src/freeWarOnTerror/cards/IEDs.java | wachsmuth/freeWarOnTerror | gpl-3.0 | 1,521 | 51 | codeparrot/github-code |
16a47b9d21907359552f32b739f8518b36d504f0580736b51f79589fc3f7e392 | /*
* lastfm-ws.h -- Last.fm Web Services v2.0
*
* Copyright (C) 2009, 2011, 2013 Igalia, S.L.
* Authors: Alberto Garcia <berto@igalia.com>
*
* This file is part of Vagalume and is published under the GNU GPLv3
* See the README file for more details.
*/
#ifndef LASTFM_WS_H
#define LASTFM_WS_H
#include "playlis... | C | src/lastfm-ws.h | bertogg/vagalume | gpl-3.0 | 4,580 | 121 | codeparrot/github-code |
f633a7408d011598d087bd55e14e1d1072f8f0884c616aba65aa0d8b65015ad2 | /*********************************************************************
* SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* ... | C | emWin Simulator/Sample/Application/MultiUser/Task_2.c | JiabinDainel/Master-design | gpl-3.0 | 92,128 | 2,113 | codeparrot/github-code |
d8c65dc6ceefebec95227d84404f56fc691cb0bbb01ea62b9c57d21134764bfa | """Calculate exact solutions for the zero dimensional LLG as given by
[Mallinson2000]
"""
from __future__ import division
from __future__ import absolute_import
from math import sin, cos, tan, log, atan2, acos, pi, sqrt
import scipy as sp
import matplotlib.pyplot as plt
import functools as ft
import simpleode.core.u... | Python | llg/mallinson.py | davidshepherd7/Landau-Lifshitz-Gilbert-ODE-model | gpl-3.0 | 4,251 | 140 | codeparrot/github-code |
3ebb2fd898e5b913f1b7de6187c88f1a006e323f87518b78fb25b592895e91b1 | class Sbs:
def __init__(self, sbsFilename, sbc_filename, newSbsFilename):
import xml.etree.ElementTree as ET
import Sbc
self.mySbc = Sbc.Sbc(sbc_filename)
self.sbsTree = ET.parse(sbsFilename)
self.sbsRoot = self.sbsTree.getroot()
self.XSI_TYPE = "{http://www.w3.or... | Python | Sbs.py | mccorkle/seds-utils | gpl-3.0 | 13,196 | 237 | codeparrot/github-code |
485113942e186046f914f3f8ef26dde015db76e5db81b74af8452ac16af0f242 | /*
* _____ _ _ _____ _
* | __ \| | | | / ____| | |
* | |__) | | ___ | |_| (___ __ _ _ _ __ _ _ __ ___ __| |
* | ___/| |/ _ \| __|\___ \ / _` | | | |/ _` | '__/ _ \/ _` |
* | | | | (_) | |_ ____) | (_| | ... | Java | Core/src/main/java/com/plotsquared/core/events/PlotChangeOwnerEvent.java | IntellectualSites/PlotSquared | gpl-3.0 | 3,957 | 140 | codeparrot/github-code |
b3ea9d1d0c8ec399d49710936cd91097b9727943d5d3eb8d965f9c297850beda | <!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">
<!-- This is the GNU Emacs Lisp Reference Manual
corresponding to Emacs version 25.1.
Copyright © 1990-1996, 1998-2016 Free Software Foundation, Inc... | HTML | aquamacs/doc/Aquamacs Help/EmacsLispReference/Function-Debugging.html | davidswelt/aquamacs-emacs | gpl-3.0 | 8,017 | 214 | codeparrot/github-code |
93a601780fe76de7e922551b3f1c84c948009b4bb153c1e83728af5c714d76ef | /*
* Copyright (C) 2012-2015 Dominik Schürmann <dominik@dominikschuermann.de>
* Copyright (C) 2015 Adithya Abraham Philip <adithyaphilip@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 Fo... | Java | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/SettingsKeyserverFragment.java | tobiasschuelke/open-keychain | gpl-3.0 | 13,815 | 338 | codeparrot/github-code |
4f57496b1dad650eb04f03d241ce4593927260f965d04300b19c036d0a2a535f | # A template for APSync process based modules
from multiprocessing import Process, Event
import threading
import time
import signal, select
import traceback
import setproctitle
from APSyncFramework.utils.common_utils import PeriodicEvent
from APSyncFramework.utils.json_utils import ping, json_wrap_with_target
from APSy... | Python | APSyncFramework/modules/lib/APSync_module.py | SamuelDudley/APSyncWeb | gpl-3.0 | 4,702 | 133 | codeparrot/github-code |
16ae3fa58e567cfbd5d47fb3dcc0fb1d89d0a76d454a19185d41b25905ff6cc9 | # -*- 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/controller/integration/phase/PhaseInCakeController.py | Dioptas/Dioptas | gpl-3.0 | 5,615 | 120 | codeparrot/github-code |
904df1a50cf512bf1c0b96f109c32b93b7977e1ab36e55f329c574d9dc7e095a | /*
* Copyright (C) 2009 Daniel Prevost <dprevost@photonsoftware.org>
*
* This file is part of Photon (photonsoftware.org).
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 or version 3 as published by the
* Free Software Foundation and appearing in t... | C | src/Java/jni_src/jni_dataDefinition.c | dprevost/photon | gpl-3.0 | 10,928 | 351 | codeparrot/github-code |
11b12e2ed70517d816fec5dd77440f058c8eee5f1bea317c31df9c6a8f610116 |
\subsection{Pictures used}
\subsubsection{adada}
\noindent
Cover picture filename (in titlepage): \texttt{cover}\\
Logo filename (in foot): \texttt{logo}
\subsection{Boxes}
\begin{verbatim}
\fullboxbegin
Content
\fullboxend
\end{verbatim}
\begin{verbatim}
\leftboxbegin
Content
\leftboxend
\end{verbatim}
\begin{v... | TeX | doc/reference_tex.tex | swkim23/DL_from_Scratch | gpl-3.0 | 10,555 | 261 | codeparrot/github-code |
b56e9bef2bdefa8737ad229b74416058e6b2bea0d6a7878679d004ce2ea826e1 | /*
* 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 | ALPS.L1.MP6.V2_HEXING6580_WE_L/alps/development/samples/Support7Demos/src/com/example/android/supportv7/app/ToolbarDisplayOptions.java | MTK6580/walkie-talkie | gpl-3.0 | 4,827 | 130 | codeparrot/github-code |
2d3a99232e2ba3e00069858ab7aad9770a43d36ec1778efeec4ef128b01f4b95 | {% extends "admin/base/base_add.html" %}
{% block form %}
<form role="form" method="post" class="form form-horizontal" id="form-admin-add" enctype="multipart/form-data">
<div class="row cl">
<div class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>{{ form.language_id.label }}:</div>... | HTML | app/templates/admin/content/featured_edit.html | jinxiu89/flask_star | gpl-3.0 | 3,957 | 90 | codeparrot/github-code |
f1b37384307d72aa924118547e7a20fb0e441d851abf2a2138f62ed1e8543210 | namespace WOT.Stats
{
partial class ctxScreens
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <p... | C# | Solution/WOT.Stats/UserControls/ctxScreens.Designer.cs | Phalynx/WOT-Statistics | gpl-3.0 | 11,311 | 184 | codeparrot/github-code |
0bc77440218617075720a6f568b7d8abcf6cffd1e1ddade09d37fa80a6eae1e5 | package com.minecolonies.inventory;
import com.minecolonies.colony.buildings.Building;
import com.minecolonies.colony.materials.MaterialStore;
import com.minecolonies.colony.materials.MaterialSystem;
import com.minecolonies.tileentities.TileEntityColonyBuilding;
import net.minecraft.inventory.IInventory;
import net.mi... | Java | src/test/java/com/minecolonies/inventory/InventoryTest.java | MinecoloniesDevs/Minecolonies | gpl-3.0 | 1,801 | 57 | codeparrot/github-code |
6abb6a6f0b3a6231b319368f6954d5998a116efc3942d7d72f976a14f69d9341 | /*
Color.cs
This file is part of Morgan's CLR Advanced Runtime (MCART)
Author(s):
César Andrés Morgan <xds_xps_ivx@hotmail.com>
Copyright © 2011 - 2021 César Andrés Morgan
Morgan's CLR Advanced Runtime (MCART) is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public... | C# | src/Extensions/ComplexTypes/Types/Entity/Color.cs | TheXDS/MCART | gpl-3.0 | 3,296 | 110 | codeparrot/github-code |
396c1b9183835851981a77209c56a06b51daee32829f25e9650eaa905de098d1 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
An implementation of the time frequency phase misfit and adjoint source after
Fichtner et al. (2008).
:copyright:
Lion Krischer (krischer@geophysik.uni-muenchen.de), 2013
:license:
GNU General Public License, Version 3
(http://www.gnu.org/copyleft/gpl.html)... | Python | lasif_code/ad_src_tf_phase_misfit.py | Phlos/LASIF_scripts | gpl-3.0 | 13,183 | 330 | codeparrot/github-code |
7d8dc6398dceb770bc802b76f8cbb36a88ae998495e134e9a7d9081f711a384b | \section{Monte Carlo Simulations}
\label{sec:montecarlo}
It is also straightforward to perform Monte Carlo simulations with \alis.
You can tell \alis\ to perform Monte Carlo simulations by using the
appropriate three parameter arguments in your \dmod\ file
(see Section~\ref{sec:dmod} and Table~\ref{tab:settings}).
\te... | TeX | doc/tex_files/montecarlo.tex | rcooke-ast/ALIS | gpl-3.0 | 6,661 | 109 | codeparrot/github-code |
6f0f050206d1b81f1d53b5dc510241e8776316bc74663a1c9e915e00c0a2d212 | package compiler;
import checker.Checker;
import checker.SemanticException;
import encoder.Encoder;
import parser.Parser;
import parser.SyntacticException;
import scanner.LexicalException;
import util.FileException;
import util.AST.Programa;
/**
* Compiler driver
* @version 2010-september-04
* @disci... | Java | Compilador/src/compiler/Compiler.java | Drakmord2/rec-compiler | gpl-3.0 | 3,253 | 105 | codeparrot/github-code |
06856643dca67c177ead090b98ed25143238d76fb3ebd7c921390941a92cb41e | package org.mariotaku.harmony.app;
import android.app.Application;
import android.content.Context;
import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiscCache;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
import com.n... | Java | src/org/mariotaku/harmony/app/HarmonyApplication.java | mariotaku/harmony | gpl-3.0 | 1,908 | 47 | codeparrot/github-code |
5262c0bce52e466f495e98a92e503a962c8a754821d9dee1ba09061963f32da7 | REM Developer acrefawn. Contact me: t.me/acrefawn
REM I recommend that you do not touch the options below unless you know what you are doing.
@ECHO off
pushd "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
MODE CON cols=70 lines=40
shutdown.exe /A 2>NUL 1>&2
SET ver=2.1.7
SET mn=Ewbf
SET firstrun=0
F... | Batchfile | Ewbfautorun.bat | Undertrey/ZcashMinerAutorun | gpl-3.0 | 49,328 | 845 | codeparrot/github-code |
c5e48bdff677e162253a7f9431ced0ddbf14637f8efd1d42797706d1a00fe767 | package net.marevalo.flowsmanager;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
public class CollectionAdapte... | Java | app/src/main/java/net/marevalo/flowsmanager/CollectionAdapter.java | marevalo/FlowsManager | gpl-3.0 | 1,955 | 73 | codeparrot/github-code |
17e06a554b1cde4cf926feceb3ded796ae4efdff368440dee585f6e91bb84bd3 | ! Copyright info:
!
! @Copyright 2005
! Fireball Enterprise Center, BYU
! Brigham Young University - James P. Lewis, Chair
! Arizona State University - Otto F. Sankey
! Universidad de Madrid - Jose Ortega
! Institute of Physics, Czech Republic - Pavel Jelinek
! Other con... | FORTRAN | GRID/psi22mesh.f90 | fireball-QMD/progs | gpl-3.0 | 12,968 | 462 | codeparrot/github-code |
47b780d89dbd032967d4ab8bd32e1b5a22e8fd999c7168d9e89297d1110dfe8f | package org.softuni.mostwanted.entity;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.softuni.mostwanted.util.ReflectionUtil;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.persistence.Column;
import javax.pers... | Java | Java_DBFundamentals-Jan18/DBAdvanced_HibernateSpring/s_Practical_Exam/Skeleton/src/test/java/org.softuni.mostwanted/entity/CarEntityTests.java | kostovhg/SoftUni | gpl-3.0 | 5,858 | 131 | codeparrot/github-code |
c7d07ee160204bb0ea337e7ae06e8a558fd932b9b7cec25baef129a88279f1ce | package web;
import entities.User;
import services.UserService;
import javax.inject.Inject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java... | Java | JavaWeb/JavaWebDevelopmentBasics/f_serverpages/demo/src/main/java/web/HomeServlet.java | kostovhg/SoftUni | gpl-3.0 | 3,142 | 97 | codeparrot/github-code |
3d5e7a689e389a047e44a1108a5ef7580585c8186c554a163b7dd804dc0d7393 | <?php
/*
Plugin Name: Like Buttons
Description: Adds Open Graph tags to your posts/pages/etc, adds a Facebook Like button to posts using simple Theme functions. Requires a Facebook Application ID (instructions are provided)
Author: Scott Taylor
Version: 0.4
Author URI: http://tsunamiorigami.com
*/
/**
* You must regi... | PHP | like-buttons.php | wp-plugins/like-buttons | gpl-3.0 | 4,584 | 126 | codeparrot/github-code |
1782bf339a9ea6d602bb74ec09e20bc11d6913da983ba8f9375054fa52693111 | import json
import random
import requests
from plugin import create_plugin
from message import SteelyMessage
HELP_STR = """
Request your favourite bible quotes, right to the chat.
Usage:
/bible - Random quote
/bible Genesis 1:3 - Specific verse
/bible help - This help text
Verses are specified in th... | Python | steely/plugins/bible/main.py | sentriz/steely | gpl-3.0 | 3,384 | 105 | codeparrot/github-code |
f462a86b974e572d0580cf1db3b8921bc723609b61dbe2ad7086851826196abc | /*
* Progress.h
*
* Created on: 25.03.2012
* Author: michi
*/
#ifndef PROGRESS_H_
#define PROGRESS_H_
#include "../../lib/base/pointer.h"
#include "../../Stuff/Observable.h"
namespace hui {
class Window;
class Timer;
}
class Progress : public Observable<VirtualBase> {
public:
Progress(const string &st... | C | src/View/Helper/Progress.h | momentarylapse/tsunami | gpl-3.0 | 1,113 | 56 | codeparrot/github-code |
d01888f72da703b48de6284e45a41bbe9d6ea8fc6d4940020953c55ecad66d35 | <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... | PHP | provision_course_internal.php | lsuits/Moodle-2.0-Plugin-for-Panopto | gpl-3.0 | 6,665 | 183 | codeparrot/github-code |
f641722bb239d44c183bc97c1f97b5bcdc4f6c13557db4c06b7c7d7d0cec3991 | package io.github.notsyncing.lightfur.integration.jdbc;
import io.github.notsyncing.lightfur.annotations.entity.Column;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List... | Java | lightfur-integration-jdbc/src/main/java/io/github/notsyncing/lightfur/integration/jdbc/ReflectDataMapper.java | notsyncing/lightfur | gpl-3.0 | 2,099 | 72 | codeparrot/github-code |
f270e212e4ee012f495f4cb6353dc656138f5c697fcdb01575316278e8c06fca | package de.leif.ffmanagementsuite.service;
import de.leif.ffmanagementsuite.domain.Authority;
import de.leif.ffmanagementsuite.domain.User;
import de.leif.ffmanagementsuite.repository.AuthorityRepository;
import de.leif.ffmanagementsuite.config.Constants;
import de.leif.ffmanagementsuite.repository.UserRepository;
imp... | Java | src/main/java/de/leif/ffmanagementsuite/service/UserService.java | t08094a/ffManagementSuite | gpl-3.0 | 10,089 | 254 | codeparrot/github-code |
f5c95acfcec5dfb442fe802e0d7471c3c3b138cc470931a51f58828d3b7a131d | /*
* Copyright (C) 2013 Nivis LLC.
* Email: opensource@nivis.com
* Website: http://www.nivis.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, version 3 of the License.
*
* Redistribution... | C++ | Gateway/src/GwUtill.cpp | irares/WirelessHart-Gateway | gpl-3.0 | 2,644 | 71 | codeparrot/github-code |
d8916e3d2bc3d6df829178f07cb26f5885cab065f5e717646e5b103bebd95a35 | #!/usr/bin/env python
"""
This program decodes the Motorola SmartNet II trunking protocol from the control channel
Tune it to the control channel center freq, and it'll spit out the decoded packets.
In what format? Who knows.
Based on your AIS decoding software, which is in turn based on the gr-pager code and the... | Python | src/python/smartnet2decode.py | bistromath/gr-smartnet | gpl-3.0 | 13,591 | 372 | codeparrot/github-code |
a527d3b8d3df3eec60f277fb807521561de6177b6b6b73e79f474f3c9931bb87 | /*
* Copyright (c) 2014 Washington State Department of Transportation
*
* 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 ver... | Java | src/main/java/gov/wa/wsdot/mobile/client/activities/trafficmap/expresslanes/SeattleExpressLanesView.java | chrxn/wsdot-mobile-app | gpl-3.0 | 1,634 | 55 | codeparrot/github-code |
f97df8a17313a9c14ee2bd5c7088346acb9e49b7cabf10c8e562be14d5605360 | /**
*
*/
package org.javahispano.javaleague.client.event;
import org.javahispano.javaleague.shared.domain.TacticUser;
import com.google.gwt.event.shared.GwtEvent;
/**
* @author adou
*
*/
public class UpdateTacticEvent extends GwtEvent<UpdateTacticEventHandler> {
public static Type<UpdateTacticEventHandler> T... | Java | src/org/javahispano/javaleague/client/event/UpdateTacticEvent.java | alfonsodou/javaLeagueBootstrap | gpl-3.0 | 721 | 34 | codeparrot/github-code |
8aeff429e34da2caafe5ed8761f3c0419dcd51fc6b5f652055c8cdaddd4c133f | /*
* HawkEye Redux
* Copyright (C) 2012-2013 Cubeville <http://www.cubeville.org> and contributors
*
* 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
* ... | Java | api/src/main/java/org/cubeville/hawkeye/config/ConfigurationNode.java | Cubeville/HawkEye-Redux | gpl-3.0 | 7,970 | 329 | codeparrot/github-code |
d12f1f010ff5112210aa608cf43cab13556326e670d49991b9a42d87d1efae92 | /**
* This file is part of Tales of Symphonia "Fix".
*
* Tales of Symphonia "Fix" 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... | C | src/parameter.h | Kaldaien/TSF | gpl-3.0 | 5,193 | 217 | codeparrot/github-code |
e2fec4c3ed7126e1e56317911f594ef9b7196205cd7644ec5a5a97b88c6e1b73 | <?php
/*
Copyright 2012 the app framework - slattman@gmail.com
This file is part of the app framework.
The app framework 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
... | PHP | app/app.php | slattman/app | gpl-3.0 | 4,152 | 167 | codeparrot/github-code |
3a48d156f31672923fe0e071bb74a02c72656b181e38f9e5af93e15fdf60f825 | /***************************************************************************
$Id: KVBase.cpp,v 1.57 2009/04/22 09:38:39 franklan Exp $
kvbase.cpp - description
-------------------
begin : Thu May 16 2002
copyright : (C) 2002 by J... | C++ | KVMultiDet/base/KVBase.cpp | jdfrankland/kaliveda | gpl-3.0 | 43,851 | 1,239 | codeparrot/github-code |
6041690de872880d3244dedf8b2aaff9165cac7d66aaf4d02bf6e0fd38c864eb | package it.unibas.lunatic.model.chase.chasede.operators.mainmemory;
import it.unibas.lunatic.Scenario;
import it.unibas.lunatic.model.chase.chasede.operators.IReplaceDatabase;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import speedy.model.algebra.operators.ITupleIterator;
impor... | Java | lunaticEngine/src/it/unibas/lunatic/model/chase/chasede/operators/mainmemory/MainMemoryReplaceDatabase.java | donatellosantoro/Llunatic | gpl-3.0 | 2,579 | 63 | codeparrot/github-code |
edc8831d1cdfaf10e68f2884e54e063b3e0febafec2de083e0737868528226e4 | #ifndef __MINER_H__
#define __MINER_H__
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include <sys/time.h>
#include <pthread.h>
#include <jansson.h>
#ifdef HAVE_LIBCURL
#include <curl/curl.h>
#else
typedef char CURL;
extern char *curly;
#define curl_easy_init(curl) (curly)
#define curl_easy_cleanup(cu... | C | miner.h | wiibox-group/gridseed-cgminer-3.7.2 | gpl-3.0 | 45,314 | 1,620 | codeparrot/github-code |
ecf5c564eb48fbae0c321c587e0bbed836279c3a822e3a4bdb76543946f0af9e | // @flow
import React from 'react';
import type { Trigger } from '../../Domain/Trigger';
import type { Maintenance } from '../../Domain/Maintenance';
import TriggerListItem from '../TriggerListItem/TriggerListItem';
import cn from './TriggerList.less';
type Props = {|
items: Array<Trigger>;
onChange?: (trigger... | JavaScript | src/Components/TriggerList/TriggerList.js | sashasushko/moira-front | gpl-3.0 | 1,197 | 32 | codeparrot/github-code |
4d2a6cf122f38f76b982e10a0bd634ad3138957f3ef98238b4cdee98860bbe4c | # coding: utf-8
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.mixins import UserPassesTestMixin
from django.views.generic import ListView
from django.views import View
from django.db.models import Q
import posgradmin.models as models
from posgradmin import authorization as auth
from... | Python | posgradmin/posgradmin/views_academico.py | sostenibilidad-unam/posgrado | gpl-3.0 | 17,166 | 463 | codeparrot/github-code |
c58bf936c5890a69f443926192bf030a8f190b2afcd319445eba12c29715d644 | #!/usr/bin/env ruby
#
require 'optparse'
module Roma
module Storage
end
Storage::autoload(:TCStorage,'roma/storage/tokyocabinet')
Storage::autoload(:DbmStorage,'roma/storage/dbm')
Storage::autoload(:SQLite3Storage,'roma/storage/sqlite3')
class KeyAccess
def initialize(argv)
options(argv)
... | Ruby | lib/roma/tools/key_access.rb | roma/roma | gpl-3.0 | 2,341 | 106 | codeparrot/github-code |
1db05c36c70c5594f85b68d891d239dcf107b6b9057cf29c5a4cc836af8fa8cb | // Copyright Alex Holehouse 2011
// Distributed under the terms of the GNU general public license - see COPYING.txt for more details
#include "sbml_confInput.h"
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <time.h>
#include <string>
#include <cstdlib>
#include <cstring>
#includ... | C++ | src/sbml_confInput.cpp | alexholehouse/SBMLIntegrator | gpl-3.0 | 47,810 | 1,174 | codeparrot/github-code |
0129d7905315842f413a67eedc893d057324116ff9fdc4e9be3527649ea104f0 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'src/ui/mainwindow.ui'
#
# Created: Fri Feb 15 16:08:54 2013
# by: PyQt4 UI code generator 4.9.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
exce... | Python | src/ui/mainwindow_ui.py | itarozzi/classerman | gpl-3.0 | 16,000 | 272 | codeparrot/github-code |
16eab80f886390cf266a054d1b22b112ed874689c09c8d4da6a4ca5e459fec09 | package com.autowp.canreader;
import android.content.Context;
import android.hardware.usb.UsbDevice;
import android.os.Build;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
/**
* ... | Java | app/src/main/java/com/autowp/canreader/UsbDeviceSpinnerAdapter.java | autowp/CANreader | gpl-3.0 | 2,360 | 74 | codeparrot/github-code |
91c1ca4c6a3b3ecc74432fb6e5567479d69eaba2e6ed3a58285ac07567b991b3 | /*
Copyright (C) 2009-2013 Bengt Martensson.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at
your option) any later version.
This program is distributed in th... | Java | src/main/java/org/harctoolbox/IrpMaster/Wave.java | bengtmartensson/IrpMaster | gpl-3.0 | 25,136 | 585 | codeparrot/github-code |
5554e0042a27d0436480dbcc59f521d09b7118dc7fb90a7decb3446420f3bbc8 | /****************************************************************************
** Meta object code from reading C++ file 'stackencadenamientos.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
**
** WARNING! All changes made in this file will be lost!
************************************************... | C++ | moc_stackencadenamientos.cpp | rudmanmrrod/mmcs | gpl-3.0 | 2,747 | 89 | codeparrot/github-code |
74cd66ca9683001c784bde169c452961b2978ff7f85d0e0e1a88a6ccd4a3aafe | # (void)walker hardware platform support
# Copyright (C) 2012-2013 David Holm <dholmster@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 you... | Python | voidwalker/framework/platform/cpu.py | dholm/voidwalker | gpl-3.0 | 3,778 | 137 | codeparrot/github-code |
cb80b00b7f6470c5201970e4bd48937b88b48c7a1644d582c968ec2ea61f4a92 | /*
* Copyright (c) 2018.
*
* This file is part of AvaIre.
*
* AvaIre 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.
*
* AvaI... | Java | src/main/java/com/avairebot/imagegen/colors/ranks/MountainRangeColors.java | avaire/orion | gpl-3.0 | 1,664 | 67 | codeparrot/github-code |
81407f2a8929b998d3b3df2b16cf2f0430cff0bc1bf7aa27748805221f913755 | package com.tiketal.overwatch.util;
import org.bukkit.Bukkit;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarStyle;
import org.bukkit.boss.BossBar;
import org.bukkit.entity.Player;
public class DisplayBar {
private BossBar bar;
public DisplayBar(String name, String color, String style) {
color = co... | Java | src/com/tiketal/overwatch/util/DisplayBar.java | Tiketal/Overwatch | gpl-3.0 | 1,427 | 68 | codeparrot/github-code |
bf6d355327a91592ffa1293c84da38e71aa08d49e38770b7b07ed9c7d55064b6 | /*
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "opal_config.h"
#include <stdlib.h>
#include <string.h>
#include "opal/constants.h"
... | C | Parametros/CosmoMC/prerrequisitos/openmpi-2.0.2/opal/mca/if/bsdx_ipv4/if_bsdx.c | ClaudioNahmad/Servicio-Social | gpl-3.0 | 4,063 | 147 | codeparrot/github-code |
40e12e48573a3b36c7f3dbe356e2f8d267ffa0dac4e68a78451eb1c25161bc33 | /*
* This file is part of the libsigrok project.
*
* Copyright (C) 2013, 2014 Matthias Heidbrink <m-sigrok@heidbrink.biz>
*
* 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 ... | C | src/hardware/gmc-mh-1x-2x/protocol.h | asanza/libsigrok | gpl-3.0 | 5,241 | 133 | codeparrot/github-code |
550d9afd6233cc072552d151ed38969b146e6addef225e93edf13aae8c3ac5be | package mapproject;
import static helpers.Artist.*;
import org.newdawn.slick.opengl.Texture;
/**
* Clase que representa una celda individual del mapa
*
* @author Alba Ríos
*/
public class Tile {
private float x, y, width, height;
private Texture texture;
/**
*
* @param x Coordenada x de... | Java | StarDroids/src/mapproject/Tile.java | demiurgosoft/star-droids | gpl-3.0 | 1,475 | 77 | codeparrot/github-code |
4f2dbe44223d7019cd43244056fa11679d8641a3fb251155c925f720c6386e34 | #pragma once
#include "TitleUnit.h"
class CTitleFile
{
public:
CTitleFile(void);
~CTitleFile(void);
static BOOL IsLineEnd(PBUF_READ pReadData);
static void StepOffset(PBUF_READ pReadData);
static BOOL ReadSubTitleByLine(PBUF_READ pReadData, PTITLE_UNIT pUnit);
static void StepSpaceChar(PBUF_READ pReadDa... | C | TimeM/TitleFile.h | BennyThink/TimeM | gpl-3.0 | 2,265 | 46 | codeparrot/github-code |
6dd727dc343f9176df0fde71efd17e87dffba433a479a552fb14cc7f4fa0bb40 | # Author: seedboy
# URL: https://github.com/seedboy
#
# This file is part of SickRage.
#
# SickRage 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 la... | Python | sickbeard/providers/iptorrents.py | bcorbet/SickRage | gpl-3.0 | 11,284 | 288 | codeparrot/github-code |
85ca531614fb63958dccd1650c9eba6b6f74044e7d9cfe85d840308737fa73c4 |
#include "vogl.h"
static long px = -1, py = -1, pxs = -1, pys = -1;
/*
* prefposition
*
* Specify a prefered position for a window that is
* under control of a window manager.
* Position is the location of the upper left corner.
* Should be called before ginit.
*/
void
prefposition(long int x1, long int x2, l... | C | vogl/src/pref.c | berndf/avg_q | gpl-3.0 | 1,149 | 67 | codeparrot/github-code |
7cdcd27abe5352b371e19f87f6449dffb94d576aeee8926b5471c2851b29744d | from collections import defaultdict
class Solution(object):
def minWindow(self, S, T):
"""
:type S: str
:type T: str
:rtype: str
"""
pre = defaultdict(list)
for i, c in enumerate(T, -1):
pre[c].append(i)
for val in pre.values():
... | Python | 727. Minimum Window Subsequence.py | wufangjie/leetcode | gpl-3.0 | 1,035 | 35 | codeparrot/github-code |
679f583b2294e5f1a41f5e296ff2d9bc08573025cb750cd97a7ed5e7cb182d00 | #include "missile.h"
#include "../../ObjManager.h"
#include "../../autogen/sprites.h"
#include "../../caret.h"
#include "../../common/misc.h"
#include "../../game.h"
#include "../../player.h"
#include "../../sound/SoundManager.h"
#include "../../trig.h"
#include "weapons.h"
#define STATE_WAIT_RECOIL_OVER 1
#define ST... | C++ | src/ai/weapons/missile.cpp | isage/nxengine-evo | gpl-3.0 | 8,306 | 316 | codeparrot/github-code |
3a4fd8179273f1a4d1a664c4576837c8d8e33ffc4c3b4f644611eaf3c036bc4b | /* Phaethon - A FLOSS resource explorer for BioWare's Aurora engine games
*
* Phaethon is the legal property of its developers, whose names
* can be found in the AUTHORS file distributed with this source
* distribution.
*
* Phaethon is free software; you can redistribute it and/or
* modify it under the terms of ... | C | src/aurora/locstring.h | xoreos/phaethon | gpl-3.0 | 3,658 | 121 | codeparrot/github-code |
e5c4c178a323617744e9cce70502cc2083b1f8aafbd1f453103fe25c770b7b08 | <?php defined('_JEXEC') or die('Restricted access'); // no direct access
//########## GET THE CSS NAME FOR SELECTED BULLET ##########//
if ($style == 3) $cssbullet = "bullet-trianglelight-jtmodule";
if ($style == 4) $cssbullet = "bullet-squarelight-jtmodule";
if ($style == 5) $cssbullet = "bullet-pluslight-j... | PHP | source/modules/mod_jomtube_categories/tmpl/default.php | plexicloud/Plexicloud-Pleximedia | gpl-3.0 | 3,243 | 71 | codeparrot/github-code |
fa2f75a99de1aaaf7d20ad35b8eeab1d4ceb07a233f07fc02f9f9cfd55f8b719 | // *****************************************************************************
// path3d.cpp Tao3D project
// *****************************************************************************
//
// File description:
//
// Representation of paths in 3D
//
//
//
//
/... | C++ | app/path3d.cpp | c3d/tao-3D | gpl-3.0 | 47,694 | 1,499 | codeparrot/github-code |
71c47b2235561449f330b2c4bffb50ca8cbf3b19fb82eff05e1530f7e4edfbd9 | <?php
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.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 Foundat... | PHP | htdocs/compta/ventilation/fournisseur/lignes.php | ttingchan/MerchanDolibarr | gpl-3.0 | 3,610 | 116 | codeparrot/github-code |
31bf5460ec68f39b4ac87d714b4645631ffc93b55a3bd171ec276ebc0a4d685a | package org.se.lab;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Date;
import javax.servlet.ServletException;
import j... | Java | web-applications/access-control/session-management/Servlet-SessionManagement-ViewState/src/main/java/org/se/lab/ControllerServlet.java | teiniker/teiniker-lectures-securedesign | gpl-3.0 | 6,040 | 187 | codeparrot/github-code |
92f29dd8087e82e74fffb0df36aa0e0593bfb7e92a9e27a8ad308b64af5e6aa4 | /****************************************************************************
* Copyright (C) 2010
* by Dimok
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any
* damages arising from the use of this software.
*
* Permission is ... | C | source/FTPOperations/FTPServerMenu.h | SuperrSonic/WiiXplorer-SS | gpl-3.0 | 1,882 | 68 | codeparrot/github-code |
53135a367f9f35166a044ef7aa255aaf258469602b08f5f5a8431cd2bd64416f | \hypertarget{classch_1_1innovazion_1_1arionide_1_1lang_1_1avr_1_1_relative_jump}{}\doxysection{ch.\+innovazion.\+arionide.\+lang.\+avr.\+Relative\+Jump Class Reference}
\label{classch_1_1innovazion_1_1arionide_1_1lang_1_1avr_1_1_relative_jump}\index{ch.innovazion.arionide.lang.avr.RelativeJump@{ch.innovazion.arionide.l... | TeX | doc/latex/classch_1_1innovazion_1_1arionide_1_1lang_1_1avr_1_1_relative_jump.tex | thedreamer979/Arionide | gpl-3.0 | 8,740 | 110 | codeparrot/github-code |
4a67040578026a90bb314e84fbd0d09d9cc47ed4ee808011f0934519b93a38dd | #include "Evolution.hh"
#include "P.hh"
#include <iostream>
#include <QCD/PdfParametrization.hh>
#include <QCD/ConfigFFbase.hh>
using namespace std;
using namespace Utility;
using namespace QCD;
using namespace Evolution;
using namespace polFrag;
Evo::Evo( Arguments& args,
const Flavor::HADRON& hadron ) throw( i... | C++ | polFrag/Evolution.cc | miyachi-yu/Mellin | gpl-3.0 | 1,402 | 60 | codeparrot/github-code |
cb45584ed4f7f82be57c6086a282dd19002d9a550b9fe36438e10219b9bf2329 | /*
SPDX-FileCopyrightText: 2009-2013 Graeme Gott <graeme@gottcode.org>
SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "hole.h"
#include <QBrush>
#include <QPen>
#include <QRadialGradient>
//-----------------------------------------------------------------------------
Hole::Hole(const QPoint& position, QGr... | C++ | src/hole.cpp | gottcode/peg-e | gpl-3.0 | 964 | 38 | codeparrot/github-code |
86cd83d03e9a9783ac86fc5e70ea8c1911cde4d9dc535560ffe5356d6369efa7 | <?php
/** @package verysimple::Phreeze */
/**
* import supporting libraries
*/
require_once ("verysimple/Phreeze/IRenderEngine.php");
require_once 'Twig/Autoloader.php';
Twig_Autoloader::register ();
/**
* TwigRenderEngine is an implementation of IRenderEngine that uses
* the Twig template engine to render vie... | PHP | portal/patient/fwk/libs/verysimple/Phreeze/TwigRenderEngine.php | georgetye/openemr | gpl-3.0 | 1,903 | 95 | codeparrot/github-code |
3b92f2af0cf350618139984c763837145195732c3470ae746488097f5c38112e | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* Copyright (C) 2012-2015 Marco Craveiro <marco.craveiro@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Fou... | C++ | projects/masd.dogen.generation.cpp/include/masd.dogen.generation.cpp/types/formatters/serialization/primitive_implementation_formatter.hpp | DomainDrivenConsulting/dogen | gpl-3.0 | 2,371 | 66 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.