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
d20c828c449da5e96cf4b6a796924ea4ff11ca3d648f10662706ab5793d0fa56
/* =========================================================================== Copyright (c) 2010-2015 Darkstar Dev Teams 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 versi...
C
src/map/entities/battleentity.h
greasydeal/darkstar
gpl-3.0
18,507
571
codeparrot/github-code
c063d286c7306d31984e7b08b4c8d9de34f7b9cb6645f5515fbe58a3e4c66e33
package gui.simpleUI.modifiers; import gui.simpleUI.AbstractModifier; import gui.simpleUI.SimpleUIv1; import util.Log; import android.content.Context; import android.view.Gravity; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.widget.EditText; import android.widget.LinearLayout; i...
Java
droidar/src/gui/simpleUI/modifiers/IntModifier.java
jaechoon2/droidar
gpl-3.0
1,723
69
codeparrot/github-code
e522b44a352b38963a7a5988baefcf7a7b1bcbd410a3cf155db2d42214e9189c
/* * Copyright (c) 2010 Nolan Lum <nol888@gmail.com> * Copyright (c) 2009 Loren Merritt <lorenm@u.washignton.edu> * * 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 ...
C
source/mplayer/ffmpeg/libavfilter/vf_gradfun.c
SuperrSonic/WiiMC-SSLC
gpl-3.0
9,235
255
codeparrot/github-code
de73caebe58806a303ac393801e6b98c92367f39be068575c1df4f5d69a6366c
#pragma once #include "DomoticzHardware.h" #include <iostream> #include "hardwaretypes.h" class CEcoDevices : public CDomoticzHardwareBase { public: CEcoDevices(const int ID, const std::string IPAddress, const unsigned short usIPPort); ~CEcoDevices(void); bool WriteToHardware(const char *pdata, const un...
C
hardware/EcoDevices.h
xs4/domoticz
gpl-3.0
721
33
codeparrot/github-code
85332ea8cd258ef0c145703152b1e0d4d36193629520356d52723bfe5bb02c7f
/* * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3 * http://www.gnu.org/licenses/gpl-3.0.html * * $Revision$ * $Id$ * $HeadURL$ */ #include <sdk.h> #ifndef CB_PRECOMP #include <wx/string.h> #include <cbproject.h> #include <projectfile.h> #en...
C++
src/plugins/codecompletion/parser/parserthreadedtask.cpp
stahta01/codeblocks_msys2
gpl-3.0
4,099
144
codeparrot/github-code
28ceed2c22af05be183d07cfacc7aaf67a59b130d70f35f47fd639576dc4ffde
/* reiserfs.c - ReiserFS versions up to 3.6 */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2003,2004,2005,2008 Free Software Foundation, Inc. * * GRUB 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 Softwar...
C
grub-core/fs/reiserfs.c
projectgnu/grub
gpl-3.0
42,564
1,407
codeparrot/github-code
e92e1303c20340652bf67d42cf8399b09dd284dd35cef7726dc56c6657aa2293
/* File: Start.h Contains: Start Manager Interfaces. Version: Technology: Mac OS 8.5 Release: QuickTime 6.0.2 Copyright: (c) 1987-2001 by Apple Computer, Inc., all rights reserved Bugs?: For bug reports, consult the following page on ...
C
of_vs/libs/quicktime/include/Start.h
sangww/eyecan
gpl-3.0
17,281
366
codeparrot/github-code
546f94cad48254b1f9852a98259e4936debeed2c221c82df07095aec0e98b0b5
/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is distributed in the...
C++
libaleth/Debugger.cpp
CJentzsch/alethzero
gpl-3.0
12,459
384
codeparrot/github-code
89e8926324a0192e5fb64e9f2cf8dabaadfca1da37ca005b631e86e31b1b8598
/* global describe, beforeEach, it */ import { expect } from "chai"; import { shouldOpenInNewTab } from "./utils"; describe("app/lib/utils:shouldOpenInNewTab", () => { let mockClickEvent; beforeEach(() => { mockClickEvent = { ctrlKey: false, metaKey: false, type: "click", button: 0 ...
JavaScript
frontend/src/app/lib/tests.js
mozilla/idea-town
mpl-2.0
1,211
46
codeparrot/github-code
7f2427b5321d86990009295a71ba127689b209f335a6774149a152d541ea6cbc
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
Python
openerp/addons/account/wizard/account_reconcile.py
Johnzero/erp
agpl-3.0
8,252
176
codeparrot/github-code
6b8863364d60529ead96b474ce41ff58ce26f857b4de5329aabe0bbea559c508
<?php /** * Base static class for performing query and update operations on the 'short_link' table. * * * * @package plugins.shortLink * @subpackage model.om */ abstract class BaseShortLinkPeer { /** the default database name for this class */ const DATABASE_NAME = 'propel'; /** the table name for this cl...
PHP
plugins/short_link/lib/model/om/BaseShortLinkPeer.php
gale320/server
agpl-3.0
35,423
1,043
codeparrot/github-code
d09634dc32723bc966b2f03218b86f422d02761acb468a5d28a033fc738ffc8c
/* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * (C) Copyright 2000-2014, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/in...
Java
source/org/jfree/chart/plot/ContourPlot.java
ceabie/jfreechart
lgpl-2.1
59,758
1,862
codeparrot/github-code
52e5b9ab103531f193e1b1eb68a52679aa07d2b5280f3841f44ee5629ea42574
# ********************************************************** # Copyright (c) 2006 VMware, Inc. All rights reserved. # ********************************************************** # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are...
Perl
tools/desktop-scripts/getmeminfo_automate.pl
bl4ckic3/dynamorio
lgpl-2.1
7,887
239
codeparrot/github-code
90116e29f32983fb02632d2bcc262c68f58c277204672bedf4618dc2c1235f5f
/* * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. * * 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 Foundat...
C++
webkit-1.2.5/WebCore/rendering/style/StyleInheritedData.cpp
pocketbook-free/browser
lgpl-2.1
2,961
89
codeparrot/github-code
32e15573a3c5412e4a8c7807e799acfa0e192a21bb18f0604e93a1ce6747bac3
//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgpl-2.1.html #in...
C++
framework/src/reporters/ReporterContext.C
harterj/moose
lgpl-2.1
1,756
57
codeparrot/github-code
b4262c47170bac8391b40e23e89e938dfd7900a9b9db675c7838f49bd11c29bc
/* * eXist Open Source Native XML Database * Copyright (C) 2001-2015 The eXist Project * http://exist-db.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version ...
Java
src/org/exist/xquery/BasicExpressionVisitor.java
opax/exist
lgpl-2.1
7,322
270
codeparrot/github-code
9e633c50263c50275bc9a770a2e04c6cf91dcf0f44277163baf6d8edcc134e04
package org.jaudiotagger.tag.images; import org.jaudiotagger.tag.id3.valuepair.ImageFormats; import javax.imageio.ImageIO; import javax.imageio.ImageWriter; import javax.imageio.stream.ImageInputStream; import java.awt.*; import java.awt.geom.AffineTransform; import java.awt.image.BufferedImage; import java...
Java
src/org/jaudiotagger/tag/images/StandardImageHandler.java
syntelos/cddb
lgpl-3.0
4,653
162
codeparrot/github-code
88aea1e5b2f34f0649cef2808cd148738347697ab5c1dc9bd3a806009c9d40a7
package Genome::InstrumentData::Command::Import::CreateEntities; use strict; use warnings; use Genome; use Genome::InstrumentData::Command::Import::Inputs::Factory; require File::Basename; require List::MoreUtils; use Params::Validate qw( :types ); class Genome::InstrumentData::Command::Import::CreateEntities { ...
Perl
lib/perl/Genome/InstrumentData/Command/Import/CreateEntities.pm
genome/genome
lgpl-3.0
4,154
108
codeparrot/github-code
15b641842e5b978fefa53f69c71c35128249cf9f3f35f5d47bce2592a86d2d38
/* 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/thirdparty/batik/sources/org/apache/flex/forks/batik/dom/AbstractComment.java
shyamalschandra/flex-sdk
apache-2.0
1,748
57
codeparrot/github-code
03255bbe3be29b59ddf6ed668c94ef2d48e724fe388d364e609005f0afa50d58
/* * Copyright 2000-2017 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 org.jetbrains.plugins.groovy.lang.psi.typeEnhancers; import com.intellij.psi.*; import com.intellij.psi.impl.light.LightElement; import com.intellij.psi.scope.Elem...
Java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/typeEnhancers/FromStringHintProcessor.java
goodwinnk/intellij-community
apache-2.0
3,478
93
codeparrot/github-code
697a2c54ed1f9165a4e5e8af60631c198504c5fc11c36851206a8fc7be885796
// 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; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.Diagnostics; using Microso...
C#
src/Features/Core/Portable/SolutionCrawler/SolutionCrawlerLogger.cs
basoundr/roslyn
apache-2.0
13,429
339
codeparrot/github-code
54b54809374a921f74712e5a2d9ba49e3b1c7f4f2ed6027c4a088ccdee467357
/* * The MIT License (MIT) * * Copyright (c) 2012-2013 OANDA Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without * limitation the righ...
C#
Brokerages/Oanda/RestV1/DataType/Instrument.cs
young-zhang/Lean
apache-2.0
3,292
141
codeparrot/github-code
5b1cad9d0d0aac01c0307688e135b07ae23522b7fe3c49acf11090947511bd17
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
samples/javaconfig/aspectj/src/test/java/sample/aspectj/AspectJInterceptorTests.java
thomasdarimont/spring-security
apache-2.0
3,577
108
codeparrot/github-code
c347c439b3b42616bac478597764c6d8203c326ff93491578c1803c7c113d667
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
Java
rice-middleware/impl/src/main/java/org/kuali/rice/kew/doctype/DocumentTypeSecurity.java
ricepanda/rice-git3
apache-2.0
15,608
354
codeparrot/github-code
a3641c212c898b9027a73675215ccd224e6cae559c7b8578cc270ef769ca494c
// Copyright 2000-2017 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.openapi.editor.impl.view; import org.jetbrains.annotations.NotNull; import java.awt.*; /** * Used for quick estimation of editor's viewable area size (wit...
Java
platform/platform-impl/src/com/intellij/openapi/editor/impl/view/ApproximationFragment.java
goodwinnk/intellij-community
apache-2.0
2,054
80
codeparrot/github-code
7243722ddf11ea08c0f3c83b2507fc674cb8ce22a5832250dfae47b5416e5868
/* * 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.security.user; import org.apache.h...
Java
x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/user/AnonymousUserIntegTests.java
robin13/elasticsearch
apache-2.0
2,865
69
codeparrot/github-code
a49a8063b880dafd0d0fd66e6842df2323be0baaf86b0a7c7faf5e8482e26371
/* 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/allocator.h
nburn42/tensorflow
apache-2.0
14,222
403
codeparrot/github-code
2152ece8e6c219285870fe4e029c3197474d4a49ad4b97491772f890cba21415
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinKeyObject.java
vineetgarg02/hive
apache-2.0
5,411
163
codeparrot/github-code
090b8265d68a35ce6021ed57f458282432f2d45528aef32c6ec9d5081e5017c8
/* * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2013-05-19 Bernard porting from LPC17xx drivers. */ #include <rtthread.h> #include "lwipopts.h" #include <netif/ethernetif.h> #include "lpc_iap.h" #i...
C
bsp/lpc43xx/drivers/drv_emac.c
hezlog/rt-thread
apache-2.0
14,239
533
codeparrot/github-code
460883b702ff8031a527784dc49479f0e997cc3ffa6cbf34304357ad296b4c68
var KeyVault = require('azure-keyvault'); var util = require('util'); var Crypto = require('crypto'); var AuthenticationContext = require('adal-node').AuthenticationContext; var clientId = '<to-be-filled>'; var clientSecret = '<to-be-filled>'; var vaultUri = '<to-be-filled>'; // Authenticator - retrieves the access t...
JavaScript
lib/services/keyVault/sample.js
begoldsm/azure-sdk-for-node
apache-2.0
6,910
176
codeparrot/github-code
676bfe895ea7167648ca7887d3ab0fe820876220fac3cb2b7ba6970916f85339
/* * Copyright 2011 INRIA Saclay * Copyright 2012-2013 Ecole Normale Superieure * * Use of this software is governed by the MIT license * * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France, * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod, * 91893 Orsay, France * and Ecole Normal...
C
lib/isl/isl_band.c
CompOpt4Apps/IEGenLib
bsd-2-clause
18,314
728
codeparrot/github-code
338a9bb251a1261bfddb2f543199d7d4b5bbff57864161c7722b71677e8efbc5
/* vim: set expandtab ts=4 sw=4: */ /* * You may redistribute this program and/or modify it under the terms of * the GNU General Public License as published by the Free Software Foundation, * either version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it...
C
ref_code/cjdns/interface/ETHInterface_linux.c
krattai/noo-ebs
bsd-2-clause
12,936
385
codeparrot/github-code
896a33df14e0107f09a2a1089c717a6e789f94bea5021850b10a6724a4b54f26
// 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. /** * @fileoverview An UI component to authenciate to Chrome. The component hosts * IdP web pages in a webview. A client who is interested in monitoring...
JavaScript
chrome/browser/resources/gaia_auth_host/authenticator.js
mxOBS/deb-pkg_trusty_chromium-browser
bsd-3-clause
10,746
327
codeparrot/github-code
7e2f7c451e4e9d9120f3f09bc65cca7cb5605264afc7b383d225b142e9f94984
/* * libjingle * Copyright 2013, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the f...
Java
trunk/talk/examples/android/src/org/appspot/apprtc/GAEChannelClient.java
wangscript/libjingle-1
bsd-3-clause
5,796
165
codeparrot/github-code
c25a529c05102b9158353da4ddd00f251dda73eab86060c03a68a4cd640899bb
// 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 NET_BASE_LAYERED_NETWORK_DELEGATE_H_ #define NET_BASE_LAYERED_NETWORK_DELEGATE_H_ #include "base/memory/scoped_ptr.h" #include "base/strings/stri...
C
net/base/layered_network_delegate.h
guorendong/iridium-browser-ubuntu
bsd-3-clause
7,200
170
codeparrot/github-code
0de7ec91b37a054d54f5ccb4c08998d536b58e7afcbc1068209d55f51085a1e8
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.authority.indexer; import org.apache.log4j.Logger; import org.dspace.content.DSpac...
Java
dspace-api/src/main/java/org/dspace/authority/indexer/AuthorityConsumer.java
rnathanday/dryad-repo
bsd-3-clause
2,863
94
codeparrot/github-code
83cbbf2d97120d297a3f19f10fd337307f61db2b9d147e72b9d075ff8fb864dc
// Copyright 2018 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 IOS_CHROME_BROWSER_UI_SETTINGS_CLEAR_BROWSING_DATA_CLEAR_BROWSING_DATA_MANAGER_H_ #define IOS_CHROME_BROWSER_UI_SETTINGS_CLEAR_BROWSING_DATA_CLEAR...
C
ios/chrome/browser/ui/settings/clear_browsing_data/clear_browsing_data_manager.h
scheib/chromium
bsd-3-clause
4,257
107
codeparrot/github-code
0326444418caeeccd2efa9c24c1a226a0fab2ec460bf5f01b427494f79616835
// 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. import {assert, assertInstanceof, assertNotReached} from 'chrome://resources/js/assert.m.js'; import {dispatchSimpleEvent} from 'chrome://resources/js/cr....
JavaScript
ui/file_manager/file_manager/foreground/js/ui/list_container.js
scheib/chromium
bsd-3-clause
12,504
431
codeparrot/github-code
61a0e852f6ef583fc376a5abbd08b6f371709d76f9ceae0fd7c29200e75a422b
# -*- coding: utf-8 -*- # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # License: BSD 3 clause from __future__ import print_function import numpy as np from scipy import linalg, optimize from ..base import BaseEstimator, RegressorMixin from ..metrics...
Python
sklearn/gaussian_process/gaussian_process.py
potash/scikit-learn
bsd-3-clause
35,041
898
codeparrot/github-code
27cee86fd3a0f7b02e55cc46ec36bccab472f9ed5db18817d439f83b17d224cc
#include "tcenterlinevectP.h" //========================================================================== //************************ //* Polygonization * //************************ //-------------------------------------------------------------------------- //=============================== // Raw Borde...
C++
toonz/sources/toonzlib/tcenterlinepolygonizer.cpp
tomosu/opentoonz
bsd-3-clause
29,088
878
codeparrot/github-code
dd440dc1b9179bec1b5413bbd9d940b410ec26565c9fda8e47977a0ada004bfe
//=== File Prolog=========================================================== // This code was developed by NASA, Goddard Space Flight Center, Code 588 // for the Scientist's Expert Assistant (SEA) project for Next Generation // Space Telescope (NGST). // //--- Notes---------------------------------------------...
Java
bundle/jsky.app.ot/src/main/java/jsky/science/Wavelength1DFormula.java
arturog8m/ocs
bsd-3-clause
9,770
280
codeparrot/github-code
ee12108d005203f25e6ef62543eefb76f41265cb6d48fda801661f2f18d3df54
// 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 COMPONENTS_METRICS_STRUCTURED_RECORDER_H_ #define COMPONENTS_METRICS_STRUCTURED_RECORDER_H_ #include "base/callback_list.h" #include "base/memory...
C
components/metrics/structured/recorder.h
chromium/chromium
bsd-3-clause
3,911
102
codeparrot/github-code
d51b0513cacdbd63ccb1f04cb3808039374dea6bb309829f7cda1c74401642fa
// Copyright 2018 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 "third_party/blink/renderer/bindings/core/v8/isolated_world_csp.h" #include <utility> #include "base/check.h" #include "third_party/blink/publi...
C++
third_party/blink/renderer/bindings/core/v8/isolated_world_csp.cc
scheib/chromium
bsd-3-clause
7,175
199
codeparrot/github-code
62489fd0bf2c3a2bdc8a7eb5032d0860cce41e1262de304aaac91c53940b8550
/*------------------------------------------------------------------------- * * Copyright (c) 2004-2014, PostgreSQL Global Development Group * * *------------------------------------------------------------------------- */ package org.postgresql.ssl; import java.io.IOException; import java.net.Socket; import java.net....
Java
org/postgresql/ssl/WrappedFactory.java
bocap/pgjdbc
bsd-3-clause
1,738
53
codeparrot/github-code
c62d812cd29edcf7ac792b59da83a97d3a0b791bdb0a6e4444f52d7d5b5acdd2
#!/bin/bash # # 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"); yo...
Shell
solace-message-router/scripts/install-solace.sh
matt1883/azure-quickstart-templates
mit
21,087
541
codeparrot/github-code
709562451512e8558eac11cd2af5262e447977be6a6f5d8b8b90bf0513676d76
#include <msgpack.hpp> #include <sstream> #include <iterator> #include <gtest/gtest.h> #ifdef HAVE_CONFIG_H #include "config.h" #endif #if !defined(MSGPACK_USE_CPP03) TEST(SHARED_PTR, pack_convert_nil) { std::stringstream ss; std::shared_ptr<int> val1; msgpack::pack(ss, val1); msgpack::object_handle ...
C++
ds4/code/0_msgpack/test/shared_ptr_cpp11.cpp
demonsaw/Code
mit
3,190
124
codeparrot/github-code
d207ae8dffa53d4fc85702f73e782b3ddeb25c3bf021de031cb683cb63918535
var fnObj = {}; var ACTIONS = axboot.actionExtend(fnObj, { PAGE_SEARCH: function (caller, act, data) { axboot.ajax({ type: "GET", url: ["samples", "parent"], data: caller.searchView.getData(), callback: function (res) { caller.gridView01.setDat...
JavaScript
ax-boot-initialzr/src/main/resources/templates/webapp/assets/js/view/login.js
axboot/ax-boot-framework
mit
4,316
149
codeparrot/github-code
f726439e4a2db0ad62d2268ba031ff790e76c9a37e83581941a8fbbc606699e2
{% extends "projects/base_project.html" %} {% load core_tags i18n highlight %} {% block title %}{% blocktrans with query=query|default:"" %}Search: {{ query }} {% endblocktrans %}{% endblock %} {% block extra_links %} {{ super }} <style> .navigable > ul > li { border-bottom: 0; } </style> {% endblock %} {% block...
HTML
readthedocs/templates/search/elastic_search.html
sid-kap/readthedocs.org
mit
7,277
209
codeparrot/github-code
9dbdea2a59a4159855dda335e5389665cfe1822f9ea780c784292c194047ad34
using System; using System.Reflection; namespace Ploeh.AutoFixture.Xunit2 { /// <summary> /// An attribute that can be applied to parameters in an <see cref="AutoDataAttribute"/>-driven /// Theory to indicate that the parameter value should not have properties auto populated /// when the <see cref="IF...
C#
Src/AutoFixture.xUnit.net2/NoAutoPropertiesAttribute.cs
yuva2achieve/AutoFixture
mit
1,409
36
codeparrot/github-code
35cc064ec065723d49eddd3b968a3f2e329029306511f11573737eee66ce0722
#include "system.h" #include <stdio.h> #include "popt.h" static int _debug = 0; static int _verbose = 1; static const char * dictfn = "/usr/share/dict/words"; static poptBits dictbits = NULL; static struct { unsigned total; unsigned hits; unsigned misses; } e; static int loadDict(const char * fn, poptBits...
C
tdict.c
ystk/debian-popt
mit
3,287
133
codeparrot/github-code
2c2c54b64e5529833419651c64e90a7fb26b5786562b02f92e05877c82227278
<?php // Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { ?> <p class="nocomments"><?php _e('This post is password protected. Enter the password to ...
PHP
wp-content/themes/point/comments.php
coollog/theboola
gpl-2.0
3,114
59
codeparrot/github-code
c9b2cdc9179fab449c8a42c4993bc3a0bbcacf84381d3cbac220d72af23774c0
// SPDX-License-Identifier: GPL-2.0-only /* * proc/fs/generic.c --- generic routines for the proc-fs * * This file contains generic proc-fs routines for handling * directories and files. * * Copyright (C) 1991, 1992 Linus Torvalds. * Copyright (C) 1997 Theodore Ts'o */ #include <linux/cache.h> #include <linux...
C
fs/proc/generic.c
Pingmin/linux
gpl-2.0
17,781
776
codeparrot/github-code
ab828600f58e44daf8e92e066b0a5b7fb0420552664cced25e1515ee333fc78b
/* * High-level sync()-related operations */ #include <linux/kernel.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/slab.h> #include <linux/export.h> #include <linux/namei.h> #include <linux/sched.h> #include <linux/writeback.h> #include <linux/syscalls.h> #include <linux/linkage.h> #include <linux/...
C
virt/fs/sync.c
mericon/Xp_Kernel_LGH850
gpl-2.0
10,770
400
codeparrot/github-code
9ad1a557e1e0f7beba1dc1f2f02a4cfaa5e229ad76b473f8346193d619168332
<?php $host = $this->brute_get_local_host(); global $current_user; $remote_security_options = array( 'remote_monitoring' => __( 'Yes, BruteProtect may remotely monitor my site uptime and scan for malware' ), 'remote_version' => __( 'Yes, BruteProtect may remotely track the versions of WordPress, plugins and themes I...
PHP
wp-content/plugins/bruteprotect/admin/settings.php
mssdeepakkumar/fourchilli
gpl-2.0
8,344
177
codeparrot/github-code
417b92ec1f4bf6b1c557f9a5aa7c1e676b23f7c39a0b46a1da82da29bb9dfe02
/* ---------------------------------------------------------------------- This is the ██╗ ██╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗████████╗███████╗ ██║ ██║██╔════╝ ██╔════╝ ██╔════╝ ██║ ██║╚══██╔══╝██╔════╝ ██║ ██║██║ ███╗██║ ███╗██║ ███╗███████║ ██║ ███████╗ ██║ ██║██║ ██║█...
C
src/atom_vec_molecular.h
aaigner/LIGGGHTS-PUBLIC
gpl-2.0
4,396
131
codeparrot/github-code
2049b2881f440fbc9068ac0103dbcc9fd536df5e838c23f59a66ab2856ed5533
/* * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
Java
jdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/optimize/ArrayCopy04.java
YouDiSN/OpenJDK-Research
gpl-2.0
3,589
145
codeparrot/github-code
a238140b8a086751fe977c78c3dde30c4014b20375f5d02befbbda24ca4597ec
/* Copyright (c) 2013-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
arch/arm/mach-msm/clock-fsm9900.c
forth32/kernel-Y900
gpl-2.0
89,107
2,972
codeparrot/github-code
ba98e748fa9193c90356621a5d17db7d2251db064d71178ac03fac152beec1d2
/* * vhost-net support * * Copyright Red Hat, Inc. 2010 * * Authors: * Michael S. Tsirkin <mst@redhat.com> * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. * * Contributions after 2012-01-13 are licensed under the terms of the * GNU GP...
C
hw/net/vhost_net.c
mwhudson/qemu
gpl-2.0
11,062
443
codeparrot/github-code
a663639e97fdab7b56d205108d7f94d3086bad53071396f4359e1e221982801b
jQuery(document).ready(function($){ // Use only one frame for all upload fields var frame = new Array(), media = wp.media; // add image field function dtGetImageHtml( data ) { var template = wp.media.template('dt-post-gallery-item'); return template(data); } function fetch_selection( ids, opt...
JavaScript
wp-content/themes/puppy/inc/extensions/custom-meta-boxes/js/media.js
julia26/puppy
gpl-2.0
4,285
155
codeparrot/github-code
69695f0b0546f6f3c8bb0544b658408baca26887600af1413cca72ec4af11e57
/* * synergy -- mouse and keyboard sharing utility * Copyright (C) 2012 Bolton Software Ltd. * Copyright (C) 2002 Chris Schoeneman * * This package is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * found in the file COPYING that should have accompan...
C
src/synergy-1.4.18-Source/src/lib/synergy/IClipboard.h
Navaneethsen/synergy-1.4.18-r2250
gpl-2.0
5,232
170
codeparrot/github-code
654e21315e2f1d81e6490522c4415d556c1a5c3f25740e167b9344e2c378420a
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata...
Python
lib/ansible/modules/cloud/vmware/vmware_host_firewall_manager.py
maartenq/ansible
gpl-3.0
8,047
218
codeparrot/github-code
ba42c5cbe061561d4ce89392644be4309ce7523d539cd868774052b0cb62f1c6
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code ("Doom 3 Source Code"). Doom 3 Source Code is free software: you can redistribute it and/or modify it...
C++
vanilla/game/physics/Force_Constant.cpp
revelator/MHDoom
gpl-3.0
3,368
145
codeparrot/github-code
913f851e4b41a6641467cfffefce8cec9b56433b16d39a0eb552c30816bf79d3
package com.SecUpwN.AIMSICD.adapters; /** * Description: Contains the data and definitions of all the items of the XML layout * * Dependencies: * DbViewerFragment.java: BuildTable() * BtsMeasureCardInflater.java * bts_measure_data.xml * * TODO: * ...
Java
app/src/main/java/com/SecUpwN/AIMSICD/adapters/BtsMeasureItemData.java
nonconforme/Android-IMSI-Catcher-Detector
gpl-3.0
8,460
325
codeparrot/github-code
eab2565999983410b9cb132a9f9953284f06a087e58e82dfdbd73d910c8435d6
# pylint: disable=C0111 # pylint: disable=W0621 from lettuce import world, step from common import * from terrain.steps import reload_the_page from selenium.common.exceptions import ( InvalidElementStateException, WebDriverException) from nose.tools import assert_in, assert_not_in, assert_equal, assert_not_equal ...
Python
cms/djangoapps/contentstore/features/grading.py
hkawasaki/kawasaki-aio8-1
agpl-3.0
7,108
217
codeparrot/github-code
197ae5b167d790690da5107859e3004255051a95dca3677c76339e2680a0b123
## mako <%namespace name='static' file='static_content.html'/> <%namespace file='main.html' import="login_query, stanford_theme_enabled"/> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from microsite_configuration import microsite from microsite_configuration.templ...
HTML
lms/templates/navigation.html
nagyistoce/edx-platform
agpl-3.0
6,437
166
codeparrot/github-code
641cb5811182e5ebbd9a1b12bcb8cc951a703f1bf9d4db40dfdd1ffc01c105d1
/* --------------------------------------------------------------------- * Numenta Platform for Intelligent Computing (NuPIC) * Copyright (C) 2014, Numenta, Inc. Unless you have an agreement * with Numenta, Inc., for a separate license for this software code, the * following terms and conditions apply: * * This ...
Java
src/main/java/org/numenta/nupic/encoders/RandomDistributedScalarEncoder.java
antidata/htm.java
agpl-3.0
21,928
773
codeparrot/github-code
6371f013c9c0781ff91aa88333ee3f8bfab7515d03538e7321d82efd57008e3b
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * This file is part of A2Billing (http://www.a2billing.net/) * * A2Billing, Commercial Open Source Telecom Billing platform, * powered by Star2billing S.L. <http://www.star2billing.com/> * * @copyright Copyright (C) 2004-2012 - Star2billin...
SQL
DataBase/mysql-5.x/UPDATE-a2billing-v1.4.0-to-v1.4.1.sql
fureszpeter/a2billing
agpl-3.0
7,016
143
codeparrot/github-code
de353de7a0a276e9fcb72897cb072450e6bad058bc898c736f551c90d43f4f07
/* SDL_image: An example image loading library for use with SDL Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.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. Permiss...
C
project/jni/sdl_image/IMG_xpm.c
rversteegen/commandergenius
lgpl-2.1
11,504
519
codeparrot/github-code
c0569c4c1e311b7129ce21e08362eb5a42345a7e16f8b462a7f90c66eb6523ee
/* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
Java
testsuite/patching/src/test/java/org/jboss/as/test/patching/RollbackLastUnitTestCase.java
aloubyansky/wildfly-core
lgpl-2.1
9,549
242
codeparrot/github-code
f64a9d33002434e54cd17e6a0e872f8575b50b05daaa5fef90142a0e5fe63f6e
/****************************************************************/ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* All contents are licensed under LGPL V2.1 */ /* See LICENSE for full restrictions ...
C++
modules/xfem/src/base/XFEMCircleCut.C
katyhuff/moose
lgpl-2.1
1,525
50
codeparrot/github-code
0e29a55bce59d4fb8a7ed39bcd63d64e384f289ff4d9bd546b37cee82a5b70e0
package Genome::Model::Tools::Sam::Deduplicator; use strict; use warnings; use Genome; use Workflow; use File::Basename; use IO::File; use Bio::SeqIO; class Genome::Model::Tools::Sam::Deduplicator { is => 'Genome::Model::Tools::Sam', has_input => [ sam_file => { ...
Perl
lib/perl/Genome/Model/Tools/Sam/Deduplicator.pm
apregier/genome
lgpl-3.0
2,257
82
codeparrot/github-code
0598030b34041458667f88ae7ebb318f3e55ef1cc2fd81f6c2fff3110067eb81
/** * Copyright 2013, Big Switch Networks, 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 requi...
Java
src/main/java/net/floodlightcontroller/loadbalancer/LBVipSerializer.java
tuoshao/floodlight-ratelimiter
apache-2.0
1,592
44
codeparrot/github-code
1de8dec89f6a3c7a626858c405204504939dc02e55489240e52eb0643272abf6
using System.Collections.Generic; using System.Linq; namespace Glimpse.Core.Tab.Assist { public class TabSection : ITabBuild { private readonly List<TabSectionRow> rows = new List<TabSectionRow>(); public TabSection() { } public TabSection(params string[] headers) ...
C#
source/Glimpse.Core/Tab/Assist/TabSection.cs
sorenhl/Glimpse
apache-2.0
917
43
codeparrot/github-code
c7be8c94469c594ac44b4e470ddf4607f6adfc75f92ad2f9cc6fd0cb5f9c56c0
/* * Copyright 2012 Amadeus s.a.s. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
CSS
src/aria/widgets/calendar/CalendarStyle.tpl.css
mlaval/ariatemplates
apache-2.0
6,847
207
codeparrot/github-code
7ee148f5c54a6e759e5f8d3df60928cafcd3df7beef316cd4c7c0888a48ea981
/* * Copyright 2016 The Netty Project * * The Netty Project licenses this file to you 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 ...
Java
frame/java/netty-4.1/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2SettingsFrame.java
wangcy6/storm_app
apache-2.0
1,431
50
codeparrot/github-code
ce4cfcbfe54bc2f8d840ec0c256d4fd3393fa22806c889c19960eefe9184b8ed
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../includes/main.css" type="text/css"> <l...
HTML
source/api/apidocs-4.4/domain_admin/listEgressFirewallRules.html
resmo/cloudstack-www
apache-2.0
8,157
185
codeparrot/github-code
0e3e026ee429bf18d0fa864329a217fe5233ca7e94f76fdf66fb11a7007a1b5e
/* * 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-java/src/main/java/org/apache/flink/api/java/summarize/aggregation/IntegerSummaryAggregator.java
WangTaoTheTonic/flink
apache-2.0
3,029
121
codeparrot/github-code
0206550f6a50b13dcf98c6eee633a962196b0c021481ef3ededf06421150c885
/* Copyright 2019 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/lite/experimental/micro/examples/micro_speech/sparkfun_edge/command_responder.cc
ghchinoy/tensorflow
apache-2.0
2,363
62
codeparrot/github-code
036f5524574cc32cc917d5e42664b33f89c384cf280efe4d119d15be80d19528
/* * * 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"); ...
Java
flex-compiler-oem/src/main/java/flex2/compiler/config/ConfigurationValue.java
greg-dove/flex-falcon
apache-2.0
2,791
111
codeparrot/github-code
ea3f9f82b0f4185ec527bc21ed22adec654b685a1960ed4e2e1db047c628c2e6
/* * (C) 2007-2012 Alibaba Group Holding Limited. * * 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. * Authors: * leiwen <chrisredfield1985@126.com> , boyan <killme2008@gmail....
Java
diamond/diamond-client/src/main/java/com/taobao/diamond/client/processor/SnapshotConfigInfoProcessor.java
zogwei/diamond-dsp
apache-2.0
4,679
175
codeparrot/github-code
725bebb182ad0f853e63fd59ec1a94ba451cccd9c154f0106d732ba40f359ee2
/* * 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
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/endpoints/FunnelsEndpointMerger.java
WilliamNouet/nifi
apache-2.0
3,449
72
codeparrot/github-code
6400421996e58de621e62006e406f5658d2671d5126d5cd6b9111f31a0bed49e
#!/usr/bin/env ruby # Encoding: utf-8 # # Author:: sgomes@google.com (Sérgio Gomes) # # Copyright:: Copyright 2013, Google Inc. All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ...
Ruby
adsense/generate_report.rb
pacuna/google-api-ruby-client-samples
apache-2.0
2,959
106
codeparrot/github-code
5a1ef6e0f6c455f2f03dfce33744b70fb10d6dee479b5104f8933e1bc7ecffdd
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/test/RuntimeManagerIdentifierFilterTest.java
pleacu/jbpm
apache-2.0
5,642
160
codeparrot/github-code
8d462a28a88f5dae76e35a2b7075cab058fdffb2b35dff199da4adb192cee00f
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
components/camel-google/camel-google-mail/src/main/java/org/apache/camel/component/google/mail/stream/GoogleMailStreamComponentVerifierExtension.java
nikhilvibhav/camel
apache-2.0
3,856
84
codeparrot/github-code
1a2855c5c083b8a3cbebc92fdcb90e3ee052fa025cca5a5aaddb1e6406e171a2
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
processing/src/test/java/io/druid/query/search/SearchQueryRunnerWithCaseTest.java
tubemogul/druid
apache-2.0
8,353
213
codeparrot/github-code
5af5a10e97e8fb0324eaeea0de95a12b8e4c8ca71ffcf80a00fa79a3bcd4eaae
/** * 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/contrib/mumak/src/test/org/apache/hadoop/mapred/CheckedEventQueue.java
shakamunyi/hadoop-20
apache-2.0
8,266
233
codeparrot/github-code
070ba2df51b928707a1e19ec0e79732084dc12ad9933c49cf43551d66f32b4ad
import sys, imp from . import model, ffiplatform class VCPythonEngine(object): _class_key = 'x' _gen_python_module = True def __init__(self, verifier): self.verifier = verifier self.ffi = verifier.ffi self._struct_pending_verification = {} self._types_of_builtin_functions ...
Python
workspace/lib/python2.7/site-packages/cffi/vengine_cpy.py
ARMmbed/yotta_osx_installer
apache-2.0
41,164
1,004
codeparrot/github-code
dd9504b587a12eabdf5e95e55a17ef6e8b100dba132a22df2518c6c95657f91a
/** * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
C++
native/src/cpp/impl/keys/Keyspace.cpp
rickyHong/RSparkMR4C
apache-2.0
5,110
208
codeparrot/github-code
04bddb3700bcb7f1b40c1f1a14de18df5c37734a7a7c3bbba04022dc2b775170
/** * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Java
java/test/java/com/google/mr4c/mbtiles/MBTilesTestUtil.java
google/mr4c
apache-2.0
2,160
81
codeparrot/github-code
f6d8c79a539471036ac6838916e968a3e3aa782bc04faf226753dc30a1fa8de3
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/libstd/sys/unix/pipe.rs
mihneadb/rust
apache-2.0
1,454
50
codeparrot/github-code
86eb8da0e42595517c7a53ad131555ddb691bdd8a0d3b94105897476ea5f8707
/* * File: ms_setting.c * Author: Mingqiang Zhuang * * Created on February 10, 2009 * * (c) Copyright 2009, Schooner Information Technology, Inc. * http://www.schoonerinfotech.com/ * */ #include "mem_config.h" #include <libmemcached/memcached.h> #include <ctype.h> #include <inttypes.h> #include <limits.h>...
C
thirdparty/libmemcached-1.0.18/clients/ms_setting.c
unix1986/universe
bsd-2-clause
27,066
1,069
codeparrot/github-code
68be4eec142f71fefb8d409f90d02b277ced4ac21a86de979e5cc9239fff94a6
//===- CodeGen/ValueTypes.h - Low-Level Target independ. types --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C
softboundcets-llvm-clang34/include/llvm/CodeGen/ValueTypes.h
santoshn/softboundcets-34
bsd-3-clause
30,405
901
codeparrot/github-code
42e00ce2c947f1e4da0c4c68ba8eedea9eb4166bbe855ae4bcf4b41a34dfeb9a
/***** Vca_VApplicationContext Implementation *****/ /************************ ************************ ***** Interfaces ***** ************************ ************************/ /******************** ***** System ***** ********************/ #include "Vk.h" /****************** ***** Self ***** ******...
C++
software/src/master/src/kernel/Vca_VApplicationContext.cpp
MichaelJCaruso/vision
bsd-3-clause
7,154
219
codeparrot/github-code
b2ede80cb44651af8c7e691ad710d60eb511b3acd70796e74b18d23e8af4a707
// 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. // The tests in this file attempt to verify the following through simulation: // a) That a server experiencing overload will actually benefit from the...
C++
extensions/browser/extension_throttle_simulation_unittest.cc
js0701/chromium-crosswalk
bsd-3-clause
27,523
746
codeparrot/github-code
00a667e25ed7b4f7d985563c7a8d91f70dd26f60c1b42fcc25f6d19aa559449b
// 2001-05-21 Benjamin Kosnik <bkoz@redhat.com> // Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // F...
C++
tools/source/gcc-4.2.4/libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/2-out.cc
shaotuanchen/sunflower_exp
bsd-3-clause
3,429
123
codeparrot/github-code
4359865f318bb947a798112aa8b12bbe7c73ee1a5d0bc09c00f868492e79f1ae
// 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 CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ #define CHROME_BROWSER_UI_WEBUI_MOJO_WEB_UI_CONTROLLER_H_ #include <string> #include "base/mem...
C
chrome/browser/ui/webui/mojo_web_ui_controller.h
markYoungH/chromium.src
bsd-3-clause
2,756
78
codeparrot/github-code
8c1dd74cdb60ef2f841fb80f4af5c85b3286baa6635ebe90fd53219e5661c004
// 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_CHROME_BROWSER_MAIN_ANDROID_H_ #define CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ #include "base/macros.h" #include "chrome...
C
chrome/browser/chrome_browser_main_android.h
hujiajie/chromium-crosswalk
bsd-3-clause
1,186
39
codeparrot/github-code
53cd3ce3c704eaa6f8537a0ac71ce02869e3c43ea0d663e38342cde0386e8f97
// 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 EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ #define EXTENSIONS_BROWSER_EXTENSION_SYSTEM_H_ #include <string> #include "base/memory/ref_counted.h" #in...
C
extensions/browser/extension_system.h
boundarydevices/android_external_chromium_org
bsd-3-clause
4,911
143
codeparrot/github-code
5124ed4e7e7c5129f757f91ae084f47820b9e40c46072afcdcff430b881fb44d
// 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 "base/trace_event/blame_context.h" #include "base/json/json_writer.h" #include "base/test/task_environment.h" #include "base/test/trace_event_an...
C++
chromium/base/trace_event/blame_context_unittest.cc
ric2b/Vivaldi-browser
bsd-3-clause
6,054
176
codeparrot/github-code
fcf8f084d5902db6b26da9c703d8fba14a4bd26937bf5ff6608b1bbf17b69f5a
""" This module converts requested URLs to callback view functions. RegexURLResolver is the main class here. Its resolve() method takes a URL (as a string) and returns a ResolverMatch object which provides access to all attributes of the resolved URL match. """ from __future__ import unicode_literals import functools...
Python
django/core/urlresolvers.py
bobcyw/django
bsd-3-clause
26,463
695
codeparrot/github-code