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
8f466068eaab843834c1f77b9ba51d3a17a003dcfe4a1463e6d6980abab652a8
package org.usc.demo.beanutils.test; import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.beanutils.ConvertUtils; import org.apache.commons.beanutils.converters.DateConverter; import org.apache.commons.beanutils.converters.DateTimeConverter; import org.usc.demo.beanutils.convert.SimpleListCon...
Java
src/main/java/org/usc/demo/beanutils/test/UserForTypeTest.java
usc/demo
apache-2.0
2,957
70
codeparrot/github-code
8a992ac6c964dc2a4baaec0ff1aadde68187b212ec1a97e52c3fd810ced92678
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using ...
C#
DialerNetAPIDemo/App_Start/IdentityConfig.cs
gildas/DialerNetAPIDemo
apache-2.0
4,338
110
codeparrot/github-code
6f28687add7358d5c150192aca67b39765cacab52e8a2f9905d0cfc416a7f38b
package ru.r2cloud.jradio.ao73; import java.io.IOException; import java.nio.charset.StandardCharsets; import ru.r2cloud.jradio.util.BitInputStream; public class WholeOrbitDataBatch { private WholeOrbit[] data = new WholeOrbit[104]; private String callsign; private int sequenceNumber; public WholeOrbitDataBatc...
Java
src/main/java/ru/r2cloud/jradio/ao73/WholeOrbitDataBatch.java
dernasherbrezon/jradio
apache-2.0
1,164
53
codeparrot/github-code
c5b8581d633c37b6f4a5b06e8219f527a052cb179036c1078e944aba08e5d65f
// Copyright (c) 2017, 2019 Ubisoft Entertainment // // 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...
C#
Sharpmake/Strings.cs
ubisoftinc/Sharpmake
apache-2.0
19,192
586
codeparrot/github-code
8ee44d8be3a7e38ee31331fe95d0af512cbfa5668367e864fbc35d8c157de6c7
/* * Copyright (c) 2010-2015 Pivotal Software, 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 req...
Java
gemfire-shared/src/main/java/com/gemstone/gemfire/internal/shared/LauncherBase.java
SnappyDataInc/snappy-store
apache-2.0
22,233
570
codeparrot/github-code
39fd22740d420263a0caf18f1dc8f298f9fb9abd68d1401e97b70295dccade49
#!/usr/bin/env bash source "$(dirname "${BASH_SOURCE}")/lib/init.sh" os::build::setup_env os::util::ensure::built_binary_exists 'client-gen' 'vendor/k8s.io/kubernetes/staging/src/k8s.io/code-generator/cmd/client-gen' # list of package to generate client set for packages=( github.com/openshift/origin/pkg/authorizat...
Shell
hack/update-generated-clientsets.sh
sferich888/origin
apache-2.0
1,963
50
codeparrot/github-code
2facd09feef019d4843bb4bd894768169c4a04c11615f02e340d0b6c7efd510e
package resources import ( "io/ioutil" "path/filepath" "strconv" "strings" "github.com/pkg/errors" "golang.org/x/sys/unix" "github.com/lxc/lxd/shared/api" "github.com/lxc/lxd/shared/usbid" ) var sysBusUSB = "/sys/bus/usb/devices" // GetUSB returns a filled api.ResourcesUSB struct ready for use by LXD func ...
GO
lxd/resources/usb.go
mjeanson/lxd
apache-2.0
7,211
257
codeparrot/github-code
a8ad201a388890cf5bced8a49c7d4e6916fe20e62bf0e062b2de1652d12b6d79
package com.example.yln1172.myweather.db; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.example.yln1172.myweather.model.City; import com.example.yln1172.myweather.model.County; import com.example.yln1172....
Java
MyWeather/app/src/main/java/com/example/yln1172/myweather/db/MyWeatherDB.java
yuleizone/android_test
apache-2.0
4,124
109
codeparrot/github-code
7120f4c25e00f3abe7988a53428e5bc55df65f9aa8d957114c2cb09137d58f23
package com.cloud.agent.api; import com.cloud.host.Host; import java.util.Map; public class PingRoutingCommand extends PingCommand { Map<String, HostVmStateReportEntry> _hostVmStateReport; boolean _gatewayAccessible = true; boolean _vnetAccessible = true; protected PingRoutingCommand() { } ...
Java
cosmic-core/nucleo/src/main/java/com/cloud/agent/api/PingRoutingCommand.java
remibergsma/cosmic
apache-2.0
1,059
42
codeparrot/github-code
95020ac2d8004addc067a18c76868945cc96eda169e0c99e8ff221bbd7c8d82a
/* Lantern - A path tracer * * Lantern is the legal property of Adrian Astley * Copyright Adrian Astley 2015 - 2016 */ #include "scene/obj_loader.h" #include "math/int_types.h" #include <tiny_obj_loader/tiny_obj_loader.h> namespace Lantern { void LoadMeshesFromObj(const char *filePath, std::vector<Mesh> &meshes) ...
C++
source/core/scene/obj_loader.cpp
RichieSams/lantern
apache-2.0
1,229
45
codeparrot/github-code
d775cbc5ca0c55294f9a7240153090439199c2a39cce602cdceec3923b0fced8
/* * File: Enums.hpp * Author: Arthur Lisek-Koper <deathvango@gmail.com> * * Created on December 28, 2014, 3:50 PM * * Summary of Code: * */ #ifndef ENUMS_HPP #define ENUMS_HPP enum class frameType : int { UNKNOWN = -1, STAND_1 = 0, STAND_2, WALK_1, WALK_2, RUN, JUMP_UP, JUMP_DOWN, ATTACK_1, A...
C++
src/core/Enums.hpp
deathvango/cppsidescroller
apache-2.0
1,754
147
codeparrot/github-code
a7a1ead4ac46dc5a4c59c32da9f9d04827d8ed6a4a0249c26c20b0adbb745131
package org.apereo.cas.configuration.model.support.dynamodb; import org.apereo.cas.configuration.model.support.aws.BaseAmazonWebServicesProperties; import lombok.Getter; import lombok.Setter; /** * This is {@link AbstractDynamoDbProperties}. * * @author Misagh Moayyed * @since 5.1.0 */ @Getter @Setter public ab...
Java
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/dynamodb/AbstractDynamoDbProperties.java
GIP-RECIA/cas
apache-2.0
1,260
66
codeparrot/github-code
8180bf3df5698b94523aa1e7b8779da74368330054bc49533d80547c05bda1a6
/* * Copyright (c) 2012 Jan Kotek * * 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
hadoop/src/hdfs/org/apache/hadoop/hdfs/server/namenode/mapdb/AsyncWriteEngine.java
markkerzner/nn_kove
apache-2.0
19,355
516
codeparrot/github-code
69c7538a16d86d536bfbcfc0da415330386c231011545ba60dd830ea786b7ed9
/** * 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 m...
Java
ws-security-dom/src/test/java/org/apache/wss4j/dom/saml/SamlTokenHOKTest.java
apache/wss4j
apache-2.0
11,741
276
codeparrot/github-code
b8df8e817e2b45f986ab0f690290db2e70bfb210967e4a1f4daa32e4edbe123e
/* * File : board.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2009, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rt-thread.org/license/LICENSE * * Change Logs: * Date Author...
C
bsp/stm32f4xx-HAL/drivers/board.c
yongli3/rt-thread
apache-2.0
8,747
277
codeparrot/github-code
dd035e3f66912ec9a3c4edaaf6011745cacb04da1bbd3c6e50d3c0f90db1e1e8
var express = require('express'); var app = express(); var request = require("request"); var bodyParser = require('body-parser'); app.use(express.static(__dirname+"/public")); app.use(express.static(__dirname+"/bower_components")); app.use(bodyParser.json()); app.use(function(req, res, next) { res.header("Access-...
JavaScript
server.js
deadkff01/fbeventgender
apache-2.0
953
38
codeparrot/github-code
799af605857cc764153bd090f9653eccbf68960a2f960659a66c82bf4e2e189e
/* Copyright 2014 The Kubernetes Authors All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
GO
test/e2e/util.go
killian/kubernetes
apache-2.0
52,493
1,454
codeparrot/github-code
dd9d68e9f16f59ab8a0f99b9c6c44083cc106c6084189b3e0870b8ab86abf26c
/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ ...
C++
engine/code/src/guichan/widgets/label.cpp
k1643/StratagusAI
apache-2.0
6,399
153
codeparrot/github-code
63b330201ab41d6f2e8f2a231743cdb42abd6ccc5b826af0a2c51d321109d3ed
/* * 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
software/webapp/src/test/java/brooklyn/entity/webapp/jboss/Jboss7DockerLiveTest.java
neykov/incubator-brooklyn
apache-2.0
2,720
71
codeparrot/github-code
f4b1015f750a0d957eec4dea8dec821c7042c7b57b42198d138b8fef361af0ec
"""Shared class to maintain Plex server instances.""" import logging import ssl import time from urllib.parse import urlparse from plexapi.client import PlexClient from plexapi.exceptions import BadRequest, NotFound, Unauthorized import plexapi.myplex import plexapi.playqueue import plexapi.server from requests import...
Python
homeassistant/components/plex/server.py
lukas-hetzenecker/home-assistant
apache-2.0
25,421
680
codeparrot/github-code
267dbde98e6fd90038dc0a1257ba3786e8441f7453ea34c1e03313397b79dc88
/* * Copyright 2002-2005 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 requi...
Java
src/test/java/test/net/sf/sojo/model/TestExceptionWithBadConstructor.java
maddingo/sojo
apache-2.0
1,065
35
codeparrot/github-code
41de34676e65e83a5b9f3da38a814b8fcb8e45e691dca6182f6e437bd88e85d6
/** * Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.integration.tool.depgraphambiguity; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintStream; import java.net.URI; import java.u...
Java
projects/integration-rest-client/src/main/java/com/opengamma/integration/tool/depgraphambiguity/FindViewAmbiguities.java
McLeodMoores/starling
apache-2.0
15,589
352
codeparrot/github-code
67fabcf114d3e304b4db23c0077db3b7c10ab4edf5ebd8801e11be0dc43db191
/* * 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
src/test/java/org/elasticsearch/rest/action/admin/indices/upgrade/UpgradeTest.java
kagel/elasticsearch
apache-2.0
14,735
304
codeparrot/github-code
a5a8d53112d8c7176e8475d822738dfd74bfef9013d3b7ef75e1edb21f39cbe4
/* * Copyright (C) 2015 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
value/src/main/java/com/google/auto/value/processor/ExtensionContext.java
MaTriXy/auto
apache-2.0
2,166
70
codeparrot/github-code
f9429caede34be75df07b30ce267bcd797c31c1e6e324606a0305c04d963b2aa
/* * Copyright: 2013 Ivan Korobkov <ivan.korobkov@gmail.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 b...
Java
java/pdef/src/test/java/io/pdef/PdefJsonTest.java
pdef/pdef
apache-2.0
1,968
66
codeparrot/github-code
ee6d7e872ad85e25ffddd9f0b45145e397ffdffa4d76c37fc72d98fcdf5e11b6
/* * Copyright (c) 2010-2015 Evolveum * * 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
model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestSegregationOfDuties.java
PetrGasparik/midpoint
apache-2.0
12,739
301
codeparrot/github-code
5198e8093afefb8422b0b4406dd1194b743c8619f45a6c34fe72a259917f19e3
/* * ==================================================================== * * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provi...
Java
ecs/src/main/java/org/apache/ecs/html/Center.java
jjYBdx4IL/misc
apache-2.0
7,980
256
codeparrot/github-code
97780650f6e28ad3d2130a44401dd77f8b9f40fd71636986c5fbfb5871796ca7
# Lint as: python2, python3 # Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
Python
third_party/deeplab/core/dense_prediction_cell.py
googleinterns/wss
apache-2.0
12,180
291
codeparrot/github-code
2603b7e70f549b2adfd9258260ea7f3433c438636ec554755f92415a989f921c
/* Copyright 2013-2018 Immutables Authors and Contributors 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 appli...
Java
value-fixture/test/org/immutables/fixture/ValuesTest.java
immutables/immutables
apache-2.0
18,236
617
codeparrot/github-code
0936925af06b011bde6511c200c638c17bc8cad5b5115a029f212e87cb9b276d
package com.bruce.wechat.oauth2; /** * OAuth2 servlet类 * * @author ivhhs * @date 2014.10.16 */ import com.bruce.wechat.ParamesAPI.ParamesAPI; import com.bruce.wechat.ParamesAPI.WeixinUtil; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest;...
Java
2017workspace/wxqyh/src/com/bruce/wechat/oauth2/OAuth2Servlet.java
LittleLazyCat/TXEYXXK
apache-2.0
1,294
42
codeparrot/github-code
0328e50b1d58095d0e0863ebcae0d46c16b08babb6b24863602513522fce919f
package dev.jeka.core.api.depmanagement; import dev.jeka.core.api.utils.JkUtilsIterable; import dev.jeka.core.api.utils.JkUtilsPath; import java.nio.file.Path; import java.util.Collections; import java.util.LinkedList; import java.util.List; /** * A dependency on files located on file system. */ public final class...
Java
dev.jeka.core/src/main/java/dev/jeka/core/api/depmanagement/JkFileSystemDependency.java
jerkar/jerkar
apache-2.0
2,003
75
codeparrot/github-code
b153889646fd2f533bce168fc9a97ec33a8e3547e4d80b4c2b218dec79a0ef63
/* * 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 ...
GO
tools/cli/go-whisk/whisk/client.go
prccaraujo/openwhisk
apache-2.0
26,762
657
codeparrot/github-code
e2ea34c040ee14ebee0d31937462eeb2dbe1fce8b5b95bb6927f3e53f6b4a77c
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Reactive.Streams; using Reactor.Core; using System.Threading; using Reactor.Core.flow; namespace Reactor.Core { /// <summary> /// Represents one of the reactive-streams signals. /// <...
C#
Reactor.Core/ISignal.cs
reactor/reactor-core-dotnet
apache-2.0
5,354
254
codeparrot/github-code
a86df9e95cfe59f89651470a65f92dd4e30de449fe6bbfa6bbccb064b359937c
package com.anteoy.coreJava.niotest; import java.net.InetSocketAddress; import java.net.SocketException; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; /** * @auther zhoudazhuang * @date 19-5-8 21:19 * @description */ public class TCPEchoClientNonblocking { public static void main(String ...
Java
src/main/java/com/anteoy/coreJava/niotest/TCPEchoClientNonblocking.java
Anteoy/jottings
apache-2.0
2,363
67
codeparrot/github-code
42f6a3313441fc9eaeb73c21ef91911d83316bb850d32a78952d339c9e214f9f
package org.apache.jackrabbit.oak.security.user.monitor; import org.apache.jackrabbit.oak.stats.MeterStats; import org.apache.jackrabbit.oak.stats.StatisticsProvider; import org.apache.jackrabbit.oak.stats.StatsOptions; import org.apache.jackrabbit.oak.stats.TimerStats; import static java.util.concurrent.TimeUnit.NAN...
Java
oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/monitor/UserMonitorImpl.java
anchela/jackrabbit-oak
apache-2.0
4,084
88
codeparrot/github-code
4002fe05243df7ea004927ddcf91d9d27ef8bbec3a91c92ade5bc8788fa71297
/* * Copyright (c) 2005-2014, 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.apach...
Java
modules/andes-core/broker/src/main/java/org/wso2/andes/configuration/qpid/ServerConfiguration.java
wso2/andes
apache-2.0
24,956
642
codeparrot/github-code
588923d2a885f89b286a69a3c8581fa313c9932d5be2a6631e3f3c8f86c6df72
import asyncore, socket, logging, time, asynchat, os from hdfs_space_common import get_tree_from_cache, get_child_node, TreeNode FORMAT = '%(asctime)-15s: %(levelname)s %(module)s - %(funcName)s: %(message)s' logging.basicConfig(format=FORMAT, level=logging.WARNING) class ChatHandler(asynchat.async_chat): def __ini...
Python
zabbix/T_hdfs_space_checker/hdfs_space_metric_server.py
arshvin/scripts
apache-2.0
3,517
132
codeparrot/github-code
5640323e835a999dc8ba1a946c59a9898b93a1beffc32054fe98067147cc6f42
from nltk.tokenize import sent_tokenize,word_tokenize from nltk.corpus import stopwords from collections import defaultdict from string import punctuation from heapq import nlargest import re """ Modified from http://glowingpython.blogspot.co.uk/2014/09/text-summarization-with-nltk.html """ class FrequencySummarizer...
Python
nat_proc/FrequencySummarizer.py
rebeccamorgan/easyskim
apache-2.0
2,032
64
codeparrot/github-code
e5324ad00d06e4e0e2a7121e05956aa4cc7d82fe5c7c14e7ecec9da533991b7c
/* * ORIGINAL COPYRIGHT STATEMENT: * * Copyright (c) 1994 Winning Strategies, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the ab...
C
bash-2.05/examples/loadables/getconf.c
easion/os_sdk
apache-2.0
34,127
1,207
codeparrot/github-code
b048d02c316a376f7a5cf5bb298574a0c54d2142423597540c36cbc7fe32850e
#!/usr/bin/python # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LICE...
Python
tags/2.1.0/ipaddr.py
nouiz/fredericbastien-ipaddr-py-speed-up
apache-2.0
58,769
1,855
codeparrot/github-code
f5ea0f6aec7eb31ead89c291ac3319a24ced650c0ef80fadf55353a387fbd266
/*! UIkit 2.27.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function (UI) { "use strict"; UI.component('cover', { defaults: { automute: true }, boot: function () { // auto init UI.ready(function (context) { UI...
JavaScript
www/static/js/core/cover.js
zuocaijian/HiPythonWeb
apache-2.0
2,590
88
codeparrot/github-code
5b939a5f7582b4c348e8242b3dc4fd7a87a7adf9b7f495a8689a774a350c93ef
package org.unipop.rest; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.JsonNode; import com.mashape.unirest.http.exceptions.UnirestException; import com.mashape.unirest.request.BaseRequest; import org.apache.tinkerpop.gremlin.structure.Edge; import org.apache.tinkerpop.gremlin.structure...
Java
unipop-rest/src/org/unipop/rest/RestController.java
unipop-graph/unipop
apache-2.0
10,217
252
codeparrot/github-code
31683931387ce379d2ad4ddaf08b2137080a53c5cd5d9dba1117f6703da722f2
/* * Copyright 2010-2016 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-codedeploy/include/aws/codedeploy/model/ErrorCode.h
ambasta/aws-sdk-cpp
apache-2.0
1,474
57
codeparrot/github-code
7142f417e6bcdbc612abbf6e5045f46812711aa64e194ef7b171acec7d3a5cc1
package org.jrebirth.sample.service; import org.jrebirth.core.service.DefaultService; import org.jrebirth.core.wave.Wave; import org.jrebirth.core.wave.WaveTypeBase; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * The class <strong>SampleService</strong>. * * @author */ public final class SampleS...
Java
src/main/java/org/jrebirth/sample/service/SampleService.java
CompendiumNG/fxpoc
apache-2.0
1,117
48
codeparrot/github-code
61455902f40cfc7546c7a580d1c8b98610a414c03c44c2e49431a1ef30b8c95a
<!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"> <title>Comunidad del Padre Misericordioso | Voluntariado</title> <meta name="description" content="Asociación ci...
HTML
sitioWeb/2015/voluntariado.html
fb91/cpm
apache-2.0
13,478
276
codeparrot/github-code
5eadaeb901283f0259e28df56e34f20a62a7efe5761780f34f4aa8ffa81dfcb9
package org.gradle.test.performance.mediummonolithicjavaproject.p156; import org.gradle.test.performance.mediummonolithicjavaproject.p155.Production3118; public class Production3127 { private Production3118 property0; public Production3118 getProperty0() { return property0; } public...
Java
my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p156/Production3127.java
oehme/analysing-gradle-performance
apache-2.0
2,048
107
codeparrot/github-code
4a9333a5d3b4afd0420b5d08689266ad4ad6c832182d4dc85dff5cf6f78f19a5
package ejercicio32; import java.util.Scanner; /** * Ejercicio 32: Hacer un programa que nos permita introducir un numero por * teclado y sobre el se realicen las siguientes operaciones: comprobar si es * primo, hallar su factorial o imprimir su tabla de multiplicar. * * @author meny * @since 13/05/20...
Java
ejercicios/src/ejercicio32/ejercicio32.java
julius5/Ejercicios
apache-2.0
2,433
81
codeparrot/github-code
a5889a1029ebe77746e189b4e8d750f8e869d75a904463f7ad4f9d85ada2b85f
/* * 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/test/java/org/apache/commons/collections4/map/UnmodifiableMapTest.java
gonmarques/commons-collections
apache-2.0
3,163
103
codeparrot/github-code
2f3495a3f1cac719cb3cf77d3f0ce9775037f9f50801aaff75bf3bc9d17a96c3
package org.nextime.ion.backoffice.messageBoard; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; import java.util.Collections; import java.util.Vector; import javax.servlet.http.HttpServlet; public class...
Java
backoffice/src/main/java/org/nextime/ion/backoffice/messageBoard/MessageBoard.java
datazuul/ion-cms-maven
apache-2.0
1,784
68
codeparrot/github-code
ab992cc94e45e3ec2d95f5317b3e8e0628a6aaf079bc5fbfddc7de7bdae657c3
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
istio/src/main/java/com/alibaba/nacos/istio/xds/NacosXdsService.java
alibaba/nacos
apache-2.0
8,564
207
codeparrot/github-code
e5827fb9e81683ebf4b3334676523eb7bc8eac1546b60bb9f030bfb3f2b59148
package com.adventure.engine.script.syntax; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.StringUtils; public class ListValue implements Value { final List<String> values; public ListValue(String[] values) { this.values = new ArrayList<String>(values.length); for (String...
Java
src/main/java/com/adventure/engine/script/syntax/ListValue.java
angelusmetal/adventure
apache-2.0
868
55
codeparrot/github-code
1528c5f8d4ac7432fab10cd26ef9dade606bc98908a868e69b8e996ae56a6441
/* * Copyright 2017 GcsSloop * * 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
sdk/src/main/java/com/gcssloop/diycode_sdk/api/topic/bean/Topic.java
GcsSloop/diycode-sdk
apache-2.0
4,118
160
codeparrot/github-code
1c594be81124ca331717adb16d3e48fe5a36ddc69fce61279e7cf6e63f5e5e89
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
Java
core/src/main/java/io/undertow/server/HttpServerExchange.java
aldaris/undertow
apache-2.0
87,777
2,449
codeparrot/github-code
8353947682102ea78c84b0315ff3a5210ff5901f61fb80f6708f67b6b0798269
package de.dhbw.vote; import android.app.Activity; import android.app.Fragment; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.util.Log; import android.view.KeyEvent; import android.view.LayoutInflater; imp...
Java
src/de/dhbw/vote/VoteFragment.java
MAtzmueller/Kadconia
apache-2.0
2,268
69
codeparrot/github-code
ab40a2bcb183175a5367e0f212615aff31a403e684f0875e19c99429d3266859
/** * Copyright © 2017 tesshu.com (webmaster@tesshu.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 app...
Java
subsonic-fx-player-impl/src/main/java/com/tesshu/subsonic/client/fx/view/Icon.java
tesshucom/subsonic-fx-player
apache-2.0
1,138
41
codeparrot/github-code
fb62aceb5957784a93a2abac9d19261b7671eca57fcfd1a059e53d763dd7ff62
<?php defined('WEKIT_VERSION') || exit('Forbidden'); /** * 帖子删除扩展服务接口--删除帖子投票. * * @author Mingqu Luo<luo.mingqu@gmail.com> * @copyright ©2003-2103 phpwind.com * @license http://www.windframework.com * * @version $Id$ */ class PwDeleteTopicDoPollDelete extends iPwGleanDoHookProcess { public $record = []; ...
PHP
phpwind9/src/hooks/PwDeleteTopic/PwDeleteTopicDoPollDelete.php
beautifultable/phpwind
apache-2.0
1,174
48
codeparrot/github-code
63da348f5cc74ccbe69c3617be0b0f4b862e4d325ddfd15cc1ed6b701e8f3085
import svelte from 'rollup-plugin-svelte'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import livereload from 'rollup-plugin-livereload'; import { terser } from 'rollup-plugin-terser'; import copy from 'rollup-plugin-cpy' const production = !process.env.ROLLUP_WATCH...
JavaScript
eCameleon.Web/apps/hello-world/rollup.config.js
rzvdaniel/eCameleon
apache-2.0
2,301
67
codeparrot/github-code
5eb89c43eb34dfc42db71b88118652c54bd92e6edf099bd8d52267734ed547f0
--[[ Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.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 agreed t...
Lua
src/lua/bpf/proto.lua
romain-intel/bcc
apache-2.0
16,069
505
codeparrot/github-code
4658fe2838597587b6005c10bc4702c8982cc5c1c88d04f8a32c6cc19d765f49
/** * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com). * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * U...
Java
src/main/java/io/jboot/utils/NamedThreadPools.java
yangfuhai/jboot
apache-2.0
2,082
62
codeparrot/github-code
f81d360f530d18770459f9316e308a5f4a0c30b02942e2b2e1915620279ba567
/* ** BitsUtils.java ** ** Copyright (c) 2008 Peter McQuillan ** ** All Rights Reserved. ** ** Distributed under the BSD Software License (see license.txt) ** */ package com.wavpack.encoder; class BitsUtils { ////////////////////////// Bitstream functions //////////////////////////////// // Open the specified ...
Java
src/java/com/wavpack/encoder/BitsUtils.java
dubenju/javay
apache-2.0
2,571
85
codeparrot/github-code
5b3958c36c8a86736af6c544c4985df434f83b96054be9c4c4f2a6d96ed210e3
// Copyright (C) 2009 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
Java
src/main/java/com/google/gerrit/server/config/AuthConfig.java
GerritCodeReview/gerrit-attic
apache-2.0
5,851
193
codeparrot/github-code
7bc76344c8e6d14e3dcd9774add9bbe012c1270bf98f0501333d3f7c21419f2b
// Copyright 2010-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...
C
ortools/glop/primal_edge_norms.h
google/or-tools
apache-2.0
9,810
231
codeparrot/github-code
f4c445074c50ff738d3feadd5385871703e9edf67a6d91458da318f90d231de0
#include <iostream> #include <vector> using namespace std; const int MOD = 10007; class SegmentTree { struct STNode { int sum; int prefix; int suffix; int product; STNode() : sum(0), prefix(0), suffix(0), product(0) {} }; int size; vector<STNode> tree; void...
C++
solutions/1116/calculate.cpp
buptlxb/hihoCoder
apache-2.0
1,824
58
codeparrot/github-code
07187bff30bf37fd81ef01f3120c900773e0d90cc1661278d729b3a161951a17
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
xzturn/tensorflow
apache-2.0
47,416
1,127
codeparrot/github-code
2f95a2ec2c7dfbb50af604a7ea21846a372854b5e7b1bd231963250421389a88
const Long = require('long'); const User = require('./User'); const Role = require('./Role'); const Emoji = require('./Emoji'); const Invite = require('./Invite'); const GuildAuditLogs = require('./GuildAuditLogs'); const Webhook = require('./Webhook'); const { Presence } = require('./Presence'); const GuildChannel = r...
JavaScript
src/structures/Guild.js
zajrik/discord.js
apache-2.0
46,291
1,353
codeparrot/github-code
5f4631f57bf1db564d0f5c964e11a7f1bb6a1c9ddc54b67b6130db6e88a41d8d
package main import ( "fmt" "os" "github.com/Cloud-Foundations/Dominator/lib/filesystem" "github.com/Cloud-Foundations/Dominator/lib/log" objclient "github.com/Cloud-Foundations/Dominator/lib/objectserver/client" "github.com/Cloud-Foundations/Dominator/lib/srpc" "github.com/Cloud-Foundations/Dominator/lib/trig...
GO
cmd/subtool/pushFile.go
rgooch/Dominator
apache-2.0
2,221
72
codeparrot/github-code
f9147308416c962bf63b97f4b924f9971e3d42785765cf4fde93c997224d825c
var debug = false; var isStatsOn = false; var authWindow; var app; var runLoop = function() { app.update(); app.draw(); } var initApp = function() { if (app!=null) { return; } app = new App({}, document.getElementById('canvas')); window.addEventListener('resize', app.resize, false); document.addEventListener(...
JavaScript
firenio-sample/sample-http/src/main/resources/app/html/web-socket/rumpetroll/js/main.js
generallycloud/baseio
apache-2.0
2,392
87
codeparrot/github-code
7677e1d9b33cbe4ad7da8c07bcd5bc112b402e6260e30b6f4c6fa5c68df6f934
package cn.edu.chd.view; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.FrameLayout; import android.widget.ImageButton; import android.widget.RelativeLayout; import...
Java
Yitu/src/cn/edu/chd/view/YiRotateMenu.java
Rowandjj/yitu
apache-2.0
4,994
220
codeparrot/github-code
01d68479fb10c114b05fcbc5ba75cee248a540b9d693406fac684602712af7c0
package com.example.dm.zhbit.me; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import...
Java
app/src/main/java/com/example/dm/zhbit/me/MeSettingsAty.java
readymanong/ZhbitAPP
apache-2.0
3,042
97
codeparrot/github-code
7d9ceec7110071b3dd7e2f12f87644e4643e0451b7d24881d11864c83f8170b4
/* * Copyright 2013 - 2022 The Original 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 b...
Java
main/core/src/main/java/org/elasticsoftware/elasticactors/util/concurrent/metrics/TraceThreadBoundRunnable.java
elasticsoftwarefoundation/elasticactors
apache-2.0
2,449
67
codeparrot/github-code
46c6ab36246a2b4d87537ea73feee2e78abff1c9890203625dbd9f860c43c8a6
/** * Copyright 2011-2016 GatlingCorp (http://gatling.io) * * 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...
Java
src/main/java/io/gatling/liferay/service/base/UrlRecordLocalServiceClpInvoker.java
e-biz/gatling-liferay
apache-2.0
11,583
312
codeparrot/github-code
2d6d4a8dc2a2f499466274fc3e984264b99a39f09640dcb0c85c7e8751b32298
/* * 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 i...
Java
osdu-r2/os-workflow/workflow-core/src/main/java/org/opengroup/osdu/workflow/validation/ValidationServiceImpl.java
google/framework-for-osdu
apache-2.0
2,221
63
codeparrot/github-code
44c0f42669a82f86e6de2a40414484388e860c793c012432a200bcc54337ca97
<?php /** * @copyright Reinvently (c) 2017 * @link http://reinvently.com/ * @license https://opensource.org/licenses/Apache-2.0 Apache License 2.0 */ namespace reinvently\ondemand\core\modules\settings\models\extrafee; use reinvently\ondemand\core\components\model\CoreModel; use reinvently\ondemand\core\compone...
PHP
src/modules/settings/models/extrafee/ExtraFeeTime.php
Reinvently/On-Demand-Core
apache-2.0
2,241
97
codeparrot/github-code
8bc1311dc9afc18aaed8ebe04bf8b7a631ff895bb9c730fc458a91b01919a982
package com.dianping.cat.system.page.config.processor; import org.codehaus.plexus.util.StringUtils; import org.unidal.lookup.annotation.Inject; import com.dianping.cat.heartbeat.config.HeartbeatDisplayPolicyManager; import com.dianping.cat.report.page.activity.config.ActivityConfigManager; import com.dianping.cat.sys...
Java
cat-home/src/main/java/com/dianping/cat/system/page/config/processor/DisplayConfigProcessor.java
unidal/cat
apache-2.0
1,462
48
codeparrot/github-code
850f184dab650e5ff2d7f012651de49458d0174904718ea2dc954decc74e0d53
package configconversion import ( "net" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/serializer" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "fmt" configv1 "github.com/openshift/api/config/v1" kubecontrolplanev1 "github.com/openshift/api/kubecontrolplane/v1" legacyconfigv1 "gith...
GO
pkg/configconversion/legacyconfig_conversion.go
hferentschik/origin
apache-2.0
8,259
223
codeparrot/github-code
a610a01a2bcc805758adb0b2bbd1f5e7f3dcfa72a445b6f5ba9810b1d109473e
const readdirp = require('readdirp'), path = require('path'), fs = require('graceful-fs'), _ = require('lodash'), frontMatterParser = require('./parsers/front_matter_parser'), markdownParser = require('./parsers/markdown_parser'), fileParser = require('./parsers/file_parser'), linkParser = require('./pars...
JavaScript
index.js
CenturyLinkCloud/KB-Commit-Analyzer
apache-2.0
1,800
76
codeparrot/github-code
34c72229e44478592fbe9412784bd562aa843a4c1343a6b2f123ebe453e21c1d
package com.planet_ink.coffee_mud.Commands; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.CMProps.Str; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.plane...
Java
com/planet_ink/coffee_mud/Commands/Rebuke.java
bozimmerman/CoffeeMud
apache-2.0
4,105
121
codeparrot/github-code
d43bedaeef962c2eb7cc7a0d61b4a211823f7092e410c45f997a72579bcc087e
package com.tlf.msg.platform.domain; import java.util.ArrayList; import java.util.Date; import java.util.List; public class ConfigExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; protected Integer begin; protected Integer end; pr...
Java
msg-platform/src/main/java/com/tlf/msg/platform/domain/ConfigExample.java
gdtlf/msg
apache-2.0
29,255
912
codeparrot/github-code
ea25f0dbfa3a19de8a24d24c6d84765dda3b4ade0a4b12dd019e2ce22d8aee12
/* * Copyright 2015 - 2016 Egor Andreevici * * 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
app/src/androidTest/java/me/egorand/cats/server/ImgurApiServerTest.java
Egorand/android-aop-analytics
apache-2.0
2,209
65
codeparrot/github-code
ddf37b84ff947a80d7440e74c21f3ae12f6b4d31604781e5cd2e02fbbef726ce
/* * Copyright (c) 2017 pCloud AG * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
java-core/src/main/java/com/pcloud/sdk/internal/networking/serialization/UnmodifiableListTypeFactory.java
pCloud/pcloud-sdk-java
apache-2.0
1,870
57
codeparrot/github-code
d0bc035f478e44392b4bdf7cc6bd2144f0f51b60cecbfbaa8fcd9422ed50c31a
@extends('templates.default') @section('content') {!! Breadcrumbs::render('pecas') !!} <div class="panel panel-default"> <!-- Default panel contents --> <div class="panel-heading"> Gestor de Lotes </div> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li> <...
PHP
resources/views/pecas/index.blade.php
System3D/gestor-de-lotes
apache-2.0
4,773
191
codeparrot/github-code
f1bc73e0db292d930ce9b29aa52f107023377fd79df5b6752b70dd3317e7c442
/** * FreeRDP: A Remote Desktop Protocol Implementation * Digital Sound Processing - FFMPEG backend * * Copyright 2018 Armin Novak <armin.novak@thincast.com> * Copyright 2018 Thincast Technologies GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
C
libfreerdp/codec/dsp_ffmpeg.c
rjcorrig/FreeRDP
apache-2.0
14,139
591
codeparrot/github-code
558ffaf3d32633c871a66e61eb9e38fc3c1719bba52550ff70bd8318a96a324e
/* * #%L * Diana UI Core * %% * Copyright (C) 2014 Diana UI * %% * 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 req...
Java
core/src/main/java/com/dianaui/universal/core/client/ui/Divider.java
dianaui/dianaui-universal
apache-2.0
1,638
53
codeparrot/github-code
1bbd94ca4fd6ad53cdcc6485743f87301dd9a75d240377b1f7c04e6909e9d736
package main import "math/rand" type Rule struct { From string To string } func fullMesh(hosts []string) []Rule { rules := []Rule{} for _, from := range hosts { for _, to := range hosts { if from == to { continue } rules = append(rules, Rule{from, to}) } } return rules } // Topology is a ...
GO
topology.go
giantswarm/mizaru
apache-2.0
2,873
136
codeparrot/github-code
6cef816b83062eca43c49b695f7641c950c17944b677fd8641c999e9235a21e7
# directory = 'Congressional_Bill_Corpus.v1.00/raw/' directory = '' text_file = directory + 'billtext_org.json' labels_file = directory + 'train.json' output_dir = '/Users/katya/datasets/congress_bills_2/' import sys #pcogennen noah's congress_bills_2 into useable format #to dict: def skip_ahead_n_quotes(line, char...
Python
src/scripts_and_misc/process_json.py
Noahs-ARK/ARKcat
apache-2.0
2,711
85
codeparrot/github-code
4d8cd7ab16dcba85ef8b020b328d3fa92c59f6699f1a853086e0230238f9648d
/* Copyright 2015-2018 Daniel Adrian Redondo Suarez 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...
C#
src/TWCore.Net.HttpServer/HttpControllerBase.cs
tonyredondo/TWCore2
apache-2.0
1,315
46
codeparrot/github-code
bd91a6a90f5301281d998cf81a998b09a7970c7dd1a8160d13e69484e6bdc4e9
/* * 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-iot/src/main/java/com/amazonaws/services/iot/model/transform/DescribeIndexRequestProtocolMarshaller.java
jentfoo/aws-sdk-java
apache-2.0
2,606
63
codeparrot/github-code
da0090daeef26d22122a4137602f6ea063786c0a8a08a2d673749a91c7dc6ecb
import {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core'; import {BehaviorSubject, Observable} from 'rxjs'; import {map} from 'rxjs/operators'; import {FlowListItem, FlowsByCategory} from '../../components/flow_picker/flow_list_item'; import {compareAlphabeticallyBy} from '../../li...
TypeScript
grr/server/grr_response_server/gui/ui/components/flow_picker/flows_overview.ts
google/grr
apache-2.0
2,137
66
codeparrot/github-code
6a38274fed8dc811f9f1eeb14f536e6efef752c88998fe7d21b55554afa9b9aa
<?php /** * 数据处理--控制器 * Created by PhpStorm. * User: acer-pc * Date: 2017/10/5 * Time: 0:45 */ namespace app\controller; class DataProcess extends Common{ /** * 数据清洗 * @return mixed */ public function clean(){ $ret = ['theme_list' => [], 'list' => [],'params' => []]; retur...
PHP
app/controller/DataProcess.php
Jeremy1401/consensus
apache-2.0
6,490
209
codeparrot/github-code
7b64c361f013a9b7c5e3a880ed4ff6fed572f2ab98a8470ab02cb12d2d5c8428
// Copyright 2021 The KeepTry Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
Java
bow/2-technical-and-design/jdk17/src/main/java/datetime/BetaInvites.java
BruceZu/KeepTry
apache-2.0
4,253
135
codeparrot/github-code
3277ebb7c87b0f81bcab508c98cc919e56546ed76afd8ffd66fbae621ca6e4c2
#!/usr/bin/env python # coding=utf-8 from webapp.web import Application from handlers.index import IndexHandler from handlers.register import RegisterHandler from handlers.user import UserHandler from handlers.signin import SigninHandler from handlers.signout import SignoutHandler from handlers.upload import UploadHan...
Python
main.py
vincentpc/yagra
apache-2.0
955
34
codeparrot/github-code
073cc49a9e039cd9cd2bbb4c6af57dca18f0fb9a4abd24296e605d7f2e50cbf6
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
Java
Source/Plugins/Core/com.equella.admin/src/com/tle/admin/cal/CalConfigPanel.java
equella/Equella
apache-2.0
14,814
404
codeparrot/github-code
12b62c8f65282a69acf21b3e3ff6aebc74512f363ea607e4c13ae2ccdff1ed1f
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: https://plantuml.com * * If you like this project or if ...
Java
src/plantuml-asl/src/net/sourceforge/plantuml/salt/factory/ElementFactoryButton.java
talsma-ict/umldoclet
apache-2.0
2,277
66
codeparrot/github-code
22007d19c70587bf3248c31f0458674b36271022bca739f6900a739a409c476b
/*- * Copyright (c) 2012-2017 Red Hat, 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...
Java
xmvn-tools/xmvn-install/src/test/java/org/fedoraproject/xmvn/repository/impl/LayoutTest.java
rvais/xmvn
apache-2.0
3,720
108
codeparrot/github-code
ef216a96a274ea51a79720be7758a8bf94275997ddfc1b9cf297721db518ff76
const PERM_NOT_FOUND = "Permission '_perm_' not found on '_role_' for '_res_'."; const Types = { ALL: 'ALL', CREATE: 'CREATE', READ: 'READ', UPDATE: 'UPDATE', DELETE: 'DELETE' }; /** * The map of role-resource tuple to permissions. * The first level key is the tuple, the second level key is the action. *...
JavaScript
npm/src/permission.js
rojakcoder/archly
apache-2.0
13,491
522
codeparrot/github-code
cd11ae19a6447fa44c41e55a928e0000e6e3fa0e7eabc85cf89f2d48ef8d6c39
/* * Copyright (c) 2005-2010 Grameen Foundation USA * 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...
Java
application/src/main/java/org/mifos/accounts/productdefinition/business/service/ProductCategoryBusinessService.java
mifos/1.5.x
apache-2.0
2,741
75
codeparrot/github-code
0f2ced26711874c4dd6d9019f046e8dbafed0bc467c16b8d77bbc7efaf69af8c
// Copyright 2016 PingCAP, 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 i...
GO
plan/aggregation_push_down.go
liyu4/tidb
apache-2.0
19,421
492
codeparrot/github-code
f9247863589b28e69a964bddd405dd22c2a6a73c88c5684954d14de93644d1a6
#!/usr/bin/env python3 # Copyright (C) 2013 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
Python
tools/maven/mvn.py
GerritCodeReview/gerrit
apache-2.0
2,729
87
codeparrot/github-code
920f10d1e6f67125d9a45326cdc8c304e2d8e08ac2131ccb56a976f7e4cf4f38
using AutoMapper; using AutoMapper.QueryableExtensions; using Capstone.Models; using Capstone.Models.Entities.Services; using SkyWeb.DatVM.Data; using SkyWeb.DatVM.Mvc; using SkyWeb.DatVM.Mvc.Autofac; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Linq.Express...
C#
WebAPI/Capstone/Capstone/Sdk/BaseSdkApi.cs
Hinaka/-FPT-CAPSTONE-PGSS
apache-2.0
5,441
182
codeparrot/github-code
603a49a0da62d2ae78e54cb5db8676b2c5ae0eb9f58a12908a20ba2714715824
/* * Copyright 2017 StreamSets 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...
Java
redis-lib/src/main/java/com/streamsets/pipeline/stage/destination/redis/RedisTargetConfig.java
z123/datacollector
apache-2.0
3,838
132
codeparrot/github-code