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 |
|---|---|---|---|---|---|---|---|---|
9920919846af106236030cbe6739db385fe48ef31b3b398d8c46337a6d28048c | #include "simulation/Elements.h"
//#TPT-Directive ElementClass Element_LIGH PT_LIGH 87
Element_LIGH::Element_LIGH()
{
Identifier = "DEFAULT_PT_LIGH";
Name = "LIGH";
Colour = PIXPACK(0xFFFFC0);
MenuVisible = 1;
MenuSection = SC_EXPLOSIVE;
Enabled = 1;
Advection = 0.0f;
AirDrag = 0.00f * CFDS;
AirLoss = 0.90f;... | C++ | src/simulation/elements/LIGH.cpp | aunali1/The-Powder-Toy | gpl-3.0 | 9,585 | 371 | codeparrot/github-code |
bddb468f536c78decd43b0f391ef5cb2c5a3146c4361f945ac9cf6e0eeb5173e | #!/usr/bin/env python3
import argparse
import feedparser
import logging
import praw
import requests
from config import *
from bs4 import BeautifulSoup
from html2text import html2text
logging.basicConfig(format='%(asctime)s::%(levelname)s:%(message)s',
filename='redditbot.log',
... | Python | redditbot.py | dbxnr/redditbot | gpl-3.0 | 4,394 | 153 | codeparrot/github-code |
06f6d1a9f5704d3651c11e9069a72b783715d2f2a9ff6cf73918aade1159fa94 | tinymce.addI18n('zh',{
"Redo": "\u91cd\u505a",
"Undo": "\u64a4\u9500",
"Cut": "\u526a\u5207",
"Copy": "\u590d\u5236",
"Paste": "\u7c98\u8d34",
"Select all": "\u5168\u9009",
"New document": "\u65b0\u6587\u4ef6",
"Ok": "\u786e\u5b9a",
"Cancel": "\u53d6\u6d88",
"Visual aids": "\u7f51\u683c\u7ebf",
"Bold": "\u7c97\u4f53",
... | JavaScript | revolution_16/editeur/tinymce/langs/zh.js | npds/npds_dune | gpl-3.0 | 18,496 | 419 | codeparrot/github-code |
ea8ce2c71dd4aea1232f13af6b8b1b1a1be96e1a67ca75e6ce1f1521d47732c2 | package de.is24.infrastructure.gridfs.http.repos;
import de.is24.infrastructure.gridfs.http.category.LocalExecutionOnly;
import de.is24.infrastructure.gridfs.http.domain.Container;
import de.is24.infrastructure.gridfs.http.domain.FileInfo;
import de.is24.infrastructure.gridfs.http.domain.FolderInfo;
import de.is... | Java | src/test/java/de/is24/infrastructure/gridfs/http/repos/StaticRepositoryInfoProviderIT.java | tzolov/yum-repo-server | gpl-3.0 | 7,809 | 180 | codeparrot/github-code |
a7b2b3a262bad20d260f6d4186ab90d7b3e56e49bc2ff112a3f99cfc9837a560 | # GPL3
import bpy
import sverchok
node_classes = {}
def register_node_class(class_ref):
node_classes[class_ref.bl_idname] = class_ref
bpy.utils.register_class(class_ref)
def unregister_node_class(class_ref):
del node_classes[class_ref.bl_idname]
bpy.utils.unregister_class(class_ref)
def register_n... | Python | utils/__init__.py | elfnor/sverchok | gpl-3.0 | 2,778 | 92 | codeparrot/github-code |
30baca64bb04df75004c6b3912034027a9bafe24a389af4e1cdead4c5143af63 |
// Copyright Oliver Kowalke 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <utility>
#include <vector>
... | C++ | foreign/boost/libs/context/example/transfer.cpp | cppisfun/GameEngine | gpl-3.0 | 1,606 | 59 | codeparrot/github-code |
b1fca0cf896b18cf41b3ccf4854b998734b75574b6b0a6a230bdbc66d873059f | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2014-2018 OpenFOAM Foundation
\\... | C++ | applications/solvers/multiphase/interFoam/interMixingFoam/immiscibleIncompressibleThreePhaseMixture/immiscibleIncompressibleThreePhaseMixture.H | OpenFOAM/OpenFOAM-dev | gpl-3.0 | 2,881 | 93 | codeparrot/github-code |
abebc246b7c13527ea6865511280bc1355e8f6bf4d8c7569538b69bd3ba23831 | namespace Allors.Repository
{
using System;
using Allors.Repository.Attributes;
#region Allors
[Id("0E82B155-208C-41FD-B7D0-731EADBB5338")]
#endregion
public partial class Data : AccessControlledObject
{
#region inherited properties
public Permission[] DeniedPermissions { ... | C# | Domains/Base/Repository/Domain/Custom/Data.cs | Allors/allors | gpl-3.0 | 4,715 | 148 | codeparrot/github-code |
8c821c38584fbab7f69104ed7092fd4802d0cc4969c34b2ac10056d4b0ffd150 | /*
sim_megax8.c
Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
This file is part of simavr.
simavr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your o... | C | simavr/cores/sim_megax8.c | rqou/simavr-prlite | gpl-3.0 | 1,476 | 52 | codeparrot/github-code |
52d0c8fcd92bf725c12840094cf230b146e45f79e7534001399d12f35f16392e | #----------------------------------------------------------------------------
# Wunderboard Makefile Template written by Dan Albert
#----------------------------------------------------------------------------
#
# make all = Make software.
#
# make clean = Clean out built project files.
#
# make filename.s = Just compi... | Makefile | OSU Coursework/CS 162 - Intro to Programming II/Labs/Lab 4/Makefile | caperren/Archives | gpl-3.0 | 8,908 | 338 | codeparrot/github-code |
0a565a752c3b9f7620f6166991bf924852da84ceccc1128d2e6b63333ae25249 | package org.openbase.bco.dal.test.layer.unit;
/*
* #%L
* BCO DAL Test
* %%
* Copyright (C) 2014 - 2021 openbase.org
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either ve... | Java | test/src/test/java/org/openbase/bco/dal/test/layer/unit/LightSensorRemoteTest.java | DivineCooperation/bco.dal | gpl-3.0 | 2,867 | 70 | codeparrot/github-code |
78404587549327012e04440e2a8081f97ddd7535e95e48fc0106c875d882b10d | /****************************************************************************
**
** Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in... | C | src/plugins/android/androidcreatekeystorecertificate.h | Philips14171/qt-creator-opensource-src-4.2.1 | gpl-3.0 | 2,399 | 77 | codeparrot/github-code |
371d3bcbad7924de864612519e8203f3d1450048f17edd9e6ff66f87c8d2437e | /*
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 will be ... | C | psu-simulator/keypad/keypad.c | lmiori92/psu-avr | gpl-3.0 | 2,995 | 119 | codeparrot/github-code |
023684c8725586c6cd972d412c5ebb8e49725aa372f27650efe2e4663e8f900b | #region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the Licen... | C# | OpenRA.Mods.Common/Traits/Render/WithRepairOverlay.cs | jsoberg/ESU_OpenRA | gpl-3.0 | 2,757 | 85 | codeparrot/github-code |
05dc9532ad307a34b9157e1a1c6d76cd7a88b82c332faaee62658f5419e382c9 | /**
*
* Copyright (c) 2015-present, Total Location Test Paragraph.
* All rights reserved.
*
* This file is part of Where@. Where@ is free software:
* you can redistribute it and/or modify it under the terms of
* the GNU General Public License (GPL), either version 3
* of the License, or (at your option) any lat... | JavaScript | src/test/stores/SettingsStore.spec.js | whereat/whereat-web | gpl-3.0 | 4,089 | 145 | codeparrot/github-code |
9e911b6131686fbdd7e0512dcff460cad0df460cd06bb8b8b3957a0fc0462a06 | <?php
/**
* This script print Prescriptions.
*
* Copyright (C) 2015 Roberto Vasquez <robertogagliotta@gmail.com>
*
* LICENSE: 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 ... | PHP | controllers/C_Prescription.class.php | georgetye/openemr | gpl-3.0 | 33,656 | 906 | codeparrot/github-code |
cfc5d20ab8a1e70dfbcf0a5c4e88f3ab82ae19e327874e6212ad4b6b3e5f0f28 | #!/usr/bin/perl
use strict;
use warnings;
#############################################
# A program to replace common matches of words in the list and replaces them with their counterparts
# It also corrects any chemical formulae into the corresponding capitalised and subscripted froms
# Dan Ellis 2016
###############... | Perl | LaTeX_stuffs/chem_form.pl | wolfiex/CoolStuff | gpl-3.0 | 2,847 | 106 | codeparrot/github-code |
370de19369402ea4b7c627434d3c454910e1f44cf6717003e6d158522155aee0 | /*
===========================================================================
Copyright (c) 2010-2015 Darkstar Dev Teams
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of... | C | src/map/latent_effect.h | Arcscion/Shadowlyre | gpl-3.0 | 7,063 | 154 | codeparrot/github-code |
524be2103ed64c35a364edbf0dc7f19d20a48f1a0d92158831f77655d8b09c3f | /**
* Copyright (c) 2008-2009 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
/**
* @include GeoExt/data/LayerReader.js
*/
/** api: (define)
* module = GeoExt.data
* class = LayerSt... | JavaScript | openwis-metadataportal/openwis-portal/src/main/webapp/scripts/geoext/lib/GeoExt/data/LayerStore.js | OpenWIS/openwis | gpl-3.0 | 13,136 | 424 | codeparrot/github-code |
79032f7d80f0b2302105faf1ac8a03a75e50435e05d51439d9d7dfb630641680 | require 'puppet/property/list'
require 'puppet/provider/parsedfile'
module Puppet
Type.newtype(:mounttab) do
@doc = "Manages entries in the filesystem table. This is usually, but not
necessarily, used in conjunction with the mountpoint type to manage both the
current-running state of mounts (mountpoint) with the... | Ruby | manifests/puppet-modules/mount_providers/lib/puppet/type/mounttab.rb | fnoop/maverick | gpl-3.0 | 4,341 | 155 | codeparrot/github-code |
5cf952fa454f954a0151ac43f784778a3cf637696df398d68449d6ef7d540b79 | // Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections;
using System.Collections.Generic;
using Microsoft.CodeAnalysis.Text;
using Roslyn.Utilities;
... | C# | Src/Workspaces/Core/Formatting/TriviaEngine/TriviaList.cs | BlastarIndia/roslyn | gpl-3.0 | 2,374 | 93 | codeparrot/github-code |
0c94df48b2f40d74e18b10b6b442764cd5528f535be7ab210386b3963ca4ff53 | package eu.siacs.conversations.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.text.Editable;
import android.widget.Toast;
import java.util.Collections;
import eu.siacs.conversations.R;
import eu.siacs.conversations.entities.Acco... | Java | src/main/java/eu/siacs/conversations/ui/BlocklistActivity.java | SamWhited/Conversations | gpl-3.0 | 3,112 | 104 | codeparrot/github-code |
b731a06a065514b57feb66c60a9a200aebc99df3022a5aed350becbbc9122041 | #ifndef _DXF_ATTRACT_LIB
#define _DXF_ATTRACT_LIB
#include "dxf.h"
#include <math.h>
#include "shape2.h"
enum attract_type {
/* bit coded */
ATRC_NONE = 0, /* atrractor disabled */
ATRC_END = 1, /* endpoint */
ATRC_MID = 2, /* midpoint */
ATRC_CENTER = 4, /* center (elliptical arcs) */
ATRC_OCENTER = 8, /* o... | C | dxf_attract.h | zecruel/dxf_le | gpl-3.0 | 1,857 | 73 | codeparrot/github-code |
bd2dba1048dde579c360b7dcde8b06914a883318be03767433bd4d36b295ddb0 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="MKDOC " />
<title>QtLua library manual </title>
<link rel="stylesheet" href="mkdoc.cs... | HTML | doc/manual/html/Refobj_UserData_internal_class_members.html | lammermann/qtlua | gpl-3.0 | 4,214 | 32 | codeparrot/github-code |
96bdfc88579caa5c248122ae89dc25b4e086c8244e7a55ba2ccc0b6883287694 | /***************************************************************************
*
* W phase source inversion package
* -------------
*
* Main authors: Zacharie Duputel, Luis Rivera and Hiroo Kanamori
*
* (c) California Institute o... | C | src/make_resp_lookup_table.c | eost/wphase | gpl-3.0 | 21,870 | 611 | codeparrot/github-code |
c5093e5ec26d854d7d56fca5db553f72ddd2a65f6a2801a37db586402c552e69 | /*jshint esversion: 6 */
/*jshint indent: 2 */
/*
WebGL tile buffer object cache for leaflet,
storing all loaded tile buffers on current zoom level.
** Requires **
- Leaflet 0.7.7 or later
- L.TileBuffer
** Copyright & License **
(C) 2015-2016 Alexander Schoedon <schoedon@uni-potsdam.de>
Find a ... | JavaScript | lib/leaflet-tilebuffer/L.TileBufferCollection.js | mlistemann/magic-lens-accessibility-maps | gpl-3.0 | 6,854 | 258 | codeparrot/github-code |
c82eacdb7cf7932f855abea47ccfdc1e962748b32398d3983355e858626f58f1 | -----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Treasure Chest
-- @zone 161
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Baileys/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
re... | Lua | scripts/zones/Castle_Zvahl_Baileys/npcs/Treasure_Chest.lua | salamader/ffxi-a | gpl-3.0 | 3,199 | 108 | codeparrot/github-code |
981572d163bbf7980b8e79c4838973517381890e13c6905e5584be316dc58e67 | -----------------------------------
-- Area: Gusgen Mines (196)
-- Mob: Amphisbaena
-----------------------------------
-- require("scripts/zones/Gusgen_Mines/MobIDs");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
-----------------... | Lua | scripts/zones/Gusgen_Mines/mobs/Amphisbaena.lua | Fatalerror66/ffxi-a | gpl-3.0 | 804 | 43 | codeparrot/github-code |
8c1299b861356069a2f606961197cb4a1eeb05223689cac29ef3f93624920ed2 | /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
*
* This 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.
*
* Thi... | Java | vnc/rfb/CMsgHandler.java | 3203317/vnc | gpl-3.0 | 2,016 | 63 | codeparrot/github-code |
f5f23ae63985c194ba6724ff0eeb0b6da37c912ad42716c610054ff3aa0b5383 | #!/usr/bin/perl
#script to add a new item and to mark orders as received
#written 1/3/00 by chris@katipo.co.nz
# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published... | Perl | acqui/finishreceive.pl | ranginui/koha | gpl-3.0 | 5,942 | 158 | codeparrot/github-code |
d7c857feed78aeba03a562bd3a1567569c7151d0c7b18c2afcebe86c31dce1c6 | // Copyright (c) 2007-2011 Fredrik Mellbin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | C | Thirdparty/ffms2/src/core/audiosource.h | bjakja/Kainote | gpl-3.0 | 5,137 | 151 | codeparrot/github-code |
cfdf2d19939f6b697cfe6d18f7a7693110ad93ada9916ccf393839f5e593e571 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadat... | Python | lib/ansible/modules/cloud/vmware/vmware_host_ssl_facts.py | cchurch/ansible | gpl-3.0 | 4,711 | 149 | codeparrot/github-code |
5a9e0f14694548863177b1dbb0d52a0d55d31391e214c6e84d56fda1e73bcfad |
// Generated on 04/17/2013 22:30:02
using System;
using System.Collections.Generic;
using System.Linq;
using BiM.Protocol.Types;
using BiM.Core.IO;
using BiM.Core.Network;
namespace BiM.Protocol.Messages
{
public class PrismFightSwapRequestMessage : NetworkMessage
{
public const uint Id = 5901;
... | C# | Protocol/Messages/game/prism/PrismFightSwapRequestMessage.cs | Emudofus/BehaviorIsManaged | gpl-3.0 | 1,098 | 46 | codeparrot/github-code |
5dbf3b8179f8906facfe658a238c93e4d416d2d4d634daeaa83d6c8e364335e0 | // Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See http://alice-o2.web.cern.ch/license for full licensing information.
//
// In applying this license CERN does not ... | C | Detectors/ITSMFT/ITS/tracking/include/ITStracking/Vertexer.h | AllaMaevskaya/AliceO2 | gpl-3.0 | 5,082 | 200 | codeparrot/github-code |
4e260023a5c6e01ce282f1e163348111e794bdd48dda84c84106f4565cc5af17 | <?php namespace Helstern\Nomsky\Grammar\TestUtils;
use Helstern\Nomsky\Grammar\Transformations\EliminateOptionals\IncrementalNamingStrategy;
use Helstern\Nomsky\Grammar\Expressions\Expression;
use Helstern\Nomsky\Grammar\Expressions\Choice;
use Helstern\Nomsky\Grammar\Expressions\Concatenation;
use Helstern\Nomsky\Gra... | PHP | src/test/php/Grammar/TestUtils/ExpressionUtils.php | helstern/nomsky-lib | gpl-3.0 | 4,257 | 146 | codeparrot/github-code |
5d3a9d5c8c2d2f7ad8f3305ed33c09bf0c69d7d71db4a1a73c8e5ecebcdcdd96 | // Copyright (c) 2016 The SigViewer Development Team
// Licensed under the GNU General Public License (GPL)
// https://www.gnu.org/licenses/gpl
#include "gui_action_command.h"
#include "gui_action_factory.h"
#include "application_context_impl.h"
#include <QDebug>
namespace sigviewer
{
class GuiActionCommandExcepti... | C++ | src/gui/gui_action_command.cpp | cle1109/sigviewer | gpl-3.0 | 9,391 | 256 | codeparrot/github-code |
16b0afbe1006a230dcd644af51dad8bcc8b8dd4b534434ac65a5bcc5a6428321 | /***********************************************************************
This file is part of KEEL-software, the Data Mining tool for regression,
classification, clustering, pattern mining and so on.
Copyright (C) 2004-2010
F. Herrera (herrera@decsai.ugr.es)
L. S�nchez (luciano@uniovi.es)
J. A... | Java | src/keel/Algorithms/Instance_Selection/CHC/CHC.java | TheMurderer/keel | gpl-3.0 | 12,994 | 404 | codeparrot/github-code |
0f3ef5fcc896715d9145da4f45e662bd7e96343b3af49e648bfa8a79e17450b5 | /*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2017 Taras Kushnir <kushnirTV@gmail.com>
*
* Xpiks is distributed under the GNU General Public License, version 3.0
*
* This program is free software: you can redistrib... | C++ | src/xpiks-qt/QMLExtensions/cachingimageprovider.cpp | RostaTasha/xpiks | gpl-3.0 | 2,492 | 71 | codeparrot/github-code |
60452a18671f6c1ed8f376394eb67502f87d0a5386628781a47acc0a7707aa25 | """
Simple Excel addin, requires www.pyxll.com
"""
from pyxll import xl_func, get_config, xl_macro, get_active_object
from pyxll import xl_menu
import win32api
import webbrowser
import os
import win32com.client
from pycel.excelwrapper import ExcelComWrapper
from pycel.excelcompiler import ExcelCompiler
@xl_menu("Open... | Python | src/pycel/addin.py | gdementen/pycel | gpl-3.0 | 1,779 | 51 | codeparrot/github-code |
bf1c9bc5273470cfd6574c76fd7d656945d5720bc43dfcd73a8b2fbe0d5428f3 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | OpenQBMM - www.openqbmm.org
\\/ M anipulation |
------------------------... | C++ | src/quadratureMethods/PDFTransportModels/velocityPDFTransportModel/velocityPDFTransportModelI.H | OpenQBMM/OpenQBMM-dev | gpl-3.0 | 1,986 | 51 | codeparrot/github-code |
1c84f58e5de4c18b36e3a100624477a88c6bfbda14c0038035e4380a71b28523 | /*
This file is part of FatCRM, a desktop application for SugarCRM written by KDAB.
Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
Authors: David Faure <david.faure@kdab.com>
Michel Boyer de la Giroday <michel.giroday@kdab.com>
Kevin Krammer <kevin.kram... | C++ | resources/sugarcrm/createentryjob.cpp | Acidburn0zzz/FatCRM | gpl-3.0 | 5,057 | 174 | codeparrot/github-code |
b9a77ef850520c67dc4f501aef5a933f50433c272c9e0d86d7fafeeed89f2c2d | """ This module exposes the BaseClient class,
which serves as base for InnerRPCClient and TransferClient.
"""
__RCSID__ = "$Id$"
import time
import thread
import DIRAC
from DIRAC.Core.DISET.private.Protocols import gProtocolDict
from DIRAC.FrameworkSystem.Client.Logger import gLogger
from DIRAC.Core.Utilities imp... | Python | Core/DISET/private/BaseClient.py | Andrew-McNab-UK/DIRAC | gpl-3.0 | 26,577 | 635 | codeparrot/github-code |
e8b35898c2b096b8d76a51c92511608b468c3d2ff400697612cfdfe5322ef6d9 | /*
* All Sigmah code is released under the GNU General Public License v3
* See COPYRIGHT.txt and LICENSE.txt.
*/
package org.sigmah.shared.dto;
import java.util.List;
import org.sigmah.shared.dto.layout.LayoutDTO;
import com.extjs.gxt.ui.client.data.BaseModelData;
import com.google.gwt.user.client.ui... | Java | sigmah/src/main/java/org/sigmah/shared/dto/PhaseModelDTO.java | spMohanty/sigmah_svn_to_git_migration_test | gpl-3.0 | 3,344 | 141 | codeparrot/github-code |
c79346c306d8efeb755715c7f02787fd3218f92eef5fe973820c26b64de85058 | package es.uvigo.esei.daa.rest;
// JAX-RS => Java API for RESTful Services
import java.sql.Date;
import javax.ws.rs.DELETE;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import... | Java | src/main/java/es/uvigo/esei/daa/rest/Movies.java | mrjato/DAAEkerMehdi | gpl-3.0 | 3,692 | 130 | codeparrot/github-code |
6f5485e1501c337b05654317cca29e35c4d0b710d7cb70bb3c9d71ef9cbec646 | //===- LowerMemIntrinsics.cpp ----------------------------------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp | montimaj/ShaktiT_LLVM | gpl-3.0 | 10,304 | 239 | codeparrot/github-code |
a1e3f237c02a10a81b5ecb2fc25ccf178f17f03fedaac59763ad7e90d274c5e6 | /*
Free Download Manager Copyright (c) 2003-2014 FreeDownloadManager.ORG
*/
#include "stdafx.h"
#include "Web Interface.h"
#include "Web InterfaceDlg.h"
#include <winsock.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BEGIN_MESSAGE_MAP(CWebInterfac... | C++ | Web Interface/Web Interface.cpp | DragonZX/fdm | gpl-3.0 | 1,357 | 80 | codeparrot/github-code |
e68513cce2343e2eb9d28e083f51ceea449a0e5a1be9b954bbd2f03da5640343 | package li.jesse.datastructure.list.linkedlist;
import java.util.LinkedList;
public class LinkedListAsStack
{
private LinkedList linkedList = new LinkedList();
public void push(Object o)
{
linkedList.addFirst(o);
}
public void pop()
{
linkedList.removeFirst();
}
publ... | Java | algorithms-primer/src/main/java/li/jesse/datastructure/list/linkedlist/LinkedListAsStack.java | jesselix/zz-algorithms | gpl-3.0 | 564 | 33 | codeparrot/github-code |
d20263fdc1a333d672c44c5c6c76173a1f1632ec118b5f95785cde751b5e6887 | /*
This file is part of darktable,
copyright (c) 2009--2013 johannes hanika.
copyright (c) 2013 Ulrich Pegelow.
darktable 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 o... | C | src/iop/colormapping.c | michleb/darktable | gpl-3.0 | 41,610 | 1,180 | codeparrot/github-code |
14f7d063c1ae6b093702e65f7de464c26da250078ad059259e64e719b77cdd3a | from couchpotato import get_session
from couchpotato.api import addApiView
from couchpotato.core.event import addEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.request import jsonified, getParams
from couchpotato.core.helpers.variable import mergeDicts, md5, getExt
from couc... | Python | couchpotato/core/plugins/quality/main.py | jayme-github/CouchPotatoServer | gpl-3.0 | 8,674 | 217 | codeparrot/github-code |
218c0e1e219485e9d955984603bd0aa7ee73385c33378f1353ac60b9c6623a01 | /*
* Copyright (C) 2006 Cold Spring Harbor Laboratory
* Authors: Andrew D. Smith, Pavel Sumazin and Michael Q. Zhang
*
* This file is part of CREAD.
*
* CREAD 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 Founda... | C++ | src/common/MotifSite.hpp | dnbuckley/cread_in_progress | gpl-3.0 | 2,644 | 86 | codeparrot/github-code |
f3f2720f70fd2f426ab3dc744173131bb99c03174b29cfa1b08a1ed326fb3408 | -----------------------------------
-- Area: Selbina
-- NPC: Gabwaleid
-- Involved in Quest: Riding on the Clouds
-- @pos -17 -7 11 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scrip... | Lua | scripts/zones/zones/Selbina/npcs/Gabwaleid.lua | hooksta4/darkstar | gpl-3.0 | 1,454 | 55 | codeparrot/github-code |
79a0da9176c7ec4b2387f538513eae6bbcd7731954e02b538aa772ff087b86ad | <HTML>
<HEAD><TITLE>PanelFrame</TITLE></HEAD>
<BODY BGCOLOR=white>
<DL><DT><I><A HREF="#descr">NAME</A></I></DT>
<DD><B>PanelFrame</B>
- Frame with a boxed title area
</DD></DL>
<DL>
<DT><I>CREATION</I></DT>
<DD><A HREF="#descr"><B>PanelFrame</B></A> <I>pathName</I> ?<I>option value...</I>?</DD>
</DL>
<DL>
... | HTML | win32/lib/BWidget-1.8.0/BWman/PanelFrame.html | kantengri/simbicon | gpl-3.0 | 5,133 | 154 | codeparrot/github-code |
0faca098d367572269bfbafb95ef67bd50e706c02001ce34ee89e8599e862832 | /*
* 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.
*
* Redis... | C | source_files/ISA100/nlme.h | TheSkorm/ISA100.11a-Field-Device | gpl-3.0 | 6,817 | 208 | codeparrot/github-code |
22a3bfbcf801e9d16975d1eff89808d817f45f41cab33f3c69f9569cfd84891e | /*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at... | Java | forestry_common/arboriculture/forestry/arboriculture/genetics/AlleleLeafEffectNone.java | ForestryMC/ForestryLegacy | gpl-3.0 | 1,131 | 39 | codeparrot/github-code |
0b3ef9c46ea75050d357a87e8f1240e47905cdfa91e1ef0d26bf63725c919ea2 | //===-- DNBArchImplI386.h ---------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C | external/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.h | s20121035/rk3288_android5.1_repo | gpl-3.0 | 8,279 | 244 | codeparrot/github-code |
299e86b7d355a8b69977ad1e1e17165a634df1248d75918483347b5df7a1f500 |
#!/usr/bin/env ruby
# encoding: utf-8
# ODDB::Updater-- oddb.org -- 16.04.2013 -- yasaka@ywesee.com
# ODDB::Updater-- oddb.org -- 10.02.2012 -- mhatakeyama@ywesee.com
# ODDB::Updater-- oddb.org -- 12.01.2012 -- zdavatz@ywesee.com
# ODDB::Updater-- oddb.org -- 19.02.2003 -- hwyss@ywesee.com
require 'plugin/atc_less'
r... | Ruby | src/util/updater.rb | zdavatz/oddb.org | gpl-3.0 | 18,676 | 558 | codeparrot/github-code |
08d4e7f77bc78d627709fcaaa26f8b75dab221726ed34a2efaab4523cc5d3ac0 | /*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015-2017 Alberto Passalacqua
\\/ M anipulation |
--------... | C++ | applications/solvers/multiphase/twoPhaseSystem/phaseModels/polydispersePhaseModel/coalescenceEfficiencyKernels/PrinceAndBlanch/PrinceAndBlanchEfficiency.H | OpenQBMM/OpenQBMM-dev | gpl-3.0 | 4,462 | 159 | codeparrot/github-code |
9f521affa21d0fe250fc05d3f2dcaac9c875f2560b6c5ec300fd2e3565f26edd | namespace ProteoformSuiteGUI
{
partial class ExperimentTheoreticalComparison
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/... | C# | ProteoformSuiteGUI/ExperimentTheoreticalComparison.Designer.cs | acesnik/proteoform-suite | gpl-3.0 | 48,565 | 896 | codeparrot/github-code |
114991aea132bc939d6a3031e41d305873fd75bfc194147406f03115543155eb | /****************************************************************************
**
** Jreen
**
** Copyright © 2012 Ruslan Nigmatullin <euroelessar@yandex.ru>
**
*****************************************************************************
**
** $JREEN_BEGIN_LICENSE$
** Jreen is free software: you can redistribute it and/... | C++ | src/pgpencrypted.cpp | euroelessar/jreen | gpl-3.0 | 1,514 | 57 | codeparrot/github-code |
380b974d67c31047bfde688b7a7b7496ae60fd8c713e133e820f11b89ccbad5f | from solver_base import *
from copy import copy
class IntegratedRateControlSolver(SolverBase):
"""Class for estimating rates based on the degree of rate control
screening method {citation after published}"""
def __init__(self,reaction_model=None):
SolverBase.__init__(self,reaction_model)
v... | Python | catmap/solvers/integrated_rate_control_solver.py | montoyjh/catmap | gpl-3.0 | 2,678 | 71 | codeparrot/github-code |
20be079339b0b4b9f62f00d9643105c3bf93b31bf7f916b0455c06520d0459c6 | # -*- coding: utf-8 -*-
"""
vcs.backends.git.repository
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Git repository implementation.
:created_on: Apr 8, 2010
:copyright: (c) 2010-2011 by Marcin Kuzminski, Lukasz Balcerzak.
"""
import os
import re
import time
import urllib
import urllib2
import logging
import posix... | Python | kallithea/lib/vcs/backends/git/repository.py | zhumengyuan/kallithea | gpl-3.0 | 25,623 | 747 | codeparrot/github-code |
99a26c97383ddcfd0f0c769514892c8fd253333d73bb1a88078eaf0c2f36e2b7 | package edu.stanford.nlp.mt.metrics;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
import edu.stanford.nlp.mt.util.IString;
/**
* Factory for sentence-level scoring metrics.
*
* TODO(spenceg) Make the string specifications static final string ... | Java | src/edu/stanford/nlp/mt/metrics/SentenceLevelMetricFactory.java | Andy-Peng/phrasal | gpl-3.0 | 10,987 | 301 | codeparrot/github-code |
102f9a26b53d06e9b66d9d60b43ad3b6c2fa3da68235c687b63f720c26d2ab90 | /*
* eID Identity Provider Project.
* Copyright (C) 2010-2012 FedICT.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version
* 3.0 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it wi... | Java | eid-idp-webapp/src/main/java/be/fedict/eid/idp/webapp/SessionCleanupPhaseListener.java | charwliu/eid-idp | gpl-3.0 | 2,146 | 74 | codeparrot/github-code |
b808aef75b2139b4f28c94269194be33f887c472d0a6cb90819cbddebe626045 | /*
* Copyright 2002-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Java | spring-webmvc/src/main/java/org/springframework/web/servlet/config/ViewControllerBeanDefinitionParser.java | kingtang/spring-learn | gpl-3.0 | 3,805 | 91 | codeparrot/github-code |
8d43abcf80f0ebcfa5aaa5231bf233c135bcbbf26d258bf0872dd4a326480ff6 | /*!
* Bootstrap v3.1.1 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if ("undefined" == typeof jQuery) {
throw new Error( "Bootstrap's JavaScript requires jQuery" );
} + function(a) {
"use strict";
function b() ... | JavaScript | js/bootstrap.js | Codeinwp/zerif-lite | gpl-3.0 | 38,431 | 938 | codeparrot/github-code |
2326470c4206f2ecda37782af120ef6f268501cf0029e529fd2a412f5c8965f7 | /*
* Copyright 2011-2013 Blender Foundation
*
* 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 applicable law or ag... | C | win64-vc/2.78/Python/bin/2.78/scripts/addons/cycles/source/kernel/kernel_textures.h | Microvellum/Fluid-Designer | gpl-3.0 | 9,794 | 199 | codeparrot/github-code |
50981d870806b514c7852e4b5f8469656324e48d5c04b740162bf3fb4802b00d | // ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file GUI/coregui/Models/GroupItem.cpp
//! @brief Implements class GroupItem
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General P... | C++ | GUI/coregui/Models/GroupItem.cpp | waltervh/BornAgain | gpl-3.0 | 2,607 | 90 | codeparrot/github-code |
59ddd1efae9ab909159370bce3758ab2a13463a0d4022aeb37531522f16ce6d0 | <?php
namespace Busybee\Core\SecurityBundle\Model;
use Busybee\Core\SecurityBundle\Entity\User;
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
class GrabUser
{
/**
* @var User
*/
private $user;
/**
* GrabUser constructor.
*
* @param Container $container
*/
public function... | PHP | src/Busybee/Core/SecurityBundle/Model/GrabUser.php | crayner/busybee-core | gpl-3.0 | 635 | 35 | codeparrot/github-code |
b6706a57026852418372f682ee41938cfe884d32367855bb5ccb6aca3854c8a6 | import _ from 'lodash'
export const ADD = 'LIST_ADD'
export const UPDATE = 'LIST_UPDATE'
export const REMOVE = 'LIST_REMOVE'
export const RECEIVE = 'LIST_RECEIVE'
const defaultState = {
data: [],
byId: {},
indexOf: {},
}
export default function reduce(state = defaultState, action) {
swi... | JavaScript | mitmproxy/web/src/js/ducks/utils/list.js | x2Ident/x2Ident_test | gpl-3.0 | 2,390 | 106 | codeparrot/github-code |
22432db2bb6d4024d9c7b5a5381fc62671d9aed0566f13d559913b5b5824c686 | /* This file is part of HSPlasma.
*
* HSPlasma 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.
*
* HSPlasma is distributed in th... | C | core/Stream/pfSizedStream.h | NadnerbD/libhsplasma | gpl-3.0 | 1,640 | 47 | codeparrot/github-code |
9feb00386ad4077955bb8d261dc21fed6d953b3b766c17e93d84f4505e911161 | /***************************************************************************
File : Plot.cpp
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 by Ion Vasilief, Tilman Hoener zu
Siederdissen
Email (use ... | C++ | MantidPlot/src/Plot.cpp | mganeva/mantid | gpl-3.0 | 29,950 | 929 | codeparrot/github-code |
b95f74aa3f08b5512dd1006ceb310b8fdac4bfb5e1048f76cf2b4aae46678493 | #include "coreinit.h"
#include "coreinit_time.h"
#include "coreinit_systeminfo.h"
#include <common/platform_time.h>
#include "decaf_config.h"
#include "libcpu/cpu.h"
namespace coreinit
{
static std::chrono::time_point<std::chrono::system_clock>
sEpochTime;
static std::chrono::time_point<std::chrono::system_clock>
sB... | C++ | src/libdecaf/src/modules/coreinit/coreinit_time.cpp | petmac/decaf-emu | gpl-3.0 | 4,794 | 198 | codeparrot/github-code |
f875268e8f28d5439dd620a7796d76d15b3d01e219d6f6b639afc3813ee16cef | package org.thoughtcrime.securesms.testutil;
import org.signal.client.internal.Native;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeNoException;
public final class LibSignalLibraryUtil {
/**
* Attempts to initialize the LibSignal Native... | Java | app/src/test/java/org/thoughtcrime/securesms/testutil/LibSignalLibraryUtil.java | cascheberg/Signal-Android | gpl-3.0 | 1,435 | 43 | codeparrot/github-code |
7ddd029b159cb4a10ee36fb89399b10cd23a33f506caa61775c4317f3d144329 | /**
* This file is part of ORB-SLAM2.
*
* Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza)
* For more information see <https://github.com/raulmur/ORB_SLAM2>
*
* ORB-SLAM2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Publ... | C | ORB_SLAM2_Android/jni/ORB_SLAM2/include/KeyFrame.h | FangGet/ORB_SLAM2_Android | gpl-3.0 | 6,884 | 239 | codeparrot/github-code |
986db843992915ec2c821f9cb9fc629c4f21509525395bf77fbb21f1847e67c0 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class PlatformController : RaycastController
{
public LayerMask passengerMask;
public Vector3[] localWaypoints;
Vector3[] globalWaypoints;
public float speed;
public bool cyclic;
public float waitTime;
... | C# | DefenseAlone/Assets/Scripts/PlatformController.cs | kuzditomi/DefenseAlone | gpl-3.0 | 7,698 | 224 | codeparrot/github-code |
93aba2831309cb945dee2565ac77324aaa21e3f0a630f321bccf86132b1b7568 | /*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2019 Cppcheck 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 License, or
* (at ... | C++ | tools/dmake.cpp | bartlomiejgrzeskowiak/cppcheck | gpl-3.0 | 21,670 | 507 | codeparrot/github-code |
31b4a3f432a3c151bdd2e45598ec0d37fa08a869599308ee168691d9c6906873 | // ALIADA - Automatic publication under Linked Data paradigm
// of library and museum data
//
// Component: aliada-user-interface
// Responsible: ALIADA Consortium
package eu.aliada.gui.action;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sq... | Java | aliada/aliada-user-interface/src/main/java/eu/aliada/gui/action/ProfilesAction.java | atcult/aliada-tool | gpl-3.0 | 20,004 | 494 | codeparrot/github-code |
666dcefd6a303013edc44a4c59a008ab33fe422dce0b00b57ebac407a09b88b1 | /* supp.h miscellaneous support routines */
/* (c) in 2008-2010 by Frank Wille */
#ifndef SUPP_H
#define SUPP_H
struct node {
struct node *next;
struct node *pred;
};
struct list {
struct node *first;
struct node *dummy;
struct node *last;
};
void initlist(struct list *);
void addtail(struct list *,struct... | C | atari_st/build-tools/vbcc/src/vasm/supp.h | jfdelnero/HXCFE_Amiga_file_selector | gpl-3.0 | 1,292 | 56 | codeparrot/github-code |
85c1f2403f7b5e3036c625edab9bd42f990ba686cd1ba101ce89fe71052ebfc4 | /**
* Copyright (C) 2010-2012 Regis Montoya (aka r3gis - www.r3gis.fr)
* This file is part of CSipSimple.
*
* CSipSimple 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... | Java | phone/src/com/voiceblue/phone/utils/RewriterPlugin.java | ther12k/android-client | gpl-3.0 | 5,401 | 148 | codeparrot/github-code |
2d2be6a4acc0409c90918cc6e7c6aa308d605538ecbfc2448402fcd2e6542578 | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
# For debugging
NPLUS = True
class FakePlugin(object):
def log(self, text):
print text
from urllib import urlopen
try:
from pynicotine.pluginsystem import BasePlugin
except ImportError:
NPLUS = False
print "It seems this plugin is not loaded from ... | Python | plugins/allmusic-url2search/__init__.py | gfarmerfr/nicotine-plus | gpl-3.0 | 2,542 | 80 | codeparrot/github-code |
6789021cc82d2997d19c474db007f25715bf63e12c569a4700e3dc4f78dc5d6f | //
// DO NOT REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
//
// @Authors:
// christiank, timop
//
// Copyright 2004-2019 by OM International
//
// This file is part of OpenPetra.org.
//
// OpenPetra.org is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public Licens... | C# | csharp/ICT/Petra/Server/app/Core/SystemDefaults.cs | tpokorra/openpetra | gpl-3.0 | 23,306 | 509 | codeparrot/github-code |
2b0a927b92baea61a51854ad8fb6f35ed9a1cb8de1abc35276aa4c55b9773b05 | <?php
require_once GTFWConfiguration::GetValue('application','docroot').'module/pak/business/'.GTFWConfiguration::GetValue('application',array('db_conn',0,'db_type')).'/pak.class.php';
class ViewInputPak extends HtmlResponse {
function TemplateModule() {
$this->SetTemplateBasedir(GTFWConfiguration::... | PHP | malra/bo/module/pak/response/ViewInputPak.html.class.php | 4n6g4/gtsdm | gpl-3.0 | 3,828 | 78 | codeparrot/github-code |
60563fb9b8fef5afbdeb37adfb11ee18c6a3c79771f29ffe49988257a514bdf2 | # frozen_string_literal: true
class MigrateReadings < ActiveRecord::Migration[4.2]
def up
remove_orphaned_sensor_records
add_column :rooms, :room_type_id, :integer
add_foreign_key :rooms, :room_types
migrate_sensor_records
rename_table :readings, :old_readings
create_table :readings do |t|
... | Ruby | db/migrate/20170310020006_migrate_readings.rb | WhareHauora/wharehauora-server | gpl-3.0 | 3,135 | 111 | codeparrot/github-code |
d298d06a31d50b24e604792b539f60f187bf792fd90f55373ed22f8a4551ae45 | /*
* Michael Coughlin
* CS 1581 Nim
* Fall 2013
*/
#include <iostream>
#include <assert.h>
#include <stdlib.h>
using namespace std;
struct gameState {
int pile1;
int pile2;
};
enum player {human, computer};
int sizeOfPile(gameState state, int pile) {
if ( pile == 1 )
return state.pile1;
... | C++ | C++/Nim/nim.cpp | MichaelCoughlinAN/Odds-N-Ends | gpl-3.0 | 7,448 | 230 | codeparrot/github-code |
7ab3377be2d6d1b2262f894b2c8ec9b9f31761519857ad61bd87792cda471bbb | /*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | webrtc/voice_engine/channel_manager.cc | golden1232004/webrtc_new | gpl-3.0 | 4,926 | 171 | codeparrot/github-code |
950a0c25d267ae50600243d54d562b905c712b44e3852eb55fee24e02e4f8e38 | /*
* This file is part of EasyRPG Player.
*
* EasyRPG Player 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.
*
* EasyRPG Player... | C++ | src/background.cpp | scurest/Player | gpl-3.0 | 4,103 | 140 | codeparrot/github-code |
7a5904aff491966ac73fdcd162e53f178380b488c8d7e9d246593e7e7f6558d1 | # This file is part of RawTherapee.
#
# Copyright (C) 2018 Flössie <floessie.mail@gmail.com>
#
# RawTherapee 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 optio... | CMake | cmake/modules/FindUnalignedMalloc.cmake | heckflosse/RawTherapee | gpl-3.0 | 1,421 | 50 | codeparrot/github-code |
36bf641cff1a71d3c18e0ffa23e7b1990e96f711946760df59b0b00c76100dd2 | [-*Smarty*-]
[-include file="$TPL_NAME/views/header.html"-]
[-php-]require_once($GLOBALS['srcdir']."/formdata.inc.php");[-/php-]
[-* we want to include our stylesheet for this view*-]
<link rel="stylesheet" href="[-$TPL_STYLE_PATH-]/ajax_search.css" type="text/css">
<script type="text/javascript" src="[-php-] echo $G... | HTML | interface/main/calendar/modules/PostCalendar/pntemplates/default/user/ajax_search.html | kevmccor/openemr | gpl-3.0 | 8,057 | 208 | codeparrot/github-code |
51b709643e2fd93fa3a7a1d0895460ea114bdcdbac2d66bd826e8b9980256566 | /*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ... | Java | src/com/watabou/mofoodpd/items/potions/PotionOfParalyticGas.java | sloanr333/opd-mofood | gpl-3.0 | 1,746 | 57 | codeparrot/github-code |
07002ddc90ffae1a070d43562be5ca69e9a87b4eacc0ec817748287bc52331af | package org.whispersystems.signalservice.api.util;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import org.whispersystems.libsignal.util.guava.Optional;
import org.whispersystems.signalservice.api.InvalidMessageStructureException;
import org.whispersystems.signalse... | Java | service/src/main/java/org/whispersystems/signalservice/api/util/AttachmentPointerUtil.java | Turasa/libsignal-service-java | gpl-3.0 | 5,390 | 97 | codeparrot/github-code |
2bc64f78889cd32754040ba9fc84f60c0ba74b029e705ef0596bc8bca49499ee | /*
* Copyright (C) 2007-2022 Crafter Software Corporation. 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 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope tha... | JavaScript | static-assets/themes/cstudioTheme/js/cstudio-global.js | rart/studio-ui | gpl-3.0 | 4,466 | 133 | codeparrot/github-code |
5c920af0c22902f46943a890e1ffd5e8b79505bbddcc2cdf8d489e08281dc609 | /*
falab - free algorithm lab
Copyright (C) 2012 luolongzhi 罗龙智 (Chengdu, China)
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 ... | C | src/project/falabaac/libfalabaac/fa_psychomodel2.c | jassam/falab | gpl-3.0 | 30,609 | 1,151 | codeparrot/github-code |
b934118f3540b7ae73c284fc2dfb955df0ea5428497ac98400163b1989915801 | /*
*
* Copyright 2008,2009 Newcastle University
*
* This file is part of Workcraft.
*
* Workcraft is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... | Java | WorkcraftCore/src/main/java/org/workcraft/dom/visual/TransformHelper.java | tuura/workcraft-2.2 | gpl-3.0 | 5,467 | 150 | codeparrot/github-code |
ef9c33d43b6bc3a7093498f00842756ad8fbb6739db7c9c269b0b3b2a6790963 | package org.qii.weiciyuan.othercomponent.notification;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import org.qii.weiciyuan.R;
import org.qii.weiciyuan.bean.*;
import org.qii.weiciyuan.support.utils.NotificationUtility;
impo... | Java | src/org/qii/weiciyuan/othercomponent/notification/JBBigTextNotification.java | makings/mst | gpl-3.0 | 3,344 | 94 | codeparrot/github-code |
f477d96bba68fd905ef5c6538d554df3356d59571a0cf2e3098d5eff3ba072f5 | #region Copyright & License Information
/*
* Copyright 2007-2019 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the Licen... | C# | OpenRA.Mods.Cnc/Traits/SupportPowers/IonCannonPower.cs | WolfGaming/OpenRA | gpl-3.0 | 3,115 | 104 | codeparrot/github-code |
0770f339809b101aa981a68910b9fbdaa4a8b97517196b12862a8917d95a1e09 | /*
* Wire
* Copyright (C) 2016 Wire Swiss GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... | Java | zmessaging/src/main/scala/com/waz/bitmap/video/TextureRenderer.java | wireapp/wire-android-sync-engine | gpl-3.0 | 9,762 | 217 | codeparrot/github-code |
4fb744f9826b98b4765865d46e5c528f0700c8a6b0baf6b77d01a4c22c2113ba | /* getusershell.c -- Return names of valid user shells.
Copyright (C) 1991, 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free
Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free So... | C | lib/getusershell.c | ystk/debian-inetutils | gpl-3.0 | 4,197 | 174 | codeparrot/github-code |
4023682a66d4c6b9c993c890c7a08604f9b34a48271b1824849fbfc09df28d1a | /*
This file is part of LilyPond, the GNU music typesetter.
Copyright (C) 2005--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond 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 th... | C++ | lily/tuplet-number.cc | thSoft/lilypond-hu | gpl-3.0 | 16,406 | 501 | codeparrot/github-code |
8f408c95beb9dfad032341aee20596124a4e0c815733603ca63b56c4c94530e4 | /* -*- c++ -*-
* Copyright (C) 2007-2016 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; version 3 of the
* License, or any later ve... | C++ | src/cc/Hypertable/Master/OperationTimedBarrier.cc | hypertable/hypertable | gpl-3.0 | 2,747 | 84 | codeparrot/github-code |
5912145bcba390baf31ac6fadcc95e50465165e0449e6d7027b52ff2ab7c0086 | package net.minecraft.inventory;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.util.Resour... | Java | eclipse/Clean/src/main/java/net/minecraft/inventory/Slot.java | Scrik/Cauldron-1 | gpl-3.0 | 4,589 | 159 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.