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
8dd729e07c6f7a0ead6c58d2f4ba74111f8d28a746c8f09361459bb55db81482
<?php /** * Abstraction of a Twilio resource. * * @category Services * @package Services_Twilio * @author Neuman Vong <neuman@twilio.com> * @license http://creativecommons.org/licenses/MIT/ MIT * @link http://pear.php.net/package/Services_Twilio */ abstract class Services_Twilio_Resource { protect...
PHP
src/Services/Twilio/Resource.php
kar2905/chafit
gpl-3.0
2,230
89
codeparrot/github-code
39b1f1b0f5a01a650f18a519ba242d8fdbaa8f735f6bfa07d12a484358e58e38
/*Part of Cosmos by OpenGenus Foundation*/ #include <stdio.h> void swap(int *p, int *q) { int temp = *p; *p = *q; *q = temp; } //Last element is used a spivot //Places elements smaller than pivot to its left side //Places elements larger than pivot to its right side int partition(int a[], int low, int ...
C
code/sorting/quick_sort/quick_sort.c
Jecoms/cosmos
gpl-3.0
1,239
66
codeparrot/github-code
91c737c7eb45bcb5ab1349d46bd34d6e557bb41e5d48a0c7dbc9f82afead7c35
<HTML> <BODY> <PRE> <!-- Manpage converted by man2html 3.0.1 --> XrmGetResource, XrmQGetResource, XrmQGetSearchList, XrmQGetSearchResource - retrieve database resources and search lists </PRE> <H2>SYNTAX</H2><PRE> Bool XrmGetResource(<I>database</I>, <I>str</I><B>_</B><I>name</I>, <I>str</...
HTML
QMOLEDEV/escher-0.3/etc/manpage/gnu/x11/XrmQGetSearchResource.html
chriskmanx/qmole
gpl-3.0
7,809
174
codeparrot/github-code
643af6a27aee0e834151abed91546d9bd5299c08be8f28195097277b3f989b8c
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #ifndef CCNET_LOG_H #define CCNET_LOG_H #ifndef ccnet_warning #define ccnet_warning(fmt, ...) g_warning("%s(%d): " fmt, __FILE__, __LINE__, ##__VA_ARGS__) #endif #ifndef ccnet_error #define ccnet_error(fmt, ...) g_error("%s(%d): " fmt, _...
C
net/common/log.h
losingle/ccnet
gpl-3.0
1,365
54
codeparrot/github-code
bc08d058b4c8ef18f32c08e5f781b9d314945c70b0b2f86fd196a6c9e1101200
require 'json' module Minicron module Transport autoload :FayeClient, 'minicron/transport/faye/client' class Client < Minicron::Transport::FayeClient # Instantiate a new instance of the client # # @param host [String] The host to be communicated with def initialize(scheme, host, port...
Ruby
lib/minicron/transport/client.rb
simonfork/minicron
gpl-3.0
2,723
91
codeparrot/github-code
87493f0eb17e2e4a96c8800b3ce62087ba3a377570d279bae1693e1241df958f
# # The Python Imaging Library. # $Id$ # # transform wrappers # # History: # 2002-04-08 fl Created # # Copyright (c) 2002 by Secret Labs AB # Copyright (c) 2002 by Fredrik Lundh # # See the README file for information on usage and redistribution. # from PIL import Image class Transform(Image.ImageTransformHandler)...
Python
venv/lib/python3.4/site-packages/PIL/ImageTransform.py
DanteOnline/free-art
gpl-3.0
2,878
101
codeparrot/github-code
1169cb828bbc4cd9afae580cfb06ceb0635eb183bdea558b23dd7948f7ebc50a
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle...
PHP
mod/forum/externallib.php
Microsoft/moodle
gpl-3.0
42,415
807
codeparrot/github-code
cd6a34293db82ae88077aad01a6ca4b3c5f09725514c74d594331721db64b85f
/* * This file 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 file is distributed in the hope that it will be useful, b...
C
libraries/AP_HAL_ChibiOS/CAN.h
yonahbox/ardupilot
gpl-3.0
2,290
83
codeparrot/github-code
e463ae727c66a8b9ed4f00957344653be448b3ffceb1be56cc12fb2710fd41dd
/* GIMP - The GNU Image Manipulation Program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * 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 * (...
C
app/core/gimpitem-linked.h
brion/gimp
gpl-3.0
2,491
49
codeparrot/github-code
c05705e0d00dd6754cba90bf72f5a96417e8347d3423e9238c01f4a9e96c9c19
<?php //======================================================================= // File: GD_IMAGE.INC.PHP // Description: GD Instance of Image class // Created: 2006-05-06 // Author: Johan Persson (johanp@aditus.nu) // Ver: $Id: gd_image.inc.php 619 2006-05-07 01:56:14Z ljp $ // // Copyright (c) Aditus Consulting. Al...
PHP
upload/includes/jpg4/gd_image.inc.php
freemanmax/stats
gpl-3.0
76,405
2,382
codeparrot/github-code
b272b77a6a3cf27683264eea7662b47251c70d3851d4f4aa4a1994f82a1db453
# SPDX-License-Identifier: MIT # Scanner produces tokens of the following types: # STREAM-START # STREAM-END # DIRECTIVE(name, value) # DOCUMENT-START # DOCUMENT-END # BLOCK-SEQUENCE-START # BLOCK-MAPPING-START # BLOCK-END # FLOW-SEQUENCE-START # FLOW-MAPPING-START # FLOW-SEQUENCE-END # FLOW-MAPPING-END # BLOCK-ENTRY ...
Python
collectors/python.d.plugin/python_modules/pyyaml2/scanner.py
ktsaou/netdata
gpl-3.0
52,661
1,459
codeparrot/github-code
40a4086386e288ab6a3734ea643b16b3d9f7e2b9a3d96370bdd7ad6dce3f10b2
/* * This file is part of Foreign Linux. * * Copyright (C) 2014, 2015 Xiangyan Sun <wishstudio@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License...
C
src/vsprintf.c
zhangf911/flinux
gpl-3.0
4,356
191
codeparrot/github-code
38ef8d9ed8cb8058bcef8cd3fe4cb4f52ddd9b867355cab3f612b2829e028036
/* * 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
src/org/apache/commons/io/output/ProxyWriter.java
fesch/Moenagade
gpl-3.0
8,776
277
codeparrot/github-code
1005554f2409ed686633c90a5ef45a328377be07175106ad1e8dcc253649f30a
// Copyright 2014 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may ...
C
includes/FreeImage/LibWebP/src/dsp/dsp.yuv_mips_dsp_r2.c
Lazydevs/THUG
gpl-3.0
8,074
132
codeparrot/github-code
f1791f95c7fc6775b828efd34b4dd9807a2780311ef989846c1412eaa07354f0
/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ /** * Displays the calendarl...
HTML
pages/fleischer/widget_calendar.html
verybadsoldier/smartvisu-cleaninstall
gpl-3.0
1,945
58
codeparrot/github-code
1c17ca07e167580870e58e469ed014fa5fbf1248d6e9d57e7241f9f70a1993f9
/** * Copyright (C) 2007-2011, Jens Lehmann * * This file is part of DL-Learner. * * DL-Learner 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) an...
Java
components-core/src/main/java/org/dllearner/kb/manipulator/PredicateReplacementRule.java
daftano/dl-learner
gpl-3.0
1,810
65
codeparrot/github-code
f0de8939273cb19a80765a8d5b044eabd6b0b3e5de010ac5d5478d672960fb5b
package com.motioncoding.miband; import java.util.Arrays; import java.util.Observable; import java.util.Observer; import java.util.UUID; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.Bl...
Java
MiBand/src/com/motioncoding/miband/MiOverviewActivity.java
cornelius-mellino/xiaomi-miband-android
gpl-3.0
7,054
242
codeparrot/github-code
85180cadaffe15663598dda5ea9fa05903d918de4aaa26e41839e9240e7ca398
----------------------------------- -- -- Zone: Konschtat_Highlands (108) -- ----------------------------------- package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil; package.loaded["scripts/globals/chocobo_digging"] = nil; ----------------------------------- require("scripts/zones/Konschtat_High...
Lua
scripts/zones/Konschtat_Highlands/Zone.lua
Kthulupwns/master
gpl-3.0
3,763
122
codeparrot/github-code
d858ea1341a70b0a3ef66c12616fb8535b05eef1b19740f94de81ef073901c04
using System; using System.Windows.Forms; namespace MissionPlanner.Joystick { public partial class Joy_Do_Repeat_Servo : Form { public Joy_Do_Repeat_Servo(string name) { InitializeComponent(); Utilities.ThemeManager.ApplyThemeTo(this); this.Tag = name; ...
C#
Joystick/Joy_Do_Repeat_Servo.cs
virtualrobotix/MissionPlanner
gpl-3.0
1,104
36
codeparrot/github-code
cea3819fbc19e43567f0181057628c019c598e50cfa97eb3fadd26de2d6d731c
// RUN: %clang_cc1 -verify -fopenmp %s void foo() { } bool foobool(int argc) { return argc; } struct S1; // expected-note 2 {{declared here}} expected-note 2 {{forward declaration of 'S1'}} extern S1 a; class S2 { mutable int a; public: S2() : a(0) {} S2(S2 &s2) : a(s2.a) {} const S2 &operator =(const S2&...
C++
llvm/tools/clang/test/OpenMP/target_teams_distribute_lastprivate_messages.cpp
montimaj/ShaktiT_LLVM
gpl-3.0
8,530
230
codeparrot/github-code
a6d44c5a14528db0eb1bcda2c6b9c99cb49b7749dc6f1360e3efb349716ab478
// PGEBlocks.h: Deklaration von CPGEBlocks #pragma once #include "resource.h" // Hauptsymbole #include "PGEFile_i.h" #include "PGELevelBlock.h" #include "Utils/GenericCopyPolicy.h" #include "Utils/ComUtils.h" #include <vector> #ifdef _DEBUG #include <iostream> #endif #if defined(_WIN32_WCE) && !defined(_C...
C
pgelib2015/PGEFile/PGEFile/PGELevelBlocks.h
Wohlhabend-Networks/PGE.NET
gpl-3.0
1,901
69
codeparrot/github-code
fc6d731c8c59b6ca65d25c27e68ca7a0dfbf3096d51f0975788c64d373e5a3aa
// -*- Mode: Go; indent-tabs-mode: t -*- /* * Copyright (C) 2017 Canonical Ltd * * 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...
GO
overlord/cmdstate/cmdmgr.go
atomatt/snapd
gpl-3.0
1,910
81
codeparrot/github-code
455daa385a0cd08aef7a533c360cc75837ff531ab8ff8d07b554de6aa2780927
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | foam-extend: Open Source CFD \\ / O peration | \\ / A nd | For copyright notice see file Copyright \\/ M anipulation | ---------------------...
C++
src/dbns/dbnsFlux/betaFlux/betaFlux.H
Unofficial-Extend-Project-Mirror/openfoam-extend-foam-extend-3.1
gpl-3.0
2,710
100
codeparrot/github-code
16d7a6cb2cbf7f8cf15180a9e2881bc35ba6fca456a23c508f9f1b432c752c01
/* This file is part of Darling. Copyright (C) 2012-2013 Lubos Dolezel Copyright (C) 2011 Shinichiro Hamaji Darling 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 op...
C
src/libmach-o/MachO.h
MSylvia/darling
gpl-3.0
5,494
202
codeparrot/github-code
8a665142310121768fb0ebe0d11f91bc8489bde089094823a7c7c10c4e16f40d
/** __ __ * _____ _/ /_/ /_ Computational Intelligence Library (CIlib) * / ___/ / / / __ \ (c) CIRG @ UP * / /__/ / / / /_/ / http://cilib.net * \___/_/_/_/_.___/ */ package net.sourceforge.cilib.measurement.single.diversity; import net.sourceforge.cilib.entity.Entity; import net.sourcefo...
Java
library/src/test/java/net/sourceforge/cilib/measurement/single/diversity/EntropyDiversityTest.java
krharrison/cilib
gpl-3.0
5,114
135
codeparrot/github-code
66565bdd9a7af2b0c1f6cd8acf3ac3916e1751c1adac78cdd19cb95c5fc6b188
package com.dotmarketing.startup.runalways; import com.dotmarketing.business.APILocator; import com.dotmarketing.business.CacheLocator; import com.dotmarketing.exception.DotDataException; import com.dotmarketing.exception.DotRuntimeException; import com.dotmarketing.portlets.workflows.model.WorkflowScheme; impo...
Java
src/com/dotmarketing/startup/runalways/Task00008CreateDefaultWorkflowScheme.java
austindlawless/dotCMS
gpl-3.0
1,245
39
codeparrot/github-code
331c9b2046fa5c1ed9531e78e686ebf67f22a9b47c6b358d780b5ddbec992fb7
/** * This file is part of LSD-SLAM. * * Copyright 2013 Jakob Engel <engelj at in dot tum dot de> (Technical University of Munich) * For more information see <http://vision.in.tum.de/lsdslam> * * LSD-SLAM is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
C++
lsd_slam/io_wrapper/ImageDisplay_OpenCV.cc
dtmoodie/lsd_slam
gpl-3.0
3,705
155
codeparrot/github-code
0373b42bc5cdebc45224d6cedd9a99a50cb544c1a4a5d85f110e136579415d71
<?php /** Copyright 2012-2016 Nick Korbel This file is part of Booked Scheduler. Booked Scheduler 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...
PHP
lib/Database/Commands/TableNames.php
City-of-Vantaa-SmartLab/kontti-demo
gpl-3.0
1,177
34
codeparrot/github-code
2fe661cb0841903fa449513dcbceeb313268bfdcd0dd85fedf0d8c7a2d8d031c
#!/usr/bin/perl # This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html) # Copyright 2007 Tamil s.a.r.l. # Parts copyright 2010-2012 Athens County Public Libraries # # This file is part of Koha. # # Koha is free software; you can redistribute it and/or modify it under ...
Perl
circ/ysearch.pl
digibib/koha-work
gpl-3.0
2,607
83
codeparrot/github-code
7775e9ecb86ad18c8f78a8f10ded464e973bfa48ca12bdb9706a3dcab231b6eb
package EPrints::Plugin::Search; @ISA = qw( EPrints::Plugin ); use strict; =for Pod2Wiki =head1 NAME EPrints::Plugin::Search - pluggable search engines =head1 SYNOPSIS # use a specific engine $searchexp = $repo->plugin( "Search::XXX", dataset => $repo->dataset( "archive" ), filters => [{ meta_fields => ...
Perl
perl_lib/EPrints/Plugin/Search.pm
denics/eprints
gpl-3.0
13,360
617
codeparrot/github-code
4d1fdd4a640304727a2e7a0c7fba21a96adb15dc42ab53829ec00cb79fb3ccd6
package util; import bank.domain.Account; import java.sql.SQLException; import javax.persistence.EntityManager; import javax.persistence.metamodel.EntityType; public abstract class DatabaseCleaner { private static final Class<?>[] ENTITY_TYPES = { Account.class }; public static void clean(Entity...
Java
bank_v2/src/test/java/util/DatabaseCleaner.java
JBerkvens/SE42
gpl-3.0
1,059
34
codeparrot/github-code
dee6a30a9da6daf9cce53aaebc366b261f621b01443ff5814faeaa16bbb8065a
/***************************************************************************** * Copyright (c) 2014 Ted John * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * * This file is part of OpenRCT2. * * OpenRCT2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
C
src/window_land.c
Philpax/OpenRCT2
gpl-3.0
11,556
414
codeparrot/github-code
85abc530f0896bdb376af24b345ed676b1576400ac475a8fc25eab2ac5734c5c
/* * This file is part of Cleanflight. * * Cleanflight is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Cleanflight is distr...
C
src/main/drivers/vtx_common.c
lunohod/betaflight
gpl-3.0
3,217
140
codeparrot/github-code
f36aecc63be78030b56c24bcf188475df3ee4129621f0429dbf24adbe1a195ba
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtQuick module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commer...
C
oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/src/quick/util/qquicksystempalette_p.h
geminy/aidear
gpl-3.0
4,388
121
codeparrot/github-code
f995df2d0afb651a0593abc107ddada4c8ff0310e821c331c85d38de3892353e
/** * Copyright (C) 2007 - 2012 GeoSolutions S.A.S. * http://www.geo-solutions.it * * GPLv3 + Classpath exception * * 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...
JavaScript
mapcomposer/app/static/externals/gxp/src/script/plugins/client/lib/GeoStoreClient.js
mbarto/mapstore
gpl-3.0
22,053
652
codeparrot/github-code
a8668937b412b7fad7f6d7ff095b9056f2599f864391625f3aaab8962562ee23
// Copyright (C) 2014 The Protocol Authors. package protocol import ( "encoding/binary" "errors" "fmt" "io" "path" "strings" "sync" "time" lz4 "github.com/bkaradzic/go-lz4" ) const ( // BlockSize is the standard ata block size (128 KiB) BlockSize = 128 << 10 // MaxMessageLen is the largest message size...
GO
lib/protocol/protocol.go
kamadak/syncthing
mpl-2.0
20,548
843
codeparrot/github-code
4170879c9b4a2bcb75dff1c0f496c4b56b7e33b3f3f840d06ad02eb1cebe37cd
<?php /** * @package jelix-scripts * @author Laurent Jouanneau * @contributor Loic Mathaud * @copyright 2005-2012 Laurent Jouanneau, 2008 Loic Mathaud * @link http://www.jelix.org * @licence GNU General Public Licence see LICENCE file or http://www.gnu.org/licenses/gpl.html */ /** * base class fo...
PHP
lib/jelix-scripts/includes/JelixScriptCommand.class.php
3liz/lizmap-web-client
mpl-2.0
19,320
657
codeparrot/github-code
177e1017e75ff2589c06f2f78307542030819b6560808ca67c4bc44f18c6f818
package command import ( "fmt" "io" "os" "time" "github.com/fatih/color" "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/command/config" "github.com/hashicorp/vault/command/token" "github.com/mitchellh/cli" ) // DefaultTokenHelper returns the token helper that is configured for Vault. func Defa...
GO
command/util.go
quixoten/vault
mpl-2.0
3,882
160
codeparrot/github-code
7bcc4498120841e30a2828ef195f44b70d953f6facb5458fe857ac71d8c8ff09
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 2014 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ #include "db_config.h" #include "db_int.h" /* * __os_open -- * Open a file descriptor (including page size and log size information). */ int __os_open(env, ...
C
src/os_windows/os_open.c
zheguang/BerkeleyDB
agpl-3.0
7,649
259
codeparrot/github-code
e0d9f733925ce768d1732cca80d08d65b32b4b15f954d25793c72f37f221602f
module V3 class MaintenanceRecords < Grape::API helpers V3::Helpers version 'v3' format :json resource :maintenance_records do before do api_enabled! authenticate! set_papertrail @owner = get_owner @owners = get_owners e...
Ruby
app/api/v3/maintenance_records.rb
fkr/the-idb
agpl-3.0
7,381
206
codeparrot/github-code
ba510ca82ce895aa47245a2877d74c8f835b42491979bdeb38bbaf1c330bd30c
<?php if(ob_get_contents() !== false) { ob_clean(); }; ob_start(); @ini_set("session.bug_compat_warn", 0); //Turn this off until first "Next" warning is worked out if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') { deregister_globals(); } /* * Re...
PHP
limesurvey/classes/core/startup.php
goautodial/ce-www
agpl-3.0
2,446
98
codeparrot/github-code
dc26b0c9f8d64fb5fb8140cffda2c847a194efe4a94d982f40b98270b6d4034e
goog.provide('ol.style.IconImage'); goog.require('ol'); goog.require('ol.dom'); goog.require('ol.events'); goog.require('ol.events.EventTarget'); goog.require('ol.events.EventType'); goog.require('ol.ImageState'); goog.require('ol.style'); /** * @constructor * @param {Image|HTMLCanvasElement} image Image. * @para...
JavaScript
viewer/src/main/webapp/viewer-html/common/openlayers4/OpenLayers/style/iconimage.js
mvdstruijk/flamingo
agpl-3.0
6,160
277
codeparrot/github-code
f2f54d6fa45462a5d8928bb5ccc035b95f363aec140754bd819c3dc15d40617c
/* sdsl - succinct data structures library Copyright (C) 2016 Francisco Montoto 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...
C++
shared_sdsl/include/sdsl/k2_tree_helper.hpp
abramconnelly/cgfgpu
agpl-3.0
3,655
114
codeparrot/github-code
383c9d6cdb144d3a4ca0a6abc440b42b02aacbe31afd4634268d56a062a97388
/******************************************************************************* * This file is part of OpenNMS(R). * * Copyright (C) 2011-2014 The OpenNMS Group, Inc. * OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc. * * OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc. * * OpenNMS(...
Java
opennms-alarms/api/src/test/java/org/opennms/netmgt/alarmd/api/support/AlarmQueueTest.java
aihua/opennms
agpl-3.0
6,089
198
codeparrot/github-code
6aaa682c6f53eeef0bb00ed2213415ea70c37427c064a2f5ab4ca09da3f945b3
/* This file is part of the Palabos library. * * Copyright (C) 2011-2015 FlowKit Sarl * Route d'Oron 2 * 1010 Lausanne, Switzerland * E-mail contact: contact@flowkit.com * * The most recent release of Palabos can be downloaded at * <http://www.palabos.org/> * * The library Palabos is free software: you can r...
C++
src/multiGrid/coarseGridProcessors2D.hh
josepedro/palabos_acoustic
agpl-3.0
10,205
234
codeparrot/github-code
52c7acaeea71f09e171033e6cc0a8fdd893ad93526518872c083f66dcdbb6bee
<?php if(!defined('sugarEntry'))define('sugarEntry', true); /********************************************************************************* * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * * This program is free soft...
PHP
service/v4/SugarWebServiceImplv4.php
Ideadunes/crm-internal
agpl-3.0
38,050
738
codeparrot/github-code
dc6bbd063415bd7d1796310104ae08c1438449fc416ee6e89f222692cfa4ba64
<?php if (!defined('ABSPATH')) die('No direct access allowed'); final class WOOF_EXT_COLOR extends WOOF_EXT { public $type = 'html_type'; public $html_type = 'color'; //your custom key here public $html_type_dynamic_recount_behavior = 2; public function __construct() { ...
PHP
wp/soulshape.earth/wp-content/plugins/woocommerce-products-filter/ext/color/index.php
befair/soulShape
agpl-3.0
1,323
69
codeparrot/github-code
21b3dc4db78af630b33434ca0eb3a9915087c575cdaf19cf93a3b46f0affde0d
#!/bin/sh # host is required if not connecting of Unix domain socket PG_HOST="localhost" PG_PORT=5432 PG_DB=opennms PG_ARCH_TABLE=event_archives PG_TXID_SEQ=tx_ids PG_USER=opennms PG_PASSWORD= # Archival period if [ -z "$1" ]; then ARCHIVAL_TIME=" now() - interval '9 weeks'" else # expects input in the form: "200...
Shell
opennms-base-assembly/src/main/resources/contrib/maint_events.sh
aihua/opennms
agpl-3.0
3,850
103
codeparrot/github-code
49dffa26d0fd9d215d6ae4c1462eac32e7df106e758cbc156c36e0d3142f66ee
<%inherit file="/template.html" /> <%namespace name="components" file="/components.html"/> <%def name="title()">${_("Admin: Import Users")}</%def> <%block name="full_teaser"> ${self.success()} </%block> <%def name="success()"> <h1>${_("Imported Users")}</h1> %if c.errors: <h2 style="color: red">(${_('But some errors ...
HTML
src/adhocracy/templates/admin/userimport_success.html
phihag/adhocracy
agpl-3.0
1,088
42
codeparrot/github-code
8670f2dc857b96a594db59ee44738345dba048794862043444e163a9630d31bf
/* * ################################################################ * * ProActive Parallel Suite(TM): The Java(TM) library for * Parallel, Distributed, Multi-Core Computing for * Enterprise Grids & Clouds * * Copyright (C) 1997-2012 INRIA/University of * Nice-Sophia Antipolis/ActiveEon ...
Java
src/Core/org/objectweb/proactive/core/runtime/ProActiveRuntimeImpl.java
mnip91/programming-multiactivities
agpl-3.0
63,044
1,773
codeparrot/github-code
85baf788d56d426a6f8d80b90a87420109666d3e39fc534e3693d6022edad211
// Copyright 2019 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package network import ( "fmt" "net" "regexp" "strings" "github.com/juju/collections/set" "github.com/juju/errors" ) const ( // AlphaSpaceId is the ID of the alpha network space. // Application endpoints are bound t...
GO
core/network/space.go
freyes/juju
agpl-3.0
9,492
347
codeparrot/github-code
1ae49dcd65cf75b55ac2fb6c981b28187909ae09c40ff4e9dde956557bf80a85
/* * SortMatching * Copyright 2012 Marco Mandrioli * * This file is part of SortMatching. * * SortMatching is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License...
C
sort_matching_threaded/src/matching.c
zAvo/sort-matching
agpl-3.0
11,892
392
codeparrot/github-code
ca89bb2eaa9052e7a2eae1d670d3d0ea6192b0c788c4ae0a98d5ceb7327c4241
package org.herac.tuxguitar.app.tools.custom.converter; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import ja...
Java
tuxguitar-src/TuxGuitar-converter/src/org/herac/tuxguitar/app/tools/custom/converter/TGConverter.java
bluenote10/TuxguitarParser
lgpl-2.1
8,220
232
codeparrot/github-code
ff0f4d05c8edc8bf628013b99e15915d3db42212d3e0041f28cdf281f8eca213
/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy Alliance, LLC ...
C
framework/include/parser/Syntax.h
Chuban/moose
lgpl-2.1
5,376
147
codeparrot/github-code
e8d842054446e8e5d687be817640d414b02334bb652ab89278a23780c8cfe602
<?php namespace wcf\system\moderation\queue; use wcf\data\moderation\queue\ModerationQueue; use wcf\data\moderation\queue\ModerationQueueAction; use wcf\data\user\User; use wcf\data\user\UserProfile; use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\exception\SystemException; use wcf\system...
PHP
wcfsetup/install/files/lib/system/moderation/queue/AbstractModerationQueueHandler.class.php
ramiusGitHub/WCF
lgpl-2.1
3,616
117
codeparrot/github-code
fa58e6172821e6d369f256fb46c6ca3cfe8d9fcf728f6ad28c8e78110ac48fec
/* $Id$ */ /*** This file is part of avahi. avahi 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 later version. avahi is distribu...
C
avahi-core/browse-domain.c
sunilghai/avahi-clone
lgpl-2.1
6,483
238
codeparrot/github-code
21a034490bb6c142a01c7b3a2f205672243b44d265ac1fabf4faa239ee398152
/* * This file is part of the PySide project. * * Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). * * Contact: PySide team <contact@pyside.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 ...
C++
libpyside/pysideproperty.cpp
pankajp/pyside
lgpl-2.1
14,489
501
codeparrot/github-code
d717f154ee5e0b98598215ef802ab5a48847154d34764fe0fa3e67f24d0ecd96
//////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code for adherence to a set of rules. // Copyright (C) 2001-2017 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU ...
Java
src/it/java/com/google/checkstyle/test/chapter3filestructure/rule3421overloadsplit/OverloadMethodsDeclarationOrderTest.java
jochenvdv/checkstyle
lgpl-2.1
2,455
56
codeparrot/github-code
e3ff5dc471e5444ecd27e561be297ca906b58913b476c07004af3bb341055e49
package dr.evomodel.antigenic.phyloclustering.statistics; import dr.evolution.tree.NodeRef; import dr.evolution.tree.Tree; import dr.evolution.tree.TreeTrait; import dr.evolution.tree.TreeTraitProvider; import dr.evomodel.tree.TreeModel; import dr.inference.model.MatrixParameter; import dr.inference.model.Parameter; ...
Java
src/dr/evomodel/antigenic/phyloclustering/statistics/AnnotateMuTreeTrait.java
adamallo/beast-mcmc
lgpl-2.1
8,059
213
codeparrot/github-code
ff497ec3129c985258735e5d239a8b45d52d97f0f52949923f3909a336444b46
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Example rc file</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="GTK+ 2.0 Tutorial" HREF="book1.html"><LINK REL="UP" TITLE="GTK's rc Files" HREF="c...
HTML
docs/tutorial/html/x2177.html
ystk/debian-gtk-2.0
lgpl-2.1
5,907
279
codeparrot/github-code
87b87babd3101e20721d4c6f85670faf1bc219cf897cee892f7f1bdce98017be
/* GStreamer * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> * 2000 Wim Taymans <wtay@chello.be> * * gstfdsink.c: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free So...
C
plugins/elements/gstfdsink.c
krichter722/gstreamer
lgpl-2.1
15,923
624
codeparrot/github-code
c75597feff59ed3c3d5828f80987cc6a16b6e49b4f1cee56ca994249a221f7be
<?php /** * This source file is part of GotCms. * * GotCms is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * GotCms is...
PHP
module/GcModule/src/GcModule/Form/Module.php
GotCms/GotCms-legacy
lgpl-3.0
3,154
105
codeparrot/github-code
cd1e2500418a5312932f14ffe398388a143ac9e0075a2ca33ac9764b662934c8
<?php if (!defined('FLUX_ROOT')) exit; ?> <h2>Pending Redemption</h2> <?php if ($items): ?> <p>You have <?php echo number_format($total) ?> item(s) pending redemption.</p> <table class="vertical-table"> <tr> <th>Item Name</th> <th>Quantity</th> <th>Cost</th> <th>Balance (Before)</th> <th>Balance (After)</th>...
PHP
themes/default/purchase/pending.php
rathena/FluxCP
lgpl-3.0
1,297
40
codeparrot/github-code
c7580e88df49f98b224f8f6f93c0d1a8c6b19e94d52dbe98738edd4afe3e7854
/* Copyright (C) 2007 National Institute For Space Research (INPE) - Brazil. This file is part of TerraMA2 - a free and open source computational platform for analysis, monitoring, and alert of geo-environmental extremes. TerraMA2 is free software: you can redistribute it and/or modify it under the terms of...
C++
src/terrama2/services/alert/core/Config.hpp
TerraMA2/terrama2
lgpl-3.0
1,340
44
codeparrot/github-code
8efe38b3cb7124409fc1248ccfb44ba3e925466d9abe76384cd9877115da77f1
// // System.Runtime.Remoting.Channels.ChannelServices.cs // // Author: Rodrigo Moya (rodrigo@ximian.com) // Dietmar Maurer (dietmar@ximian.com) // Lluis Sanchez Gual (lluis@ideary.com) // // 2002 (C) Copyright, Ximian, Inc. // // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permissi...
C#
v#/corlib/System.Runtime.Remoting.Channels/ChannelServices.cs
edwinspire/VSharp
lgpl-3.0
15,570
527
codeparrot/github-code
94ff6c600214940c7efacf41c6615b8f77a03bb8a885fc5aa2e6ac3e1d87e042
<?php /*******************************************************************\ * PROJECT INFORMATION * * * * Project: Apache-Test * * URL: http://perl.apache.o...
PHP
testmore.php
greenlion/columnstore_tests
lgpl-3.0
8,580
345
codeparrot/github-code
f59b67e03b0e5b324d489e9d7086fe4795f9d837b4ad34c6b4382d11501f1ee1
// playground is a sandbox for ui elements and testing feasibility of new features... // this file contains controllers, services, etc relating to playground features // TODO break playground controller out to sub controllers, // and define in same space as partial for simplicity function createDataGrid($scope, $http...
JavaScript
ui/playground/playground.js
Hazed/PayPal-IPN-Generator
unlicense
11,038
284
codeparrot/github-code
6a2f6dfc498feebc93a871943aa679a5fabaf10446f2f6cb015e9fd5d787416a
*DECK QAG SUBROUTINE QAG (F, A, B, EPSABS, EPSREL, KEY, RESULT, ABSERR, + NEVAL, IER, LIMIT, LENW, LAST, IWORK, WORK) C***BEGIN PROLOGUE QAG C***PURPOSE The routine calculates an approximation result to a given C definite integral I = integral of F over (A,B), C hopefully satisfying...
FORTRAN
slatec/src/qag.f
andremirt/v_cond
unlicense
8,383
194
codeparrot/github-code
4f37060ca98b0bbd2e655701f982f7218a93cfc8177f2f570f05896ea607fa44
/* * ModeShape (http://www.modeshape.org) * * 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 o...
Java
modeshape-jcr/src/main/java/org/modeshape/jcr/SequencingRunner.java
vhalbert/modeshape
apache-2.0
23,865
439
codeparrot/github-code
37e02458bcb05071059471d721fb2642dc6031158895b3a235bc5027404d9fd2
package com.twitter.finagle.client import com.twitter.conversions.time._ import com.twitter.finagle.pool.{WatermarkPool, CachingPool, BufferingPool} import com.twitter.finagle.stats.StatsReceiver import com.twitter.finagle.util.DefaultTimer import com.twitter.util.{Timer, Duration} /** * Create a watermark pool back...
Scala
finagle-core/src/main/scala/com/twitter/finagle/client/DefaultPool.scala
firebase/finagle
apache-2.0
1,771
48
codeparrot/github-code
692459c5d68d02c4c7cffdb0daad387e7a3aebb8649631094886fab7870124bc
/* * Copyright 2004-2009 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
src/main/src/org/compass/core/accessor/AccessorUtils.java
baboune/compass
apache-2.0
5,556
146
codeparrot/github-code
86823b6942207d0e5417671abdb6b6f722d41cbf049b7c5497ea09ca374868cb
// Python Tools for Visual Studio // Copyright(c) Microsoft Corporation // 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 //...
C#
Python/Product/PythonTools/PythonTools/Project/FtpPublisher.cs
Microsoft/PTVS
apache-2.0
5,437
135
codeparrot/github-code
dc729829cb01b936744e7d2ad278a50f4946e9041747ddf01588243a900e1e73
<?php /******************************************************************************* * Copyright 2013 Amazon.com, Inc. or its affiliates. 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 obta...
PHP
src/OffAmazonPaymentsService/Samples/CloseOrderReferenceSample.php
SnapInteractive/LoginandPaywithAmazonSDK-php
apache-2.0
2,052
54
codeparrot/github-code
c98b193738bf7cb4fc18397aea46f2ce9871651727f8d259d8f7faae2d44a20d
from __future__ import absolute_import, unicode_literals from mopidy import listener class CoreListener(listener.Listener): """ Marker interface for recipients of events sent by the core actor. Any Pykka actor that mixes in this class will receive calls to the methods defined here when the correspo...
Python
mopidy/core/listener.py
mokieyue/mopidy
apache-2.0
5,283
190
codeparrot/github-code
73c49b6e3904d834e1003ebdda8e1bc8873464c6472e570b87c5e08c5329cbec
/* * 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 n...
Java
artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/view/predicate/ProducerFilterPredicate.java
mnovak1/activemq-artemis
apache-2.0
2,872
72
codeparrot/github-code
390e565d633a027ddcfed564792ec6d0c1c5af9b7ccf6de90ad314a3dc7d13e7
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Java
server/src/test/java/org/elasticsearch/index/analysis/PreBuiltAnalyzerTests.java
gingerwizard/elasticsearch
apache-2.0
4,979
105
codeparrot/github-code
7e939fa785ebaf7551759454ca90b72d7dc0372daa09825de8435b4e9f4f3e31
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
src/com/android/camera/ui/ZoomControlBar.java
boundarydevices/LegacyCamera
apache-2.0
5,675
160
codeparrot/github-code
aea4d75f84ca05a0a2496ee0e1e40e2a18b8bd4e89ee633647aaeb678188ccbd
/* * Copyright 2016-present Open Networking Laboratory * * 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 appli...
Java
utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/plugin/manager/ChoiceCaseTranslatorTest.java
shlee89/athena
apache-2.0
1,959
54
codeparrot/github-code
03c378d312e5fa44e896243b2852b8bbb1aca944ba49bcff6cbe184892fd1b78
/* Copyright 2015 Samsung Electronics Co., LTD * * 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...
Java
GVRf/Framework/framework/src/main/java/org/gearvrf/animation/GVRTransformAnimation.java
NolaDonato/GearVRf
apache-2.0
3,056
107
codeparrot/github-code
83fbbdab99e85dc465abcac3ae42c88f3b0c5fa43f9d0f45a6e18c160e39b8a0
sap.ui.define([ "sap/ui/core/UIComponent", "sap/ui/model/json/JSONModel", "sap/ui/Device", "sap/ui/demo/theming/model/models", "sap/ui/demo/theming/controller/ErrorHandler" ], function (UIComponent,JSONModel, Device, models, ErrorHandler) { "use strict"; return UIComponent.extend("sap.ui.demo.theming.Component"...
JavaScript
src/sap.m/test/sap/m/demokit/theming/webapp/Component.js
SQCLabs/openui5
apache-2.0
2,481
76
codeparrot/github-code
a0bb766f606ae9e37a7cc1702d7b613956b2c8b251b3764e0369b6fc3d106815
/* * Copyright 2012-present Facebook, 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...
Java
src/com/facebook/buck/java/JavaTestRule.java
thinkernel/buck
apache-2.0
18,116
490
codeparrot/github-code
71610d8c7a83c3b77d7dddfc7616b6bf529761e2f81b7219f64638f8024a3f46
/* * 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
runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/WriteFilesTranslation.java
lukecwik/incubator-beam
apache-2.0
12,915
326
codeparrot/github-code
bf70b4733279c7768ed6fd8f4974a0b1e1cb41ff818fe11d4370a92dcd4114f7
/** * 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
src/test/org/apache/commons/cli/PatternOptionBuilderTest.java
blackhole1a/commons
apache-2.0
7,630
175
codeparrot/github-code
5f94e76d73953583a2a6254a2e8e6c0275244e79ef6d11682a53b1d5e1cb58f4
/** * Copyright 2016 The AMP HTML 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 require...
JavaScript
extensions/amp-stream-gallery/0.1/test/test-amp-stream-gallery.js
lannka/amphtml
apache-2.0
20,202
708
codeparrot/github-code
87becdb619cb63bad623682443526f56f8986db80d22a32b3b455b28eab72196
/* * Copyright 2015 JBoss, by Red Hat, 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 ...
Java
uberfire-extensions/uberfire-widgets/uberfire-widgets-commons/src/main/java/org/uberfire/ext/widgets/common/client/tables/ResizableHeader.java
mbiarnes/uberfire
apache-2.0
7,363
203
codeparrot/github-code
3c62be71d9973d98901207910db1ad60c5d5b2e76c9e4b88e57505a2978cb6bc
/* * 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
hyracks-fullstack/algebricks/algebricks-core/src/main/java/org/apache/hyracks/algebricks/core/algebra/expressions/VariableReferenceExpression.java
kisskys/incubator-asterixdb
apache-2.0
3,560
115
codeparrot/github-code
dc39e29a1ea7c0a5d8460b52cb61b606df3e8572caf0450dfb25e672928a0792
/* * 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
ql/src/java/org/apache/hadoop/hive/ql/ddl/database/desc/DescDatabaseOperation.java
sankarh/hive
apache-2.0
3,352
83
codeparrot/github-code
4d0d0d4e6844da64b8ff86f5431cd24d621b0b157f200d13a4a89e8eb9b4dafa
sap.ui.define([], function () { "use strict"; return { /** * Rounds the currency value to 2 digits * * @public * @param {string} sValue value to be formatted * @returns {string} formatted currency value with 2 digits */ currencyValue : function (sValue) { if (!sValue) { return ""; } ...
JavaScript
w4u2/webapp/model/formatter.js
SAP/openSAP-ui5-course
apache-2.0
857
38
codeparrot/github-code
8f0593c7c32920a303f42789c8fc380369b934c5f841851374b4bf2048f38801
/* * Copyright 2003-2008 Dave Griffith, Bas Leijdekkers * * 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 applicab...
Java
plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/AnonymousInnerClassInspection.java
goodwinnk/intellij-community
apache-2.0
2,244
76
codeparrot/github-code
67aed8ffe213a99db61b33dd378b777db35573b782ef4621f13726cbcce51a53
/* * Copyright 2015 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 ...
Java
drools-wb-screens/drools-wb-guided-dtable-editor/drools-wb-guided-dtable-editor-client/src/test/java/org/drools/workbench/screens/guided/dtable/client/widget/analysis/condition/StringConditionInspectorConflictsTest.java
sdgdsffdsfff/drools-wb
apache-2.0
3,726
112
codeparrot/github-code
885b20e737fb676ca566461d3a813ba78368346ae8a44c20aa9d023c70b23a35
package org.semanticweb.elk.reasoner.indexing.caching; /* * #%L * ELK Reasoner * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2011 - 2014 Department of Computer Science, University of Oxford * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
Java
elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/indexing/caching/CachedIndexedClass.java
sesuncedu/elk-reasoner
apache-2.0
1,816
61
codeparrot/github-code
0ac926b94d4f98317acc7e81da4e58260dae429b6b53c903d3bc1aa882e669b9
/* * Copyright 2000-2014 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
xml/dom-impl/src/com/intellij/util/xml/tree/actions/BaseDomTreeAction.java
mdanielwork/intellij-community
apache-2.0
1,875
65
codeparrot/github-code
3960ff435fa74bfd366248450e5f80939c72c24af88905871b370ad17c64809b
/* * 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
src/main/java/org/apache/sysml/utils/Statistics.java
dusenberrymw/systemml
apache-2.0
29,635
871
codeparrot/github-code
4f3c8804a4c1f0e96264ca660564c59a8b6449045487e437a1590ab72a7b241d
/* * Copyright 2010-2012 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
Java
src/main/java/com/amazonaws/services/ec2/model/transform/RouteStaxUnmarshaller.java
XidongHuang/aws-sdk-for-java
apache-2.0
3,377
87
codeparrot/github-code
f7de9ae896bd85682c8f7c42de79a52379d5455d5336531d3e8f440c63117d18
/** * 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 m...
Java
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/rescheduleloan/handler/RejectLoanRescheduleRequestCommandHandler.java
Vishwa1311/incubator-fineract
apache-2.0
2,136
47
codeparrot/github-code
0624de8380f42f66d1ba9e7ea93ed0699a0be9719cbc89dc2b637acde30df816
from django.db import models from django.core.exceptions import MultipleObjectsReturned from expedient.clearinghouse.aggregate.models import Aggregate from expedient.common.permissions.shortcuts import must_have_permission from vt_plugin.models.VM import VM # Virtualization Plugin class class VtPlugin(Aggregate): ...
Python
expedient/src/python/plugins/vt_plugin/models/VtPlugin.py
dana-i2cat/felix
apache-2.0
3,112
72
codeparrot/github-code
9b8e31386f6c78ef9454a4ad07f979d03e56dee04895743c4e98348ac408f7b0
// 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
api/src/main/java/org/apache/cloudstack/api/response/CertificateResponse.java
GabrielBrascher/cloudstack
apache-2.0
1,997
59
codeparrot/github-code
e8c14463bc2d4810b200439dda8bd1dae2c9a76e6981544219e094aec5682dd5
import { get } from '@ember/object'; const SEARCH_FIELDS = ['displayName', 'id:prefix', 'displayState']; export function matches(fields, token, item) { let tokenMayBeIp = /^[0-9a-f\.:]+$/i.test(token); for ( let i = 0 ; i < fields.length ; i++ ) { let field = fields[i]; if ( field ) { // Modifiers...
JavaScript
lib/shared/addon/utils/search-text.js
westlywright/ui
apache-2.0
2,993
141
codeparrot/github-code
936af3efc9f9fb6fdb1557b71cf71f73c127ce7dd2d3bf3c5e5689645f078c21
"""Base classes for channels.""" import asyncio from enum import Enum from functools import wraps import logging from typing import Any, Union import zigpy.exceptions from homeassistant.core import callback from .. import typing as zha_typing from ..const import ( ATTR_ARGS, ATTR_ATTRIBUTE_ID, ATTR_ATTR...
Python
homeassistant/components/zha/core/channels/base.py
tboyce021/home-assistant
apache-2.0
12,609
383
codeparrot/github-code
d39461ecc9f9b8191cba13100d2823fd970d8319ef28b872ec8be4f6f55f220d
/* * Assorted DPCM codecs * Copyright (c) 2003 The FFmpeg project * * This file is part of FFmpeg. * * FFmpeg 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...
C
ffmpeg/src/main/jni/ffmpeg/libavcodec/dpcm.c
yangchaojiang/yjPlay
apache-2.0
14,275
400
codeparrot/github-code