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
ff030e868b70a60118f633efb4f25a6f93d0df18658ef33fc916fcbd615f0c17
/* * Copyright (c) 2009-2015, 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 ...
Java
Product/Production/Services/DocumentQueryCore/src/test/java/gov/hhs/fha/nhinc/docquery/nhin/proxy/NhinDocQueryWebServiceProxyTest.java
beiyuxinke/CONNECT
bsd-3-clause
6,930
154
codeparrot/github-code
cfdd06ffb1bd56c9e30bc4554bb4faa36978d355ea1158d40462c6059b68edcd
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_wchar_t_83.h Label Definition File: CWE415_Double_Free__new_delete.label.xml Template File: sources-sinks-83.tmpl.h */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae data using delete ...
C
xcc/test/juliet/testcases/CWE415_Double_Free/s02/CWE415_Double_Free__new_delete_wchar_t_83.h
JianpingZeng/xcc
bsd-3-clause
1,497
64
codeparrot/github-code
091ef99f00af400f5bb3485027a59255e9f15b4fa7e67867067db5417b5632dc
/* * Copyright (c) 2011-2013, Longxiang He <helongxiang@smeshlink.com>, * SmeshLink Technology Co. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY. * * This file is part of the CoAP.NET, a CoAP framework in C#. * Please see README for more information. */ usin...
C#
CoAP.NET/ResponseEventArgs.cs
martindevans/CoAP.NET
bsd-3-clause
891
40
codeparrot/github-code
c8ff7370be22432a14985b2d2b756c7077491f9510863eb906c10e05ec162126
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ #define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ #include "base/memory/scoped_ptr.h" #in...
C
mojo/services/html_viewer/blink_platform_impl.h
hefen1/chromium
bsd-3-clause
3,411
88
codeparrot/github-code
a099fe3364827b2fb64102406e5713f720179e71010c75bc34207ab3de63ae3c
/* * Copyright 2009, 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 conditio...
C++
o3d/core/cross/draw_element.cc
amyvmiwei/chromium
bsd-3-clause
2,847
83
codeparrot/github-code
04627427668b7c3f975205ab7cb1a285a09fd98686170bac70cd3e26b9061291
// 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/browser/download/mhtml_generation_manager.h" #include <map> #include <queue> #include <utility> #include "base/bind.h" #include "b...
C++
content/browser/download/mhtml_generation_manager.cc
danakj/chromium
bsd-3-clause
16,585
462
codeparrot/github-code
6816ce36cfba806306bbbfc158da6bf70262e7c35db0cd6625c75b6d15fa0f07
package com.skcraft.plume.event.block; import com.google.common.base.Functions; import com.google.common.base.Predicate; import com.skcraft.plume.event.BulkEvent; import com.skcraft.plume.event.Cause; import com.skcraft.plume.event.DelegateEvent; import com.skcraft.plume.event.Result; import com.skcraft.plume.util.Loc...
Java
src/main/java/com/skcraft/plume/event/block/BlockEvent.java
wizjany/Plume
bsd-3-clause
1,892
69
codeparrot/github-code
ecef3242643dd86bda6ce889526a9128fd56b6fc1f6d343ac88c357e7a061526
from __future__ import unicode_literals __all__ = ( 'Key', 'Keys', ) class Key(object): def __init__(self, name): #: Descriptive way of writing keys in configuration files. e.g. <C-A> #: for ``Control-A``. self.name = name def __repr__(self): return '%s(%r)' % (self....
Python
prompt_toolkit/keys.py
jaseg/python-prompt-toolkit
bsd-3-clause
2,546
101
codeparrot/github-code
72bc8fc36175c1451acc79e9e0f94c5c9371e53bd0f7863036f19e64f61d9d40
#!/usr/bin/env python """ ================ sMRI: FreeSurfer ================ This script, smri_freesurfer.py, demonstrates the ability to call reconall on a set of subjects and then make an average subject. python smri_freesurfer.py Import necessary modules from nipype. """ import os import nipype.pipeline.eng...
Python
examples/smri_freesurfer.py
FredLoney/nipype
bsd-3-clause
1,804
66
codeparrot/github-code
7311292b98574687d85bacf8aa03567df7651d2bbb3ac4fe8e9d13b6589ec27c
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
C++
Plugins/org.mitk.gui.qt.igt.app.echotrack/src/internal/Widgets/QmitkUSNavigationProcessWidget.cpp
iwegner/MITK
bsd-3-clause
18,872
557
codeparrot/github-code
853cee566a8e45871d7b283cd4ff37fc2bb433f31a0d8402250de1274ce4eeca
// 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. #include "chrome/browser/image_editor/screenshot_flow.h" #include <memory> #include "base/logging.h" #include "build/build_config.h" #include "content/p...
C++
chrome/browser/image_editor/screenshot_flow.cc
scheib/chromium
bsd-3-clause
13,138
382
codeparrot/github-code
50ee491b3b8e95a7cdc6e1ffb76ef750f5c99d262e4e5d1a8a600e6b141fb034
// Copyright (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. #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ #pragma once #include "base/compiler_specific.h" #inclu...
C
chrome/common/chrome_content_client.h
aYukiSekiguchi/ACCESS-Chromium
bsd-3-clause
1,655
47
codeparrot/github-code
da2abc7e1e39fa0aacb4007511900837db53cdfccf92139a76f394ead556a2c6
/* * Copyright (C) 2007, 2008, 2013 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: * * 1. Redistributions of source code must retain the above copyright * notice, this lis...
C
third_party/blink/renderer/modules/webdatabase/database_tracker.h
scheib/chromium
bsd-3-clause
4,513
108
codeparrot/github-code
1c25ec1d05c11c0908fe96b527a33290ae850d29a422079391dc5a113f44d479
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c Label Definition File: CWE457_Use_of_Uninitialized_Variable.c.label.xml Template File: sources-sinks-64b.tmpl.c */ /* * @description * CWE: 457 Use of Uninitialized Variable * BadSource: no_init Don't initi...
C
xcc/test/juliet/testcases/CWE457_Use_of_Uninitialized_Variable/s01/CWE457_Use_of_Uninitialized_Variable__char_pointer_64b.c
JianpingZeng/xcc
bsd-3-clause
1,932
62
codeparrot/github-code
91a421f48a119d77663d30c5f4ea6a3462ee0a4cf0c829318d7195391c5fbed3
// 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/child_histogram_message_filter.h" #include <ctype.h> #include "base/bind.h" #include "base/message_loop.h" #include "base/m...
C++
content/common/child_histogram_message_filter.cc
zcbenz/cefode-chromium
bsd-3-clause
3,578
108
codeparrot/github-code
831301509c422263b0fc3925e2ee38b111973a0a12c16b4825b7153a3163b9ff
/* * Copyright (C) 2013 Soumith Chintala * */ #include <jni.h> #include <stdio.h> #include <stdlib.h> #include "torchandroid.h" #include <assert.h> extern "C" { JNIEXPORT jstring JNICALL Java_com_torch_Torch_jni_1call( JNIEnv* env, jobject thiz, ...
C++
src/torchcall.cpp
Jeff-Huang/th-android
bsd-3-clause
1,727
58
codeparrot/github-code
f0421826aacb68be722cd52b2c1c54f782718f6fecc6f0c17bda099f6a57d81d
package io.flutter.embedding.engine.mutatorsstack; import static junit.framework.TestCase.*; import static org.mockito.Mockito.*; import android.graphics.Matrix; import android.view.MotionEvent; import io.flutter.embedding.android.AndroidTouchProcessor; import org.junit.Test; import org.junit.runner.RunWith; import o...
Java
shell/platform/android/test/io/flutter/embedding/engine/mutatorsstack/FlutterMutatorViewTest.java
chinmaygarde/flutter_engine
bsd-3-clause
3,135
80
codeparrot/github-code
fa72dc7a6fedbf07e2781745dbea4ace754154378d2cce962765311ca2d90470
package org.hisp.dhis.dxf2.adx; /* * Copyright (c) 2015, UiO * 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, th...
Java
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/adx/AdxDataSetMetadata.java
uonafya/jphes-core
bsd-3-clause
4,017
109
codeparrot/github-code
fbc348a588d3fc88e3086b345272029bae521724ccf768ff0e76be10ce103c16
<?php /** * Created by PhpStorm. * User: qhuy * Date: 18/12/2014 * Time: 21:59 */ namespace backend\models; use common\helpers\CommonUtils; use common\helpers\CVietnameseTools; use common\helpers\MediaToolBoxHelper; use common\helpers\MyCurl; use common\models\Content; use common\models\News; use garyjl\simpleh...
PHP
backend/models/Image.php
tuanpv1/news
bsd-3-clause
19,090
610
codeparrot/github-code
0da30a8ffc05c5a5e099b37932cc945d147316b3f38402de6f8372103932ab1d
Ext.define('Ozone.data.Dashboard', { extend: 'Ext.data.Model', idProperty: 'guid', fields:[ 'alteredByAdmin', 'guid', {name:'id', mapping: 'guid'}, { name: 'isdefault', type: 'boolean', defaultValue: false }, { name: 'dashboardPosition', type: 'int' }, ...
JavaScript
webapps/owf/js/owf-group-dashboard-management-widget.js
Nanonid/tcsolrsvc
bsd-3-clause
24,987
732
codeparrot/github-code
96f9c1c2bf38dbdb9ca3b7c4cc5272aaa819218cb658f8aa3cb5e2b09480e53e
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__wchar_t_file_fopen_45.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-45.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_45.cpp
JianpingZeng/xcc
bsd-3-clause
3,879
158
codeparrot/github-code
f3f5b3818999b26a34323c678e022c0c3127a807ff6af2379f1f07ba673c5a5b
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_twoIntsStruct_52b.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-52b.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the...
C++
xcc/test/juliet/testcases/CWE401_Memory_Leak/s02/CWE401_Memory_Leak__new_twoIntsStruct_52b.cpp
JianpingZeng/xcc
bsd-3-clause
1,293
60
codeparrot/github-code
7235b3765beedfc80ec9d421607625a56640d330686642519bb5c6b36d758ba9
/*********************************************************************** * Copyright (c) 2009, Secure Endpoints 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...
C
lib/roken/simple_exec_w32.c
pexip/os-heimdal
bsd-3-clause
10,338
431
codeparrot/github-code
b61762c39fcd348c95efe2c6d27dab399d94a4f093c47640b6b84340672853ca
/* * Copyright (c) 2007-2009 The LIBLINEAR Project. * 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 ...
C
src/shogun/optimization/liblinear/shogun_liblinear.h
besser82/shogun
bsd-3-clause
6,507
325
codeparrot/github-code
75263ca3799b722a634c758de3f1707b00e03ed8fb6e1f7c6b7c4251df3a0f28
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE805.label.xml Template File: sources-sink-22a.tmpl.c */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate u...
C
xcc/test/juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s08/CWE122_Heap_Based_Buffer_Overflow__c_CWE805_struct_memcpy_22a.c
JianpingZeng/xcc
bsd-3-clause
4,955
146
codeparrot/github-code
46c2b9fa6b520f0330994331b896228e4807497074be67fb945e2d3b5fea7524
// 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/chromeos/login/users/chrome_user_manager_impl.h" #include <cstddef> #include <set> #include "ash/multi_profile_uma.h" #include ...
C++
chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc
7kbird/chrome
bsd-3-clause
39,004
1,041
codeparrot/github-code
0197147a1a4a4b8d9ff3704a4cf39021338030a4d041754af9172f35e921dd21
/* * pointcloud_publisher_node.cpp * * Created on: Aug 19, 2021 * Author: Edo Jelavic * Institute: ETH Zurich, Robotic Systems Lab */ #include <pcl_conversions/pcl_conversions.h> #include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include "grid_map_pcl/helpers.hpp" namespace gm = ::grid_map::g...
C++
grid_map_pcl/src/pointcloud_publisher_node.cpp
ethz-asl/grid_map
bsd-3-clause
1,327
43
codeparrot/github-code
e3e2e018ec4e184f61e77ab334794b5c8a336ed408129af9a413a37d44665cf2
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ #define CHROME_BROWSER_METRICS_CHROMEOS_METRICS_PROVIDER_H_ #include "base/memory/weak_ptr.h"...
C
chrome/browser/metrics/chromeos_metrics_provider.h
hefen1/chromium
bsd-3-clause
3,015
87
codeparrot/github-code
361fffa79aae10c8084c1d88e083cd2bb6827e6c763d03b6afb65f3879de3eb1
// 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 MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_ #define MEDIA_GPU_VAAPI_VAAPI_JPEG_DECODER_H_ #include <stdint.h> #include <memory> #include "base/macros...
C
third_party/chromium/media/gpu/vaapi/vaapi_jpeg_decoder.h
youtube/cobalt
bsd-3-clause
2,534
70
codeparrot/github-code
f2a511765b73b755c833df2c49474d5e50579fe9979ca786dd88d747f2580cd0
using System; using Inbox2.Framework; namespace Inbox2.Core.Configuration { public static class CloudApi { public static string ApiBaseUrl { get { return String.Format("http://api{0}.inbox2.com/", String.IsNullOrEmpty(CommandLine.Current.Environment) ? String.Empty : "." + CommandLi...
C#
Code/Client/Inbox2/Core/Configuration/CloudApi.cs
Klaudit/inbox2_desktop
bsd-3-clause
614
34
codeparrot/github-code
17d7fc1a055c04deb3dff0dca1b76869d921c7301e7a396c8c31777905a0e88d
// Copyright 2017 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/browser/payments/payment_app_info_fetcher.h" #include <limits> #include <utility> #include "base/base64.h" #include "base/bind.h" #inc...
C++
content/browser/payments/payment_app_info_fetcher.cc
scheib/chromium
bsd-3-clause
13,104
327
codeparrot/github-code
2afb2d568c88d0c3b8ce05bf31a8e3f4c83a3d41216f6ce72d30a06aa4ea16f3
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview A command is an abstraction of an action a user can do in the * UI. * * When the focus changes in the document for each comman...
JavaScript
ui/webui/resources/js/cr/ui/command.js
timopulkkinen/BubbleFish
bsd-3-clause
8,976
317
codeparrot/github-code
95e9949154a310e1c129cdcaf2bdca06275824822f3437a413df361597854708
/** ****************************************************************************** * api-scanner - Scan for API imports from a packaged 360 game * ****************************************************************************** * Copyright 2015 x1nixmzeng. All rights reserved. ...
C++
src/xenia/tools/api-scanner/api_scanner_main.cc
sephiroth99/xenia
bsd-3-clause
1,501
46
codeparrot/github-code
71c2343644c5ebeac197ec3f43fd2d646b7000194808892a25e977b0a952d037
// Copyright (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. #ifndef COMPONENTS_ERROR_PAGE_COMMON_LOCALIZED_ERROR_H_ #define COMPONENTS_ERROR_PAGE_COMMON_LOCALIZED_ERROR_H_ #include <memory> #include <string> ...
C
components/error_page/common/localized_error.h
scheib/chromium
bsd-3-clause
2,380
75
codeparrot/github-code
1efd6aadc8ccff17540440ca4349d777b4b50f099a27239c0fc9892413b11ce8
using System.Linq.Expressions; using NHibernate.Metadata; namespace NHibernate.Linq.Expressions { public class EntityExpression : NHibernateExpression { private readonly string _alias; private readonly string _associationPath; private readonly IClassMetadata _metaData; private readonly Expression _expression...
C#
src/Libraries/NHibernate/NHibernate.Linq/Expressions/EntityExpression.cs
OrchardCMS/Orchard
bsd-3-clause
1,479
64
codeparrot/github-code
443865913a9bf241d9268d7f8f9dbe3fffb3feb45f2c25de027d8d39d444d821
/* * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) * Copyright (C) 2009 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 ...
C
third_party/WebKit/Source/platform/network/HTTPParsers.h
ds-hwang/chromium-crosswalk
bsd-3-clause
4,724
119
codeparrot/github-code
4c16d02ba1c31456816aad6bbba88ad3c7014a9bcdb9d3ffae32b77310b7055d
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package x509 import ( "strings" "time" "unicode/utf8" ) type InvalidReason int const ( // NotAuthorizedToSign results when a certificate is signed by ano...
GO
src/pkg/crypto/x509/verify.go
tav/go
bsd-3-clause
8,106
279
codeparrot/github-code
db75bf64f7a03065fa1cab6b034292c7de1790ad00f8cabfa066e98216a3bed8
/* * Implements dynamic task queues to provide load balancing * Sanjeev Kumar --- December, 2004 */ #ifndef __TASKQ_INTERNAL_H__ #define __TASKQ_INTERNAL_H__ #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef MAXFLOW #include <taskQMaxflow.h> #else #include "../include/taskQ.h" #endif #if...
C
pkgs/apps/facesim/src/TaskQ/lib/taskQInternal.h
anasazi/POP-REU-Project
bsd-3-clause
7,506
203
codeparrot/github-code
6ef6307de9d192d942eb4d51e4e2a001aba32d1e6a9b422f59d886414bc27c4e
/* * * Copyright 2015, 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/core/lib/surface/completion_queue.c
miselin/grpc
bsd-3-clause
16,842
513
codeparrot/github-code
38dd47451fbd14235cf5a2b3f802086bbfa3ab443275f9e5ac7b1f264af26eca
/* * This file is part of Pebble. * * Copyright (c) 2014 by Mitchell Bösecke * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package com.mitchellbosecke.pebble.extension; import com.mitchellbosecke.pebble.attributes.AttributeResol...
Java
pebble/src/main/java/com/mitchellbosecke/pebble/extension/AbstractExtension.java
mbosecke/pebble
bsd-3-clause
1,365
65
codeparrot/github-code
cb9bd31eab8d6fda7858a034f3423f6da82611d79b183ce88abea72d15a7c450
<!DOCTYPE html> <!-- Copyright (c) 2013 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <link rel="import" href="/core/analysis/analysis_sub_view.html"> <link rel="import" href="/core/analysis/util.html"> <link rel="import...
HTML
trace_viewer/core/analysis/single_cpu_slice_sub_view.html
vmpstr/trace-viewer
bsd-3-clause
3,547
130
codeparrot/github-code
bb7a408dec4e45e33738d24d403fd3253089594da20446e87a51a0764e6edf97
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Java
elasticsearch-master/core/src/test/java/org/elasticsearch/cluster/routing/allocation/CatAllocationTestCase.java
strahanjen/strahanjen.github.io
bsd-3-clause
8,869
207
codeparrot/github-code
e6e526564b06746b1cd8856277ae45d5ff7dff276471c70ddd082e1d2665d87c
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.rules.design; import net.sourceforge.pmd.AbstractRule; import net.sourceforge.pmd.ast.ASTAssignmentOperator; import net.sourceforge.pmd.ast.ASTConditionalExpression; import net.sourceforge.pmd.ast.ASTEqu...
Java
src/net/sourceforge/pmd/rules/design/NullAssignmentRule.java
pscadiz/pmd-4.2.6-gds
bsd-3-clause
2,343
59
codeparrot/github-code
f712e40ca23e41ad4e0edc029ee7e16c7200d3d2ffdad1d8da39bfc9416adc96
/** * 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. * */ 'use str...
JavaScript
Libraries/Lists/__tests__/VirtualizedList-test.js
Maxwell2022/react-native
bsd-3-clause
2,405
81
codeparrot/github-code
e4c730b6081cc9e5d9f5ce6417f8fed13212b68f26b19e9115a3b69d2e3e695e
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
C
pluto_examples/gen_kernels/lbpar_3d7pt4_4_8_64/3d7pt.lbpar.c
tareqmalas/girih
bsd-3-clause
7,590
239
codeparrot/github-code
84369e55931350d6a744d01c6af5d5a563bc722c0478ba98f1d8a1204ab92071
/* * Copyright © 2018-2019, VideoLAN and dav1d authors * Copyright © 2018-2019, Two Orioles, LLC * 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 ...
C
third_party/dav1d/libdav1d/src/itx_tmpl.c
endlessm/chromium-browser
bsd-3-clause
9,448
259
codeparrot/github-code
4d7929ccedb10407e3653eba28d4884c524a1480bb344b5aec8b8c534d6a9f73
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <limits.h> #include <stddef.h> #include <stdint.h> #include "base/files/file_path.h" #include "base/files/memory_mapped_file.h" #include "base/l...
C++
tools/ipc_fuzzer/message_lib/message_file_reader.cc
endlessm/chromium-browser
bsd-3-clause
6,548
235
codeparrot/github-code
e304498af1bc1789030153371f2ae8be29706a457657027bc7d5cfe1d0a48bcd
// Copyright (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 "chrome/browser/renderer_host/chrome_url_request_user_data.h" namespace { const char* const kKeyName = "chrome_url_request_user_data"; } ...
C++
chrome/browser/renderer_host/chrome_url_request_user_data.cc
aYukiSekiguchi/ACCESS-Chromium
bsd-3-clause
1,050
39
codeparrot/github-code
a49b96cf603e2a1d54015ae2819552081f644fbc35fc57ad61de092083cceb11
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__char_connect_socket_w32CreateFile_66a.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-66a.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: connect_socket Rea...
C++
xcc/test/juliet/testcases/CWE23_Relative_Path_Traversal/s01/CWE23_Relative_Path_Traversal__char_connect_socket_w32CreateFile_66a.cpp
JianpingZeng/xcc
bsd-3-clause
5,179
191
codeparrot/github-code
00f20b510996cd688c1ae70f4445440f4907502c7239ee33d9c54f441bce9578
/* * Copyright (c) 2014 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
C++
src/dev/virtio/pci.cc
etashjian/ECE757-final
bsd-3-clause
7,129
223
codeparrot/github-code
dc9fccf893f2e0ca9f51b9325dd4290db4e98564b5697a85c411f4924a2d98b9
'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_en-jm.js
mudunuriRaju/tlr-live
bsd-3-clause
4,012
152
codeparrot/github-code
5ffc244f6422cbae025d90f91ac08e13b50c21114dcbd1f1343b2b6ed39be06a
#ifndef fl_gl_cyclic_color_wheel_h #define fl_gl_cyclic_color_wheel_h #include <FL/gl.h> /* GLfloat GLubyte GLuint GLenum */ #include <FL/Fl.H> #include <FL/Fl_Gl_Window.H> #include <FL/Fl_Value_Input.H> #include <FL/Fl_Check_Button.H> class fl_gl_cyclic_color_wheel : public Fl_Gl_Window { public: fl_gl_cyclic_colo...
C
sources/libcpp83gts_callback_and_action/fl_gl_cyclic_color_wheel.h
masafumi-inoue/GTS
bsd-3-clause
1,659
67
codeparrot/github-code
fa662b40755758a7cb243d0497c4070898cf7681be09df12a7c8551f25398dfa
// 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 "base/prefs/json_pref_store.h" #include <algorithm> #include "base/bind.h" #include "base/callback.h" #include "base/file_util.h" #include ...
C++
base/prefs/json_pref_store.cc
cvsuser-chromium/chromium
bsd-3-clause
11,988
359
codeparrot/github-code
acc78ed49dd00c6de0e386b3b3934e21057ffed7ab6bd308e745abac9da2a345
# -*- coding: utf-8 -*- """Git tools.""" from shlex import split from plumbum import ProcessExecutionError from plumbum.cmd import git DEVELOPMENT_BRANCH = "develop" def run_git(*args, dry_run=False, quiet=False): """Run a git command, print it before executing and capture the output.""" command = git[split...
Python
clit/git.py
andreoliw/clitoolkit
bsd-3-clause
899
36
codeparrot/github-code
bb5cc614ccc08ed4446ca29b305464f8a2c780b0135ddb26bab3931470594b11
/* * Copyright 2014 MongoDB, 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 agreed to ...
C
3rdparty/mongo-c-driver-1.9.5/src/mongoc/mongoc-bulk-operation.h
AmiArt/treefrog-framework
bsd-3-clause
6,633
152
codeparrot/github-code
ea336b7b2ca0d6014380d731a86f353a4b2041e3f668f5ffcb9a7857e55a85d0
#include "pri.h" #include "calcu_erase_dot_noise.h" #include "iip_erase_dot_noise.h" void iip_erase_dot_noise::_exec_uchar( long l_width, long l_height, long l_area_xpos, long l_area_ypos, long l_area_xsize, long l_area_ysize, long l_channels, unsigned char *ucharp_in, unsigned char *ucharp_out ) { long l_start, l_sc...
C++
sources/libcpp72iip_erase_dot_noise/iip_erase_dot_noise_uchar.cpp
masafumi-inoue/GTS
bsd-3-clause
2,583
93
codeparrot/github-code
372e8b8771f749f9778a64120765cc36d49664db471ac352248f849c26207ad8
java_import 'org.apollo.game.action.DistancedAction' # A distanced action which opens a door. class OpenDoorAction < DistancedAction include DoorConstants attr_reader :door def initialize(mob, door) super(0, true, mob, door.position, DOOR_SIZE) @door = door end def executeAction mob.turn_to(@...
Ruby
data/plugins/navigation/door/door.rb
garyttierney/apollo
isc
753
34
codeparrot/github-code
a610024a268ce7ade8cdf70ed8a29d72408a0d5217e518be2343244a91382e1c
using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace DotSpatial.Symbology.Forms { public partial class LineSymbolDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.ICo...
C#
Source/DotSpatial.Symbology.Forms/LineSymbolDialog.Designer.cs
CGX-GROUP/DotSpatial
mit
6,630
139
codeparrot/github-code
5cbb39791ada370e998907a954548f5feb50fba3273c9cd07ab241c003041bd2
from __future__ import unicode_literals from .atomicparsley import AtomicParsleyPP from .ffmpeg import ( FFmpegPostProcessor, FFmpegAudioFixPP, FFmpegEmbedSubtitlePP, FFmpegExtractAudioPP, FFmpegFixupStretchedPP, FFmpegMergerPP, FFmpegMetadataPP, FFmpegVideoConvertorPP, ) from .xattrpp ...
Python
youtube_dl/postprocessor/__init__.py
janusnic/youtube-dl-GUI
mit
760
35
codeparrot/github-code
ce84e2172cfa07e71d1eff3bf17e373a0cd4ac5c5170109f1d4f2d279b8e3597
package com.hearthsim.test.minion; import com.hearthsim.card.Card; import com.hearthsim.card.CharacterIndex; import com.hearthsim.card.basic.minion.BoulderfistOgre; import com.hearthsim.card.basic.minion.RaidLeader; import com.hearthsim.card.classic.minion.common.ScarletCrusader; import com.hearthsim.card.classic.mini...
Java
src/test/java/com/hearthsim/test/minion/TestAbomination.java
slaymaker1907/HearthSim
mit
11,770
216
codeparrot/github-code
31498e805a6873b4b9a56c461e00c104daa19c9e062762a4efdbf62d6be04362
<?php namespace Platformsh\Cli\Command\Integration; use Platformsh\Cli\Command\PlatformCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class IntegrationDeleteCommand extends PlatformCommand { /** ...
PHP
src/Command/Integration/IntegrationDeleteCommand.php
Fredplais/platformsh-cli
mit
1,647
59
codeparrot/github-code
06a55c972db110cae6fde48353895cce79ef3792ad42f43a2d25210363730a54
__author__ = 'Nishanth' from juliabox.cloud import JBPluginCloud from juliabox.jbox_util import JBoxCfg, retry_on_errors from googleapiclient.discovery import build from oauth2client.client import GoogleCredentials import threading class JBoxGCD(JBPluginCloud): provides = [JBPluginCloud.JBP_DNS, JBPluginCloud.JB...
Python
engine/src/juliabox/plugins/dns_gcd/impl_gcd.py
JuliaLang/JuliaBox
mit
2,592
73
codeparrot/github-code
b98aaa4f02adea6bcad52e92f0e78e0897ec07c1639ef37c82cba4156732ef94
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * 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 l...
Java
core/src/main/java/hudson/node_monitors/DiskSpaceMonitor.java
chenDoInG/jenkins
mit
2,868
83
codeparrot/github-code
952ff2222aa93c5babec7ab0949c972e327e503caf0fe0b6e3a34e6076c2ee05
<?php /** * @copyright 2006-2013, Miles Johnson - http://milesj.me * @license http://opensource.org/licenses/mit-license.php * @link http://milesj.me/code/php/transit */ namespace Transit\Transformer\Image; use Transit\File; use \InvalidArgumentException; /** * Crops a photo, but resizes and keeps ...
PHP
src/Transit/Transformer/Image/CropTransformer.php
milesj/transit
mit
3,668
118
codeparrot/github-code
b540e781aed510bc7d28a4a6090f704b601738fe6e9fd4e77fccb9df163f0a99
// implementation for cube_support.h #include <utils/multiindex.h> #include <utils/fixed_array1d.h> using MathTL::multi_degree; using MathTL::FixedArray1D; namespace WaveletTL { template <class IBASIS, unsigned int DIM> inline void support(const CubeBasis<IBASIS,DIM>& basis, const typename CubeBasis<IBASI...
C++
WaveletTL/cube/cube_support.cpp
agnumerikunimarburg/Marburg_Software_Library
mit
12,817
449
codeparrot/github-code
aff65cda78245ff62a07fa2e7d1f2293c3e2296f3873400d8509385d7746a177
<?php /** * Config class **/ class Config extends Application { private $config; function __construct($param = array()) { if (!empty($param['file'])) { $this -> load($param['file']); } } public function reset() { $this -> config = array(); } public function load($filename = '') { $file = APP . ...
PHP
Moongrace/Lib/config.php
Claudiu/Moongrace
mit
542
33
codeparrot/github-code
a4f0ae856e0d19af4d173fa9ac9a25b246d59cb2444b94d34b98674d1b7b15bb
module Emulation export run_cpu const EMULATED_INTRINSICS = [ :get_global_id, :get_global_size ] type EmulationContext global_id global_size function EmulationContext() new( [0,0,0], [0,0,0] ) end end # Emulated version of intrinsic functions # mainl...
Julia
src/emulation/emulation.jl
JuliaGPU/HSA.jl
mit
2,595
118
codeparrot/github-code
dc6c12269333ed1777c24db19f5ddba8cd8a686a44c72757a3769ed20459d101
package bf.io.openshop.entities; public class Page { private long id; private String title; private String text; public Page() { } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getTitle() { return title...
Java
app/src/main/java/bf/io/openshop/entities/Page.java
openshopio/openshop.io-android
mit
1,413
65
codeparrot/github-code
70c97aed345b6e924831b10dfa552cbd2ab53e1e50218caefa0d82791ac2fddb
/** * Bootstrap * (sails.config.bootstrap) * * An asynchronous bootstrap function that runs before your Sails app gets lifted. * This gives you an opportunity to set up your data model, run jobs, or perform some special logic. * * For more information on bootstrapping your app, check out: * http://sailsjs.org/#...
JavaScript
config/bootstrap.js
piket/twitter-mafia
mit
1,211
40
codeparrot/github-code
8c6c5449ef2110427de3e585e757a51014574ae611947a719f18ca16337628bc
/* * Exchange Web Services Managed API * * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * wit...
C#
Core/Responses/FindFolderResponse.cs
axelitus/fork-ews-managed-api
mit
5,021
123
codeparrot/github-code
cdfc8519f546972cf1cb9e79a0cbaed83dac49b04d329d1b5415b983454e2ce7
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from datetime import timedelta from flask import flash, redirect, request, session from indico.core.db i...
Python
indico/modules/news/controllers.py
pferreir/indico
mit
3,954
117
codeparrot/github-code
7f19ed2997132398b7b5eebdb6123edb6ea1455f83ef5674b56618f69b53997c
// -------------------------------------------------------------------------------------------- // <copyright file="TransformVisitor.UnionAll.cs" company="Effort Team"> // Copyright (C) 2011-2014 Effort Team // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this ...
C#
Main/Source/Effort/Internal/DbCommandTreeTransformation/TransformVisitor.UnionAll.cs
wertzui/effort
mit
2,436
54
codeparrot/github-code
a4a704bc8ec71e8941cb44e7de210b1723e4c2d90c27507cbef4f2d6e468cf25
<?php namespace Kunstmaan\NodeSearchBundle\Helper\FormWidgets; use Doctrine\ORM\EntityManager; use Kunstmaan\AdminBundle\Helper\FormWidgets\FormWidget; use Kunstmaan\NodeBundle\Entity\Node; use Kunstmaan\NodeSearchBundle\Entity\NodeSearch; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\HttpFou...
PHP
src/Kunstmaan/NodeSearchBundle/Helper/FormWidgets/SearchFormWidget.php
mwoynarski/KunstmaanBundlesCMS
mit
1,850
67
codeparrot/github-code
e871293a115653297e2604532a13072a965f8474b4e553e362718ada45996033
define(function(require, exports, module) { var Notify = require('common/bootstrap-notify'); var FileChooser = require('../widget/file/file-chooser3'); exports.run = function() { var $form = $("#course-material-form"); var materialChooser = new FileChooser({ element: '#materia...
JavaScript
web/bundles/topxiaweb/js/controller/course-manage/material-modal.js
richtermark/SMEAGOnline
mit
1,794
54
codeparrot/github-code
153cadccaf48b87599cdf45a28e458ce27baab525daa0cff5c6d24a7848d38a3
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2013 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtain...
C
Samples/ShaderSystemMultiLight/include/RTShaderSRSSegmentedLights.h
vbudovski/ogre
mit
10,199
267
codeparrot/github-code
c6ea0c6da8dadc83cf9d8d40855f566f8f7312a998a553d376b47e26c64f1c82
// --------------------------------------------------------------------------------------------- #region // Copyright (c) 2014, SIL International. All Rights Reserved. // <copyright from='2008' to='2014' company='SIL International'> // Copyright (c) 2014, SIL International. All Rights Reserved. // // Distribut...
C#
SIL.Scripture/VersificationTable.cs
mccarthyrb/libpalaso
mit
9,031
284
codeparrot/github-code
e5ffebbd8ce49e4d347a8f4149f84d43c151b846a93e74ee4f8d4984d860f92f
require 'sprockets/autoload' require 'sprockets/path_utils' module Sprockets class BabelProcessor VERSION = '1' def self.instance @instance ||= new end def self.call(input) instance.call(input) end def initialize(options = {}) @options = options.merge({ 'blacklist...
Ruby
lib/sprockets/babel_processor.rb
Andreis13/sprockets
mit
1,054
47
codeparrot/github-code
09c5fd9f08f043d6b1d4c40f8473c47bb2a997af8db89406ed8ddca179779313
'use strict'; const EventEmitter = require('events'); const uuid = require('node-uuid'); const ItemType = require('./ItemType'); const { Inventory, InventoryFullError } = require('./Inventory'); const Logger = require('./Logger'); const Player = require('./Player'); /** * @property {Area} area Area the it...
JavaScript
src/Item.js
CodeOtter/tech-career
mit
6,892
228
codeparrot/github-code
213d8ec8a3322e5266e40786849891aca310d77c771e386ec2cb063501a2cc39
using System; using System.Collections.Generic; using Foundation.ObjectHydrator.Interfaces; namespace Foundation.ObjectHydrator.Generators { public class UnitedKingdomCityGenerator : IGenerator<string> { private readonly Random _random; private IList<string> _citynames = new List<string>(); ...
C#
src/ObjectHydrator-master/Foundation.ObjectHydrator/Generators/UnitedKingdomCityGenerator.cs
flightlog/flsserver
mit
29,360
1,022
codeparrot/github-code
85f88cd2a1bb1eac82d62284d1737fa656f5bbbe329c2d928b840d5879811ad6
/*************************************************************************/ /* skeleton_modification_stack_3d.h */ /*************************************************************************/ /* This file is part of: */ /* ...
C
scene/resources/skeleton_modification_stack_3d.h
DmitriySalnikov/godot
mit
3,932
92
codeparrot/github-code
7966e12526144ef0474e2d8258ff8b1a21b7e14a3a0abdd15ce27510d716f51c
/* Copyright (c) 2007-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /** * \file geoip.c * \brief Functions related to maintaining an IP-to-country database; * to summarizing client connections by country to entry guards, bridges, * and directory servers; and for statistics on answering...
C
src/tor/or/geoip.c
BreakoutCoin/Breakout-Chain-Client
mit
58,156
1,739
codeparrot/github-code
ed009c539bf216c4c39df7e73df96ae3a8c9829555a03b7e52c6b36b1781d6b4
#ifndef __ABSPRITE_H #define __ABSPRITE_H #include <Arduino.h> #include <Adafruit_GFX.h> #include <Adafruit_ST7735.h> #include <SPI.h> #include "ab_lcd_image.h" #include "abImage.h" #define AB_SPRITE_SIZE 15 #define DEFAULT_MOVE_DIST 20 #define MAX_SCREEN_WIDTH 128 #define MAX_SCREEN_HEIGHT 160 class abSprite { pr...
C
examples/abSprite.h
rosshamish/c275-stamp
mit
949
52
codeparrot/github-code
90f0d1edb8aa1d0f607a4b0076beabd2433fa87c5360fd3eb7f82722c7fd03e2
///////////////////////////////// // Rich Newman // http://richnewman.wordpress.com/about/code-listings-and-diagrams/hslcolor-class/ // using System; using System.Drawing; namespace AldursLab.Essentials.Extensions.DotNet.Drawing { /// <summary> /// Color with Hue/Saturation/Luminescense representation. /...
C#
src/Common/Essentials/Extensions/DotNet/Drawing/HslColor.cs
mdsolver/WurmAssistant3
mit
4,772
147
codeparrot/github-code
5707c7f8fa969b94f95ae0587d895d6361895db5583838e1a3d24d2df7c0f030
using System; using Marten.Services; using Marten.Testing.Documents; using Marten.Testing.Harness; using Xunit; namespace Marten.Testing.CoreFunctionality { public class foreign_key_persisting_Tests: IntegrationContext { [Fact] public void persist_and_overwrite_foreign_key() { ...
C#
src/Marten.Testing/CoreFunctionality/foreign_key_persisting_Tests.cs
ericgreenmix/marten
mit
4,074
155
codeparrot/github-code
f12b6e7d4d97a969ba4bae12f0463b2645a2c81ed2c686405308f13506227148
// implementation for sturm_equation.h #include <cmath> #include <algorithm> #include <list> #include <utils/array1d.h> #include <algebra/vector.h> #include <algebra/sparse_matrix.h> #include <numerics/eigenvalues.h> #include <numerics/gauss_data.h> namespace WaveletTL { template <class WBASIS> SturmEquation<WB...
C++
WaveletTL/galerkin/sturm_equation.cpp
kedingagnumerikunimarburg/Marburg_Software_Library
mit
15,625
516
codeparrot/github-code
09bd3819c06063f93668bf312e8f926cf89ed0da7d073b2192ad140a73be3307
<?php /* * This file is part of the ONGR package. * * (c) NFQ Technologies UAB <info@nfq.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ONGR\ElasticsearchBundle\Serializer\Normalizer; use Symfony\Component\Serial...
PHP
Serializer/Normalizer/CustomReferencedNormalizer.php
lmikelionis/ElasticsearchBundle
mit
1,062
46
codeparrot/github-code
93d2f62fc3830ec322d6917ae49589c83d46cebeca26d1e52cdfc8dd5c471f54
<?php namespace PuphpetBundle\Twig; use RandomLib; class BaseExtension extends \Twig_Extension { /** @var \RandomLib\Factory */ private $randomLib; public function __construct(RandomLib\Factory $randomLib) { $this->randomLib = $randomLib; } public function getFunctions() { ...
PHP
src/PuphpetBundle/Twig/BaseExtension.php
thedeedawg/puphpet
mit
1,887
82
codeparrot/github-code
ed6c7b4ffca15788880849e311b0203089e3b99863bc2d8d49c13c8ecbc58450
# 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 w...
Makefile
docs/Makefile
alabid/pycrunchbase
mit
7,072
184
codeparrot/github-code
e6df8f9c57e02b9ce1c334116aeecda3d779d5888c7ca24877fbbe8d5e5011ee
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * 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 lim...
Java
core/src/test/java/hudson/model/LoadStatisticsTest.java
oleg-nenashev/jenkins
mit
4,339
136
codeparrot/github-code
79a07614c1aa79b8c79606b2bf6a42fa2eb19ae5190b9f1797847ea33f0a7f64
/// <reference path="../../../type-declarations/index.d.ts" /> import * as Phaser from 'phaser'; import { BootState } from './states/boot'; import { SplashState } from './states/splash'; import { GameState } from './states/game'; class Game extends Phaser.Game { constructor() { let width = document.documentEle...
TypeScript
src/client/game/index.ts
fuzzwizard/builders-game
mit
890
30
codeparrot/github-code
f57e3f64c1cf34ff8700745235599ad560ddefef90020ada0c53bb4b87009543
package com.xruby.runtime.lang; public abstract class RubyConstant extends RubyBasic { public static RubyConstant QFALSE = new RubyConstant(RubyRuntime.FalseClassClass) { public boolean isTrue() { return false; } }; public static RubyConstant QTRUE = new RubyConstant(RubyRuntim...
Java
platform/bb/RubyVM/src/com/xruby/runtime/lang/RubyConstant.java
Yashi100/rhodes3.3.2
mit
802
32
codeparrot/github-code
6d261c41439061f3445b755fa5f1bedae3041cb7190b16535e7963c0a713b97f
using System; namespace TestAPI.Areas.HelpPage { /// <summary> /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. /// </summary> public class InvalidSample { public InvalidSample(string errorMessage) { ...
C#
TestAPI/TestAPI/Areas/HelpPage/SampleGeneration/InvalidSample.cs
OasesOng/TestVS
mit
969
37
codeparrot/github-code
7aba0be82173aff9a3ab3a0d60b535d1617bbfd37bd0bb1e8f4e8375616aa9b4
// //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. //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...
C++
extern/glslang/glslang/OSDependent/Windows/ossource.cpp
TimNN/glslang-sys
mit
3,734
147
codeparrot/github-code
7e8d9c49351ba0a46c51891dfdac94a46e0f9b9ac31a692610e14674925dbad5
/* swdp-m0sub.c * * Copyright 2015 Brian Swetland <swetland@frotz.net> * * 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 ...
C
app/mdebug/swd-m0sub.c
nvll/lk
mit
4,971
198
codeparrot/github-code
484e5a851d42dbdbabedab46b70645d9544adad27baf83f658b34b1188a9e154
/* * Changes: * Jan 22, 2010: Created (Cristiano Giuffrida) */ #include "inc.h" /*===========================================================================* * do_up * *===========================================================================*/ PUBLIC int do_up(m_ptr) message *m_p...
C
src.clean/servers/rs/request.c
ducis/operating-system-labs
mit
19,836
697
codeparrot/github-code
ef6f278e2745ff4e3c5d8a7789b0b27a7fd8fd4c954dd3fc5e78f2f55068b5be
Template.HostList.events({ }); Template.HostList.helpers({ // Get list of Hosts sorted by the sort field. hosts: function () { return Hosts.find({}, {sort: {sort: 1}}); } }); Template.HostList.rendered = function () { // Make rows sortable/draggable using Jquery-UI. this.$('#sortable').sortable({ ...
JavaScript
client/views/hosts/hostList/hostList.js
bfodeke/syrinx
mit
1,204
45
codeparrot/github-code
b585c4d9a89f1c37790975297435e017c537bbc9248e195cc36e1c6c55cdc96c
using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Orleans; using Orleans.Runtime; using Orleans.Runtime.Scheduler; using UnitTests.GrainInterfaces; using UnitTests.Grains; namespace UnitTestGrains { public class TimerGrain : Grain, ITimerGrain { ...
C#
test/TestInternalGrains/TimerGrain.cs
jokin/orleans
mit
8,497
253
codeparrot/github-code
018180f0d3cdc41a1a0ef1c223ce0c0f92b1de958d1d1f8a4566416244fff9ba
#!/usr/bin/env python import sys def fix_terminator(tokens): if not tokens: return last = tokens[-1] if last not in ('.', '?', '!') and last.endswith('.'): tokens[-1] = last[:-1] tokens.append('.') def balance_quotes(tokens): count = tokens.count("'") if not count: return processed = 0 ...
Python
packs_sys/logicmoo_nlu/ext/candc/src/lib/tokeniser/fixes.py
TeamSPoon/logicmoo_workspace
mit
820
42
codeparrot/github-code
9bfdf6069d2d591912968c734bc0b08ecdaeb0d70a2932505b8031ed17410252
/* describe, it, afterEach, beforeEach */ import './snoocore-mocha'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; chai.use(chaiAsPromised); let expect = chai.expect; import config from '../config'; import util from './util'; import ResponseError from '../../src/ResponseError'; import Endpo...
JavaScript
test/src/ResponseError-test.js
empyrical/snoocore
mit
1,705
48
codeparrot/github-code
eec386c2ee404cdcfd52b38417add760bd39527b95404664892d26c7f0d62fcc
# -*- coding: utf-8 -*- """ webModifySqlAPI ~~~~~~~~~~~~~~ 为web应用与后台数据库操作(插入,更新,删除操作)的接口 api_functions 中的DataApiFunc.py为其接口函数汇聚点,所有全局变量设置都在此;所有后台函数调用都在此设置 Implementation helpers for the JSON support in Flask. :copyright: (c) 2015 by Armin kissf lu. :license: ukl, see LICENSE for more detail...
Python
app/api_1_0/webModifySqlAPI.py
dadawangweb/ukl-gsvc-web
mit
3,495
125
codeparrot/github-code