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
5d5df3439b00aebf1b3664dd47c48dad883fb3ca6d36d48a5a109aa11ef435e8
// Copyright (c) 2019 Cisco 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...
GO
cmd/agentctl/commands/generate.go
ondrej-fabry/vpp-agent
apache-2.0
3,393
135
codeparrot/github-code
bd03c6dbc7bebb6820b38e0fc32e85eb9506688ac76341f3d378bfea4ea6d8c1
// Copyright 2005 The Closure Library 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 requ...
JavaScript
closure/goog/events/events.js
teppeis/closure-library
apache-2.0
34,691
1,013
codeparrot/github-code
0ff0fc1e104465b3a1c145f9b217060ac1d3ee780121afa2de62e8dee24f9294
/* * Copyright (C) 2014 Qiujuer <qiujuer@live.cn> * WebSite http://www.qiujuer.net * Created 08/13/2014 * Changed 01/14/2015 * Version 1.0.0 * * 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 Lice...
Java
library/src/main/java/net/qiujuer/genius/util/Tools.java
x-android/Genius-Android
apache-2.0
4,007
132
codeparrot/github-code
1c16b42fa63d913a19d1543eaf3a6453a0a41d3118990f0eb23722673322f5d2
/* * Copyright (C) 2015-2016 Willi Ye <williye97@gmail.com> * * This file is part of Kernel Adiutor. * * Kernel Adiutor is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
Java
app/src/main/java/com/grarak/kerneladiutor/utils/kernel/wake/Dt2s.java
ShinySide/KernelAdiutor
apache-2.0
3,533
113
codeparrot/github-code
95d7e8c597ce36a74b8b3a4e0c9f453b03544eea7435498cbf5a23e9da5c2a28
/** * Copyright 2011-2019 Asakusa Framework Team. * * 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
dsl-project/asakusa-dsl-vocabulary/src/main/java/com/asakusafw/vocabulary/flow/util/PseudElementDescription.java
akirakw/asakusafw
apache-2.0
6,223
197
codeparrot/github-code
66057efe9bbe05fbba3803d2bf3e21e5d1f9b9a08df5bc667ef0304649e35650
/* * Copyright (C) 2010 ZXing 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 l...
Java
plugins/com.phonegap.plugins.barcodescanner/src/android/LibraryProject/src/com/google/zxing/client/android/result/supplement/SupplementalInfoRetriever.java
got5/ngCordova-demo
apache-2.0
5,556
147
codeparrot/github-code
42a357c78797643320720875c0dcfc3e01974451a8563c90ecad1ce8eab02f64
// 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.google.zxing; import com.google.zxing.aztec.AztecReader; import com.google.zxing.datamatrix.DataMatrixReader; import com.google.zxin...
Java
Original Files/source/src/com/google/zxing/MultiFormatReader.java
vishnudevk/MiBandDecompiled
apache-2.0
5,378
183
codeparrot/github-code
58bf89d6b1201886ba63ed89f55e840a3c8d4307d21dae39046c79a7ca6e26fa
'use strict'; const Ana = require('./ana_log'); const hyd = require('hydrolysis'); const path = require('path'); /** * @param {Object} obj - The object to strip properties from. * @param {Array.<string>} properties - An array of property names to remove. */ function removeProperties(obj, properties) { if (!prope...
JavaScript
analysis/src/hydrolysis.js
andymutton/v2
apache-2.0
3,729
100
codeparrot/github-code
fd820456f134373d64ce7803f9e83753999d57314167007a38b76f501477194d
/* * testtest.c * * Created on: Dec 10, 2014 * Author: rwl */ // TODO(rwz): We need to have a structured way of doing tests. #include <testcase.h> static int testtestfn(OE oe) { return True; } static int testoefn(OE oe) { extern bool testoe(OE oe); return testoe(oe); } static Test tests1[] = { {...
C
platform/osal/test/testtest.c
AarhusCrypto/MiniTrix
apache-2.0
815
55
codeparrot/github-code
dff5fd7f5020f14e7a693c2063dd1b61bc93f780fb4780f60c2e2821f0982235
/* * $HeadURL$ * $Revision$ * $Date$ * * ==================================================================== * 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...
Java
httpcore/src/main/java/org/apache/http/protocol/HttpService.java
alinvasile/httpcore
apache-2.0
12,048
300
codeparrot/github-code
a664ca29a009bdf3247e0ef254d5a0cabd335ca950e439304f9a9a666d8b4225
<?php /* * @author Zsolt Javorszky * @author Sandor Legoza * @copyright 2013 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace UniversalServiceHandler\Processor; use Optionable; use UniversalServiceHandler\Response\Respon...
PHP
src/UniversalServiceHandler/Processor/ResponseProcessor.php
tothimre/universal-service-handler
apache-2.0
2,368
84
codeparrot/github-code
52297c238020ab2a226a89c2e9882fbee624eb81e6ba78c008a791be17e2dd52
/* * @(#)LayoutControlPanel.java 1.12 05/11/17 * * Copyright (c) 2006 Sun Microsystems, 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: * * -Redistribution of source code must retain...
Java
W_myeclipse/binary/com.sun.java.jdk.win32.x86_1.6.0.013/demo/plugin/jfc/SwingSet2/src/LayoutControlPanel.java
00wendi00/MyProject
apache-2.0
13,333
343
codeparrot/github-code
3db0cd7217f5ee7ee417d5cb0ebb558d8f5ce67960db2d8883339c67381222f4
/* * Copyright 2003-2007 Dave Griffith, Bas Leijdekkers * * 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 applicab...
Java
plugins/InspectionGadgets/src/com/siyeh/ig/bugs/ObjectEqualsNullInspection.java
jexp/idea2
apache-2.0
2,260
66
codeparrot/github-code
c62690dbc60d5c812a1e9cf67e659e7ad13615b564ff88b743bd151e9cc5ccec
package dk.lessismore.nojpa.db.testmodel; import dk.lessismore.nojpa.reflection.db.model.ModelObjectInterface; import javax.persistence.Column; import java.util.Calendar; public interface Car extends ModelObjectInterface { @Column(unique = true) String getBrand(); void setBrand(String brand); doub...
Java
nojpa_solr/src/test/java/dk/lessismore/nojpa/db/testmodel/Car.java
NoJPA-LESS-IS-MORE/NoJPA
apache-2.0
695
31
codeparrot/github-code
9b03f6f8850ef2f3b96c4322474b9899ba22e44777fafe9f7a34e97e8e03ec22
-- Copyright (C) 2012 by wubenqi -- Distributable under the terms of either the Apache License (Version 2.0) or -- the GNU Lesser General Public License, as specified in the COPYING file. -- -- By: wubenqi<wubenqi@gmail.com> -- local print = print local tconcat = table.concat local tinsert = table.insert local srep =...
Lua
bin/scripts2/util/util.lua
tempbottle/zengine
apache-2.0
1,702
58
codeparrot/github-code
2885cd438d66b5690f8f7d48d32118d00d491ce54d2ee2380099834e17b91575
package org.sagebionetworks.web.client.widget.entity; import org.gwtbootstrap3.client.ui.html.Span; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; public class ContainerItemCountWidgetViewImpl...
Java
src/main/java/org/sagebionetworks/web/client/widget/entity/ContainerItemCountWidgetViewImpl.java
jay-hodgson/SynapseWebClient
apache-2.0
931
43
codeparrot/github-code
f9582abf6abbc5da44cf09509b8ae338b91d991990db19a9f355535df812adb0
/***************************************************************************/ /* */ /* ftobjs.h */ /* */ /* Th...
C
android/external/freetype/include/freetype/internal/ftobjs.h
indashnet/InDashNet.Open.UN2000
apache-2.0
80,163
1,570
codeparrot/github-code
927a3bd51ec5f1a8b78830a954979d47dd494406a37d4b1d28bcb8af9a99ff99
/* * 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
src/main/java/org/apache/spark/examples/JavaLogQuery.java
chgm1006/spark-app
apache-2.0
5,614
136
codeparrot/github-code
572f0bd5faedeed903626482b14b543c945a43b421fc21265b3a1b86f5ba972b
/* * Copyright 2014 Guidewire Software, Inc. */ package gw.test; import gw.lang.GosuShop; import gw.lang.reflect.IAnnotationInfo; import gw.lang.reflect.IConstructorInfo; import gw.lang.reflect.IHasJavaClass; import gw.lang.reflect.IMethodInfo; import gw.lang.reflect.IType; import gw.lang.reflect.Modifier; import g...
Java
gosu-test-api/src/main/java/gw/test/TestClass.java
dumitru-petrusca/gosu-lang
apache-2.0
24,245
748
codeparrot/github-code
b0f61f3a88091ab8c73d3bab1e1afa11299756ce7769f1141436a68a52a0bc64
/* * 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/component/bean/BeanParameterBindingStreamCachingTest.java
Fabryprog/camel
apache-2.0
2,062
59
codeparrot/github-code
ffc9caac970f24ca6e099460221d188c3c5a53482a638d87097a48e21cac5fd4
/* * Copyright 2012 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 applica...
Java
com.bsb.common.vaadin.embed/src/main/java/com/bsb/common/vaadin/embed/application/EmbedVaadinApplication.java
YoannMeste/embed-for-vaadin
apache-2.0
2,594
87
codeparrot/github-code
b35b9e8074c239a0c439e6f0797147eabecf09954f40352e0346a726d301d91a
# Copyright (c) 2015 Hewlett-Packard Co. # 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 r...
Python
neutron/ipam/subnet_alloc.py
mahak/neutron
apache-2.0
18,935
433
codeparrot/github-code
9f0a51361c99ef442ee14e14fda3ea818f98556508a1455ca7ccdd75f33a2ecf
# Copyright 2015, A10 Networks # # 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...
Python
a10_neutron_lbaas/v2/wrapper_certmgr.py
hthompson6/a10-neutron-lbaas
apache-2.0
2,706
56
codeparrot/github-code
575b7996d95f6859c85262fbb40f92227343af843fe2c955ffe29b9c258ae5e4
package com.core.voice; /** * @author dingwei.chen * */ public class PCMUtil { // 获得音量 public static int getVolume(short[] pcms, int r) { if (pcms == null) { return 0; } // 计算音量代码start double v = 0; // 将 buffer 内容取出,进行平方和运算 for (int i = 0; i < r; i++) { // 这里没有做运算的优化,为了更加清晰的展示代...
Java
src/core/com/core/voice/PCMUtil.java
MichaelSun/SiXin
apache-2.0
736
37
codeparrot/github-code
6842d08e6173daa81ba691ec19310bff58c67570adfa94edfec61dd27ed7149e
/** * Licensed to the Sakai Foundation (SF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The SF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use t...
Java
bundles/doc/src/main/java/org/sakaiproject/nakamura/doc/proxy/ProxyDocumentationServlet.java
dylanswartz/nakamura
apache-2.0
4,565
93
codeparrot/github-code
c26a8a8d2fb011d8c669beda6b717ed06a432bfe31c2bf10338a974db14ec7c5
/** * * Copyright 2005 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 a...
Java
modules/system/src/test/org/apache/geronimo/system/logging/log4j/XLevelTest.java
vibe13/geronimo
apache-2.0
5,027
103
codeparrot/github-code
cfd43a93f769555f265c60d2576e27b9db3796247b2486a603ad8ec996981efc
/* * 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
plugins/azure-discovery/src/main/java/io/crate/azure/management/AzureComputeServiceImpl.java
EvilMcJerkface/crate
apache-2.0
5,946
158
codeparrot/github-code
fd59bf405ac090a68fb7dfd49a168be3d42857f0a877e69526ff39fc926197c5
/* * 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/sourceresolve/impl/src/main/test/org/apache/excalibur/source/factories/ResourceSourceTestCase.java
eva-xuyen/excalibur
apache-2.0
3,124
89
codeparrot/github-code
d0950d4557f99bd0fb9b14e145aff58d351f3476b7211505be89884e69ed61e8
/* * Copyright 2013-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
test/com/facebook/buck/rules/DefaultBuildTargetSourcePathTest.java
shybovycha/buck
apache-2.0
2,700
78
codeparrot/github-code
65eecfd453cc44324d8869510b6c92dc305aedd768cbf40e281ddefd1b2a43ff
package com.breakersoft.plow.dao; import java.util.List; import java.util.Set; import java.util.UUID; import com.breakersoft.plow.Cluster; import com.breakersoft.plow.Node; import com.breakersoft.plow.rnd.thrift.Ping; import com.breakersoft.plow.thrift.NodeState; import com.breakersoft.plow.thrift.SlotMode; public i...
Java
server/src/main/java/com/breakersoft/plow/dao/NodeDao.java
Br3nda/plow
apache-2.0
945
41
codeparrot/github-code
04cb7e0d5dae4c16d74a530ec286d53ee9ae4bc66e644f5b0db3561187c2d628
/* * Copyright 2015 Julien Viet * * 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/test/java/io/termd/core/http/websocket/server/TaskStatusUpdateEvent.java
matejonnet/termd
apache-2.0
2,570
88
codeparrot/github-code
1a6b2f9f999ac2fd971a79daffc887b3e7a3feef4b8dcdfdf3843f90839775d0
define("ace/mode/xml_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function (e, t, n) { "use strict"; var r = e("../lib/oop"), i = e("./text_highlight_rules").TextHighlightRules, s = function (e) { var t = "[_:a-zA-Z\u00c0-\uffff][-_:.a-zA-Z0-9\u00c0-\uffff]...
JavaScript
frontend/src/nexl/site/ace/mode-xml.js
liamray/nexl-js
apache-2.0
16,311
360
codeparrot/github-code
b5dd8f0db82d8df63b508fa17bf2a9d36032fb7b942ff4d5af707a44e288e754
/* 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 * distribut...
Java
modules/flowable-cmmn-rest/src/test/java/org/flowable/cmmn/rest/service/api/runtime/EventSubscriptionResourceTest.java
dbmalkovsky/flowable-engine
apache-2.0
6,488
118
codeparrot/github-code
f47946aa8ec5e8c580681886fe19e4ca0b34e54ec7ef3ae8754d81ee54b3f4ed
#region License // Copyright (c) 2007 James Newton-King // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, // copy, ...
C#
Json/Converters/ExpandoObjectConverter.cs
mupcakes/csharp-stormondemand
apache-2.0
5,407
165
codeparrot/github-code
a48940f19406c11279765a75004cba92101aee6516eef28a0bfdcb2048c90aef
//===--- Demangler.h - String to Node-Tree Demangling -----------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
C
include/swift/Demangling/Demangler.h
devincoughlin/swift
apache-2.0
20,599
641
codeparrot/github-code
9dbfb0e1adf3127b62fa2eb83476265f7a616112d75e9fa6f005cc4e22a3e112
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use t...
C++
src/sensors/tgDataLogger.cpp
UnionEvoRobo/NTRTsim
apache-2.0
1,940
75
codeparrot/github-code
5432056f6fffa34d2f0c525ac71fa758090ca4bd07fb8851d0b88fce2f06d583
<!-- * 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 ...
HTML
webapp/app/partials/jobs/job_refresh.html
apache/kylin
apache-2.0
7,923
161
codeparrot/github-code
a920d7abd2765c1850107f98ec9aec3c3e82dcc38d8f1171b04f84ce30b0b4a3
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "index"; if (...
JavaScript
Resources/iphone/alloy/controllers/index.js
appcelerator-services/VectorImage
apache-2.0
4,093
145
codeparrot/github-code
3e8d09c9e1ff46630cfe71b29db8d0fd10018c25b7f15c86e225d2339af059b4
package controllers; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringReq...
Java
android_applicatie/Project_hardloop/app/src/main/java/controllers/ApiConnector.java
nieka/project_hardloop
apache-2.0
3,519
98
codeparrot/github-code
58b452c71235e8c0528a1c995eee78c9b0e41d47663a4b1b3a5504a30e001da4
package gam.org.com.leidianzhanji.npc; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import gam.org.com.leidianzhanji.play.Game; import gam.org.com.leidianzhanji.play.GameDraw; import gam.org.com.leidianzhanji.play.NPCBulletManager; import gam.org.com.leidianzhanji.pla...
Java
app/src/main/java/gam/org/com/leidianzhanji/npc/BOSS3.java
wusai233/LDZJ
apache-2.0
7,497
336
codeparrot/github-code
1640925bdca25c3a63c33c9c4c6eff0201356e39ab729ed7b0d6d9b51132e890
/** * 图片懒加载 vue 指令 * @author jsonleex <jsonlseex@163.com> */ function test () {} test() export default (Vue, options = {}) => { // 数组item remove方法 /* eslint-disable no-extend-native */ if (!Array.prototype.remove) { Array.prototype.remove = function (item) { if (!this.length) return var in...
JavaScript
resources/spa/src/plugins/imgLazy.js
slimkit/thinksns-plus
apache-2.0
2,582
112
codeparrot/github-code
4f368e041d6e87a214a0cb4eaf8cfe8cd1395cc233c0dd1368bdadf5c8d2bfe7
package com.github.liyiorg.mbg.util; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; /** * 泛型工具类 * @author LiYi * */ public class GenericsUtils { /** ...
Java
mbg-support/src/main/java/com/github/liyiorg/mbg/util/GenericsUtils.java
liyiorg/mybatis-generator-pagination
apache-2.0
5,310
140
codeparrot/github-code
20bd5ec5a40c80283f41eb47b406e8092287b923c9d4f4a2cfd400f2e36555a2
/* * Copyright (C) 2013 salesforce.com, 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 ...
Java
aura-impl/src/main/java/org/auraframework/impl/java/type/JavaTypeDefFactory.java
madmax983/aura
apache-2.0
1,975
59
codeparrot/github-code
42544f07eb81f0ce88a314244bdff18f46d48af395986ed9929c5a67c5617eac
package com.tngtech.junit.dataprovider; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.when; import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.util.stream.Stream; import org.ju...
Java
junit-jupiter/src/test/java/com/tngtech/junit/dataprovider/AbstractDataProviderInvocationContextProviderTest.java
TNG/junit-dataprovider
apache-2.0
2,266
63
codeparrot/github-code
4a3049ded479f4205c907782b7ef5b25dde22f2a90487b2cba07facd43586598
//===----------------------------------------------------------------------===// // // Peloton // // sorter.cpp // // Identification: src/codegen/sorter.cpp // // Copyright (c) 2015-2018, Carnegie Mellon University Database Group // //===----------------------------------------------------------...
C++
src/codegen/sorter.cpp
malin1993ml/peloton
apache-2.0
8,965
240
codeparrot/github-code
52e7cf7f750939f67c30ee36b9b40377b43ff7266e5d5fba41808db881919e74
package com.ctrip.zeus.restful.resource; import com.ctrip.zeus.model.operationlog.OperationLogDataList; import com.ctrip.zeus.restful.message.ResponseHandler; import com.ctrip.zeus.service.auth.AuthDefaultValues; import com.ctrip.zeus.service.auth.AuthService; import com.ctrip.zeus.service.auth.ResourceDataType;...
Java
slb/src/main/java/com/ctrip/zeus/restful/resource/OperationLogResource.java
sdgdsffdsfff/zeus
apache-2.0
5,813
140
codeparrot/github-code
dab22343c2b66088ae9afb4b0a21aaf187830e2298377be787659bd0de02c2b9
using System; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media.Imaging; using Windows.UI.Xaml.Navigation; namespace AppStudio.Views { public sealed partial class ImageViewer : Page { private NavigationHelper _navigationHelper; public ImageViewer() { ...
C#
AppStudio.Windows/Views/ImageViewer.xaml.cs
DioniPinho/AppMinas.WP
apache-2.0
2,381
72
codeparrot/github-code
f98c31e52fe7f1deba2043ede9dda3d0558d5f1f0f96c07e0874a4ac0e050746
"""Support for Satel Integra zone states- represented as binary sensors.""" import logging from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from . import ( CONF_OUTPUTS, CONF_ZONE_NAM...
Python
homeassistant/components/satel_integra/binary_sensor.py
nugget/home-assistant
apache-2.0
3,430
107
codeparrot/github-code
0a49a9f6db5cc26d8181a8e6e648c0015f9939562a793b280a6a8c292ebd45b0
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Rust
src/test/run-pass/while-prelude-drop.rs
1100110/rust
apache-2.0
793
31
codeparrot/github-code
cfa3c5b6800d6b4cbf31f4247df84d1a9f2487c387f9e54c2f66794e707dc748
/* * 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-dmn/kie-wb-common-dmn-client/src/test/java/org/kie/workbench/common/dmn/client/widgets/grid/columns/NameAndDataTypeColumnRendererTest.java
jhrcek/kie-wb-common
apache-2.0
2,137
55
codeparrot/github-code
a85882766e5232ef7daf5ffdb81f2ea677be92a43a502017b6d0b44ecaa8bb15
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="Asciidoctor 1.5.2"> <meta name="author" content="Sam Baskinger"> <title>Pred...
HTML
predicate/profiling.html
b1v1r/ironbee
apache-2.0
37,961
609
codeparrot/github-code
178e412fed4fa226d9b4ca4baeda64094ab43578cf1d1645ebcaf81275d1f1ae
/** * 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
jena-text/src/test/java/org/apache/jena/query/text/TestDatasetWithLuceneMultilingualTextIndex.java
apache/jena
apache-2.0
9,642
239
codeparrot/github-code
10110adb0e0993fe95f012883938d5d9a2e4c358165d2110c51133c6029d97af
<?php /** * XReorderColumn * * This class allows to add reordering links (up and down icons) to gridview. * * This class is designed to be used in connection with * - XReorderAction * - XReorderBehavior * * The following shows how to use XReorderColumn action. * * <pre> * $this->widget('zii.widgets.grid.CGr...
PHP
src/web/protected/extensions/widgets/grid/reordercolumn/XReorderColumn.php
angelosuarez/PUNTO_VENTA
apache-2.0
3,669
143
codeparrot/github-code
b2856850df83b159258dba617f4b9fac220f224b0af3d5eb194bd6040af926b5
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
C
coders/viff.c
ikbear/ImageMagick
apache-2.0
44,713
1,248
codeparrot/github-code
cad2acaee8f7da051872f4dfd810b2b9f51ac9e29e50e622d67655c9f8806641
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
C
magick/histogram.c
ikbear/ImageMagick
apache-2.0
43,823
1,342
codeparrot/github-code
2b42dfc35b17dbbd221f2bfcfd51907b499c832920c71071a9ba999d57694698
<?php /** * IP禁止表。 * @author winerQin * @date 2016-03-24 */ namespace models; class IpBan extends DbBase { /** * 表名。 * * @var string */ protected $_table_name = 'ms_ip_ban'; /** * 获取列表。 * * @param string $ip 查询关键词。查询IP段。即为后缀模糊查询。 * @param number $page 页码。 ...
PHP
library/models/IpBan.php
winerQin/yesnophp
apache-2.0
2,839
110
codeparrot/github-code
8a001b621086baf59afffc981a849de32e06c4f01cf9473bf97d7c1e38b1581f
/* * Copyright 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 applicable l...
Java
io/src/main/java/net/kuujo/copycat/io/InputStreamBufferInput.java
tempbottle/copycat
apache-2.0
6,568
303
codeparrot/github-code
fe9528e3ab1ef536e9126e83a29a510bc914320170d240e62f80e02e7fe9ae70
using System; using System.Threading.Tasks; using Template10.Services.Dialog; using Windows.ApplicationModel; using Template10.Services.Nag; namespace Template10.Services.Marketplace { public sealed class MarketplaceService : IMarketplaceService { readonly MarketplaceHelper _helper; public Mar...
C#
Services/Template10.Services.MarketplaceService/Service/Services.MarketplaceService/MarketplaceService.cs
teamneusta/Template10
apache-2.0
1,357
39
codeparrot/github-code
768d3e8dda48f14c6944e0a39744922cfc68ec64f92473f39de0ac5edd356d79
/* * 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 ...
C#
modules/platforms/dotnet/Apache.Ignite.Core/Ignition.cs
tkpanther/ignite
apache-2.0
29,756
776
codeparrot/github-code
9c25b587f106b2063d7fa0dc0fb60c555dd2119bfb8588e5e1370bfb3924a01b
/* * Copyright 2011 The Netty Project * * The Netty Project licenses this file to you 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...
Java
src/main/java/org/jboss/netty/util/internal/ConcurrentHashMap.java
beav/netty-ant
apache-2.0
48,224
1,402
codeparrot/github-code
9767a1b88e73f054ae550289775dea4e54d89189d07e293fcd7065b23adb4b87
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
Java
farrago/src/net/sf/farrago/ddl/DdlGrantPrivStmt.java
LucidDB/luciddb
apache-2.0
6,001
184
codeparrot/github-code
685adbe59e23c12b50cf5c9c44bcd9c88f53f645dccde4f072c2ae6ab8e6fa86
/* * Licensed to CRATE Technology GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not us...
Java
sql/src/main/java/io/crate/operation/reference/sys/shard/blob/BlobShardExpressionModule.java
husky-koglhof/crate
apache-2.0
3,467
63
codeparrot/github-code
418570aeef6b922b636a915541c26b82e522603f72afaa6ddad1770d9fa104c1
/* * Copyright 2017-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/jvm/java/AbstractDefaultJavaLibraryClasspaths.java
clonetwin26/buck
apache-2.0
6,823
196
codeparrot/github-code
6d84aa21e6b48e00923ad06795157690f57c615276057ac782729bc972ca7082
"""Local Media Source Implementation.""" from __future__ import annotations import mimetypes from pathlib import Path from aiohttp import web from homeassistant.components.http import HomeAssistantView from homeassistant.components.media_player.const import MEDIA_CLASS_DIRECTORY from homeassistant.components.media_p...
Python
homeassistant/components/media_source/local_source.py
mezz64/home-assistant
apache-2.0
7,330
222
codeparrot/github-code
a97e49aa4135e0fa01a206e9ef50c4083690d063dbe6425edf8dd3f5816ebf47
package org.testng; import org.testng.collections.Lists; import org.testng.collections.Maps; import java.util.List; import java.util.Map; /** * A method interceptor that sorts its methods per instances (i.e. per class). */ class InstanceOrderingMethodInterceptor implements IMethodInterceptor { @Override publi...
Java
src/main/java/org/testng/InstanceOrderingMethodInterceptor.java
akozlova/testng
apache-2.0
1,291
48
codeparrot/github-code
812a0d23079eaddebbf2953641dc1bdff46994ad4b27f503360d09c96b583de9
/*---------------------------------------------------------------- Copyright (C) 2017 Senparc 文件名:RequestMessageEvent_Location.cs 文件功能描述:事件之上报地理位置事件 创建标识:Senparc - 20150313 修改标识:Senparc - 20150313 修改描述:整理接口 ----------------------------------------------------------------*/ ...
C#
src/Senparc.Weixin.Work/Senparc.Weixin.Work/Entities/Request/Event/RequestMessageEvent_Location.cs
down4u/WeiXinMPSDK
apache-2.0
956
40
codeparrot/github-code
c73448a7070422755f5cc72e988a70c88966fec4684d83c494dbd7525a78c3b3
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 ...
Python
keystone/contrib/kds/cli/manage.py
dsiddharth/access-keys
apache-2.0
1,896
66
codeparrot/github-code
6e3a4b967236c5db576e0fa8f00dc660073245bd9684cf146fe9bbb9305ef43d
/* * Copyright 2014-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 applica...
Java
yoink-core-regionizer/src/main/java/org/wallerlab/yoink/regionizer/partitioner/SingleExponentialDecayDetectorPartitioner.java
buralin/Yoinkchange
apache-2.0
6,895
188
codeparrot/github-code
4532e76a408864ec84ae26dcf91213e988aada3c908b7534b717df4e426adaa5
# Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Piston Cloud Computing, Inc. # Copyright 2012 Cloudscaling Group, Inc. # All Rights Reserved. # # Licens...
Python
oslo_db/sqlalchemy/models.py
magic0704/oslo.db
apache-2.0
4,841
149
codeparrot/github-code
8706d785fe5bf3c9c42c36d0bdf1341689beffc6dd77c465b41b433905629eef
/* * Copyright (c) 2008-2017 Haulmont. * * 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
modules/web-widgets/src/com/haulmont/cuba/web/widgets/CubaSingleModeContainer.java
cuba-platform/cuba
apache-2.0
1,127
37
codeparrot/github-code
762ea597f528fa66461428ef5a9c7fda42371008f2527a1f80bd55cb7317865c
// +build cgo package server import ( "fmt" "time" "github.com/tangfeixiong/go-to-docker/pb" "github.com/tangfeixiong/go-to-openstack-bootcamp/kopos/kopit/pkg/gopacketctl" ) func (m *myService) sniffEtherNetworking(req *pb.EthernetSniffingData) (*pb.EthernetSniffingData, error) { resp := new(pb.EthernetSniffin...
GO
pkg/server/pcapdump_cgo.go
tangfeixiong/go-for-docker
apache-2.0
693
31
codeparrot/github-code
5221b84e1a68b8d69856f2de692c1ab9afc107d4f66a655fa5917a257ab6e97f
/* * 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/org/apache/tomcat/dbcp/dbcp2/managed/TransactionRegistry.java
apache/tomcat
apache-2.0
6,421
159
codeparrot/github-code
2d80d73b2ef528cd976f2141914cd3213096420e0e2f1393deaf37d643f4c863
# Copyright (c) 2012 OpenStack Foundation # Copyright (c) 2012 Cloudscaling # 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
nova/scheduler/filters/aggregate_instance_extra_specs.py
cloudbase/nova-virtualbox
apache-2.0
3,001
75
codeparrot/github-code
673174ff96cb99c148b4524e7e7d87c7bae42dc7cfe9ecd12babc14a46eb18b8
/* * Copyright 2010-2014 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 "l...
C#
sdk/src/Services/DirectoryService/Generated/Model/CreateDirectoryResponse.cs
mwilliamson-firefly/aws-sdk-net
apache-2.0
1,654
56
codeparrot/github-code
6d79afbac6450d3c00b1cd8a4b2a5a97d2bcbd0d8313c723ed4c8cf1b9fda080
/* * 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/cocoon-pipeline/cocoon-pipeline-impl/src/test/java/org/apache/cocoon/components/sax/XMLByteStreamCompilerInterpreterTestCase.java
apache/cocoon
apache-2.0
4,624
139
codeparrot/github-code
d11b1c7dc893b5dab2fddd3308c66532f1163b7d024eeff265014b079ee8d9d4
var base_filter = require('../lib/base_filter'), util = require('util'), logger = require('log4node'); function FilterRenameField() { base_filter.BaseFilter.call(this); this.mergeConfig({ name: 'RenameField', required_params: ['to'], host_field: 'from', start_hook: this.start, }); } util.inh...
JavaScript
lib/filters/filter_rename.js
eiossa/paStash
apache-2.0
768
33
codeparrot/github-code
3536c2b140f47796a2de5e7991f5ff94bef75337b416cbbdcaf3a25d51d33cbf
/** * Copyright 2010-2015 Axel Fontaine * * 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 o...
Java
flyway-core/src/test/java/org/flywaydb/core/internal/util/PlaceholderReplacerSmallTest.java
chrsoo/flyway
apache-2.0
4,063
97
codeparrot/github-code
49e76449ec311d96eb968e9787d0e5eb38c3389b54f185dba3966600b4243f57
package types // import "github.com/docker/infrakit/pkg/types" import ( "fmt" "reflect" "regexp" "sort" "strconv" "strings" ) var ( indexRoot = "\\[(([+|-]*[0-9]+)|((.*)=(.*)))\\]$" arrayIndexExp = regexp.MustCompile("(.*)" + indexRoot) indexExp = regexp.MustCompile("^" + indexRoot) ) // Put sets t...
GO
pkg/types/reflect.go
docker/infrakit
apache-2.0
6,311
256
codeparrot/github-code
1e6accc479d6df22f06251b9b30ea9b8834cad82249f4376aed2792dc4e3453e
/* * Copyright (c) 2005-2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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
components/event-stream/event-builder/org.wso2.carbon.event.builder.admin/src/main/java/org/wso2/carbon/event/builder/admin/internal/util/dto/converter/XmlDtoConverter.java
lankavitharana/carbon-event-processing
apache-2.0
10,183
156
codeparrot/github-code
d770bc09833da3c5638d9844dfe0efa0e9fd19086f6a5bf3f8acae9e65e33ee5
package edu.berkeley.nlp.lm.values; import edu.berkeley.nlp.lm.array.LongArray; import edu.berkeley.nlp.lm.collections.LongHashSet; import edu.berkeley.nlp.lm.map.HashNgramMap; import edu.berkeley.nlp.lm.map.NgramMap; import edu.berkeley.nlp.lm.util.Annotations.OutputParameter; import edu.berkeley.nlp.lm.util.Annotati...
Java
src/main/java/edu/berkeley/nlp/lm/values/KneserNeyCountValueContainer.java
jasonbaldridge/maul
apache-2.0
11,892
322
codeparrot/github-code
63a99679b883b363a5a65c2077ba975cdc71084bc57765dc9efcce6ee9969277
/* * Copyright 2010-2017 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 "license" fil...
C++
aws-cpp-sdk-kinesisanalytics/source/model/SourceSchema.cpp
chiaming0914/awe-cpp-sdk
apache-2.0
2,734
107
codeparrot/github-code
12e6729d183ceed7317851b2605f7b0d21f52fe7773ee855a286f40071d47471
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="html/html; charset=utf-8" /> <title>ElasticLoadBalancingDeleteLoadBalancerPolicyRequest Class Reference</title> <meta id="xcode-display" name="xcode-display" content="render"/> <meta name="viewport" content="width=550" /> <link rel="style...
HTML
Documentation/html/Classes/ElasticLoadBalancingDeleteLoadBalancerPolicyRequest.html
abovelabs/aws-ios-sdk
apache-2.0
15,628
565
codeparrot/github-code
aedeb8b35116785eb0323d59be8cda6c63276f8f55e23d48af51daeead4bf5bc
/* * Copyright 2014 NAVER 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 ...
Java
commons/src/test/java/com/navercorp/pinpoint/common/util/ThreadMXBeanUtilsTest.java
emeroad/pinpoint
apache-2.0
2,446
87
codeparrot/github-code
ac19d9f4d1d68bc0fd7dd50805401d68cb241dad0d2995c1f3eb0555228597b0
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace SqlSugar { public class Subqueryable<T> where T : class, new() { public Subqueryable<T> InnerJoin<JoinType>(Func<T, JoinType, bool> expression) { return ...
C#
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/Subquery/Subquerable.cs
sunkaixuan/SqlSugar
apache-2.0
3,786
145
codeparrot/github-code
3a5ad302c54921baeaeed0bc9d912de67e5a68904b0a21a673a08a1372143789
## @package cnn # Module caffe2.python.cnn from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import brew from caffe2.python.model_helper import ModelHelper from caffe2.proto import caffe2_pb2 import lo...
Python
caffe2/python/cnn.py
xzturn/caffe2
apache-2.0
7,639
238
codeparrot/github-code
cabd1b7dd8fcd7a25fe70aa0a73518adbe09d4aa5158fc28c4015fcc2f967a35
/* * Copyright 2012 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
src/com/google/common/css/compiler/passes/UniformVisitor.java
StefanLiebenberg/closure-stylesheets
apache-2.0
17,550
601
codeparrot/github-code
3ac545419df3e39e3a85e1412fa65f50f13e37760081a3f60999c29bd5ad4949
/** * 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
core/src/test/java/org/apache/oozie/util/db/TestRetryAttemptState.java
cbaenziger/oozie
apache-2.0
4,383
132
codeparrot/github-code
8a2fae3c3708daef2ed25ec6ef6cdeea9788334b07a4885930e7952bffb76c1f
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2021 NVIDIA 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://ww...
Python
python/paddle/jit/__init__.py
luotao1/Paddle
apache-2.0
1,478
41
codeparrot/github-code
89571fcbd30cdf9ffc1b433eb5bb1cf7a56f18d646e3bb7b256eee7896d7dee5
/* Copyright 2018 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
prow/sidecar/run.go
pwittrock/test-infra
apache-2.0
7,141
253
codeparrot/github-code
cec1da8ee8c0f8212f30b7c2584350a0b8dfa142d3f6e688e297f4a983e31117
package edu.byu.suite.features.myFinalsSchedule.service; import com.google.gson.FieldNamingPolicy; import com.google.gson.GsonBuilder; import edu.byu.suite.features.myFinalsSchedule.model.ExamScheduleWrapper; import edu.byu.support.retrofit.ByuClient; import retrofit2.Call; import retrofit2.Converter; import retrofit...
Java
app/src/main/java/edu/byu/suite/features/myFinalsSchedule/service/ExamScheduleClient.java
byu-oit-appdev/android-byu-suite-v2
apache-2.0
1,188
42
codeparrot/github-code
309e0497b39f0a5516eda3427f553430e87f09eeac86e4f143760ff1c6590d5d
/* Derby - Class org.apache.derby.impl.sql.GenericColumnDescriptor 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 y...
Java
java/engine/org/apache/derby/impl/sql/GenericColumnDescriptor.java
kavin256/Derby
apache-2.0
8,045
276
codeparrot/github-code
e993cf9e850752a033d95e79a7d6a8dd4775ef1c0b4a97f9eb1a6bf0adb04e8a
package ro.pub.cs.aipi.lab02.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import javax.persistence.Table;...
Java
solutions/netbeans/02-BookStore-JPA/src/main/java/ro/pub/cs/aipi/lab02/entities/PublishingHouse.java
aipi2015/Laborator02
apache-2.0
2,862
114
codeparrot/github-code
93d40e51f68a79320343c1b255576574c2536bc783360c8fc9d90d52855ac7fe
/* * 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...
TypeScript
server/src/main/webapp/WEB-INF/rails/webpack/views/pages/config_repos/config_repos_widget.tsx
GaneshSPatil/gocd
apache-2.0
15,005
365
codeparrot/github-code
544c3d0d771e4b93a27357fc0e6eaae745649b7e788b706bfc4d62132fd29ee4
{% extends "base.html" %} {% block head %} <style> .panel-body form { display: table; } .panel-body p { display: table-row; } .panel-body label { display: table-cell; } .panel-body input { display: table-cell; } </style> {% endblock %} {% block content %} <div class="container"> <di...
HTML
opencourse/templates/orientation/majors.html
gravitylow/OpenCourse
apache-2.0
1,189
53
codeparrot/github-code
ca3caa38060255c4bae099fabe23ae0ab47899fbc87cb9233819cb4dd0ee2881
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
C++
src/extern/inventor/lib/database/src/so/engines/SoConcatenate.cpp
OpenXIP/xip-libraries
apache-2.0
11,704
472
codeparrot/github-code
e7dd14c372bfd4c9b60a322084607a5fc26ec665f36a726f6cd502b6bf1e5e1e
//----------------------------------------------------------------------- // <copyright company="Metamorphic"> // Copyright (c) Metamorphic. All rights reserved. // Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information. // </copyright> //----------...
C#
src/Metamorphic.Sensor.Http/App_Start/RouteConfig.cs
metamorpher/Metamorphic
apache-2.0
1,398
42
codeparrot/github-code
775139461b814b8bc39311e7787c3096efdae075b94c20c86af8c60ecfd969fd
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing'; import { DebugElement } from '@angular/core'; import { ReactiveFormsM...
TypeScript
client/src/app/rules/cardinality/cardinality.component.spec.ts
learningcom/elastalert-ui
apache-2.0
4,011
111
codeparrot/github-code
98d4c3caa8573a05deb2119b47c1796085306d9e2a80a7f8b951a7bfcae52d88
// Copyright 2013 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...
C++
pagespeed/system/system_caches.cc
ajayanandgit/mod_pagespeed
apache-2.0
26,810
653
codeparrot/github-code
c27347e7140ac93910e26e7deb40ab525ed4cff660cf29dec3daaf3a6d86a4e5
/* * 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
examples/src/org/apache/click/examples/page/panel/TabbedPanelWithControls.java
medgar/click
apache-2.0
5,058
139
codeparrot/github-code
5ea251b484fb0b293d94ca19fc11426fd2c7c6cd009be72da4e5a9b4f55ab593
package me.denley.preferencebinder.sample; import android.app.Fragment; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.preference.PreferenceManager; import android.view.LayoutInflater; import android.view.View; import android.view...
Java
sample/src/main/java/me/denley/preferencebinder/sample/SampleFragment.java
denley/preferencebinder
apache-2.0
3,329
107
codeparrot/github-code