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 |
|---|---|---|---|---|---|---|---|---|
1d0c086a67e08f704ce9905832ab1959de4b857687cfdebeecec21bbe9dfc74e | /*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyr... | Java | biojava3-sequencing/src/test/java/org/biojava3/sequencing/io/fastq/FastqBuilderTest.java | kumar-physics/BioJava | lgpl-2.1 | 11,937 | 371 | codeparrot/github-code |
4b8b1be05171f435c86db1d5bb12611c0f2139431123c2a283b0ed6c8737a77f | /*
This file is part of libmicrohttpd
Copyright (C) 2014-2016 Karlson2k (Evgeny Grin)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your... | C | src/microhttpd/mhd_compat.c | Karlson2k/libmicrohttpd | lgpl-2.1 | 2,861 | 119 | codeparrot/github-code |
461a83bf052bc3dbfe171d76250b9af5c12fb87f8034c93f21548bdec31989f0 | /*
* Gestalt
*
* Copyright (C) 2012 Patrick Kochlik + Dennis Paul
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... | Java | src/gestalt/context/Display.java | TheProduct/Gestalt | lgpl-2.1 | 1,539 | 58 | codeparrot/github-code |
d329e5b57213012cec3cb040f56c878b22a334c2a35f3056de7427a21f9c8acc | /*
* eXist-db Open Source Native XML Database
* Copyright (C) 2001 The eXist-db Authors
*
* info@exist-db.org
* http://www.exist-db.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foun... | Java | exist-core/src/main/java/org/exist/util/serializer/SerializerObjectFactory.java | lcahlander/exist | lgpl-2.1 | 1,858 | 54 | codeparrot/github-code |
239425c123643a80e5452382f4566d3f3b0f09ed66e7935eb830e4d4722c50ad | /*******************************************************************************
* Copyright (c) 2011 Matthias-M. Christen, University of Basel, Switzerland.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which acco... | Java | src/ch/unibas/cs/hpwc/patus/compiler/Compile.java | bcosenza/patus | lgpl-2.1 | 3,094 | 116 | codeparrot/github-code |
d84e1f5f03e095b13f2208cb6859d099d3d8ffab28cc8dc9780810b566ed8602 | /*
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @{
*
* @file
*/
#include <errno.h>
#include <string.h>
#incl... | C | sys/net/crosslayer/ng_nettest/ng_nettest.c | Darredevil/RIOT | lgpl-2.1 | 7,054 | 260 | codeparrot/github-code |
25ee0c37f762f82721c000ea22ccaa1f223022d97645fe8518e0c5a5cecc599c | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding ... | C | plugins/contacts/symbian/plugin/tsrc/ut_symbian/ut_matchphonenumber.h | qtproject/qt-mobility | lgpl-2.1 | 3,806 | 108 | codeparrot/github-code |
d4ff3c05b3e46be3a79235e8a86be2079e5834336aa76013396da4b89ce5e3a7 | /*
* card-gids.c: Support for GIDS smart cards.
*
* Copyright (C) 2015 Vincent Le Toux (My Smart Logon) <vincent.letoux@mysmartlogon.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foun... | C | src/libopensc/card-gids.c | rickyepoderi/OpenSC | lgpl-2.1 | 80,899 | 2,195 | codeparrot/github-code |
c3bc1b5b060dfb5e41f20a85fc757322a06f1dcb25d25888b590c265fdcbada7 | // IFC SDK : IFC2X3 C++ Early Classes
// Copyright (C) 2009 CSTB
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any late... | C++ | src/ifc2x3/IfcVibrationIsolatorType.cpp | cstb/ifc2x3-SDK | lgpl-2.1 | 3,901 | 121 | codeparrot/github-code |
659df54d424f7ab1ac1b1113e27bbf1a96445f299f7aa8cae2373dac44283657 | package StevenDimDoors.experimental;
/**
* Provides a complete implementation of a directed graph.
* @author SenseiKiwi
*
* @param <U> The type of data to store in the graph's nodes
* @param <V> The type of data to store in the graph's edges
*/
public class DirectedGraph<U, V>
{
private static class GraphNode<P... | Java | src/main/java/StevenDimDoors/experimental/DirectedGraph.java | CannibalVox/DimDoors | lgpl-2.1 | 4,798 | 226 | codeparrot/github-code |
7a9b141103ed12d1ca80514a93d491e1cd008c3c14e11bbcac0664fdf805feed | /*
Teem: Tools to process and visualize scientific data and images .
Copyright (C) 2013, 2012, 2011, 2010, 2009 University of Chicago
Copyright (C) 2008, 2007, 2006, 2005 Gordon Kindlmann
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; y... | C | src/ten/tendEvalpow.c | Slicer/teem | lgpl-2.1 | 2,676 | 74 | codeparrot/github-code |
ccc6b9dcaf4a4dc25a6cb3ce3c9757ad75c3d68bda05a56f7566b64a733d3620 | /****************************************************************************
**
** Copyright (C) 2013-2014 Jolla Ltd.
** Contact: lorn.potter@jollamobile.com
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as ... | C | src/qofonocallmeter.h | tkenakka/libqofono | lgpl-2.1 | 2,834 | 87 | codeparrot/github-code |
6000ccd993c0783b3b85d59b9f9cccfd208172da4a780ece9efd7bb135fa1f0e | /*-
* Copyright (c)
*
* 2012-2014, Facultad Politécnica, Universidad Nacional de Asunción.
* 2012-2014, Facultad de Ciencias Médicas, Universidad Nacional de Asunción.
* 2012-2013, Centro Nacional de Computación, Universidad Nacional de Asunción.
*
* This library is free software; you can redistribute it a... | Java | src/main/java/py/una/pol/karaku/audit/Auditor.java | fpuna-cia/karaku | lgpl-2.1 | 4,965 | 154 | codeparrot/github-code |
1522fe2e2598b78a5ab13671ee892c8b4effdd38ab252c8e52c19a884c272f1f | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtMultimedia module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Lic... | C++ | src/multimedia/audio/qaudioinput_alsa_p.cpp | sicily/qt4.8.4 | lgpl-2.1 | 22,250 | 747 | codeparrot/github-code |
567c1d7705f72c5bca01e0f3b673fde758b54e340f7efb08444417967e3449be | /*
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... | C++ | src/3rdparty/webkit/WebCore/bindings/js/JSHTMLFormElementCustom.cpp | radekp/qt | lgpl-2.1 | 2,889 | 74 | codeparrot/github-code |
d40b8546422f8d564c55da7341fcbd6320fd6e5acfdad496276336fccafa4de9 | package ImageTrackRenderer;
=head1 NAME
ImageTrackRenderer.pm
=head1 SYNOPSIS
Perl module to render JBrowse image tracks using a chromosome-sized virtual GD canvas.
=head1 METHODS
=cut
use strict;
use warnings;
use vars '@ISA';
use POSIX qw (ceil);
use base 'Exporter';
use base 'AutoHash';
our @EXPORT_OK = qw... | Perl | lib/ImageTrackRenderer.pm | cincinnatusc123/jbrowse | lgpl-2.1 | 8,684 | 266 | codeparrot/github-code |
9134069faeb7bed9f29ffce7dd4fddeadcd136ddf2a1dc3fe4243ad10d0b859f | /****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full restrictions ... | C++ | modules/navier_stokes/src/bcs/NSMomentumInviscidBC.C | backmari/moose | lgpl-2.1 | 3,198 | 99 | codeparrot/github-code |
26c4aba85b15e94ff4d53931123ca8f24432f58c0728a2171be6eccb359f461b | /* Copyright (c) 2007 Pentaho Corporation. All rights reserved.
* This software was developed by Pentaho Corporation and is provided under the terms
* of the GNU Lesser General Public License, Version 2.1. You may not use
* this file except in compliance with the license. If you need a copy of the license,
... | Java | src-ui/org/pentaho/di/ui/trans/steps/http/HTTPDialog.java | juanmjacobs/kettle | lgpl-2.1 | 37,008 | 940 | codeparrot/github-code |
179c1b0bd6dc20b3c8c483270555a7e42e2fe3576d2d385ef76c6ec6f98519af | <?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio ... | PHP | core/lib/Thelia/Command/GenerateResources.php | AznStyle/lwb2 | lgpl-3.0 | 4,122 | 106 | codeparrot/github-code |
713c4790dea915ba8e9a0e13856bfcc69585dde830862e5128bd6790651d980d | /* radare - LGPL - Copyright 2009-2016 - pancake */
#include "r_core.h"
static int cmd_Quit(void *data, const char *input) {
RCore *core = (RCore *)data;
if (input[0] == '!') {
r_config_set (core->config, "scr.histsave", "false");
}
if (IS_NUMBER (input[0]) || input[0] == ' ') {
core->num->value = r_num_math ... | C | libr/core/cmd_quit.c | m1ghtym0/radare2 | lgpl-3.0 | 1,528 | 66 | codeparrot/github-code |
e5bcfdf42d713509afe01593e690b6ec9229cf144b99168125b697cc5e31a0ac | /*
* otr4j, the open source java otr library.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*
* SPDX-License-Identifier: LGPL-3.0-only
*/
package net.java.otr4j.io;
import net.java.otr4j.api.InstanceTag;
import net.java.otr4j.api.TLV;
import net.java.otr4j.crypto.DHKeyPairOTR3;
impor... | Java | src/test/java/net/java/otr4j/io/OtrInputStreamTest.java | otr4j/otr4j | lgpl-3.0 | 14,292 | 365 | codeparrot/github-code |
0e2a23b1552e719501c052e2dca8bdddb37c29ce586a75f1524f395e5ebbc9ab | package org.molgenis.security.acl;
import static java.util.Collections.singleton;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.doReturn;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;... | Java | molgenis-security/src/test/java/org/molgenis/security/acl/ObjectIdentityServiceImplTest.java | bartcharbon/molgenis | lgpl-3.0 | 9,508 | 183 | codeparrot/github-code |
7a059791d29e4aaf5c889475917fe4a9db329b8fc0b045b5f7da14d89fc23cab | // <copyright file="DerivationError.cs" company="Allors bvba">
// Copyright (c) Allors bvba. All rights reserved.
// Licensed under the LGPL license. See LICENSE file in the project root for full license information.
// </copyright>
namespace Allors.Domain.Derivations.Errors
{
using System.Collections.Generic;
... | C# | Core/Database/Domain/Core/Derivations/Errors/DerivationError.cs | Allors/allors2 | lgpl-3.0 | 2,259 | 70 | codeparrot/github-code |
c104450d8c0ba29d33b027379748f0f8f1e7a03f5a24d251ee046fb38c645c3d | import avango
import avango.script
import avango.gua.skelanim
from examples_common.GuaVE import GuaVE
import examples_common.navigator
from avango.gua.skelanim.CharacterControl import CharacterControl
from avango.gua.skelanim.AnimationControl import AnimationConfig
### CAMERA CONTROL VIA XBOX CONTROLLER:
def camera_c... | Python | avango-skelanim/examples/skeletal_character_control/main_animation_config.py | yaroslav-tarasov/avango | lgpl-3.0 | 13,239 | 289 | codeparrot/github-code |
2db3e70e1151679dd501b88e99a9016665e0fa871dd521a1beb309b68068e154 |
namespace SampleWinFormClient.Forms
{
public partial class SendMessage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Clean up any resources being used.
/// </su... | C# | SampleWinFormClient/Forms/SendMessage.Designer.cs | Nihu98/JabberNet-2010 | lgpl-3.0 | 6,651 | 152 | codeparrot/github-code |
0b4325e1c942808c17047e4392c41210a478b23820c64dc40948ae03a76f431f | import commonjs from 'rollup-plugin-commonjs'
import typescript from 'rollup-plugin-typescript2'
import resolve from 'rollup-plugin-node-resolve'
import replace from 'rollup-plugin-replace'
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'
const ADAPTER = 'react'
let additional... | JavaScript | boxroom/archive/js-surface_2019-09-14/rollup.demo.config.js | mcjazzyfunky/js-surface | lgpl-3.0 | 1,268 | 59 | codeparrot/github-code |
df4faa4d0f19fcc8d83a8ec4af084bb24a73da93f6434fd543faf9a9a402a08b | /****************************************************************************
**
** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt3D module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees ho... | C++ | src/render/backend/rendertechnique.cpp | alesegdia/qt3d | lgpl-3.0 | 5,924 | 188 | codeparrot/github-code |
fb6d960e03a318bdc5f26b7231e2977af461f27c4d58613967df435a13d0d785 | #include "eudaq/DataConverterPlugin.hh"
#include "eudaq/StandardEvent.hh"
#include "eudaq/RawDataEvent.hh"
#include "eudaq/Logger.hh"
#include "eudaq/Configuration.hh"
#include "eudaq/CMSPixelHelper.hh"
#include "iostream"
#include "bitset"
namespace eudaq {
static const char* EVENT_TYPE = "CMSPixelDIG";
class... | C++ | main/lib/plugins/CMSPixelDIGConverterPlugin.cc | veloxid/eudaq-drs4 | lgpl-3.0 | 1,698 | 52 | codeparrot/github-code |
cc36e6efe2df89313b584b1baba02b2e875c9bafd70d32b116d31c848244aa07 | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | Java | adaptive-media-web/src/main/java/com/liferay/adaptive/media/web/internal/portlet/action/InfoPanelMVCResourceCommand.java | ambrinchaudhary/com-liferay-adaptive-media | lgpl-3.0 | 3,732 | 111 | codeparrot/github-code |
df9ea1859da5d8911844ac303eea479a2a838f85aaf9a823e4d8446f7d1fa920 | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QCloseEvent>
#include <QMainWindow>
#include <QProgressDialog>
#include <QSharedPointer>
#include <QTableWidget>
#include "../Features/Search/Model/searchresultlist.h"
#include "../Features/Tasks/Model/messagelist.h"
class ComponentsWindow;
class FieldDefinitionsWi... | C | Source/Tome/Core/mainwindow.h | pgrimsehl/tome-editor | lgpl-3.0 | 6,432 | 181 | codeparrot/github-code |
099c84f3e3b8c92a1d927671ea0f656f288ee0bfba9948b78901254f84f46f48 | /*
* tcprelay.cpp - the source file of TcpRelay class
*
* Copyright (C) 2014-2015 Symeon Huang <hzwhuang@gmail.com>
*
* This file is part of the libQtShadowsocks.
*
* libQtShadowsocks is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publish... | C++ | lib/tcprelay.cpp | yernsun/libQtShadowsocks | lgpl-3.0 | 9,233 | 271 | codeparrot/github-code |
9e59e6c84b78f47dd984fb390958ca4d0b17d0638219d1cb28d4beb960fda83e | #ifndef _SALBARRIER_H_
#define _SALBARRIER_H_
#include "libSAL.h"
#if defined(LINUX) || defined(QNX)
typedef pthread_barrier_t SALBarrierHandle_t;
#endif
/** @brief Barrier interface
The barrier function allows participating threads at synchronize at a barrier.
The calling thread will block until the required ... | C | v0.9/innovApp/Platform/include/salbarrier.h | Stevenwork/Innov_code | lgpl-3.0 | 1,108 | 48 | codeparrot/github-code |
6c955bb22f7685e14b4c86fb0d47ce5fa6a657a44888e8b55075ff714a8a9e07 | /*
* SonarQube CSS Plugin
* Copyright (C) 2013-2016 Tamas Kende and David RACODON
* mailto: kende.tamas@gmail.com and david.racodon@gmail.com
*
* 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 ... | Java | css-checks/src/main/java/org/sonar/css/checks/UnknownAtRuleCheck.java | SonarQubeCommunity/sonar-css | lgpl-3.0 | 1,874 | 50 | codeparrot/github-code |
114a652e3e89c278b51688bde445dbd736691bba9ac199b1e3da626699d22be2 | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Designer of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** G... | C++ | qt-everywhere-opensource-src-4.7.4/tools/designer/src/components/taskmenu/itemlisteditor.cpp | ssangkong/NVRAM_KWU | lgpl-3.0 | 17,045 | 490 | codeparrot/github-code |
d780ff410cf64647a87c41ee7120887a23e0c3b75d2a22be8f22c036ffc4a085 | /* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2012-2015 The plumed team
(see the PEOPLE file at the root of the distribution for a list of names)
See http://www.plumed-code.org for more information.
This file is part of plumed, version 2.
plumed is free sof... | C++ | src/multicolvar/Density.cpp | michellab/plumed2 | lgpl-3.0 | 3,327 | 103 | codeparrot/github-code |
835aa0ea2b77b130ef0d6b6d87a9280565bf0ef236d6053c8de1e637598aee6c | /*
* @BEGIN LICENSE
*
* Psi4: an open-source quantum chemistry software package
*
* Copyright (c) 2007-2022 The Psi4 Developers.
*
* The copyrights for code used from other parties are included in
* the corresponding files.
*
* This file is part of Psi4.
*
* Psi4 is free software; you can redistribute it an... | C++ | psi4/src/psi4/psimrcc/manybody.cc | psi4/psi4 | lgpl-3.0 | 35,306 | 722 | codeparrot/github-code |
5811b85d3fd9fb35018fd1ac358861f9d4af8faa7b1f94f518cd871460791da3 | #include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include <string>
// ================== Declare global variables =======================
// ===================================================================
SDL_Surface* background_image = NULL; // placed here so that any function can access them
// this contains t... | C++ | Exam/Student Files/colorkey.cpp | renardchien/Software-Development-on-Linux--Open-Source-Course- | lgpl-3.0 | 4,083 | 137 | codeparrot/github-code |
d51fb9281dc607579fcf88d6b860b0aaf8746d335f25535731ea0bc92cf87307 | package thaumicdyes.common.items;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecra... | Java | src/main/java/thaumicdyes/common/items/SunKnight.java | amerem3/Thaumic-Dyes | lgpl-3.0 | 6,850 | 181 | codeparrot/github-code |
341955784ee0a0f3e5cf052752d061adfb4b8a037bf2d09e8727be0d56f7f202 | #include "QSanSelectableItem.h"
#include "sanuiutils.h"
#include <QPainter>
#include <QGraphicsColorizeEffect>
#include <QMessageBox>
#include <QImageReader>
QSanSelectableItem::QSanSelectableItem(const QString &filename, bool center_as_origin) {
load(filename, center_as_origin);
markable = false;
marked ... | C++ | src/ui/QSanSelectableItem.cpp | LGCaerwyn/QSanguosha-V2-mod | lgpl-3.0 | 3,613 | 121 | codeparrot/github-code |
b27340dd2201c4e4391f6cfe1e2475f2e6d3a22ab78b44bdcc302ae7201c5ebf | /*
* Copyright (C) 2015 Julio Vilmar Gesser and Mike DeHaan
*
* This file is part of antlr-java-parser.
*
* antlr-java-parser is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of t... | Java | src/main/java/com/github/antlrjavaparser/api/type/VoidType.java | antlrjavaparser/antlr-java-parser | lgpl-3.0 | 1,450 | 48 | codeparrot/github-code |
e1c8744d66bb5adcadab24fe79df9ea2e6bf441eccbeddcd30eda1cf512b5e72 | // Copyright (c) 2012-2014, The CryptoNote developers, The Bytecoin developers
//
// This file is part of Bytecoin.
//
// Bytecoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of t... | C++ | src/miner/simpleminer.cpp | dashcoin/dashcoin | lgpl-3.0 | 9,079 | 235 | codeparrot/github-code |
32cd8a9df13db12fa6ba71133a146bf988abe77cd1cdea8973b9f81d48bf382e | /*
* Python bindings module for libvhdi (pyvhdi)
*
* Copyright (C) 2012-2016, Joachim Metz <joachim.metz@gmail.com>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
... | C | pyvhdi/pyvhdi.c | rlugojr/libvhdi_64bit | lgpl-3.0 | 12,217 | 554 | codeparrot/github-code |
4543304d0dce34f88199a0780cbceff5aedd9922063668fbac04bcdbdd98187a | #include "gtest/gtest.h"
#include "../Physics/FluidObject.h"
using namespace Crystal::Math;
using namespace Crystal::Physics;
using T = float;
TEST(FluidObjectTest, TestConstruct)
{
FluidObject fluid;
EXPECT_TRUE( fluid.getParticles().empty());
}
TEST(FluidObjectTest, TestConstructByParticles)
{
... | C++ | Physics/FluidObjectTest.cpp | SatoshiMabuchi/CrystalGraphics | lgpl-3.0 | 989 | 41 | codeparrot/github-code |
f6b4b78b31323791c2d470dc6be52bd8c4aca127c0d6303bc8b2352cff4b1a72 | /*
* Copyright (c) 2020 John Mayfield
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following d... | Java | core/src/main/java/com/simolecule/centres/rules/SequenceRule.java | SiMolecule/centres | lgpl-3.0 | 5,935 | 210 | codeparrot/github-code |
01f9b5241da43c2833ec46b01ad3542bf2b21dcc5b9ddc623c9121d1a85a8ce8 | package org.netxilia.spi.impl.storage.db;
import java.util.List;
import org.netxilia.api.exception.NotFoundException;
import org.netxilia.api.model.SheetDimensions;
import org.netxilia.api.model.SheetType;
import org.netxilia.api.reference.Range;
public interface IDbSheetStorageService {
/************* st... | Java | spi-impl/src/main/java/org/netxilia/spi/impl/storage/db/IDbSheetStorageService.java | netxilia/netxilia | lgpl-3.0 | 2,242 | 56 | codeparrot/github-code |
4556c5b8828d7259c3c998b96dc15dd990a0671056de7c177a0887a54c24aaca | /*
QMPlay2 is a video and audio player.
Copyright (C) 2010-2022 Błażej Szczygieł
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 version 3 of the License, or
(a... | C++ | src/gui/AddressBox.hpp | arthurzam/QMPlay2 | lgpl-3.0 | 1,536 | 57 | codeparrot/github-code |
bb175acb0d3feeab1b282cfdad95d375daf47fc00ce10e3a55ee54aaf89a99b4 | /*
* $Id: OgexGeometryObject.java 3827 2014-11-23 08:13:36Z pspeed $
*
* Copyright (c) 2014, Simsilica, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions o... | Java | src/main/java/mod/steamnsteel/client/model/opengex/ogex/OgexGeometryObject.java | horfius/SteamNSteel | lgpl-3.0 | 3,239 | 105 | codeparrot/github-code |
9bc98908dce40cdb081709aa229648fb2a8b73dc8feb1747476ddd6a13101d38 | from ase.ga.startgenerator import StartGenerator
from ase.ga.utilities import closest_distances_generator, atoms_too_close
from ase.ga.cutandsplicepairing import CutAndSplicePairing
import numpy as np
from ase.lattice.surface import fcc111
from ase.constraints import FixAtoms
# first create two random starting candida... | Python | ase/test/ga/cutandsplicepairing.py | suttond/MODOI | lgpl-3.0 | 1,963 | 66 | codeparrot/github-code |
1e519679b250e392dbe0b9cbb53762acfe71d79ed2a6786db1ca5c2831ec03a3 | # - Find ROOT instalation
# This module tries to find the ROOT installation on your system.
# It tries to find the root-config script which gives you all the needed information.
# If the system variable ROOTSYS is set this is straight forward.
# If not the module uses the pathes given in ROOT_CONFIG_SEARCHPATH.
# If yo... | CMake | cmake/FindROOT.cmake | HGCDAQ/eudaq | lgpl-3.0 | 11,494 | 313 | codeparrot/github-code |
c03ddbb4bb53cbaa5de1cab4750463669b14160461812caac6b6cb716f8d16ec | /*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-11 by Raw Material Software Ltd.
------------------------------------------------------------------------------
JUCE can be r... | C++ | JuceLibraryCode/modules/juce_gui_basics/misc/juce_BubbleComponent.cpp | connerlacy/QuNeoDemo | unlicense | 6,314 | 191 | codeparrot/github-code |
71b474b7eb1bc88a69ca706360b46c9010d0456acf5ffef38a38e54c8c5c50e5 | /**
* Created by kalle on 31.5.2014.
*/
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define(["require", "... | JavaScript | WebTemplates/CPanelVR/assets/controlpanel/modules/DynamicContentView/DynamicContentViewController.js | abstractiondev/TheBallMeWeb | unlicense | 30,057 | 521 | codeparrot/github-code |
f4bfe0bd31e6cef4fb918ef9aec1d5770b3002a692408e6875e47b43ddcc0f5f | package crazypants.enderio.base.handler.darksteel;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
import javax.annotation.Nonnull;
import crazypants.enderio.base.EnderIO;
import crazypants.enderio.base.Log;
import crazypants.enderio.base.item.darksteel.upgrade.elytra.CapeFilterLayer;
impo... | Java | enderio-base/src/main/java/crazypants/enderio/base/handler/darksteel/UpgradeRenderManager.java | HenryLoenwind/EnderIO | unlicense | 2,660 | 69 | codeparrot/github-code |
8a7ecbbd997fc7b80b8898270090fcbdf079e1b5ca18f68c91321638416700e8 | <html>
<head>
<title>Release notes</title>
</head>
<style>
H2, H3, H4 { color: blue }
H1, H2, H3, H4, H5 { font-family: Arial, Helvetica, sans-serif;}
PRE { color: black; margin-left: 2%; }
BODY { color: black; margin-left: 2%; font-family: Verdana, Arial, Helvetica, sans-serif; font-size=75%}
t... | HTML | QP/v5.4.2/qpcpp/3rd_party/embOS/Release_embOS.html | hyller/GladiatorCots | unlicense | 53,557 | 1,102 | codeparrot/github-code |
01c6f73b113369f704ac7fb972e56dad7cd5ef2a285d14339a8aa762102fc459 | #include <cctype>
#include <cstdio>
#include <queue>
using namespace std;
#define MAXLEN 100
template<typename T>
T gcd(T a, T b) { for (T c = a%b; c != 0; a=b,b=c,c=a%b); return b; }
enum TType {
NONE,
INT,
X,
PAREN1,
PAREN2,
EQUALS,
PLUS,
MINUS,
TIMES
};
struct Token {
in... | C++ | solved/c-e/childrens-math/math.cpp | lbv/pc-code | unlicense | 5,179 | 230 | codeparrot/github-code |
5688d6d8ece360e178358ecb74bf95c1228171373b558a0f83870e7afbf94474 | package io.cattle.platform.configitem.server.resource;
import java.util.LinkedHashMap;
import java.util.Map;
public abstract class AbstractResource implements Resource {
Map<String,Object> attributes = new LinkedHashMap<String, Object>();
String name;
public AbstractResource(String name) {
this.... | Java | code/iaas/config-item/server/src/main/java/io/cattle/platform/configitem/server/resource/AbstractResource.java | alena1108/cattle | apache-2.0 | 735 | 36 | codeparrot/github-code |
5a1ad969497125a78a3228a733af172b6fc5150db576cff116961de397c21358 | /**
* 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 agreed to in writing, software
* distributed... | Java | master/src/main/java/hello/JmsConfig.java | zotona/springboot-stomp-ws-jms-integration | apache-2.0 | 2,104 | 63 | codeparrot/github-code |
95b1d06b3ce1de22a1ea1a51470413298928091d6119b2cfca3c9a4288015972 | // +build linux
package devmapper
import (
"bufio"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"os/exec"
"path"
"path/filepath"
"reflect"
"strconv"
"strings"
"sync"
"time"
"github.com/docker/docker/daemon/graphdriver"
"github.com/docker/docker/dockerversion"
"github.com/docker/docker/pkg/devicemappe... | GO | daemon/graphdriver/devmapper/deviceset.go | haveatry/docker | apache-2.0 | 83,885 | 2,810 | codeparrot/github-code |
e9dc125512b8bffe8b8d216b4daf7f19ffc616a90c4c292cb4beaa961aa2a376 | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must r... | C# | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | justasabc/opensim76 | apache-2.0 | 82,227 | 1,939 | codeparrot/github-code |
c12ff44174fc40c797a4866abb431fab5963ad3221edf98cb7f6bc2052dceeca | /*
* Copyright 2000-2013 JetBrains s.r.o.
*
* 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 agre... | Java | java/java-impl/src/com/intellij/codeInsight/TargetElementUtil.java | IllusionRom-deprecated/android_platform_tools_idea | apache-2.0 | 14,437 | 345 | codeparrot/github-code |
8f407dca500f88d4ddea43bf078a26972342522ffc54d66bdbbf585634cee511 | /**
* All rights Reserved, Designed By NoOps.me
* Company: XIAOMI.COM
* @author:
* Xiaodong Pan <panxiaodong@xiaomi.com>
* Wei Lai <laiwei@xiaomi.com
* @version V1.0
*/
package com.xiaomi.alertsystem.ui;
import java.util.List;
import android.app.AlertDialog;
import android.content.Context;
... | Java | src/com/xiaomi/alertsystem/ui/SmsRulesActivity.java | xiaomi-sa/alertsystem | apache-2.0 | 6,171 | 221 | codeparrot/github-code |
f174b273a50646cb02cff8ae78ca150c26ea414d1de198858e2cdbee5f03e9af | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Java | asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/aggregates/scalar/ScalarSqlAvgAggregateDescriptor.java | ty1er/incubator-asterixdb | apache-2.0 | 1,949 | 49 | codeparrot/github-code |
7ff285bfa9efedbfe3c96e48eab45a434980e3abfcf015d2145c1b8cb5efe444 | package me.gowdru.notes.problems;
import java.io.*;
import java.util.*;
/**
* @since 9/4/16
*/
public class LongestIncreasingSubSeq {
static int findLIS(int[] arr){
/*
* This method runs in O(n^2) time and O(n) memory
* Method: For each item, look at the previous items and update count... | Java | java/src/main/java/me/gowdru/notes/problems/LongestIncreasingSubSeq.java | thammegowda/notes | apache-2.0 | 2,745 | 89 | codeparrot/github-code |
b7b0b57649bd521c44489490a9d7a5b91d83ee905d76bc9499387b6b9ae8c007 | // Copyright 2014 the V8 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.
#include "src/base/utils/random-number-generator.h"
#include "src/codegen.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/machine-operator-... | C++ | deps/v8/test/cctest/compiler/test-machine-operator-reducer.cc | runtimejs/runtime | apache-2.0 | 21,570 | 746 | codeparrot/github-code |
285e802cf6c7ab3b21da5ed2b28c89a924afa101c7b544d96cfe7d60a6d69b1f | /*
Derby - Class org.apache.derby.impl.sql.execute.UserDefinedAggregator
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this fil... | Java | java/engine/org/apache/derby/impl/sql/execute/UserDefinedAggregator.java | trejkaz/derby | apache-2.0 | 7,062 | 228 | codeparrot/github-code |
cc352a35a8911d6221770cf407141a05592d8d824ff092ba00fd2f205e142f17 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | modules/core/src/test/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoveryNetworkIssuesTest.java | nizhikov/ignite | apache-2.0 | 9,992 | 300 | codeparrot/github-code |
53583ff0ad163e928c7b636efd7203bea49c4213bab966b8a6ea130561a07322 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 agre... | Java | platform/diff-impl/src/com/intellij/diff/util/DiffUtil.java | semonte/intellij-community | apache-2.0 | 58,835 | 1,517 | codeparrot/github-code |
65031f2880ad16ec2fd553d03fdc0aae23344c9810ba48635238122bab3ac650 | /*
* Copyright 2021 Red Hat, Inc. and/or its affiliates.
*
* 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 | kie-pmml-trusty/kie-pmml-models/kie-pmml-models-scorecard/kie-pmml-models-scorecard-compiler/src/test/java/org/kie/pmml/models/scorecard/compiler/factories/KiePMMLAttributeFactoryTest.java | jomarko/drools | apache-2.0 | 9,431 | 159 | codeparrot/github-code |
2949f4cc4c4a7bfae92be3033f73ea104e408ebcd3fd4f2978c8f0b99584af82 | package com.jeecms.cms.manager.assist.impl;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;... | Java | src/main/java/com/jeecms/cms/manager/assist/impl/CmsVoteSubTopicMngImpl.java | huanzhou/jeecms6 | apache-2.0 | 3,521 | 127 | codeparrot/github-code |
7b1b9d9842bfa0967ba821255d135acfef06b12e3aea45d86e27c1c47aa68b45 | /*
* Copyright 2010 JBoss Inc
*
* 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 agreed to i... | Java | optaplanner-examples/src/main/java/org/optaplanner/examples/nurserostering/solver/move/EmployeeChangeMove.java | codeaudit/optaplanner | apache-2.0 | 2,995 | 87 | codeparrot/github-code |
43585f4be5eb2939b24739b1bb5cfa42161e915e340dc38876e82d520bfb70cb | package de.rheinfabrik.heimdalldroid.adapter.viewholder;
import android.view.View;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.ButterKnife;
import butterknife.BindView;
import de.rheinfabrik.heimdalldroid.R;
import de.rheinfabrik.heimdalldroid.network.models.Tr... | Java | sample/src/main/java/de/rheinfabrik/heimdalldroid/adapter/viewholder/TraktTvListViewHolder.java | trivago/Heimdall.droid | apache-2.0 | 1,268 | 51 | codeparrot/github-code |
749a0bd6b1f7da3f03e6826d4dab2b26ac7a8f3e264026e291e0a67536d35e4a | package solutions.alterego.android.unisannio.sea;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | Java | app/src/main/java/solutions/alterego/android/unisannio/sea/SeaAdapter.java | gkathir15/unisannio-reboot | apache-2.0 | 3,425 | 116 | codeparrot/github-code |
b197497831819ac68fa4a9c9bd5be090e028129b0af7ee42d0e344ae40608770 | 'use strict';
var expect = require('chai').expect;
var React = require('react');
var Router = require('react-router');
var $ = require('jquery');
var { TestUtils } = React.addons;
var Routes = require('../../../../components/Routes.jsx');
var TestLocation = require('react-router/lib/locations/TestLocation');
var Profi... | JavaScript | app/js/components/management/user/__tests__/ListingManagement-test.js | aml-development/ozp-center | apache-2.0 | 2,131 | 60 | codeparrot/github-code |
b0f24573ff319626e7d8079f2f913506c342f475cd81074e890c766988f37c9a | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | C | Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMesh.h | paulnovo/ITK | apache-2.0 | 19,555 | 520 | codeparrot/github-code |
dae8351c62efaba939dcf16dd88c3c429545b7103921418408541d363a7e32a6 | package jp.t2v.lab.play2.auth
import play.api.mvc._
import scala.concurrent.{ExecutionContext, Future}
trait AsyncAuth {
self: AuthConfig with Controller =>
def authorized(authority: Authority)(implicit request: RequestHeader, context: ExecutionContext): Future[Either[Result, (User, ResultUpdater)]] = {
re... | Scala | module/src/main/scala/jp/t2v/lab/play2/auth/AsyncAuth.scala | tototoshi/play20-auth | apache-2.0 | 1,661 | 47 | codeparrot/github-code |
e21f189ed1c4c72ce14bd7c98425e91cb4d27f9e6db1b763d55d2c98e1b1388f | package com.twitter.finagle.tracing
import com.twitter.finagle.benchmark.StdBenchAnnotations
import com.twitter.finagle.context.{Contexts, Deadline}
import com.twitter.finagle.thrift.ClientId
import com.twitter.util.Time
import org.openjdk.jmh.annotations._
import org.openjdk.jmh.infra.Blackhole
@State(Scope.Benchmar... | Scala | finagle-benchmark/src/main/scala/com/twitter/finagle/tracing/TraceBenchmark.scala | twitter/finagle | apache-2.0 | 3,250 | 121 | codeparrot/github-code |
f91372dc70efe77a051ecd4b5dec9614ef3a77178f90f19343f95c52f3bdc68b | /*
* Copyright 2015-2019 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 applica... | Java | agent/core/src/main/java/org/glowroot/agent/collector/Collector.java | trask/glowroot | apache-2.0 | 3,109 | 79 | codeparrot/github-code |
685aebe144c509af55e498bbf17fbf8f41c1bfc0dbe02adc13c2b8099014724d | {% extends "base.html" %}
{% block content %}
{% if home %}
{% for content in home %}
{% if forloop.counter0|divisibleby:2 %}
{% if forloop.first%}
<div class="row">
<div class="main-header ourcontentpost clearfix" >
<div class="col-xs-12 col-sm-12 col-md-12" style="background:url({{content.img.url}}); backgroun... | HTML | content/templates/content/home.html | DjangoGirlsSeoul/lightandleadership | apache-2.0 | 3,564 | 82 | codeparrot/github-code |
cfbc3a2cb5a627eaa8315a222949e2d4392674f0f06082a717466b1ad5c27fb0 | // +build linux freebsd
package daemon
import (
"fmt"
"net"
"os"
"path/filepath"
"strconv"
"strings"
"syscall"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/graphdriver"
derr "github.com/docker/docker/errors"
"github.com/docker/docker/image"
"github.c... | GO | daemon/daemon_unix.go | ashmo123/docker | apache-2.0 | 25,713 | 694 | codeparrot/github-code |
1a40e31c6dda7db579881ab6ed25c18b02bf3463bafe6ae24662afa53be03eb4 | /*
* Copyright 2016 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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
* Unl... | Java | quickstarts/spring-camel-drools-decision-table/src/test/java/org/drools/camel/example/GuvnorRulesMortgageTest.java | jboss-integration/fuse-bxms-integ | apache-2.0 | 4,391 | 120 | codeparrot/github-code |
f298aff769215c36dc0630a0b847a9cd3d19ade17297bb32f95d9ca7c3ef420c | package org.apache.commons.jcs3.auxiliary.disk;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apa... | Java | commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/PurgatoryElement.java | apache/commons-jcs | apache-2.0 | 4,246 | 156 | codeparrot/github-code |
9e742c20da3d16a97aa75241fc5e45c9f6cef25fe8bdb63c7a8ef7aacefd6365 | package ca.uhn.fhir.jpa.util;
/*-
* #%L
* hapi-fhir-jpa
* %%
* Copyright (C) 2014 - 2022 Smile CDR, Inc.
* %%
* 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.apac... | Java | hapi-fhir-jpa/src/main/java/ca/uhn/fhir/jpa/util/TestUtil.java | aemay2/hapi-fhir | apache-2.0 | 14,307 | 382 | codeparrot/github-code |
5c1473998cc726543751cdb43d3d71837ab12eda36d2a3d42e5a07f314d6b3d1 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Java | exec/java-exec/src/test/java/org/apache/drill/exec/server/TestTpcdsSf1Leaks.java | KulykRoman/drill | apache-2.0 | 2,301 | 76 | codeparrot/github-code |
4316e5d4401d93b3e6db10500316bfbe8c5489f8c71be7d910113c7d213dfde6 | package com.balram.locker.view;
import android.app.Application;
import com.balram.locker.main.AppLockImpl;
import com.balram.locker.utils.Locker;
public class AppLocker {
private volatile static AppLocker instance;
private Locker curAppLocker;
public static AppLocker getInstance() {
synchronized (AppLocker.cl... | Java | locker/src/main/java/com/balram/locker/view/AppLocker.java | balrampandey19/AppLocker | apache-2.0 | 881 | 48 | codeparrot/github-code |
936e05be7f48e39a097a5f5d931bc3be75e949c4bd4afc623a2b196e24895d18 | /*
* Copyright (C) 2013 salesforce.com, inc.
*
* 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 ... | Java | aura-util/src/test/java/org/auraframework/util/adapter/GitSourceControlAdapterTest.java | forcedotcom/aura | apache-2.0 | 1,723 | 59 | codeparrot/github-code |
11062f01986a9d48503dcce436e6cf47acee39e5d90e993e117983e962089f85 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C | arangod/RestServer/ConsoleThread.h | graetzer/arangodb | apache-2.0 | 1,849 | 70 | codeparrot/github-code |
32944b3513f909a482d4938df3c6af2572994f244151b08afad47f5cf51e1e83 | package com.sksamuel.scrimage.composite
import java.io.File
import com.sksamuel.scrimage.nio.JpegWriter
import com.sksamuel.scrimage.{ Composite, Image }
import org.apache.commons.io.FileUtils
/** @author Stephen Samuel */
object CompositeExampleGenerator extends App {
import scala.concurrent.ExecutionContext.Imp... | Scala | scrimage-core/src/test/scala/com/sksamuel/scrimage/composite/CompositeExampleGenerator.scala | carlosFattor/scrimage | apache-2.0 | 2,418 | 69 | codeparrot/github-code |
d50d962f2101d4438fc36d55b56ad379b3f020e2ce25a74067bb2899bbc85669 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | core/camel-core-engine/src/main/java/org/apache/camel/model/dataformat/Any23DataFormat.java | ullgren/camel | apache-2.0 | 5,671 | 161 | codeparrot/github-code |
6ae3c4d257dcd0bdf7b9cb44fed368ebdb5890735cb23cbac77eb5258bf42bd2 | package com.tpb.timetable.SlidingPanel;
/*
* Copyright (C) 2016 Jacob Klinker
*
* 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
*
* Unle... | Java | app/src/main/java/com/tpb/timetable/SlidingPanel/MultiShrinkScroller.java | tpb1908/Replacement | apache-2.0 | 60,703 | 1,541 | codeparrot/github-code |
01714822886aa90f68e4bafdd02d0adcfba097c14bbebd13b1569ac01cb17055 | package org.usc.wechat.mp.sdk.util.platform;
import java.util.List;
import org.usc.wechat.mp.sdk.util.HttpUtil;
import org.usc.wechat.mp.sdk.vo.JsonRtn;
import org.usc.wechat.mp.sdk.vo.WechatRequest;
import org.usc.wechat.mp.sdk.vo.message.custom.CustomMessage;
import org.usc.wechat.mp.sdk.vo.message.mass.MassMessage... | Java | wechat-mp-sdk/src/main/java/org/usc/wechat/mp/sdk/util/platform/MessageUtil.java | dancingalone/wechat-mp-sdk | apache-2.0 | 2,371 | 52 | codeparrot/github-code |
1474fe9dbf1bb54c2fc9f471a5c0fb1dfb8d8f6f874fcf58ec32a116a2fe66f7 | package daemon
import (
"errors"
"fmt"
"runtime"
"strconv"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/libcontainerd"
)
// StateChanged updates daemon state changes from containerd
func (daemon *Daemon) StateChanged(id string, e libcontainerd.StateInfo) error {
c := daemon.containers.Get(id)
if c ... | GO | daemon/monitor.go | medallia/docker | apache-2.0 | 3,025 | 101 | codeparrot/github-code |
ebe8ed7e708ff66b53cd644f8fe415d5115a2b39193e2f0bab5c2d777675a42a | // Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
//! XInput procedure declarations, constant definitions and macros
use shared::minwindef::{BYTE, WORD, DWORD};
use um::winnt::{WCHAR, SHORT};
pub const XINPUT_DEVTYPE_GAMEPAD: BYTE = 0x01;
pub const XINPUT_DEVSUBTYPE_GAMEPAD: BYTE = 0x0... | Rust | src/um/xinput.rs | DoumanAsh/winapi-rs | apache-2.0 | 4,786 | 122 | codeparrot/github-code |
ebc079a0f538ddfcd276cc6559b8bd732cc3ef0361188be5b62b1f381639c0de | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... | Java | hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java | Eshcar/hbase | apache-2.0 | 47,935 | 1,187 | codeparrot/github-code |
12be8daabad9650f597e5d451e5e8f1db367d18fd7ad8a427a63b5b353bc5450 | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# 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... | Python | python/paddle/regularizer.py | luotao1/Paddle | apache-2.0 | 5,630 | 142 | codeparrot/github-code |
464e45a6a38b342b885f5c679b2756da5c22819338607d0882bbc0da70301838 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace XbfAnalyzer.Xbf
{
public class XbfAssembly
{
public XbfAssembly(XbfReader xbf, BinaryReader reader)
{
Kind = (XbfAssemblyKind)reader.ReadIn... | C# | XbfAnalyzer/Xbf/XbfAssembly.cs | misenhower/XbfAnalyzer | apache-2.0 | 789 | 34 | codeparrot/github-code |
60d50c8debb81dce6846cfdacffde70687c89c81affeeed892a248b9a875c158 | // Copyright 2014 the V8 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.
#ifndef V8_CCTEST_COMPILER_CALL_TESTER_H_
#define V8_CCTEST_COMPILER_CALL_TESTER_H_
#include "src/handles.h"
#include "src/simulator.h"
#include "test/... | C | platform/JS/V8/v8/test/cctest/compiler/call-tester.h | macchina-io/macchina.io | apache-2.0 | 5,406 | 211 | codeparrot/github-code |
b73826924e4f0f18e9be4e0f3ecf412a2a9feaf966e837697bfb5ee1fa8acd0d | /*
* Copyright (c) 2010-2013 Evolveum
*
* 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 agre... | Java | repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query/restriction/Restriction.java | gureronder/midpoint | apache-2.0 | 2,179 | 70 | codeparrot/github-code |
0cb2397c3830dd4844728bdd41d37628d7b2ca1f281da9a11b952007b467b2d6 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | C++ | cpp/src/arrow/util/lazy-benchmark.cc | tebeka/arrow | apache-2.0 | 3,897 | 124 | codeparrot/github-code |
4e384bd21e465f365c765fd92e8304dc908d801e200b8b70c429f7104c5634d0 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | Java | components/camel-cxf/src/test/java/org/apache/camel/component/cxf/LoadDistributorFeatureTest.java | jamesnetherton/camel | apache-2.0 | 5,410 | 147 | codeparrot/github-code |
4f0ecc24f12efe1c0661151a769d267d6a09b67f78db48cf6c10aeee78c15c8b | /*
* 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 agreed to in writing, software
* distribut... | Java | presto-accumulo/src/main/java/com/facebook/presto/accumulo/io/AccumuloPageSinkProvider.java | ptkool/presto | apache-2.0 | 3,014 | 70 | codeparrot/github-code |
d97ab8e38ad409234ba0feb9ede7031198c4088879ef46e83a6be6d0ac1c8955 | package org.fortiss.smg.analyzer.impl.calculations.dispersion;
import java.util.List;
import org.fortiss.smg.analyzer.impl.calculations.centralTendency.ArithmeticMean;
import org.fortiss.smg.analyzer.impl.calculations.centralTendency.RootMeanSquare;
import org.fortiss.smg.informationbroker.api.DoublePoint;
imp... | Java | analyzer.impl/src/main/java/org/fortiss/smg/analyzer/impl/calculations/dispersion/VarianceAndStandardDeviation.java | B2M-Software/project-drahtlos-smg20 | apache-2.0 | 1,959 | 62 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.