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
933eef989a2c55f779e528569c49b628898c5d55d13826d14083e75168ec7761
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
C
thirdparty/curl/lib/curl_sasl_sspi.c
CPB9/mcc
mpl-2.0
39,114
1,210
codeparrot/github-code
09acfd0ed10a480eaffbdf456a6b56886a0681623d6f6e8cea7523fd3e86b255
""" Models for the custom course feature """ from __future__ import unicode_literals import json import logging from datetime import datetime from ccx_keys.locator import CCXLocator from django.contrib.auth.models import User from django.db import models from lazy import lazy from opaque_keys.edx.django.models import...
Python
lms/djangoapps/ccx/models.py
Stanford-Online/edx-platform
agpl-3.0
3,795
119
codeparrot/github-code
9bf9e806762d3b7add168f9be53637523f8ef3b41e76ae88037dfa2fa8bfa246
/** * JBoss, Home of Professional Open Source * Copyright Red Hat, Inc., and individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
Java
push/sender/src/test/java/org/jboss/aerogear/unifiedpush/message/util/ConfigurationUtilsTest.java
julioa/aerogear-unifiedpush-server
apache-2.0
2,096
63
codeparrot/github-code
85553ace0c367c73b06d88b6760e7d26671996961c57b07048b002cfa7b015ef
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
presto-main/src/main/java/com/facebook/presto/operator/index/TupleFilterProcessor.java
deciament/presto
apache-2.0
3,545
87
codeparrot/github-code
ebf82de854e397ed83e3fd1a45980e0a0a5c62834794ae593e8b417e60df73c0
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the p...
JavaScript
web-app/js-lib/ext-4.0.7/examples/charts/LiveAnimated.js
ozoneplatform/owf-framework
apache-2.0
5,668
178
codeparrot/github-code
c30ad2b68bae4ba3ffb550d19ac7a4c2a42e2cc852424c6cf1dec7cce024f2fb
/* * 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 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
Java
server/src/main/java/org/elasticsearch/action/admin/indices/segments/IndexSegments.java
robin13/elasticsearch
apache-2.0
1,995
59
codeparrot/github-code
634851dcc70de5b2e68a46d08a3908e9e33a5e95e351fb0f294430a4a093c858
/* * 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
giraph-examples/target/munged/test/org/apache/giraph/TestNotEnoughMapTasks.java
zfighter/giraph-research
apache-2.0
2,820
76
codeparrot/github-code
7ebe34459a1a9ca38eee01dbae0b8c27ba60e07edfeefb56f59ee2869dac064a
/* * 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
modules/percolator/src/main/java/org/elasticsearch/percolator/PercolatorMatchedSlotSubFetchPhase.java
strapdata/elassandra
apache-2.0
6,309
135
codeparrot/github-code
5deb41f1fa7b24dda1cb79d7f80413b1f8a7431f318aac3d2a3b3231276e5516
/* Copyright 2017 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/compiler/tf2xla/literal_util.h
gunan/tensorflow
apache-2.0
3,684
79
codeparrot/github-code
87be28df293a17c438f3fce8f09dd5027263be9ca5c389a53f55060ce0a34dc8
/* * 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
flink-kubernetes/src/test/java/org/apache/flink/kubernetes/kubeclient/KubernetesPodTestBase.java
apache/flink
apache-2.0
2,114
63
codeparrot/github-code
83a1a620cbddc2e1bc23f128091c51cdecc96e6faa06bf331621d41ee27bbc39
# Copyright 2016 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 applica...
Python
tensorflow/python/ops/distributions/util.py
jbedorf/tensorflow
apache-2.0
54,998
1,442
codeparrot/github-code
3c1a8d078f20c419608e71b5b833aab112c03dc7ed45252d2dff916d72050f82
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
Java
aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/model/transform/EvaluationJsonUnmarshaller.java
mahaliachante/aws-sdk-java
apache-2.0
4,983
110
codeparrot/github-code
f950c51fff446f666ddcef3f8429037f96b7f31b327ef2697d77eb41cad1b42a
/* * 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
jena-fuseki1/src/main/java/org/apache/jena/fuseki/migrate/GraphLoadUtils.java
CesarPantoja/jena
apache-2.0
2,454
76
codeparrot/github-code
73b60b32f34c51000cc251721e80c9d307418f7e5fdfefa8e8f17650dc0cd326
/** * 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/test/testshell/ExternalMapReduce.java
basicthinker/Quatrain-MapReduce
apache-2.0
4,660
138
codeparrot/github-code
e303a410b80e29bd1b7ad14513441e0508af6c11e1fdcf852f66798e6f35a05e
/* ==================================================================== 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/main/SS/Formula/Functions/TestSumproduct.cs
antony-liu/npoi
apache-2.0
4,125
126
codeparrot/github-code
db4d376bf533c25266fe60ac5917db4bfa831340727c8ff4a74679113bc84254
/* Copyright 2020 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/stream_executor/tpu/tpu_topology.h
annarev/tensorflow
apache-2.0
2,900
95
codeparrot/github-code
6e9ccbd16372832873e3deae0bfec176d685cb55c49d23dd45da5e896c6b26a6
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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.apa...
C#
src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Policy/PsResourceProviderAlias.cs
AzureAutomationTeam/azure-powershell
apache-2.0
2,167
53
codeparrot/github-code
c64c30e45b9306a61db0fd760f9e9ee398952017a6ddbf24f3850f226d36be45
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
modules/yarn/src/main/java/org/apache/ignite/yarn/ApplicationMaster.java
dlnufox/ignite
apache-2.0
14,434
417
codeparrot/github-code
d7937beacb80887bc8f0f463458c28c42b2786a1d7f7b4d3b7f349c19cc8b33f
package com.googlecode.mp4parser.authoring.tracks; import com.coremedia.iso.Hex; import com.coremedia.iso.IsoFile; import com.coremedia.iso.IsoTypeReader; import com.coremedia.iso.boxes.Container; import com.coremedia.iso.boxes.SampleDescriptionBox; import com.coremedia.iso.boxes.sampleentry.VisualSampleEntry; import ...
Java
isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/H263TrackImpl.java
godghdai/mp4parser-1
apache-2.0
18,338
422
codeparrot/github-code
47e8432a183d97f4479dc624744f41f3a23185055a619ebbaf8aeca1eae6305e
(function($){ var originalPos = null; var fixHelperDimensions = function(e, tr) { originalPos = tr.prevAll().length; var $originals = tr.children(); var $helper = tr.clone(); $helper.children().each(function(index) { $(this).width($originals.eq(index).width()...
JavaScript
protected/modules/yupe/views/assets/js/custom-grid-sortable.js
elorian/crm.inreserve.kz
bsd-3-clause
3,187
90
codeparrot/github-code
e25a7f45b2a90ebd91a8cdde7f452d482dbeb2e918799a2db62c9a957b0b1f96
-- -- criteria.lua -- -- Stores a list of criteria terms with support for negation, conjunction, -- and wildcard matches. Provides functions match match these criteria -- against various contexts. -- -- Copyright (c) 2012-2015 Jason Perkins and the Premake project -- local p = premake p.criteria = criteria -- crit...
Lua
src/base/criteria.lua
TurkeyMan/premake-core
bsd-3-clause
4,384
180
codeparrot/github-code
883c2cc82c0cefc3250e67cd56b410f1779fb1b5e2c3bb814081191942973714
// MeCab -- Yet Another Part-of-Speech and Morphological Analyzer // // // Copyright(C) 2001-2006 Taku Kudo <taku@chasen.org> // Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation #include <algorithm> #include <functional> #include <iostream> #include <iterator> #include <vector> #include "common.h" #...
C++
src/mecab/src/learner_tagger.cpp
xmeta/Open-JTalk
bsd-3-clause
10,786
419
codeparrot/github-code
70b17489bedd2729f5eb7bd8b3125118f576f0c92c5dafb162c0b65ba978daa6
#ifndef RBX_VM_OBJECT_UTILS_HPP #define RBX_VM_OBJECT_UTILS_HPP #include "builtin/object.hpp" #include "exception.hpp" /** * @file object_utils.hpp * * Defines all the most common operations for dealing with * objects, such as type checking and casting. */ // A stupid work around for g++ changing it's beha...
C++
vm/object_utils.hpp
sferik/rubinius
bsd-3-clause
6,451
257
codeparrot/github-code
7ecd5eddb38010a7f870dbbc5e122655ee7cf576475cca4a4d38dfbe4f585d8d
// RasPi.cpp // // Routines for implementing RadioHead on Raspberry Pi // using BCM2835 library for GPIO // // Contributed by Mike Poublon and used with permission #include <RadioHead.h> #if (RH_PLATFORM == RH_PLATFORM_RASPI) #include <sys/time.h> #include <time.h> #include "RasPi.h" //Initialize the values for san...
C++
libraries/RadioHead/RHutil/RasPi.cpp
unparallel-innovation/Modbus-Master-IP-Link
bsd-3-clause
3,541
177
codeparrot/github-code
30f4c4adf0507db496466880e99c00ec80b4fde4e3444aa371aafd0b7ed4b401
// 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 "extensions/common/permissions/settings_override_permission.h" #include "base/strings/utf_string_conversions.h" #include "extensions/common/perm...
C++
extensions/common/permissions/settings_override_permission.cc
markYoungH/chromium.src
bsd-3-clause
4,120
127
codeparrot/github-code
c6f5cf4302d147b0141b157025bd51458ca758c2b2ce9577384e4ddd5750049c
#include "main.h" #include "Calculus.h" #include "Geometry.h" #include "Arithmetic.h" #include "Stack.h" #include "Convolve.h" #include "Filter.h" #include "File.h" #include "Display.h" #include "LAHBPCG.h" #include "Statistics.h" namespace ImageStack { void Gradient::help() { pprintf("-gradient takes the backward...
C++
src/Calculus.cpp
blackketter/imagestack
bsd-3-clause
7,999
248
codeparrot/github-code
83ce5af95cb5aad1d9055530492e18ac0ffe1639260cf0ab8bebc37325eb72aa
package org.hisp.dhis.programrule; /* * Copyright (c) 2004-2016, 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 co...
Java
dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/programrule/ProgramRuleActionStoreTest.java
minagri-rwanda/DHIS2-Agriculture
bsd-3-clause
3,830
94
codeparrot/github-code
2dfb45e34db3cef750743a2f8528f565db27eca4af2dd839353d4155047cc4df
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 wit...
C#
Microsoft.Research/Contracts/System.ComponentModel.Composition/Sources/System.ComponentModel.Composition.Primitives.ComposablePart.cs
ndykman/CodeContracts
mit
2,825
78
codeparrot/github-code
4a6712570df1aad9f9775fa5690118135324afb1504b77650e0288b74dfece2b
// CodeContracts // // Copyright (c) Microsoft Corporation // // All rights reserved. // // MIT License // // 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 wit...
C#
Microsoft.Research/Contracts/MsCorlib/Sources/System.Reflection.Pointer.cs
ndykman/CodeContracts
mit
2,677
67
codeparrot/github-code
50137db326b5957f6f9c39643b56c9f2febac28dd2cbed59e3c6a6f0f651a84c
/* * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
C
libs/PhysX 3.3/include/geometry/PxTriangleMeshGeometry.h
ReDEnergy/GameEngine
mit
3,648
124
codeparrot/github-code
a3c3acea361773f75604b2ec27fc904be57136ebb809b8fd6c5283213a9baa42
using System; class ScoreBoard { public const int NUMBER_OF_SCORES = 5; private string[] scoreNames = new string[NUMBER_OF_SCORES]; private int[] mistackes = new int[NUMBER_OF_SCORES]; private bool isEmpty; public ScoreBoard() { for (int i = 0; i < scoreNames.Length; i++) { ...
C#
Teamwork/Hangman/Hangman-1/ScoreBoard.cs
bozhikovstanislav/High-Quality-Code
mit
2,404
96
codeparrot/github-code
d1da1dd9fc1e792f4be9628233290edc1de02392d2eee56e5b9fd111a9e76595
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
C
py/lexer.c
ceramos/micropython
mit
27,120
784
codeparrot/github-code
83e47eb7f9580a798ff8b8724745e48ece4417b16e966b656d86daab4c028512
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>libcurl-share man page</title> <meta name="generator" content="roffit"> <STYLE type="text/css"> P.level0 { padding-left: 2em; } P.level1 { padding-left: 4em; } P.level2 { padding-left: 6em; }...
HTML
src/curl/docs/libcurl/libcurl-share.html
coinkeeper/2015-06-22_18-37_devcoin
mit
3,645
64
codeparrot/github-code
51a3db70acd5c0887aabd92b77befa4d2c4fdc1af2ed1a05343feb32fc900f2f
///////////////////////////////////////////////////////////////////////////// // Name: src/dfb/toplevel.cpp // Purpose: Top level window, abstraction of wxFrame and wxDialog // Author: Vaclav Slavik // Created: 2006-08-10 // RCS-ID: $Id$ // Copyright: (c) 2006 REA Elektronik GmbH // Licence: ...
C++
win32/clamav-for-windows/sigui/wxWidgets-2.9.1/src/dfb/toplevel.cpp
Distrotech/clamav
gpl-2.0
5,811
208
codeparrot/github-code
7efdf10c1f3001e99090de7d8b0015a6697f72fe2d381a441bdfa63589375598
/* ********************************************************************************************************* * uC/GUI * Universal graphic software for embedded applications * * (c) Copyright 2002, Micrium Inc., Weston, FL ...
C
3-野火ISO-系统进阶篇/uCGUI/竖屏GUI_DEMO/uCGUI/uCGUIDemo/GUIDEMO_ProgBar.c
WildfireTeamPRJ/wildfire_stm32_iso
gpl-2.0
4,999
148
codeparrot/github-code
890855bce59c6debc59b12dab7b0fe20d68d553eadfe3367c2e66645b1fcedae
<?php /** * @package All-in-One-SEO-Pack */ /** * The module base class; handles settings, options, menus, metaboxes, etc. */ if ( !class_exists( 'All_in_One_SEO_Pack_Module' ) ) { abstract class All_in_One_SEO_Pack_Module { public static $instance = null; protected $plugin_name; protected $name; protected...
PHP
wp-content/plugins/all-in-one-seo-pack/aioseop_module_class.php
subhadip-sahoo/wp-projectIW
gpl-2.0
53,606
1,410
codeparrot/github-code
e63843315a9c5cab1ce36b0b531996e4a6b02d9c87a1032b85567dde537ff6ee
<?php /** * WordPress Administration Bootstrap * * @package WordPress * @subpackage Administration */ /** * In WordPress Administration Screens * * @since 2.3.2 */ if ( ! defined( 'WP_ADMIN' ) ) { define( 'WP_ADMIN', true ); } if ( ! defined('WP_NETWORK_ADMIN') ) define('WP_NETWORK_ADMIN'...
PHP
wp-admin/admin.php
willford1/podehole
gpl-2.0
11,091
362
codeparrot/github-code
b829a58a8a3d68cda1c0c4985d941b39f70d6bec3188d0c4071590411a96fff6
/* * Builtin "git log" and related commands (show, whatchanged) * * (C) Copyright 2006 Linus Torvalds * 2006 Junio Hamano */ #include "cache.h" #include "color.h" #include "commit.h" #include "diff.h" #include "revision.h" #include "log-tree.h" #include "builtin.h" #include "tag.h" #include "reflog-walk.h" #incl...
C
builtin/log.c
github/git-msysgit
gpl-2.0
43,951
1,662
codeparrot/github-code
57870a57978dfc0ca56ed0ba3a2b4f652db645eeb26d9b38eee09a17aaae2757
<?php /** * Standard (a.k.a. Classic) skin: old MediaWiki default skin * * @file * @ingroup Skins */ if( !defined( 'MEDIAWIKI' ) ) { die( -1 ); } /** * @todo document * @ingroup Skins */ class SkinStandard extends SkinLegacy { var $skinname = 'standard', $stylename = 'standard', $template = 'StandardTempl...
PHP
skins/standard.php
guerciobr/wiki
gpl-2.0
8,346
272
codeparrot/github-code
b2a026354d70c493e42e07793fc768ec9b01bf69efa3d3aab720a24deb081bf5
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either ver...
C++
src/server/game/Accounts/AccountMgr.cpp
Doxito/Ri-Core_Privado
gpl-2.0
8,808
300
codeparrot/github-code
504bdd45b4975e8cb2b6cc488780c3d80ea00219a1052e55eacd320da32d9e4a
// SPDX-License-Identifier: GPL-2.0-only /* * AMD Memory Encryption Support * * Copyright (C) 2016 Advanced Micro Devices, Inc. * * Author: Tom Lendacky <thomas.lendacky@amd.com> */ #define DISABLE_BRANCH_PROFILING #include <linux/linkage.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/dma-dire...
C
arch/x86/mm/mem_encrypt.c
koct9i/linux
gpl-2.0
10,179
395
codeparrot/github-code
a2a06cc32e382c3312d839b421ec74174034bcbdc9252e223c9055681609150f
#pragma region License (non-CC) // This source code contains the work of the Independent JPEG Group. // Please see accompanying notice in code comments and/or readme file // for the terms of distribution and use regarding this code. #pragma endregion /* * jclossls.c * * Copyright (C) 1998, Thomas G. Lane. * This...
C
Dicom/Codec/Jpeg/libijg8/jclossls.c
chinapacs/ImageViewer
gpl-3.0
2,207
91
codeparrot/github-code
90a4c11d3775da31d3a8a2698623cc1474599234a7803c4e973cac8663d62522
<?php require_once $config['install_dir'].'/includes/device-groups.inc.php'; $where = ' `devices`.`disabled` = 0'; $alert_states = array( // divined from librenms/alerts.php 'recovered' => 0, 'alerted' => 1, 'acknowledged' => 2, 'worse' => 3, 'better' => 4 ); $alert_severities = array( /...
PHP
html/includes/table/alerts.inc.php
worton/librenms
gpl-3.0
5,582
177
codeparrot/github-code
c85edceb859027cd917dc93496ea6e9b704d1b1e7ab417a34364411ffc937cad
// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_TRANSITIONS_H_ #define V8_TRANSITIONS_H_ #include "src/checks.h" #include "src/elements-kind.h" #include "src/heap/heap.h" #include "src/iso...
C
vender/src/v8/src/transitions.h
xushiwei/fibjs
gpl-3.0
6,941
195
codeparrot/github-code
d315078fd6092125b9a4ab6a26e3c51ba7d4b2ca70df87d3f4f945513034dd04
/* * Copyright (c) 2006-2009 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * i...
C
xLights/Box2D/Dynamics/b2ContactManager.h
smeighan/xLights
gpl-3.0
1,593
56
codeparrot/github-code
3b75ba3e68c67d9a0e6788bac1e30b5fef37b89e7bce62f83fbdd21a7e476d1a
#include "../audio/audio.h" #include "../scenario.h" #include "sprite.h" /** * * rct2: 0x006736C7 */ void create_balloon(int x, int y, int z, int colour, uint8 bl) { rct_sprite* sprite = create_sprite(2); if (sprite != NULL) { sprite->balloon.var_14 = 13; sprite->balloon.var_09 = 22; sprite->balloon.var_15...
C
src/world/balloon.c
janisozaur/rct-release-test
gpl-3.0
1,689
84
codeparrot/github-code
f3191afc60d620d8c6611331038ccc2b9414649eeba37c541b0468c42278774b
// Copyright (C) 2014 The Syncthing Authors. // // 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/. //go:generate -command genxdr go run ../../Godeps/_workspace/src/gith...
GO
lib/discover/localpackets.go
butlife/syncthing
mpl-2.0
820
36
codeparrot/github-code
dfc5ed7d987de3a6ef9a964cb15e7499157fea77969b602d13244c5fa8c57d01
/********************************************************************* * * Copyright (C) 2004 Andrew Khan * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of th...
Java
src/jxl/biff/drawing/DrawingData.java
miraculix0815/jexcelapi
lgpl-3.0
5,798
233
codeparrot/github-code
6180835ee8018cc2eeedcc802c9ff1f57d64d9ad7e9d4092c316526f93ec7a44
/* Copyright 2014 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
pkg/kubelet/runonce.go
anguslees/kubernetes
apache-2.0
5,007
156
codeparrot/github-code
a1d01c8f4838cf05ab443d047cc800daaa0d6861127721d99eb0a33f66f66ed4
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.json; import com.intellij.json.psi.impl.JsonFileImpl; import com.intellij.lang.ASTNode; import com.intellij.lang.ParserDefinition; import com.intellij.lang.P...
Java
json/src/com/intellij/json/JsonParserDefinition.java
siosio/intellij-community
apache-2.0
2,801
85
codeparrot/github-code
060effb59bf42a9c33a1397396d0397ac7495feb2ab771b58c0a8159cecd4ef5
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.plugins; import com.intellij.util.ui.ColumnInfo; import com.intellij.util.ui.SortableColumnModel; import javax.swing.*; import javax.swing.table.Abstrac...
Java
platform/platform-impl/src/com/intellij/ide/plugins/PluginTableModel.java
siosio/intellij-community
apache-2.0
2,052
86
codeparrot/github-code
65d20770263a2a1d086efacf564c4cf59028bee086fe87352c4fa9e2d46a9aa4
/* * 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 ...
Scala
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala
ueshin/apache-spark
apache-2.0
25,855
619
codeparrot/github-code
6f38f5582f9f5eb171022d911fa7f3e4e678c4490bc0794241a8726199491e7c
/* * Copyright 2012 ZXing 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 ...
Java
zxing/com/google/zxing/pdf417/PDF417Writer.java
maplebaconburgr/ACQR-android
apache-2.0
5,359
156
codeparrot/github-code
144fb9eeb2ca5dc09358add6980c483dd68a75d4d533fc4f46f71adb2b87a2e0
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.util.newProjectWizard; import com.intellij.diagnostic.PluginException; import com.intellij.framework.FrameworkOrGroup; import com.intellij.openapi.diagno...
Java
java/idea-ui/src/com/intellij/ide/util/newProjectWizard/FrameworkSupportNodeBase.java
siosio/intellij-community
apache-2.0
3,029
89
codeparrot/github-code
03f3ee1a9ee8262dba612f46ee90a888f361f82bb48eb9c371c1e0d050c14d7a
/* * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
platform/vcs-api/src/com/intellij/openapi/vcs/FilterDescendantVirtualFileConvertible.java
goodwinnk/intellij-community
apache-2.0
1,653
49
codeparrot/github-code
b222e3d89e754461c76e46dd73f82388ae75de0ca1e6c52bcfc565f85d4e39ba
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. /* * XSD/DTD Model generator tool * * By Gregory Shrago * 2002 - 2006 */ package org.jetbrains.idea.devkit.dom.generator; import org.apache.xerces.impl.dv.XSSimpleType; imp...
Java
plugins/devkit/devkit-core/src/dom/generator/XSDModelLoader.java
siosio/intellij-community
apache-2.0
30,745
671
codeparrot/github-code
375e5cdbc81779aecb22ddaa427b793944c48e0a4a2a23c2af665d6b715c020e
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
JavaScript
src/isomorphic/modern/class/__tests__/ReactES6Class-test.js
miaozhirui/react
bsd-3-clause
13,699
465
codeparrot/github-code
0e7f82258b8ea6bfd5e291b6df97edc477bdd54974de74a36fd4e2f7e67a9d3a
// RUN: %clang_cc1 -verify -ast-dump %s | \ // RUN: FileCheck --implicit-check-not OwnerAttr --implicit-check-not PointerAttr %s int [[gsl::Owner]] i; // expected-error@-1 {{'Owner' attribute cannot be applied to types}} void [[gsl::Owner]] f(); // expected-error@-1 {{'Owner' attribute cannot be applied to types}} [[...
C++
third_party/llvm/clang/test/SemaCXX/attr-gsl-owner-pointer.cpp
endlessm/chromium-browser
bsd-3-clause
4,542
127
codeparrot/github-code
ec5127bd191b107afa974168201d75c4c5467b278b0e56b71a7f17dec4b2cd80
require "optparse" require "sensu/logger/constants" module Sensu class CLI # Parse CLI arguments using Ruby stdlib `optparse`. This method # provides Sensu with process options (eg. log file), and can # provide users with information, such as the Sensu version. # # @param arguments [Array] to par...
Ruby
lib/sensu/cli.rb
keymone/sensu
mit
1,989
58
codeparrot/github-code
e7693289f330db85e4e13653c8e8a14b0bfbe84595dd7ca72ef21d2d02614efb
steal('can/util','can/util/string', function( can ){ // ## deparam.js // `can.deparam` // _Takes a string of name value pairs and returns a Object literal that represents those params._ var digitTest = /^\d+$/, keyBreaker = /([^\[\]]+)|(\[\])/g, paramTest = /([^?#]*)(#.*)?$/, prep = function( str ) { ...
JavaScript
util/string/deparam/deparam.js
agileurbanite/canjs
mit
1,301
55
codeparrot/github-code
5790b913e4ed23e14220fe5ed8be77aae5f1f9b414bdee2646db80d5c9184c93
using System.Collections.Generic; using System.Net.Http; using System.Web.Http.Filters; using Umbraco.Web.Models.ContentEditing; namespace Umbraco.Web.Editors { /// <summary> /// This sets the IsCurrentUser property on any outgoing <see cref="UserDisplay"/> model or any collection of <see cref="UserDisplay"/> ...
C#
src/Umbraco.Web/Editors/IsCurrentUserModelFilterAttribute.cs
aaronpowell/Umbraco-CMS
mit
2,079
56
codeparrot/github-code
d4d657ba349d0c769a641f4f2a364fdef5dff8e8e9f7de6a96d184edacaa1ec3
using System; using System.Text; using JSIL.Meta; using JSIL.Proxy; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; namespace JSIL.Proxies { [JSProxy( typeof(Microsoft.Xna.Framework.Graphics.SpriteBatch), JSProxyMemberPolicy.ReplaceDeclared, JSProxyAttributePolicy.Re...
C#
Proxies/XNA4/SpriteBatch.cs
hach-que/JSIL
mit
3,666
80
codeparrot/github-code
1d78c7e2a51a1766cdc27885dc99f67147b806aabdcca64c5b15781f7fd6f71f
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt frappe.breadcrumbs = { all: {}, preferred: { "File": "" }, set_doctype_module: function(doctype, module) { localStorage["preferred_breadcrumbs:" + doctype] = module; }, get_doctype_module: function(doctyp...
JavaScript
frappe/public/js/frappe/views/breadcrumbs.js
gangadharkadam/saloon_frappe
mit
2,621
84
codeparrot/github-code
3fabeecddfb0e1f8533857a2e5a056a8b72b6d464d7834ea8c5110fdb0f46d55
/** @file * * VBox frontends: Qt GUI ("VirtualBox"): * VirtualBox Qt extensions: QITableView class declaration */ /* * Copyright (C) 2010 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redis...
C
src/VBox/Frontends/VirtualBox/src/extensions/QITableView.h
yuyuyu101/VirtualBox-NetBSD
gpl-2.0
1,162
45
codeparrot/github-code
bdb69ba52d7de4ceb146c94d9700ffcd1d8f23018edc728248d06bb9822803ca
/*global jQuery */ /*jshint multistr:true browser:true */ /*! * FitVids 1.0 * * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sa...
JavaScript
wp-content/themes/visia/js/jquery.fitvids.js
manuel-munoz-jd/studioawak
gpl-2.0
2,778
74
codeparrot/github-code
c567d1d7021fc70aa8045aac8a35ed0930d1378a31c6b2a3bb63f60101d89c64
<?php /* Plugin Name: Video Feed Box */ ?> <?php global $SMTheme; $video_defaults = array( 'width' =>'272', 'title' => 'Video', 'videos' => array( array( 'title' => 'The Mountain', 'url' => 'http://vimeo.com/22439234/', 'type' => 'vimeo', 'videoid' => '22439234' )...
PHP
wp-content/themes/sportup/inc/widgets/video.php
vladenyatko/olimpic
gpl-2.0
8,775
194
codeparrot/github-code
22918b0d8e3779c63162318a9489dd032ac9b5afe1e138e7592c8c2af7680968
<?php // $Id$ require('../config.php'); require('lib.php'); require_login(); if (isguest()) { redirect($CFG->wwwroot); } if (empty($CFG->messaging)) { error("Messaging is disabled on this site"); } /// Script parameters $userid = required_param('id', PARAM_INT)...
PHP
message/user.php
luiscarl23/moodle19
gpl-2.0
3,715
93
codeparrot/github-code
b557fe51672e0526d20e89dcb31d02da7e200da9ad42ff13e79529673b7e8f6b
/* * 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 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it w...
C
sound/usb/pcm.c
bas-t/linux_media
gpl-2.0
48,819
1,725
codeparrot/github-code
450ab8dc23f17934bb37b3ad496764ba9a0e62a3a45903fa748dfaf22e08ad05
<?php namespace Drupal\advagg_css_minify\Asset; use Drupal\Component\Utility\Unicode; use Drupal\Core\Asset\AssetOptimizerInterface; use Drupal\Core\Asset\CssOptimizer as CoreCssOptimizer; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Extension\ModuleHandl...
PHP
modules/contrib/advagg/advagg_css_minify/src/Asset/CssOptimizer.php
cooper-webdesign/cooper.dk
gpl-2.0
8,722
251
codeparrot/github-code
c667a3ccc5c5cf0f922486c1e591b2b3f5c8f016de03352554a31a13666300d8
<?php /** * PEAR, the PHP Extension and Application Repository * * PEAR class and PEAR_Error class * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If y...
PHP
lib/pear/PEAR.php
nicolasconnault/moodle2.0
gpl-2.0
33,949
1,096
codeparrot/github-code
02c2e394c1d724db2f50daecad20e4c92752d6970b99127bd7b52abd1f3c9f61
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> ...
HTML
install/opennode2010/stm32l1xx/usb_fs/Release_Notes.html
openwsn/node
gpl-2.0
35,543
878
codeparrot/github-code
f445fe982a981942f193886b0bfeb133dfe36b248c12516612a3f70b4fa2092c
/* * samplerate conversion for both audio and video * Copyright (c) 2000 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * ver...
C
release/src/router/ffmpeg/libavcodec/resample.c
wkritzinger/asuswrt-merlin
gpl-2.0
14,576
439
codeparrot/github-code
637dc8358e942a971a027830cc7febfae696de530766b7bc3649f93e6fdcde3b
/* * Copyright (c) 2010, Ajax.org B.V. * 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 of co...
JavaScript
plugins/editors/rokpad/ace/mode-makefile.js
sullivanLi/joomla-laconic
gpl-2.0
10,844
324
codeparrot/github-code
4e9d67c41e3748185edf8c583d7d49dcee40f4b931aef700f9d851c21e2c753b
/* stt.c -- Implementation File (module.c template V1.0) Copyright (C) 1995, 1997 Free Software Foundation, Inc. Contributed by James Craig Burley. This file is part of GNU Fortran. GNU Fortran is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
C
osprey/kgccfe/gnu/f/stt.c
uhhpctools/openuh-openacc
gpl-3.0
22,908
901
codeparrot/github-code
01e5e1300944ee7a10892203a6ad69756b321f1be9d4034bd344df8390b5899a
#if PocketPC #pragma warning disable 1591 // This class is... borrowed from .NET and Microsoft for a short time. // Hopefully Microsoft will add DateTimeOffset to the compact framework // or I will rewrite a striped down version of this file myself namespace System.Runtime.Serialization { public enum Stre...
C#
trunk/tools/Json.Net/Source/Src/Newtonsoft.Json/StreamingContext.cs
consumentor/Server
lgpl-3.0
1,493
64
codeparrot/github-code
f8f745cdb139629c6e9a503ec1fb9daecae6a68933fe88f7a5082a273d390491
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ui; public final class TableCell { public final int row; public final int column; public TableCell(int rowIndex, int columnIndex) { row = rowIndex...
Java
platform/core-ui/src/ui/TableCell.java
siosio/intellij-community
apache-2.0
864
36
codeparrot/github-code
6fb26a3dfb219dc2d05a7ee904483320f8f41b2f5ddf2378598027c9abeaae5a
/* * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
android/com/facebook/buck/android/support/exopackage/Reflect.java
clonetwin26/buck
apache-2.0
1,264
38
codeparrot/github-code
59b15b8e14fbbf8a4f53dff9abcee4d51e516507713afcb18f8d0902645a6928
/* * Copyright 2015-present Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
core/api/src/test/java/org/onosproject/store/cluster/messaging/ClusterMessageTest.java
lsinfo3/onos
apache-2.0
2,754
83
codeparrot/github-code
6ac8abef2ecb6ddc62a7311c3f8d39c2338c2933276e8a7e7c06df80b8ccda52
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
modules/ml/src/main/java/org/apache/ignite/ml/dataset/primitive/builder/data/SimpleLabeledDatasetDataBuilder.java
samaitra/ignite
apache-2.0
4,072
101
codeparrot/github-code
c37b7eda24d13d5ca1f01a06262b861475101558614bc975ab0040cb99bff172
/** * 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
connectors/camel-connector-maven-plugin/src/main/java/org/apache/camel/maven/connector/model/EndpointOptionModel.java
gautric/camel
apache-2.0
7,000
215
codeparrot/github-code
48f091ea19832f98c74208d542159283febd6be7730461b96699fcb7248a2826
/* changes-table.h : internal interface to `changes' table * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional inform...
C
subversion/libsvn_fs_base/bdb/changes-table.h
YueLinHo/Subversion
apache-2.0
3,767
95
codeparrot/github-code
39965e34d0e566fc43cc7360974303e22278d381bbcdf5d4a616bbbfc986dbe6
/* * 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
catalog/camel-route-parser/src/test/java/org/apache/camel/parser/java/MyChoiceRouteBuilder.java
nikhilvibhav/camel
apache-2.0
1,422
39
codeparrot/github-code
fbe62ac7ea33a5d06c34d71da0c7b93e5009f2329af885416879f63559c11a53
/** * @module Wiki * @main Wiki */ /// <reference path="wikiHelpers.ts"/> /// <reference path="../../ui/js/dropDown.ts"/> /// <reference path="../../core/js/workspace.ts"/> /// <reference path="../../git/js/git.ts"/> /// <reference path="../../git/js/gitHelpers.ts"/> /// <reference path="../../helpers/js/pluginHelpe...
TypeScript
hawtio-web/src/main/webapp/app/wiki/js/wikiPlugin.ts
fortyrunner/hawtio
apache-2.0
6,245
151
codeparrot/github-code
6b96bc70be6158c8ad5bf5d4da07ec65205b35f626f7b8d63658063f427c33fe
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
Java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/transformations/impl/BaseScriptTransformationSupport.java
asedunov/intellij-community
apache-2.0
4,611
107
codeparrot/github-code
44c592eb66ae08674b9d9dbe8fae620d2026165ea5af6686f19cb7cb1e8191ad
/* * 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
catalog/camel-route-parser/src/test/java/org/apache/camel/parser/java/RoasterJavaDslTest.java
nikhilvibhav/camel
apache-2.0
3,345
85
codeparrot/github-code
a759fb43923dd980e34fe3c1cc5f087e09e02a9fc928914e57d6d73ac64e8540
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
core/camel-core/src/test/java/org/apache/camel/processor/ThrottlingExceptionRoutePolicyHalfOpenHandlerSedaTest.java
nikhilvibhav/camel
apache-2.0
4,845
136
codeparrot/github-code
bad49a4fd31ce0326b6d2201982128258a4bf9b5bae5bc097c4ed18631e89c75
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
Java
java/src/org/openqa/selenium/interactions/touch/ScrollAction.java
titusfortner/selenium
apache-2.0
1,689
52
codeparrot/github-code
d826413beeb5a4a3f360bc885c4ee981003abc48153cf7186def4aa85f0abfaa
/** * 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...
Scala
core/src/main/scala/kafka/coordinator/GroupMetadata.scala
bondj/kafka
apache-2.0
8,679
243
codeparrot/github-code
d5d0c9ecbd60c105fe19d57ee60683d587f8e9adff9e4546534b094cc372eaa4
/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <pr...
C++
proxygen/lib/http/codec/experimental/HTTP2Codec.cpp
chenmoshushi/proxygen
bsd-3-clause
37,165
985
codeparrot/github-code
fcbd8412c7710d508c34086090cae133c7af140f30719fe0ba729c4b7ce93a80
//===----------------------------------------------------------------------===// // // 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/thread/futures/futures.task/futures.task.nonmembers/swap.pass.cpp
youtube/cobalt
bsd-3-clause
1,291
54
codeparrot/github-code
e2561d0217581fada0852cb3e7d3b27a149e8bc79ca4d5f7d1d3516e102aa55a
/* ----------------------------------------------------------------------------- * * (c) The GHC Team 1998-2009 * * Operations on the mark stack * * Documentation on the architecture of the Garbage Collector can be * found in the online commentary: * * http://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Sto...
C
rts/sm/MarkStack.h
ezyang/ghc
bsd-3-clause
1,574
70
codeparrot/github-code
9444c52995376bfe617abdde7b63c19238059f81df8ee6e1353610ed11074efb
import { AST, ASTPlugin, ASTPluginEnvironment } from '@glimmer/syntax'; /** @module ember */ /** A Glimmer2 AST transformation that replaces all instances of ```handlebars {{hasBlock}} ``` with ```handlebars {{has-block}} ``` @private @class TransformHasBlockSyntax */ const TRANSFORMATIONS = { ...
TypeScript
packages/ember-template-compiler/lib/plugins/transform-has-block-syntax.ts
bekzod/ember.js
mit
1,394
59
codeparrot/github-code
dc4db70e28451c664575a261b7f065aa9c3d363d8091f16b0bbf24717a044c30
import Ember from 'ember'; import {request as ajax} from 'ic-ajax'; export default Ember.Controller.extend({ uploadButtonText: 'Import', importErrors: '', ghostPaths: Ember.inject.service('ghost-paths'), notifications: Ember.inject.service(), labsJSON: Ember.computed('model.labs', function () { ...
JavaScript
core/client/app/controllers/settings/labs.js
kortemy/Ghost
mit
3,445
97
codeparrot/github-code
9a24ca6da0574640a04ffc3f7b18966823263e93c36dda3ca3636933f236f6bb
/* Project Orleans Cloud Service SDK ver. 1.0 Copyright (c) Microsoft Corporation All rights reserved. MIT License 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, inc...
C#
src/Orleans/Configuration/ApplicationConfiguration.cs
modulexcite/orleans
mit
15,869
408
codeparrot/github-code
822a905b4c3bc85eeda61f1e78e32e251a0bb6b63d63e35d47918fefab57e650
/** * Copyright (c) 2009--2010 Red Hat, Inc. * * This software is licensed to you under the GNU General Public License, * version 2 (GPLv2). There is NO WARRANTY for this software, express or * implied, including the implied warranties of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. You should have rece...
Java
java/code/src/com/redhat/rhn/domain/test/TestFactory.java
colloquium/spacewalk
gpl-2.0
2,010
74
codeparrot/github-code
804e310f2bc1781ae6812f6c899473ef47a5e33c0251096c3bcf862836709148
package Plack::Handler::Apache2; use strict; use warnings; use Apache2::RequestRec; use Apache2::RequestIO; use Apache2::RequestUtil; use Apache2::Response; use Apache2::Const -compile => qw(OK); use Apache2::Log; use APR::Table; use IO::Handle; use Plack::Util; use Scalar::Util; use URI; use URI::Escape; my %apps; # ...
Perl
strawberry-perl-5.20.0.1-32bit-portable/perl/site/lib/Plack/Handler/Apache2.pm
mishin/dwimperl-windows
gpl-2.0
10,336
379
codeparrot/github-code
69dfeecb40ebf86278b125333ffbb0350413f04194828f822025dbd70200cd9b
/* * dummy_fuelgauge.c * Samsung Dummy Fuel Gauge Driver * * Copyright (C) 2012 Samsung Electronics * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #include <linux...
C
drivers/battery/stc3115_fuelgauge.c
cm-3470/android_kernel_samsung_degaslte
gpl-2.0
45,019
1,539
codeparrot/github-code
4e35231b96f7e1761d5ae7850e0abe9f972f7da317e139a661cc27e619562281
"""Encryption module that uses pycryptopp or pycrypto""" try: # Pycryptopp is preferred over Crypto because Crypto has had # various periods of not being maintained, and pycryptopp uses # the Crypto++ library which is generally considered the 'gold standard' # of crypto implementations from pycrypto...
Python
web/controller/beaker/crypto/pycrypto.py
abdesslem/malwareHunter
gpl-2.0
970
35
codeparrot/github-code
e64e355da8145dbe678d3c372714640ce26f2ef7efe512c55b385de936a7ea81
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license a...
PHP
zend/resources/Zend/Session.php
chisimba/modules
gpl-2.0
27,797
882
codeparrot/github-code
ff0fcef50582990c1f1d43b382ec5526bf6da6313d8841d93ac9643b8b53c957
/* Copyright (c) 2010-2014, 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...
C
drivers/devfreq/governor_msm_adreno_tz.c
kirananto/REDMI2_RAZOR
gpl-2.0
13,294
512
codeparrot/github-code