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
5110e9e94b20fd0c56c639393b321f6b9fcad467a9ee4bfde7c55448f4a3c32b
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
Java
api/src/com/cloud/api/response/SnapshotPolicyResponse.java
cinderella/incubator-cloudstack
apache-2.0
2,748
90
codeparrot/github-code
a5a9f7479a5f766037e2ade541c7acee946b49550fccde4723912e4392947d69
package water.api.schemas3; import hex.ModelBuilder; import water.api.API; import water.api.schemas3.KeyV3.ModelKeyV3; import water.api.schemas3.KeyV3.FrameKeyV3; /** * A Model schema contains all the pieces associated with a Model: * <p> * <ul> * <li> an instance of a ModelParameters schema containing the build ...
Java
h2o-core/src/main/java/water/api/schemas3/ModelSchemaBaseV3.java
spennihana/h2o-3
apache-2.0
2,214
60
codeparrot/github-code
08d9ca81219a75903ce47d879c569fb5017fb819958eea8317c720de0150c00f
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
C++
media/libmediaplayerservice/nuplayer/GenericSource.cpp
AndroidOpenSourceProject/platform_frameworks_av
apache-2.0
7,881
286
codeparrot/github-code
35b6e4484859b9fcdffe2c19a00cc9c1f343dc1908c5de74f02446f2280c4695
/* * Copyright 2019 ThoughtWorks, 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 agr...
Java
agent-common/src/main/java/com/thoughtworks/go/agent/common/AgentBootstrapperArgs.java
kierarad/gocd
apache-2.0
4,367
128
codeparrot/github-code
afc511c420f0c0cd91824bafd43357cf5f29d707fb64da53bb29c1bfad9a3af0
//***************************************************************************** // @@@ START COPYRIGHT @@@ // // 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 owne...
C
core/sql/sqlcomp/PrivMgrDefs.h
apache/incubator-trafodion
apache-2.0
6,940
234
codeparrot/github-code
dec2586f59b38594810864034287267141fd9c46010d9c3a17e6d2dcf53e3c28
/* * Copyright (c) 2016 Network New Technologies 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 appli...
Java
mask/src/main/java/com/networknt/mask/Mask.java
networknt/light-4j
apache-2.0
13,904
323
codeparrot/github-code
f2543058f77abc948aaa38fb61559bd6ded736246e7f1911923ae2bc89ee0c08
# Copyright (C) 2013-2016 DNAnexus, Inc. # # This file is part of dx-toolkit (DNAnexus platform client libraries). # # 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.a...
Python
src/python/dxpy/cli/workflow.py
johnwallace123/dx-toolkit
apache-2.0
11,696
280
codeparrot/github-code
6dcf52a124858d0def027aa0cca45be2f552cd1fbb39a98dbb36be60586c666b
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
mllib/src/test/scala/org/apache/spark/ml/clustering/BisectingKMeansSuite.scala
jianran/spark
apache-2.0
5,294
154
codeparrot/github-code
80a0aceeeb355046de4dd9af6cfbc835ca100bf643f04c7c63ce8065053ed339
package com.ctrip.xpipe.redis.core.meta; import com.ctrip.xpipe.redis.core.entity.KeeperMeta; import com.ctrip.xpipe.redis.core.entity.Redis; import com.ctrip.xpipe.redis.core.entity.RedisMeta; import com.ctrip.xpipe.utils.ObjectUtils; import com.ctrip.xpipe.utils.StringUtil; import java.util.List; /** * @author we...
Java
redis/redis-core/src/main/java/com/ctrip/xpipe/redis/core/meta/MetaUtils.java
Yiiinsh/x-pipe
apache-2.0
1,152
53
codeparrot/github-code
f10d03134f5faa513f66c9231c9a553406791565757e864157d98b60ae8d0b2b
/* * Copyright 2014 Higher Frequency Trading * * http://www.higherfrequencytrading.com * * 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 ...
Java
chronicle/src/test/java/net/openhft/chronicle/tcp/StatelessVanillaChronicleAppenderTest.java
fengshao0907/Chronicle-Queue
apache-2.0
12,403
398
codeparrot/github-code
c3c442acf9c2522719d7670aa5e6ec65ed927a66daff7385d1ff6374527c93d9
// @SOURCE:D:/git/trask/glowroot/agent-parent/plugins/play-plugin/tmp-router-files/conf/routes // @HASH:bf7129340517c7ffddb4d1f70c86ba09e64cd48e // @DATE:Sat Apr 09 17:19:53 PDT 2016 import play.core._ import play.core.Router._ import play.core.j._ import play.api.mvc._ import Router.queryString object Routes ext...
Scala
agent/plugins/play-plugin/src/test/app-2.1.x-scala/scala/routes_routing.scala
glowroot/glowroot
apache-2.0
3,869
100
codeparrot/github-code
69147e33a6dd83c05ac556b14ce76e73e5b6a5e5ae6ae963e20206b0f8829519
var UISliders = function () { "use strict"; //function to initiate jQRangeSlider var runRangeSliders = function () { //jQRangeSlider is highly dependant on CSS. Be sure to include one of the provided stylesheets. $("#slider_example_1").rangeSlider(); $("#slider_example_2").editRan...
JavaScript
public/assets/js/ui-sliders.js
sarankh80/restaurant_new
artistic-2.0
4,768
133
codeparrot/github-code
99956d0890c6ba4fcfa153cbb0723defca8f7989a195e0bea4a04463fbf14349
// Copyright (C) 2019 by Pedro Mendes, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and...
C++
copasi/xml/parser/SubstrateHandler.cpp
jonasfoe/COPASI
artistic-2.0
2,711
101
codeparrot/github-code
8ba3635e9d0ebcf8848895b243686220bdd47a770746836b7702e9bd4ab54879
/* * Copyright (c) 2016-present, Przemyslaw Skibinski, Yann Collet, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of th...
C
src/util.c
sergey-dryabzhinsky/python-zstd
bsd-2-clause
7,637
266
codeparrot/github-code
f146efe680fc9d8bc3d20580d5edd049764dfdfb2f8ab383157f975364ee1903
# watch.py # usage: watch.py [-h] [-c COUNT] [-i INTERVAL] [-d] command # # This script displays the output of a specified CLI command every n seconds # Example "run script watch.py "show port packet no-ref"" # # positional arguments: # command Command to iterate. Should be enclosed in quotes (i.e. # ...
Python
EXOS/Python/watch/watch.py
extremenetworks/xkit
bsd-2-clause
5,605
153
codeparrot/github-code
3cf58dd39a78791ffd073bf053b8c3ab32642d291ec7c542661d172c7ffb0bdd
package http import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "sort" "strings" "time" "github.com/ansel1/merry" "github.com/go-graphite/carbonapi/carbonapipb" "github.com/go-graphite/carbonapi/cmd/carbonapi/config" "github.com/go-graphite/carbonapi/date" "github.com/go-graphite/carbonapi/int...
GO
cmd/carbonapi/http/find_handlers.go
dgryski/carbonapi
bsd-2-clause
9,490
374
codeparrot/github-code
983a9e93c0ad6afaf46cb47cef2675002f73b5c5dc457073df4eda0eac294495
// CBSD Project, 2018 // olevole@olevole.ru #include <stdio.h> #include "output.h" #include <unistd.h> #include <string.h> #include <stdlib.h> #include <syslog.h> #include <sys/time.h> #include "var.h" #include "input.h" #include "logger.h" /* Low level logging. To use only for very big messages, otherwise * serverLo...
C
bin/cbsdsh/logger.c
olevole/cbsd
bsd-2-clause
3,300
152
codeparrot/github-code
f146574f5129052e98937c6411f8ee6aa626246e64edd83a5bfbe071b9e10bac
<?php class RibbonDBZMenu extends btThemeMenu { public $defaultShoutboxWidth = 150; public function __construct($sqlConnection) { parent::__construct("ribbondbz", $sqlConnection); } public function displayMenuCategory($loc="top") { // Placeholder function $menuCatInfo = $...
PHP
themes/ribbondbz/ribbondbzmenu.php
bluethrust/cs4
bsd-2-clause
3,048
130
codeparrot/github-code
c8c7e705e19ca0442bc0af9776de7d67ea69d7c85a32d62a7a929c7effd0d909
// // Copyright (c) 2009, Markus Rickert // 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 condit...
C
src/rl/math/MotionVector.h
fortiss/rl
bsd-2-clause
4,521
170
codeparrot/github-code
23205b453482f5ddc1fab941916257f1fce8a454562107a50e7c9a537bb7766f
# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command wa...
Makefile
doc/Makefile
pbstark/permute
bsd-2-clause
7,271
191
codeparrot/github-code
b68e6b33e3aaed02f6e28414f134fac7fcadeb5fed38417e9433978440d4fc83
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
third_party/webrtc/include/webrtc/test/fake_encoder.h
ssaroha/node-webrtc
bsd-2-clause
2,887
92
codeparrot/github-code
49ab8fadb896c37813927373510f427b55e5d181d8cff744d7b91a7f8bffcec9
/*- * Copyright (c) 2007 Marvell Semiconductor, Inc. * Copyright (c) 2007 Sam Leffler, Errno Consulting * Copyright (c) 2008 Weongyo Jeong <weongyo@freebsd.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
C
head/sys/dev/malo/if_malo_pci.c
dplbsd/soc2013
bsd-2-clause
9,344
353
codeparrot/github-code
e42e898ab9d2dbc5564a1e057fcafabd101ece4cc9829119e6c196c167fdabf9
/* * Copyright (C) 2011 Google Inc. All rights reserved. * Copyright (C) 2011 Ericsson AB. 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 t...
C++
Modules/mediastream/MediaStream.cpp
yoavweiss/RespImg-WebCore
bsd-2-clause
6,217
182
codeparrot/github-code
22c912931b47c68efd0ee11e0a29b451a5e1ebdeeaf35e3b95b240a6a4dcc377
/* * Copyright (c) 2017, Robin <robin.weymans@gmail.com> * 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 ...
Java
runelite-client/src/main/java/net/runelite/client/plugins/implings/ImplingsConfig.java
abelbriggs1/runelite
bsd-2-clause
7,171
314
codeparrot/github-code
22f1d75eb2ffe544ab8b8d68457d90c2d571276b5c3775a7f0f20b963527583f
/* * librdkafka - Apache Kafka C library * * Copyright (c) 2012-2015, Magnus Edenhill * 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...
C
src/rdkafka_op.h
klonikar/librdkafka
bsd-2-clause
8,931
220
codeparrot/github-code
dfca658943f00e65202d6a9321767af4ce6497f1264a1c3f176c31a2fee58236
/* * Copyright (c) 2004-2009 Hypertriton, Inc. <http://hypertriton.com/> * 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 copyrigh...
C
original/TrunkRevision9625/vg/vg_text.c
varialus/agar
bsd-2-clause
9,000
359
codeparrot/github-code
c9dcba2715754f74134c3760bdcb69f2f300d18e7e20deb1ba811279bae743c9
/* * Copyright (C) Igor Sysoev */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> ngx_os_io_t ngx_io;//±ÈÈçngx_os_io ngx_listening_t * ngx_create_listening(ngx_conf_t *cf, void *sockaddr, socklen_t socklen) {//³õʼ»¯²¢·µ»Øngx_listening_t½á¹¹¡£ size_t len; ngx_listening_...
C
src/core/ngx_connection.c
kulv2012/ReadNginxSrc
bsd-2-clause
27,708
891
codeparrot/github-code
ffc7a01ec328d1eee83aa1222c9ccce2dee9ca4d3ef1aead9cd52a383e2d6947
/* * Copyright (c) 2015-2016,2021 Greg Becker. 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...
C
svt/src/clp.h
beckerg/svt
bsd-2-clause
30,269
579
codeparrot/github-code
4ce10e24f95fb18749ae8129702cc290cf6c5c62a0c1ea12aa750e55ea958561
class Somagic < Formula desc "Linux capture program for the Somagic variants of EasyCAP" homepage "https://code.google.com/archive/p/easycap-somagic-linux/" url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/easycap-somagic-linux/somagic-easycap_1.1.tar.gz" sha256 "3a9dd78a4733...
Ruby
Formula/somagic.rb
spaam/homebrew-core
bsd-2-clause
1,759
35
codeparrot/github-code
3f00e30da1b9c4437ec2011d3f227b9d080fe3adb3cbb2a3650df95dd7739521
/*- * Copyright (c) 1998 Mark Newton * Copyright (c) 1994, 1997 Christos Zoulas. * 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
head/sys/compat/svr4/svr4_fcntl.c
dplbsd/zcaplib
bsd-2-clause
15,669
725
codeparrot/github-code
083cec662f3d11b7acc9290f9aea64a942a72e9f4e8bfd5b37d466a22e7e592f
/*****************************************************************************/ // Filename: winampfrontend.h // Author: Retro // Date: 3Jan2004 // Description:see .cpp /*****************************************************************************/ /* "ONE IN THE EYE OF THE BEAUTIFUL PEOPLE.." */ #ifndef WINAMP_FRO...
C
src/falcsnd/winampfrontend.h
markbb1957/FFalconSource
bsd-2-clause
1,262
61
codeparrot/github-code
d6413e13c64780aa8ed959a469987d9371273809280a2b231be742d0d007be83
import sys import sysconfig import os import re import errno import shlex import shutil import subprocess import itertools import concurrent.futures from site import USER_SITE from glob import iglob from collections import namedtuple, deque from xml.sax.saxutils import escape from distutils import version import pkg_...
Python
Orange/canvas/application/addons.py
marinkaz/orange3
bsd-2-clause
26,262
794
codeparrot/github-code
55f684afaa50febf38cfb9e1f9a91628a5737dd8474b153b2cc024764ff80d0b
package Test::Nginx::IMAP; # (C) Maxim Dounin # Module for nginx imap tests. ############################################################################### use warnings; use strict; use Test::More qw//; use IO::Socket; use Socket qw/ CRLF /; use Test::Nginx; use base qw/ IO::Socket::INET /; sub new { my $clas...
Perl
test/lib/Test/Nginx/IMAP.pm
yeahdongcn/SEnginx
bsd-2-clause
1,966
111
codeparrot/github-code
820371f6ea3a531f17d1a3c23d9be96f64cb24109868b7c4b0718ddcd0391df5
from __future__ import division, print_function import numpy as np from lmfit.models import VoigtModel from scipy.signal import argrelmax import matplotlib.pyplot as plt def lamda_from_bragg(th, d, n): return 2 * d * np.sin(th / 2.) / n def find_peaks(chi, sides=6, intensity_threshold=0): # Find all potenti...
Python
archived/profile_collection-dev/startup/42-energy-calib.py
NSLS-II-XPD/ipython_ophyd
bsd-2-clause
4,842
156
codeparrot/github-code
63fc47735cf23b552a503b5a8744febd74b8d13e90bb5cc4a8c1b08a74459fdd
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
third_party/webrtc/include/webrtc/modules/video_coding/codecs/vp9/vp9_impl.h
ssaroha/node-webrtc
bsd-2-clause
5,695
171
codeparrot/github-code
349b4a74301ff4d868bb61c02234555086a2ec8704255ffada97e90eccb4d2b1
/* pbrt source code is Copyright(c) 1998-2016 Matt Pharr, Greg Humphreys, and Wenzel Jakob. This file is part of pbrt. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redi...
C
src/textures/fbm.h
ambakshi/pbrt-v3
bsd-2-clause
2,593
72
codeparrot/github-code
00885df2ac05d5df3250853e4367315b94f8096465d8333640d11ef171fc34a4
<?php namespace Phly\Http; use InvalidArgumentException; use RuntimeException; use Psr\Http\Message\StreamInterface; /** * Implementation of PSR HTTP streams */ class Stream implements StreamInterface { /** * @var resource */ protected $resource; /** * @var string|resource */ pr...
PHP
src/Stream.php
phly/http
bsd-2-clause
6,839
307
codeparrot/github-code
9ae5f5f66519afcd1dba71d2c7fa9a3922a6d07dfa6fd66be8a4db4f7bde8d22
/* * $Id$ */ /* Copyright (c) 2015 Board of Trustees of Leland Stanford Jr. University, all rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
Java
src/org/lockss/subscription/PublisherSubscription.java
lockss/lockss-daemon
bsd-3-clause
2,650
80
codeparrot/github-code
1e63624247108facb75e500c3c5deb5ad3e5ef86e254563466c46950610599d4
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: zhangkai17@baidu.com #ifndef BAIDU_COMMON_SPIN_LOCK_H_ #define BAIDU_COMMON_SPIN_LOCK_H_ #include <pthread.h> namespace baidu { namespace co...
C
include/spin_lock.h
baidu/common
bsd-3-clause
888
41
codeparrot/github-code
f8aa9ff893ebef3dfa0afce57652765041948127936db8a1ee66c15d0f2c05ee
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/codegen/optimized-compilation-info.h" #include "src/api/api.h" #include "src/codegen/source-position.h" #include "src/debug/debug.h" #inc...
C++
third_party/v8/src/codegen/optimized-compilation-info.cc
youtube/cobalt
bsd-3-clause
8,229
255
codeparrot/github-code
fa2858d50bee02c46a01aa8b4fec22d5010e01dcef1f2a39736f229ccd99d8db
// 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 "components/search_engines/template_url_service.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback.h" #include...
C++
components/search_engines/template_url_service_unittest.cc
hefen1/chromium
bsd-3-clause
63,629
1,501
codeparrot/github-code
2a8a4352d9f63bf6e3b85f75788aeaa6b953840514f0165d842010a0a1534439
// 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 "chrome/browser/permissions/chrome_permissions_client.h" #include <vector> #include "base/feature_list.h" #include "build/build_config.h" #incl...
C++
chrome/browser/permissions/chrome_permissions_client.cc
nwjs/chromium.src
bsd-3-clause
17,745
426
codeparrot/github-code
fe770d7723e8388bc61ff1aaf58bfe3529f255582d5ff84d9a80ac64b3296cee
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. It returns the dockerfile itself and therefore displays it in results. """ from __future__ import unicode_literals import os from os.path impor...
Python
atomic_reactor/plugins/prepub_squash.py
TomasTomecek/atomic-reactor
bsd-3-clause
4,451
114
codeparrot/github-code
01c4eb7c24a0464fdd7f83eed9d159b38fa65f968cd1a58544350755ac955028
/* global $, togglbutton */ 'use strict'; // Issue details view togglbutton.render( '[data-toggl-issue] [data-toggl-sidebar]:not(.toggl)', { observe: true }, elem => { const getAlias = function () { const aliasSelector = $('[data-toggl-issue] [data-toggl-alias]'); if (!aliasSelector) return 'No A...
JavaScript
src/scripts/content/produck.js
glensc/toggl-button
bsd-3-clause
1,245
42
codeparrot/github-code
f28655c4b6431ae454272d8e2686ea2c929683087e44ef42a7a2e3a24d83a907
/* ================================================================================ This file is part of the MinVR Open Source Project, which is developed and maintained collaboratively by the University of Minnesota's Interactive Visualization Lab and the Center for Computation and Visualization at Brown University ...
C
plugins/HoloPlay/src/VRHoloPlayNode.h
ivlab/MinVR2
bsd-3-clause
4,235
116
codeparrot/github-code
21c31e4fd21ea71ac8757ec61f089114b84501bde345e80fae28b254dae017c9
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memcpy_15.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml Template File: sources-sink-15.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Set ...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_int64_t_declare_memcpy_15.c
JianpingZeng/xcc
bsd-3-clause
3,995
134
codeparrot/github-code
2b6e6adc656631044c5e4326d7ee297416f0449529b8277ad640ce6d0dad918a
{% extends "smartmin/related_list.html" %} {% load smartmin i18n %} {% block relatedlist_title %}Animal Transactions{% endblock relatedlist_title %} {% block table-buttons %} {% if view.add_button %} <div class="btn-group pull-right"> <button type="button" class="btn btn-primary">Add</button> <butto...
HTML
phoenix/apps/animals/templates/animals/transaction_related_list.html
savioabuga/phoenix-template
bsd-3-clause
2,407
52
codeparrot/github-code
7c7fcecce6af5b18f04b50ce2ad87d6d237ad1815b19b26046f7c77a4aeb51a1
/****************************************************************************** This source file is part of the Avogadro project. Copyright 2009 Marcus D. Hanwell Copyright 2013 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agre...
C
avogadro/qtplugins/surfaces/surfacedialog.h
OpenChemistry/avogadrolibs
bsd-3-clause
2,174
92
codeparrot/github-code
3b42e1caa24b5118baf7eb4a14deff3f31bef8b3a118784071e696d9c8f7c862
// Copyright (c) 2007, 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: // // * Redistributions of source code must retain the above copyright // notice, this list of condi...
C++
src/windows/patch_functions.cc
gezidan/gperftools
bsd-3-clause
46,790
1,089
codeparrot/github-code
5ca968f39c7d04797b3d7c48fb94aabec3fdf4a75f566dba3d6bff70a5d470fe
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__struct_twoIntsStruct_calloc_83.h Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-83.tmpl.h */ /* * @description * CWE: 401 Memory Leak * BadSource: calloc Allocate data using calloc() * GoodSource: Allocate...
C
xcc/test/juliet/testcases/CWE401_Memory_Leak/s03/CWE401_Memory_Leak__struct_twoIntsStruct_calloc_83.h
JianpingZeng/xcc
bsd-3-clause
1,656
64
codeparrot/github-code
c28fc8b9036df9cf5f0169898cf57da50c0790ef2c2ba03ff2830a5a990c6f6d
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_int64_t_declare_82a.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml Template File: sources-sink-82a.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: declare...
C++
xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s03/CWE590_Free_Memory_Not_on_Heap__delete_int64_t_declare_82a.cpp
JianpingZeng/xcc
bsd-3-clause
2,724
96
codeparrot/github-code
21deaabf9253fa34d8094a114521cd6f43b4dec63abd438b8de511557a4c845f
var cdb = require('cartodb.js-v3'); var BackgroundPollingHeaderTitleView = require('./background_polling_header_title_view'); /** * Background polling header view * * It will contain: * - Badge * - Title * */ module.exports = cdb.core.View.extend({ className: "BackgroundPolling-header", initialize: f...
JavaScript
lib/assets/javascripts/cartodb/common/background_polling/views/background_polling_header_view.js
splashblot/dronedb
bsd-3-clause
2,043
64
codeparrot/github-code
a65535bdc57adf9e9b2d8d3677d1363c32c0cdb64eea1886ed0ec37b57243eed
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_07.c Label Definition File: CWE253_Incorrect_Check_of_Function_Return_Value.label.xml Template File: point-flaw-07.tmpl.c */ /* * @description * CWE: 253 Incorrect Check of Return Value * Sinks: rena...
C
xcc/test/juliet/testcases/CWE253_Incorrect_Check_of_Function_Return_Value/CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_07.c
JianpingZeng/xcc
bsd-3-clause
3,303
121
codeparrot/github-code
c47e17a351765b16490cf05b39d30af42e40d15d12d09893b1bc2d7c9a498aa0
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.bean; import jodd.introspector.ClassDescriptor; import jodd.introspector.Introspector; import jodd.introspector.PropertyDescriptor; import jodd.introspector.Getter; import jodd.introspector.Setter; /** * Represents a bean named prop...
Java
jodd-bean/src/main/java/jodd/bean/BeanProperty.java
007slm/jodd
bsd-3-clause
3,049
117
codeparrot/github-code
cff1e5b87c8bb63fd142ac47622518b98074fbdf438001c0e609275830821718
from django.conf import settings from django.contrib.sites.models import Site from django.db import models, connection, DatabaseError from django.db.models import loading from django.utils.translation import ugettext_lazy as _ from keyedcache import cache_key, cache_get, cache_set, NotCachedError from keyedcache.models...
Python
livesettings/models.py
pombredanne/django-livesettings
bsd-3-clause
6,191
188
codeparrot/github-code
5c6c91c4e1539f44aa34ea4606a3d94afda3a9895d715e9b188196782f2f8197
<div class="row"> <div class="col-sm-7 chat-main-left-column" id="chat-main-column-<?php echo $chat->id;?>"> <a title="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Show/Hide right column')?>" href="#" class="material-icons collapse-right" onclick="lhinst.processCollapse('<?p...
PHP
web/lhc/design/defaulttheme/tpl/lhchat/adminchat.tpl.php
czechcamus/knihovna-dacice
bsd-3-clause
2,715
60
codeparrot/github-code
1cd80faea20d5f7bfff86905d3135b55dfe3124b83bd696b0c6abb3e3e42fd20
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE427_Uncontrolled_Search_Path_Element__wchar_t_file_63a.c Label Definition File: CWE427_Uncontrolled_Search_Path_Element.label.xml Template File: sources-sink-63a.tmpl.c */ /* * @description * CWE: 427 Uncontrolled Search Path Element * BadSource: file Read inp...
C
xcc/test/juliet/testcases/CWE427_Uncontrolled_Search_Path_Element/CWE427_Uncontrolled_Search_Path_Element__wchar_t_file_63a.c
JianpingZeng/xcc
bsd-3-clause
3,367
118
codeparrot/github-code
cc0ad581eea04fee10bdfdb7c340ba0a14fe55317cd8f8d4ee189a7afd91fd7a
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_vfprintf_81_goodG2B.cpp Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml Template File: sources-vasinks-81_goodG2B.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String...
C++
xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s06/CWE134_Uncontrolled_Format_String__wchar_t_listen_socket_vfprintf_81_goodG2B.cpp
JianpingZeng/xcc
bsd-3-clause
1,385
44
codeparrot/github-code
21b7248fa2656269673f93af48fbe5715a8c7ca1bacca525b5f8d4732905e2b7
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_snprintf_07.c Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml Template File: sources-sink-07.tmpl.c */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initia...
C
xcc/test/juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s06/CWE121_Stack_Based_Buffer_Overflow__CWE806_char_alloca_snprintf_07.c
JianpingZeng/xcc
bsd-3-clause
4,125
137
codeparrot/github-code
2524e5dda8cb6a8aa97ffbb38c8382d404bd1ea78776a1542732804d021d6b81
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>SetFileApisToANSI</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">...
HTML
enc/enc_eng/meta/winapi/setfileapistoansi.html
johnd0e/FarManager
bsd-3-clause
8,013
167
codeparrot/github-code
37eb6b278fc5f8df0368d0fa67fcf20ef26b09ca4bface82f328b5c467fa4895
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.typeconverter.impl; import jodd.typeconverter.TypeConversionException; import jodd.typeconverter.TypeConverter; import jodd.util.ClassLoaderUtil; /** * Converts given object to <code>Class</code>. * Conversion rules: * ...
Java
jodd-core/src/main/java/jodd/typeconverter/impl/ClassConverter.java
Artemish/jodd
bsd-3-clause
953
35
codeparrot/github-code
7823f0426c5b7ab9db57310bc1c744545b56440fcce3621d516c4b2395cbff34
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef XFA_FXFA_LAYOUT_CXFA_TRAVERSESTRATEGY_LAYOUTITEM_H_ #define XFA_FXFA_L...
C
third_party/pdfium/xfa/fxfa/layout/cxfa_traversestrategy_layoutitem.h
endlessm/chromium-browser
bsd-3-clause
1,164
33
codeparrot/github-code
bbfe5b212c172d9bb714f31678466f67386a1d23f691b2f08972c0d3bd66f9e4
--[er]test cast function by casting bit data type to multiset of string data type create class func_03( varchartest varchar(20), sinttest smallint, inttest int, numerictest numeric(38,10), floattest float, realtest real, doublepretest double precision, mon...
SQL
sql/_27_banana_qa/issue_5765_timezone_support/_00_dev_cases/_02_operator/_06_cast_op_with_tz/cases/1221.sql
CUBRID/cubrid-testcases
bsd-3-clause
1,218
31
codeparrot/github-code
ff1cdcb06c91ae24f340930b39308977ff286e1bdd1b2dc5eec9c863e07ad3eb
/*********************************************************************** ** Helper functions ***********************************************************************/ int strlen(char s[]) { int i; i = 0; while (s[i] != '\0') ++i; return i; } void reverse(char s[]) { int c,i,j...
C
contrib/diku/mcs51/apps/SerialTest2/helpfunctions.h
ekiwi/tinyos-1.x
bsd-3-clause
894
54
codeparrot/github-code
4e31c0f74b4844d05448c3c6ef47da50b1ede546a341947479e87c5abdfe9561
<?php /** * Hoa * * * @license * * New BSD License * * Copyright © 2007-2015, Hoa community. 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 ...
PHP
Hoa/Console/Chrome/Text.php
vcgato29/Central
bsd-3-clause
12,981
418
codeparrot/github-code
b84e2401cb558965983b73f519c265d1a11788c79d946f5fe7fc9db3fedd69ad
<?php if (!defined('IDIR')) { die; } /*======================================================================*\ || #################################################################### || # vBulletin Impex || # ---------------------------------------------------------------- || # All PHP code in this file is Copyright 2...
PHP
systems/zeroforum/000.php
internetbrands/vbimpex
bsd-3-clause
9,447
451
codeparrot/github-code
3d4abc019cd0a4f8585cfdd2b75b1eb6487e44a38670e93b311e52a020662c98
#.rst: # CMakeExpandImportedTargets # -------------------------- # # Deprecated. Do not use. # # This module was once needed to expand imported targets to the underlying # libraries they reference on disk for use with the :command:`try_compile` # and :command:`try_run` commands. These commands now support imp...
CMake
Bin/CMakeWin10/share/cmake-3.4/Modules/CMakeExpandImportedTargets.cmake
dava/dava.engine
bsd-3-clause
6,766
157
codeparrot/github-code
441dd6c76ed5d90f38bd17a03ea91c9384a78ca5467b1cdd3c3d26e1ec7e50ca
-- | This module contains any objects relating to order theory module SubHask.Algebra.Ord where import qualified Prelude as P import qualified Data.List as L import qualified GHC.Arr as Arr import Data.Array.ST hiding (freeze,thaw) import Control.Monad import Control.Monad.Random import Control.Monad.ST import Pr...
Haskell
src/SubHask/Algebra/Ord.hs
abailly/subhask
bsd-3-clause
2,149
67
codeparrot/github-code
b76a3d5df89208319d38c5919f579486859735f6c27f9d28c52a5ffe5ffbabc8
// 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 "chrome/browser/extensions/display_info_provider_aura.h" namespace extensions { DisplayInfoProviderAura::DisplayInfoProviderAura() { } Display...
C++
chrome/browser/extensions/display_info_provider_aura.cc
7kbird/chrome
bsd-3-clause
890
35
codeparrot/github-code
26e637a73638eb9b4a8f610bb6308d3284191f1b05417d45231297f71c7184e4
/* * Copyright 2020 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/sksl/DSLExpression.h" #include "include/sksl/DSLCore.h" #include "include/sksl/DSLVar.h" #include "src/sksl/SkSLCompiler.h" #include "src/sksl/SkSLThreadCont...
C++
src/sksl/dsl/DSLExpression.cpp
google/skia
bsd-3-clause
12,983
391
codeparrot/github-code
5d56df2adbc5dac88440c141979a03ce2b937b39c05478093fb7afefeecc12cc
/****************************************************************************** * Copyright (c) 2012, Howard Butler, hobu.inc@gmail.com * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions are met: * * ...
C++
filters/colorization/ColorizationFilter.hpp
mpgerlek/PDAL-old
bsd-3-clause
3,035
89
codeparrot/github-code
3ce4e8789f1b72bdcd900932c56e05b95ba32e1319309d735e22eee068e5bc4f
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE590_Free_Memory_Not_on_Heap__delete_wchar_t_alloca_74a.cpp Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.pointer.label.xml Template File: sources-sink-74a.tmpl.cpp */ /* * @description * CWE: 590 Free Memory Not on Heap * BadSource: alloca Data...
C++
xcc/test/juliet/testcases/CWE590_Free_Memory_Not_on_Heap/s04/CWE590_Free_Memory_Not_on_Heap__delete_wchar_t_alloca_74a.cpp
JianpingZeng/xcc
bsd-3-clause
2,842
113
codeparrot/github-code
633d6aae83b7c245b4bceae8f53dfc71a4a1b4b94cbe560e91a17b16dd7393fd
# -*- coding: utf8 -*- from __future__ import absolute_import """ """ __author__ = "Jerome Samson" __copyright__ = "Copyright 2014, Mikros Image" import logging import time try: import simplejson as json except ImportError: import json from tornado.web import HTTPError from octopus.core.communication.http i...
Python
src/octopus/dispatcher/webservice/job.py
mikrosimage/OpenRenderManagement
bsd-3-clause
3,190
108
codeparrot/github-code
3ec176eba207b75042112da5c2e5f9eda852965408c99411d825309c9af3e2ea
// 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 WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ #include <string> #include <vector> #include "base/f...
C
webkit/fileapi/file_system_operation.h
gavinp/chromium
bsd-3-clause
11,024
281
codeparrot/github-code
e79737a55b92eecbc87e5690007fe194eee03a62152cc2d9de8fbf97cd04405f
/* * PROJECT: Pairwise sequence alignments on GPU * FILE: psa_pairwise * AUTHOR(S): Alejandro Chacon <alejandro.chacon@uab.es> * DESCRIPTION: API Interface pairwise definitions for basic operations. */ #ifndef PSA_PAIRWISE_H_ #define PSA_PAIRWISE_H_ #include "psa_commons.h" #include "psa_regions.h" #include "ps...
C
prototypes/psa/include/psa_pairwise.h
kimrutherford/nvbio
bsd-3-clause
1,181
33
codeparrot/github-code
44a3c2efa33bd3d9b974d6b276667f8b8644e53c4e38affe5e28fac102e85e89
<?php /** * ImageMagick Image Driver. * * $Id: ImageMagick.php 3769 2008-12-15 00:48:56Z zombor $ * * @package Image * @author Kohana Team * @copyright (c) 2007-2008 Kohana Team * @license http://kohanaphp.com/license.html */ class Image_ImageMagick_Driver extends Image_Driver { // Directory t...
PHP
protected/extensions/image/drivers/Image_ImageMagick_Driver.php
pasitive/restate
bsd-3-clause
7,229
217
codeparrot/github-code
f27a5e1fd97828c1cc152aad52aea0c2e91d8511bf66364d148e0ad9d570456a
// 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/components/navigation_interception/intercept_navigation_delegate.h" #include "base/android/jni_android.h" #include "base/android/jn...
C++
content/components/navigation_interception/intercept_navigation_delegate.cc
leiferikb/bitpop-private
bsd-3-clause
3,707
116
codeparrot/github-code
9ab9525e5db4e606a61c79e447303473c4cc4be79404f94d41ddaabeeb251698
/* @(#) Smudge and smear a piece of image. Smudge is a low-pass filter, * @(#) smear is an early version of smudge which contains a bug: it * @(#) pushes pels to the left a little too. Looks cute though. * @(#) * @(#) r is the area to smudge/smear. Clipped against the image edges * @(#) properly. * @(#) * @(#...
C
pkgs/apps/vips/src/libsrc/inplace/smudge_area.c
anasazi/POP-REU-Project
bsd-3-clause
6,465
320
codeparrot/github-code
e5b5e956d28b83410d1153b37a15d7589dcaac742c50483f48bfddaf455c275e
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__char_rand_add_83_goodG2B.cpp Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-83_goodG2B.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: rand Set data to result of rand() * Goo...
C++
xcc/test/juliet/testcases/CWE190_Integer_Overflow/s01/CWE190_Integer_Overflow__char_rand_add_83_goodG2B.cpp
JianpingZeng/xcc
bsd-3-clause
1,363
41
codeparrot/github-code
4ab47cb9ed450570f9b0be8f401438d9265fea1b37fe709d83a751795a59b88b
// // File: DKConstraint.h // Author: Hongtae Kim (tiff2766@gmail.com) // // Copyright (c) 2004-2017 Hongtae Kim. All rights reserved. // #pragma once #include "../DKFoundation.h" #include "DKModel.h" #include "DKRigidBody.h" namespace DKFramework { /** @brief joint constraint for dynamics of rigid bodies. ...
C
DK/DKFramework/DKConstraint.h
tiff2766/DKLib
bsd-3-clause
4,353
155
codeparrot/github-code
cb1b847fdcb39c7ad55be76500ff2026ce71d4a5925bc39be4d03ef7f50bf599
/* * Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services. * 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 o...
Java
Product/Production/Services/HIEMCore/src/main/java/gov/hhs/fha/nhinc/subscription/repository/service/SubscriptionIdHelper.java
sailajaa/CONNECT
bsd-3-clause
5,029
99
codeparrot/github-code
e34afe608dc9825bfd5334a071b337754acef61222cee3828495600e85f1cb66
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__new_delete_array_struct_62b.cpp Label Definition File: CWE416_Use_After_Free__new_delete_array.label.xml Template File: sources-sinks-62b.tmpl.cpp */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using new, initial...
C++
xcc/test/juliet/testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__new_delete_array_struct_62b.cpp
JianpingZeng/xcc
bsd-3-clause
1,982
80
codeparrot/github-code
baf24a19939c27fb9b72039eca3ed51f609c046bf3277737f696e2964475ee1b
// Copyright (c) 2012-2019 Intel Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge,...
C
src/mfx_win_reg_key.h
lu-zero/mfx_dispatch
bsd-3-clause
3,539
105
codeparrot/github-code
9ba43cf995cddf1d095e888601bfedd517700e18ee7daa62a7d874f9bd6468c8
import pandas from emission.net.api.stats import storeClientEntry, storeServerEntry, storeResultEntry def loadEntries(fname): df = pandas.read_csv(fname) entries = [] for c in range(len(df)): entry = {} for key in df.keys(): entry[key] = df[key][c] entries.append(entry) return entries def storeClientEn...
Python
emission/net/int_service/giles/store_existing_stats.py
joshzarrabi/e-mission-server
bsd-3-clause
1,854
70
codeparrot/github-code
f028d17679a3cc4ec06c6f298549353bf09ceed9cc3dead90ae93bbccb79613e
package org.impact2585.aerbot.systems; import org.impact2585.aerbot.Environment; import org.impact2585.aerbot.RobotMap; import edu.wpi.first.wpilibj.Gyro; import edu.wpi.first.wpilibj.Timer; public class GyroSystem implements RobotSystem { private Gyro gyro; private Timer timer; private double lastAngle; pr...
Java
src/org/impact2585/aerbot/systems/GyroSystem.java
2585Robophiles/aerbot-champs
bsd-3-clause
1,545
72
codeparrot/github-code
aff6540db337b5b3db0166c0eb24c9c5e5b1452e949cb88ca21a70a4cff49d36
# Merge Sort # Complexity: O(nlog(n)) def _merge(L, R): m, i, j = [], 0, 0 while i < len(L) and j < len(R): if L[i] <= R[j]: m.append(L[i]) i += 1 else: m.append(R[j]) j += 1 if i == len(L): m.extend(R[j:]) else: m.extend(...
Python
pydsa/merge_sort.py
rehassachdeva/pydsa
bsd-3-clause
683
37
codeparrot/github-code
0c1e74ac39f9f18ce7b4e51eecaac936bbf5f0e8886d4f69b61ec82bd36c7519
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>colour.notation.munsell Module &mdash; Colour 0.3.0 documentation</title> <link rel="stylesheet" href="_static/basic.css" type="text/css" /> <link...
HTML
output/api/0.3.0/html/colour.notation.munsell.html
colour-science/colour-science.org
bsd-3-clause
78,926
1,216
codeparrot/github-code
2cf60de329cfb0f2d815fad8e78700005c50770018a647221e3315cb1d2878bf
/* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * 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 * no...
C
lib/libkse/thread/thr_fork.c
jrobhoward/SCADAbase
bsd-3-clause
3,849
131
codeparrot/github-code
9515a005c99f35416615be02cd36f2c21f838f3247adde840336958f8c92dce2
__author__ = "mfreer" __date__ = "2011-05-27 14:27" __version__ = "1.0" __all__ = ["TempVirtualCnrm"] import egads.core.egads_core as egads_core import egads.core.metadata as egads_metadata class TempVirtualCnrm(egads_core.EgadsAlgorithm): """ FILE temp_virtual_cnrm.py VERSION 1.0 CA...
Python
egads/algorithms/thermodynamics/temp_virtual_cnrm.py
eufarn7sp/egads-eufar
bsd-3-clause
3,161
67
codeparrot/github-code
efe14a4166fa2f77042694c62086d78aa4b0b32539c90356f79c1dea7cbc8c09
#ifndef AliVWeakResult_H #define AliVWeakResult_H #include <TNamed.h> #include <TList.h> #include <TH3F.h> //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // TObject to hold weak decay results // This is a base class for AliV0Result and AliCascadeResult //+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+...
C
PWGLF/STRANGENESS/Cascades/Run2/AliVWeakResult.h
aaniin/AliPhysics
bsd-3-clause
1,343
42
codeparrot/github-code
d5799885aa640f50a30da16b5c39aaf8902450bf19b5491c472d3a1f01652aa9
package BIDMat import org.scalatest._ import resource.managed import MatFunctions._ import SciFunctions.rand class CLMatSpec extends CLSpec { "A CLMat" should "support matrix addition" in { val a = rand(10, 10) val b = rand(10, 10) val c = a + b for { a_ <- managed(CLMat(a)) b_ <- mana...
Scala
src/test/scala/BIDMat/CLMatSpec.scala
phlip9/BIDMat
bsd-3-clause
3,194
148
codeparrot/github-code
39be80715a95b83dd4149a3643a6a36efd33dafb559f9db69e0863b73d9f539c
"""OAuth 2.0 WSGI server middleware providing MyProxy certificates as access tokens """ __author__ = "W van Engen" __date__ = "01/11/12" __copyright__ = "(C) 2011 FOM / Nikhef" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "wvengen+oauth2@nikhef.nl" __revision__ = "$Id$" from base64 impor...
Python
ndg_oauth_server/ndg/oauth/server/lib/authenticate/password_authenticator.py
cedadev/ndg_oauth
bsd-3-clause
2,193
60
codeparrot/github-code
5a4e612fe63a3ae494fb7fa1687639294768a4220775673a2fddb7f3ee6239fd
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__int_listen_socket_sub_62a.cpp Label Definition File: CWE191_Integer_Underflow__int.label.xml Template File: sources-sinks-62a.tmpl.cpp */ /* * @description * CWE: 191 Integer Underflow * BadSource: listen_socket Read data using a listen ...
C++
xcc/test/juliet/testcases/CWE191_Integer_Underflow/s02/CWE191_Integer_Underflow__int_listen_socket_sub_62a.cpp
JianpingZeng/xcc
bsd-3-clause
2,924
119
codeparrot/github-code
4213c52296bb68e6ac7810bdf63f63ce7c9ecd7bf39237db52f9ab505410b6bc
<?php require_once("../config.inc.php"); session_start(); if (!isset($_SESSION['acct_manager'])) $_SESSION['acct_manager']= new RODSAcctManager(); $ruri=""; if (isset($_REQUEST['ruri'])) $ruri=$_REQUEST['ruri']; else { $response=array('success'=> false,'error'=>'Required RODS URI not found'); echo json_encod...
PHP
clients/web/services/serverQuery.php
iychoi/iRODS-FUSE-Mod-v3.2
bsd-3-clause
1,912
79
codeparrot/github-code
2d02eaaa92666fc776e64807508f8789c0236bb9bf6251e8d0a7b62cde62ef8f
#!/usr/bin/env python import os import sys import time import platform import argparse from datetime import datetime from space_checker_utils import wget_wrapper import ConfigParser def create_directory(directory): """Create parent directories as necessary. :param directory: (~str) Path of directory to be ...
Python
install/install.py
DePierre/owtf
bsd-3-clause
10,142
290
codeparrot/github-code
6ea332446b1eba4061579b025a9b957a00120249429d16515673fa7381799cb1
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/task_manager/task_manager_columns.h" #include "base/logging.h" #include "chrome/grit/generated_resources.h" namespace task_m...
C++
chrome/browser/ui/task_manager/task_manager_columns.cc
Workday/OpenFrame
bsd-3-clause
5,206
121
codeparrot/github-code
f8cd92d842b77c6d60d9d8b6600fa4132755ab3f4cdab94407128793a389bf47
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_environment_open_68b.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-68b.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: environment Read input from...
C++
xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_environment_open_68b.cpp
JianpingZeng/xcc
bsd-3-clause
2,294
89
codeparrot/github-code
83241e676d64ac025acb0f38b25d4e21a059d42d089bc1bdaacf2ed6f1f8cf2a
// 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. #ifndef REMOTING_HOST_MOJOM_REMOTING_MOJOM_TRAITS_H_ #define REMOTING_HOST_MOJOM_REMOTING_MOJOM_TRAITS_H_ #include <stddef.h> #include <string> #include ...
C
remoting/host/mojom/remoting_mojom_traits.h
scheib/chromium
bsd-3-clause
1,188
40
codeparrot/github-code
56eba39f0050498e51b926dc079fdc97ee8fe4a5c98e433c83cf105000023a89
/**************************************************************************************** MiniSat -- Copyright (c) 2003-2006, Niklas Een, Niklas Sorensson CryptoMiniSat -- Copyright (c) 2009 Mate Soos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
C++
third_party/stp/src/lib/Sat/cryptominisat2/UselessBinRemover.cpp
guorendong/iridium-browser-ubuntu
bsd-3-clause
7,126
203
codeparrot/github-code
50d145ad4aa862f82dc99df22ce437933dea746a0ac7cfe1c909ad4be5335fda
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>colour.phenomenons.rayleigh &mdash; Colour 0.3.4 documentation</title> <link rel="stylesheet" href="../../../_static/basic.css" type="text/css" /> ...
HTML
output/api/0.3.4/html/_modules/colour/phenomenons/rayleigh.html
colour-science/colour-science.org
bsd-3-clause
62,038
876
codeparrot/github-code