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
2a669f2178e762dab9536e72bc159ffb041fa7e3672756897a14f25086ab1cf3
<?php /** * @file * Contains \Drupal\Core\Entity\Query\Sql\Query. */ namespace Drupal\Core\Entity\Query\Sql; use Drupal\Core\Database\Connection; use Drupal\Core\Database\Query\SelectInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\Query\QueryBase; use Drupal\Core\Entity\Query\QueryEx...
PHP
src/core/lib/Drupal/Core/Entity/Query/Sql/Query.php
casivaagustin/drupalcon-mentoring
mit
10,521
325
codeparrot/github-code
4c586db0380de898628e32d16b20ecb27d857157c5e0d54c38c5e5c79d09a4a6
import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; @IonicPage() @Component({ selector: 'page-hours', templateUrl: 'hours.html', }) export class HoursPage { started: boolean = false; stopped: boolean = true; constructor(public navCtrl: NavControl...
TypeScript
AllReadyApp/Mobile-App/src/pages/hours/hours.ts
HamidMosalla/allReady
mit
942
39
codeparrot/github-code
8455a86da402e5c9b6186983700ee46c1d447f118435391268ecdb09065345e8
{% extends "base.html" %} {% block preTitle %} {{ project.display_name }} (Build) - {% endblock %} {% block bodyclass %}job_view{% endblock %} {% block extra_head %} <link rel="stylesheet" href="/styles/plugin-status-compiled.css"> {% endblock %} {% block bodyContent %} {% set page = "build" %} <div class="app ng-...
HTML
lib/views/build.html
yonglehou/strider
mit
5,439
129
codeparrot/github-code
16bc2dc3cd40588d66f98ec5860defbaa452c9acb23e0349f2b39a4e0cf4e7c0
// 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.Web/Sources/System.Web.UI.WebControls.WebParts.TransformerTypeCollection.cs
ndykman/CodeContracts
mit
3,050
86
codeparrot/github-code
e4cf559cccc36014f76e65da51d57079c7946f527c5400bf0141ac23618b264c
<?php namespace Bolt\Helpers; use Cocur\Slugify\Slugify; class Str { /** * Returns a "safe" version of the given string - basically only US-ASCII and * numbers. Needed because filenames and titles and such, can't use all characters. * * @param string $str * @param boolean $strict *...
PHP
src/Helpers/Str.php
CarsonF/bolt
mit
2,298
83
codeparrot/github-code
cd983d6e22de0a356097536263bf748f6064380ae31b63a502003dab951472cd
import Ember from 'ember-metal'; // Ember as namespace import { A as emberA, typeOf, String as StringUtils, Namespace, Object as EmberObject } from 'ember-runtime'; /** @module ember @submodule ember-extension-support */ /** The `ContainerDebugAdapter` helps the container and resolver interface with too...
JavaScript
packages/ember-extension-support/lib/container_debug_adapter.js
duggiefresh/ember.js
mit
2,656
108
codeparrot/github-code
ba21b46948719ff380f20f7d88c14e663f3f068a263c37a774a0e97510ee6c0e
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals\Options */ /** * Option: wpseo_taxonomy_meta. */ class WPSEO_Taxonomy_Meta extends WPSEO_Option { /** * @var string Option name. */ public $option_name = 'wpseo_taxonomy_meta'; /** * @var bool Whether to include the option in the return f...
PHP
web/app/plugins/wordpress-seo/inc/options/class-wpseo-taxonomy-meta.php
smpetrey/leahconstantine.com
mit
18,076
579
codeparrot/github-code
d108c9a6192dbbb73b5efef14a4e073eec09ffbad91f57717976027efd91e0dd
// 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/System.Collections.Generic.IList.cs
ndykman/CodeContracts
mit
5,963
209
codeparrot/github-code
78f3631fca66825fa83e092819498bb8ab5e8ff8b85d735aff0cbde077ca0c35
namespace Merchello.Web.Models.ContentEditing { using System; using System.Collections.Generic; using Merchello.Core; using Merchello.Core.Models.TypeFields; using Newtonsoft.Json; using Newtonsoft.Json.Converters; /// <summary> /// The line item display base. /// </summary> ...
C#
src/Merchello.Web/Models/ContentEditing/LineItemDisplayBase.cs
MindfireTechnology/Merchello
mit
1,950
73
codeparrot/github-code
ba46c3d564c10dd7b1dfefd6a4b6911f7be82049d3d9e1fbc3cbe756b7510dee
(function ($) { 'use strict'; $.extend(true, $.trumbowyg, { langs: { // jshint camelcase:false en: { fontFamily: 'Font' }, es: { fontFamily: 'Fuente' }, da: { fontFamily: 'Skrifttype'...
JavaScript
ajax/libs/Trumbowyg/2.16.2/plugins/fontfamily/trumbowyg.fontfamily.js
extend1994/cdnjs
mit
3,152
93
codeparrot/github-code
5f99ddd2b0447973318e08366cc46eab8186437dd0932a940cdc22b1d0dce72f
<?php global $qode_options_proya; $blog_hide_comments = ""; if (isset($qode_options_proya['blog_hide_comments'])) { $blog_hide_comments = $qode_options_proya['blog_hide_comments']; } $blog_hide_author = ""; if (isset($qode_options_proya['blog_hide_author'])) { $blog_hide_author = $qode_options_proya['blog_hide_a...
PHP
wp-content/themes_bak/bridge/templates/blog_large_image_simple-loop.php
comc49/a2f_bridge_theme
gpl-2.0
7,098
175
codeparrot/github-code
757c3a0cddf1644875af198dfe71b1db3b722a65b2f9f91af6d2d5502422cde6
/* * Builtin "git tag" * * Copyright (c) 2007 Kristian Høgsberg <krh@redhat.com>, * Carlos Rica <jasampler@gmail.com> * Based on git-tag.sh and mktag.c by Linus Torvalds. */ #include "cache.h" #include "builtin.h" #include "refs.h" #include "tag.h" #include "run-command.h" #include "parse-opti...
C
builtin/tag.c
TigerKid001/git
gpl-2.0
13,237
496
codeparrot/github-code
c121129591cfa784b3afc480c54ec4ce781de0933c632dd97811d20045c8afbe
/* savage_bci.c -- BCI support for Savage * * Copyright 2004 Felix Kuehling * All Rights Reserved. * * 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
linux/linux-kernel/drivers/gpu/drm/savage/savage_bci.c
kv193/buildroot
gpl-2.0
31,167
1,091
codeparrot/github-code
93b6d12435d05398269c47d4bd8b5907480a0d507e25a2f1fff23cf0c03656d9
/* * Block driver for media (i.e., flash cards) * * Copyright 2002 Hewlett-Packard Company * Copyright 2005-2008 Pierre Ossman * * Use consistent with the GNU GPL is permitted, * provided that this copyright notice is * preserved in its entirety in all copies and derived works. * * HEWLETT-PACKARD COMPANY MAK...
C
drivers/mmc/card/block.c
npf-ati/linux-2.6-imx
gpl-2.0
67,016
2,629
codeparrot/github-code
4f957ec2a667c33a18d032f977fcafb261ecbba3089c09a7ecb02d85725dc2a0
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
C
sound/soc/mediatek/mt_soc_audio_v3/AudDrv_Clk.c
bq/aquaris-E4
gpl-2.0
28,643
969
codeparrot/github-code
4ef880652674d2b466693c87f9fba72f8c8417a21f79e48a6bb7fd6521ea393f
/* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information * 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 opti...
C++
src/scriptdev2/scripts/northrend/gundrak/boss_moorabi.cpp
Exxenoz/mangos-wotlk
gpl-2.0
5,803
192
codeparrot/github-code
18e8475b06e01d7bde329833f05ed67bdc701116cb57dbdeef572d1890c06c5d
/* * drivers/gpu/ion/ion.c * * Copyright (C) 2011 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hop...
C
drivers/gpu/ion/ion.c
HelllGuest/boom_kernel_sprout_kk
gpl-2.0
48,833
1,560
codeparrot/github-code
7c3183cd64fc471fc07224a7d58b0d182b2920d1ef42c0fe60e9b09304c8469b
/************************************************************************** * Copyright (c) 2007, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundat...
C
drivers/staging/imgtec/intel/video/common/psb_mmu.c
BenzoPlayer/kernel_asus_fugu
gpl-2.0
29,451
1,297
codeparrot/github-code
dd6b0acb89bc0f92e0f35b33008052aea07a6e1c9f3582dbdb85d65b8cf3603a
/* * Copyright (C) 2011-2014 MediaTek Inc. * * 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. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRAN...
C
drivers/misc/mediatek/accdet/accdet_drv.c
vredniiy/sprout
gpl-2.0
4,055
166
codeparrot/github-code
6979379aea7ffc40548524dc6b5144317e5076be75ad95256167262c50af9cfb
/* * linux/kernel/seccomp.c * * Copyright 2004-2005 Andrea Arcangeli <andrea@cpushare.com> * * Copyright (C) 2012 Google, Inc. * Will Drewry <wad@chromium.org> * * This defines a simple but solid secure-computing facility. * * Mode 1 uses a fixed list of allowed system calls. * Mode 2 allows user-defined sy...
C
kernel/seccomp.c
Elite-Kernels/Elite_angler
gpl-2.0
22,899
843
codeparrot/github-code
b7c6b90d9f4160b1df49a21a5671b17384d39e838e3ab8faf9c289e3c3073a3c
/*--------------------------------------------------------------------*/ /*--- Platform-specific syscalls stuff. syswrap-ppc64-aix5.c ---*/ /*--------------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (...
C
src/l4/pkg/valgrind/src/valgrind-3.6.0-svn/coregrind/m_syswrap/syswrap-ppc64-aix5.c
MicroTrustRepos/microkernel
gpl-2.0
30,484
798
codeparrot/github-code
e4f02e0dc3c0601476e4131d50c8b5532c4f957f3797333319d824b347276a97
/* This file is part of the ScriptDev2 Project. See AUTHORS file for Copyright information * 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 opti...
C++
src/scriptdev2/scripts/northrend/violet_hold/boss_erekem.cpp
Exxenoz/mangos-wotlk
gpl-2.0
8,075
263
codeparrot/github-code
58a6e5c4712fb880b9854604c8febd01bc505e8a056e2387cc02889672901d43
/*! \file GUILabel.h \brief */ #pragma once /* * Copyright (C) 2005-2010 Team XBMC * http://www.xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, ...
C
xbmc/guilib/GUILabel.h
rsalveti/xbmc-eden
gpl-2.0
8,056
229
codeparrot/github-code
89301cc2ba8fc156f352140d1a047a2385903f524ea62c373d9cb12412480e1a
/* * linux/arch/arm/mach-mmp/brownstone.c * * Support for the Marvell Brownstone Development Platform. * * Copyright (C) 2009-2010 Marvell International Ltd. * * 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 * publ...
C
arch/arm/mach-mmp/brownstone.c
chase2534/gtab47.freekern
gpl-2.0
7,186
288
codeparrot/github-code
8cb490ef6f446f1b13acdfc954007e603a0d786a9bbbdf6f072ab6a578168368
from Source import Source from Components.Element import cached from Components.SystemInfo import SystemInfo from enigma import eServiceReference StreamServiceList = [] class StreamService(Source): def __init__(self, navcore): Source.__init__(self) self.ref = None self.__service = None self.navcore = navcore...
Python
lib/python/Components/Sources/StreamService.py
Dima73/enigma2
gpl-2.0
2,074
64
codeparrot/github-code
587606c8f73ddc8c5fc5c1d6ac25b1e0eeac81b66a98415e4112d86b9f9931f3
<?php /** * Template Name: Wide Page Template * * Description: A page template that provides a key component of WordPress as a CMS * by meeting the need for a carefully crafted introductory page. The front page template * in Twenty Twelve consists of a page content area for adding text, images, video -- * anythi...
PHP
wp-content/themes/clickboutique/page-templates/page-wide.php
as1anhawk/ICT2_Team3
gpl-2.0
1,843
52
codeparrot/github-code
c7c5657d9060b81834eed73fb06bb1d587a3275866cc2c2cf818d84e5dfaa241
<html lang="en"> <head> <title>Context management - Debugging with GDB</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Debugging with GDB"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="GDB_002fMI-...
HTML
toolchain/share/doc/arm-arm-none-eabi/html/gdb/Context-management.html
byeonggonlee/lynx-ns-gb
gpl-2.0
5,980
103
codeparrot/github-code
b8f8ad7effa00167831cd3ac1abdc843a701215b024b347c7bddc45780098e20
#!/usr/bin/python # -*- coding: utf-8 -*- # 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_version': '1.1', 'status': ['preview'], ...
Python
lib/ansible/modules/network/aci/aci_tenant_span_dst_group.py
hryamzik/ansible
gpl-3.0
6,414
233
codeparrot/github-code
bc8502f5e64c3682c859eac539e65c82d6851675a8b9c051953d85634652dcae
/* * libtcod 1.5.1 * Copyright (c) 2008,2009,2010,2012 Jice & Mingos * 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 * ...
C
src/oldcot/zip.h
pasoev/innfin
gpl-3.0
3,130
63
codeparrot/github-code
949e0ac1d71a2780878a0af2f8381fba05037325e28ee2053469d5b938f34021
Clazz.declarePackage ("JSV.common"); Clazz.load (["java.lang.Enum", "JSV.source.JDXDataObject", "JU.Lst"], "JSV.common.Spectrum", ["java.lang.Boolean", "$.Double", "java.util.Hashtable", "JU.PT", "JSV.common.Coordinate", "$.Parameters", "$.PeakInfo", "JSV.source.JDXSourceStreamTokenizer", "JU.Logger"], function () { ...
JavaScript
web/j2s/JSV/common/Spectrum.js
davidbuzatto/CryProteinModelsComparisonLab
gpl-3.0
18,056
477
codeparrot/github-code
88a88b8514b55ac151caa0341071030d0c0b0927b6877cf4c3a8bf238ccbf992
/* mpq_div -- divide two rational numbers. Copyright 1991, 1994, 1995, 1996, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP 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 Fr...
C
mpq/div.c
carthy/beard.gmp
gpl-3.0
2,833
105
codeparrot/github-code
207ecbfbd59baba5118dfcc33a5f673b0be1c416e4b80bb91772fd6644dfd6ee
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 4 -*- // // IndexHash.h: Rcpp R/C++ interface class library -- hashing utility, inspired // from Simon's fastmatch package // // Copyright (C) 2010, 2011 Simon Urbanek // Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois // Copyright (C) 2014 ...
C
site-library/Rcpp/include/Rcpp/hash/IndexHash.h
nafiux/portableR
agpl-3.0
6,906
242
codeparrot/github-code
5a4d54dc417ce27422148423802fda5ddb75811e7d762c65cc8a65e39db981d6
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ResConfigSettings(models.TransientModel): _inherit = "res.config.settings" google_drive_authorization_code = fields.Char(string='Authorization Code') google_drive...
Python
addons/google_drive/models/res_config_settings.py
Aravinthu/odoo
agpl-3.0
1,634
36
codeparrot/github-code
b072e6bb6dab7c589622818d6935a5daf421273f5af02bad3f069042b9093ca9
/** * Orthanc - A Lightweight, RESTful DICOM Store * Copyright (C) 2012-2015 Sebastien Jodogne, Medical Physics * Department, University Hospital of Liege, Belgium * * 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...
C++
Orthanc/Uuid.cpp
rbetancor/orthanc-webviewer
agpl-3.0
3,863
163
codeparrot/github-code
e8694428fb09dc289e443b8e91fb70a46f5b3108e6b716651cb2ab442036f6c4
// @(#)root/ged:$Id$ // Author: Ilka Antcheva 11/05/04 /************************************************************************* * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
C
gui/ged/inc/TAxisEditor.h
dawehner/root
lgpl-2.1
4,432
103
codeparrot/github-code
daef537b45fce6eee2c3cd4209173d531e2417e9d1de953e0db08e9b291aad37
/** * Copyright © 2002 Instituto Superior Técnico * * This file is part of FenixEdu Academic. * * FenixEdu Academic is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License...
Java
src/main/java/org/fenixedu/academic/ui/faces/components/util/CalendarLink.java
pedrosan7os/fenixedu-academic
lgpl-3.0
5,979
156
codeparrot/github-code
c775a5a4540d405c9f3917f507095c70167aea48bf93d2d1b8d7f192b4e787fd
// personal includes ".h" #include "EUTELESCOPE.h" #include "EUTelBaseDetector.h" #include "EUTelTLUDetector.h" // system includes <> #include <iostream> #include <iomanip> #include <vector> #include <string> using namespace std; using namespace eutelescope; EUTelTLUDetector::EUTelTLUDetector() : EUTelBaseDetector(...
C++
nreader/detdescription/EUTelTLUDetector.cc
freidt/eudaq
lgpl-3.0
1,905
56
codeparrot/github-code
571d303fa3cbdc51000a0c527adca82c81fb0ad671c531d7bfda471258697a7a
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/autocomplete/autocomplete_match.h" #include "base/basictypes.h" #include "testing/gtest/include/gtest/gtest.h" TEST(Autocom...
C++
src/chrome/browser/autocomplete/autocomplete_match_unittest.cc
plxaye/chromium
apache-2.0
4,260
104
codeparrot/github-code
aa2d53dcc282690793e1ae2ff5ddabfe8d1c492261dd9eeffd9765f61652031e
// This is a generated file. Not intended for manual editing. package com.intellij.sh.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import st...
Java
plugins/sh/gen/com/intellij/sh/psi/impl/ShUnaryExpressionImpl.java
smmribeiro/intellij-community
apache-2.0
1,138
49
codeparrot/github-code
11ba4c67dabb8ded49d2d3697e300cda94250d877b2735147965bdf54b269787
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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/li...
Java
modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/das/analytics/rest/beans/DrillDownPathBean.java
wso2/product-das
apache-2.0
2,162
73
codeparrot/github-code
8f6b0f53bac31de99c3d57b1b1b256ae3170d9a5b81142cf0b08d8858495dfc7
/* * 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/test/java/com/facebook/presto/sql/planner/assertions/LimitMatcher.java
gh351135612/presto
apache-2.0
1,577
52
codeparrot/github-code
0f5daf753c2a9325c78232f7a9695a5859c2de8c4efcad5df86b47bf77750d53
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
Java
core/src/main/java/io/undertow/util/Methods.java
TomasHofman/undertow
apache-2.0
6,437
144
codeparrot/github-code
272f0235af9bdd1bf01ede3b5034ac9221f2d216b63e14341e6d101e7d0b14e3
/* * Copyright 2003-2013 Dave Griffith, Bas Leijdekkers * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
plugins/InspectionGadgets/src/com/siyeh/ig/abstraction/MagicNumberInspection.java
siosio/intellij-community
apache-2.0
7,475
191
codeparrot/github-code
240f3ce23ec01a0c018f8c37bcdbc2b6ba0b2fa9f53991e19195ffc2105cd6be
/* * Copyright 2014 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 applicable la...
Java
providers/pcep/tunnel/src/test/java/org/onosproject/provider/pcep/tunnel/impl/PcepControllerAdapter.java
packet-tracker/onos
apache-2.0
2,267
86
codeparrot/github-code
f5419dbf8e678fdd194f2f607ade7a58fcefb15acaceedc8e9a5df5a2957623a
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
Python
src/robotide/lib/robot/output/librarylogger.py
caio2k/RIDE
apache-2.0
2,175
75
codeparrot/github-code
ebdd5fb33692681c22c8b3762e3ccc990f23da547e89562a43b05f8b14c427aa
/* * 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
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/EffectiveType.java
AndreasAbdi/jackrabbit-oak
apache-2.0
11,952
313
codeparrot/github-code
1593ea0d92420aa671842e2a38746118308f382bd712cf8b34dd11ab071eb55e
/** ****************************************************************************** * @file stm32h7xx_hal_sram.c * @author MCD Application Team * @brief SRAM HAL module driver. * This file provides a generic firmware to drive SRAM memories * mounted as external device. * @verbatim...
C
targets/TARGET_STM/TARGET_STM32H7/STM32Cube_FW/STM32H7xx_HAL_Driver/stm32h7xx_hal_sram.c
adfernandes/mbed
apache-2.0
33,824
1,114
codeparrot/github-code
b8853e72cf1a70a20b1c6d7f6374fd362c02a74d6d4d9fb164b89a05c7de7970
// 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 org.jetbrains.plugins.groovy.lang.psi.impl.synthetic; import com.intellij.openapi.diagnostic.Logger; import com.intellij.psi.*; import org.jetbrains.annotations.NotNull; ...
Java
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/synthetic/GrTraitField.java
siosio/intellij-community
apache-2.0
2,141
51
codeparrot/github-code
78d0482b50cb62114695049cb8043a73dbc9ec5719e16a855e16ff3fdc32d138
/* * 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
src/main/java/org/elasticsearch/action/search/type/TransportSearchCountAction.java
dmiszkiewicz/elasticsearch
apache-2.0
3,920
87
codeparrot/github-code
929becb1236e189a5ee5eff1b350f50c8f168e34b359a3dd025524a7a72289e0
/*========================================================================= Program: Visualization Toolkit Module: vtkDataSetTriangleFilter.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This so...
C
lib/vtk/include/Filters/General/vtkDataSetTriangleFilter.h
gisfromscratch/datavisualizer
apache-2.0
2,876
79
codeparrot/github-code
66a814ad8ba4f7ef891f8959da8f23411cf305d139b318d412df89b0825ceef6
/** * 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
components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/beans/topology/ClusterBean.java
pkdevbox/stratos
apache-2.0
3,225
119
codeparrot/github-code
49e65c82dd64939b41e2118a40bdd3c317365f965b4cc44a840ab346a28cc37a
/* * Copyright 2016 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
kie-wb-common-screens/kie-wb-common-datasource-mgmt/kie-wb-common-datasource-mgmt-client/src/main/java/org/kie/workbench/common/screens/datasource/management/client/dbexplorer/schemas/DatabaseSchemaExplorerView.java
romartin/kie-wb-common
apache-2.0
1,272
39
codeparrot/github-code
4137a6987e15595fa4391d7724b4f40bc6c47fe263b7cd35d1a1f31ad3980d43
//===--- BasicInstructionPropertyDumper.cpp -------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
C++
lib/SILOptimizer/UtilityPasses/BasicInstructionPropertyDumper.cpp
russbishop/swift
apache-2.0
1,568
50
codeparrot/github-code
a3cbce8b56a4b2f21b82592135d54882bc692c664b22afdf278c7dad4d8cf0c2
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h" #include "apps/ui/views/app_window_frame_view.h" #include "ash/ash_constant...
C++
chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.cc
Chilledheart/chromium
bsd-3-clause
15,174
387
codeparrot/github-code
f1cf6bc8e9826dd19071e562affbaedf1adcb12fe9e2a482a470e3e45e23b36f
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ #include <jni.h> #include <string> #include ...
C
remoting/client/jni/chromoting_jni_runtime.h
CTSRD-SOAAP/chromium-42.0.2311.135
bsd-3-clause
5,739
152
codeparrot/github-code
aad51cdb586356c90f18feeef21bcfc999970403eec50e1a598c682d0d9f27cd
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_ #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_DATA_MODEL_H_ #include <string> #inclu...
C
components/autofill/core/browser/autofill_data_model.h
Chilledheart/chromium
bsd-3-clause
2,641
77
codeparrot/github-code
a44a7a847be930ed4ed03098e194cbc4a72f9d7e4140086aa0328ac9c34cc052
from SimpleCV import Camera, Image, Color, TemporalColorTracker, ROI, Display import matplotlib.pyplot as plt cam = Camera(1) tct = TemporalColorTracker() img = cam.getImage() roi = ROI(img.width*0.45,img.height*0.45,img.width*0.1,img.height*0.1,img) tct.train(cam,roi=roi,maxFrames=250,pkWndw=20) # Matplot Lib exampl...
Python
SimpleCV/MachineLearning/TestTemporalColorTracker.py
beni55/SimpleCV
bsd-3-clause
1,136
37
codeparrot/github-code
b54dc4f3e2a2087505142c874cad7ddf0dda7e3d433d49fd6321e5dce591173a
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_ #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_ #include "chrome/br...
C
chrome/browser/ui/blocked_content/blocked_window_params.h
SaschaMester/delicium
bsd-3-clause
1,733
60
codeparrot/github-code
d77253ca88fe8e51b9995a66e713dd87d3d5f585e6e48fbc0ad9beccaae033b8
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrResourceHandle_DEFINED #define GrResourceHandle_DEFINED #include "include/core/SkTypes.h" // Opaque handle to a resource. Users should always use the macro below to...
C
third_party/skia_next/third_party/skia/src/gpu/GrResourceHandle.h
youtube/cobalt
bsd-3-clause
1,131
37
codeparrot/github-code
1b09aea1620aad05e8bae066c3007511f733ad018f79da60a1f5a2b7672ae62d
require 'rubygems' require 'rubygems/user_interaction' require 'uri' ## # RemoteFetcher handles the details of fetching gems and gem information from # a remote source. class Gem::RemoteFetcher BuiltinSSLCerts = File.expand_path("./ssl_certs/*.pem", File.dirname(__FILE__)) include Gem::UserInteraction ## #...
Ruby
lib/rubygems/remote_fetcher.rb
yob/debian-rubinius
bsd-3-clause
14,114
519
codeparrot/github-code
4da4886fd7770ab106902d61d4006f29fafb3dea4b9df920cfcc03171e4b1024
namespace std { template<typename T> class allocator { public: void in_base(); }; template<typename T, typename Alloc = std::allocator<T> > class vector : Alloc { public: void foo(); void stop(); }; template<typename Alloc> class vector<bool, Alloc>; } void f() { std::vector<int> v;...
C++
third_party/llvm/clang/test/CodeCompletion/templates.cpp
endlessm/chromium-browser
bsd-3-clause
1,042
36
codeparrot/github-code
0f7860803da6084df6ff87787c0b841baaacea88d6d19d281a09c233d6eba16d
/* 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/. */ /* * Plugin to hide series in flot graphs. * * To activate, set legend.hideable to true in the flot options obj...
JavaScript
web/static/js/jquery.flot.hiddengraphs.js
mehulsbhatt/torque
mit
5,081
158
codeparrot/github-code
c2090cba59485c0742d4f31279fa0bd5f311a48d5bb017dcbe88807c023d7e86
<TS language="af_ZA" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Skep 'n nuwe adres</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <tran...
TypeScript
src/qt/locale/bitcoin_af_ZA.ts
Bitcoin-com/BUcash
mit
20,484
721
codeparrot/github-code
790f615532768d7ff2bd25c165f84c34e4823d1da9fedfd98ba45c0aa9015889
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using Orleans.Serialization; namespace Orleans.Runtime.MembershipService { [Serializable] internal class InMemoryMembershipTable { private readonly SerializationManager serializationManager; priva...
C#
src/OrleansRuntime/MembershipService/InMemoryMembershipTable.cs
shlomiw/orleans
mit
3,500
90
codeparrot/github-code
93f8db2ebc3d6adc3ab5fa39095ba178c4c1b84fcce7ed9c7650e249c77be891
/////////////////////////////////////////////////////////////////////////////// // moment.hpp // // Copyright 2005 Eric Niebler. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_ACCUMULATORS_STATIST...
C++
third_lib/boost/1.75.0/boost/accumulators/statistics/moment.hpp
kumakoko/KumaGL
mit
3,436
133
codeparrot/github-code
d5f7990fbd2510945e1ff263a4e82baf1c4cb68ad8dd92a4f774349b1b1d7d4f
/* * W.J. van der Laan 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "util.h" #include "ui_interface.h" #include "paymentserver.h" #include "splashscre...
C++
src/qt/bitcoin.cpp
PoundCoinz/PoundCoinz
mit
10,783
315
codeparrot/github-code
0d14bff2a6f784d37208c980e9c5b8228a13f3f0905866127646b6fe76741ff7
//DO NOT DELETE THIS, this is in use... angular.module('umbraco') .controller("Umbraco.PropertyEditors.MacroContainerController", function($scope, dialogService, entityResource, macroService){ $scope.renderModel = []; $scope.allowOpenButton = true; $scope.allowRemoveButton = true; $scope.sortableOptions = ...
JavaScript
src/Umbraco.Web.UI.Client/src/views/propertyeditors/macrocontainer/macrocontainer.controller.js
abryukhov/Umbraco-CMS
mit
3,569
139
codeparrot/github-code
45c5d4465811aad98ee6d98ec5af4f70c31d1a85b6958822fe7413bf91fdc474
/* *------------------------------------------------------------------------------ * Copyright (C) 2006-2010 University of Dundee. 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 as published by * the Free ...
Java
components/insight/SRC/org/openmicroscopy/shoola/env/data/model/AdminObject.java
knabar/openmicroscopy
gpl-2.0
6,106
229
codeparrot/github-code
fd60313b1c7b36d28b770ee356e1d8aa4b4b403ed009da85e75f32f98d5bcef2
<?php /* Widget Name: Editor Description: A widget which allows editing of content using the TinyMCE editor. Author: SiteOrigin Author URI: https://siteorigin.com */ class SiteOrigin_Widget_Editor_Widget extends SiteOrigin_Widget { function __construct() { parent::__construct( 'sow-editor', __('SiteOrigin ...
PHP
wp-content/plugins/so-widgets-bundle/widgets/editor/editor.php
Analytical-Engine-Interactive/loopylogic
gpl-2.0
2,126
87
codeparrot/github-code
f0bef8ae9d8ffe9e4aafc47672fbd5c0ab1172ad6a8b79ffa94179efa769bc80
// Copyright 2010 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. // --------------------------------------------------------------------------------------------- // GC graphics pipeline // ------------------------------------------------------------------------------------...
C++
Source/Core/VideoCommon/RenderBase.cpp
aroulin/dolphin
gpl-2.0
17,004
627
codeparrot/github-code
e4b885f3f3c0b8e7f1a61c1ff8dbd0bf006f1e422513d3178dfaee7c80dc52bb
<?php wp_enqueue_script( 'pods' ); wp_enqueue_style( 'pods-form' ); if ( empty( $fields ) || !is_array( $fields ) ) $fields = $obj->pod->fields; if ( !isset( $duplicate ) ) $duplicate = false; else $duplicate = (boolean) $duplicate; $groups = PodsInit::$meta->groups_get( $pod->pod_data[ 'type' ], $pod->p...
PHP
wp-content/plugins/pods/ui/admin/form.php
nbrouse-deep/chefmatefrontburner_com
gpl-2.0
30,874
646
codeparrot/github-code
c7edc713b6657b9a69f2c4f585deb4972920c3fbbecd2b68e86d941ab552a94e
/* * Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * 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 ...
C++
src/server/scripts/EasternKingdoms/Scholomance/boss_death_knight_darkreaver.cpp
sureandrew/trinitycore
gpl-2.0
1,778
63
codeparrot/github-code
60969b7843a0eb0483f549abff2c4fcd20ccfeafc5ace8817836d1e895819fa0
// // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005-2014 Simon Howard // // 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...
C
stm32/chocolate/chocdoom/f_wipe.c
WarlockD/crispy-doom
gpl-2.0
5,076
295
codeparrot/github-code
fd2ebdb91426fa6ef76e10b6378024abd240d18d9cc3cba6dd77693767447cc5
/* PM8921 Charge IC include file */ #ifndef __AXC_PM8921CHARGER_H__ #define __AXC_PM8921CHARGER_H__ #include <linux/types.h> #include "axi_charger.h" #...
C
kernel/drivers/power/charger/axc_PM8921Charger.h
shakalaca/ASUS_PadFone_PF500KL
gpl-2.0
1,649
58
codeparrot/github-code
970e0a189beb38efc24b79c5738fa796a15e735b97f0d9c9b9c7abb7f6dadd44
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
C++
engines/bladerunner/script/scene/ct04.cpp
alexbevi/scummvm
gpl-2.0
9,795
278
codeparrot/github-code
a68128d799fba34312322f71c1039f8a11b5ac8541d36f622e4245b04a4b078c
/* -*- Mode:C; c-basic-offset:4; tab-width:4; indent-tabs-mode:nil -*- */ /* * vmx_fault.c: handling VMX architecture-related VM exits * Copyright (c) 2005, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public Lic...
C
xen/arch/ia64/vmx/vmx_fault.c
jamesbulpin/xcp-xen-4.1
gpl-2.0
19,082
605
codeparrot/github-code
a4415106a0fdfe791cc43106c26400b3e91a98fbc45404d921cccea1e0cde77c
<?php /** * Advanced OpenWorkflow, Automating SugarCRM. * @package Advanced OpenWorkflow for SugarCRM * @copyright SalesAgility Ltd http://www.salesagility.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by * ...
PHP
modules/AOW_Actions/actions/actionBase.php
lionixevolve/LionixCRM
agpl-3.0
1,987
65
codeparrot/github-code
67b1d5c8907dda857f7e251a90dc75a4633587c7e9aa90bbf575fa8db13d6220
/* * 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
tooling/camel-util-json/src/test/java/org/apache/camel/util/json/JsonSimpleOrderedTest.java
nikhilvibhav/camel
apache-2.0
3,327
93
codeparrot/github-code
d2bfe11f1f6466d1ea1d9196b7e9a99461d5b3675760c81358bf6c8a3d8b757f
"""Extension argument processing code """ __all__ = ['Message', 'NamespaceMap', 'no_default', 'registerNamespaceAlias', 'OPENID_NS', 'BARE_NS', 'OPENID1_NS', 'OPENID2_NS', 'SREG_URI', 'IDENTIFIER_SELECT'] import copy import warnings import urllib from openid import oidutil from openid import kvf...
Python
third_party/openid/message.py
gquirozbogner/contentbox-master
apache-2.0
21,795
633
codeparrot/github-code
9f57af5100655acd5a1719a47c1b7b550f28f4cb0ce6b3fbf81e4a5167e55711
# Apipie DSL functions. module Apipie # DSL is a module that provides #api, #error, #param, #error. module DSL module Base attr_reader :apipie_resource_descriptions, :api_params private def _apipie_dsl_data @_apipie_dsl_data ||= _apipie_dsl_data_init end def _apipie_d...
Ruby
lib/apipie/dsl_definition.rb
vassilevsky/apipie-rails
apache-2.0
14,932
481
codeparrot/github-code
7b87c276602bbcff98dc975f0cab342d04eae448f421ebb94d158061f32f1750
package org.apache.maven.artifact.manager; /* * 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 L...
Java
maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java
lbndev/maven
apache-2.0
2,151
57
codeparrot/github-code
32545a2cd4bc8397ccee823ee582bbbe405655028c61a6b6df6507babe39c6c7
<?php /* * $Id: SizeSelector.php 526 2009-08-11 12:11:17Z mrook $ * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIM...
PHP
php/pear/phing/types/selectors/SizeSelector.php
ArcherCraftStore/ArcherVMPeridot
apache-2.0
8,816
229
codeparrot/github-code
4304bfa0a30ad8fdc262b4c5b06e6a8d33d1684c302a4bf651b6ce3ada455534
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
Java
dcm4chee-arc3-entities/trunk/src/main/java/org/dcm4chee/archive/entity/MPPS.java
medicayun/medicayundicom
apache-2.0
6,621
211
codeparrot/github-code
8809695314b02f98ea9b260338f2477400f0cf92765b83ae969976e3cbee09ef
/** * 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
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/TestLazyPersistFiles.java
dennishuo/hadoop
apache-2.0
10,335
308
codeparrot/github-code
6a2f7c2cd404d8456ebf27e3448ce5ece78b7dd0882ac81455e37fa2484ba918
/* * 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
solr/core/src/java/org/apache/solr/update/processor/UpdateRequestProcessorChain.java
williamchengit/TestRepo
apache-2.0
8,567
221
codeparrot/github-code
5d89f155b807f080ff1d8276ec28e693299c6d5f6c12fbe0e6a866ba856546e8
/* * Copyright 2016-present Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
apps/pim/src/main/java/org/onosproject/pim/cli/PimInterfacesListCommand.java
donNewtonAlpha/onos
apache-2.0
1,782
52
codeparrot/github-code
d5d544d9fd6d9a3d77a34feb8639c32cdba6f1e031fa1bfd01c70c81fdfd6ef8
// Copyright 2014 The Oppia 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 ap...
JavaScript
core/templates/dev/head/profile/SignupSpec.js
mit0110/oppia
apache-2.0
3,641
107
codeparrot/github-code
066736d4556b276c66d4d7ee9e8baf0c9dfb4938242bc99688b18051c97965d6
(function (enyo, scope) { /** * The {@link enyo.RepeaterChildSupport} [mixin]{@glossary mixin} contains methods and * properties that are automatically applied to all children of {@link enyo.DataRepeater} * to assist in selection support. (See {@link enyo.DataRepeater} for details on how to * use selection support...
JavaScript
enyo/source/ui/data/RepeaterChildSupport.js
KyleMaas/org.webosports.app.maps
apache-2.0
3,961
152
codeparrot/github-code
f064e5f01d032690aa38abe3d90659755954d16479458defe3a397c168051a0e
#ifndef COLLECT_VIEW_H #define COLLECT_VIEW_H #include "contiki-conf.h" #include "net/linkaddr.h" #include "net/rime/collect.h" struct collect_view_data_msg { uint16_t len; uint16_t clock; uint16_t timesynch_time; uint16_t cpu; uint16_t lpm; uint16_t transmit; uint16_t listen; uint16_t parent; uint1...
C
contiki/apps/collect-view/collect-view.h
miarcompanies/sdn-wise-contiki
bsd-3-clause
929
35
codeparrot/github-code
a8ed4f82992d670a1b171b4ce9266ef7f73997513f1febdbc1c22581a3c7bf2f
#ifndef ALIPRIMARYPIONCUTS_H #define ALIPRIMARYPIONCUTS_H // Class handling all kinds of selection cuts for primary // Authors: Svein Lindal, Daniel Lohner * #include "AliAODpidUtil.h" #include "AliAODTrack.h" #include "AliESDtrack.h" #include "AliVTrack.h" #include "AliAODTrack.h" #include "AliMCEvent.h...
C
PWGGA/GammaConv/AliPrimaryPionCuts.h
AudreyFrancisco/AliPhysics
bsd-3-clause
5,613
190
codeparrot/github-code
48ad49f9f18b389958526c098c869d67d23a9085a470a67b095706ff0fbee27c
# 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. import os from cpp_namespace_environment import CppNamespaceEnvironment from model import Model, UnixName from schema_loader import SchemaLoader def _Gene...
Python
tools/json_schema_compiler/namespace_resolver.py
scheib/chromium
bsd-3-clause
2,904
79
codeparrot/github-code
81c92982b61b388cb5280c78a75d1cc0c745eb794a7d10237c0ee8dd83bf823a
/* SPDX-License-Identifier: GPL-2.0 */ /* Marvell OcteonTx2 CGX driver * * Copyright (C) 2018 Marvell. * */ #ifndef CGX_H #define CGX_H #include "mbox.h" #include "cgx_fw_if.h" #include "rpm.h" /* PCI device IDs */ #define PCI_DEVID_OCTEONTX2_CGX 0xA059 /* PCI BAR nos */ #define PCI_CFG_REG_BAR_NUM 0 #defin...
C
drivers/net/ethernet/marvell/octeontx2/af/cgx.h
tprrt/linux-stable
gpl-2.0
6,050
176
codeparrot/github-code
27151e24432597344ede045aaf4654db610705924ff03d16fd9c27acdb05b9f2
import * as RSVP from 'rsvp'; import { backburner, _rsvpErrorQueue } from '@ember/runloop'; import { getDispatchOverride } from '@ember/-internals/error-handling'; import { assert } from '@ember/debug'; RSVP.configure('async', (callback, promise) => { backburner.schedule('actions', null, callback, promise); }); RSV...
JavaScript
packages/@ember/-internals/runtime/lib/ext/rsvp.js
bekzod/ember.js
mit
1,339
60
codeparrot/github-code
9db51c6b569d5c0cca183b51051e59ee7e0a06b44a45e3e9db4cd95cc5e1b9cf
#include <stdio.h> #include "Halide.h" using namespace Halide; // Override Halide's malloc and free size_t custom_malloc_size = 0; void *my_malloc(void *user_context, size_t x) { custom_malloc_size = x; void *orig = malloc(x+32); void *ptr = (void *)((((size_t)orig + 32) >> 5) << 5); ((void **)ptr)[...
C++
test/correctness/storage_folding.cpp
dan-tull/Halide
mit
5,268
186
codeparrot/github-code
884f48b331e718663fad4ca8b2cdb9000df89037ab184d7b8b9ee1ace4c1f67a
//----------------------------------------------------------------------- // <copyright file="ProjectItemInstance_Tests.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> // <summary>Tests for ProjectItemInstance public members</summary> //-----------------------...
C#
src/XMakeBuildEngine/UnitTestsPublicOM/Instance/ProjectItemInstance_Tests.cs
MetSystem/msbuild
mit
32,123
871
codeparrot/github-code
513e61a720a713361e819fa778bcd13476e14211867467ab1a761060423b493c
/** @module ember @submodule ember-runtime */ import Ember from 'ember-metal/core'; import { Mixin } from 'ember-metal/mixin'; import { get } from 'ember-metal/property_get'; import { deprecateProperty } from 'ember-metal/deprecate_property'; /** `Ember.ActionHandler` is available on some familiar classes including ...
JavaScript
packages/ember-runtime/lib/mixins/action_handler.js
artfuldodger/ember.js
mit
5,224
198
codeparrot/github-code
4c7f2ed9596a9f0546847c3297c4641f484997a9fdfc969d952b78ffff49cf39
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; using System.Diagnostics; using System.Resources; using System.Reflection; using Microsoft.Build.Framework; using Microsoft.Build.Utilit...
C#
src/XMakeTasks/GetFrameworkSDKPath.cs
MetSystem/msbuild
mit
11,944
290
codeparrot/github-code
07e9a73c03d6d87d2850675f2f7ecda10038dd3af9e3f34abaf1fe341b8971b9
"use strict"; // copied from http://www.broofa.com/Tools/Math.uuid.js var CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); exports.uuid = function () { var chars = CHARS, uuid = new Array(36), rnd=0, r; for (var i = 0; i < 36; i++) { if (i==8 || i==13 || i==18 || i=...
JavaScript
utils.js
lucciano/Haraka
mit
4,778
169
codeparrot/github-code
807723ada2a27b678cadfbe7c10bc7a931dab201511a5a88d917c771c83dd5d8
/* * linux/include/linux/mmc/host.h * * 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. * * Host driver specific definitions. */ #ifndef LINUX_MMC_HOST_H #define LINUX_MMC_HOST...
C
include/linux/mmc/host.h
broonie/sound-2.6
gpl-2.0
6,224
195
codeparrot/github-code
838bdff981c34d1b0b6c41aa9ede9d38c3296e88c300dc8467ac7b323df1b830
/* Copyright (C) 2000 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WIT...
C
dep/mysqllite/strings/my_vsnprintf.c
drakeos/Dracore
gpl-2.0
18,158
682
codeparrot/github-code