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
626871e499f2f2576d6ff8b7065f1d1a71f9ef05fc31563c7953205161f7d181
#include <PrecompiledHeader.h> #include "Macro/UnitGroup.h" using namespace BWAPI; using namespace std; bool passesFlag(Unit* u, int f) { if (f<0) return !passesFlag(u,-f); switch(f) { case exists: if (u->exists()) return true; break; case isAccelerating: if (u->isAcc...
C++
src/Macro/UnitGroup.cpp
SnippyHolloW/BroodwarBotQ
bsd-3-clause
53,840
1,935
codeparrot/github-code
f0faad988bcdc3aa8eea6d218adddfdac27444140448c1ca37da27fb5975d056
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__int_rand_to_short_68a.c Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml Template File: sources-sink-68a.tmpl.c */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: rand Set data to result of ...
C
xcc/test/juliet/testcases/CWE197_Numeric_Truncation_Error/s01/CWE197_Numeric_Truncation_Error__int_rand_to_short_68a.c
JianpingZeng/xcc
bsd-3-clause
2,676
90
codeparrot/github-code
c2617189aeecbe039667a8ff5113d2bd73744ce8b8ddd09e1ee364012efc1b97
-------------------------------------------------------------------- -- | -- Module : Text.XML.Light.Cursor -- Copyright : (c) Galois, Inc. 2008 -- License : BSD3 -- -- Maintainer: Iavor S. Diatchki <diatchki@galois.com> -- Stability : provisional -- Portability: portable -- -- XML cursors for working XML content ...
Haskell
Text/XML/Light/Cursor.hs
amremam2004/vxmlizer
bsd-3-clause
10,568
343
codeparrot/github-code
2c0a58488b19e70f1df94effce597d18a20942a514a655724b91183cf304c81f
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_vprintf_16.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-16.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: liste...
C
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s06/CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_vprintf_16.c
JianpingZeng/xcc
bsd-3-clause
9,575
328
codeparrot/github-code
67fd80de9e0cecaf95d4740300b1aa8325138679e4a5d75a4ae9097c43c11c69
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__int_zero_modulo_82_goodB2G.cpp Label Definition File: CWE369_Divide_by_Zero__int.label.xml Template File: sources-sinks-82_goodB2G.tmpl.cpp */ /* * @description * CWE: 369 Divide by Zero * BadSource: zero Fixed value of zero * GoodSource:...
C++
xcc/test/juliet/testcases/CWE369_Divide_by_Zero/s02/CWE369_Divide_by_Zero__int_zero_modulo_82_goodB2G.cpp
JianpingZeng/xcc
bsd-3-clause
1,022
40
codeparrot/github-code
3de216e166245fbe541ddf8ffedcf27bdec65ad328e798f6979c9d263055ec9b
/* Copyright (c) 2014, Sam Schetterer, Nathan Kutz, University of Washington Authors: Sam Schetterer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the abo...
C++
src/utils/dmd.hpp
UW-Kutz-Lab/lilac
bsd-3-clause
5,032
107
codeparrot/github-code
8466e29367dbf05ae2af4c9ca22abf2e2e6adbe58f4d1e63a9403bb8775d69b4
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_68b.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-68b.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set d...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_alloca_loop_68b.c
JianpingZeng/xcc
bsd-3-clause
2,128
66
codeparrot/github-code
3ce3c8e86b0d4606b328a28dae37545031c62dbab268b8d0d313fee795e41d9e
<!doctype html> <!-- Copyright 2013 The Polymer Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <title>list: element, raw</title> <meta name="viewport" content="width=device-width"> <script src="../../../plat...
HTML
examples/element/element3-raw.html
PolymerLabs/polymer-list
bsd-3-clause
5,383
180
codeparrot/github-code
1d013c43a2d81ff1b7241114bda751d966fa995d02727cb8b7fa3586124181fc
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE606_Unchecked_Loop_Condition__wchar_t_connect_socket_01.c Label Definition File: CWE606_Unchecked_Loop_Condition.label.xml Template File: sources-sinks-01.tmpl.c */ /* * @description * CWE: 606 Unchecked Input For Loop Condition * BadSource: connect_socket Rea...
C
xcc/test/juliet/testcases/CWE606_Unchecked_Loop_Condition/CWE606_Unchecked_Loop_Condition__wchar_t_connect_socket_01.c
JianpingZeng/xcc
bsd-3-clause
8,745
290
codeparrot/github-code
032dc65ee556465680959ff12ef64b134e8b520fb7ea6efa5be6ce3054f69b9c
/*++ Copyright (c) 1998 Intel Corporation Module Name: dpath.c Abstract: MBR & Device Path functions Revision History --*/ #include "lib.h" #define ALIGN_SIZE(a) ((a % MIN_ALIGNMENT_SIZE) ? MIN_ALIGNMENT_SIZE - (a % MIN_ALIGNMENT_SIZE) : 0) EFI_DEVICE_PATH * DevicePathFromHandle ( IN EFI_HAN...
C
ToolKit/lib/libefi/dpath.c
kontais/EFI-MIPS
bsd-3-clause
25,162
1,098
codeparrot/github-code
5c02d82d230784a0c1b819f645025392342d4355944a1b307b9ef6bdb1d6f3a5
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_fprintf_54a.c Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-54a.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: listen_socket...
C
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s05/CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_fprintf_54a.c
JianpingZeng/xcc
bsd-3-clause
8,444
277
codeparrot/github-code
e78a79d221c1b4947e6562fdb6618796005ce41bc944df1b7ead72642eef2608
// Copyright 2017 The Crashpad 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 ...
C++
third_party/crashpad/crashpad/util/posix/signals.cc
scheib/chromium
bsd-3-clause
10,640
305
codeparrot/github-code
b7f755a1c58cf859ecca7bf102a388820671a8204f123f0b950db16d71c0012e
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; ...
JavaScript
tollbackend/web/js/angular-1.5.5/i18n/angular-locale_zgh-ma.js
mudunuriRaju/tlr-live
bsd-3-clause
5,388
152
codeparrot/github-code
5e9d7f5fbb70d469e58dd908e486ddc461ce985c96f7dd5e2f80c33d6fe3c07f
// 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. package org.chromium.testing.local; import org.junit.runner.JUnitCore; import org.junit.runner.Request; import org.junit.runner.RunWith; import java.io....
Java
testing/android/junit/java/src/org/chromium/testing/local/JunitTestMain.java
mou4e/zirconium
bsd-3-clause
3,775
99
codeparrot/github-code
5f53fe920c8ebeb9d7f6a00da0c78b78f336496db59e47f6dc36ce49a7b40f9a
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/socket/socket_posix.h" #include <errno.h> #include <netinet/in.h> #include <sys/socket.h> #include <utility> #include "base/callback_helpe...
C++
net/socket/socket_posix.cc
danakj/chromium
bsd-3-clause
13,989
499
codeparrot/github-code
a29bcde68503bdaf039fa818e8ea26e513c636a2adebca2ed023567970751600
//===-- MICmnLLDBDebugSessionInfoVarObj.h -----------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C
third_party/llvm-project/lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfoVarObj.h
youtube/cobalt
bsd-3-clause
5,006
141
codeparrot/github-code
897d446060e156baf53c6f3bdbdcd03e6d862f8ec5904f4c3ea3d80bc0bf87ea
import git from git.exc import InvalidGitRepositoryError from git.config import GitConfigParser from io import BytesIO import weakref # typing ----------------------------------------------------------------------- from typing import Any, Sequence, TYPE_CHECKING, Union from git.types import PathLike if TYPE_CHECKI...
Python
git/objects/submodule/util.py
gitpython-developers/GitPython
bsd-3-clause
3,358
111
codeparrot/github-code
997c1453911581199678697be4d3b3a97c00e12f08d3bb4698080cbeaeff81f3
<?php namespace BecklynLayout\Model; use BecklynLayout\Entity\Download; /** * */ class DownloadModel { /** * @var string */ private $downloadDir; /** * Relative to web/ */ const RELATIVE_DOWNLOAD_DIR = "downloads"; /** * @param $baseDir */ public function...
PHP
src/Model/DownloadModel.php
Becklyn/Gluggi
bsd-3-clause
1,330
73
codeparrot/github-code
d6c651c1e0fd21ed818c4942408a803a899fa2187412291acda00dedd773ad0e
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE127_Buffer_Underread__CWE839_fscanf_83_bad.cpp Label Definition File: CWE127_Buffer_Underread__CWE839.label.xml Template File: sources-sinks-83_bad.tmpl.cpp */ /* * @description * CWE: 127 Buffer Underread * BadSource: fscanf Read data from the console using f...
C++
xcc/test/juliet/testcases/CWE127_Buffer_Underread/s01/CWE127_Buffer_Underread__CWE839_fscanf_83_bad.cpp
JianpingZeng/xcc
bsd-3-clause
1,578
49
codeparrot/github-code
d79c63895047b06fc4e839dd5409a4a603a64e0aa00ba5f219c0ebb4302ed773
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not...
HTML
measurer/hotspot-measurer/jdk1.6.0_45/db/docs/html/adminguide/cadminrollforward.html
armoredsoftware/protocol
bsd-3-clause
10,478
208
codeparrot/github-code
85a148bde38d03912f9b8475ee9c86608def8d6b4f779793b6d3fda7d0aeb587
<?php defined('SYSPATH') OR die('No direct script access.'); /** * Copyright © 2011–2013 Spadefoot Team. * Copyright © 2012 CubedEye. * * Unless otherwise noted, LEAP is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may ob...
PHP
modules/leap/classes/Base/Model/Leap/User.php
ruslankus/invoice-crm
bsd-3-clause
5,163
199
codeparrot/github-code
d226126e7286c70acfe67c3d9ec4da6eb70980d4fc2ab63f185c090a2991baa2
/* * Copyright 2013 Zynga Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
C
solaris_priv.c
zbase/moxi
bsd-3-clause
1,893
61
codeparrot/github-code
0a4f366521280e187e100d9d5880b2e05395693ef6bb29a1e8f379cff2c80018
// 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 <stddef.h> #include "base/numerics/safe_conversions.h" #include "base/optional.h" #include "media/video/h264_parser.h" #include "ui/gfx/geometry...
C++
media/video/h264_parser_fuzzertest.cc
endlessm/chromium-browser
bsd-3-clause
2,198
78
codeparrot/github-code
b1541d8d606e8cbcb7825d527e178a8c7cae5721c023da5cd52146f85a29451d
*> \brief \b CERRST * * =========== DOCUMENTATION =========== * * Online html documentation available at * http://www.netlib.org/lapack/explore-html/ * * Definition: * =========== * * SUBROUTINE CERRST( PATH, NUNIT ) * * .. Scalar Arguments .. * CHARACTER*3 PATH * INTEGER ...
FORTRAN
lapack-netlib/TESTING/EIG/cerrst.f
buffer51/OpenBLAS
bsd-3-clause
56,139
1,347
codeparrot/github-code
bb0d7b8b8106b247403558bb278d0b30cd4fc57eaff596df4128c9d937c624bd
package org.hisp.dhis.reporttable; /* * Copyright (c) 2004-2018, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ...
Java
dhis-2/dhis-api/src/main/java/org/hisp/dhis/reporttable/ReportTable.java
msf-oca-his/dhis-core
bsd-3-clause
35,862
1,116
codeparrot/github-code
518e1ccb23ddf440e67873ff065ff3ca94dc2fa91edbc668100bd0e253d09986
from django.contrib import admin from django.utils.translation import ugettext, ugettext_lazy as _ from ella.positions.models import Position from ella.utils import timezone class PositionOptions(admin.ModelAdmin): def show_title(self, obj): if not obj.target: return '-- %s --' % ugettext('em...
Python
ella/positions/admin.py
WhiskeyMedia/ella
bsd-3-clause
1,381
42
codeparrot/github-code
05e7dcf7e466cdaa7ce390be075cf37678ee5b84c61167b9e0de82e703db0443
// 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. /** * @fileoverview Offline message screen implementation. */ login.createScreen('ErrorMessageScreen', 'error-message', function() { // Link whic...
JavaScript
chrome/browser/resources/chromeos/login/screen_error_message.js
cvsuser-chromium/chromium
bsd-3-clause
8,584
261
codeparrot/github-code
e17031ddb9215fe5ec2d04d10826397278aeaab79a56a951075a077b760ab91c
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { var imageDialog = function( editor, dialogType ) { // Load image preview. var IMAGE = 1, LINK = 2, PREVIEW = 4, CLEANUP = 8, reg...
JavaScript
ckeditor/_source/plugins/image/dialogs/image.js
fredd-for/codice.v.1.1
bsd-3-clause
46,523
1,389
codeparrot/github-code
5089b9f79f0ab9f3695e4a66bcdeb6b2388bcb4bec352a2b2a8b8474c7c52525
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
JavaScript
backend/getDisplayName.js
jhen0409/react-devtools
bsd-3-clause
1,237
43
codeparrot/github-code
a2ff4b45c886bac2c746fa30d7b891b5a476c048e85086462905d3ccb6611579
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not...
HTML
measurer/hotspot-measurer/jdk1.6.0_45/db/docs/html/tuning/ctunoptimz56859.html
armoredsoftware/protocol
bsd-3-clause
7,025
155
codeparrot/github-code
089159ef067a7809e1857014f41927dd5e2497a64da203aa8353cfeb69803e38
import {describe, it, display} from "./framework" import {LayoutDOM, Row, Column, GridBox, Spacer, Tabs, Panel} from "@bokehjs/models/layouts/index" import {ToolbarBox} from "@bokehjs/models/tools/toolbar_box" import { Button, Toggle, Dropdown, CheckboxGroup, RadioGroup, CheckboxButtonGroup, RadioButtonGroup, ...
TypeScript
bokehjs/test/integration.ts
stonebig/bokeh
bsd-3-clause
20,323
646
codeparrot/github-code
c34ee89b0a7bb0fc2d2c7a9017b9d5cda8483b98a017b98b8683ae205585712e
// -*- C++ -*- // Copyright (C) 2005, 2006 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 Free Software // Foundation; either version ...
C++
src/subsys/posix/include/c++/4.3.2/ext/pb_ds/detail/splay_tree_/node.hpp
jmolloy/pedigree
isc
4,101
132
codeparrot/github-code
6724a1391c78897f5abd42fb43ec55e9d8ee78fc55782be35629a475ba316cab
'use strict'; var _ = require('lodash'); var helpers = require('./helpers'); var responseParser = require('./responseparser'); var request = require('./request'); // A resource on the API, instances of this are used as the prototype of // instances of each API resource. This constructor will build up a method // for...
JavaScript
lib/resource.js
raoulmillais/7digital-api
isc
5,206
164
codeparrot/github-code
fa15e9d5b37df396d1abc86ee936d6e6511f89614b7ea0305c5cf7b224c0133c
/** * Custom events to control showing and hiding of tooltip * * @attributes * - `event` {String} * - `eventOff` {String} */ export const checkStatus = function(dataEventOff, e) { const { show } = this.state; const { id } = this.props; const isCapture = this.isCapture(e.currentTarget); const currentItem ...
JavaScript
src/decorators/customEvent.js
wwayne/react-tooltip
mit
2,931
93
codeparrot/github-code
d3aafb52b1e5c50c8522303e44781a57d59dfcf59d08b8255d8e0fc6904ac624
// Copyright 2017 Dan Ristic #include "chimera/virtual/vtree.h" namespace Chimera { namespace Virtual { VirtualElement::VirtualElement( std::string _name, std::vector<Attribute> _attributes) : name{_name} { for (auto& attribute : _attributes) { std::string key = attribute.getKey(); a...
C++
chimera/virtual/vtree.cpp
dristic/chimera
mit
1,954
89
codeparrot/github-code
fb8e9f3cc9a4bc6dd0e8f072bc61e5a4278b32eaa10d279799b3c297ef137467
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Bundle\ResourceBundle\Doctrine\ORM; use Doctrine\ORM\Entit...
PHP
src/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.php
mkilmanas/Sylius
mit
4,025
142
codeparrot/github-code
228b8d6cbb6c71ec8ce69a55436f2da9f77b3631e39d6bf5cd79e410e2cfdf8e
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" href="../../style.css" type="text/css" media="screen"> <link rel="stylesheet" href="../../print.css" type="text/...
HTML
fp9/asdoc/as3isolib/core/package-detail.html
liuju/as3isolib.v1
mit
5,014
87
codeparrot/github-code
aa53872967447a9692734dd82cd05360288b8f8598c9c8669014386994d2c537
#pragma once #include <memory> #include <globjects/Buffer.h> #include <gloperate/rendering/Shape.h> #include <gloperate/rendering/Drawable.h> namespace gloperate { /** * @brief * Point shape */ class GLOPERATE_API Point : public Shape { public: /** * @brief * Constructor * * @param...
C
source/gloperate/include/gloperate/rendering/Point.h
cginternals/gloperate
mit
869
51
codeparrot/github-code
68d5201dc74a4e0dc85b229df9810d773a159432a52e4a36051c8635baf8cffa
using Microsoft.Xna.Framework.Graphics; namespace Nez { public class VignettePostProcessor : PostProcessor { [Range(0.001f, 10f, 0.001f)] public float Power { get => _power; set { if (_power != value) { _power = value; if (Effect != null) _powerParam.SetValue(_power); } ...
C#
Nez.Portable/Graphics/PostProcessing/PostProcessors/VignettePostProcessor.cs
ericmbernier/Nez
mit
1,191
68
codeparrot/github-code
a87166b7ae37e0ad0ed690b110705387cd9b1c0a3e42fcefc3b6fa5b884c794f
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*============================================================ ** ** ** ** ** ** CustomAttributeBuilder is a helpe...
C#
src/mscorlib/src/System/Reflection/Emit/CustomAttributeBuilder.cs
neurospeech/coreclr
mit
26,472
584
codeparrot/github-code
1982311d1c84d74a4ffeed9d263bf2d122ec85be63ac9a525a67e41dc49f8d07
package is.hail.misc import java.io.InputStream import is.hail.io.compress.BGzipInputStream import is.hail.io.fs.FS object BGZipBlocks { //Print block starts of block gzip (bgz) file def apply(fs: FS, file: String) { var buf = new Array[Byte](64 * 1024) // position of 'buf[0]' in input stream var bu...
Scala
hail/src/main/scala/is/hail/misc/BGZipBlocks.scala
hail-is/hail
mit
1,131
57
codeparrot/github-code
b7c63d2983684fe042471b7cff5f4b92ade0777d9ed552206226c0048ff61530
require 'optparse' require 'oink/reports/base' require 'oink/reports/active_record_instantiation_report' require 'oink/reports/memory_usage_report' module Oink class Cli def initialize(args) @args = args end def process options = { :format => :short_summary, :type => :memory } op = O...
Ruby
lib/oink/cli.rb
zBMNForks/oink
mit
2,502
102
codeparrot/github-code
e3619234ea35ef19b451c1336b2590c71197ad55f3ccb81306ef362576674bb8
/* * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, t...
C
pru_firmware/include/am335x/pru_intc.h
nkaminski/bone-shiftreg
mit
19,323
908
codeparrot/github-code
d3351650ec305ddc80108f88107089b2cc140020e9d7f14d8ee9d343fa7de816
<?php namespace Rad\Core; /** * Singleton trait * * @package Rad\Core\Pattern */ trait SingletonTrait { protected static $instance; /** * Get instance * * @return static */ final public static function getInstance() { if (!self::$instance) { self::$instance...
PHP
src/Core/SingletonTrait.php
radphp/radphp
mit
892
64
codeparrot/github-code
6358a6c021c491b986dd55b692033217b65efa4122231a146411b073d1c74d79
<?php /** * This file is part of the Zephir. * * (c) Phalcon Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir\Statements\Let; use Zephir\ClassProperty; use Zephir\CompilationContext; u...
PHP
Library/Statements/Let/StaticPropertyArrayIndex.php
phalcon/zephir
mit
5,855
162
codeparrot/github-code
87b51f8bb8f18a04494ad404d9ebbcf4a1f15f972f1fb0e09b0527785ea14f20
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.eventprocessorhost; import java.util.ArrayList; import java.util.concurrent.ScheduledExecutorService; import com.microsoft.azure.eventhubs.AzureActiveDirectoryTokenProvider; public class PerTe...
Java
sdk/eventhubs/microsoft-azure-eventhubs-eph/src/test/java/com/microsoft/azure/eventprocessorhost/PerTestSettings.java
Azure/azure-sdk-for-java
mit
8,213
228
codeparrot/github-code
39d5bb92d19fb2fc184bbb2312a104801f59f8050a56b673c94537cdaf3970bf
using UnityEngine; using System.Collections; namespace RootMotion.Demos { /// <summary> /// Contols animation for a third person person controller. /// </summary> [RequireComponent(typeof(Animator))] public class CharacterAnimationThirdPerson: CharacterAnimationBase { public CharacterThirdPerson characterC...
C#
UGA Hacks 2015/Assets/Plugins/RootMotion/Shared Demo Assets/Scripts/Character Controllers/CharacterAnimationThirdPerson.cs
mbottone/uga_hacks_2015
mit
3,306
86
codeparrot/github-code
f0a19e22e5e392e2d6f6b93d1db5a64daf9d8cf469aecdb09a5e86c273b38104
//! Record data from [RFC 3596]. //! //! This RFC defines the Aaaa record type. //! //! [RFC 3596]: https://tools.ietf.org/html/rfc3596 use std::fmt; use std::net::Ipv6Addr; use std::str::FromStr; use ::bits::{Composable, Composer, ComposeResult, DNameSlice, ParsedRecordData, Parser, ParseResult, RecordDa...
Rust
src/rdata/rfc3596.rs
cloudshipping/domain-rs
mit
2,259
76
codeparrot/github-code
5f7e1c4203fa387faefc64f3d5d4d7f0a545aed78a2a3b906d8080f3ee92deeb
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; import Tab from '../src/Tab'; import TabPane from '../src/TabPane'; import Tabs from '../src/Tabs'; import ValidComponentChildren from ...
JavaScript
test/TabsSpec.js
mmarcant/react-bootstrap
mit
14,836
406
codeparrot/github-code
b2fa65b53b685dacab2ba065646aed07943c3bd3c5aa306bcab85ec329983a83
class Riemann::MetricThread # A metric thread is simple: it wraps some metric object which responds to <<, # and every interval seconds, calls #flush which replaces the object and calls # a user specified function. INTERVAL = 10 attr_accessor :interval attr_accessor :metric # client = Riemann::Clien...
Ruby
lib/riemann/metric_thread.rb
riemann/riemann-ruby-client
mit
1,154
69
codeparrot/github-code
089b37f99ccd732633298dcb4557c398debb759e0a7fb9ffa7f245cf17c105f8
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/editor/common/services/resourceConfigurationImpl.ts
gagangupt16/vscode
mit
2,553
47
codeparrot/github-code
0909b457a309a2146f217c6c0a06b87703f434a20ebc7ed5bf217c1647c3c1ba
package hudson.plugins.cobertura; import static org.junit.Assert.assertTrue; import org.junit.Test; public class CoberturaPublisherTest { @Test public void testGetOnlyStable() { CoberturaPublisher testObjectTrue = new CoberturaPublisher(null, true, false, false, false, false, false, false, null, 0); Cobertura...
Java
src/test/java/hudson/plugins/cobertura/CoberturaPublisherTest.java
rbaradari/cobertura-plugin
mit
2,164
50
codeparrot/github-code
f588428501452985f436efd9c2730a4a04bd7235bf73b301aac227c788b69787
import os import inspect from lib import BaseTest def changesRemove(_, s): return s.replace(os.path.join(os.path.dirname(inspect.getsourcefile(BaseTest)), "changes"), "") class EditRepo1Test(BaseTest): """ edit repo: change comment """ fixtureCmds = [ "aptly repo create repo1", ] ...
Python
system/t09_repo/edit.py
neolynx/aptly
mit
2,278
95
codeparrot/github-code
3569723b6a70795ef446388eb7d3e604b3d99ef40d2f46e5244f6bcb0b5d9ded
import PropTypes, { configStyleValidator, styleValidator } from './PropTypes' import Box from './components/Box' import Email from './components/Email' import Image from './components/Image' import Item from './components/Item' import Span from './components/Span' import A from './components/A' import renderEmail from ...
JavaScript
src/index.js
chromakode/react-html-email
mit
676
34
codeparrot/github-code
996d700a97d4d5e59e4db7487d60be74994b05fc2b46d5a682b9aa3899eecf6f
package mineapi.furnace; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import mineapi.mod.ModLoader; import net.minecraft.item.ItemStack; public class FurnaceRecipeComponent { @Expose @SerializedName("ItemName") private String itemName; @Expose @S...
Java
src/main/java/mineapi/furnace/FurnaceRecipeComponent.java
Maxwolf/MineAPI.Java
mit
2,428
105
codeparrot/github-code
4cad971dbb414b2e9258267818c6ef26155563fb984384a5a320cf02ca1fe698
import ResourceProcessorBase from './resource-processor-base'; class ManifestProcessor extends ResourceProcessorBase { processResource (manifest, ctx, charset, urlReplacer) { var lines = manifest.split('\n'); for (var i = 0; i < lines.length; i++) { var line = lines[i].trim(); ...
JavaScript
src/processing/resources/manifest.js
georgiy-abbasov/testcafe-hammerhead
mit
1,000
35
codeparrot/github-code
84faae1c615809cd3bdbe72a209c341acef800aa3f173da9d1c04c68a5fa717c
<div class="topbar-container" ng-include="'views/includes/topbar.html'" ng-init="titleSection='Sweep paper wallet'; goBackToState = 'preferencesAdvanced';"> </div> <div class="content preferences" ng-controller="paperWalletController as paperWallet"> <h4 ng-show="!paperWallet.error"></h4> <div class="onGoing...
HTML
public/views/paperWallet.html
tanojaja/copay
mit
3,255
79
codeparrot/github-code
926ef0a8243a6e82ce1064d349daf1119b10fde9775f97937af715712d2131a5
import re import datetime import dateutil.parser from django.conf import settings from django.utils import feedgenerator from django.utils.html import linebreaks from apps.social.models import MSocialServices from apps.reader.models import UserSubscription from utils import log as logging from vendor.facebook import Gr...
Python
utils/facebook_fetcher.py
AlphaCluster/NewsBlur
mit
9,072
224
codeparrot/github-code
17c87643989d519e8a7e0b60fafeeb9eb05be7b37a21962f50d1d41976684e5d
import io import sys isPython3 = sys.version_info >= (3, 0) class Scribe: @staticmethod def read(path): with io.open(path, mode="rt", encoding="utf-8") as f: s = f.read() # go to beginning f.seek(0) return s @staticmethod de...
Python
tools/knight/core/literature/scribe.py
RobertoPrevato/Humbular
mit
1,844
62
codeparrot/github-code
4896279cdc72672d9688afd44adf33275e432a924db1b5bd1fbd724f4e08e2f7
// Type definitions for tcp-ping 0.1 // Project: https://github.com/wesolyromek/tcp-ping // Definitions by: JUNG YONG WOO <https://github.com/stegano> // rymate1234 <https://github.com/rymate1234> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface Options { address?...
TypeScript
types/tcp-ping/index.d.ts
georgemarshall/DefinitelyTyped
mit
863
32
codeparrot/github-code
c3a7dd960a6ab512d13852ec96fbad404f92b614b941246c68830ec8a2614b15
var successCount = 0; for each (arg in args) { if (process(arg)) { successCount++; } } write(successCount + " out of " + args.length + " benchmarks passed the test", "test.result"); exit(); function process(name) { log = name + ".result"; s = ""; stgWork = import(name + ".g"); s += "Pr...
JavaScript
ci/flow-mpsat-g/test.js
workcraft/workcraft
mit
3,041
132
codeparrot/github-code
caeb166fb8bf355a9552328df2d7b83d71bde42c3227360f37a1909cbd03dce0
<?php namespace Concrete\Core\Express\Entry; use Concrete\Core\Entity\Express\Entity; use Concrete\Core\Entity\Express\Entry; use Concrete\Core\Entity\Express\Form; use Concrete\Core\Express\Event\Event; use Concrete\Core\Express\Form\Control\SaveHandler\SaveHandlerInterface; use Doctrine\ORM\EntityManagerInterface; u...
PHP
concrete/src/Express/Entry/Manager.php
jaromirdalecky/concrete5
mit
2,831
82
codeparrot/github-code
5e1efc69b6e10c9c81a4efdaee775be26781be0678139dd299e1b66b4fe7c5b5
#!/usr/bin/python # -*- coding: utf-8 -*- """ This script shows the categories on each page and lets you change them. For each page in the target wiki: * If the page contains no categories, you can specify a list of categories to add to the page. * If the page already contains one or more categories, you can specify...
Python
scripts/catall.py
h4ck3rm1k3/pywikibot-core
mit
4,130
138
codeparrot/github-code
6267be935c185246dfd8f1c3546f62f4a665fdace5ec87901efa018996f1d575
(function () { var common; this.setAsDefault = function () { var _external = window.external; if (_external && ('AddSearchProvider' in _external) && ('IsSearchProviderInstalled' in _external)) { var isInstalled = 0; try { isInstalled = _external.IsSearchProvide...
JavaScript
public/javascripts/main.js
lenbo-ma/gso
mit
1,477
41
codeparrot/github-code
aea1e9912430897baaa236752c7a2a1ae8a76aa0cb37d069645a980b9f23bdf4
using System; using System.IO; using System.Threading; using JetBrains.Annotations; // ReSharper disable once CheckNamespace namespace BenchmarkDotNet.Loggers { // BASEDON: https://github.com/dotnet/BenchmarkDotNet/blob/master/src/BenchmarkDotNet.Core/Loggers/StreamLogger.cs /// <summary> /// Implementation of <...
C#
PerfTests[WIP]/src/[L0_PortToBenchmerkDotNet]/Loggers/LazySynchronizedStreamLogger.cs
rsdn/CodeJam
mit
2,531
70
codeparrot/github-code
60241ba0cde60cb049832659942dcdaf032dd37a0e30d59808a0414d99785ba1
;/* ; FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd. ; All rights reserved ; ; VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. ; ; This file is part of the FreeRTOS distribution. ; ; FreeRTOS is free software; you can redistribute it and/or modify it under ; th...
Assembly
tiva/third_party/FreeRTOS/Source/portable/CCS/ARM_CM4F/portasm.asm
kpeeyush/dusthawk
mit
6,681
208
codeparrot/github-code
2c341693010be3c76633051f3a1660d435e05da8dc9a8967591e9ab0eebede27
/** * Copyright (c) 2015-2016 Angelo ZERR. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributor...
Java
eclipse/ts.eclipse.ide.ui/src/ts/eclipse/ide/ui/hover/ProblemTypeScriptHover.java
webratio/typescript.java
mit
4,362
119
codeparrot/github-code
6bdcf3ea2f0386137a40afe30f3ef0a875cb937db4d950eb24751acd625b37ca
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
Java
src/main/java/org/spongepowered/common/data/processor/data/tileentity/StructureDataProcessor.java
Grinch/SpongeCommon
mit
7,763
180
codeparrot/github-code
ec6ebdf2f4139b8713c60cbb4d3c83ec2d963cf855ff457df106630550d3d861
import fs from 'fs'; import cheerio from 'cheerio'; import { Analyzer } from './crowller'; interface Course { title: string; count: number; } interface CourseResult { time: number; data: Course[]; } interface Content { [propName: number]: Course[]; } export default class DellAnalyzer implements Analyzer {...
TypeScript
typescript/express/src/utils/dellAnalyzer.ts
lijiliang/record
mit
1,613
68
codeparrot/github-code
89109c1f7d32009e3aafd93413226c76c0c9e8aab440fe137faefd8d97803b51
/* The kernel call implemented in this file: * m_type: SYS_PRIVCTL * * The parameters for this kernel call are: * m2_i1: CTL_ENDPT (process endpoint of target) * m2_i2: CTL_REQUEST (privilege control request) * m2_p1: CTL_ARG_PTR (pointer to request data) */ #include "kernel/system.h" #inc...
C
src.clean/kernel/system/do_privctl.c
ducis/operating-system-labs
mit
9,577
327
codeparrot/github-code
b26f54b5f6a6bb83212b9710414c723013cd7ca6734a2c442c9bf48325d11a8f
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
Python
lib/python2.7/site-packages/botocore/docs/shape.py
achang97/YouTunes
mit
4,763
114
codeparrot/github-code
a50abf132a151825c351baf9dedcae8869733135dcbe37ef5e63a0f9096af1b2
-------------------------------------------------------------------------------- -- model.lua, v0.9.1: basic model creator, uses db module -- This file is a part of Sailor project -- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org ----------------------------------------...
Lua
src/sailor/model.lua
ld-test/sailor
mit
12,697
479
codeparrot/github-code
b3961207823c767c740c4414db26c3cf17c0f6b236af906fbaefe08412b22439
// ## Globals var argv = require('minimist')(process.argv.slice(2)); var autoprefixer = require('gulp-autoprefixer'); var browserSync = require('browser-sync').create(); var changed = require('gulp-changed'); var concat = require('gulp-concat'); var flatten = require('gulp-flatten'); var gulp ...
JavaScript
gulpfile.js
MikeiLL/HealthyHappyHarmony
mit
8,996
290
codeparrot/github-code
1dee6e5901cd649d998bb71a7458b30192d7597fe931dbf823da9bb478e2d337
<!DOCTYPE html> <html> <head> <title>Chapter 16: In Which Fix Does Not Seem to Understand in the Least What is Said to Him | Around the World in 80 Days | Jules Verne | Lit2Go ETC</title> <link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title"...
HTML
lit2go.ok/55/around-the-world-in-80-days/1061/chapter-16-in-which-fix-does-not-seem-to-understand-in-the-least-what-is-said-to-him/index.html
adrianosb/HtmlToText
mit
21,982
284
codeparrot/github-code
ad3aec0ecc2671df7d511d292cc76c855d86679f73d1dcf7516a863a85063173
/* Get Programming with JavaScript * Listing 4.02 * Displaying information from similar objects */ var movie1; var movie2; var movie3; movie1 = { title: "Inside Out", actors: "Amy Poehler, Bill Hader", directors: "Pete Doctor, Ronaldo Del Carmen" }; movie2 = { title: "Spectre", actors: "Daniel...
JavaScript
Ch04_Functions/listing4.02.js
jrlarsen/AdventuresInJavaScript
mit
1,566
60
codeparrot/github-code
1f42ff4c6ae89a3d374ec0a7e8d85656e8a49984818c072233153711af57895f
// 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 "net/proxy/proxy_service.h" #include <algorithm> #include <cmath> #include <utility> #include "base/bind.h" #include "base/bind_helpers.h" ...
C++
src/net/proxy/proxy_service.cc
junhuac/MQUIC
mit
60,427
1,659
codeparrot/github-code
1c6c9ff6c1493ee3d70490544c0e9ee676d3ef1dd826f8a7df7086e321e44471
/* -*- Mode: C++; -*- */ // C&C NLP tools // Copyright (c) Universities of Edinburgh, Oxford and Sydney // Copyright (c) James R. Curran // // This software is covered by a non-commercial use licence. // See LICENCE.txt for the full text of the licence. // // If LICENCE.txt is not included in this distribution // pleas...
C
packs_sys/logicmoo_nlu/ext/candc/src/include/tagger/ner.h
TeamSPoon/logicmoo_workspace
mit
1,474
54
codeparrot/github-code
587783b7ae6abbbae09e8f2d5e039e021fc567511b3842d73d4d979e5d3be5a2
motion_require 'object_row' module Formotion module RowType class WebLinkRow < ObjectRow def after_build(cell) super cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator self.row.text_field.hidden = true end def on_select(tableView, tableViewDelegate) ...
Ruby
lib/formotion/row_type/web_link_row.rb
iwazer/formotion
mit
1,332
51
codeparrot/github-code
14f328e852a21efec65196b187fed72dd04b89c988bb640932d475ccc9568f26
import logging import codecs from optparse import OptionParser from pyjade.utils import process import os def convert_file(): support_compilers_list = ['django', 'jinja', 'underscore', 'mako', 'tornado'] available_compilers = {} for i in support_compilers_list: try: compiler_...
Python
src/pyjade/convert.py
glennyonemitsu/MarkupHiveServer
mit
2,157
57
codeparrot/github-code
2519e98ea906121d353d21a55a80a71992440020d78dba82ffdc5cc79542238a
<!DOCTYPE html> <html> <head> <title>Chapter 8: Daggers Drawn | The Mystery of Edwin Drood | Charles Dickens | Lit2Go ETC</title> <link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8"> <link rel="stylesheet" href="http://...
HTML
lit2go.ok/6/the-mystery-of-edwin-drood/866/chapter-8-daggers-drawn/index.html
adrianosb/HtmlToText
mit
33,542
458
codeparrot/github-code
88ecd62cdc1b4f5aa33d8385adacc28e8a6a6b5f49a527c2664df19e574d3c8f
package corerouting import ( "errors" context "context" core "github.com/ipfs/go-ipfs/core" repo "github.com/ipfs/go-ipfs/repo" supernode "github.com/ipfs/go-ipfs/routing/supernode" gcproxy "github.com/ipfs/go-ipfs/routing/supernode/proxy" "gx/ipfs/QmPTGbC34bPKaUm9wTxBo7zSCac7pDuG42ZmnXC718CKZZ/go-libp2p-host"...
GO
core/corerouting/core.go
llawall/go-ipfs
mit
2,221
58
codeparrot/github-code
feef23a5e44ff2dfd57d568d1f2aaa4e699fdb070f5abf70da738de6bb753bf2
/* * jdscale.c * * Copyright (C) 1998, Thomas G. Lane. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains sample scaling for lossless JPEG. This is a * combination of upscaling the undifferenced sample...
C
dcmtk-3.6.1_20150629/dcmjpeg/libijg12/jdscale.c
leonardorame/openpacs
mit
3,101
120
codeparrot/github-code
fc4d24e7c12ea4a52203b8a5ba39d28279758586ed77ebd1c80ad726aa328a81
using System.Configuration; namespace Rock { /// <summary> /// An implementation of <see cref="IApplicationIdProvider"/> that uses a config /// file's appSettings section. /// </summary> public class AppSettingsApplicationIdProvider : IApplicationIdProvider { private const string Defau...
C#
Rock.Core/AppSettingsApplicationIdProvider.cs
bfriesen/Rock.Core
mit
1,389
42
codeparrot/github-code
2f3536343d04374a17f1023cb8925b9b8e7844a7fb594e669e5a27cafb60a5e5
/* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
Java
src/org/broad/igv/ui/util/IndefiniteProgressMonitor.java
popitsch/varan-gie
mit
2,776
94
codeparrot/github-code
b904a6a64ff38a94e9862e05c3d156527428b445f9eb79835d3170b4c1be2951
/*! * Reference link dialog plugin for Editor.md * * @file reference-link-dialog.js * @author pandao * @version 1.2.1 * @updateTime 2015-06-09 * {@link https://github.com/pandao/editor.md} * @license MIT */ (function () { var factory = function (exports) { var pluginNa...
JavaScript
theme/admin/static/editor.md/plugins/reference-link-dialog/reference-link-dialog.js
Nightsuki/AVDir
mit
5,283
148
codeparrot/github-code
ad9cc0c60696c917f2ad0234b34616f581f1635933137299774997dd8b0035ee
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> <meta name="author" content="David Dao, Broad Institute"> <meta name="author" content="Nick P...
HTML
_includes/head.html
munichacm/hacknhelp
mit
4,355
57
codeparrot/github-code
141f3bc0953c7fbe6647ac365245e54eec22945fe2473387a9bb633285934cc7
<!DOCTYPE html> <html ng-app="ionic"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title>Sample UL</title> <link href="../../../../dist/css/ionic.css" rel="stylesheet"> <script src="../../../../dist/js/ion...
HTML
test/html/list-fit.html
eric-stanley/ionic
mit
2,449
85
codeparrot/github-code
1865fd44d022e45fd054638013198cc7fd2cf32940e0e9a6330c1b65008ac915
//===- RegionPass.cpp - Region Pass and Region Pass Manager ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
include/llvm/lib/Analysis/RegionPass.cpp
ensemblr/llvm-project-boilerplate
mit
8,720
281
codeparrot/github-code
9288da59a66c3dac19c36fd56ce394b053f3fafa6da078bdb2b9e99d197e70ec
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Function reduce</title> <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../index.html" title="Cha...
HTML
ext/c++/thirdpart/c++/boost/libs/compute/doc/html/boost/compute/reduce.html
yinchunlong/abelkhan-1
mit
8,299
104
codeparrot/github-code
44d542e74577df6ee274b33c3fe33db8fde8744cebf0fffec7c35c833a3aeed7
<?php namespace Oro\Bundle\EntityExtendBundle\Entity\Repository; use Doctrine\ORM\EntityRepository; use Doctrine\ORM\QueryBuilder; use Oro\Bundle\EntityExtendBundle\Entity\AbstractEnumValue; use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; class EnumValueRepository extends EntityRepository { /** * Cre...
PHP
src/Oro/Bundle/EntityExtendBundle/Entity/Repository/EnumValueRepository.php
Djamy/platform
mit
2,951
91
codeparrot/github-code
5b080c7f553f5da47ae7c7c4242af3a57b4f66050327d362ae7dbee3023e00f5
using System.Linq; using Shouldly; using Xunit; namespace Marten.Testing.Bugs { public class Bug_337_certain_boolean_searches_are_not_using_searchable_field : IntegratedFixture { [Fact] public void use_searchable_fields_in_generated_sql() { StoreOptions(_ => { ...
C#
src/Marten.Testing/Bugs/Bug_337_certain_boolean_searches_are_not_using_searchable_field.cs
jmbledsoe/marten
mit
1,570
48
codeparrot/github-code
264477d11086f19f4702c598604748ada3b445b58a80ab4e8108cff0d37e3103
/* * Phasor * * This code has been extracted from the Csound opcode "phasor". * It has been modified to work as a Soundpipe module. * * Original Author(s): Barry Vercoe, John ffitch, Robin whittle * Year: 1991 * Location: OOps/ugens2.c * */ #include <stdlib.h> #include "soundpipe.h" int sp_phasor_create(sp_...
C
Sources/soundpipe/modules/phasor.c
audiokit/AudioKit
mit
993
54
codeparrot/github-code
94c719d940460f13452ee61d0e218e7668e6397f57f917bce9d0fc155ce99ef3
// The current version of this file can be retrieved by: // GET /api/language/webast module TDev.AST.Json { // This module describes an AST for TouchDevelop scripts. The documentation // is severely lacking, so the best way to figure things out is to write a // TouchDevelop script, and type (in the console...
TypeScript
ast/jsonInterfaces.ts
jmptrader/TouchDevelop
mit
24,049
679
codeparrot/github-code
2d18f2f59d0e4a8fdc1c5953835783a269a6a7ebc12424b9d00a8626b02e8738
;(function() { var ValueDirective = function() { }; _.extend(ValueDirective.prototype, { matcher: function($el) { return $el.data('value'); }, run: function($el) { $el.html($el.data('value')); } }); window.app = new xin.App({ el: x...
JavaScript
js/app/app.js
aliaraaab/xin-arch
mit
3,178
124
codeparrot/github-code
9a1e95e1d63bcb77a6b7fc90a14f92f8b1facbb2218f136aeae742f200d8c99e
module Gitlab module Metrics module Subscribers # Class for tracking the total time spent in Rails cache calls # http://guides.rubyonrails.org/active_support_instrumentation.html class RailsCache < ActiveSupport::Subscriber attach_to :active_support def cache_read(event) ...
Ruby
lib/gitlab/metrics/subscribers/rails_cache.rb
jirutka/gitlabhq
mit
2,649
84
codeparrot/github-code
c4b2ffe606cfe0a74eea9bb5f4b4021ce82f5a50ee9718370e1a3dea0dd30970
// // FSpotContentDirectory.cs // // Author: // Yavor Georgiev <fealebenpae@gmail.com> // // Copyright (c) 2010 Yavor Georgiev // // 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...
C#
src/Mono.Upnp.Dcp/Mono.Upnp.Dcp.MediaServer1/Mono.Upnp.Dcp.MediaServer1.FSpot/Service/FSpotContentDirectory.cs
mono/mono-upnp
mit
11,139
337
codeparrot/github-code
68427f143f74d868d146e4a9306966434ea28dd5befb4154acf133037e9c718f
var expect = require('expect.js'); var helpers = require('../helpers'); var fakeRepositoryFactory = function () { function FakeRepository() { } FakeRepository.prototype.getRegistryClient = function () { return { unregister: function (name, cb) { cb(null, { name: name }); ...
JavaScript
test/commands/unregister.js
rlugojr/bower
mit
2,413
80
codeparrot/github-code
48882038e85b15fce2c1d691d7952cc7eb041fb3bfc7790f51a89974f06fc616
<?php require_once("./crud.php"); ?> <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = ""; $name = $email = $gender = $comment = $website = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else ...
PHP
account/insert.php
Vaibhav95g/Bitsmun-user-management-portal
mit
1,621
62
codeparrot/github-code
96b272326e9546909c980f41860f45d3300d3c896a4ee2ff60d9ca5503550a8c
import operator import os import abc import functools import pyparsing as pp from mitmproxy.utils import strutils from mitmproxy.utils import human import typing # noqa from . import generators from . import exceptions class Settings: def __init__( self, is_client=False, staticdir=None, ...
Python
pathod/language/base.py
MatthewShao/mitmproxy
mit
13,851
541
codeparrot/github-code
02e8b791dabf653f16b4ac61fc4a970374f7dbfe9eaf3e63293ac2b3b80893c5
/* ========================================================================== Author's custom styles. This file should be the last loaded style. ========================================================================== */ @import "fonts.css"; @import "keyframes.css"; body { padding-bottom: 25px; paddin...
CSS
rfdocs/static/css/main/main.css
stasiek/rfdocs
mit
19,767
726
codeparrot/github-code