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
e60b1d59562364f0e05200d0bfae3d62e78804a7a93dd0b8d33fdb1c38ea7da0
from __future__ import unicode_literals from collections import defaultdict import datetime import json from moto.compat import OrderedDict from moto.core import BaseBackend from moto.core.utils import unix_time from .comparisons import get_comparison_func class DynamoJsonEncoder(json.JSONEncoder): def default(s...
Python
moto/dynamodb/models.py
silveregg/moto
apache-2.0
9,875
314
codeparrot/github-code
aa6245f1d12d88d1b77de81d1ea6c0e0f9cd2677ea0649768e9ecf6ea417b6b9
/* * * Copyright (C) 2011, 2015 Cisco Systems, Inc. * Copyright (C) 2015 CBA research group, Technical University of Catalonia. * * 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: * * ...
C
oor/liblisp/lisp_message_fields.c
Lluiso/oor
apache-2.0
3,115
127
codeparrot/github-code
7c0d8e2b065c48e1656cbbcd6ebd276fa66da453d0ce18061cf8b8232e3e8abb
package com.qianjia.statuslayout; import android.content.Context; import android.content.res.TypedArray; import android.support.annotation.AnimRes; import android.support.annotation.NonNull; import android.support.annotation.StringRes; import android.support.v4.widget.ContentLoadingProgressBar; import android.text.Tex...
Java
statuslayout/src/main/java/com/qianjia/statuslayout/StatusLayout.java
Jiansion/ZhiHuRiBao
apache-2.0
8,745
294
codeparrot/github-code
aef3ac611ec9a9cfe5121b6ef417b58d0d23e57ce4951ee0469264c98160ab12
/* * Copyright 2014-2021 Netflix, 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...
Scala
atlas-core/src/main/scala/com/netflix/atlas/core/model/ItemIdCalculator.scala
brharrington/atlas
apache-2.0
3,986
147
codeparrot/github-code
ed032267cabb9265884533234047003ff474e6bb75cc6abe628d336fec80b28b
package pod import ( "fmt" "math/rand" "net" "github.com/miekg/dns" "github.com/openshift/origin/pkg/oc/admin/diagnostics/diagnostics/types" "k8s.io/apimachinery/pkg/util/sets" ) const ( PodCheckDnsName = "PodCheckDns" txtDP2016 = ` Query to nameserver %s for random subdomain of %s returned an answer, ...
GO
pkg/oc/admin/diagnostics/diagnostics/pod/dns.go
nhr/origin
apache-2.0
6,976
164
codeparrot/github-code
83d38bffee92ac7ea71b65ab2a355b1d60bf3db958110a08ea8bdd96be583c2d
/* * 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
core/src/main/java/org/elasticsearch/bootstrap/JNANatives.java
jbertouch/elasticsearch
apache-2.0
8,615
197
codeparrot/github-code
4435a02bdaff06826d592184bebddc4904d1181babd72055861b9077c83cc9aa
#ifndef ALLOCGC_UTILITY_H #define ALLOCGC_UTILITY_H #include <type_traits> namespace allocgc { namespace details { namespace utils { template <typename... > using void_t = void; class noncopyable { public: noncopyable() = default; noncopyable(const noncopyable&) = delete; noncopyable& operator=(const n...
C++
allocgc/include/liballocgc/details/utils/utility.hpp
eucpp/gcmalloc
apache-2.0
1,281
63
codeparrot/github-code
1ed4f9e3b0833d526e4ec2eef34f22163174ed7cc805d630da8510e7e297454d
"""Helper to help store data.""" from __future__ import annotations import asyncio from collections.abc import Callable from contextlib import suppress from json import JSONEncoder import logging import os from typing import Any from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE from homeassistant.core i...
Python
homeassistant/helpers/storage.py
aronsky/home-assistant
apache-2.0
8,433
256
codeparrot/github-code
3644029b5ec87f0741636a06920568e1b37e5b9ec6404af8347855d7918a7f79
/* * 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, software * distribu...
Java
subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/UninstallAction.java
kameshsampath/aries
apache-2.0
1,851
60
codeparrot/github-code
a13ae60ed967d5c5b2de5588cb5689e3bbaf5eae7403a67bb17d24341ed5753d
/* * * Hands-On code of the book Introduction to Reliable Distributed Programming * by Christian Cachin, Rachid Guerraoui and Luis Rodrigues * Copyright (C) 2005-2011 Luis Rodrigues * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
Java
src/vanilladbcomm/vanillacomm/protocols/consensusUTO/ConsensusUTOSession.java
p158276/vanilladb-comm
apache-2.0
16,792
539
codeparrot/github-code
db189ce0eca86582492ce28e59fcb944ac33948215e4360786757b816da9ee1e
/* * 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
components/camel-mail/src/test/java/org/apache/camel/component/mail/MailDefaultDelayForMailConsumeTest.java
Fabryprog/camel
apache-2.0
2,570
70
codeparrot/github-code
9424bfb1af51b7b491daf1d12508687ae3d029e24331c4570fb8efafb8001296
/* * 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
components/camel-swagger-java/src/test/java/org/apache/camel/swagger/producer/RestSwaggerGetTest.java
Fabryprog/camel
apache-2.0
2,068
57
codeparrot/github-code
d4510af73a0eeb32c9ccda2d4e3b5744939a1fdea003cc85afdbac03d97b89a0
/* * 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
core/camel-core/src/test/java/org/apache/camel/issues/OnExceptionContinuedIssueTest.java
Fabryprog/camel
apache-2.0
4,461
108
codeparrot/github-code
08d0690ef959135afb70811b09fb7f6eb114d83f3a801b6d93fe4e0cbe10827d
$(function () { /*************** Start Events Handler ***************/ /* Show App Info */ $('#btn-showInfo').click(function () { showSection('#appInfo'); }) /* Hide App Info */ $('#btn-info-back').click(function () { hideSection('#appInfo'); }) /*Return Back to settin...
JavaScript
Apptuter-Firefox/js/app.js
egirna/apptuter
apache-2.0
943
35
codeparrot/github-code
e7f0b337684b87a08f6bc176e16e3a1708aaf8664036915818b6c7a2cdd9c278
package org.sagebionetworks.web.client.widget.entity.tabs; import org.gwtbootstrap3.client.ui.Anchor; import org.gwtbootstrap3.client.ui.Button; import org.gwtbootstrap3.client.ui.Column; import org.gwtbootstrap3.client.ui.Modal; import org.gwtbootstrap3.client.ui.ModalBody; import org.gwtbootstrap3.client.ui.ModalFoo...
Java
src/main/java/org/sagebionetworks/web/client/widget/entity/tabs/FilesTabViewImpl.java
Sage-Bionetworks/SynapseWebClient
apache-2.0
6,985
260
codeparrot/github-code
d77e9ede76078ae68c637e0f1e50c8b039856e90bec1637d024363aee19b74f1
/* * 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
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/localdictionary/LocalDictionarySupportCreateTableTest.scala
jackylk/incubator-carbondata
apache-2.0
92,213
2,293
codeparrot/github-code
08b1a8286663588baf6c24e3fedc2f3fdda8acaf27d2b2614dfda8a6a863b9a1
(function() { // Constructor var ChromeSocket = function() { console.log("Deprecated: You should use MySQL.ChromeSocket2."); this.socketId = null; }; // Public methods ChromeSocket.prototype.connect = function(host, port, callback) { var id = null; chrome.socket.c...
JavaScript
src/chrome_socket.js
yoichiro/mysql_js_driver
apache-2.0
2,273
73
codeparrot/github-code
e115d292bf3589fcec44751680ed72466feaa788cab82cb32db82a755fed5f03
/* * 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
engine-mr/src/main/java/org/apache/kylin/engine/mr/streaming/ColumnarSplitDictReader.java
apache/kylin
apache-2.0
3,772
106
codeparrot/github-code
5ec895529d69cf930a8687847dfda1ae9aa0075f9dcb93b831a9074bea65fbaf
package com.hazelcast.simulator.provisioner.git; import com.hazelcast.simulator.utils.CommandLineExitException; import java.io.File; import static com.hazelcast.simulator.utils.FileUtils.newFile; public class HazelcastJARFinder { public File[] find(File path) { File memberPath = newFile(path, "hazelcas...
Java
simulator/src/main/java/com/hazelcast/simulator/provisioner/git/HazelcastJARFinder.java
gAmUssA/hazelcast-simulator
apache-2.0
2,341
59
codeparrot/github-code
f9e7f4cf63d3a147030b6040cf25179fc3573a3832365cb9d085d78d42a426c1
#include "CCore.h" #include "CLabel.h" #include "CIconButton.h" #include <QApplication> #include <QWidget> #include <QBoxLayout> #include <QMouseEvent> #include <QLocalSocket> #include <QTimer> #include <QScreen> #include <QtMath> #ifndef CWINDOW #define CWINDOW /* ------------------ CWindow ------------------ */ cl...
C
CuarzoOS/System/Library/Frameworks/CFramework/include/CWindow.h
ehopperdietzel/CuarzoOS
apache-2.0
2,652
113
codeparrot/github-code
0c100861cb3b03e8cb1ff141516bb6622ae9b86bdddbfeba925c778234ebde03
// Copyright 2014 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 // // Unless required by applicable...
Java
examples/dfp_axis/src/main/java/dfp/axis/v201411/placementservice/GetAllPlacements.java
shyTNT/googleads-java-lib
apache-2.0
3,267
90
codeparrot/github-code
f8739354f47759f65571240b80d58534da055da60ea941c682c7f40703791aa6
package com.manning.hsia.dvdstore; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.hibernate.search.annotations.*; import javax.persistence.Entity; import javax.persistence.Id; @Entity @Indexed @Analyzer( impl = StandardAnalyzer.class ) public class Pdf { private Integer id; pr...
Java
ch13/src/com/manning/hsia/dvdstore/Pdf.java
emmanuelbernard/hibernatesearchinaction
apache-2.0
1,997
99
codeparrot/github-code
c2d7e65e619129b35bd9689c93bc9be2422b9df3caa5835b4cd74672cf27c952
"""Creates ACME accounts for server.""" import datetime import hashlib import logging import os import socket from cryptography.hazmat.primitives import serialization import pyrfc3339 import pytz import zope.component from acme import fields as acme_fields from acme import jose from acme import messages from letsenc...
Python
letsencrypt/account.py
mitnk/letsencrypt
apache-2.0
7,359
202
codeparrot/github-code
67e5d83727e2fb0ada54eea15578733bd7e14eee623cf71540185c7d8c40af9c
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.xiaomi.miui.analyticstracker.utils; import android.text.TextUtils; import android.util.Log; import java.io.BufferedReader; import ja...
Java
Original Files/source/src/com/xiaomi/miui/analyticstracker/utils/MD5.java
vishnudevk/MiBandDecompiled
apache-2.0
4,240
145
codeparrot/github-code
0c4211facbee2df5161ef8ca48117ba09c1bb19828a08912885336494c27f63e
use core::pin::Pin; use futures_core::stream::{FusedStream, Stream}; use futures_core::task::{Context, Poll}; #[cfg(feature = "sink")] use futures_sink::Sink; use pin_utils::{unsafe_pinned, unsafe_unpinned}; /// Stream for the [`fuse`](super::StreamExt::fuse) method. #[derive(Debug)] #[must_use = "streams do nothing u...
Rust
third_party/futures-util/src/stream/stream/fuse.rs
google/tock-on-titan
apache-2.0
2,981
108
codeparrot/github-code
a9d08948916e3656c0d55df60b93343d75d98e9a7883bc58509493aaf94f3208
using System; using System.Collections.Generic; using NServiceBus; using NServiceBus.ObjectBuilder.Common; using NServiceBus.ObjectBuilder.Common.Config; public class ContainerCustom { // startcode CustomContainers public void CustomContainerUsage() { //Call 'Configure.UsingContainer<T>()' in your...
C#
Snippets/Snippets_4/ContainerCustom.cs
pashute/docs.particular.net
apache-2.0
1,581
65
codeparrot/github-code
b7c4e942d5fa76d1543ef41fdd0bf713e136fab653653a6f2500315e1a783fc2
package org.jgroups.util; import org.jgroups.Constructable; import org.jgroups.Global; import java.io.DataInput; import java.io.DataOutput; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.function.Supplier; /** * A bitset of missing messages with a fixed size. The index (in the ...
Java
src/org/jgroups/util/SeqnoList.java
pruivo/JGroups
apache-2.0
4,428
167
codeparrot/github-code
d1fe8e17177f5e01978d47aca4c174c45344ffd8d027a46933b5f58e196f08bb
// Copyright 2015 Cloudera 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 in wr...
C++
be/src/runtime/array-value-builder-test.cc
cloudera/recordservice
apache-2.0
1,988
61
codeparrot/github-code
3310d9447116d76ff404aa6501f76c6f787df1db73039477f30da4ee3c4c46e5
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
Python
google/ads/googleads/v9/services/services/product_bidding_category_constant_service/transports/__init__.py
googleads/google-ads-python
apache-2.0
1,165
34
codeparrot/github-code
649b8899e28e9d7358e48e4f77918dd94045259e1841708cd6d517ed976d624c
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
Java
common/src/main/java/io/druid/common/utils/StringUtils.java
erikdubbelboer/druid
apache-2.0
1,774
55
codeparrot/github-code
bba5625f37b07f7cdd645bd2187515d5a486737e416a63dbb56720cf21216ac0
// Copyright 2016 The Sawdust 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 applicable...
Java
arrows/src/main/java/recursion/HackerrankStockMaximize.java
BruceZu/sawdust
apache-2.0
2,486
75
codeparrot/github-code
f05c04f3bc0c60b88c10bc8d4f6911f48841d02edd1df9d6794442bad33c39b4
# Author:: Adam Edwards (<adamed@chef.io>) # Cookbook Name:: dsc Resource:: configuration # # Copyright:: 2014, Chef Software, 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 # # htt...
Ruby
libraries/powershell_cmdlet_result.rb
chef-cookbooks/dsc
apache-2.0
1,102
45
codeparrot/github-code
958573d8e113ec9eb75d3f1f1cda94079d464d649d1ca5542a9b5420b9687f9c
package com.github.mongobee.utils; import com.github.mongobee.changeset.ChangeEntry; import com.github.mongobee.exception.MongobeeChangeSetException; import com.github.mongobee.test.changelogs.*; import junit.framework.Assert; import org.junit.Test; import java.lang.reflect.Method; import java.util.List; import stat...
Java
src/test/java/com/github/mongobee/utils/ChangeServiceTest.java
taimos/mongobee
apache-2.0
3,468
107
codeparrot/github-code
db1caebc87ed79a2dea37cfedc653819f75bf7317ed72abffc3ce25274547b4b
# Copyright 2018 The TensorFlow 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 applica...
Python
Google/benchmarks/resnet/implementations/resnet-cloud-TF2.0-tpu-v3-32/resnet_imagenet_main.py
mlperf/training_results_v0.7
apache-2.0
12,959
324
codeparrot/github-code
3a1b449c15625f6f8f8fdfa19203509dfa852ec7ff24db7f415c3e88069585f6
/* * Copyright (C) 2015 Square, 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
src/main/java/com/squareup/javapoet/Util.java
ponsonio/javapoet
apache-2.0
5,542
158
codeparrot/github-code
7434a10bff0bfcd1c0a93b5cfb38604863c977b40a8cb95af009fee7bc17f90f
/* @flow */ import deepFreeze from 'deep-freeze'; import { PRESENCE_RESPONSE, EVENT_PRESENCE, ACCOUNT_SWITCH } from '../../actionConstants'; import presenceReducers from '../presenceReducers'; describe('presenceReducers', () => { test('handles unknown action and no state by returning initial state', () => { con...
JavaScript
src/presence/__tests__/presenceReducers-test.js
nashvail/zulip-mobile
apache-2.0
4,059
169
codeparrot/github-code
5fe70b6d77d95ed830aafb85c615c6633f99bdce0858a8adf7fdae0a2f9c23e2
/** * 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-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/security/RMDelegationTokenSecretManager.java
apurtell/hadoop
apache-2.0
8,148
224
codeparrot/github-code
6207e5bc0504ebdb88daf2253c5c9b923cea6e90d79aa462e6ae5e0727ccaf9c
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
Java
arbiter/arbiter-deeplearning4j/src/main/java/org/deeplearning4j/arbiter/layers/DropoutLayerSpace.java
deeplearning4j/deeplearning4j
apache-2.0
2,764
90
codeparrot/github-code
845350d8c983c03a1da84d927415a244258be0690dc75bf19be0bd0c8e080247
package test.inject; import org.testng.ITestResult; import org.testng.SkipException; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import java.lang.reflect.Method; public class InjectAfterMethodWit...
Java
src/test/java/test/inject/InjectAfterMethodWithTestResultSampleTest.java
missedone/testng
apache-2.0
1,066
48
codeparrot/github-code
52d9daad2bde5ac39b0d7388886189e1ec5ac5e5009b0c4c5f9d7571f5045b42
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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 agre...
Java
java/java-impl/src/com/intellij/refactoring/util/duplicates/DuplicatesImpl.java
Soya93/Extract-Refactoring
apache-2.0
10,480
222
codeparrot/github-code
43896184b70f5cda459d2d6e6e3fec50257a4e963e086f92242fb7b2eff37bff
// Copyright 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 #pragma once #include "common/Managed.h" #include "common/Util.h" namespace ospray { struct OSPRAY_SDK_INTERFACE PixelFilter { PixelFilter() = default; virtual ~PixelFilter(); void *getIE() { return ispcEquivalent; } protec...
C
ospray/pf/PixelFilter.h
wilsonCernWq/ospray
apache-2.0
1,270
63
codeparrot/github-code
3def2e007cbf07a1297e27312edec71810028da2d1dc4b1399a705d2783bd854
/* * Copyright 2017 FBK/CREATE-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 required by applicable law or agreed...
Java
raptor-api/raptor-common/src/main/java/org/createnet/raptor/common/configuration/ApplicationSharedConfiguration.java
raptorbox/raptor
apache-2.0
2,047
54
codeparrot/github-code
73271d7ad78d1268b0ef4b8671c1c0db0ae3640c81d983724cc51a2212c05fcd
# Copyright 2015 Hewlett-Packard # # 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, ...
Python
monasca_events_api/v2/common/schemas/stream_definition_request_body_schema.py
hpcloud-mon/monasca-events-api
apache-2.0
1,965
54
codeparrot/github-code
90331193c23d5abc888bc3b6dab394c7ab72177c4908b98681e943f4fde1bc56
// Copyright 2020 PingCAP, Inc. Licensed under Apache-2.0. package export import ( "bytes" "database/sql" "strings" "github.com/pingcap/errors" tcontext "github.com/pingcap/tidb/dumpling/context" ) // TableDataIR is table data intermediate representation. // A table may be split into multiple TableDataIRs. ty...
GO
dumpling/export/ir.go
c4pt0r/tidb
apache-2.0
2,482
108
codeparrot/github-code
20a810cb790406af0624cce53a0d5cbf7fce68bdd334acac61b588728af33682
/* * Copyright (c) 2008-2020, Hazelcast, 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 * * Unless required ...
Java
hazelcast/src/test/java/com/hazelcast/client/aggregation/ClientMapAggregateTest.java
mdogan/hazelcast
apache-2.0
2,212
67
codeparrot/github-code
8f630ff99b9913ea3a4da88eb6c7d49ba244fec18207006af7acd8464b9331a1
/* mbed Microcontroller Library * Copyright (c) 2017-2017 ARM Limited * * 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 re...
C++
features/FEATURE_BLE/source/generic/GenericGap.cpp
c1728p9/mbed-os
apache-2.0
46,019
1,560
codeparrot/github-code
50474cb286c85d08e83af5e04fb1d9d226baa6bfcd65b76e0d0e9cdba33fb701
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
Java
distro/wildfly8/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java
xasx/camunda-bpm-platform
apache-2.0
7,073
184
codeparrot/github-code
154f71d21d63b094a5280d8bc54da6818fa647d60a5774ce2269f81156e73896
/* * Copyright 2000-2016 JetBrains s.r.o. * * 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 agre...
Java
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/GraphTableController.java
idea4bsd/idea4bsd
apache-2.0
11,383
288
codeparrot/github-code
1a8662065e1376db028802cef26608a7ccea9f9d16568da34ff3a1dc963113bf
/* 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"); y...
Java
demo/v3-annotated-demo-portlet/src/main/java/org/apache/portals/pluto/demo/v3annotated/AsyncListener.java
apache/portals-pluto
apache-2.0
6,640
180
codeparrot/github-code
8765e71b8320804a082646865dd0c0dafedaac2eacbd1dc36fdd33c85e582f4f
/* * 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
linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java
b-slim/calcite
apache-2.0
20,724
746
codeparrot/github-code
d24dc4d0b879c97862019f4bfa5da9195d57113625910b4a5bc87e8556b3d2ab
/*------------------------------------------------------------------------- * * lock.c * POSTGRES primary lock mechanism * * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $PostgreSQL: pgsq...
C
src/backend/storage/lmgr/lock.c
CraigHarris/gpdb
apache-2.0
80,851
2,791
codeparrot/github-code
ae467ea2c859aeedd41786a49f0c62d143d25ce2c4609f810fc5b98f754a8397
package com.therealdanvega.service.mapper; import com.therealdanvega.domain.Authority; import com.therealdanvega.domain.User; import com.therealdanvega.service.dto.UserDTO; import org.springframework.stereotype.Service; import java.util.*; import java.util.stream.Collectors; /** * Mapper for the entity User and it...
Java
jhipster-tasks/src/main/java/com/therealdanvega/service/mapper/UserMapper.java
cfaddict/jhipster-course
apache-2.0
2,321
77
codeparrot/github-code
6440770b83986a47dd09d555d5bb77a6bf382e7ed6aa2d00d43c238195c8d6de
/* * Copyright 2004 The Apache Software Foundation * * 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 applic...
Java
spring-core/src/main/java/org/springframework/cglib/proxy/InterfaceMaker.java
shivpun/spring-framework
apache-2.0
4,457
126
codeparrot/github-code
2310ab7b7273edae52a3e912bd59ea289bc9c9e6a0af684ca1a38bc860b96493
package com.Dibike.controller; import java.util.List; import javax.annotation.Resource; import org.apache.log4j.Logger; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.Dibike.comm...
Java
src/com/Dibike/controller/RoleController.java
Saw85/DibikeManagement
apache-2.0
1,286
51
codeparrot/github-code
aef2a12f9f5b67a30e1ed628a4b3660b36b979003ba9dc15b667839942742d9c
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
Java
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/typedef/GrInterfaceDefinitionImpl.java
IllusionRom-deprecated/android_platform_tools_idea
apache-2.0
1,661
52
codeparrot/github-code
a45c93f6662fead4c7c5b546ed014e3efe1f84ae86bcbd711480ed00e11dc663
package ca.uhn.fhir.model.valueset; /* * #%L * HAPI FHIR - Core Library * %% * Copyright (C) 2014 - 2017 University Health Network * %% * 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...
Java
hapi-fhir-base/src/main/java/ca/uhn/fhir/model/valueset/BundleEntrySearchModeEnum.java
botunge/hapi-fhir
apache-2.0
3,611
132
codeparrot/github-code
6710bac93451502a12be3fda57aa5ba801c0235f36e374227c9546164820f48d
package org.codehaus.httpcache4j.util; import java.nio.charset.Charset; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Digester { public static String sha256(String bytes, Charset charset) { return sha256(bytes.getBytes(charset)); } public static S...
Java
httpcache4j-api/src/main/java/org/codehaus/httpcache4j/util/Digester.java
httpcache4j/httpcache4j
apache-2.0
1,324
46
codeparrot/github-code
f813e9cfbc49a753b2c0476852f0167412c2f8e3d624c2238177f7da67a736a6
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <type_traits> #include "rocksdb/r...
C
3rdParty/rocksdb/6.29/util/cast_util.h
arangodb/arangodb
apache-2.0
1,697
43
codeparrot/github-code
bc70fd88bff62a97481275e03c425ba71ca2ad241adfaa214a8462d0509818aa
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-client-common/src/main/java/org/kie/workbench/common/stunner/core/client/components/palette/DefaultPaletteDefinitionBuilders.java
wmedvede/kie-wb-common
apache-2.0
4,366
135
codeparrot/github-code
cad2aaa209cd939de3d8e8c7a79b92d4604668ae4636ac12c4e44aa838e42521
/* * 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
server/src/main/java/org/elasticsearch/search/SearchModule.java
nknize/elasticsearch
apache-2.0
60,400
875
codeparrot/github-code
4240868974367df6a8385ff1b83c28647e1f1c349f0754bdadab8efe08ad13ec
package com.radaee.util; import android.content.res.AssetManager; import android.util.Log; import com.radaee.pdf.Document.PDFStream; import java.io.InputStream; /** * Asset stream, an implement class for PDFStream, which used in Document.OpenStream * @author radaee */ public class PDFAssetStream impleme...
Java
Source/PDFViewer/PDFViewer2.9.8beta2/pdfviewer2.9.8beta2/src/com/radaee/util/PDFAssetStream.java
gearit/RadaeePDF-B4A
apache-2.0
1,534
101
codeparrot/github-code
c0bc665c1d832dee8cc836460f75f461f6b6f1f5defda7906d67d379b09995bd
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
geode-core/src/main/java/org/apache/geode/internal/cache/persistence/PersistentMemberPattern.java
jdeppe-pivotal/geode
apache-2.0
6,883
236
codeparrot/github-code
32ea1476a7ab892ccbc817e46744f12c4100dd667da590fce807b0dfeab64da1
// 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
java/kudu-backup/src/main/scala/org/apache/kudu/backup/RowAction.java
helifu/kudu
apache-2.0
2,370
71
codeparrot/github-code
f88903fc549fa84ff03bf3ce1f2c2ec4701d2b2d412f56b9bdfa698bbaf679a7
/* Copyright 2018 Google 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 in writing, software dis...
JavaScript
solution/app/test/modules/local-storage-tests.js
google-developer-training/pwa-ecommerce-demo
apache-2.0
2,089
70
codeparrot/github-code
7ab87d0cb2652f4a072ab30672743554ed2064c5ce2ed946855c3e5cf8ddf876
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
Java
asterix-external-data/src/main/java/edu/uci/ics/asterix/external/indexing/dataflow/FileIndexTupleTranslator.java
sjaco002/incubator-asterixdb
apache-2.0
4,345
86
codeparrot/github-code
c331191915f6c1db4b64d28597ba39b4b9837b51ef3f86f5bb2dbd84139e6b94
/** * Created by:CaMnter */ import React, {Component} from 'react'; import {Button, ToastAndroid} from "react-native"; import {StackNavigator} from "react-navigation"; class MainScreen extends Component { constructor(props) { super(props); } static navigationOptions = { title: "MainScre...
JavaScript
react-native-life/ReactNativeLife/js/guides/navigation/navigation.js
CaMnter/front-end-life
apache-2.0
1,316
61
codeparrot/github-code
d22b67ee6c4907258404162bf531d5b4058f99ab8fc36325822c825795f37f99
% Design \section{Design} % TAKEAWAY 1: The reader should be able to see the logical divisions in the Syndicate architecture, and how they fit together. % \\ % TAKEAWAY 2: The reader should see why we made the architectural decisions we did, given our requirements and constraints. % \\ \begin{figure}[h!] \centering ...
TeX
papers/paper-atc2012/design.tex
jcnelson/syndicate
apache-2.0
25,082
432
codeparrot/github-code
d25999b9f803421662d192a8384682821355859ccf6e260408bfa7c090b93678
#ifndef CPPUNIT_TYPEINFOHELPER_H #define CPPUNIT_TYPEINFOHELPER_H #include <cppunit/Portability.h> #if CPPUNIT_HAVE_RTTI #include <typeinfo> CPPUNIT_NS_BEGIN /**! \brief Helper to use type_info. */ class CPPUNIT_API TypeInfoHelper { public: /*! \brief Get the class name of the specified type_info. ...
C
源代码/Thirdparty/cppunit/inc/cppunit/extensions/TypeInfoHelper.h
SuperMap/Fdo_SuperMap
apache-2.0
726
33
codeparrot/github-code
ac78eddd6e0b11758c7f2ccc80c321196b427551d8b096f63f6884132dcee312
package uk.ac.ox.oucs.vle.email; import org.junit.Before; import org.junit.Test; import uk.ac.ox.oucs.vle.UserProxy; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.*; import static uk.ac.ox.oucs.vle.CourseSignupService.Status.WITHDRAWN; /** * Created by buckett on 08/10/15. */ public ...
Java
impl/src/test/java/uk/ac/ox/oucs/vle/email/WithdrawnStudentEmailRuleTest.java
ox-it/wl-course-signup
apache-2.0
1,127
39
codeparrot/github-code
170598861320fe4eefddb256f3cda557f46055bf9dbef45d1adb8073c47044f8
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
C
lib/Endpoint/EndpointList.h
Simran-B/arangodb
apache-2.0
1,715
58
codeparrot/github-code
778cc0f9d81e298142332ed6189adbd537925a28cdc1802b056e76ad5c01d7c1
/** * 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"...
Java
kerby-kerb/kerb-crypto/src/test/java/org/apache/kerby/kerberos/kerb/crypto/CheckSumTest.java
drankye/directory-kerby
apache-2.0
4,094
111
codeparrot/github-code
3cb3ed24602d3d1d7b071ec13a89111ac76160677566ea290b21a8f8608c07d1
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.lang.reflect.java; import gw.lang.javadoc.IDocRef; import gw.lang.javadoc.IMethodNode; import gw.lang.javadoc.JavaHasParams; import gw.lang.reflect.IAttributedFeatureInfo; import gw.lang.reflect.IGenericMethodInfo; import gw.lang.reflect.IMethodInfo; impor...
Java
gosu-core-api/src/main/java/gw/lang/reflect/java/IJavaMethodInfo.java
pdalbora/gosu-lang
apache-2.0
847
36
codeparrot/github-code
cbb752887efd1724c3baac8bfba17d69b67acddd8c92902bd5589848925bba14
<HTML> <?php // celkovy zaciatok dokumentu do { $zmtz=1*$_REQUEST['zmtz']; if( $zmtz == 1 ) { $sys = 'SKL'; $urov = 2000; $clsm = 960; $uziv = include("../uziv.php"); if( !$uziv ) exit; } if( $zmtz == 0 ) { exit; } // cislo operacie $copern = 1*$_REQUEST['copern']; $drupoh = 1*$_REQUEST['drupo...
PHP
eshop/obj_stav.php
eurosecom/eurosecom
apache-2.0
44,954
1,429
codeparrot/github-code
43b6c5083f5025854db1f283c27f106806a415c8b602da054673ddcc96768d14
import { deepAccess, deepClone, deepEqual, delayExecution, prefixLog, mergeDeep } from '../../src/utils.js'; const { logMessage, logWarn, logError } = prefixLog('DEBUG:'); /** * @typedef {Number|String|boolean|null|undefined} Scalar */ export function BidInterceptor(opts = {}) { ({setTimeout: this.set...
JavaScript
modules/debugging/bidInterceptor.js
prebid/Prebid.js
apache-2.0
8,234
230
codeparrot/github-code
d380a1a8a3afd9d00b40dd5748385c0e9f0825484c4ae5ef38357a857fae16a1
/* * 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/GridCacheSharedContext.java
tkpanther/ignite
apache-2.0
22,810
778
codeparrot/github-code
8e77ce3670cf1783cfd07efe36c892c8b7ae41319764a4f5b5c78d96740fbf39
package scala.tools.nsc.backend.jvm import java.util.concurrent.TimeUnit import org.openjdk.jmh.annotations.{Benchmark, BenchmarkMode, Fork, Level, Measurement, Mode, OperationsPerInvocation, OutputTimeUnit, Param, Scope, Setup, State, Threads, Warmup} import org.openjdk.jmh.infra.Blackhole import scala.util.Random ...
Scala
test/benchmarks/src/main/scala/scala/tools/nsc/backend/jvm/DeConstBenchmark.scala
scala/scala
apache-2.0
9,424
422
codeparrot/github-code
313b5441a67ed1b4e40c7424f1cafd110772b251d9a3218f48b5e20bf12c312e
/* * 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
zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
Altiscale/incubator-zeppelin
apache-2.0
74,250
1,986
codeparrot/github-code
a6b545af4d543afca2a1f11c957bad599824f4c1c119b48ab9eff21dff38eae5
package org.hope6537.note.tij.twenty_one; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; /** * @author Hope6537(赵鹏) * @version 0.9 * @describe 后台线程工厂驱动实例 * @signdate 2014年7月26日上午11:03:27 * @company Changchun University&SHXT */ public cla...
Java
hope-note-module/hope-java-native-note/src/main/java/org/hope6537/note/tij/twenty_one/DaemonFromFactory.java
Hope6537/hope-tactical-equipment
apache-2.0
1,103
39
codeparrot/github-code
e4764b5b4ee6ad25665a27ee21e0eda18d4e87adf1295b197ea1a149451fd446
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
C++
libcxx/test/std/utilities/optional/optional.object/optional.object.observe/op_arrow.pass.cpp
google/llvm-propeller
apache-2.0
1,706
74
codeparrot/github-code
6927258963bb3f299e88bb0d4709d2ec273a9b782c52ec5b34e8eba0cafca2b6
/* * 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
sdks/java/io/xml/src/main/java/org/apache/beam/sdk/io/xml/JAXBCoder.java
markflyhigh/incubator-beam
apache-2.0
6,095
194
codeparrot/github-code
33bf231eabcd5dfed7d4a304398570affd98073eeea6317bfe955fc7987d51b8
<!-- Copyright 2014 IBM Corp. 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, soft...
HTML
storage/sqlite/sqlite.html
mcqn/node-red-nodes
apache-2.0
2,801
78
codeparrot/github-code
7bc3e4613f6385561ea0aa771c17b23c6b6422239e64bca0639a510f64be0cd8
#!/bin/bash # # Copyright (c) 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. set -e if [ "$VERBOSE" ]; then set -x fi set -u # Create the Debian changelog file needed by dpkg-gencontrol. This just adds a # placeho...
Shell
install/debian/build.sh
pagespeed/mod_pagespeed
apache-2.0
7,877
282
codeparrot/github-code
9efef0e442715b8816b2ce5a0d089a7f96b8298a08bf3d55be3a439d9472aaac
/* * 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
samza-test/src/test/java/org/apache/samza/test/table/TestLocalTableEndToEnd.java
abhishekshivanna/samza
apache-2.0
13,865
312
codeparrot/github-code
0001b5a22033a766cb2381f44481d713a46284a8afafaeb68a4fb204b2fba47a
/* Derby - Class org.apache.derby.iapi.sql.compile.Parser 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 ...
Java
java/org.apache.derby.engine/org/apache/derby/iapi/sql/compile/Parser.java
apache/derby
apache-2.0
2,716
80
codeparrot/github-code
99abcef6ab41b875194eca29ca8ad13e94ca92fce7ba30afb9b1e8cf7920026c
/* * Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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...
Java
main/feature/src/boofcv/abst/feature/detect/interest/WrapFHtoInterestPoint.java
intrack/BoofCV-master
apache-2.0
2,269
90
codeparrot/github-code
975a708501e3c1e55e4b7a130072ba463de4f45dda9d316b57fa1629c67bcf95
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
Java
dcm4jboss-all/tags/DCM4CHEE_2_14_8/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/session/StorageBean.java
medicayun/medicayundicom
apache-2.0
25,329
622
codeparrot/github-code
74d5638b280164b7849e57b6e86089e7df7116eb27a084e1e4e4c0ddbfd274d6
/* * Copyright 2013-2015 the original author or 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 ap...
Java
spring-cloud-lattice-discovery/src/main/java/org/springframework/cloud/lattice/discovery/LatticeDiscoveryClientConfiguration.java
mstine/spring-cloud-lattice
apache-2.0
2,415
73
codeparrot/github-code
568ede8b6b8c4c9ea0d698079a09fd593290df8faad42ce1a6751de61d89f596
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Server xref</title> <link type="text/css" rel=...
HTML
packages/hbase-0.98.7-hadoop2/docs/xref/org/apache/hadoop/hbase/Server.html
gsoundar/mambo-ec2-deploy
apache-2.0
7,043
66
codeparrot/github-code
19dbf829ce4f57a6dee033edebd86ec33b2f3248d9000dfccb1fc513a70533e0
/* * #%L * Protempa Framework * %% * Copyright (C) 2012 - 2013 Emory University * %% * 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
protempa-framework/src/main/java/org/protempa/proposition/PropositionUtil.java
eurekaclinical/protempa
apache-2.0
19,403
530
codeparrot/github-code
54a6631e819da6503a6ecff3336308cdc7c5c2a419fcc40bd60be8c87013ca54
/* * 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
contrib/extensions/sling-pipes/src/test/java/org/apache/sling/pipes/PipeBindingsTest.java
vladbailescu/sling
apache-2.0
6,398
139
codeparrot/github-code
5d1ea757ec0edd6f881fcba2f3e6d2c576663adf97fa0d376d23a6bc8229ca89
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
Java
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/NewPublicVirtualInterfaceAllocation.java
sdole/aws-sdk-java
apache-2.0
11,505
373
codeparrot/github-code
c96cdeed8ca35a6b35a9ba38f81138697c46b11a01e58ca3347b1584c4e2999f
/* * 驾车路线搜索插件 * @param map 地图对象 * @param obj 显示DOM对象 */ var DrivingPanel = function(map, obj){ this.obj = obj; this.map = map; this.markers = []; /* 驾车代码模板 */ this._tpl = "<div class='drive-title'>驾车方案(总里程{$distance}公里 共{$time}分钟)</div><ul class='drive-list'>{loop}<li>{$line}</li>{/loop}</ul>"; }; Driving...
JavaScript
tpl/User/default/common/js/panel.js
royalwang/saivi
apache-2.0
18,360
514
codeparrot/github-code
bdab0f94ae0795e8d1551afcb2f7d74d96b5bb4a36a62daa7462ca9d4a9b9d40
/* * 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")...
Java
src/mina-core/src/test/java/org/apache/mina/transport/socket/nio/DIRMINA777Test.java
zuoyebushiwo/apache-mina-2.0.9
apache-2.0
3,189
86
codeparrot/github-code
2e7299efe7ae0c178b9668aedc1ead2fa6528825a31f8c0d3ccae6aabee2feb9
/* * Copyright 2017 Google 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
multi-feature-module/app/src/main/java/com/example/android/unsplash/ui/grid/GridMarginDecoration.java
googlearchive/android-instant-apps
apache-2.0
1,208
40
codeparrot/github-code
86ac76ea5af8ccc1ee406efc5d0b42696bbefc019e9fe834cec8e973e945da0b
{%- block doctype -%} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {% endblock %} {%- macro title_str(view) %} Rust build {{ view }} {%- if branch is defined and branch != '' and branch != ANYBRANCH %} : {{ branch|e }} {%- endif %} {%- endm...
HTML
master/templates/layout.html
edunham/rust-buildbot
apache-2.0
4,201
132
codeparrot/github-code
58faca29fffd0206ac4f361384c11c386d9373dca699d8af5aa83fc75e0b8e7c
package org.ansj.recognition.arrimpl; import org.ansj.domain.*; import org.ansj.library.NgramLibrary; import org.ansj.recognition.TermArrRecognition; import org.ansj.util.TermUtil; import org.ansj.util.TermUtil.InsertTermType; import java.util.ArrayList; import java.util.List; /** * 人名识别工具类 * * @author ansj * ...
Java
deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp-chinese/src/main/java/org/ansj/recognition/arrimpl/AsianPersonRecognition.java
deeplearning4j/deeplearning4j
apache-2.0
5,125
178
codeparrot/github-code
6c32cb483774212781dc08b8149c4a41d5683e192b2b106c841d0815573f4622
/* * 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, software * dist...
Java
llap-server/src/java/org/apache/hadoop/hive/llap/shufflehandler/DirWatcher.java
sankarh/hive
apache-2.0
15,311
415
codeparrot/github-code
b828bdbad2690411fd8073e8a18c7cf21bdfb21d9d08b16236a89016dedb8925
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import re ...
Python
src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
megaserg/pants
apache-2.0
15,198
358
codeparrot/github-code
d2d0fd47e9c4f34b7e9f08ded615558bd67da7bf3a0e11897de5bbdd4fa4b6e1
/* * 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
blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/util/HtmlDomParser.java
apache/cocoon
apache-2.0
2,278
63
codeparrot/github-code
26e5d57cecfde922295c7ee348e7c27333c3f335bb248ca4729753ccaab96acd
// This file is part of the Soletta Project // // Copyright (C) 2015 Intel Corporation. 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.or...
JavaScript
server/nodetypes/lib/filesystem.js
brunobottazzini/soletta-dev-app
apache-2.0
1,359
44
codeparrot/github-code