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
3a608fa2b684c629a33bd3c1720d659ac0b70d60101cde12758f34f7080b8004
/* * Copyright (c) 2014, The Linux Foundation. All rights reserved. * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all copies. * THE SOFTWARE IS PROVIDED "AS ...
C
package/qca-ssdk-shell/src/src/fal_uk/fal_cosmap.c
paul-chambers/netgear-r7800
gpl-2.0
5,610
225
codeparrot/github-code
7ed43273517427832c7bcc8680d8f95a490f5ec7eaac7856969270684266f18a
<?php /** * @version: $Id: dbobject.php 4387 2015-02-19 12:24:35Z Radek Suski $ * @package: SobiPro Library * @author * Name: Sigrid Suski & Radek Suski, Sigsiu.NET GmbH * Email: sobi[at]sigsiu.net * Url: http://www.Sigsiu.NET * @copyright Copyright (C) 2006 - 2015 Sigsiu.NET GmbH (http://www.sigsiu.net). All ri...
PHP
components/com_sobipro/lib/models/dbobject.php
vstorm83/propertease
gpl-2.0
23,563
821
codeparrot/github-code
d54cf9a4bda7eb364234a3c92d2bbae8159fd395a881186a4d541d47c2ade84a
/* emul-target.h. Default values for struct emulation defined in emul.h Copyright 1995, 2007 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. GAS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
C
openlibs/binutils-2.19.51.0.12/gas/emul-target.h
wanghao-xznu/vte
gpl-2.0
1,715
65
codeparrot/github-code
1c0f84ce8d72aab077fa800185df20b4449973f208f73cab463feef7c2008725
/* * Copyright (c) 2016-2019 Projekt Substratum * This file is part of Substratum. * * SPDX-License-Identifier: GPL-3.0-Or-Later */ package projekt.substratum.common; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; impo...
Java
app/src/main/java/projekt/substratum/common/Broadcasts.java
nicholaschum/substratum
gpl-3.0
8,846
221
codeparrot/github-code
c967616c3556b6838e5dfca8427e3cc99f3fe69a8325a5938113358ae2285557
/** * 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
rocketmq-src/RocketMQ-3.4.6/rocketmq-client/src/main/java/com/alibaba/rocketmq/client/hook/SendMessageContext.java
y123456yz/reading-and-annotate-rocketmq-3.4.6
gpl-3.0
3,205
139
codeparrot/github-code
31d4d8dadb17a2836533b1404c57379fc8cbbee9619279f80c8d162ef6252b19
<?php /** * Nooku Framework - http://www.nooku.org * * @copyright Copyright (C) 2007 - 2013 Johan Janssens and Timble CVBA. (http://www.timble.net) * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> * @link git://git.assembla.com/nooku-framework.git for the canonical source repository */ namespace Noo...
PHP
library/object/set.php
jowillems/internet-platform
gpl-3.0
6,776
267
codeparrot/github-code
dccf36660206a0e1e7c75b3b99d13f78c17f8a6596e759516013a6a0cba261a4
<?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/lesson/lib.php
fwsl/moodle
gpl-3.0
55,138
1,492
codeparrot/github-code
f215fc1d539ca1966f08794b58da51bbac96df68fd069a8d5e1d48a4b60a608f
/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a BSD-style license that can * be found in the License.html file in the root of the source tree. */ //--------------------------------------------------------------------------- // Pre-compilation #include "Medi...
C++
src/thirdparty/MediaInfo/library/Source/MediaInfo/Archive/File_7z.cpp
xucp/mpc_hc
gpl-3.0
2,366
79
codeparrot/github-code
6566b347ba6c4e148a49ed733f071fc94d659e54c9f9d5e00eb27a0dc8ed5e35
/* ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio. This file is part of ChibiOS. ChibiOS 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
os/rt/src/chschd.c
serdzz/ChibiOS
gpl-3.0
19,314
611
codeparrot/github-code
6abbc64a0ee7db9ee42ffc63c30ad22050d1f96186a9577f85acc142566e3e22
#ifndef _SOCKS_H #define _SOCKS_H #pragma pack(push,1) struct socks5_method_request { char ver; char nmethods; char methods[255]; }; struct socks5_method_response { char ver; char method; }; struct xsocks_request { char atyp; char addr[0]; }; struct socks5_request { char ver; ch...
C
src/socks.h
fqtools/xsocks
gpl-3.0
1,438
87
codeparrot/github-code
82c2051430c2fff4410ab214ad891ced431f3e284cc265376715f9dc6526514a
''' Copyright (C) 2014 Travis DeWolf This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope t...
Python
Control/Controllers/target_list.py
russellgeoff/blog
gpl-3.0
2,121
71
codeparrot/github-code
3ca641f0c6b05d24cade472299b7e8cd7d20f4d4ed85bea14dd4c81d4c73de67
/*==LICENSE==* CyanWorlds.com Engine - MMOG client, server and tools Copyright (C) 2011 Cyan Worlds, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at you...
C
Sources/Plasma/PubUtilLib/plAvatar/plScalarChannel.h
cwalther/Plasma-nobink
gpl-3.0
10,792
363
codeparrot/github-code
82d6d3899e0bb2f90da0150f28494acb4e45323bd5c9e38e4c6683165cf9f853
///////////////////////////////////////////////////////////////////////////// // Name: wx/os2/frame.h // Purpose: wxFrame class // Author: David Webster // Modified by: // Created: 10/27/99 // RCS-ID: $Id$ // Copyright: (c) David Webster // Licence: wxWindows licence /////////////////////...
C
include/wxWidgets-2.9.2/include/wx/os2/frame.h
p0sixspwn/p0sixspwn
gpl-3.0
7,760
223
codeparrot/github-code
a6ed8b0ab091c038d376ab5b88ca54f3e39d512ce9f45d9eb943c0e4f53a16e7
using System; using System.Collections.Generic; using Antlr4.Runtime; using Rubberduck.Parsing.Symbols; using Rubberduck.UI; using Rubberduck.VBEditor; namespace Rubberduck.Inspections { public class IdentifierNotUsedInspectionResult : CodeInspectionResultBase { private readonly IEnumerable<CodeInspect...
C#
RetailCoder.VBE/Inspections/IdentifierNotUsedInspectionResult.cs
r14r/fork_vba_rubberduck
gpl-3.0
2,194
60
codeparrot/github-code
302a37184e2a017380bc21c9c59e1722943ede4cb502121652ef893c1e280e49
/* Copyright (c) 2001-2008, The HSQL Development Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list...
Java
workspace/hsqldb/src/org/hsqldb/sample/Testdb.java
ckaestne/LEADT
gpl-3.0
7,388
202
codeparrot/github-code
4ade7493729eaaa447f465fab7fc81b4d09a25899dfec59667d1695b7f30e8c0
/* Unix SMB/CIFS implementation. DNS server utils Copyright (C) 2010 Kai Blin <kai@samba.org> 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
source4/dns_server/dns_utils.c
framon/samba
gpl-3.0
10,153
408
codeparrot/github-code
31b78308a8bb262d04dcbf3508d55bb33b7ac9c8e9127e599955f2b777eae8e2
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* ==================================================================== * Copyright (c) 2008 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
C
v1/robot-node/stt/pocketsphinx/src/libpocketsphinx/ngram_search_fwdflat.c
michael-chi/jumbo
gpl-3.0
33,675
966
codeparrot/github-code
28c3615157b2e2f6de41abec958d2aa2ecd05b310120f0da074a3a234df350fb
/************************************************************************************************** Survey changes: copyright (c) 2010, Fryslan Webservices TM (http://survey.codeplex.com) NSurvey - The web survey and form engine Copyright (c) 2004, 2005 Thomas Zumbrunn. (http://www.nsurvey.org) This program is ...
C#
SurveyWAP/NSurveyAdmin/UsersManager.aspx.cs
samdubey/surveyproject_main_public
gpl-3.0
5,993
194
codeparrot/github-code
20f17b0be43e1b55a9671d1e4c3383bae611ed19b3c1c5de41d993576f891997
// Copyright 2019-2020 CERN and copyright holders of ALICE O2. // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. // All rights not expressly granted are reserved. // // This software is distributed under the terms of the GNU General Public // License v3 (GPL Version 3), copied verbatim...
C
DataFormats/Detectors/ITSMFT/common/include/DataFormatsITSMFT/TopologyDictionary.h
noferini/AliceO2
gpl-3.0
8,011
185
codeparrot/github-code
472d68600494a1d245ba3b6d7bee5b7f740f61abd2f63f44a2eb6f13c6884226
# -*- coding: utf-8 -*- # Copyright (c) 2008-2013 Erik Svensson <erik.public@gmail.com> # Licensed under the MIT license. import sys import datetime from core.transmissionrpc.constants import PRIORITY, RATIO_LIMIT, IDLE_LIMIT from core.transmissionrpc.utils import Field, format_timedelta from six import integer_types...
Python
core/transmissionrpc/torrent.py
bbsan2k/nzbToMedia
gpl-3.0
16,349
484
codeparrot/github-code
c70890ca553c62b93f5526400934898c298c40012714a531192797414a9445e0
package view.rendes; import java.awt.Graphics; import java.awt.Shape; import java.awt.geom.RoundRectangle2D; import javax.swing.JTextField; public class RoundJTextField extends JTextField { private Shape shape; public RoundJTextField(int size) { super(size); setOpaque(false); // A...
Java
postHotelSonrisa/src/view/rendes/RoundJTextField.java
gihon19/postHotelSonrisa
gpl-3.0
992
30
codeparrot/github-code
c1482801d33d34fcf0756c6bfaf0166c01dcce68fa878653b66f764e266dd847
/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following lice...
Java
connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
jvanz/core
gpl-3.0
3,316
91
codeparrot/github-code
240fa1a3714e05d699d819b10b92904cf958528d5f523b4829654f89aa5b78a1
// ---------------------------------------------------------------------- // <copyright file="TMAPcontrol.cs" company="none"> // Copyright (C) 2012 // // 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 Fr...
C#
Plugins/NINOKUNI/NINOKUNI/TMAPcontrol.cs
pleonex/tinke
gpl-3.0
2,687
85
codeparrot/github-code
5d9ab13a94a173539067568f83e7532279c57e1434be0ae8bc6041754df30260
package cn.nukkit.redstone; import cn.nukkit.block.Block; import cn.nukkit.block.BlockRedstoneWire; import cn.nukkit.block.BlockSolid; import cn.nukkit.math.Vector3; import java.util.*; /** * author: Angelic47 * Nukkit Project */ public class Redstone { public static final int POWER_NONE = 0; public stat...
Java
src/main/java/cn/nukkit/redstone/Redstone.java
Niall7459/Nukkit
gpl-3.0
8,365
182
codeparrot/github-code
e6a0179a64ca6d0fcf915c9ad58fbf0a63c7f7b2da8a190f8b0c280845081926
include("dat/factions/spawn/common.lua") include("dat/factions/spawn/mercenary_helper.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < pbm then pilots = spawnLtMerc("Frontier") elseif r < 0.5 then scom.addPilot( pilots, "...
Lua
dat/factions/spawn/frontier.lua
jayman39tx/naev
gpl-3.0
1,978
81
codeparrot/github-code
6a5a88ac2cf7ef0150195b44d7da565b648660406aac7178a222e4079d87fbd9
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
Python
sensorimotor/sensorimotor/sensorimotor_experiment_runner.py
pford68/nupic.research
gpl-3.0
9,403
261
codeparrot/github-code
d416e25eded4391b90ec45566a4a6f29d531ff0c2bf0ad8ace441892fc90b316
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
C++
src/plugins/qmldesigner/components/formeditor/resizecontroller.cpp
qtproject/qt-creator
gpl-3.0
11,008
321
codeparrot/github-code
d564b1f182944d527bed08e9fc90b29d15c61c0376f3f791c2a42a1c095680c0
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkPathEffect.h" #include "SkPictureRecorder.h" #include "SkShadowPaintFilterCanvas.h" #include "SkShadowShader.h" #include "SkSurface.h" #ifdef SK_...
C++
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/skia/gm/shadowmaps.cpp
geminy/aidear
gpl-3.0
3,576
118
codeparrot/github-code
17d91a91b33311bc122a52eba7baa8c5ebd6b6019bd809f174358ec527800cfd
// -*- Mode: Go; indent-tabs-mode: t -*- /* * Copyright (C) 2019 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
cmd/snap/cmd_model.go
mvo5/snappy
gpl-3.0
12,390
410
codeparrot/github-code
8ca3240a7b9a28bcdff82a7adc7db52bed9cbc70b3d7c664c4e66f896efef35c
using System.Collections.Generic; using System.Linq; namespace PKHeX.Core { /// <summary> /// Editor object that unpacks <see cref="EventWork{T}"/> into flags & work groups, and handles value get/set operations. /// </summary> /// <typeparam name="T"></typeparam> public sealed class SplitEventEdit...
C#
PKHeX.Core/Editing/Saves/Editors/EventWork/SplitEventEditor.cs
ReignOfComputer/PKHeX
gpl-3.0
2,432
68
codeparrot/github-code
48789079d5504bd9e06688df902dfc0d67c4af7ae00d792fd4a8d41e6ab11d04
#if defined(__ppc__) || defined(__ppc64__) /* ----------------------------------------------------------------------- ffi.c - Copyright (c) 1998 Geoffrey Keating PowerPC Foreign Function Interface Darwin ABI support (c) 2001 John Hornkvist AIX ABI support (c) 2002 Free Software Foundation, Inc. Permi...
C
src/libffi/powerpc/ppc-ffi_darwin.c
LubosD/darling
gpl-3.0
43,697
1,767
codeparrot/github-code
eaa9455a7a7bb9f9c2616b64bebbceec677711af65eed06c609933c91465f748
/** ************************************************************************** * request.c * * Copyright 2008 Bryan Ischo <bryan@ischo.com> * * This file is part of libs3. * * libs3 is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by ...
C
src/request.c
irods/libs3_original
gpl-3.0
50,518
1,401
codeparrot/github-code
d542cd60c4578a30d195233e9dd0bee64510e1947c7e941a983d3e2f28ddcc71
modules.define( 'spec', ['button', 'i-bem__dom', 'chai', 'jquery', 'BEMHTML'], function(provide, Button, BEMDOM, chai, $, BEMHTML) { var expect = chai.expect; describe('button_type_link', function() { var button; beforeEach(function() { button = buildButton({ block : 'button',...
JavaScript
common.blocks/button/_type/button_type_link.spec.js
dojdev/bem-components
mpl-2.0
2,043
69
codeparrot/github-code
8a8b592e93fb3fc6f9d12d6d1adbdd81118b8c91719fe762a1fd0082140051f0
/** * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * ba...
Java
app/src/us/mn/state/health/lims/codeelementtype/action/CodeElementTypeNextPreviousAction.java
mark47/OESandbox
mpl-2.0
5,173
150
codeparrot/github-code
5b538909b58d8c6eff96287e4a66b102c62292cd7e59599868f62991cb36ddc5
import java.util.Scanner; public class SegmentTree { private static class Node { public int left, right; public long add, sum; public Node(int left, int right, long sum) { this.left = left; this.right = right; this.sum = sum; }...
Java
java/Sets/src/SegmentTree.java
DevinZ1993/Pieces-of-Code
mpl-2.0
3,871
132
codeparrot/github-code
1f5e8ab294d918fac43cff8238c64441f1ef97f04fa04807fc2f22af6a20a749
{% extends "demos/base.html" %} {% block body_attributes %}id="demostudio"{% endblock %} {% block bodyclass %}section-demos landing {% if is_demo_home %}section-demos-home{% endif %}{% endblock %} {% block extrahead %} <link rel="alternate" type="application/atom+xml" title="{{_('Recent demos')}}" href="...
HTML
kuma/demos/templates/demos/home.html
jezdez/kuma
mpl-2.0
12,292
331
codeparrot/github-code
56572e4ba9846ff7cd511777df429b78cb79573e59240bd68c6e0d2db8fa0d3b
"""This *was* the parser for the current HTML format on parl.gc.ca. But now we have XML. See parl_document.py. This module is organized like so: __init__.py - utility functions, simple parse interface common.py - infrastructure used in the parsers, i.e. regexes current.py - parser for the Hansard format used from 200...
Python
parliament/imports/hans_old/current.py
twhyte/openparliament
agpl-3.0
11,722
245
codeparrot/github-code
beec16768792397c70593cd362491b1a98ed54343b49444e3d5ada0936281026
/* * This file is part of ToroDB. * * ToroDB 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, or * (at your option) any later version. * * ...
Java
torod/torod-core/src/main/java/com/torodb/torod/core/language/querycriteria/IsGreaterOrEqualQueryCriteria.java
ahachete/torodb
agpl-3.0
1,681
54
codeparrot/github-code
7ad2c511e2a6e785ad1b70c069bfbc4ac874645c93d4914ca0ad08214cf828e5
/* * This file is part of CoAnSys project. * Copyright (c) 2012-2015 ICM-UW * * CoAnSys 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, or * (at your option) any...
Java
disambiguation-author/disambiguation-author-logic/src/main/java/pl/edu/icm/coansys/disambiguation/author/pig/merger/MergeDocumentWithOrcid.java
acz-icm/coansys
agpl-3.0
6,921
193
codeparrot/github-code
d9461f4b1a54251e9b81de32864cc96569b70709c146f15707e3d7ab0611b6b5
// Copyright 2020 Canonical Ltd. // Licensed under the AGPLv3, see LICENCE file for details. package azuretesting import ( "encoding/json" "reflect" ) // JsonMarshalRaw does the same a json.Marshal, except that it does not // use the MarshalJSON methods of the value being marshaled. If any types // are specified i...
GO
provider/azure/internal/azuretesting/json.go
freyes/juju
agpl-3.0
2,870
118
codeparrot/github-code
b79a58392724bae3909bfe446a0e1629f3ec78c62d12551154a129ee5bc16d7d
<?php /********************************************************************************* * TimeTrex is a Payroll and Time Management program developed by * TimeTrex Software Inc. Copyright (C) 2003 - 2014 TimeTrex Software Inc. * * This program is free software; you can redistribute it and/or modify it under * the...
PHP
classes/modules/api/accrual/APIAccrualBalance.class.php
BrunoChauvet/timetrex
agpl-3.0
4,549
103
codeparrot/github-code
3dc80d6a365523dab507860fb3670089d481eb85fd5709b17683337f97a37a16
Clazz.declarePackage ("org.jmol.shapespecial"); Clazz.load (["org.jmol.shape.AtomShape", "org.jmol.atomdata.RadiusData", "org.jmol.util.BitSet"], "org.jmol.shapespecial.Dots", ["java.util.Hashtable", "org.jmol.constant.EnumVdw", "org.jmol.geodesic.EnvelopeCalculation", "org.jmol.util.BitSetUtil", "$.Colix", "$.Escape",...
JavaScript
static/jsmol/j2s/org/jmol/shapespecial/Dots.js
ksripathi/edx-demo-course
agpl-3.0
7,637
194
codeparrot/github-code
203017007267d9482a93eca076a9f3d495e745fc15898199b67f0fc5f22e37d4
import re import uuid from xmodule.assetstore.assetmgr import AssetManager XASSET_LOCATION_TAG = 'c4x' XASSET_SRCREF_PREFIX = 'xasset:' XASSET_THUMBNAIL_TAIL_NAME = '.jpg' STREAM_DATA_CHUNK_SIZE = 1024 import os import logging import StringIO from urlparse import urlparse, urlunparse, parse_qsl from urllib import ...
Python
common/lib/xmodule/xmodule/contentstore/content.py
MakeHer/edx-platform
agpl-3.0
14,964
379
codeparrot/github-code
7ff3f9b1ab6492dfacab524c82ff8443157f1b8babb544e73a4021f23a01dc67
# -*- coding: utf-8 -*- # Copyright(C) 2010-2015 Julien Veyssier, Laurent Bachelier # # This file is part of weboob. # # weboob 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 L...
Python
modules/piratebay/browser.py
sputnick-dev/weboob
agpl-3.0
2,463
69
codeparrot/github-code
84768ce1766fa0dd054eca4cf7f25b1d153e40babb1ab64ea09eabbd31553ad6
/******************************************************************************* * This file is part of OpenNMS(R). * * Copyright (C) 2007-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
core/tasks/src/main/java/org/opennms/core/tasks/AsyncTask.java
aihua/opennms
agpl-3.0
3,889
122
codeparrot/github-code
cf858ce4ea42ebe2fbae7e874f74f1a77bb00cc1c3393e08d1cb03915ea3d06c
# frozen_string_literal: true class Settings::PreferencesController < ApplicationController layout 'admin' before_action :authenticate_user! def show; end def update user_settings.update(user_settings_params.to_h) if current_user.update(user_params) I18n.locale = current_user.locale red...
Ruby
app/controllers/settings/preferences_controller.rb
TootCat/mastodon
agpl-3.0
946
44
codeparrot/github-code
3a6cad3d80f8653b0cfbdd48009b76a8014c6d7852ef60623adbd347a7d97b4c
/*- * 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_rmdir -- * Remove a directory. */ int __os_rmdir(env, name) ENV *env; const char *name; { DB_ENV *db...
C
src/os_windows/os_rmdir.c
zheguang/BerkeleyDB
agpl-3.0
763
43
codeparrot/github-code
37ee17e889d6b5a650ad7fd242119a7a92454421a43d0388f403dcc334b5c0c7
"""This module implement decorators for wrapping data sources so as to simplify their construction and attribution of properties. """ import functools def data_source_generator(name=None, **properties): """Decorator for applying to a simple data source which directly returns an iterable/generator with the me...
Python
venv/lib/python2.7/site-packages/newrelic-2.46.0.37/newrelic/samplers/decorators.py
GbalsaC/bitnamiP
agpl-3.0
1,626
49
codeparrot/github-code
31a49c74eeed7c821b71098025db23f6c3f92ba101e9abd8131caec760706696
<?php if (!defined('sugarEntry') || !sugarEntry) { die('Not A Valid Entry Point'); } /** * * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * * SuiteCRM is an extension to SugarCRM Community Edition developed by Sales...
PHP
include/utils/LogicHook.php
JimMackin/SuiteCRM
agpl-3.0
9,433
269
codeparrot/github-code
835589f2509f5ac4cbada6e1c0a1cf0460d38c753c1c7739bdd53bb837047c0e
package tc.oc.api.ocn; import java.util.Collection; import javax.inject.Singleton; import com.google.common.util.concurrent.ListenableFuture; import tc.oc.api.docs.MapRating; import tc.oc.api.docs.virtual.MapDoc; import tc.oc.api.docs.virtual.UserDoc; import tc.oc.api.exceptions.NotFound; import tc.oc.api.http.HttpOp...
Java
API/ocn/src/main/java/tc/oc/api/ocn/OCNMapService.java
OvercastNetwork/ProjectAres
agpl-3.0
1,908
49
codeparrot/github-code
fe2aef0a23ad6166193aa901eaccdfa7241a1b61a9b9bd1b0f81f51792fda1f9
/*-------------------------------------------------------------------- Copyright (c) 2011 Local Projects. All rights reserved. Licensed under the Affero GNU GPL v3, see LICENSE for more details. --------------------------------------------------------------------*/ tc.gam.widgetVisibilityHandler = function(option...
JavaScript
static/js/tc.gam.widget-visibility-handler.js
localprojects/Change-By-Us
agpl-3.0
2,065
67
codeparrot/github-code
1e125bcf4066546668310492c7f9793d0d76059072556131fecb3730c7b5fa17
/* * This library is part of OpenCms - * the Open Source Content Management System * * Copyright (c) Alkacon Software GmbH (http://www.alkacon.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 So...
Java
src-modules/org/opencms/workplace/tools/content/CmsPropertyDelete.java
serrapos/opencms-core
lgpl-2.1
15,467
377
codeparrot/github-code
e17a616f66397be49e95ffd8497e80c8d244c091ea8c5612b6e2742ffd9797dd
#!/usr/bin/python import math import Sofa def tostr(L): return str(L).replace('[', '').replace("]", '').replace(",", ' ') def transform(T,p): return [T[0][0]*p[0]+T[0][1]*p[1]+T[0][2]*p[2]+T[1][0],T[0][3]*p[0]+T[0][4]*p[1]+T[0][5]*p[2]+T[1][1],T[0][6]*p[0]+T[0][7]*p[1]+T[0][8]*p[2]+T[1][2]] def transformF(T,F): re...
Python
applications/plugins/Flexible/examples/patch_test/FEM.py
FabienPean/sofa
lgpl-2.1
6,005
138
codeparrot/github-code
0ae66bb3e8060eb982420b91760780148e7e679b30dc6ec1f53b85ce7c10373f
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this f...
C
share/qtcreator/qml/qmlpuppet/qmlpuppet/instances/positionernodeinstance.h
farseerri/git_code
lgpl-2.1
2,469
69
codeparrot/github-code
04da38fe1deb50f66dbe4f37deb2d4fd838e769ea83605a13a7b5e009a02e856
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Serf(SConsPackage): """Apache Serf - a high performance C-based HTTP client library bu...
Python
var/spack/repos/builtin/packages/serf/package.py
LLNL/spack
lgpl-2.1
3,412
90
codeparrot/github-code
b17bbdaa9224319b8754342924809737e026e6f2705cefb6eea60d5c36564096
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this f...
C++
src/plugins/qmljstools/qmlconsoleview.cpp
AltarBeastiful/qt-creator
lgpl-2.1
10,425
275
codeparrot/github-code
41fd28fd72b26c4fa09859db99dcc202e6fb0cda45602b514a07c16ea6d74827
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>LCOV - doc-coverage.info - Ninject/Azure/Cqrs.Ninject.Azure.BlobStorage/Configuration/BlobStorageDataStoreModule.cs</title> <link rel="stylesheet" ty...
HTML
wiki/docs/2.1/coverage-report/Ninject/Azure/Cqrs.Ninject.Azure.BlobStorage/Configuration/BlobStorageDataStoreModule.cs.gcov.html
cdmdotnet/CQRS
lgpl-2.1
7,400
127
codeparrot/github-code
d7eff1a9db83569f544bfaab1dd5e457761ff6431b23c9bc409c7e1c5f3af554
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtXmlPatterns module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Li...
C++
src/xmlpatterns/utils/qdelegatingnamespaceresolver.cpp
RLovelett/qt
lgpl-2.1
3,480
93
codeparrot/github-code
63fcd4deba907ba9ac0646869201e449fe7dbc4cc095e4ed6a1dfa6f14f4372d
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Qnnpack(CMakePackage): """QNNPACK (Quantized Neural Networks PACKage) is a mobile-optimize...
Python
var/spack/repos/builtin/packages/qnnpack/package.py
LLNL/spack
lgpl-2.1
3,348
91
codeparrot/github-code
f601327ea34ead50c439e6c953be476b46d2110e92e659cb04827d790df2e109
/* ********************************************************** * Copyright (c) 2012 Google, Inc. All rights reserved. * Copyright (c) 2009 VMware, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * mo...
C
tools/nudgeunix.c
bl4ckic3/dynamorio
lgpl-2.1
5,878
153
codeparrot/github-code
07fd98b7ea537c23317f67d054cff81e2d641975209e37df7eeaec5e69796362
package org.auscope.portal.core.util; import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import javax.xml.XMLConstants; import javax.xml.namespace.NamespaceContext; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerExceptio...
Java
src/test/java/org/auscope/portal/core/util/TestDOMUtil.java
jia020/portal-core
lgpl-3.0
4,481
134
codeparrot/github-code
2cde6e0c7608cdb3cb7e9b902f957c9be2f2b71ad83c574b8fdaa0b634868bcf
package org.auscope.portal.core.services.responses.vocab; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.xml.parsers.ParserConfigurationException; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathException; import org.auscope.por...
Java
src/test/java/org/auscope/portal/core/services/responses/vocab/TestConceptFactory.java
jia020/portal-core
lgpl-3.0
6,879
169
codeparrot/github-code
4abdb08b9271c3e010911b8b19da60a125d9b13735cea3d6175cb74ba401d6a9
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, /...
C#
trunk/tools/Json.Net/Source/Src/Newtonsoft.Json/Schema/JsonSchemaWriter.cs
consumentor/Server
lgpl-3.0
8,104
214
codeparrot/github-code
6be2fe73b031205e539c1960738ba1aa3b1da644c48cb809478c71dc7247b4ba
/** * This file is part of FNLP (formerly FudanNLP). * * FNLP 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. * * FNLP...
Java
fnlp-core/src/main/java/org/fnlp/util/exception/LoadModelException.java
xpqiu/fnlp
lgpl-3.0
1,460
46
codeparrot/github-code
fa99459a7efaa7f5a2550d54345f12cbe74d111464e153e583af4d48f05a4ae7
namespace StockSharp.Algo.Export { using System; using System.Collections.Generic; using System.Linq; using System.Xml; using Ecng.Common; using StockSharp.BusinessEntities; using StockSharp.Messages; /// <summary> /// Ýêñïîðò â xml. /// </summary> public class XmlExporter : BaseExporter { private cons...
C#
Algo/Export/XmlExporter.cs
donaldlee2008/StockSharp
lgpl-3.0
11,023
339
codeparrot/github-code
be41c9395437e85bf348dbfa405fd917d293a133e31729ae0b161b59a79a76db
/**** * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development. * Created 2015 by Skurydin Alexey * http://github.com/anakod/Sming * All files of the Sming Core are provided under the LGPL v3 license. ****/ /** @defgroup httpconsts HTTP constants to be used with HTTP clie...
C
Sming/SmingCore/Network/WebConstants.h
blinkingnoise/Sming
lgpl-3.0
2,619
93
codeparrot/github-code
c316fad2c7948aad70871c1d8dcdd5490a6542aaaafb64b126d6cf1c319e8200
/* linalg/tridiag.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002, 2004, 2007 Gerard Jungman, Brian Gough, David Necas * * 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 ver...
C
sources_5401/external/gsl/gsl_linalg__tridiag.c
PeterWolf-tw/NeoPraat
lgpl-3.0
15,815
581
codeparrot/github-code
8f6613b6a41a4d6f342d19317b7697ecb73cbd1492d50bd41349c57a16ac5152
use clippy_utils::diagnostics::{span_lint_and_sugg, span_lint_and_then}; use clippy_utils::get_parent_node; use clippy_utils::source::snippet_with_context; use clippy_utils::sugg; use clippy_utils::ty::is_copy; use rustc_errors::Applicability; use rustc_hir::{BindingAnnotation, Expr, ExprKind, MatchSource, Node, PatKin...
Rust
src/tools/clippy/clippy_lints/src/methods/clone_on_copy.rs
graydon/rust
apache-2.0
5,174
133
codeparrot/github-code
7394cbd135fd04a821c23d1a66cc6fa01dc68a62d511dfabcd9205c415c9d3ae
/* * 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
qpid-jms-client/src/test/java/org/apache/qpid/jms/integration/JMSContextIntegrationTest.java
apache/qpid-jms
apache-2.0
7,660
199
codeparrot/github-code
7ec86cdefe36b40edb8385d96ee62cad8c1959aeb9f5de399e93b2c730a737d2
/* * 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-elasticsearch-rest/src/test/java/org/apache/camel/component/elasticsearch/ElasticsearchRestComponentVerifierExtensionTest.java
objectiser/camel
apache-2.0
2,756
67
codeparrot/github-code
13a1c692ad13c5efea25b4c0e61a4bebfea0500c88afa667b659e52282559c74
package org.apereo.cas.authentication; import com.google.common.base.Splitter; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.services.MultifactorAuthenticationProvider; import org.apereo.cas.services.RegisteredService; import org.apereo.cas.services.RegisteredServiceMultifactorPolicy;...
Java
core/cas-server-core-services/src/main/java/org/apereo/cas/authentication/DefaultMultifactorTriggerSelectionStrategy.java
creamer/cas
apache-2.0
4,960
110
codeparrot/github-code
73cc439d8b0d05fde25709b2c2ce3df728778f3768a04ebdc4aba70e1e1828fa
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2017 F5 Networks Inc. # # This file is part of Ansible # # Ansible 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 # ...
Python
library_old/iworkflow_license_pool.py
mcgonagle/ansible_f5
apache-2.0
10,879
370
codeparrot/github-code
da4c3d6a029121c8468e7eb130fc4662b4b5310f5de6665564fbfc6c39681e57
/* * 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/core/src/main/java/org/apache/jmeter/gui/HtmlReportAction.java
apache/jmeter
apache-2.0
2,972
93
codeparrot/github-code
d0f8325d795163f03f24e7303ab03aac3f8665522318720faeb5e13aac659936
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
Java
src/main/java/org/camunda/bpm/model/bpmn/impl/instance/camunda/CamundaConnectorImpl.java
camunda/camunda-bpmn-model
apache-2.0
3,445
85
codeparrot/github-code
14142bf3383b7cd0fb8b0bc47424a6af42b6d334e619b5e0e9a7ae3fea3bddad
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/librustc_back/target/apple_ios_base.rs
richo/rust
apache-2.0
3,192
101
codeparrot/github-code
145917c684f4099cbe64320a3edbe9b9c48b5c93b505c2c294042ed374b3ae76
/* * Copyright 2000-2015 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
python/educational-core/student/src/com/jetbrains/edu/learning/stepic/StudyCoursesUpdater.java
Soya93/Extract-Refactoring
apache-2.0
2,161
63
codeparrot/github-code
f13050e2245951c85e253fb14ac8d39f7325da88ce27a819ea3abb4d1da148e3
/* * 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 ma...
Java
deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/config/ConfigResolverTest.java
sbryzak/DeltaSpike
apache-2.0
1,482
47
codeparrot/github-code
16f42f333872e8249dcf774d7e144bfafdb34f0bdd5d8925dbc9a26c73fbe456
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>selenium.webdriver.remote.webelement &mdash; Seleni...
HTML
docs/api/py/webdriver_remote/selenium.webdriver.remote.webelement.html
sebady/selenium
apache-2.0
35,220
567
codeparrot/github-code
7ba40cbf4c243287f90651a75bb566fb303b9d048a40959690211c6b2f6c887e
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Licen...
Java
core/src/main/java/io/undertow/conduits/ReadTimeoutStreamSourceConduit.java
rhusar/undertow
apache-2.0
8,603
247
codeparrot/github-code
193fae8e410f02bae4f1aa0bd061677f7ceb6b0527c265493a128463eeb06edb
// Copyright (c) 2019 The Jaeger Authors. // Copyright (c) 2017 Uber Technologies, 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 //...
GO
pkg/cache/lru.go
uber/jaeger
apache-2.0
4,507
176
codeparrot/github-code
3de63d55e0cb0affc61a946efa8f44a32a592161b79b3b9baf4abad60deecdfd
/* * 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
jbpm-test-coverage/src/test/java/org/jbpm/test/functional/gateway/ParallelGatewayAsyncTest.java
droolsjbpm/jbpm
apache-2.0
3,008
93
codeparrot/github-code
5c021bb62cd6e98b7f19b4070a8ba48e26793678bdee66a671320f4a7cb53255
require_relative '../../puppet_x/puppetlabs/property/tag.rb' require_relative '../../puppet_x/puppetlabs/property/region.rb' require_relative '../../puppet_x/puppetlabs/aws_ingress_rules_parser' Puppet::Type.newtype(:ec2_securitygroup) do @doc = 'type representing an EC2 security group' ensurable newparam(:nam...
Ruby
lib/puppet/type/ec2_securitygroup.rb
gregohardy/puppetlabs-aws
apache-2.0
1,842
64
codeparrot/github-code
b12fd677291deecd4e39b1bb7a7a9e0e0eba13012504ee0214cb2ebedc06e854
# ./darwinpush/xb/raw/sm.py # -*- coding: utf-8 -*- # PyXB bindings for NM:8eb48f8f0e727f488907a816c69d6ed98ba221c7 # Generated 2015-04-23 16:42:14.513978 by PyXB version 1.2.4 using Python 3.4.1.final.0 # Namespace http://www.thalesgroup.com/rtti/PushPort/StationMessages/v1 [xmlns:sm] from __future__ import unicode_l...
Python
darwinpush/xb/raw/sm.py
HackTrain/darwinpush
apache-2.0
22,743
408
codeparrot/github-code
115d561038092e2ace2b27347ec0fd4660a3163fa4733c9ed6975979a4a1efc6
/** * 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
wave/src/test/java/org/waveprotocol/wave/client/editor/content/paragraph/RenumbererTestBase.java
vega113/incubator-wave
apache-2.0
16,472
506
codeparrot/github-code
0455ae644a863e91b7097729a3ea675d5f95cbc8194f2ce828027bbb95768c27
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
server/src/main/java/io/druid/server/initialization/jetty/ChatHandlerServerModule.java
fjy/druid
apache-2.0
3,297
79
codeparrot/github-code
cf6ead44497ec850b4dac7e99aa27793041629fb8af7fce13b73641beb443fd4
/* * 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 not ...
Java
geode-lucene/src/distributedTest/java/org/apache/geode/cache/lucene/EvictionDUnitTest.java
masaki-yamakawa/geode
apache-2.0
6,321
150
codeparrot/github-code
b020a197988df97194ec3c990794a0e7d6a929063b7d9957796bceb94c9e9376
{# 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 not u...
HTML
airflow/www_rbac/templates/appbuilder/baselayout.html
edgarRd/incubator-airflow
apache-2.0
2,373
76
codeparrot/github-code
05d95157e0ad5cbbb5197ac07439e6906860fa09f624f4e4e727b993b076a2c8
if (!this["output"]) output = print; var passed = 0; var failed = 0; function is(got, expected, msg) { if (got == expected) { output("OK: " + msg); ++passed; } else { output("FAIL: " + msg); output("Expected |" + expected + "|"); output(" Got |" + got + "|"); ++failed; } } function...
JavaScript
webinos/core/manager/synchronisation_manager/lib/json-sync-master/test.js
krishnabangalore/Webinos-Platform
apache-2.0
24,453
734
codeparrot/github-code
630b19b106b25bb7180ef2d1f8dbdf9670fe7763dc78f1739ab4d4e33820a40a
/* * 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/src/main/java/org/apache/calcite/util/TimeString.java
xhoong/incubator-calcite
apache-2.0
7,356
228
codeparrot/github-code
201f2df60c8ef4a075c3fb207f0b296814e6a28169f67aa8fff764732a6f2392
Imports System.Collections.Immutable Imports System.Reflection Imports System.Runtime.InteropServices Imports Microsoft.CodeAnalysis.Collections Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Roslyn.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator Friend Delegate Function Ge...
Visual Basic
src/ExpressionEvaluator/VisualBasic/Source/ExpressionCompiler/Symbols/EEMethodSymbol.vb
DavidKarlas/roslyn
apache-2.0
24,288
559
codeparrot/github-code
accdd6543883671d8134134cee8d1639a09a052688e05c0f8b639b5aa45b6658
# # Cookbook Name:: graphite # Library:: ChefGraphite # # Copyright 2014, Heavy Water Ops, LLC # # 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 #...
Ruby
libraries/chef_graphite.rb
mbabic/graphite
apache-2.0
2,028
85
codeparrot/github-code
ef7de26b4a896f3e4bd9996b15d12be3289e5dd12130324ed49204a733e9f87f
/** * <copyright> * Copyright (c) 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * *...
Java
bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/adapters/MessageExchangesAdapter.java
chanakaudaya/developer-studio
apache-2.0
2,792
98
codeparrot/github-code
760d2a826577491ed199318c449a6e15f1a238b77d34851ea01ed6f4a335e844
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
Java
uportal-war/src/main/java/org/jasig/portal/layout/dlm/DeleteManager.java
mgillian/uPortal
apache-2.0
8,567
240
codeparrot/github-code
04f404aaa2d7620541f7d71ad01aa4abe9e96468184d60e64d881474577edb7d
package com.webtrends.harness.command.typed import akka.actor.{Actor, ActorRef, Props} import akka.pattern._ import akka.util.Timeout import com.webtrends.harness.HarnessConstants import scala.concurrent.duration._ import scala.concurrent.{ExecutionContext, Future} trait TypedCommandHelper { this: Actor => var ty...
Scala
wookiee-core/src/main/scala/com/webtrends/harness/command/typed/TypedCommandHelper.scala
Crashfreak/wookiee
apache-2.0
1,064
34
codeparrot/github-code
bbed141e4b64d442642c6f229001fb938f9c01bd9d6b65fe5e6e645c65f9d9b5
/* * Copyright (c) 2013-2016 Cinchapi 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 a...
Java
concourse-server/src/main/java/com/cinchapi/concourse/server/model/Position.java
remiemalik/concourse
apache-2.0
5,815
198
codeparrot/github-code
609535d6cd53500d4a0e09fdab3c01398c52c19c574d0fdc12754d968fb7b516
<?php /** * This example adds text ads to an ad group that uses upgraded URLs. * * To get ad groups, run GetAdGroups.php. * * Restriction: adwords-only * * Copyright 2014, Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in...
PHP
examples/AdWords/v201506/AdvancedOperations/AddTextAdWithUpgradedUrls.php
a1pro/adwordsAPI
apache-2.0
5,203
150
codeparrot/github-code
ba1be8f04d76f1b99577275735b96067abd9429fef81b44c5943dcd3e2e10fa3
from collections import OrderedDict from app.master.atom_grouper import AtomGrouper class TimeBasedAtomGrouper(object): """ This class implements the algorithm to best split & group atoms based on historic time values. This algorithm is somewhat complicated, so I'm going to give a summary here. ~~~~~...
Python
app/master/time_based_atom_grouper.py
nickzuber/ClusterRunner
apache-2.0
11,090
206
codeparrot/github-code
599e5515db9bc114167f83417ba8f2a0663a2748dbdfe6c1ee8212bc7ca9efa1
/** * Copyright 2020 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-a4a/0.1/head-validation.js
lannka/amphtml
apache-2.0
6,302
222
codeparrot/github-code
6aef8e804eade8949249e5b261896fe6bb53e49a97eaaa477b84cbf167bb5a47
/* * 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
vxquery-core/src/main/java/org/apache/vxquery/compiler/rewriter/rules/IntroduceTwoStepAggregateRule.java
prestoncarman/vxquery
apache-2.0
5,872
123
codeparrot/github-code
be096fb85773cbe9ba9ecde89ee1e414c8cbbc420a4d5c3e80bb0cf3b9b4e1b7
/* * Copyright 2000-2012 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/idea-ui/src/com/intellij/openapi/roots/ui/configuration/JdkComboBox.java
ThiagoGarciaAlves/intellij-community
apache-2.0
15,058
428
codeparrot/github-code