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
17a8756c33fd300bc4e71f1af33a3233265fed682ea32e312f33108fe0ce0844
package io.airlift.stats; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Ticker; import org.weakref.jmx.Managed; import java.util.concurrent.TimeUnit; import static com.google.common.base.MoreObjects.toStringHelper; import stat...
Java
stats/src/main/java/io/airlift/stats/DecayCounter.java
johngmyers/airlift
apache-2.0
5,258
179
codeparrot/github-code
f4df3113e9ec6fa04cbb0557c622e687b195d571710067ff0f9af765dce250b9
package org.jivesoftware.openfire.plugin.kraken; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import java.util.ArrayList; import org.apache.log4j.Logger; import java.util.Collection; import java.util.Iterator; import org.dom4j.Element; import org.dom4j.Attribute; import org.jivesoft...
Java
work/plugins-dev/kraken/target/jspc/java/org/jivesoftware/openfire/plugin/kraken/kraken_002dsettings_jsp.java
qyj415/openfire
apache-2.0
19,985
399
codeparrot/github-code
00cb8747b061a3b723e98485fde0b4ee1e92df12d91073639977980fbb58513b
package org.mtransit.android.commons; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Build; import android.view.Gravity; import android.view.View; import android.view.WindowManager; import android.widget.PopupWindow; import android.widget.TextView; import ...
Java
src/main/java/org/mtransit/android/commons/ToastUtils.java
mtransitapps/commons-android
apache-2.0
6,095
168
codeparrot/github-code
da5605ab826734e0eeb00474844d674888871c75db65906f1b66e86fdda1177d
//===----------------------------------------------------------------------===// // // Peloton // // postgresparser.cpp // // Identification: src/parser/postgresparser.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===---------------------------------------------...
C++
src/parser/postgresparser.cpp
vittvolt/15721-peloton
apache-2.0
43,432
1,216
codeparrot/github-code
571551c7ec6496ff3d03841c02a3ffe145318d884dd6736cdc0b1338332804c6
// // Project: KTRW // Author: Brandon Azad <bazad@google.com> // // Copyright 2019 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/LI...
C
ktrw_kext_loader/kernel_call/kernel_call_7_a11.c
googleprojectzero/ktrw
apache-2.0
10,201
330
codeparrot/github-code
215bc7293da56c7d8175146fa0ddbdf70cf4fa4ac0f6a8bc360811d699374093
/* * Copyright 2015-2016 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
Java
app-starters-test-support/src/main/java/org/springframework/cloud/stream/app/test/sftp/SftpTestSupport.java
spring-cloud/spring-cloud-stream-app-starters
apache-2.0
2,783
93
codeparrot/github-code
b9dac3df69d82524bbc40ad34dc418055226344e134b12fc68cbae9d8c73acce
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // \brief Properties file similar to java.util.Properties // // Created 2004/05/05 // // Copyright 2008-2012,2016 Quantcast Corporation. All rights reserved. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos Fi...
C
src/cc/common/Properties.h
quantcast/qfs
apache-2.0
7,246
197
codeparrot/github-code
793b9f92dc8ac3da4d0aea559b7d116ae684ff7d334dd0f8885e7eb5e51fe647
package com.indeed.util.io; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.io.File; import java.io.IOException; /** @author kenh */ public class BufferedFileDataInputOutputStreamTest { @Rule public TemporaryFolder tempDir = new Temporary...
Java
io/src/test/java/com/indeed/util/io/BufferedFileDataInputOutputStreamTest.java
indeedeng/util
apache-2.0
4,068
93
codeparrot/github-code
cd3bdd9d1a86af8315955fb2ed910dc367f27efec7ec909da40b13fca97392b1
import { clamp, mean, isNaN, get, isArray } from 'lodash'; import update from 'immutability-helper'; import { helpers } from 'veritone-redux-common'; const { createReducer } = helpers; export const PICK_START = 'PICK_START'; export const PICK_END = 'PICK_END'; export const RETRY_REQUEST = 'RETRY_REQUEST'; export const...
JavaScript
packages/veritone-widgets/src/redux/modules/filePicker/index.js
veritone/veritone-sdk
apache-2.0
6,708
294
codeparrot/github-code
6888f861fa687a378ebd2cd731009ba3d4bf9e88f5d043d75ccb7320681804ce
/* Copyright 2019 Telstra Open Source * * 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 la...
Java
src-java/stats-topology/stats-storm-topology/src/main/java/org/openkilda/wfm/topology/stats/metrics/TableStatsMetricGenBolt.java
jonvestal/open-kilda
apache-2.0
2,168
56
codeparrot/github-code
b18c00e10bad7d5104fb8a7a0e7c8234dcb2b0e3d9a5f014a8b9779f13e42e42
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
Java
java/server/src/org/openqa/grid/selenium/GridLauncherV3.java
sankha93/selenium
apache-2.0
11,755
307
codeparrot/github-code
1b89c4bf4530a613fd5c7ac648f2c23225c3216e7671e6962077e1ef1c76ccbd
/* First created by JCasGen Sun Nov 28 23:36:26 CET 2010 */ package org.apache.uima; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.jcas.cas.TOP_Type; import org.apache.uima.jcas.cas.FSArray; import org.apache.uima.jcas.tcas.Annotation; /** * Updated by JCasG...
Java
uima-star/uima-connectors/src/main/java/org/apache/uima/SentenceAnnotation.java
nicolashernandez/dev-star
apache-2.0
3,786
95
codeparrot/github-code
d4a43c969a64a42c51db9243dd393481c5165da9a7c8693ea9a2874237df5f30
// This defines the interface to the QsciLexerMatlab class. // // Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com> // // This file is part of QScintilla. // // This file may be used under the terms of the GNU General Public License // version 3.0 as published by the Free Software Foundatio...
C
Qt4Qt5/Qsci/qscilexermatlab.h
ChanJLee/ChanIDE
apache-2.0
3,100
113
codeparrot/github-code
a19bd1cb627f9849a84232e05d7f9d11e11ebb5f2048b69e87094ca7033f7cb6
/* * Copyright 2014-2019 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 "licen...
Java
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DescribeCollectionRequest.java
jentfoo/aws-sdk-java
apache-2.0
3,496
120
codeparrot/github-code
ce6d841cc4fed1d0f6f777987aa6ea7eb898eeb9eacc58bbdaffbe805386093a
/** * Copyright 2016 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 agreed to in w...
Java
src/main/java/io/reactivex/internal/schedulers/ScheduledRunnable.java
benjchristensen/RxJava
apache-2.0
3,768
128
codeparrot/github-code
bdbc1c999227db7278a49a18d512a13a829c81ad6450e3bbc0edc58945f7d879
/* * Copyright 2017-2022 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 "licen...
Java
aws-java-sdk-waf/src/main/java/com/amazonaws/services/waf/model/waf_regional/transform/CreateRegexPatternSetResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,186
79
codeparrot/github-code
2bb38a13870593ec20e494bbb76d03a324c6d3796c056b2dc3000da5a0d76628
/** * @license * Copyright 2016 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
lighthouse-core/test/audits/accessibility/aria-allowed-attr-test.js
tommycli/lighthouse
apache-2.0
1,594
57
codeparrot/github-code
f5842a25dab9d51dbc7a7725f63988e896e5a9d78662e899daef86beaec8bd48
/* * 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-medialive/source/model/ListTagsForResourceRequest.cpp
cedral/aws-sdk-cpp
apache-2.0
991
38
codeparrot/github-code
71734024239d5235c82786ccf91fae5530df0d6e640f30cbb10547d984261c81
package builds import ( "os" "time" "github.com/pivotal-golang/clock" ) //go:generate counterfeiter . BuildTracker type BuildTracker interface { Track() } type TrackerRunner struct { Tracker BuildTracker Interval time.Duration Clock clock.Clock } func (runner TrackerRunner) Run(signals <-chan os.Signal...
GO
builds/tracker_runner.go
zachgersh/atc
apache-2.0
574
40
codeparrot/github-code
4d7201958cda11e850e4bbf6fa7620fa397bb43fcd622c8a48b45d49bf98f7a7
# Copyright 2011-2019, The Trustees of Indiana University and Northwestern # 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.0 # # ...
Ruby
app/models/batch_registries.rb
ualbertalib/avalon
apache-2.0
2,378
80
codeparrot/github-code
6d63f56e0cab822d98f101c3b345a2c4d3bc98358576820e97a36da29a1fd7c5
package nl.maastrichtuniversity.networklibrary.cyneo4j.internal; import nl.maastrichtuniversity.networklibrary.cyneo4j.internal.configuration.AppConfiguration; import nl.maastrichtuniversity.networklibrary.cyneo4j.internal.neo4j.Neo4jClient; import nl.maastrichtuniversity.networklibrary.cyneo4j.internal.ui.CommandMenu...
Java
src/main/java/nl/maastrichtuniversity/networklibrary/cyneo4j/internal/CyActivator.java
naipath/cyNeo4j
apache-2.0
4,067
70
codeparrot/github-code
f144733da237dc86f77aaabf80cae8da239b41041fd1bd74acb70ff528144425
/* * Copyright 2016 Fabio Collini. * * 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
lifecyclebinder-demo-fragments/src/main/java/it/codingjam/lifecyclebinder/demo/ActivityLogger.java
fabioCollini/LifeCycleBinder
apache-2.0
1,915
63
codeparrot/github-code
0777c7cfd3bc1ea409245d58324250db34422c61262ec7edb5de42aa77db5270
<?php defined('SYSTEM_IN') or exit('Access Denied'); define('subscribe_key', '系统_关注事件'); define('default_key', '系统_默认回复'); require_once WEB_ROOT.'/includes/lib/alipaySDK/config.php'; require_once WEB_ROOT.'/includes/lib/alipaySDK/AlipaySign.php'; require_once WEB_ROOT.'/includes/lib/alipaySDK/PushMsg.php'; cla...
PHP
system/alipay/mobile.php
jaydom/weishang
apache-2.0
6,047
183
codeparrot/github-code
f221c1cd58d707d3e14bf932f5d7759c8de43d58f100d8564401380326e61b39
/* * $Id: JGraphExampleGraph.java,v 1.7 2008/02/25 09:22:27 david Exp $ * Copyright (c) 2001-2005, Gaudenz Alder * * All rights reserved. * * This file is licensed under the JGraph software license, a copy of which * will have been provided to you in the file LICENSE at the root of your * installation direct...
Java
devnote-example/src/main/java/com/jgraph/layout/JGraphExampleGraph.java
rayrelay/devnote
apache-2.0
6,543
236
codeparrot/github-code
231a051601d92f83d37b581a77a58dbd7ead55b5f3ceb78e256b4aa5819c4f6a
package org.thinkbigthings.tictactoe; import org.thinkbigthings.tictactoe.player.HumanPlayer; import org.thinkbigthings.tictactoe.player.PerfectPlayer; import org.thinkbigthings.tictactoe.player.Player; import org.thinkbigthings.tictactoe.player.RandomPlayer; import java.io.BufferedReader; import java.io.InputStream...
Java
src/main/java/org/thinkbigthings/tictactoe/Game.java
thinkbigthings/tic-tac-toe
apache-2.0
3,786
112
codeparrot/github-code
d561a6e128e3228f48f0144e7d685b4bc8d5ffa905caf02046443e8fee79e299
/* * Copyright (C) 2011 Everit Kft. (http://www.everit.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.apache.org/licenses/LICENSE-2.0 * * Unless required...
Java
component/src/main/java/org/everit/persistence/jdbc/dsf/ecm/internal/XADataSourceAttributePriority.java
zsigmond-czine-everit/jdbc-dsf-ecm
apache-2.0
1,160
38
codeparrot/github-code
77baa1fd05cbff458f398fc16afa7b48ebd656b74a2c8336a35aaf09528677ca
/* * 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...
Java
hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/constraints/PartitionConstraintHelper.java
tectronics/hyracks
apache-2.0
2,175
44
codeparrot/github-code
2449f17237df7d445c2a5c58cf0a0d9613495f43597db7ec7f0e0b4b0d16c757
package org.nlpcn.es4sql.domain; import org.elasticsearch.search.sort.ScriptSortBuilder; import org.nlpcn.es4sql.parse.SubQueryExpression; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * 将sql语句转换为select 对象 * * @author ansj */ public class Select extends Query { public stat...
Java
src/main/java/org/nlpcn/es4sql/domain/Select.java
NLPchina/elasticsearch-sql
apache-2.0
4,298
150
codeparrot/github-code
a4ef3ff7661dd73ca4473a8634311dc073ff843a8b57b445eb899ac2f03740b6
#include <eeros/logger/Logger.hpp> #include <eeros/logger/StreamLogWriter.hpp> #include <eeros/safety/SafetySystem.hpp> #include <eeros/safety/SafetyProperties.hpp> #include <eeros/safety/InputAction.hpp> #include <eeros/control/TimeDomain.hpp> #include <eeros/core/Executor.hpp> #include <eeros/control/SpaceNavigatorIn...
C++
examples/block/SpaceNavigatorTest.cpp
eeros-project/eeros-framework
apache-2.0
2,416
82
codeparrot/github-code
fbf6dd4780af9b49f7af9ecdc14db30a840223814cc0251450a8b48033596910
/* * Copyright 2014-2016 See AUTHORS file. * * 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
ui/src/test/java/com/kotcrab/vis/ui/test/manual/TestListView.java
piotr-j/VisEditor
apache-2.0
4,142
146
codeparrot/github-code
527e97620694f7484b00e071eebec6e767066204c745639cde41c3280b857568
/* * 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-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/ozoneimpl/TestOzoneContainer.java
GeLiXin/hadoop
apache-2.0
22,428
600
codeparrot/github-code
7e44e8cbf883354b8e51294696b9cec7e6c6053082c3ef58a43b53ccd4a48665
/* * 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
presto-spark-launcher/src/main/java/com/facebook/presto/spark/launcher/PrestoSparkLauncherCommand.java
EvilMcJerkface/presto
apache-2.0
3,349
89
codeparrot/github-code
ce7e756f291b34c8d371b426044ad85f97bbafbcfb3a33490522b23aa33a12fa
/** * Copyright 2012 Shopzilla.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
Java
hadoop-repl/src/main/java/com/shopzilla/hadoop/repl/commands/Command.java
shopzilla/hadoop-in-a-box
apache-2.0
1,396
45
codeparrot/github-code
7f5a75c6771d24d16929b523a474aab33eb4a903d6e30ebf790264ab73109dd3
/* * Copyright © 2014 Cask Data, 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 t...
Java
tephra-core/src/test/java/co/cask/tephra/TransactionServiceMainTest.java
StackVista/tephra
apache-2.0
2,208
71
codeparrot/github-code
d597f42a3e9bbc3bb1e2d1e81ba02c9cfe636996f1dbc1c85bc6361a468a7e45
/* * Copyright 2017-2022 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 "licen...
Java
aws-java-sdk-snowdevicemanagement/src/main/java/com/amazonaws/services/snowdevicemanagement/model/transform/ServiceQuotaExceededExceptionUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,026
76
codeparrot/github-code
05a1d461b01f59bbecb6d1f399295797e54c8632e73f3419f2b39514a5cb2d6e
// 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 agreed to in writing, softw...
Java
code/extensions/caching/cloud-datastore/src/main/java/com/google/cloud/broker/caching/remote/DatastoreCacheCleanup.java
GoogleCloudPlatform/gcp-token-broker
apache-2.0
1,307
35
codeparrot/github-code
2e4b5ff5fe702666178547a795a2db5097a3130cfc70e822b7e11603524dca87
/* * 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 distributed under t...
Java
src/main/java/org/assertj/core/internal/Files.java
joel-costigliola/assertj-core
apache-2.0
27,343
608
codeparrot/github-code
420f5d8422b4b05ff02dfc37e73118b49f84b3716e89e49028da130cd27898eb
package redis.clients.collections.builder; import java.util.ArrayList; import java.util.List; import java.util.Set; import redis.clients.collections.Ranking; import redis.clients.collections.ScoresPoint; import redis.clients.jedis.Jedis; import redis.clients.jedis.Tuple; class ScorePointLong extends AbstractScoresPo...
Java
src/main/java/redis/clients/collections/builder/ScorePointLong.java
otaviojava/redis-collections
apache-2.0
1,303
51
codeparrot/github-code
e42145c41262fea3623ff7b98a5862df6d2919953f5b55471b00cc62a97d015d
# Copyright 2017 Erik Tollerud # # 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 ...
Python
catterplot/core.py
eteq/catterplotpy
apache-2.0
4,056
127
codeparrot/github-code
da731c1bbb24954de7a12b05fe0e406240362a943853ed2ed62c2068a633c7b9
package io.leopard.monitor.connection; import io.leopard.burrow.lang.SynchronizedLRUMap; import io.leopard.jdbc.JdbcConnectionListener; import io.leopard.monitor.MonitorBeanFactory; import java.sql.Connection; import java.util.Map; public class JdbcConnectionListenerImpl implements JdbcConnectionListener { ...
Java
leopard-monitor/src/main/java/io/leopard/monitor/connection/JdbcConnectionListenerImpl.java
tanhaichao/leopard
apache-2.0
1,980
66
codeparrot/github-code
21fba369fd8b5f7dd1fdf521aad0fd7f0378979ff7026542b6f55b24ed8d660d
import { setPropertiesFromJSON } from '../../json-helper'; import Entity from './Entity'; /** * Generated class for shr.entity.Group. * @extends Entity */ class Group extends Entity { /** * Get the entry information. * @returns {Entry} The shr.base.Entry */ get entryInfo() { return this._entryInf...
JavaScript
src/model/shr/entity/Group.js
standardhealth/flux
apache-2.0
3,110
152
codeparrot/github-code
bc06f2dc075b5dfd27bb280c9a83c2289b8d10ad6fe93d891d250c4b46d23967
/* * 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
presto-main/src/main/java/com/facebook/presto/execution/TaskThresholdMemoryRevokingScheduler.java
arhimondr/presto
apache-2.0
6,067
153
codeparrot/github-code
c87be1942937a2bc02af382e2807ec95f502d77601ec60b6f007c32ef20bbeee
package com.mob.thor.rpc.common.utils; import java.util.Iterator; import java.util.List; import org.apache.log4j.Level; import com.mob.thor.rpc.common.logger.Logger; import com.mob.thor.rpc.common.logger.LoggerFactory; public class LogUtil { private static Logger Log = LoggerFactory.getLogger(LogUt...
Java
thor-rpc/src/main/java/com/mob/thor/rpc/common/utils/LogUtil.java
MOBX/Thor
apache-2.0
3,230
104
codeparrot/github-code
a40f282265628f3fcedc39c5acb84803e4f22459e1b4244e1ee8af1b1fa9a2d6
/****************************** Description: Net handler base. Author: M.Wan Date: 3/14/2015 ******************************/ #ifndef __NET_NET_HANDLER__ #define __NET_NET_HANDLER__ #include "../base/mwbase.h" #include <string> MW_FRAMEWORK_BEGIN class MWNetResponse; /** * A handler class to handle the networ...
C
frameworks/runtime-src/Framework/net/MWNetHandler.h
wanmaple/MWFrameworkForCocosLua
apache-2.0
911
48
codeparrot/github-code
6361599731698c37fd5565280c6311723be9828b7840b20b28e09b1b3a851eb5
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Square Tools repo"> <meta name="author" content="Square Inc."> <link rel=...
HTML
index.html
square-tools/square-tools.github.io
apache-2.0
3,439
84
codeparrot/github-code
591ba6daf7c03115812245aac5bec1832292203a667d62c46fdbc92d6bec8ada
/** * @license * Copyright 2017 JBoss 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 o...
TypeScript
front-end/studio/src/app/pages/apis/{apiId}/editor/_components/forms/channel-form.component.ts
Apicurio/apicurio-studio
apache-2.0
2,612
81
codeparrot/github-code
f314b0c41f5a4a419754f6794f419d2dabc32e7dc6f9012cdfbda1f8e62e0f82
from typing import Any, List, Tuple, Dict #cast from sphinx.application import Sphinx # from sphinx.ext.autodoc import Documenter from sphinx.ext.autodoc import ModuleLevelDocumenter from sphinx.pycode import ModuleAnalyzer, PycodeError #from sphinx.domains.python import PythonDomain from sphinx.locale import __ from ...
Python
Lib/fontbakery/sphinx_extensions/profile.py
googlefonts/fontbakery
apache-2.0
24,923
595
codeparrot/github-code
9412a28dd403a80f7c65b64ba4e4f107b7ce8a9fe4e6c3cdc1d700b3190ee76f
package functools //All returns false if any predicate is false. All() is True. func All(bools ...bool) bool { for _, b := range bools { if !b { return false } } return true } //Any returns true if any predicate is true. Any() is False. func Any(bools ...bool) bool { for _, b := range bools { if b { r...
GO
functools/bool.go
eyecuelab/kit
apache-2.0
526
32
codeparrot/github-code
998ad421da5ce8ab99557c214d285f55d8f1d44f8cd1564e4fd57b8da97a4775
/* * 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
openaz-xacml-pdp/src/main/java/org/apache/openaz/xacml/pdp/policy/AllOf.java
dash-/apache-openaz
apache-2.0
4,863
145
codeparrot/github-code
505b56144a4ee2ea2fe5d0335a8e55c15f41d2baa7020ece24555696e9d45955
// Copyright 2017 Istio 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 i...
GO
pilot/pkg/serviceregistry/kube/client.go
frankbu/istio
apache-2.0
3,076
95
codeparrot/github-code
c145c39c55f988a0bd0bccf584b64a79bf6314a5da659a9ac19dccd693b8c23a
package edu.jhu.cs.cs439.project; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Random; import java.util.Set; import edu.jhu.cs.cs439.project.projectinterface.Hashers; /** * This class implements hash function library th...
Java
src/edu/jhu/cs/cs439/project/KMerHashers.java
yliu120/ErrorCorrection
apache-2.0
2,723
125
codeparrot/github-code
c212fb5eb4bed53b30afda6a5be7cd80b306052c8eba398d524377f9cc9894a2
/** * Copyright 2012 International Business Machines Corp. * * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obt...
Java
com.ibm.jbatch.tck/src/main/java/com/ibm/jbatch/tck/artifacts/specialized/MyPartitionCollector.java
WASdev/standards.jsr352.tck
apache-2.0
1,303
44
codeparrot/github-code
b6002baa0b312556eff0dfa3e6da00371ed7246a18212020ebc418494b769ebf
// a Bar chart Bridle.BarChart = function() { var mode = 'stacked'; var margin = { top : 50, bottom : 100, left : 100, right : 100 }; var height = 400; var width = 1000; var xValue = function(d) { return d.x; }; var yValue = function(d) { return d.y; }; var nameValue =...
JavaScript
src/barChart.js
pearson-enabling-technologies/bridle
apache-2.0
15,544
601
codeparrot/github-code
294115821890d37455f3fd8f0854a06895a4f0900216353416d91bdc202b7f12
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package msp import ( "bytes" "crypto/x509" "crypto/x509/pkix" "encoding/hex" "encoding/pem" "fmt" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric/bccsp" "github.com/hyperledger/fabric/bccsp/factory" "githu...
GO
msp/mspimpl.go
mqshen/fabric
apache-2.0
19,757
578
codeparrot/github-code
687de6ffb3011dae1f3d1d8f7a36ea104aa17320592293ee1bf966a20537404d
/* Generic definitions */ /* Assertions (useful to generate conditional code) */ /* Current type and class (and size, if applicable) */ /* Value methods */ /* Interfaces (keys) */ /* Interfaces (values) */ /* Abstract implementations (keys) */ /* Abstract implementations (values) */ /* Static containers (keys) */ /...
Java
src/it/unimi/dsi/fastutil/ints/Int2CharAVLTreeMap.java
karussell/fastutil
apache-2.0
53,587
1,795
codeparrot/github-code
7f7a847532b126a983724a506ecec889e4f7f6d82bc8ac347394daa6c4ca4e80
package lsh.ext.gson.adapters; import java.io.IOException; import java.util.Date; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import lombok.AccessLevel; import lombok.RequiredArgsConstructor; /** * Represents the epoch to {@link Date} and v...
Java
src/main/java/lsh/ext/gson/adapters/EpochDateTypeAdapter.java
lyubomyr-shaydariv/ext-gson
apache-2.0
997
44
codeparrot/github-code
a7969849cfed3f840b9e502c0265bf77da74da6c60df4a687b6e4334a18015f3
/* * 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
platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/ExternalLibraryPathTypeMapperImpl.java
ernestp/consulo
apache-2.0
1,797
49
codeparrot/github-code
ca518bc2d5593edae522a02662c99aa47170e11b4376403b7fc3c033d192d141
# Copyright 2021 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 agreed to in writing, ...
Python
gcp/appengine/monorail.py
google/osv
apache-2.0
1,791
57
codeparrot/github-code
32c70a63bbb0d1b3aba0fce46c9029536ef551e7b5ab1061af9911220c1c9e58
/* * Copyright 2018 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 agreed to...
Java
orca-web/src/main/groovy/com/netflix/spinnaker/config/EnhancedMonitoringConfiguration.java
duftler/orca
apache-2.0
3,848
96
codeparrot/github-code
bced89b22f378d2658d89e41a052c60882d51bd1b690d57be1545da6dcd727e5
# Copyright 2016-2021 The Matrix.org Foundation C.I.C. # # 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...
Python
synapse/handlers/room.py
matrix-org/synapse
apache-2.0
64,472
1,682
codeparrot/github-code
d7e74d93be49896981ad27a10e87f278e87c2a22732bf92dd7136ba721259c07
/* * 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/query/schema/SchemaIndexCacheVisitorImpl.java
dream-x/ignite
apache-2.0
6,759
198
codeparrot/github-code
94a85f00fbcb38c760b215861134f45afcb1963071e0120187da88d82b3ef10d
////////////////////////////////////////////////////////////////////////////////// // Managed UPnP // Written by Aaron Lee Murgatroyd (http://home.exetel.com.au/amurgshere/) // A CodePlex project (http://managedupnp.codeplex.com/) // Released under the Microsoft Public License (Ms-PL) . /////////////////////////////...
C#
src/ThirdPartyUnmodifiedLibraries/ManagedUPnP/Descriptions/Extensions/ServiceExtensions.cs
AshitakaLax/MCE-Clean-Buddy
apache-2.0
1,941
48
codeparrot/github-code
fd623a94adeddd7e5767776ede661751428d37b3ec6abbeef8f66421fe1aafac
package blog.controller; import auth.AuthHelper; import beans.BeanManager; import blog.service.IResourceLevelService; import org.apache.http.HttpException; import org.apache.http.HttpRequest; import org.apache.http.HttpResponse; import org.apache.http.protocol.HttpContext; import rest.RestHelper; import rest.WithMatch...
Java
apis/blog/src/blog/controller/ListResourceLevelCtrl.java
CaoYouXin/serveV2
apache-2.0
1,045
39
codeparrot/github-code
5b630e3463cf7de7130e0d101d6cac4ac718f1bd74a89c52ec3441bbd145ae66
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
Python
src/rogerthat/bizz/jobs/__init__.py
our-city-app/oca-backend
apache-2.0
17,649
398
codeparrot/github-code
770cdb51c7101f8d054583208774b75b265ac99cee6e4ffc0310f90dc077b72f
/** * @author Damien Dell'Amico <damien.dellamico@gmail.com> * @copyright Copyright (c) 2017 * @license GPL-3.0 */ import { NgModule } from '@angular/core'; import { IonicApp, IonicModule } from 'ionic-angular'; import { TaxiApp } from './app.component'; import { AboutPage } from '../pages/about/about'; impor...
TypeScript
src/app/app.module.ts
ddellamico/ionic2-taxi-app
apache-2.0
1,231
48
codeparrot/github-code
a858cdf9a113b373e4a11f4b63e34cac76b49a1dff5fff0316b4adeede33c0b2
To programmatically specify a look and feel, use one of the methods: <ul> <li><a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/UIManager.html#setLookAndFeel(java.lang.String)">UIManager.setLookAndFeel(String className)</a></li> <li><a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/UIManage...
HTML
resources/old-version.php/content/blog/2015-04-03-set-the-look-and-feel-in-java/content.html
cristian-sulea/cristian-sulea-net
apache-2.0
4,461
95
codeparrot/github-code
3d78ea6ad2d89df0190dd3295575f4f73cd330d01aed8c4e72cf72b37f73a60d
/* * 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
test/logger-usage/src/test/java/org/elasticsearch/test/loggerusage/ESLoggerUsageTests.java
uschindler/elasticsearch
apache-2.0
11,342
270
codeparrot/github-code
8de7cec23875f406388288008218b42d20c446fe44c4287a6fa64acc9e385696
// Copyright 2017 The Noda Time Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0, // as found in the LICENSE.txt file. using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; using System; using System.Diagnostics; using System.Threading; namespace NodaTi...
C#
src/NodaTime.Web/Services/TimerCache.cs
jskeet/nodatime.org
apache-2.0
2,486
73
codeparrot/github-code
d2350c5bab6c2792b54e57c6fd06af1150d7432faa0381fd48649d37b416a241
/* * Copyright 2017-2022 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 "licen...
Java
aws-java-sdk-licensemanager/src/main/java/com/amazonaws/services/licensemanager/model/transform/IssuerJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
2,861
79
codeparrot/github-code
7ea6300a3e82807dcd6833fba89fb066aa05ce37b4904816206eb57be39a2f14
/******************************************************************************* * 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
datavec/datavec-data/datavec-geo/src/test/java/org/datavec/api/transform/transform/TestGeoTransforms.java
deeplearning4j/deeplearning4j
apache-2.0
6,800
151
codeparrot/github-code
ac09eaee828590e9feb8858c22e53b31ea82a12d1b8e3fc4734a800727a2fc23
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_HW_IP_AES_MODEL_AES_H_ #define OPENTITAN_HW_IP_AES_MODEL_AES_H_ /** * Encrypt one data block (16 Bytes) in ECB mode. * * @param plain_text Input ...
C
hw/ip/aes/model/aes.h
lowRISC/opentitan
apache-2.0
7,377
239
codeparrot/github-code
1b04247051b7c0ba1dbeb33d5543329a3ba8b642298381755a4c7d281e6a95e7
import PropTypes from "prop-types"; import React from "react"; import { connect } from "react-redux"; import { loadAllCertificates } from "../../AC"; import accordion from "../../decorators/accordion"; import { filteredCrlsSelector } from "../../selectors/crlsSelectors"; import ProgressBars from "../ProgressBars"; impo...
TypeScript
app/components/CRL/CRLList.tsx
TrustedPlus/esign
apache-2.0
2,306
90
codeparrot/github-code
9e5cda538a86af9b8702361f78d962439c808a1daf3c56cb737cc103161e4b3d
/** * @fileoverview Utility to detect and address folder and file sharing which is broader than intended * Removes overly broad permissions at folder level * Notifies specified email of breaches */ function main() { var user = Session.getActiveUser().getEmail(); var hostDomain = user.split('@')[1]; var permi...
JavaScript
DrivePermissionsScrubber/Scrub.js
demoforwork/public
apache-2.0
4,949
146
codeparrot/github-code
b8d93eb9d9ce4a486b7f87658f758b8d9a53694da95acb21f544b142ea6d0af6
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <stack> #include <algorithm> using namespace std; bool isMatch(char left, char right) { if (left == '(' && right == ')') { return true; } else if (left == '{' && right == '}') { return true; } else if (left == '[' && right == ']'...
C++
Data Structures/Stacks/Balanced Brackets/main.cpp
wenqf11/HackerRank
apache-2.0
1,021
60
codeparrot/github-code
6ec6dfe5064747de61dc9139e08f77ac19cf0e9cb78c2bba9634729e3ad4d3dd
#!/usr/bin/env python3 import argparse import ipaddress import gevent import gevent.wsgi import hashlib import json import traceback from gevent import monkey from werkzeug.exceptions import (BadRequest, HTTPException, InternalServerError, NotFound) from werkzeug.routing import Map, R...
Python
src/pixied.py
algorithm-ninja/pixie
apache-2.0
4,785
147
codeparrot/github-code
117f81f88ddb2b67bbba470f8dd7358a267fc297265de4cf8e8f633e79b84698
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
Python
manila/api/middleware/fault.py
bswartz/manila
apache-2.0
3,089
80
codeparrot/github-code
8d82ccccc712c9e6926c286ff9fc7deb8a0e2d7dcea85f1e33ef3fa6de75bd8e
<?php // +---------------------------------------------------------------------- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] // +---------------------------------------------------------------------- // | Copyright (c) 2013-2014 http://www.thinkcmf.com All rights reserved. // +--------------------------------------...
PHP
application/Admin/Controller/PublicController.class.php
bravelib/ThinkCMFX2Base
apache-2.0
3,816
100
codeparrot/github-code
95ca430a86909b6b42ae1590bfaab9582c49e7d26393ba6107bb722b85180dae
--- author: dema comments: true date: 2007-09-16 11:46:50+00:00 layout: post slug: qos-per-la-nuova-fonera-plus title: 'Qos per la nuova Fonera plus ' wordpress_id: 101 categories: - fon - fonera - fonera plus - l7 - netfilter - qos --- ![](http://l7-filter.sourceforge.net/l7logo) La nuova [Fonera plus ](https://shop...
Markdown
_posts/2007-09-16-qos-per-la-nuova-fonera-plus.markdown
anton-dema/anton-dema.github.io
apache-2.0
3,544
121
codeparrot/github-code
46b1e1ddfcf064e490575544e08594b9cf4a02f8f297435d05ab2d665a6b7b1c
/* * 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
src/main/java/com/intel/ssg/dcst/panthera/parse/sql/generator/AsteriskGenerator.java
adrian-wang/project-panthera-skin
apache-2.0
1,954
49
codeparrot/github-code
569899acafd6ad20c5a4cf9448d2e8ca4176186e5147528fcd190cb0964f8d2a
using System; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Windows; using SerialPortUtility.Services; namespace SerialPortUtility.Views { public abstract class WindowBase : Window, IWindow, INotifyPropertyChanged { public WindowBase() { StateChan...
C#
PortUtil/Views/WindowBase.cs
robertsundstrom/SerialPortUtility
apache-2.0
1,463
50
codeparrot/github-code
99cd28e027f9f53b68542d1d03d9e5dce555bbc541424c2a6410015f17b5fa5f
namespace ChinaUnion_Agent { partial class frmMain { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// ...
C#
Mail/ChinaUnion_Agent/frmMain.Designer.cs
ZhouAnPing/Mail
apache-2.0
48,020
726
codeparrot/github-code
54077c6eb4e8f0e1ed15fbf2300d3a9e2a72b85dd8c3480ec98f89544caec760
package com.dianping.cat.report.task.metric; import java.util.List; public class BaselineConfig { private int m_id; private String m_key; private int m_targetDate; private List<Double> m_weights; private List<Integer> m_days; public List<Integer> getDays() { return m_days; } public int getId() { r...
Java
cat-home/src/main/java/com/dianping/cat/report/task/metric/BaselineConfig.java
ServerStarted/cat
apache-2.0
817
59
codeparrot/github-code
e98baffba326b121bffe0d4b5cb1a0eb6c3e691ce9470c9ba278bda2d048a151
/* Copyright (c) 2017 Marcin Szeniak (https://github.com/Klocman/) Apache License Version 2.0 */ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Security.Principal; using System.Text; using System.Threading; us...
C#
source/StoreAppHelper/AppManager.cs
Klocman/Bulk-Crap-Uninstaller
apache-2.0
7,888
182
codeparrot/github-code
638f1c1a27bb979feee2c9993ad7e53202b15d75b4346b1103070bacd71aaec9
package org.apereo.cas.web.flow.configurer; import org.apereo.cas.web.flow.CasWebflowConfigurer; import org.apereo.cas.web.flow.CasWebflowConstants; import org.apereo.cas.web.flow.CasWebflowExecutionPlan; import lombok.val; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import org.springframewor...
Java
core/cas-server-core-webflow-mfa-api/src/test/java/org/apereo/cas/web/flow/configurer/BaseMultifactorWebflowConfigurerTests.java
leleuj/cas
apache-2.0
2,616
61
codeparrot/github-code
68ef0d9611312a668a99daa77d304e4af1fd080e3658986609cefe6126fae1bb
package editor.search; import editor.FileTree; import editor.FileTreeUtil; import editor.NodeKind; import editor.util.IProgressCallback; import java.util.Collections; import java.util.List; import java.util.function.Predicate; /** */ public abstract class AbstractSearcher { public abstract boolean search( FileTre...
Java
gosu-lab/src/main/java/editor/search/AbstractSearcher.java
gosu-lang/gosu-lang
apache-2.0
1,996
76
codeparrot/github-code
3197a1f99184364ab6818e8736460305d092159bf8d0788218563851bd680f68
// $Id$ package com.indeed.util.io; import com.google.common.base.Charsets; import com.google.common.base.Preconditions; import com.google.common.base.Supplier; import com.google.common.hash.Hashing; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nonnull; import java.io.BufferedInput...
Java
io/src/main/java/com/indeed/util/io/Files.java
indeedeng/util
apache-2.0
35,710
971
codeparrot/github-code
44f8718c9d7f9fac5cf2613991947c215139ccd0ef3cd9e4b3b57264dd90566a
package com.zhenghongfei.todolist.springmvc.controller; import com.zhenghongfei.todolist.springmvc.model.Todo; import com.zhenghongfei.todolist.springmvc.service.TodoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.stereotype...
Java
src/main/java/com/zhenghongfei/todolist/springmvc/controller/TodoController.java
zhenghongfei/todolist
apache-2.0
1,579
53
codeparrot/github-code
7ee62894bc88fc01dadb0ad1d836855096c310eed564a9db47bd5c83a0b99a10
/* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
sabot/kernel/src/test/java/com/dremio/exec/planner/TestComplexSchemaFlattener.java
dremio/dremio-oss
apache-2.0
3,607
97
codeparrot/github-code
9b0f4a4d17584f29078f23ac9c9731ce7b90180c44eaccf899b5eb6c2233829f
/** * Copyright 2011-2017 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
testing-project/asakusa-test-moderator/src/main/java/com/asakusafw/testdriver/core/SpiImporterPreparator.java
cocoatomo/asakusafw
apache-2.0
4,428
116
codeparrot/github-code
2f36db780125823936bd77957d69d5275a779fd1984ee960978f4e04a9d67d18
package org.jetbrains.plugins.scala package lang package psi package impl package toplevel package imports import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import org.jetbrains.plugins.scala.lang.TokenSets.IMPORT_WILDCARDS import org.jetbrains.plugins.scala.lang.parser.ScalaElementType import org.je...
Scala
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/toplevel/imports/ScImportSelectorsImpl.scala
JetBrains/intellij-scala
apache-2.0
1,235
36
codeparrot/github-code
688ca0e8d0653e53f59793846346994dbec4c1bc362d754179ff063f6d53bffb
package greensnow25.com; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; /** * public class SimpleTree. * * @author greensnow25. * @version 1. * @since 29.05.2017. */ public class SimpleTree<E extends Comparable> implements ISimpleTree<E> { ...
Java
chapter5/tree/src/mian/java/greensnow25/com/SimpleTree.java
greensnow25/javaaz
apache-2.0
6,518
228
codeparrot/github-code
17eb87cdb06c5ab0f278f5a1cf8aa7d7709daa03337c7768e75709e17cae9b6d
import Route from '@ember/routing/route'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; import { refreshModelForQueryParams } from '@datahub/utils/routes/refresh-model-for-query-params'; import { action, setProperties, set } from '@ember/object'; import { inject as service } ...
TypeScript
datahub-web/packages/data-portal/app/routes/search.ts
mars-lan/WhereHows
apache-2.0
3,429
103
codeparrot/github-code
a0ce31e079d1058b2d7b1b4e83da518fc267f9d6204e5027e4d54b27141ea016
#!/usr/bin/env python # encoding: utf-8 """ Copyright 2011, 2012 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 Unl...
Python
lib/python/tvod/util.py
tectronics/tvod-integrate
apache-2.0
3,896
139
codeparrot/github-code
fad26d0700defbcb5e0a7552afc3118698b5d27912276e16ced698b36795f666
/** * 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/rmnode/RMNodeImplDist.java
gigaroby/hops
apache-2.0
23,996
602
codeparrot/github-code
b7ff8f55fc506aa23055b21b2613d679b887000c167d11e46d4fdad640153d6d
/* * put your module comment here * formatted with JxBeauty (c) johann.langhofer@nextra.at */ package com.kutsyy.lvspod; import java.awt.*; import java.awt.event.*; import javax.swing.*; import com.kutsyy.util.*; //import com.borland.jbcl.layout.*; /** * Title: com.kutsyy.lvspod Description: This library is set...
Java
src/com/kutsyy/lvspod/OrdinalSpatialDataAgumentationPlot.java
kutsyy/com.kutsyy.lvspod
apache-2.0
11,328
358
codeparrot/github-code
ca300c2954c4736e9ad5a46565518598033801b4e6fdad1e5cafeb375de9af91
angular.module('elementBoxApp.products.productInfo') .controller('ProductInfoCtrl', [ '$scope', '$rootScope', '$state', '$stateParams', '$timeout', 'ModalAlert', 'ProductsService', 'UserService', 'CommentsService', 'EVENT_NAMES', function($scope, $rootScope, $state, $stateParams, $timeout, Modal...
JavaScript
client/src/app/products/product-info/product-info.controller.js
mauroBus/element
apache-2.0
4,089
137
codeparrot/github-code
5bad4be4f7e08c7a381c380361a6c5d856d81ea854578ddd3e6a7b5cdb3f524e
import unreal_engine as ue import json class FilmActor: def begin_play(self): self.pawn = self.uobject.get_owner() def getjson(self): ue.log("@@@@video getting json:") loc = self.uobject.get_actor_location() rot = self.uobject.get_actor_forward() data = { "x":loc.x,"y":loc.y,"z":loc.z, "rx":rot.x,...
Python
Content/Scripts/FilmActor.py
meahmadi/ThreeDHighway
apache-2.0
767
35
codeparrot/github-code
42fd97ebd6101b1c6f49a28f4619f01462c348ae20e3ba8c835a699775337ca8
package com.android.potlach.ui; import android.app.Activity; import android.app.SearchManager; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.util.Log; import android.view.View; import android.widget.AbsListView; import android.widget.Adapte...
Java
src/com/android/potlach/ui/SearchResultsActivity.java
diyanfilipov/potlach-client
apache-2.0
6,289
173
codeparrot/github-code
97caea283bc5bfdea75bfbbce90ad87a82aba2deff413d97af8d416cbe58b12b
package springStarterProject.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "Students") public cl...
Java
springStarterProject/src/main/java/springStarterProject/model/Student.java
preemynence/SpringProjectExamples
apache-2.0
1,437
65
codeparrot/github-code
a05f003948a1b5c31e1ab075f7cb5cd9c636ba71952c8987375b974ef565ef40
package com.csy.maksmaigin.robot.util; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphi...
Java
maksmaigin/app/src/main/java/com/csy/maksmaigin/robot/util/SystemBarTintManager.java
chensy-and/maksmaigin
apache-2.0
19,434
553
codeparrot/github-code