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
8fe0ef8538b0e77320c3d24de854a15a23cad60421fd921205f0687fefa00f73
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as Common from '../../core/common/common.js'; import * as Host from '../../core/host/host.js'; import * as i18n from '../../core/i18n/i18n.js'; i...
TypeScript
front_end/panels/issues/IssueView.ts
ChromeDevTools/devtools-frontend
bsd-3-clause
18,393
468
codeparrot/github-code
a2495ed26cd63a15e4162fdf452d03b2b69ea3937b27ce8678beeef06a338ecd
""" TutorialWorld - basic objects - Griatch 2011 This module holds all "dead" object definitions for the tutorial world. Object-commands and -cmdsets are also defined here, together with the object. Objects: TutorialObject Readable Climbable Obelisk LightSource CrumblingWall Weapon WeaponRack """ from future.utils...
Python
evennia/contrib/tutorial_world/objects.py
ergodicbreak/evennia
bsd-3-clause
40,255
1,068
codeparrot/github-code
431a4e5d2aca0e31033a3be7875b020bf16af93ee9371200a175c00b91b5ee57
#ifdef _MSC_VER # define _CRT_SECURE_NO_WARNINGS #endif #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <limits.h> #ifndef PATH_MAX # define PATH_MAX 260 #endif #define SEARCH_PATHS_MAX 64 #define FILE_PATHS_MAX 1024 static int fline(char **line, size_t *n, FILE *fp) { i...
C
third_party/incbin/incbin.c
coreboot/chrome-ec
bsd-3-clause
9,499
290
codeparrot/github-code
43811866855a82d150686e5fd355b58d35dede7c29c9e6c17f274158af0fe413
// 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 <string> #include "base/bind.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" #inc...
C++
content/browser/renderer_host/media/audio_input_device_manager_unittest.cc
zcbenz/cefode-chromium
bsd-3-clause
16,161
479
codeparrot/github-code
ce715c557745e732c65f6c5efb434794aa8369dce2a3f8debe9f9c1e1e0878f0
{-# LANGUAGE TemplateHaskell, ScopedTypeVariables, TypeOperators, GADTs, EmptyDataDecls, PatternGuards #-} module Reflex.Dynamic.TH (qDyn, unqDyn, mkDyn) where import Reflex.Dynamic import Language.Haskell.TH import qualified Language.Haskell.TH.Syntax as TH import Language.Haskell.TH.Quote import Data.Data import Co...
Haskell
src/Reflex/Dynamic/TH.hs
k0001/reflex
bsd-3-clause
3,156
68
codeparrot/github-code
a11fcaa091657eed0a9fe4442603b5ad2d4482cb488f05168801e71e36943acb
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include "base/command_line.h" #include "base/files/file_util.h" #include "base/path_service.h" #include "chrome/browser/extensions/...
C++
chrome/browser/extensions/chrome_content_verifier_unittest.cc
scheib/chromium
bsd-3-clause
9,177
223
codeparrot/github-code
55cd21f8bf403ba4f9ab856076b6410567725671b4faba5c4fb9df36173703d1
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
C++
third_party/WebKit/Source/core/html/shadow/DateTimeEditElement.cpp
Workday/OpenFrame
bsd-3-clause
31,792
822
codeparrot/github-code
e6492e2ba34ba19432c5ebecca28c4d1b6d4256234f8b6161b0d05f0acd14057
/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_GraphicsPipelineDesc_DEFINED #define skgpu_GraphicsPipelineDesc_DEFINED #include "include/core/SkTypes.h" #include "experimental/graphite/src/Attribute.h" #incl...
C
experimental/graphite/src/GraphicsPipelineDesc.h
google/skia
bsd-3-clause
3,243
89
codeparrot/github-code
7d6e9ded8f9da2bfa32f9decce78a74d694a1657ae47d24efd4ed9d9b1f907ce
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_52b.c Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-52b.tmpl.c */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: console R...
C
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s04/CWE134_Uncontrolled_Format_String__wchar_t_console_vprintf_52b.c
JianpingZeng/xcc
bsd-3-clause
1,836
56
codeparrot/github-code
7a4c339eaad3039e29de781c1f6bfc2529a2c3a8ae822690b4bb4648a4509b67
# -*- coding: utf-8 -*- class ResourceOptions(object): """ A configuration class for ``Resource``. Provides sane defaults and the logic needed to augment these settings with the internal ``class Meta`` used on ``Resource`` subclasses. """ allowed_methods = ['get', 'post', 'put', 'delete', 'pat...
Python
sitetools/coddy_api/api_resource.py
codeboy/coddy-sitetools
bsd-3-clause
1,729
59
codeparrot/github-code
e9a6130664e7894a2c6c8081f3de78e53b88af16de2bcab085e1f798227ae589
from rest_framework.exceptions import MethodNotAllowed from rest_framework.permissions import SAFE_METHODS, BasePermission from olympia.amo import permissions from olympia.access import acl # Most of these classes come from zamboni, check out # https://github.com/mozilla/zamboni/blob/master/mkt/api/permissions.py fo...
Python
src/olympia/api/permissions.py
kumar303/addons-server
bsd-3-clause
10,291
300
codeparrot/github-code
06d32be8d4d6f39693b0f0004526c1b18862ff8b97a6de3ce8c9701b4454a162
using System; using System.Diagnostics; using System.Linq; using FluentNHibernate.Mapping; using FluentNHibernate.MappingModel.Output; using Machine.Specifications; using Machine.Specifications.Model; using FluentAssertions; namespace FluentNHibernate.Specs.FluentInterface { public class when_generatin...
C#
src/FluentNHibernate.Specs/FluentInterface/ExternalComponentOutputSpecs.cs
HermanSchoenfeld/fluent-nhibernate
bsd-3-clause
2,523
74
codeparrot/github-code
1c32cef62d11cc4cccbba4dc363e3792184b8b2ba1772f9bc9f2abe56cda5832
/* * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. * Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com> * * 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 co...
C++
third_party/WebKit/Source/wtf/text/TextCodec.cpp
Workday/OpenFrame
bsd-3-clause
2,292
58
codeparrot/github-code
3f6427533a2ae09eceb621ace2e6e55192a541529492b760446e516c1da82156
package com.fsck.k9.mailstore; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import java.util.TimeZone; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import com.fsck.k9.activity.K9ActivityCommon; import com...
Java
k9mail/src/androidTest/java/com/fsck/k9/mailstore/MessageViewInfoExtractorTest.java
vasyl-khomko/k-9
bsd-3-clause
8,785
219
codeparrot/github-code
24fd8adac818d5f41460bcdfe8ee65583cd2fdb3b8a156ed8b9af7a822ca7249
/* * Created on 14.07.2004 */ package net.sourceforge.pmd.dfa.variableaccess; /** * @author raik */ public class VariableAccess { public static final int DEFINITION = 0; public static final int REFERENCING = 1; public static final int UNDEFINITION = 2; private int accessType; private String v...
Java
src/net/sourceforge/pmd/dfa/variableaccess/VariableAccess.java
pscadiz/pmd-4.2.6-gds
bsd-3-clause
1,458
58
codeparrot/github-code
596a16f9957a0f028a10ee12d1a7bea0d592d3cfaaf76eb830a02fc2bde4aa21
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>Description of CORE_leadingedges</title> <meta name="keywords" content="CORE_leadingedges"> <meta name="description" content="CORE_LEADINGEDGES Core computational routin...
HTML
CoreFunctions/chronux/documentation/chronux_2_00/spikesort/utility/datatools/private/CORE_leadingedges.html
arengela/AngelaUCSFCodeAll
bsd-3-clause
5,390
89
codeparrot/github-code
2ac93b3e4917ffcc19fefe63ab6a0d2bde8eaaa0feb2a90460a07bb809f7f4f1
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <openssl/objects.h> #include <openssl/comp.h> #include <openssl/err.h> COMP_METHOD *COMP_zlib(void); static COMP_METHOD zlib_method_nozlib = { NID_undef, "(undef)", NULL, NULL, NULL, NULL, NULL, NULL, }; #ifndef ZLIB ...
C
src/C/openssl/openssl-0.9.8zh/crypto/comp/c_zlib.c
GaloisInc/hacrypto
bsd-3-clause
21,572
762
codeparrot/github-code
0fe743d9bff058f82b4fc129d46489627eaafa08b0c7e74d8c615c66da3d4674
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfbase/_fontdata.py #$Header $ __version__=''' $Id: _fontdata.py 3052 2007-03-07 14:04:49Z rgbecker $ ''' __doc__=""" database of font related thi...
Python
donomo_archive/lib/reportlab/pdfbase/_fontdata.py
alexissmirnov/donomo
bsd-3-clause
61,719
2,609
codeparrot/github-code
9b0af6deb2b396bb2a901e02d69bc375c7de27e38ec8b865b34189d429d98fab
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ #pragma once #include <set> #include <string> #include...
C
chrome/common/child_process_logging.h
gavinp/chromium
bsd-3-clause
4,908
156
codeparrot/github-code
8080ad14e92fdc5ce5952836e282856d7442639a948e0e6e715857878cc3f787
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DLP_DLP_CONTENT_RESTRICTION_SET_H_ #define CHROME_BROWSER_CHROMEOS_POLICY_DLP_DLP_CONTENT_RESTRICTION_SET_H_ #incl...
C
chrome/browser/chromeos/policy/dlp/dlp_content_restriction_set.h
nwjs/chromium.src
bsd-3-clause
4,039
112
codeparrot/github-code
2361cf171b3cbcab5fdb51de3f67dcc20171c066bf1229e4061515de3b460970
import logging from django.core.urlresolvers import reverse from django.utils.safestring import mark_safe from corehq.apps.adm.dispatcher import ADMSectionDispatcher from corehq.apps.adm.models import REPORT_SECTION_OPTIONS, ADMReport from corehq.apps.reports.datatables import DataTablesHeader, DataTablesColumn, DTSort...
Python
corehq/apps/adm/reports/__init__.py
SEL-Columbia/commcare-hq
bsd-3-clause
6,857
174
codeparrot/github-code
8e3ec2d5c26263eddfea81e08f03cdf1b35209852e9b64cbc59d021f6b89fd8d
//##################################################################### // Copyright 2005, Andrew Selle. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### #ifndef...
C
pkgs/apps/facesim/src/Public_Library/Thread_Utilities/THREAD_CONDITION.h
anasazi/POP-REU-Project
bsd-3-clause
960
45
codeparrot/github-code
d9904d49d2c674edb7196cf4b33681f7e657789c3e8f3bb091fdd8262750eb6c
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The FEniCS Project</title> <link rel="stylesh...
HTML
doc/pub/admon/sphinx-classy/admon.html
sjsrey/doconce
bsd-3-clause
6,842
165
codeparrot/github-code
8d6ae8b04e6f1d499c889f61c42f43eb7231f860f5afc0dfc4efd2b466dd75b6
/* $Id: stp2024.c,v 1.3 2009/11/08 16:21:32 fredette Exp $ */ /* ic/stp2024.c - STP2024 (Aurora Personality Chip DMA) implementation: */ /* * Copyright (c) 2009 Matt Fredette * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
C
ic/stp2024.c
DavidGriffith/tme
bsd-3-clause
33,557
1,095
codeparrot/github-code
d68d3319daa83fa197f769c384aee0ca48c8592d696544c65b40a3a0a5f1e61a
import React, { Component } from 'react'; import Steps from './widgets/steps/steps'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; const styles = { container: { display: 'flex', justifyContent: 'space-around', flexDirection: 'column', marginBottom: '1vh', ...
JavaScript
frontend/src/screens/qa/qa.js
desihub/qlf
bsd-3-clause
2,995
127
codeparrot/github-code
0718d6a61db46f40b231869f69779cc7900ad8dc3a34f34a016926dc6f0323a2
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE194_Unexpected_Sign_Extension__listen_socket_malloc_68a.c Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml Template File: sources-sink-68a.tmpl.c */ /* * @description * CWE: 194 Unexpected Sign Extension * BadSource: listen_socket Read data us...
C
xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s02/CWE194_Unexpected_Sign_Extension__listen_socket_malloc_68a.c
JianpingZeng/xcc
bsd-3-clause
5,707
190
codeparrot/github-code
c8c528f339d0618f34dc03d2ca990e0914c764fc3ae4ec9d490909508a91b4a1
/*========================================================================= Program: Visualization Toolkit Module: vtkArrayCoordinates.h ------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with S...
C
graphics/VTK-7.0.0/Common/Core/vtkArrayCoordinates.h
hlzz/dotfiles
bsd-3-clause
3,818
116
codeparrot/github-code
855b3e6917f39cdf449ffa90103043f24b706048351ce8c8ffac51bd00c671e1
package uk.org.ponder.stringutil; /** This abstract class forms part of the fast and better instrumented * uk.org.ponder.streamutil.DirectInputStreamReader architecture. It is * intended as a base class for specific byte to character decoders * (such as ByteToCharUTF8), and abstracts away the non-stream and * no...
Java
rsf-core/ponderutilcore/src/uk/org/ponder/stringutil/ByteToCharConverter.java
ern/rsf
bsd-3-clause
7,013
197
codeparrot/github-code
4615402dbe23d2028a7561d942244ae752511df5ce55f6e43b0bbad9dec2b71b
/* * Copyright (C) 2010 Google Inc. All rights reserved. * Copyright (C) 2011 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must reta...
C
sky/engine/platform/network/HTTPRequest.h
collinjackson/mojo
bsd-3-clause
3,721
83
codeparrot/github-code
97bae71a00689ba405de07c2aa5e98c55031c9c9435d566002ecbd2ac742be1d
/* * Copyright (c) 2016 Goldman Sachs. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v. 1.0 which accompany this distribution. * The Eclipse Public License is available at http://www.ecli...
Java
eclipse-collections/src/main/java/org/eclipse/collections/impl/block/procedure/CaseProcedure.java
bhav0904/eclipse-collections
bsd-3-clause
2,629
79
codeparrot/github-code
a3a8af46feac325efe3a6b5df292ca0b04d66067f85d0353b64977b15ff4bf8f
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.firebears.subsystems; import edu.wpi.first.wpilibj.CANJaguar; import edu.wpi.first.wpilibj.DigitalInput; import edu.wpi.first.wpilibj.can.CANTimeoutException; import edu.wpi.first.wpilibj.command.Su...
Java
src/org/firebears/subsystems/Collector.java
firebears-2014/FB2012
bsd-3-clause
2,307
81
codeparrot/github-code
34bfe7b5671681ce4168962d4021df6b80ae9a4c23672758f63c82f17541905a
-- Command-line based Flapjax compiler. Run without any options for usage -- information. module Main where import Control.Monad import qualified Data.List as L import System.Exit import System.IO import System.Console.GetOpt import System.Environment hiding (withArgs) import System.Directory import BrownPLT.Html (re...
Haskell
flapjax/trunk/compiler/src/Fxc.hs
ducis/flapjax-fixed
bsd-3-clause
4,654
153
codeparrot/github-code
df2f902e8cd1b93176b99652f38e693703e3aed318bb08f8634f1596cedb6df5
// Copyright (c) 2009 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/process_singleton.h" #include "app/l10n_util.h" #include "app/win_util.h" #include "base/base_paths.h" #include "base/comman...
C++
chrome/browser/process_singleton_win.cc
amyvmiwei/chromium
bsd-3-clause
9,752
269
codeparrot/github-code
ffabb7fd6a72f4d95f4b9d773dc962f840a868aba5a41a2fbb495b7200eb162d
/****************************************************** * copyright 2011, 2012, 2013 AbdAllah Aly Saad , aaly90[@]gmail.com * Part of Mesklinux Installer * See LICENSE file for more info ******************************************************/ #ifndef LICENSEPAGE_H #define LICENSEPAGE_H #include <MPF/Pages/pageBase.hp...
C++
mesk-installer/Pages/licensePage.hpp
aaly/Mesk-Installer
bsd-3-clause
667
31
codeparrot/github-code
5d78becca95723ed9eb09a85ce286ff8da98b30faf9873f15536e4343e955588
/** * SAHARA Scheduling Server * * Schedules and assigns local laboratory rigs. * * @license See LICENSE in the top level directory for complete license terms. * * Copyright (c) 2009, University of Technology, Sydney * All rights reserved. * * Redistribution and use in source and binary forms, with ...
Java
Reports/src/au/edu/uts/eng/remotelabs/schedserver/reports/ReportsActivator.java
sahara-labs/scheduling-server
bsd-3-clause
3,532
81
codeparrot/github-code
41725cba39808df044b60bd8cc64ecb6f1a9b85dc985570a58ae1d4ccf89b6af
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from zungqr_gpu.cpp normal z -> s, Fri Jan 30 19:00:15 2015 @author Stan Tomov @author Mark Gates */ #include "common_...
C++
src/sorgqr_gpu.cpp
shengren/magma-1.6.1
bsd-3-clause
6,425
217
codeparrot/github-code
074e9120c864dc25c45e7fd59570d29649ae34fd9b8e14372b651da616f9aaf6
/* Copyright 2013 Jesse 'Jeaye' Wilkerson See licensing in LICENSE file, or at: http://www.opensource.org/licenses/BSD-3-Clause File: client/state/game/bsp_renderer.rs Author: Jesse 'Jeaye' Wilkerson Description: A client-only state that depends on the shared game state. This st...
Rust
src/client/state/game/bsp_renderer.rs
jeaye/q3
bsd-3-clause
4,184
166
codeparrot/github-code
8ec4f50c56598eff18cf4dd97bedb29704506dd654ee4c9bddbca7e09a853172
#!/usr/bin/env python """ md5s3stash content addressable storage in AWS S3 """ from __future__ import unicode_literals import sys import os import argparse import tempfile import urllib2 import urllib import urlparse import base64 import logging import hashlib import basin import boto import magic from PIL import I...
Python
md5s3stash.py
tingletech/md5s3stash
bsd-3-clause
13,467
373
codeparrot/github-code
6e1a28aa91415716f6e892bf84cab2336922758a8e3cf5ff880d529d72706262
"""Jinja2's i18n functionality is not exactly the same as Django's. In particular, the tags names and their syntax are different: 1. The Django ``trans`` tag is replaced by a _() global. 2. The Django ``blocktrans`` tag is called ``trans``. (1) isn't an issue, since the whole ``makemessages`` process is based on ...
Python
coffin/management/commands/makemessages.py
akx/coffin
bsd-3-clause
2,126
51
codeparrot/github-code
b23a78c77b2b51677c2e624cc93033828fcbfa7e2ae90fedd306052980a6e8f2
#ifdef HAVE_CONFIG_H #include "../../ext_config.h" #endif #include <php.h> #include "../../php_ext.h" #include "../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/object.h" #include "kernel/memory.h" #include "k...
C
ext/phalcon/logger/multiple.zep.c
Zaszczyk/cphalcon
bsd-3-clause
12,777
506
codeparrot/github-code
13d515bf6bb923b28477e7220fc8a934cb5269b66b008c478686dcb5af6feef7
// // dblookup.c // // (c) 2002 Martin Fierz // // version 2.0 for single n-piece databases // // contains all the necessary code to look up database positions, except for boolean // // todo: // -> read in more than one block per disk access // // // // some notes on this: endgame databases are huge, ...
C++
NE/HyperNEAT/cake_fixeddepth/dblookup.cpp
mhauskn/HyperNEAT
bsd-3-clause
39,124
1,476
codeparrot/github-code
018b3adf00a139c0a27b50578cf4322f2365dcf4133f16ecd16b9f366b3312d7
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>FSF.MkLink</title> <meta http-equiv="Content-Type" Content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="../../styles/styles.css"> <script language="javascript" src='../links.js' type="text/javascript"></scrip...
HTML
enc/enc_eng/meta/fsf/mklink.html
FarGroup/FarManager
bsd-3-clause
4,817
145
codeparrot/github-code
8210ba2b89c4809e84bdc7003db1cb6c2be6f785ba235fa38cf7400f99e1a67b
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SIGNIN_PUBLIC_IDENTITY_MANAGER_UBERTOKEN_FETCHER_H_ #define COMPONENTS_SIGNIN_PUBLIC_IDENTITY_MANAGER_UBERTOKEN_FETCHER_H_ #include <m...
C
components/signin/public/identity_manager/ubertoken_fetcher.h
scheib/chromium
bsd-3-clause
1,092
36
codeparrot/github-code
43ebfe48884dfc95dd6ba4a1e7027d0c8ed3e8349b1f79068ad75eac1dff2139
// Copyright 2021 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. 'use strict'; const {isLitHtmlTemplateCall} = require('./utils.js'); module.exports = { meta: { type: 'problem', docs: { description: 'Ch...
JavaScript
scripts/eslint_rules/lib/ban_self_closing_custom_element_tagnames.js
ChromeDevTools/devtools-frontend
bsd-3-clause
1,026
38
codeparrot/github-code
66e31f66c73654cd52141b8e8f119ad2a1925f3f03f80deba62b44b85e46c019
// 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 "components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.h" #include "base/bind.h" #include "base/lazy_instance...
C++
components/data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.cc
hefen1/chromium
bsd-3-clause
12,204
320
codeparrot/github-code
cce615c7bdbc41db6c0145b2684acec5fa1934f99c778ad0c1a219888d24f04c
using System; using System.Web; using System.Web.Mvc; using System.Web.Routing; using Orchard.Alias; using Orchard.Autoroute.Models; using Orchard.ContentManagement; using Orchard.CulturePicker.Services; using Orchard.Environment.Extensions; using Orchard.Localization.Services; using Orchard.Logging; using ...
C#
Modules/Orchard.CulturePicker/Controllers/LocalizableHomeController.cs
ierton/orchard
bsd-3-clause
3,092
74
codeparrot/github-code
6e697af94067a6ead97fb50809b2dead02d58315ca82c8bc5ed91ceffb6d87df
/** * 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
packager/src/Server/index.js
Maxwell2022/react-native
bsd-3-clause
29,966
939
codeparrot/github-code
76935354cab5886498a41902c9ad9dec1d6c35a1936b748db90f9a1a14f76547
<?php /** * Отображение для index: * * @category YupeView * @package yupe * @author Yupe Team <team@yupe.ru> * @license https://github.com/yupe/yupe/blob/master/LICENSE BSD * @link http://yupe.ru **/ $this->breadcrumbs = array( Yii::t('MailModule.mail', 'Mail events') => array('index'), Yii::t('...
PHP
protected/modules/mail/views/eventBackend/index.php
Freedom777/yupelast
bsd-3-clause
6,291
176
codeparrot/github-code
538be5d5a1bf5bcbb4ff66e5aae6b99e9f3ac06e3edb52f9723ba9efd703dd6c
import inspect from functools import partial try: from joblib.externals.cloudpickle import dumps, loads cloudpickle = True except ImportError: cloudpickle = False WRAP_CACHE = dict() class CloudpickledObjectWrapper(object): def __init__(self, obj, keep_wrapper=False): self._obj = obj ...
Python
joblib/externals/loky/cloudpickle_wrapper.py
lesteve/joblib
bsd-3-clause
3,964
114
codeparrot/github-code
06be80414e5c1319a190030a4429f9e415503cc28e1dd6a0ae53fc1c7e9dcfb3
{% from 'conversions.cpp' import declare_enum_validation_variable, v8_value_to_local_cpp_value %} {##############################################################################} {% macro attribute_getter(attribute, world_suffix) %} {% filter conditional(attribute.conditional_string) %} static void {{attribute.name}}...
C++
Source/bindings/templates/attributes.cpp
prepare/Blink_only_permissive_lic_files
bsd-3-clause
23,381
528
codeparrot/github-code
666bfa8c8afd11d80f70ee9ce49ca3b661079cd04758a22eb7ef27136d6921b8
//===- MergeFunctions.cpp - Merge identical functions ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C++
third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/MergeFunctions.cpp
endlessm/chromium-browser
bsd-3-clause
33,168
897
codeparrot/github-code
b21711badd38005fbbf99cfeb281308ccb21f8d2af842bf24ca609734b817086
// 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 "content/common/gpu/gpu_command_buffer_stub.h" #include "content/common/gpu/gpu_memory_allocation.h" #include "content/common/gpu/gpu_memory_...
C++
content/common/gpu/gpu_memory_manager_unittest.cc
gavinp/chromium
bsd-3-clause
20,319
487
codeparrot/github-code
d496dc794f679c198b3c35aca3e6f2a308fd73bcf117f58c5d0d135d70296d29
// Filename: eventStorePandaNode.h // Created by: drose (13Sep06) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You...
C
include/eventStorePandaNode.h
toontownfunserver/Panda3D-1.9.0
bsd-3-clause
1,750
61
codeparrot/github-code
2af02ab1f242e04bf0638ab30139d25af36d059d5a23974a227050e6e0714ebd
/* Alphora Dataphor © Copyright 2000-2009 Alphora This file is licensed under a modified BSD-license which can be found here: http://dataphor.org/dataphor_license.txt */ //#define USEPROCESSDISPOSED // Determines whether or not the plan and program listen to the process disposed event using System; using...
C#
Dataphor/DAE/Runtime/Program.cs
JClingo/gitbook
bsd-3-clause
13,472
496
codeparrot/github-code
60d9f744fa1d9ca73bdc53ea93ac41aee355e5b10b356f9614c14b91987569dd
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_listen_socket_ofstream_16.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-16.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: listen_socket Read data...
C++
xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_listen_socket_ofstream_16.cpp
JianpingZeng/xcc
bsd-3-clause
5,916
211
codeparrot/github-code
633093c8f736edf27985264242dcd7fa329d2ac7022dc35231e6bb35e3a33d27
/**************************************************************************** * * Copyright (c) 2014-2019 PX4 Development Team. 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. Red...
C++
src/drivers/uavcan/sensors/gnss.hpp
PX4/Firmware
bsd-3-clause
5,157
136
codeparrot/github-code
946b43f5a8d5deb602c9b38d8f3f4bdfd12e120be197c0514e9d9a4c20668687
#!/usr/bin/python # -*- coding: utf-8 -*- # Simple script which takes a file with one packet latency (expressed as a # signed integer) per line and plots a trivial histogram. # Copyright (c) 2015, Malte Schwarzkopf # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
Python
figure11/plot_throughput_factor_experiment.py
camsas/qjump-nsdi15-plotting
bsd-3-clause
8,217
210
codeparrot/github-code
f8396f386b3297b55e07948adf379f90332e7757f59bd77f71f534a6c15dbe7d
//******************************************************************************** // Copyright (c) 2007-2014 Intel Corporation. All rights reserved. ** // ** // Redistribution and use in source and binary forms, with or without ...
C++
samples/nqueens/nqueens/nqueens.cpp
fschlimb/icnc
bsd-3-clause
8,161
221
codeparrot/github-code
6ee8ca5fc59a695af455a49cbce0c6f5bc16652bbb73a86197493b1cd3b89c12
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_rand_add_66b.c Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-66b.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand(), which may be zero ...
C
xcc/test/juliet/testcases/CWE190_Integer_Overflow/s04/CWE190_Integer_Overflow__int_rand_add_66b.c
JianpingZeng/xcc
bsd-3-clause
1,820
65
codeparrot/github-code
376b188abb092993d38678339e6886ae05ef159aaf0c54a550bbc34382baa107
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE400_Resource_Exhaustion__rand_sleep_82.h Label Definition File: CWE400_Resource_Exhaustion.label.xml Template File: sources-sinks-82.tmpl.h */ /* * @description * CWE: 400 Resource Exhaustion * BadSource: rand Set data to result of rand(), which may be zero ...
C
xcc/test/juliet/testcases/CWE400_Resource_Exhaustion/s02/CWE400_Resource_Exhaustion__rand_sleep_82.h
JianpingZeng/xcc
bsd-3-clause
1,480
57
codeparrot/github-code
9501cd15896efec5647d1745d83f6e45e0050bd17d18d7542d31742c18b4566f
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
C
sample_consensus/include/pcl/sample_consensus/sac.h
daviddoria/PCLMirror
bsd-3-clause
8,716
227
codeparrot/github-code
4b1c0186d653bec359b8ddcedc0a39c01d500ba13a5a03d4a847ec29d2b33e1c
#!/bin/bash # If release a new version, modify these infos VERSION_INFO="master" VERSION_ADDR="https://github.com/baidu/tera" BUILD_DATE_TIME=`date` BUILD_HOSTNAME=`hostname` BUILD_GCC_VERSION=`gcc --version | head -n 1` gen_info_template_header () { echo "#include <iostream>" echo "#include \"version.h\"" ...
Shell
build_version.sh
caijieming-baidu/tera
bsd-3-clause
2,243
63
codeparrot/github-code
a78c5c4f3e57afb3620e7997fffdf8030a38c8fd71758ee8364b17de56b8b421
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_array_int_declare_44.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete_array.label.xml Template File: sources-sink-44.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: declare Data...
C++
xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s01/CWE590_Free_Memory_Not_on_Heap__delete_array_int_declare_44.cpp
JianpingZeng/xcc
bsd-3-clause
3,088
123
codeparrot/github-code
834c3c7c6f5704dd9ac85cbb5773eed706b456a97659d3e76a1f834099aaeab5
{-# LANGUAGE CPP #-} -- | -- Module : Network.TLS.Backend -- License : BSD-style -- Maintainer : Vincent Hanquez <vincent@snarc.org> -- Stability : experimental -- Portability : unknown -- -- A Backend represents a unified way to do IO on different -- types without burdening our calling API with multiple --...
Haskell
core/Network/TLS/Backend.hs
beni55/hs-tls
bsd-3-clause
3,057
89
codeparrot/github-code
cd2eff1a33c2d4fc2878a46e29e427cd773412d7f4ea22d9cb5d5edd0c71bf1f
/*========================================================================= Program: Visualization Toolkit Module: vtkProgrammableSource.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. T...
C
graphics/VTK-7.0.0/Filters/Sources/vtkProgrammableSource.h
hlzz/dotfiles
bsd-3-clause
4,969
123
codeparrot/github-code
364704aadb2693f5f017dbdfe80c25d233a9ac3c920cbb95be064b5cd8b73047
'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_wae-ch.js
mudunuriRaju/tlr-live
bsd-3-clause
4,235
152
codeparrot/github-code
c9a93431621480a6bc426eb6e95df4fc113b96441c767f71b44c1486f2c0d667
// 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/printing/print_job_worker.h" #include <memory> #include <string> #include <utility> #include "base/bind.h" #include "base/c...
C++
chrome/browser/printing/print_job_worker.cc
scheib/chromium
bsd-3-clause
21,004
619
codeparrot/github-code
e86530b267fecddaa4505fc05f5e12f5bc593e2dec897dc36afeb830eae4653c
C C C SUBROUTINE FIRSTP I (OUTLEV,UUNITS,DELT60,GNUM,GSUB,GNVALS, I NUM,SUBBAS,NVALS,CNUM,BNUM,LSNO,MESSU, I MSGFL, M WCOUNT, O GPARM,SPARM,UPARM,LPARM,APARM) C C + + + PURPOSE + + + C ...
FORTRAN
src/hspf13/hperagut.f
kbrannan/PyHSPF
bsd-3-clause
62,141
2,157
codeparrot/github-code
562e7e1a95789e2783c42d83ff39c71d65fb386efe8eed778a83cece8074d4ca
<?php namespace lukisongroup\efenbi\rasasayang\controllers; use Yii; use lukisongroup\efenbi\rasasayang\models\TransaksiNotify; use lukisongroup\efenbi\rasasayang\models\TransaksiNotifySearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * TransaksiNotifyController impl...
PHP
lukisongroup/efenbi/rasasayang/controllers/TransaksiNotifyController.php
adem-team/advanced
bsd-3-clause
3,330
125
codeparrot/github-code
a593614704bc5edbdc8dea54f2540edb993b4ea58a47310c35875e693af52990
<?php defined('SYSPATH') or die('No direct script access.'); class Formo_Core_Driver_Checkbox extends Formo_Driver { public static function can_be_empty() { return TRUE; } public static function get_attr( array $array) { $field = $array['field']; $array = array ( 'type' => 'checkbox', 'value' => ...
PHP
modules_bak/formo/classes/Formo/Core/Driver/Checkbox.php
yorg76/test
bsd-3-clause
826
53
codeparrot/github-code
e384821e21f0326d77368343ed5e0ba7221224bdfaf5ce628b57ef44742991f3
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import optparse import os import sys from telemetry.core import util from telemetry.results import buildbot_output_formatter from telemetry.results import c...
Python
tools/telemetry/telemetry/results/results_options.py
hefen1/chromium
bsd-3-clause
7,550
172
codeparrot/github-code
9d594ce258f9be5a48be079767cd9bb31dedf3c2b7c9ecb212201946cf380a99
// Copyright (c) 2013 The Chromium Embedded Framework Authors. // Portions (c) 2011 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 "libcef/browser/chrome_browser_process_stub.h" #include "libcef/browser/context...
C++
libcef/browser/chrome_browser_process_stub.cc
zmike/cef-rebase
bsd-3-clause
6,485
286
codeparrot/github-code
cc9125b515e4591fc239a51658152cdf5c573bc3a38ba512dabfcade5b35a5ca
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__wchar_t_file_fopen_42.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-42.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: file Read input from a file * Goo...
C++
xcc/test/juliet/testcases/CWE36_Absolute_Path_Traversal/s04/CWE36_Absolute_Path_Traversal__wchar_t_file_fopen_42.cpp
JianpingZeng/xcc
bsd-3-clause
3,784
153
codeparrot/github-code
584d4fc87fcaa283cdafc953bb142f2b2c0bc26eedfa3ca7af4ae7f6596755c3
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ //<script> $(document).ready(function() { var curSource = "/alliance/dutylist/calendarsearch"; $('#dutylsitCale...
JavaScript
web/js/modules/alliance/dutylist/calendar.js
m-ishchenko/AllianceCG
bsd-3-clause
8,041
210
codeparrot/github-code
a06fc3760ca1f5e48746d85de06b87e6d69623fb95ddcd3c9dc549c4c514e0b3
/* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) >...
C
pluto_examples/gen_kernels/lbpar_3d25pt_var8_8_4_256/3d25pt_var.c
tareqmalas/girih
bsd-3-clause
5,815
225
codeparrot/github-code
1ec17cacb4c8c0f74ae96d7bc5076e07d2c104a4909778e70072cb3aa6ba7c91
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
Python
bokeh/colors/named.py
stonebig/bokeh
bsd-3-clause
13,025
199
codeparrot/github-code
450f1c4c6bc4d9b563b0a060a17bb3e42514ee19abee40301bb8647b5cdef58a
require 'java' java_import 'org.apollo.game.action.Action' java_import 'org.apollo.game.model.Animation' java_import 'org.apollo.game.model.Item' java_import 'org.apollo.game.model.inter.EnterAmountListener' java_import 'org.apollo.game.model.inter.dialogue.DialogueAdapter' GRINDING_ANIM = Animation.new(364) PESTLE_M...
Ruby
data/plugins/skill/herblore/ingredient.rb
LegendSky/apollo
isc
6,243
252
codeparrot/github-code
e6300b3bbc77889e1566f43c6bb84f3a503bf43142338b408f906ce9994bdd8d
/* * Defines the behaviour classes used for steering. * * Part of the Artificial Intelligence for Games system. * * Copyright (c) Ian Millington 2003-2006. All Rights Reserved. * * This software is distributed under licence. Use of this software * implies agreement with all terms and conditions of the a...
C++
src/steering.cpp
manoelrui19/aicore
mit
5,406
187
codeparrot/github-code
7459a1f819537f37fbaa351d940d0dab85ef5530dddc86a706399f706317613e
//! The Credentials Provider for an AWS Resource's IAM Role. use async_trait::async_trait; use hyper::Uri; use std::time::Duration; use crate::request::HttpClient; use crate::{ parse_credentials_from_aws_service, AwsCredentials, CredentialsError, ProvideAwsCredentials, }; const AWS_CREDENTIALS_PROVIDER_IP: &str ...
Rust
rusoto/credential/src/instance_metadata.rs
rusoto/rusoto
mit
4,101
135
codeparrot/github-code
a7d3a7c92def325eed9a3756b6ba9f0ddf2574511c9c480afb8ed88b8d3cf421
var mysql = require('mysql'); function mysqlConn(config,logger) { this.connectionPool = mysql.createPool(config); this.initialized = true; this.logger = logger; } mysqlConn.prototype = { /// if the raw connection is needed getConnection: function (callback) { if (!this.initialized) { ...
JavaScript
modules/mDAL/mysql/mysqlDAL.js
javuio/MySQLNodeBootstrapAngular
mit
5,076
158
codeparrot/github-code
9825d2e48b911f700ed1775a4931bfcd64bc15fd466a741c88f43e9c8427679b
'use strict'; define([ 'three', 'explorer', 'underscore' ], function( THREE, Explorer, _ ) { var mp3names = ['crystalCenter', 'cellCollision', 'atomCollision', 'popOutOfAtom', 'dollHolder', 'atomUnderDoll', 'navCube', 'dollArrived', 'leapGrab', 'leapNoGrab']; function Sound(animationMachine) { ...
JavaScript
scripts/sound.js
gvcm/CWAPP
mit
6,026
212
codeparrot/github-code
3f02f07e0f8789e01c27c300af5567fbdf04d9c3197e6f8943a769d07c410592
// 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.Runtime.InteropServices; internal static partial class Interop { internal static partial class Http { [DllImport(Libraries.H...
C#
src/Common/src/Interop/Unix/System.Net.Http.Native/Interop.Easy.cs
mellinoe/corefx
mit
8,446
214
codeparrot/github-code
a6fa953efedd6cee1c25a74f0d6fd2f19deb6e51664fb903dd585ba83c3f4629
/* * Copyright 2016 Federico Tomassetti * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
Java
java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/TryWithResourceContext.java
rpau/java-symbol-solver
mit
3,839
88
codeparrot/github-code
1d7e6acd2c066c4fd6a75f3f2fd90adde64e164f885be99897d82a7124d09edd
# -*- coding: utf-8 -*- # Natural Language Toolkit: Text Trees # # Copyright (C) 2001-2015 NLTK Project # Author: Edward Loper <edloper@gmail.com> # Steven Bird <stevenbird1@gmail.com> # Peter Ljunglöf <peter.ljunglof@gu.se> # Nathan Bodenstab <bodenstab@cslu.ogi.edu> (tree transforms) # URL: <h...
Python
model/lib/nltk/tree.py
nelango/ViralityAnalysis
mit
64,374
1,604
codeparrot/github-code
108b14fb144366feca8f8f305419a4870200b7c6ba5734715eb3d7f942f4c9b6
//===-- CPPTargetMachine.h - TargetMachine for the C++ backend --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
C
thirdparty/llvm/lib/Target/CppBackend/CPPTargetMachine.h
wrmsr/lljvm
mit
1,371
45
codeparrot/github-code
0c17f3d4b2e47f4c582dd2f90f8d60045166d0f752a4c063e792424d1e8d9976
using System.Linq; using NBitcoin; using Stratis.Bitcoin.Base; using Stratis.Bitcoin.Consensus; using Stratis.Bitcoin.Features.Consensus.CoinViews; using Stratis.Bitcoin.Features.MemoryPool; using Stratis.Bitcoin.Features.Wallet; using Stratis.Bitcoin.Features.Wallet.Interfaces; using Stratis.Bitcoin.Interfaces; name...
C#
src/Stratis.Bitcoin.IntegrationTests.Common/Extensions/FullNodeExtensions.cs
mikedennis/StratisBitcoinFullNode
mit
2,019
58
codeparrot/github-code
3c17f84d81b5cecc54dd2dde39e8ad579784fe84cf4db116e1ea9114b9619454
/*------------------------------------------------------------------------------ * test.cpp : for socket functions testing. * * author : Guangli Dong * * history : 2016/07/07 new * *----------------------------------------------------------------------------*/ #include <conio.h> #include "socket_lib.h" int...
C++
github/ScreenCapture-master/ScreenCapture/socket_lib-master/test.cpp
D4isy/ScreenCaptureNServer
mit
1,393
59
codeparrot/github-code
6951ef3950442532d6d88549371d1f686a56b616bf629db6c2eeb73491cc20e5
'use strict'; /* jshint -W030 */ var chai = require('chai') , expect = chai.expect , Support = require(__dirname + '/../support') , DataTypes = require(__dirname + '/../../../lib/data-types') , Sequelize = Support.Sequelize , dialect = Support.getTestDialect() , sinon = require('sinon'); describe(Support....
JavaScript
test/integration/hooks/hooks.test.js
topikachu/sequelize
mit
14,781
473
codeparrot/github-code
463ec16778df9a75f8570bf54055958745e08093dcfb3f80470b9051b67f8019
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flot Examples: Navigation</title> <link href="../examples.css" rel="stylesheet" type="text/css"> <style type="text/css"> ...
HTML
examples/navigateTouch/index.html
ni-kismet/engineering-flot
mit
5,945
184
codeparrot/github-code
7edf66c6c2f3aec014e4f1e9a3a7c9f04750f55fea1107e7a6ea9e82582caf34
const ts = require('typescript'); const utils = require('tsutils'); const Lint = require('tslint'); const ERROR_MESSAGE = 'A TODO may only appear in inline (//) style comments. ' + 'This is meant to prevent a TODO from being accidentally included in any public API docs.'; /** * Rule that walks through all co...
JavaScript
tools/tslint-rules/noExposedTodoRule.js
nkwood/material2
mit
1,173
37
codeparrot/github-code
324e78d6adbd94b7620598446a12bc54cb28ddd1de95ca4ad107e7946cfeb8c1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} module Yesod.WebSockets ( -- * Core API WebSocketsT , webSockets , webSocketsWith , webSocketsOptions , webSocketsOptionsWith , receiveData , receiveDataE , receiveDataMessageE , sendPing , sendPi...
Haskell
yesod-websockets/Yesod/WebSockets.hs
psibi/yesod
mit
8,878
280
codeparrot/github-code
12e488dab021c13d70f750a4d78234bc637e74f73802563c99cd2f145d2482e8
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="HeatMapSeries.cs" company="OxyPlot"> // Copyright (c) 2014 OxyPlot contributors // </copyright> // <summary> // HeatMapSeries Avalonia wrapper // </summary> // ---------------...
C#
Source/OxyPlot.Avalonia/Series/HeatMapSeries.cs
HermanEldering/oxyplot
mit
7,511
250
codeparrot/github-code
30001fb2c5f99ecb478888cbb6f9c1fa3ef397a6e32c787eb55a15849c736f1e
from collections import defaultdict import copy import datetime import json from appengine_fixture_loader.loader import load_fixture from google.appengine.ext import ndb from helpers.event_details_manipulator import EventDetailsManipulator from helpers.match_helper import MatchHelper from helpers.match_manipulator im...
Python
helpers/event_simulator.py
nwalters512/the-blue-alliance
mit
15,162
340
codeparrot/github-code
6dd3a11787c1fb7575b0d8a9ffcd5f1525606df652d12ab288745c441e29918c
--- layout: page --- <!-- Html Elements for Search --> <input type="text" id="search-input" placeholder="Enter keywords..." class="search-bar"> <br> <br> <ul id="results-container"></ul> <section> <!-- Script pointing to jekyll-search.js --> <script src="{{ site.baseurl }}/assets/js/simple-jekyll-search.min.j...
HTML
_layouts/search.html
hlthu/hlthu.github.io
mit
2,489
53
codeparrot/github-code
caf51979e56c290e06507b553e0ee08d233f8cbf3edf4f22f73f32ac2f3fc24b
# Copyright 2011 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
Python
v8-read-only/test/test262/testcfg.py
sirchristian/v8DOM.NET
mit
3,870
107
codeparrot/github-code
a44087fdb3365011f92bfc5725210310ad9f5cbfa0ecb9322054471ba7a93dbd
/* This utility processes the argument passed with the `lang` option in ember-cli, i.e. `ember (new||init||addon) app-name --lang=langArg` Execution Context (usage, input, output, error handling, etc.): - called directly by `init` IFF `--lang` flag is used in (new||init||addon) - receives single input: the argume...
JavaScript
lib/utilities/get-lang-arg.js
ember-cli/ember-cli
mit
10,052
270
codeparrot/github-code
ce9485ffacf9186bb0dd80b9edb4ac6de810320843ca8e1f095f48ec43413706
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "kernel.h" #include "checkpoints.h" #include "txdb-bdb.h"...
C++
src/txdb-bdb.cpp
ultracoindev/ultracoin
mit
16,544
443
codeparrot/github-code
ba289f9f768246675e30e2c1a2b72aac9a829db4b66f88ef7efa4f1d054b1d3d
#!/bin/sh # Copyright 2005-2013 Splunk, Inc. # # ...
Shell
files/ta/Splunk_TA_nix/bin/uptime.sh
tfhartmann/puppet-splunk
mit
3,039
60
codeparrot/github-code
d4c35d51151d4b0f77f32af0e400a422c7d818a93daf5daf5335829cf7932a97
var EPOCH = 1900; var PATTERN = /(\d+)[^\/|-]/g; function iskabisat(year) { if(year % 4 === 0){ if(year % 100 === 0 && year % 400 !== 0) return false; else return true; } return false; } /* * kabisats: * Calculating how many kabisats' years in time span between * given year and primor...
JavaScript
server/models/Calendar.js
kadekParwanta/BaleKulkul_Server
mit
2,055
88
codeparrot/github-code
120992cbbcac2a0627e515e0c880311e560ebab6ce6a88b170edd466e1b6938c
package flow.netbeans.markdown.csl; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; import javax.swing.ImageIcon; import org.netbeans.modules.csl.api.ElementHandle; import org.netbeans.modules.csl.api.ElementKind; import org.netbeans.modules.csl.api.HtmlFormatter...
Java
src/flow/netbeans/markdown/csl/MarkdownAbbreviationsRootItem.java
stengerh/flow-netbeans-markdown
mit
2,932
119
codeparrot/github-code