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
24b166364af37397e709ad64b1c973fefb6b0862e23c0a845101ee13fd4b89b3
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
Java
core/src/main/java/io/undertow/protocols/ssl/SslConduit.java
amannm/undertow
apache-2.0
42,506
1,169
codeparrot/github-code
b7d28b1b38068c6a1d8d226ce6ab1281b0fc3e057caabb1e246db06f5eb70949
/** * 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 n * "License"); y...
Java
core/src/main/java/io/snappydata/util/com/clearspring/analytics/stream/membership/DataOutputBuffer.java
vjr/snappydata
apache-2.0
2,903
107
codeparrot/github-code
8467b6ac09ae758f66bc0c1a5ae96e72e7ad109494fddc0904e5e7dce00294ec
/* * Copyright Terracotta, 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 ...
Java
impl/src/main/java/org/ehcache/config/serializer/DefaultSerializationProviderConfiguration.java
palmanojkumar/ehcache3
apache-2.0
1,821
46
codeparrot/github-code
444f65a3582d4e2affccbfa060e02d840886d5271b2afbaac5f79e50a63e3844
package network import ( "fmt" "net" ) // VethPairCreationError is returned if creating a virtual ethernet pair fails type VethPairCreationError struct { Cause error HostIfcName, ContainerIfcName string } func (err VethPairCreationError) Error() string { return fmtErr("failed to create v...
GO
network/errors.go
cloudfoundry-incubator/garden-linux
apache-2.0
3,379
121
codeparrot/github-code
40fdd956e860363aaacbeb9dd34d9ddbbf1347eb2a8d643d14837720c9552f8a
// Copyright 2016 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
C++
src/main/native/windows_file_operations.cc
juhalindfors/bazel-patches
apache-2.0
6,852
185
codeparrot/github-code
31391301e9765af7ea2818c28d44a1bb682a8cfa9f8bfa968ff6d0fe994858ca
/* * 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
modules/core/src/test/java/org/apache/ignite/testsuites/IgnitePortableCacheTestSuite.java
shurun19851206/ignite
apache-2.0
6,450
103
codeparrot/github-code
bffe215896b3e7365f0b4e511e843f0a5c33c869c650361d8dfb4d81a99688eb
using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Text; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Data.OracleClient; using Easy4net.Common; namespace Easy4net.DBUtility { public class AdoHelper { ...
C#
Easy4net/DBUtility/AdoHelper.cs
wangwei123/easy4net
apache-2.0
21,596
539
codeparrot/github-code
5cb74f32f942cd81b10e6f8609998bfe1e5cffa1453300ac2950242783559cca
package com.ftfl.icare.database; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.ftfl.icare...
Java
ICare/src/com/ftfl/icare/database/VaccineDataSource.java
nasser-munshi/Android
apache-2.0
5,201
196
codeparrot/github-code
1e61f1b98c007f131f74f424590fc61976334a09a22909132502b6d8d7ea2051
# Copyright (c) 2011 Intel Corporation # Copyright (c) 2011 OpenStack, LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/l...
Python
manila/scheduler/filter_scheduler.py
tucbill/manila
apache-2.0
8,816
218
codeparrot/github-code
19edcc237d533e7cbdccac5f267f3f3537f088acf26bdff59d6f19b31d4108e7
/* Copyright 2015 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
pkg/registry/batch/job/storage/storage.go
vwfs/fork-kubernetes
apache-2.0
2,961
94
codeparrot/github-code
271f3ec646639693a2313a71267ee7b5538f4a90658d58dfbe69bfd8581f5099
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
deployer/src/main/java/org/apache/brooklyn/entity/cloudfoundry/CloudFoundryEntity.java
kiuby88/SeaCloudsPlatform
apache-2.0
2,989
65
codeparrot/github-code
53f85e082ab902d11872c137806667c17e27c0932daf2b090548572cd669c003
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details of these ...
C++
third_party/JUCE/extras/Introjucer/Source/Project/jucer_ProjectContentComponent.cpp
nepholi/ScoringTable
apache-2.0
30,303
924
codeparrot/github-code
f4d25413701bca24ca6ec8c94e44b5a4fd8e8929d1c38bfb373b7ac52fc00bc3
import {ChangeDetectorRef, Component, OnInit} from '@angular/core'; import {DockerService} from "../../services/docker.service"; import 'rxjs/Rx'; import {toast} from "angular2-materialize"; import {Transform, Writable} from "stream"; declare let $: any; declare let jQuery: any; @Component({ selector: 'dm-contain...
TypeScript
src/app/components/containers/containers.component.ts
FonteSolutions/docker-manager
apache-2.0
28,501
652
codeparrot/github-code
e68af9310232353a635f584fb7bb12064a9ab516385ccdbcd5ff06e23d8c5f3e
/* * 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
yoko-spec-corba/src/main/java/org/omg/MessageRouting/UntypedReplyHandlerHelper.java
apache/geronimo-yoko
apache-2.0
3,825
137
codeparrot/github-code
d5dfa529b074481c0e8915056308500d585841442c6239ca54986767f75d7607
/* * Copyright 2021 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
spark/spark-spa/src/main/java/com/thoughtworks/go/spark/spa/StatusReportsController.java
marques-work/gocd
apache-2.0
8,851
174
codeparrot/github-code
3248f1d29583ca58d5bf0d950fbda401a19ada73685e0baf6157e4ecabee86c7
/** * @license * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ CLASS({ pack...
JavaScript
js/foam/apps/builder/wizard/NewOrExistingModelWizard.js
jlhughes/foam
apache-2.0
2,478
103
codeparrot/github-code
183945397a4f7ce32117ce842c9befef6c1575e7c53d507a391bdef10678ac90
/** @file Defines the PEI_USB_IO_PPI that the USB-related PEIM can use for I/O operations on the USB BUS. This interface enables recovery from a USB-class storage device, such as USB CD/DVD, USB hard drive, or USB FLASH drive. These interfaces are modeled on the UEFI 2.3 specification EFI_USB_IO_PROTOCOL....
C
third_party/edk2/MdeModulePkg/Include/Ppi/UsbIo.h
google/google-ctf
apache-2.0
8,092
197
codeparrot/github-code
6f32ed91c47ad7ae8d3724b626ca62573da6e1ca0254740b564b8d45a257f397
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancerWithNodeGroup.java
jsrudani/HadoopHDFSProject
apache-2.0
14,253
354
codeparrot/github-code
e25eb9d6167726f7a8826d9cf2b19402979120bc4cfb69bebef63a2c356d9108
package net.mgsx.game.blueprint.ui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.graphics.glutils....
Java
core/src/net/mgsx/game/blueprint/ui/GraphView.java
mgsx-dev/box2d-editor
apache-2.0
15,686
523
codeparrot/github-code
0cea52d90b005b19a55eee26a0362ad2c7f23df3b17202e77d04f5cfc6e1efe0
/* Licensed to Diennea S.r.l. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Diennea S.r.l. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except ...
Java
majordodo-net/src/main/java/majordodo/network/netty/GenericNettyBrokerLocator.java
diennea/majordodo
apache-2.0
4,536
112
codeparrot/github-code
b71e323bf7ec466675053f43ce8269cc7e2b3251574f3a6c6e22fe2644e0b3f7
# Copyright 2015 Google Inc. All Rights Reserved. """Context manager to help with Control-C handling during critical commands.""" import signal from googlecloudsdk.calliope import exceptions from googlecloudsdk.core import log from googlecloudsdk.test.lib import exit_code class CancellableTestSection(object): ""...
Python
smry/server-auth/ls/google-cloud-sdk/lib/googlecloudsdk/test/lib/ctrl_c_handler.py
wemanuel/smry
apache-2.0
1,298
39
codeparrot/github-code
8969257af9f7e39b8e0f002063aec2f7e9f6e5ce396425c9599b51f05c26919e
//===================================================================== // //File: $RCSfile: AllEditorsDirtyTest.java,v $ //Version: $Revision: 1.9 $ //Modified: $Date: 2013/05/10 06:01:48 $ // //(c) Copyright 2004-2014 by Mentor Graphics Corp. All rights reserved. // //=================================...
Java
src/com.mentor.nucleus.bp.ui.text.test/src/com/mentor/nucleus/bp/ui/text/test/i589Test/AllEditorsDirtyTest.java
HebaKhaled/bposs
apache-2.0
2,741
76
codeparrot/github-code
6a26d7c1c431e49b032628f1e8d75b3af417e0a544d815453494ec76c4681421
/* * Copyright (c) 2015-2016 Fraunhofer FOKUS * * 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...
JavaScript
src/main/resources/static/bower_components/jquery/src/ajax/parseXML.js
fhg-fokus-nubomedia/nubomedia-paas
apache-2.0
1,095
45
codeparrot/github-code
59cf0475c089ef3c7f6f12e47a0de296f106a0290756e717b53fe9a79cdc223a
/* * Copyright 2015 Open mHealth * * 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...
Java
shim-server/src/test/java/org/openmhealth/shim/withings/mapper/WithingsDailyCaloriesBurnedDataPointMapperUnitTests.java
smalldatalab/omh-shims
apache-2.0
4,148
89
codeparrot/github-code
4d3abebbf44a9ae7d73c1c16609e732fcc0b2465bb4654c140651a126f174d94
/** * Example from http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html * Fetched Apr. 25th. 2017 * Modifications to compile w. C++ compiler * - added 'int' before main * - Added return value to print message function **/ #include <stdio.h> #include <stdlib.h> #include <pthread.h> void *print_messag...
C++
test/posix/integration/pthread/service.cpp
hioa-cs/IncludeOS
apache-2.0
1,794
72
codeparrot/github-code
86b0e2e17c9f23f78296aa3434cdcd3af4d0a3f479335bbb108bdd321c80b0c5
package init // import "github.com/docker/infrakit/cmd/infrakit/util/init" import ( "fmt" "os" "strings" "time" "github.com/docker/infrakit/cmd/infrakit/manager/schema" "github.com/docker/infrakit/pkg/cli" group_types "github.com/docker/infrakit/pkg/controller/group/types" "github.com/docker/infrakit/pkg/lau...
GO
cmd/infrakit/util/init/init.go
docker/infrakit
apache-2.0
7,834
281
codeparrot/github-code
864486054f6dd29c16e8650e48b30c16ae3175cb4283287f826466e92363922f
// Based on https://github.com/chrisvfritz/vue-enterprise-boilerplate/blob/master/src/components/_globals.js // Globally register all base components for convenience, because they // will be used very frequently. Components are registered using the // PascalCased version of their file name. import Vue from 'vue'; impo...
JavaScript
app/assets/javascripts/globals.js
mssola/Portus
apache-2.0
1,270
38
codeparrot/github-code
f77a2045d3ebfaef1471ec93a024a4cf76ce354dfd0049c96a75377910c4504d
// Copyright (c) 2014 Datacratic. All rights reserved. package path import ( "bytes" "fmt" "strings" ) // P represents a path through an object seperated by '.' characters. A path can // also contain wildcard components indicated by a '*' character. Arrays and // slice indexes should be specified using non-negati...
GO
path/path.go
datacratic/gopath
apache-2.0
1,295
47
codeparrot/github-code
85efabdc7d2b6366e90c3c26943bc9fa4026dbefbcec87bbc278e78419771adf
package fsrateio import ( "io" "github.com/Symantec/Dominator/lib/rateio" "github.com/Symantec/tricorder/go/tricorder" "github.com/Symantec/tricorder/go/tricorder/units" ) type ReaderContext struct { maxBytesPerSecond uint64 maxBlocksPerSecond uint64 ctx *rateio.ReaderContext } func NewReader...
GO
lib/fsrateio/api.go
keep94/Dominator
apache-2.0
1,044
40
codeparrot/github-code
21b1771dd5835755ed0addeaf8e9af6d5bb27496cef07ed0c07b37bf54934952
/* * Licensed to Elastic Search and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Elastic Search licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you m...
Java
src/test/java/org/elasticsearch/index/mapper/UidTests.java
andrewvc/elasticsearch
apache-2.0
1,992
47
codeparrot/github-code
0e38f1b36dc72291d0fe8d0ed0d8a9e533a0348eba2c914d47ddced59e2f061d
package org.jolokia.detector; /* * Copyright 2009-2011 Roland Huss * * 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...
Java
agent/core/src/test/java/org/jolokia/detector/JBossDetectorTest.java
rhuss/jolokia
apache-2.0
9,007
225
codeparrot/github-code
517369a8275c2934b831e113ea74c7672bba26404c0d5c536c91e8e260971696
/* * 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
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/GridDistributedTxRemoteAdapter.java
ilantukh/ignite
apache-2.0
40,857
989
codeparrot/github-code
2159d9086299386ac232c93d98ac9b3f21c02731e8c5784be80cfba3229ce71e
#include "SkPictureRecord.h" #include "SkShape.h" #include "SkTSearch.h" #define MIN_WRITER_SIZE 16384 #define HEAP_BLOCK_SIZE 4096 SkPictureRecord::SkPictureRecord(uint32_t flags) : fHeap(HEAP_BLOCK_SIZE), fWriter(MIN_WRITER_SIZE), fRecordFlags(flags) { fBitmapIndex = fMatrixIndex = fPaintIndex = fRegion...
C++
B2G/external/skia/src/core/SkPictureRecord.cpp
sergecodd/FireFox-OS
apache-2.0
20,952
766
codeparrot/github-code
1809e257056a3b5086131b4f1661c2c96d165798bbf22183f77b7260aa3d08ef
package org.zstack.network.service; import org.springframework.beans.factory.annotation.Autowired; import org.zstack.core.componentloader.PluginRegistry; import org.zstack.core.db.Q; import org.zstack.core.db.SimpleQuery; import org.zstack.core.db.SimpleQuery.Op; import org.zstack.header.Component; import org.zstack.h...
Java
network/src/main/java/org/zstack/network/service/DhcpExtension.java
zstackorg/zstack
apache-2.0
14,549
332
codeparrot/github-code
8d799fd32cbc4e2470326bafce94f856daac3b94c21985a540213f30bb1fabb6
<?php /** * Contains all client objects for the TeamService * service. * * PHP version 5 * * Copyright 2016, Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
PHP
src/Google/Api/Ads/Dfp/v201508/TeamService.php
kl82/gadatabquery
apache-2.0
73,217
3,010
codeparrot/github-code
6060f7e1f572fa30d98d0322202cbf6cafdc796ddc8779239075f7bc3eb8f21b
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ define([ 'underscore', 'backbone', 'knockout', "protocol", 'contrail-model', 'query-or-model', 'query-and-model', 'core-basedir/reports/qe/ui/js/common/qe.utils', 'contrail-list-model', ], function (_, Backbone...
JavaScript
webroot/js/models/QueryFormModel.js
nagakiran/contrail-web-core
apache-2.0
30,991
763
codeparrot/github-code
8c321700ad093cf1031021f2d0c73560ba0590be9aa223b1873412a2dd8fa273
/** * jQuery Twitter Bootstrap Flickr Carousel v1.0.0 * http://jguadagno.github.io/twbs-FlickrCarousel/ * * Copyright 2014, Joseph Guadagno * Released under Apache 2.0 license * http://apache.org/licenses/LICENSE-2.0.html */ ; (function ($, window, document, undefined) { 'use strict'; var old = $.fn.twbsFlick...
JavaScript
js/jquery.twbsFlickrCarousel.js
coderwurst/twbs-flickrCarousel
apache-2.0
10,017
251
codeparrot/github-code
f366902e8703ebcd1e6af1aca6b22f98885f371da7d8fd154760d1608c414cdb
from __future__ import division import json import os import copy import collections import argparse import csv import neuroglancer import neuroglancer.cli import numpy as np class State(object): def __init__(self, path): self.path = path self.body_labels = collections.OrderedDict() def loa...
Python
python/neuroglancer/tool/filter_bodies.py
janelia-flyem/neuroglancer
apache-2.0
6,932
191
codeparrot/github-code
15b304a1e2e0e451916aa4d1d4c13287900874c1eb6171e366ad7eb3231a8142
/* * 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
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionState.scala
jianran/spark
apache-2.0
9,651
271
codeparrot/github-code
3bb0a03960ad28350b85cb20f47f67db9f7b5a903be87eb5b29c77d9750df1e2
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
stream/statelib/src/test/java/org/apache/bookkeeper/statelib/impl/mvcc/TestMVCCAsyncBytesStoreImpl.java
ivankelly/bookkeeper
apache-2.0
17,417
472
codeparrot/github-code
2c5913ab1bc828250d498295c5da93ecb14a66d0b246b628f5433937bc4cfc6a
""" # 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...
Python
binding-python/runtime/src/main/python/etch/binding/util/StrStrHashMapSerializer.py
OBIGOGIT/etch
apache-2.0
2,642
72
codeparrot/github-code
07d863c07fd6e83369a588e3298623c654a535d96c09746d9f14c1ea7c05a318
/* * Copyright 2021 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 applica...
Java
library/common/src/test/java/com/google/android/exoplayer2/PlaybackParametersTest.java
google/ExoPlayer
apache-2.0
1,275
37
codeparrot/github-code
f25c2f3e5b4fe7989374a3cd127409f1f02846f338a72418fc429047dc622e72
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Java
extensions-core/google-extensions/src/test/java/org/apache/druid/storage/google/GoogleStorageTest.java
monetate/druid
apache-2.0
3,707
92
codeparrot/github-code
91f13b66c7869097ba70017f3736df2ba204e5ec5c687a028be2cf4fbd4529a8
package org.wildfly.swarm.container.config; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import org.wildfly.swarm.spi.api.config.ConfigKey; import org.wildfly.swarm.spi.api.config.ConfigTree; import org...
Java
core/container/src/main/java/org/wildfly/swarm/container/config/ConfigNode.java
emag/wildfly-swarm
apache-2.0
6,392
251
codeparrot/github-code
530df61e17d2a041a72dcecba2f7c4a97daf77b8b1c62d4b572089d3e089e0ba
""" Support for MQTT vacuums. For more details about this platform, please refer to the documentation at https://www.home-assistant.io/components/vacuum.mqtt/ """ import logging import voluptuous as vol from homeassistant.components.vacuum import DOMAIN from homeassistant.components.mqtt import ATTR_DISCOVERY_HASH f...
Python
homeassistant/components/mqtt/vacuum/__init__.py
joopert/home-assistant
apache-2.0
2,361
70
codeparrot/github-code
8f1883ca0f80f95f0470b5a6f045f942e2daa85143054606825a19881d5489af
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
Java
org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/ui/preferences/MappingSetupPreferencePage.java
apache/ant-ivyde
apache-2.0
2,561
64
codeparrot/github-code
2748466400fc811dc3d94c9b2b30632252a3bab482894831be6c5cf8b6492e93
package org.jasig.cas.monitor; import org.jasig.cas.mock.MockService; import org.jasig.cas.ticket.ExpirationPolicy; import org.jasig.cas.ticket.TicketGrantingTicketImpl; import org.jasig.cas.ticket.UniqueTicketIdGenerator; import org.jasig.cas.ticket.registry.DefaultTicketRegistry; import org.jasig.cas.ticket.registry...
Java
cas-server-core-monitor/src/test/java/org/jasig/cas/monitor/SessionMonitorTests.java
y1011/cas-server
apache-2.0
3,177
85
codeparrot/github-code
79e4d82ba4775bba253e64b6cd171f98b711f86a3c9610ded42c2bbba334bc98
/** * Copyright (C) 2012 52°North Initiative for Geospatial Open Source Software GmbH * * 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....
Java
sir-it/src/test/java/org/n52/sir/oldIT/InsertSensorStatus.java
52North/OpenSensorSearch
apache-2.0
1,764
50
codeparrot/github-code
8422fe7a12b49ffc944f4421d1804343d4eeeffbc49d2d8b0dc71e6d84f2193c
using System.Collections.Generic; using System.Linq; namespace Helios.Net.Providers { public abstract class KeyedConnectionProviderBase<TKey> : ConnectionProviderBase, IKeyedConnectionProvider<TKey> { // ReSharper disable once InconsistentNaming protected IDictionary<TKey, IConnection> _connections; ...
C#
src/Helios/Net/Providers/KeyedConnectionProviderBase.cs
amccool/helios
apache-2.0
1,263
37
codeparrot/github-code
b59b1afa28fb77f5c7c499f7a1db3317b677a18a845d5c382410be3321341ab9
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
Java
server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/bucket/ReverseNestedIT.java
ern/elasticsearch
apache-2.0
36,667
736
codeparrot/github-code
8064fd5b7e5e50f9ca4987ab7887027f1a5b5a32040088714205002789fcf2ff
/* * Copyright 2000-2016 Vaadin Ltd. * * 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...
Java
client/src/main/java/com/vaadin/client/widget/grid/selection/MultiSelectionRenderer.java
Darsstar/framework
apache-2.0
28,136
781
codeparrot/github-code
b4477cc8226afd181dadbfa566542181a6198eccac845b4dbc8d0dc3b6257017
package org.wso2.developerstudio.datamapper.diagram.edit.parts; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.Label; import org.eclipse.draw2d.RectangleFigure; import org.eclipse.draw2d.RoundedRectangle; import org.eclipse.draw2d.Shape; import org.eclipse.draw2d.StackLayout; import org.eclipse.draw2d.Ti...
Java
plugins/org.wso2.developerstudio.visualdatamapper.diagram/src/org/wso2/developerstudio/datamapper/diagram/edit/parts/EqualEditPart.java
prabushi/devstudio-tooling-esb
apache-2.0
5,756
232
codeparrot/github-code
9691f1b9f4f6c0f9ddd1f799f0c75cef7de9230b8a995eab87d7f6c4e665d52a
/* * Copyright 2014-present Facebook, 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...
Java
src/com/facebook/buck/apple/PlistProcessStep.java
MarkRunWu/buck
apache-2.0
2,840
94
codeparrot/github-code
dceedf52150d4e5a76ef53adead7f762dd7ea2e90b2f24ebce89f0d61824cd4d
<?php /* * 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")...
PHP
php/src/social/spi/UserId.php
hoatle/gatein-shindig
apache-2.0
1,739
60
codeparrot/github-code
817306bb55b5f686e7280ab5d6cc242d46631496498ed3c90adb1a59f9898e31
/* Copyright (C) 2013-2015 Computer Sciences Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
warehaus/service/src/main/java/ezbake/warehaus/AccumuloWarehaus.java
ezbake/ezbake-platform-services
apache-2.0
79,271
1,690
codeparrot/github-code
abe622ac11c65c671c5174859995de23a8b352206eace92431dae6608b0c3647
/* * chasetrace.c * Where all the hard work concerning chasing * and tracing is done * (c) 2005, 2006 NLnet Labs * * See the file LICENSE for the license * */ #include <ldns/ldns.h> #define HAVE_SSL /** * Chase the given rr to a known and trusted key * * Based on drill 0.9 * * the last argument prev_key...
C
libauth/chasetrace.c
gimu/tcpcrypt
bsd-2-clause
6,850
266
codeparrot/github-code
0e589b70517266ae258586e75e5fc2609d2d02296723daec15474605e0254270
import json from idpproxy.social.oauth import OAuth import oauth2 as oauth #from xml.etree import ElementTree as ET import logging logger = logging.getLogger(__name__) __author__ = 'rohe0002' class LinkedIn(OAuth): def __init__(self, client_id, client_secret, **kwargs): OAuth.__init__(self, client_id, cli...
Python
src/idpproxy/social/linkedin/__init__.py
rohe/IdPproxy
bsd-2-clause
1,002
31
codeparrot/github-code
8e3b1498d50d763a203119b202df19f03e4be00617ab392785b452a475f07305
/* $NetBSD: tmpfs_fifoops.c,v 1.5 2005/12/11 12:24:29 christos Exp $ */ /*- * Copyright (c) 2005 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Julio M. Merino Vidal, developed as part of Google's Summer of Code * 2005 program. ...
C
head/sys/fs/tmpfs/tmpfs_fifoops.c
dplbsd/zcaplib
bsd-2-clause
3,167
100
codeparrot/github-code
2345afac921b050d92bc02bb48b93c1371eae4d484794fed7608836500606a12
/* * Copyright (c) 2018, Magic fTail * 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 conditio...
Java
runelite-client/src/main/java/net/runelite/client/plugins/worldmap/MinigameLocation.java
Sethtroll/runelite
bsd-2-clause
4,495
85
codeparrot/github-code
7c5a079bba4a7eba4c3611742635d32a1f76aa2881c166e221067dfe771f6b88
class Re2 < Formula desc "Alternative to backtracking PCRE-style regular expression engines" homepage "https://github.com/google/re2" url "https://github.com/google/re2/archive/2019-01-01.tar.gz" version "20190101" sha256 "bee07121ce72ce10ccacb84e49b29d091ca18d5d14d950ab7c4657a0903655db" head "https://githu...
Ruby
Formula/re2.rb
adamliter/homebrew-core
bsd-2-clause
1,354
42
codeparrot/github-code
909ef3a17a87ef032aad9e398f08c6d81517d68a408fa2468c3bfcd0065fe385
class Onepass < Formula desc "Command-line interface for 1Password" homepage "https://github.com/georgebrock/1pass" url "https://github.com/georgebrock/1pass/archive/0.2.1.tar.gz" sha256 "44efacfd88411e3405afcabb98c6bb03b15ca6e5a735fd561653379b880eb946" head "https://github.com/georgebrock/1pass.git" revisi...
Ruby
Formula/onepass.rb
jvehent/homebrew-core
bsd-2-clause
2,453
61
codeparrot/github-code
6aa339f1d587cfda5944f79e1e9758c83f9d9a016bc0525a7e940ad95aef5529
using UnityEngine; using System; public class FRadialWipeSprite : FSprite { protected float _baseAngle; protected float _percentage; protected bool _isClockwise; protected Vector2[] _meshVertices = new Vector2[7]; protected Vector2[] _uvVertices = new Vector2[7]; public FRadialWipeSprite (string elementName, b...
C#
source/Assets/Futile/Extras/FRadialWipeSprite.cs
tutsplus/Match-Puzzle-Shapes-Using-Bitmasks
bsd-2-clause
9,628
339
codeparrot/github-code
f081aa486398b7d48d95235a9ee87c85b90bcc15141732bff2c39ae4516d98ef
package com.github.sandor_balazs.nosql_java.web.rest.dto; import java.time.ZonedDateTime; import com.github.sandor_balazs.nosql_java.domain.User; /** * A DTO extending the UserDTO, which is meant to be used in the user management UI. */ public class ManagedUserDTO extends UserDTO { private Long id; priva...
Java
oracle/src/main/java/com/github/sandor_balazs/nosql_java/web/rest/dto/ManagedUserDTO.java
sandor-balazs/nosql-java
bsd-2-clause
1,749
73
codeparrot/github-code
e102a6627c44ddd60266c4581e03386bed48631f0d1ce51858ff3bf65ab25f8a
/*- * Copyright (c) 2007 Seccuris Inc. * All rights reserved. * * This software was developed by Robert N. M. Watson under contract to * Seccuris Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Red...
C
head/sys/net/bpf_zerocopy.c
dplbsd/soc2013
bsd-2-clause
16,710
600
codeparrot/github-code
3db4e56d0f26fb082435d5584c4eadae0d5874c66809e1fa646376306fd1bb70
package cz.metacentrum.perun.webgui.tabs.servicestabs; import com.google.gwt.cell.client.FieldUpdater; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.user.cellview.client.CellTable; impo...
Java
perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/servicestabs/ServicesTabItem.java
Holdo/perun
bsd-2-clause
6,192
220
codeparrot/github-code
5ac3218f97d9e424bed95a256562a75a4859012cf69df4bd160f8cc735ef49a2
/** Copyright 2012, Adam L. Davis, all rights reserved. */ package com.adamldavis.z.java; import static java.util.Arrays.asList; import groovy.lang.Binding; import groovy.lang.GroovyShell; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.uti...
Java
src/com/adamldavis/z/java/GroovyPlay.java
adamd/z
bsd-2-clause
4,720
148
codeparrot/github-code
b4c18a0dd3c183a44a513fa6023b59e5f06ac210e49b6565dcdff1f1e7601258
# -*- coding: UTF-8 -*- # Copyright 2019-2021 Rumma & Ko Ltd # License: GNU Affero General Public License v3 (see file COPYING for details) import subprocess from rstgen.utils import confirm from django.core.management.base import BaseCommand from django.conf import settings def runcmd(cmd, **kw): # same code as in...
Python
lino/management/commands/install.py
lino-framework/lino
bsd-2-clause
1,888
50
codeparrot/github-code
8a717de05f9fafc855f2e66561f48c6684a14ac7df87dd338e66ff67933add04
package com.vladsch.flexmark.ext.toc; import com.vladsch.flexmark.util.sequence.BasedSequence; import org.jetbrains.annotations.NotNull; /** * A simulated toc block node */ public class SimTocBlock extends TocBlockBase { protected BasedSequence anchorMarker = BasedSequence.NULL; protected BasedSequence open...
Java
flexmark-ext-toc/src/main/java/com/vladsch/flexmark/ext/toc/SimTocBlock.java
vsch/commonmark-java
bsd-2-clause
2,636
74
codeparrot/github-code
5730b03f86023161d3cbc17239f1f24d36f6f2426e8f0bb59bb145e554bb365e
/** * @file * @brief * * @date 20.08.2012 * @author Andrey Gazukin */ /** * cdfs.c * * ISO-9660 CD-ROM Filesystem * * Copyright (C) 2002 Michael Ringgaard. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
C
src/fs/driver/iso9660/cdfs.c
mike2390/embox
bsd-2-clause
25,988
1,180
codeparrot/github-code
01794283e5e1b27a00fdee89ff5b51ac4771f2a4ac7fab216d273673c56277dc
/* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) an...
C
platform/graphics/texmap/GraphicsLayerTextureMapper.h
aosm/WebCore
bsd-2-clause
7,559
196
codeparrot/github-code
257ec9ecbd74f2fe70f7438de3a977cc4a64096c9d9fa9b8afa4d2fada3d4927
/* Copyright (c) Citrix Systems, 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 l...
C#
XenAdmin/Commands/DragDropCrossPoolMoveHaltedVMCommand.cs
kc284/xenadmin
bsd-2-clause
7,786
188
codeparrot/github-code
b9625ae2936509008a2a28ab1573191911b59cbe459ad727719a17292c79c4b3
import shutil import json from rest_framework import routers, serializers, viewsets, parsers, filters from rest_framework.views import APIView from rest_framework.exceptions import APIException from rest_framework.response import Response from django.core.exceptions import ValidationError from django.core.files.uploa...
Python
source/memex/rest.py
memex-explorer/memex-explorer
bsd-2-clause
8,218
223
codeparrot/github-code
4f6d89b916174f50154710d33831b6b0c99d35c11267775a14805aff92b25f9b
/*- * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 * The Regents of the University of California. 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 mu...
C
head/sys/netinet/tcp_timer.c
dplbsd/zcaplib
bsd-2-clause
21,006
743
codeparrot/github-code
bef99d8b670910bf237023ce87a5d27877641f21dd16a5468c4680e6b897a8f6
from . import numeric as _nx from .numeric import asanyarray, newaxis def atleast_1d(*arys): res = [] for ary in arys: ary = asanyarray(ary) if len(ary.shape) == 0 : result = ary.reshape(1) else : result = ary res.append(result) if len(res) == 1: ...
Python
afnumpy/core/shape_base.py
FilipeMaia/afnumpy
bsd-2-clause
1,076
45
codeparrot/github-code
3e2d45cabad6ff730fb41fa4f48a0e2cc754d4fe6606dbbf3f1f1a666ce12c80
/***************************** Copyright 2011 Rafael Muñoz Salinas. 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...
C
src/boarddetector.h
atinfinity/ArUco
bsd-2-clause
6,554
152
codeparrot/github-code
f646cd632f3ea5b61310b4a398c3a26ba92757b8885cb4cf3de03b6c388417ea
#include <math.h> #include "../include/TimeMgr.h" #include "../include/ObjectInstance.h" #include "dxdefines.h" #include "DxTools.h" #include "../../falclib/include/mltrig.h" #include "dxengine.h" #ifndef DEBUG_ENGINE // This function just assign a PMatrix object to a DX Compliant Matrix void AssignPmatrixToD3DXMATR...
C++
src/graphics/dxengine/dxtools.cpp
markbb1957/FFalconSource
bsd-2-clause
10,238
335
codeparrot/github-code
82a873d523ad5f5cf0bf6e0569da6653764ec67e81949d746b317b6e28f6695a
# No head build supported; if you need head builds of Mercurial, do so outside # of Homebrew. class Mercurial < Formula desc "Scalable distributed version control system" homepage "https://mercurial-scm.org/" url "https://www.mercurial-scm.org/release/mercurial-5.3.2.tar.gz" sha256 "fed24cbc314d31b0780309ee324c...
Ruby
Formula/mercurial.rb
mvitz/homebrew-core
bsd-2-clause
2,146
66
codeparrot/github-code
7dd42d486a60a75c3301ebb8cf92d6213591be3c23416788a639c78bc8fc8eef
package ezvcard.parameter; import java.lang.reflect.Constructor; import ezvcard.VCardVersion; import ezvcard.util.CaseClasses; /* Copyright (c) 2012-2015, Michael Angstadt All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follow...
Java
src/main/java/ezvcard/parameter/VCardParameterCaseClasses.java
fullcontact/ez-vcard
bsd-2-clause
2,566
69
codeparrot/github-code
00d70161abe318491fce49ed360075fd9bcb06c975cbfea1a98239ca298a869b
///////////////////////////////////////////////////////////////////////////// // Name: webview.cpp // Purpose: wxWebView sample // Author: Marianne Gagnon // Copyright: (c) 2010 Marianne Gagnon, Steven Lamerton // Licence: wxWindows licence /////////////////////////////////////////////////////////...
C++
wxWidgets-3.1.0/samples/webview/webview.cpp
adouble42/nemesis-current
bsd-2-clause
35,469
1,061
codeparrot/github-code
836f2888112c9baf7cf9e89dd0f060406fdd7fefea361d378519672ae792b205
// 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/visitedlink/browser/visitedlink_writer.h" #include <stdio.h> #include <string.h> #include <algorithm> #include <utility> #inclu...
C++
components/visitedlink/browser/visitedlink_writer.cc
nwjs/chromium.src
bsd-3-clause
40,799
1,168
codeparrot/github-code
851d64fa00325502581868a4978a10b1014e31a15a998c05e5951bc11562eea0
/* * 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 ...
C
hadoop/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/NativeIO.c
linpawslitap/mds_scaling
bsd-3-clause
11,300
420
codeparrot/github-code
9fab70a77217e59fc5cddd432d450f76b21f71d2916271f84dae97e720602c38
'use strict'; // utility for field require('./globals'); var consts = require('./consts'), c = consts.shorthand, time = require('./compiler/time'), util = require('./util'), schema = require('./schema/schema'); var vlfield = module.exports = {}; /** * @param field * @param opt * opt.nofn -- exclude bi...
JavaScript
src/field.js
vivekratnavel/vega-lite
bsd-3-clause
5,310
211
codeparrot/github-code
03e8a87243997488f10b66a2cfdea8fcccf91356ad405f210ac7db4254b1b83c
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_int_54c.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-54c.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack *...
C++
xcc/test/juliet/testcases/CWE401_Memory_Leak/s02/CWE401_Memory_Leak__new_int_54c.cpp
JianpingZeng/xcc
bsd-3-clause
1,241
60
codeparrot/github-code
b381c8061821e2f4b3d40595f35e24c72e398b3966d6d4627aca44993558eac8
""" Implements a simple, robust, safe, Messenger class that allows one to register callbacks for a signal/slot (or event/handler) kind of messaging system. One can basically register a callback function/method to be called when an object sends a particular event. The Messenger class is Borg. So it is easy to instanti...
Python
tvtk/messenger.py
liulion/mayavi
bsd-3-clause
10,137
313
codeparrot/github-code
a22fbc18686dbd8ba6db14b1210223b554dcc105c24e8b61ed5e50b16b488190
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="icon" type="image/ico" href="/tools/dlpage/res/chrome/images/chrome-16.png"><title>Google Chrome Terms of Service</title> <s...
HTML
chrome/app/resources/terms/terms_ar.html
kuiche/chromium
bsd-3-clause
43,376
259
codeparrot/github-code
44af9e180ea7a94ccb1fced279c73dae9844dd9d18c377eef42362e308b05ef6
package com.dslplatform.json; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.List; public abstract class StringConverter { public static final JsonReader.ReadObject<String> READER = new JsonReader.ReadObject<String>() { @Nullable @Override public String r...
Java
library/src/main/java/com/dslplatform/json/StringConverter.java
ngs-doo/dsl-json
bsd-3-clause
3,698
117
codeparrot/github-code
29a950d540c8b49c92cea0df2c8a77bb2f0b7ea1beb05303e95bd0353dcd6213
# -*- coding: utf-8 -*- import ipaddress __all__ = [ 'config_to_map', 'get_region' ] def config_to_map(topology_config): """ args: topology_config: dict { 'region1': [ '10.1.1.0/24', '10.1.10.0/24', '172.1...
Python
polaris_common/topology.py
polaris-gslb/polaris-core
bsd-3-clause
2,452
95
codeparrot/github-code
0fa62ecf4329b6bea15690b9801599c937f7fb618b3064ef358cb4f84a4a6b4a
/* * Copyright (c) 2013, R. van Twisk * All rights reserved. * Licensed under the The BSD 3-Clause License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://opensource.org/licenses/BSD-3-Clause * * Redistribution and use in source and bina...
Java
cnctools/src/main/java/com/rvantwisk/cnctools/misc/ProjectModel.java
rvt/cnctools
bsd-3-clause
10,361
269
codeparrot/github-code
009c51101c5f8dd42fcab0d9f5e300f4e2fc601ef334858f5d47ea24edec9916
package org.hisp.dhis.system.log; /* * Copyright (c) 2004-2018, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above cop...
Java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/log/Log4JLogConfigInitializer.java
msf-oca-his/dhis-core
bsd-3-clause
6,474
166
codeparrot/github-code
1bb6c03df264ed5ca4fb19a98f9c0ad4460530405b838bbc57fc92ae2c7a6b2a
// Copyright 2014 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. // Removal of dead code and data. package main import "cmd/internal/goobj" // dead removes unreachable code and data from the program. // It is basically a m...
GO
src/cmd/newlink/dead.go
mwhudson/go
bsd-3-clause
1,803
75
codeparrot/github-code
e45965316698aada16a2574d4910817ef8dfa525cea468390a2817a158c1ff19
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
C
Modules/ModelFit/include/mitkTestModelFactory.h
fmilano/mitk
bsd-3-clause
1,264
52
codeparrot/github-code
a23a1154a8cc5af8b4d1d92796f37989b9ff62f404579b5efaa8e7744c4542fc
///////////////////////////////////////////////////////////// // Copyright (C) 2003-2006 Bryan Clark and Kenneth Esler // // // // This program is free software; you can redistribute it // // and/or modify it under the terms of the GNU General // // Public ...
C++
test/performance-regression/full-apps/qmcpack/src/QMCTools/ppconvert/src/common/PotentialBase.cc
habanero-rice/hclib
bsd-3-clause
1,244
42
codeparrot/github-code
e9ac7446cb026bc5c6d0ccc844cfab5ffaac7bf79c89252d9b1ce12420695ba8
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from django.db.models import Q # from djangobmf.permissions import ModulePermission from djangobmf.utils import FilterQueryset class GoalFilter(FilterQueryset): def filter_queryset(self, qs, user): if user.has_perm(...
Python
djangobmf/contrib/task/permissions.py
django-bmf/django-bmf
bsd-3-clause
2,444
57
codeparrot/github-code
e8225fe6a7e713bb3ac4d3dc7947520c35f26866cfb1b25207d94c1afa048585
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/disk_cache/blockfile/backend_worker_v3.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/files/file_path.h" #incl...
C++
net/disk_cache/blockfile/backend_worker_v3.cc
Workday/OpenFrame
bsd-3-clause
12,956
468
codeparrot/github-code
2a42570cb79b07ce88ee2a14c5019e72245127a46b7b31bf6b85763d666d0050
// Copyright 2009 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 scanner provides a scanner and tokenizer for UTF-8-encoded text. // It takes an io.Reader providing the source, which then can be tokenized // throug...
GO
src/text/scanner/scanner.go
vectaport/go
bsd-3-clause
17,656
694
codeparrot/github-code
8da0e32bfb818e64c2117c1d6012188dbf7e35fb10bbc71385bbec2c5a741c03
/* Copyright 2019 The Chromium OS 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 "common.h" #include "led_onoff_states.h" #include "led_common.h" #include "gpio.h" #define LED_OFF_LVL 1 #define LED_ON_LVL 0 __override...
C
board/treeya/led.c
coreboot/chrome-ec
bsd-3-clause
3,606
110
codeparrot/github-code
92ef4de105ad997819f8f1a9e4f61910c82b25cc3e90891e7ce3749cc4550df4
// 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 "ui/ozone/platform/cast/overlay_manager_cast.h" #include "base/bind.h" #include "base/location.h" #include "base/memory/ref_counted.h" #include ...
C++
ui/ozone/platform/cast/overlay_manager_cast.cc
CapOM/ChromiumGStreamerBackend
bsd-3-clause
7,796
219
codeparrot/github-code
b629d816c9cfce874a7b1deb7d36eb1864dfc1fd806394610468691d6834da16
#!/usr/bin/env python """Command-line tool for starting a local Vitess database for testing. USAGE: $ run_local_database --port 12345 \ --topology test_keyspace/-80:test_keyspace_0,test_keyspace/80-:test_keyspace_1 \ --schema_dir /path/to/schema/dir It will run the tool, logging to stderr. On stdout, a sm...
Python
py/vttest/run_local_database.py
tjyang/vitess
bsd-3-clause
3,537
104
codeparrot/github-code
e8e433f8605dde98c12248946622eab37ce9db5054a6ddedd952c8ab7b348c98
/***************************************************************************** Copyright (c) 2011,2012 Lab of Parallel Software and Computational Science,ISCAS All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are ...
C
driver/others/memory.c
larsmans/OpenBLAS
bsd-3-clause
30,709
1,352
codeparrot/github-code
600651fd18ab9af2acb5d279c5ac2f0a5d8fce543bdd447885922f8df9486d2b
#include <mpi.h> #include <sys/time.h> #include <iostream> #include <functional> #include <algorithm> #include <vector> #include <string> #include <sstream> #include <stdint.h> #ifdef NOTR1 #include <boost/tr1/memory.hpp> #else #include <tr1/memory> #endif double cblas_alltoalltime; double cblas_allga...
C++
CombBLAS/Applications/SpMMError.cpp
harperj/KDTSpecializer
bsd-3-clause
3,122
109
codeparrot/github-code