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
79e754e7e79113f7ebf6084d2192719f28c9f1841a3d82e71a01d229d656b6e4
/***************************************************************************** * * PROJECT: Multi Theft Auto v1.0 * (Shared logic for modifications) * LICENSE: See LICENSE in the top level directory * FILE: mods/shared_logic/CClientColSphere.cpp * PURPOSE: Sphere-shaped collis...
C++
Client/mods/deathmatch/logic/CClientColSphere.cpp
lopezloo/mtasa-blue
gpl-3.0
1,499
45
codeparrot/github-code
a37fbd787d9b5891c3f30e985f13cbd9507a8c1971b8a3a768c7296656f9e335
/***************************************************************************** * * PROJECT: Multi Theft Auto v1.0 * LICENSE: See LICENSE in the top level directory * FILE: mods/deathmatch/logic/packets/CDebugEchoPacket.cpp * PURPOSE: Debug message echo packet class * * Multi Theft Auto is...
C++
Server/mods/deathmatch/logic/packets/CDebugEchoPacket.cpp
lopezloo/mtasa-blue
gpl-3.0
1,056
37
codeparrot/github-code
e14f25403a87517934eb9434b629204d2b92bd3c603c2d5f5da822ae2faaa636
/* xoreos - A reimplementation of BioWare's Aurora engine * * xoreos is the legal property of its developers, whose names * can be found in the AUTHORS file distributed with this source * distribution. * * xoreos is free software; you can redistribute it and/or * modify it under the terms of the GNU General Publ...
C++
src/engines/witcher/nwscript/functions_module.cpp
Supermanu/xoreos
gpl-3.0
2,848
95
codeparrot/github-code
e70002bdd57ad478b71e58e0a855e212d0b6c90b841ab45a106452030f01a376
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- #include <AP_HAL/AP_HAL.h> #if CONFIG_HAL_BOARD == HAL_BOARD_SITL #include "AP_HAL_SITL.h" #include "AP_HAL_SITL_Namespace.h" #include "HAL_SITL_Class.h" #include "UARTDriver.h" #include <stdio.h> #include <signal.h> #include <unistd.h> #i...
C++
libraries/AP_HAL_SITL/SITL_cmdline.cpp
alexbuyval/ardupilot
gpl-3.0
7,967
253
codeparrot/github-code
83ca8a2aa5f2e8ac410743d2f43b3051bd8b5a7cea1cc6f33b3df95b70908f3c
/* Copyright (c) 2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
C
drivers/video/msm/mdss/mdss_hdmi_mhl.h
ZeroInfinityXDA/HelixKernel-EAS-HTC10
gpl-3.0
1,388
43
codeparrot/github-code
a77f9a9cbf4e9a8804f60d1bd0198ba2ac2c3be231f760855c33812f78934139
/***************************************************************************** * * PROJECT: Multi Theft Auto v1.0 * LICENSE: See LICENSE in the top level directory * FILE: mods/deathmatch/logic/CPlayerTasks.cpp * PURPOSE: Player tasks class * DEVELOPERS: Jax <> * * Multi Theft Auto is availabl...
C++
MTA10_Server/mods/deathmatch/logic/CPlayerTasks.cpp
google-code-export/multitheftauto
gpl-3.0
2,030
91
codeparrot/github-code
71422e7427abe8a0734da5dc8760d93b596b4c0122014e35d226a6eced4162bb
# -*- coding: utf8 -*- # Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import pep8 from linting import linter class Pep8Error(linter.LintError): """PEP-8 linting error class """ def __init__(self, filename, loc, o...
Python
anaconda_lib/linting/anaconda_pep8.py
alexfalcucc/anaconda
gpl-3.0
4,416
148
codeparrot/github-code
df5da9579e93d25c268627d19f016def8d1355e56bd3e37e9ffd5b3c52d004fe
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: AI Utility classes for building the initial AI Networks // // $Workfile: $ // $Date: $ // //----------------------------------------------------------------------------- // $Log: $ // // $NoKeywords: $ //===========...
C++
src/game/server/ai_initutils.cpp
OnePointSeven/onepointseven
gpl-3.0
11,049
343
codeparrot/github-code
e86e7084b401a60cc6e6f471187765d5a3d5ad337c1d5f6de0312881a650321f
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
C++
libcxx/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.status_known/status_known.pass.cpp
HexHive/datashield
gpl-3.0
1,520
60
codeparrot/github-code
b468b8c1a86a15e760f64a59a2ccca4fb044db06f7316f6dcfa4c5d80e6a1e51
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers /***************************************************************************** * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * * OpenRCT2 is the work of many authors, a full list can be found in contributors.md * For more information, visit h...
C
src/openrct2/object/StringTable.h
RussianHackers/OpenRCT2
gpl-3.0
1,245
44
codeparrot/github-code
4b7211235187a2f9e588fdffc2e1d7a586a73878a11be78eb3f881059e379c8d
# array of signed int32 package Parse::Evtx2::VariantType::Type0x87; use base qw( Parse::Evtx2::VariantType ); use Carp::Assert; sub parse_self { my $self = shift; my $start = $self->{'Start'}; my $data; assert($self->{'Context'} == 1, "not tested in value context. Please submit a sample.") if DEBUG; if ($s...
Perl
lib/Parse/Evtx2/VariantType/Type0x87.pm
gudcjfdldu/log2timeline
gpl-3.0
895
39
codeparrot/github-code
9bda39c6c4087f430acee8a38d6eb26ee41227e23eaf1bf30e6c8225d8ce3a14
<?php include_once("../globals.php"); if ($GLOBALS['full_new_patient_form']) { require("new_comprehensive.php"); exit; } // For a layout field return 0=unused, 1=optional, 2=mandatory. function getLayoutUOR($form_id, $field_id) { $crow = sqlQuery("SELECT uor FROM layout_options WHERE " . "form_id = '$form_i...
PHP
interface/new/new.php
cbezzy/openemr
gpl-3.0
7,217
256
codeparrot/github-code
a9cd12efd5f080e4ea9bf4d2d50e57df2838a6d3d23ac08c9f9501d6b8d86dca
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "device/bluetooth/bluetooth_uuid.h" #include <stddef.h> #include "base/logging.h" #include "base/strings/string_util.h" namespace device { na...
C++
oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/device/bluetooth/bluetooth_uuid.cc
geminy/aidear
gpl-3.0
2,604
99
codeparrot/github-code
9a941c2778ba0a3ffe810cf5186f0b72b08ec87295abf64701afc65ace9f4629
/* This file is part of FSM_framework The aim of this software is to provided generic facilities for FSM analyzis Copyright (C) 2013 Julien Thevenon ( julien_thevenon at yahoo.fr ) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub...
C
sources/FSM_interfaces/include/FSM_situation_if.h
quicky2000/P_sudoku
gpl-3.0
1,624
47
codeparrot/github-code
74ab7741a578ba4bd7a96e3f9e74f7cf489b36e1c77aa03665b263af59d833aa
#!/usr/bin/env python # # Copyright 2006,2010,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your ...
Python
gr-blocks/python/blocks/qa_unpack_k_bits.py
iohannez/gnuradio
gpl-3.0
1,845
60
codeparrot/github-code
bac37bbb71d67e265de0e7d1f53169069290e86958241e4f3400a37cf53dc15f
/* gpgkeys_curl.c - fetch a key via libcurl * Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG 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 Foun...
C
keyserver/gpgkeys_curl.c
chrisboyle/gnupg
gpl-3.0
10,065
420
codeparrot/github-code
942a27fe42145dbaf4d7f825d7a79833cf30e769762887d06cc29f91c288ae85
/* 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/. */ //GOOD FOR MANY-MANY RELATIONS var Relation=function(){ this.map={}; }; Relation.prototype.add=function(from, ...
JavaScript
quantum/modevlib/collections/aRelation.js
mozilla/charts
mpl-2.0
1,460
72
codeparrot/github-code
814619cc1b27d1ccc0055825b7d063e81ca00fe57f04121a46f3998e2e208079
/* This file is part of VoltDB. * Copyright (C) 2008-2015 VoltDB Inc. * * This file contains original code and/or modifications of original code. * Any modifications made by VoltDB Inc. are licensed under the following * terms and conditions: * * This program is free software: you can redistribute it and/or modi...
C++
src/ee/executors/nestloopexecutor.cpp
wolffcm/voltdb
agpl-3.0
10,054
264
codeparrot/github-code
06ed7f2946f2ac37582e2fbc56b3653f19996599702fa372daf776430baeeca4
package provider import ( "koding/kites/kloud/stack" "koding/kites/kloud/terraformer" "koding/tools/util" "golang.org/x/net/context" ) var escapeVars = []string{ "userInput_", "payload_", } func (bs *BaseStack) HandlePlan(ctx context.Context) (interface{}, error) { arg, ok := ctx.Value(stack.PlanRequestKey)....
GO
go/src/koding/kites/kloud/stack/provider/plan.go
gokmen/koding
agpl-3.0
3,051
128
codeparrot/github-code
946a018bf04de94ececa80de58edc3573b76aa4d460bc192b2fdfaf63093778c
//############################################################################# //# # //# Copyright (C) <2014> <IMS MAXIMS> # //# # ...
Java
openmaxims_workspace/ValueObjects/src/ims/core/vo/domain/GpVoAssembler.java
open-health-hub/openMAXIMS
agpl-3.0
17,465
463
codeparrot/github-code
e64453cc0ad90076f0e7670145540646a497feb58bcf3b335764e1e51cf34c93
<?php /********************************************************************************* * Zurmo is a customer relationship management program developed by * Zurmo, Inc. Copyright (C) 2015 Zurmo Inc. * * Zurmo is free software; you can redistribute it and/or modify it under * the terms of t...
PHP
app/protected/modules/reports/elements/actions/ReportTogglePortletsLinkActionElement.php
raymondlamwu/zurmotest
agpl-3.0
5,098
117
codeparrot/github-code
470b524cf1cbe95acd5dc321d1fd65cce8d6d5f4fd3ca76e6f3f049489beede4
///import core ///import uicore (function (){ var utils = baidu.editor.utils, domUtils = baidu.editor.dom.domUtils, UIBase = baidu.editor.ui.UIBase, uiUtils = baidu.editor.ui.uiUtils; var Mask = baidu.editor.ui.Mask = function (options){ this.initOptions(options); th...
JavaScript
static/js/ueditor/_src/ui/mask.js
voilet/cmdb
agpl-3.0
1,572
51
codeparrot/github-code
51b478c70a2448ba7237af83ea57de92eb08437bb30f4e34a762220ad34db19e
//############################################################################# //# # //# Copyright (C) <2014> <IMS MAXIMS> # //# # ...
Java
openmaxims_workspace/ValueObjects/src/ims/generalmedical/vo/domain/InjuryDetailsVoAssembler.java
open-health-hub/openMAXIMS
agpl-3.0
29,526
745
codeparrot/github-code
783d9c9aeafd1da53cba6d3d6b433c3d0401b3901708390d568d1d1bb0e2b1a8
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt // On REFRESH frappe.provide("erpnext.bom"); cur_frm.cscript.refresh = function(doc,dt,dn){ cur_frm.toggle_enable("item", doc.__islocal); toggle_operations(cur_frm); if (!doc.__islocal &...
JavaScript
erpnext/manufacturing/doctype/bom/bom.js
gangadhar-kadam/latestchurcherp
agpl-3.0
5,895
231
codeparrot/github-code
0236a9b6f28391929ecc61d8f8256c559fb7528a0fc7626b87c4700155b198c1
# Copyright 2015, Province of British Columbia # License: https://github.com/bcgov/ckanext-bcgov/blob/master/license import json import urllib2 import urllib import pprint from base import (site_url, api_key) org_filename = './data/orgs_list.json' data_string = json.dumps({'all_fields' : True}) org_list = [...
Python
ckanext/bcgov/scripts/save_orgs.py
gjlawran/ckanext-bcgov
agpl-3.0
1,656
60
codeparrot/github-code
1d89013b228809b10fef7ca28a4f29228b5b5331a7b219f5a8a172670f712be4
/* * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen, IBM Corporation * * Rewrite, cleanup, new allocation schemes, virtual merging: * Copyright (C) 2004 Olof Johansson, IBM Corporation * and Ben. Herrenschmidt, IBM Corporation * * Dynamic DMA mapping support, bus-independent parts. * * Th...
C
linux-3.16.7-ckt9/arch/powerpc/kernel/iommu.c
brammittendorff/PF_RING
lgpl-2.1
30,326
1,179
codeparrot/github-code
40477316d3edea8c000ee0265d860071f304115492e2c3b7392f27feb41f3ee9
<?xml version="1.0" encoding="ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>peach.ga.chromosome.Chromosome</title> <link rel="stylesheet" href="epydoc.css" type="text/...
HTML
doc/ref/html/peach.ga.chromosome.Chromosome-class.html
anki1909/peach
lgpl-2.1
29,458
623
codeparrot/github-code
ac23a28bf2ea3fb447989ba102fea57c22355754d9f146c1f3d6a7ebb8405904
/* * ==================================================================== * Copyright (c) 2004-2010 TMate Software Ltd. All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://svn...
Java
extensions/svn/src/org/exist/versioning/svn/internal/wc/SVNSubstitutor.java
shabanovd/exist
lgpl-2.1
12,987
322
codeparrot/github-code
c77ff77860eb6cfba68d0788976c4c7a98d985260faa6b31e3ec84be15c25ec3
# 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 PyDeeptools(PythonPackage): """deepTools addresses the challenge of handling the large amo...
Python
var/spack/repos/builtin/packages/py-deeptools/package.py
LLNL/spack
lgpl-2.1
1,792
40
codeparrot/github-code
769df8db5ebdba3341195cf3f748574874984b03c07659955088db075c772c02
/** * (c)LGPL2+ * This file is part of the KDE project * Copyright (C) 2007, 2009 Rafael Fernández López <ereslibre@kde.org> * * 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 Software Foundatio...
C++
src/qcategorizedview/qcategorizedview.cpp
zvacet/lxqt-config
lgpl-2.1
59,636
1,536
codeparrot/github-code
000ee877ca02d62d1a168dca1eb7b098d7a57d9039fd7c86229fa84c97bc59e7
"""SCons.Tool.aixc++ Tool-specific initialization for IBM xlC / Visual Age C++ compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001 - 2015 The SCons Foundation # # Permission is h...
Python
scons/scons-local-2.4.1/SCons/Tool/aixc++.py
pnorman/mapnik
lgpl-2.1
2,413
76
codeparrot/github-code
b34ca486c24e197bc0bb2bb1d2fcdd1242699b4d421f0cb8911f51b07e9945d1
package org.intermine.webservice.server.lists; /* * Copyright (C) 2002-2017 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copy...
Java
intermine/web/main/src/org/intermine/webservice/server/lists/ListRenameInput.java
elsiklab/intermine
lgpl-2.1
3,639
120
codeparrot/github-code
0b285f209d80ce6c6d8dc2630cdca70e9c54c4a9c7bebd25d7378b602e861ac3
//////////////////////////////////////////////////////////////////////////////// // 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/test/java/com/puppycrawl/tools/checkstyle/checks/naming/PackageNameCheckTest.java
nikhilgupta23/checkstyle
lgpl-2.1
3,249
85
codeparrot/github-code
3d7481d3767c026a969adf362c12e099799ecc13d06cf22dd11996bd9512d1f9
import warnings from pprint import pprint import datajoint as dj import pandas as pd from djaddon import hdf5 try: from pupil_tracking import PupilTracker except ImportError: warnings.warn("Failed to import pupil_tacking library. You won't be able to populate trk.EyeFrame") schema = dj.schema('pipeline_pupi...
Python
python/pipeline/legacy/trk.py
fabiansinz/pipeline
lgpl-3.0
20,366
444
codeparrot/github-code
74d997057748155e8db63c78ba79ece2643170112c213bfe687b68c9be64c8b6
-- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com> -- Licensed to the public under the Apache License 2.0. module("luci.tools.ddns", package.seeall) local NX = require "nixio" local NXFS = require "nixio.fs" local OPKG = require "luci.model.ipkg" local UCI = require "luci.model.uc...
Lua
luci/tools/ddns.lua
g0t-ya/XiaoyuBox
lgpl-3.0
9,373
319
codeparrot/github-code
bbfc1af37af223f679cade7f8ab5a284f689f4fb55049c8c05855c5a2ecef4eb
/* * Copyright (C) 2005-2014 Alfresco Software Limited. * * This file is part of Alfresco * * Alfresco 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 ...
Java
projects/repository/source/java/org/alfresco/repo/jscript/ScriptFacetResult.java
nguyentienlong/community-edition
lgpl-3.0
2,378
83
codeparrot/github-code
d4b5837439b3dca91accc8b0863d195f7578278afafc0f4aa0c45e93bcf7490e
//=- AnalysisBasedWarnings.cpp - Sema warnings based on libAnalysis -*- C++ -*-=// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===-------------------------...
C++
lib/Sema/AnalysisBasedWarnings.cpp
llvm-mirror/clang
apache-2.0
83,239
2,289
codeparrot/github-code
746072e6790285440abb044827d42222c5422286e6dac9a082a9fd0869ee608b
/* * -----------------------------------------------------------------------\ * SilverWare *   * Copyright (C) 2010 - 2013 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 c...
Java
quickstarts/camel-jetty-cdi/src/main/java/io/silverware/demos/quickstarts/cdi/CamelCdiMicroservice.java
px3/SilverWare-Demos
apache-2.0
1,948
59
codeparrot/github-code
aee179987757eaedd48fcaa31e0f71753ebbf7022f7a01656c85847f6dc564b0
/** * FreeRDP: A Remote Desktop Protocol Implementation * Server Audio Virtual Channel * * Copyright 2012 Vic Lee * Copyright 2015 Thincast Technologies GmbH * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
C
channels/rdpsnd/server/rdpsnd_main.c
peterh/FreeRDP
apache-2.0
23,755
889
codeparrot/github-code
f52b799b86eeac7b8944553a74d08b143ce1ab9485783b9ca684c5976d83cf38
angular.module("Prometheus.services").factory('YAxisUtilities', [function() { var logScale, linearScale; // Extends a D3 scale to ignore "null" values. function extendScale(scale) { var extendedScale = function(y) { if (y === null) { return null; } return scale(y); }; extende...
JavaScript
app/assets/javascripts/angular/services/y_axis_utilities.js
thooams/promdash
apache-2.0
2,347
73
codeparrot/github-code
ad126d03f3e496ee8d88529d1773df275581fdc26995632e0f18027154f0c533
/* * 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
flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBRocksStateKeysIteratorTest.java
hequn8128/flink
apache-2.0
5,806
162
codeparrot/github-code
ab99094ef810a564e3770fee7fdff2aa616a034525c25a121b54f77c68721358
/* * 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
core/src/main/java/org/elasticsearch/action/admin/cluster/health/ClusterHealthResponse.java
vingupta3/elasticsearch
apache-2.0
17,093
421
codeparrot/github-code
f27a8c0cbcad7197f10e17dd7dc2da858e911b9c42c4a07854248552b2e69f0f
/* * 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/java/org/apache/cassandra/utils/memory/SlabAllocator.java
belliottsmith/cassandra
apache-2.0
7,785
216
codeparrot/github-code
0596a6c87e128880b95547c9f13d7e4b4b858112678b5e9f7b27dbe4b6cc3033
using System; using System.Diagnostics; using System.Resources; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using EmailValidationDemo.WinPhone.Resources; namespace EmailValidationDemo.WinPhone { public partial cla...
C#
Chapter23/EmailValidationDemo/EmailValidationDemo/EmailValidationDemo.WinPhone/App.xaml.cs
tchenowe/xamarin-forms-book-preview-2
apache-2.0
9,066
224
codeparrot/github-code
a92211ee8da5ca97fcc082a16292af6df76e9ff75a8f22cdafe4fe41a0c0ff18
//===--- Context.cpp - Context for the constexpr VM -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C++
lib/AST/Interp/Context.cpp
llvm-mirror/clang
apache-2.0
3,951
149
codeparrot/github-code
ab6dd3eafad289c875d9d090fa1dd61292398fd7d665263d45b4c79d2747237e
/* * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/condition/ConditionalOnAvailableEndpointTests.java
eddumelendez/spring-boot
apache-2.0
10,092
288
codeparrot/github-code
5b11146597621843172caec025525c7738b42f1f7f8f1bcc138e86bff323df0c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Phaser Source: particles/arcade/Emitter.js</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type=...
HTML
site/docs/phaser/Emitter.js.html
prshreshtha/LaseRun
apache-2.0
39,967
1,367
codeparrot/github-code
e2bba2679176da57197973f5c6293b91c4fd90ae0ecce2e7f226346564cd1dfa
require 'collins/util' require 'collins/option' module Collins # Represents a simple callback, e.g. something with a name, options and an exec block # This is designed to be a building block for other callback implementations as opposed to a # complete implementation. Note that we duck-type Proc. We can't exten...
Ruby
support/ruby/collins-client/lib/collins/simple_callback.rb
Shopify/collins
apache-2.0
4,185
142
codeparrot/github-code
f564a91cb8b6ff4f21b753e225afc9cf973e86296dc27f564b38cf7640a5765b
package org.pitest.bytecode; import org.objectweb.asm.ClassWriter; public class FrameOptions { private static final int JAVA_7 = 51; /** * Java 7 and above require frame info for class version above 7. The ASM * compute frame options does not support the JSR opcode used by some pre 7 * compilers when g...
Java
pitest/src/main/java/org/pitest/bytecode/FrameOptions.java
mzw/pitest
apache-2.0
847
34
codeparrot/github-code
7e47db54e334eb96ba2de24d93886c270601eca97ae88f3955eadbeb26dbc834
/** * Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved. * * 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...
Java
mina.netty/src/main/java/org/kaazing/mina/core/future/DefaultWriteFutureEx.java
EArdeleanu/gateway
apache-2.0
3,789
142
codeparrot/github-code
6ef71b44f4a285d936ad7bddd8fc42d038c202900f5d76e435bedc778b3b353f
/** * 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
common/mahout-distribution-0.7-hadoop1/core/src/test/java/org/apache/mahout/clustering/dirichlet/TestMapReduce.java
genericDataCompany/hsandbox
apache-2.0
15,225
325
codeparrot/github-code
3cf3b27c40377ab21c56be4a3ceba36524e7eba6c133ac43fbc994b934484ce8
/* * 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
core/src/main/java/org/apache/accumulo/core/metadata/TabletLocationState.java
apache/accumulo
apache-2.0
3,926
127
codeparrot/github-code
a87edb677c08f9d08af591667c1455ba9f54234f2923a9339db9501fa5907470
/* ==================================================================== 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 Y...
C#
testcases/ooxml/XWPF/UserModel/TestXWPFParagraph.cs
tkalubi/npoi-1
apache-2.0
19,535
536
codeparrot/github-code
43361f67904102cc562c16c9f435ab384f9200c894ba5574f03126dce4e5e06b
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/core/kernels/non_max_suppression_op.cc
nburn42/tensorflow
apache-2.0
10,737
263
codeparrot/github-code
9e87cd6c05078df944c6e5e0083cb74df9012b0d0a62d087da7e2e88dd662bd5
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.UnitTests.Works...
C#
src/VisualStudio/CSharp/Test/Debugging/NameResolverTests.cs
vslsnap/roslyn
apache-2.0
19,769
604
codeparrot/github-code
20d6e33e97705bb761c4f7514a13c71ccf52e5922aaa8b9731775029179fa003
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/core/platform/tensor_coding.cc
theflofly/tensorflow
apache-2.0
6,866
246
codeparrot/github-code
4ab5829ae36223459c756e90c1c338eb13c30571caf39142eee07af25af74152
<?php /*+*********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initi...
PHP
pkg/vtiger/modules/WSAPP/modules/WSAPP/synclib/connectors/TargetConnector.php
basiljose1/byjcrm
apache-2.0
1,649
44
codeparrot/github-code
a131b2704ce314e627b6a6622f1ed8cf1b6aea07bc6f902561893df7325ce710
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/core/framework/run_handler.cc
tensorflow/tensorflow
apache-2.0
41,611
1,120
codeparrot/github-code
2452c1279a42bd5195250e041b79abbd0a5b54bb49c5fc021c778bc44b2f4e9a
///<reference path="../../../../tools/typings/tsd.d.ts" /> ///<reference path="../../../../tools/typings/expenseApp.d.ts" /> 'use strict'; module employeeApp.services { export class HttpInterceptor401 { static Factory($q: ng.IQService, $rootScope: ng.IRootScopeService) { return new HttpInterc...
TypeScript
src/app/expenseApp/services/httpInterceptors.ts
DanWahlin/AngularTypeScript
apache-2.0
1,692
51
codeparrot/github-code
d52202219aa276ed09d928f293a9878c9b3262eef42a43d9cf8a0b1b7aad455f
// Copyright 2002 and onwards Google Inc. // Copyright 2012 and onwards (Veselin Raychev) // License: Apache License 2.0 #include <stdarg.h> // For va_list and related operations #include <stdio.h> // MSVC requires this for _vsnprintf #include <string> using std::string; #include "stringprintf.h" void StringAppendV...
C++
src/base/stringprintf.cpp
lazyparser/Nice2Predict
apache-2.0
2,044
84
codeparrot/github-code
5f836fd63031aef564efa505f8efe10ea7fb71dbe750245b69e9820567259d2b
/* * 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
test/distributed/org/apache/cassandra/distributed/test/ReprepareTestBase.java
instaclustr/cassandra
apache-2.0
12,516
278
codeparrot/github-code
471314b78b4063d918354596899f44149e46ef05c0edc13f02b7c47300cbcce9
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
Java
hbase-server/src/main/java/org/apache/hadoop/hbase/namequeues/SlowLogTableOpsChore.java
mahak/hbase
apache-2.0
2,249
64
codeparrot/github-code
27b886657be9b2e869d407aca7c8758f5e636a1ca3aed5fe3cd433ff77041ef6
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.core.ml.inference; import org.ela...
Java
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/InferenceToXContentCompressor.java
robin13/elasticsearch
apache-2.0
5,858
114
codeparrot/github-code
a5587fe86dcc95dbee94e7d0a940369387ea1baa44e2611ea95ae64feade75f7
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
C++
modules/platforms/cpp/binary/src/impl/interop/interop_memory.cpp
leveyj/ignite
apache-2.0
5,297
171
codeparrot/github-code
e864cc0016dc36dba1c477b3290ef46f56eee980d5b9f393e47235ac3be11da7
package com.founder.fix.fixflow.test.bpmn.bpmndiagram; import java.util.List; import org.eclipse.bpmn2.di.BPMNDiagram; import com.founder.fix.fixflow.core.impl.bpmn.behavior.ProcessDefinitionBehavior; import com.founder.fix.fixflow.test.AbstractFixFlowTestCase; import com.founder.fix.fixflow.test.Deployment; publ...
Java
fixflow-test/src/java/com/founder/fix/fixflow/test/bpmn/bpmndiagram/BPMNDiagramQueryTest.java
MetSystem/fixflow
apache-2.0
1,021
38
codeparrot/github-code
52acaee1a8f85dda39cd61542d32a991eda78aa361e195f03f2fce7f22c10a2c
/* Copyright (C) 2008-2016 University of Massachusetts Amherst. This file is part of "FACTORIE" (Factor graphs, Imperative, Extensible) http://factorie.cs.umass.edu, http://github.com/factorie Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
Scala
src/main/scala/cc/factorie/variable/SetVariable.scala
strubell/factorie
apache-2.0
6,477
146
codeparrot/github-code
0ebe490e72076ad288aa3182025d367a50fd5524569478bdb902b90c55be85e2
/** * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.bbg.permission; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutionExcept...
Java
projects/OG-Bloomberg/src/main/java/com/opengamma/bbg/permission/BloombergBpipePermissionCheckProvider.java
jeorme/OG-Platform
apache-2.0
14,798
338
codeparrot/github-code
ad9f1c49842e7fbe0ae71de911095bdbee03b791c6cbbbc06f4a90257d147959
/* global document: false, console: false, ab: true, $: true, JustGage: false, getRandomInt: false */ "use strict"; var session = null; start(); function start() { // turn on WAMP debug output // ab.debug(true, false, false); // use jQuery deferreds ab.Deferred = $.Deferred; // Connect to Tavendo...
JavaScript
autobahntestsuite/autobahntestsuite/static/js/autobahntestsuite.js
Brother-Simon/AutobahnTestSuite
apache-2.0
3,697
170
codeparrot/github-code
160833e81d2eb0081f4fd0e30c0028b8fd0f903328ecae9650a0d232e08a24ef
/* * $Id: Div.java 651946 2008-04-27 13:41:38Z apetrelli $ * * 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 un...
Java
uue-core/src/main/java/org/apache/struts2/components/Button.java
joshLV/uue
apache-2.0
1,804
50
codeparrot/github-code
134d204b588f5f7966acb19c181ba9547dc4971fbd50e8babc0f3894e6f10f58
/* Copyright 2019 The Kubernetes 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 applicable law or agreed to in writing, ...
GO
cmd/kubeadm/app/apis/output/scheme/scheme.go
fanzhangio/kubernetes
apache-2.0
1,671
49
codeparrot/github-code
2b70c24f91d8efe3115e91349964b5eda3dd694798026548ef61833d9dd0e20f
#include <gtest/gtest.h> #include <platform.h> #include <string> #include <ast/lexer.h> #include <ast/source.h> #include <ast/token.h> #include "util.h" using std::string; class LexerTest : public testing::Test { protected: string _expected; virtual void SetUp() { _expected = ""; } // Add an expecte...
C++
test/libponyc/lexer.cc
sgebbie/ponyc
bsd-2-clause
23,807
1,306
codeparrot/github-code
c24788a4ccdcefc46dbf38d8767ca9d189044eef555d696199ae5fe8c48887f2
package org.hisp.dhis.sms.config; /* * Copyright (c) 2004-2017, University of Oslo * 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 cop...
Java
dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/config/SmsConfiguration.java
troyel/dhis2-core
bsd-3-clause
3,309
87
codeparrot/github-code
0a869ef2b1e273a2375710b17bceb510f2d62a0a9208d1c8d9762285944afeee
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_AUDIO_AUDIO_DEVICE_H_ #define CHROMEOS_AUDIO_AUDIO_DEVICE_H_ #include <map> #include <string> #include <vector> #include "base/basi...
C
chromeos/audio/audio_device.h
7kbird/chrome
bsd-3-clause
1,818
73
codeparrot/github-code
40280d3be4b81b5fa47359f56f8a29a70e6092b567fef3eb15f9b75587292cd6
/* * Copyright 2012 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkLightingImageFilter_DEFINED #define SkLightingImageFilter_DEFINED #include "SkImageFilter.h" #include "SkColor.h" class SK_API SkPoint3 { publi...
C
third_party/skia/include/effects/SkLightingImageFilter.h
CTSRD-SOAAP/chromium-42.0.2311.135
bsd-3-clause
3,483
89
codeparrot/github-code
4465cd040977284d7a903ce8a2a3df861d071e70bbc76c6b28aeea1f9e880114
using System; using Cosmos.VS.DebugEngine.AD7.Definitions; using Cosmos.VS.DebugEngine.Engine.Impl; using Microsoft.VisualStudio; using Microsoft.VisualStudio.Debugger.Interop; namespace Cosmos.VS.DebugEngine.AD7.Impl { // This class represents a document context to the debugger. A document context represents a l...
C#
source/Cosmos.VS.DebugEngine/AD7.Impl/AD7DocumentContext.cs
CosmosOS/Cosmos
bsd-3-clause
5,157
127
codeparrot/github-code
b0b421f7c980e292aa5ac275a13c6a548005bebb2759daa85314096e39036b83
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'chrome://resources/mojo/mojo/public/js/mojo_bindings_lite.js'; import '../constants/setting.mojom-lite.js'; import '../search/user_action_recorder...
JavaScript
chrome/browser/resources/settings/chromeos/metrics_recorder.m.js
chromium/chromium
bsd-3-clause
2,133
75
codeparrot/github-code
e22b5632f338cedc8a389d828470225043bd09b42d603b9225bfcbda5266711e
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
C
src/rdb.c
ton31337/redis
bsd-3-clause
72,111
1,951
codeparrot/github-code
7bd92305152123335ce5b3cec59b0dc5270e3923e1e721d8a463fe700f813a19
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
C++
third_party/llvm-project/libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp
youtube/cobalt
bsd-3-clause
2,699
103
codeparrot/github-code
759f99e96b32e83d3eb9bed3e67f4be1f2847bc1dd729d44b32beacffbc257ab
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_VALUE_STORE_POLICY_VALUE_STORE_H_ #define CHROME_BROWSER_VALUE_STORE_POLICY_VALUE_STORE_H_ #include "base/compiler_specific.h"...
C
chrome/browser/value_store/policy_value_store.h
leighpauls/k2cro4
bsd-3-clause
1,961
49
codeparrot/github-code
c8f3c3f1dc0449705c64c26280e93a6c6572be207e660e8dadad67c6c00595d3
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" #include <X11/Xatom.h> #include "base/event_types.h" #include "base/lazy_...
C++
ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
7kbird/chrome
bsd-3-clause
38,882
1,131
codeparrot/github-code
fd6f836a3541ce14941a20123dfdc63cea81a12f34a4dae3527c42b0d93a0e70
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package InsightLT; import com.sun.squawk.util.Arrays; /** * * @author Wave */ public class StringData implements DisplayData{ public StringData() { m_updateString = true; m_stringData = ...
Java
src/InsightLT/StringData.java
9072997/TheTerminator
bsd-3-clause
1,801
73
codeparrot/github-code
25b912c5d164a51acd6097d252085ba317b58d12df1c026f3a7e8f62f331edf4
from hamcrest.library.text.substringmatcher import SubstringMatcher from hamcrest.core.helpers.hasmethod import hasmethod __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" class StringContains(SubstringMatcher): def __init__(self, substring): supe...
Python
src/hamcrest/library/text/stringcontains.py
msabramo/PyHamcrest
bsd-3-clause
953
39
codeparrot/github-code
8849a1c450afbd42971d73badde7ed196f2b548259c3faa5f7c6cec1d8f7aaa3
from django import forms from django.utils.translation import ugettext as _, ungettext as ngettext import mkt from mkt.access import acl from mkt.site.utils import slugify from mkt.tags.models import Tag def clean_tags(request, tags, max_tags=None): """ Blocked tags are not allowed. Restricted tags can ...
Python
mkt/tags/utils.py
mozilla/zamboni
bsd-3-clause
2,555
67
codeparrot/github-code
047584d1ec7ae5b423fdf0d0ad80597723112ec04919e69dc81903e95d145b7a
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_VIEW_TARGETER_H_ #define UI_VIEWS_VIEW_TARGETER_H_ #include "base/memory/raw_ptr.h" #include "ui/events/event_targeter.h" #include "ui/v...
C
ui/views/view_targeter.h
chromium/chromium
bsd-3-clause
2,129
69
codeparrot/github-code
fdc9c606076b587dd599f92008ffdeddea50a5cff2ba95952baede461940e8c3
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_REPRESENTATION_D3D_H_ #define GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_REPRESENTATION_D3D_H_ #include "bas...
C
gpu/command_buffer/service/shared_image_representation_d3d.h
chromium/chromium
bsd-3-clause
3,307
95
codeparrot/github-code
0f68b3065951dfb713534b070ab0da1956607b08d1bf1f95ccab624e96a7fda0
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/test/chromedriver/net/websocket.h" #include <stddef.h> #include <stdint.h> #include <string.h> #include <vector> #include "base/bas...
C++
chrome/test/chromedriver/net/websocket.cc
js0701/chromium-crosswalk
bsd-3-clause
7,978
268
codeparrot/github-code
83aeb136219700c4b6f1677ffa84352329fbf8f50a8e1fe7bff4b94b4d15b2a0
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "core/css/FontLoader.h" #include "core/css/CSSFontSelector.h" #include "core/dom/Document.h" #include "core/dom/IncrementLoadEventDelayCount.h" ...
C++
third_party/WebKit/Source/core/css/FontLoader.cpp
js0701/chromium-crosswalk
bsd-3-clause
3,929
134
codeparrot/github-code
f7cf6366b455555f8625f64ef2312698e5e1a119adf89d47d43f63bf777474af
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_SCRIPT_STREAMER_H_ #define THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_SCRIPT_STREAMER_H_ #include <m...
C
third_party/blink/renderer/bindings/core/v8/script_streamer.h
chromium/chromium
bsd-3-clause
9,102
247
codeparrot/github-code
b1d2fd27792e24af3626a530eee893319429b50697d22c05049209d1e8115c97
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/android/network_library.h" #include <string> #include <vector> #include "base/android/build_info.h" #include "base/test/task_environment.h...
C++
net/android/network_library_unittest.cc
chromium/chromium
bsd-3-clause
4,881
124
codeparrot/github-code
8e6802d900226e22596366b34db6eb9ed554e53e3634762bb1149cb60598fa33
/* * Copyright (C) 2011 Ericsson AB. All rights reserved. * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain...
C++
third_party/blink/renderer/modules/mediastream/user_media_request.cc
chromium/chromium
bsd-3-clause
26,589
671
codeparrot/github-code
6588af52cfc820973f7aeda493b3823fd193df7787cfd7cfb0b41d15266180be
package org.hisp.dhis.dataadmin.action.sqlview; /* * Copyright (c) 2004-2017, University of Oslo * 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 mus...
Java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/sqlview/GetSqlViewListAction.java
troyel/dhis2-core
bsd-3-clause
3,804
107
codeparrot/github-code
b8f7083dc57fbe757962a247ae868a192abf15f46b164fbddd364d07b9915b9d
/* * Serial Attached SCSI (SAS) class SCSI Host glue. * * Copyright (C) 2005 Adaptec, Inc. All rights reserved. * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com> * * This file is licensed under GPLv2. * * This program is free software; you can redistribute it and/or * modify it under the terms of t...
C
src/drivers/scsi/libsas/sas_scsi_host.c
felixhaedicke/nst-kernel
gpl-2.0
29,236
1,124
codeparrot/github-code
9971c24bb9ccd41f39e661a20d195f6fe71f7599af9ddf65878a201a4b3274bb
import { h, Component } from 'preact/preact'; export default class CoreButton extends Component { render(props,state) { if ( !props.hasOwnProperty('tabIndex') ) props.tabIndex="0"; if ( props.hasOwnProperty('class') ) props.class += " core-button"; else props.class = "core-button"; if ( props.ha...
JavaScript
sandbox/com/_button-simple/simple.js
ludumdare/ludumdare
mit
801
36
codeparrot/github-code
26647f8808e51e6ebb526df9491500550138ac197e3583c01a8335b8d941b148
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; let PropTypes; let React; let ReactDOM; let ReactFeatureFlags; // TODO: Refactor this tes...
JavaScript
packages/react-dom/src/__tests__/ReactLegacyErrorBoundaries-test.internal.js
mjackson/react
mit
73,007
2,232
codeparrot/github-code
f5f75a0fe78acb03cc4636d7b24c7beefef7f123f8c2330791fef2dd9cc6ec08
import sys sys.path.append("../") from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn import decomposition import jieba import time import glob import sys import os import random if len(sys.argv)<2: print "usage: extract_topic.py di...
Python
test/extract_topic.py
beni55/jieba
mit
1,456
64
codeparrot/github-code
9887306bc73cac234f92d9db4820d16d5b675b646627e092679257f79d7b130d
=head1 NAME Term::ReadLine - Perl interface to various C<readline> packages. If no real package is found, substitutes stubs instead of basic functions. =head1 SYNOPSIS use Term::ReadLine; my $term = Term::ReadLine->new('Simple Perl calc'); my $prompt = "Enter your arithmetic expression: "; my $OUT = $term->O...
Perl
xampp/perl/lib/Term/ReadLine.pm
liuyangning/WX_web
mit
13,836
487
codeparrot/github-code
68a3f3cd25a7f8397fe8672680ed3b1900317f3ed86b4f2a3d92900e289088a6
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * 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 l...
Java
remoting/src/main/java/hudson/remoting/LocalChannel.java
vivek/hudson
mit
3,406
102
codeparrot/github-code
a1c73fe5ef41586b02b970a6ab311e08c47ba974e25ebd83b097cd130f3f3077
define([ 'dojo/_base/declare', 'dijit/_WidgetBase', 'dojo/on', 'dojo/dom-construct', 'dojo/dom-class', 'dijit/_TemplatedMixin', 'dijit/_WidgetsInTemplateMixin', 'dojo/text!./templates/GlobalSearch.html', './Button', 'dijit/registry', 'dojo/_base/lang', 'dojo/dom', 'dojo/topic', 'dijit/form/TextBox', 'dojo/keys'...
JavaScript
public/js/p3/widget/GlobalSearch.js
dawenx/p3_web
mit
7,479
182
codeparrot/github-code
a193809a5f77b3753133f4dd3fdcefdaa2b800f5ff85716d5ec155633c530fb3
'use strict'; /** * Demo. */ var demo = (function (window) { /** * Enum of CSS selectors. */ var SELECTORS = { pattern: '.pattern', card: '.card', cardImage: '.card__image', cardClose: '.card__btn-close' }; /** * Enum of CSS classes. */ var CL...
JavaScript
js/modern-blog.js
xiaoshaozi52/xiaoshaozi52.github.io
mit
8,633
323
codeparrot/github-code
8f3697259b54ab8d4edf51d2e67ffb9ed88eae1d0ad868c3e3b455d8e6c2c72a
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtSensors module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licens...
C
thirdparty/qt53/include/QtSensors/qgyroscope.h
imzcy/JavaScriptExecutable
mit
2,956
94
codeparrot/github-code