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
aae8b382b5497a596b2f8f493048df3e0c2340470ac15eeccfc96f30af15e606
package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.request.*; import com.github.binarywang.wxpay.bean.result.*; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.testbase.ApiTes...
Java
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxEntrustPapServiceTest.java
Wechat-Group/WxJava
apache-2.0
7,200
237
codeparrot/github-code
1304b21c9a287dfa1607d162dfbe90edd479b9bd20a2a14cc5f1a793fed31f3b
package org.clinical3PO.common.security; import java.util.Collection; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.BadCredentialsException; import org.springframework.securit...
Java
dev/clinical3PO/app/src/main/java/org/clinical3PO/common/security/CustomAuthenticationProvider.java
Clinical3PO/Platform
apache-2.0
1,572
51
codeparrot/github-code
6796718df9e40e4b9a965e4b4b1e54d4332b6b2a537ec435736bb875138a52c2
/** * 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...
TypeScript
metron-interface/metron-alerts/src/app/alerts/configure-rows/configure-rows.module.ts
anandsubbu/incubator-metron
apache-2.0
1,591
37
codeparrot/github-code
a172d73f748080e856a9edd02bbaf6cea55bd142f594f7e624018fa10fb01034
package com.example.mywechat.utils; import java.util.ArrayList; import java.util.List; import android.app.Activity; /** * ActivityCollector ÀàÓÃÓÚ¹ÜÀíËùÓеĻ * @author dzhiqin * */ public class ActivityCollector { public static List<Activity> activities=new ArrayList<Activity>(); public static void addActiv...
Java
src/com/example/mywechat/utils/ActivityCollector.java
dzhiqin/MyWeChat
apache-2.0
697
36
codeparrot/github-code
c6996188d9b58b7fa92b116ea9bc8a3de4f4416085e180a6c037f2db801ebbd2
/* * The MIT License (MIT) * * Copyright (c) 2015 Cleidimar Viana * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * ...
Java
app/src/main/java/com/seamusdawkins/tablayout/fragments/FirstFragment.java
cleidimarviana/Tabs-Material
apache-2.0
1,928
52
codeparrot/github-code
476eab874569e8ed299fb1071ffa67705bedc3202669c5f08f609e2d5f7634ce
/** * 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
gora-cassandra/src/main/java/org/apache/gora/cassandra/store/CassandraClient.java
prateekbansal/apache-gora-0.4
apache-2.0
17,283
450
codeparrot/github-code
02628e5f5202b394ae003971c04eab5acdb494fc10df60f21524aada8d5d7dd0
/* * 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/java/org/apache/cassandra/io/sstable/SSTableScanner.java
DavidHerzogTU-Berlin/cassandraToRun
apache-2.0
8,241
240
codeparrot/github-code
7ef7d9ab67e4c176f29f19b378595e2f137155ef1a9bc51311cb9a76457804ee
/* * Copyright 2012-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 "licen...
Java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/model/transform/PartListElementJsonUnmarshaller.java
dagnir/aws-sdk-java
apache-2.0
2,994
79
codeparrot/github-code
0468b9572c281299da10f3be29ff7412e13a4e9cce2fe69b7c7c79f6f52ad800
package seborama.demo2.kafka.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonIgnoreProperties(ignoreUnknown = true) public class Order { private String id; private boolean fulfilled; ...
Java
src/main/java/seborama/demo2/kafka/model/Order.java
seborama/demo1-kafka
apache-2.0
1,265
57
codeparrot/github-code
a17df5def6ec210d0784aecaa0ee23beb81a589f4e761e97a04cc897b76375c4
/* * Copyright (c) 2017 Otávio Santana and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * The Eclipse Public License is available at http://ww...
Java
artemis-column/src/test/java/org/jnosql/artemis/column/query/DefaultColumnQueryMapperBuilderTest.java
JNOSQL/artemis
apache-2.0
1,792
56
codeparrot/github-code
4b2d9370d52579bbc398d671b2f25e79fb010e6af1dea85f4c80a231a661efd7
/* tslint:disable:max-classes-per-file */ import { forEach } from 'ramda'; import Interactor from '../CourseInteractor'; import InteractorLoader from '../CourseInteractorLoader'; import { ICourseStorage } from '../ICourseStorage'; import { IProgressStorage } from '../IProgressStorage'; import { ISerializedCourse } from...
TypeScript
packages/entities-interactor/__tests__/CourseInteractor.ts
serlo-org/serlo-abc
apache-2.0
3,604
135
codeparrot/github-code
85813afa8ebb5fcb559b005eef3076e4d28b7aa35792928d9abdb34b92544c85
import React from 'react'; import { action } from '@storybook/addon-actions'; import { Action } from '../Actions'; import ActionBar from './ActionBar.component'; const primary = { label: 'Primary', icon: 'talend-cog', bsStyle: 'primary', 'data-feature': 'actionbar.primary', onClick: action('You clicked me'), }; ...
JavaScript
packages/components/src/ActionBar/ActionBar.stories.js
Talend/ui
apache-2.0
6,576
319
codeparrot/github-code
65660272d062271cbc38b218c2db5801c9e6ba020ab1275c8b87934b6621d174
import hashlib from core.analytics import InlineAnalytics from core.observables import Hash HASH_TYPES_DICT = { "md5": hashlib.md5, "sha1": hashlib.sha1, "sha256": hashlib.sha256, "sha512": hashlib.sha512, } class HashFile(InlineAnalytics): default_values = { "name": "HashFile", ...
Python
plugins/analytics/public/hash_file.py
yeti-platform/yeti
apache-2.0
1,405
52
codeparrot/github-code
e642f4bdbeca8c712f375a57de0146d8fd65b6cba2cd458f288eb6da99e1dd61
/** * Copyright 2011-2021 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
directio-project/asakusa-directio-dmdl/src/main/java/com/asakusafw/dmdl/directio/text/AbstractTextStreamFormatGenerator.java
asakusafw/asakusafw
apache-2.0
26,894
582
codeparrot/github-code
f73f01127f1ecd632f2491bac944ba5d662009b7e2feda4fe81faaf1a765204a
/* * Copyright 2007 Sascha Weinreuter * * 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
src/org/intellij/plugins/relaxNG/references/PrefixReferenceProvider.java
consulo/consulo-relaxng
apache-2.0
4,459
142
codeparrot/github-code
62bcccf23ada412dab6ee890f66a833ebba5bc55698606ab9979f70446815930
/** * Copyright 2017 Hortonworks. * * 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
streams/service/src/main/java/com/hortonworks/streamline/streams/service/TopologyTestRunResource.java
hmcl/Streams
apache-2.0
26,797
582
codeparrot/github-code
17ae33892fca53a533ed645eee0856ea8219ca4b3ce472eb98121b782c3e6bde
package org.jruby.ext.ffi.jna; import java.util.ArrayList; import org.jruby.runtime.ThreadContext; /** * An invocation session. * This provides post-invoke cleanup. */ final class Invocation { private final ThreadContext context; private ArrayList<Runnable> postInvokeList; Invocation(ThreadContext cont...
Java
jruby/src/src/org/jruby/ext/ffi/jna/Invocation.java
google-code/android-scripting
apache-2.0
796
35
codeparrot/github-code
02ae038eacf680cfe9ecdbfc6b0803a8f1f88f1d28d4f58b4cc10ff3aadb8c08
package org.onetwo.ext.security.utils; import java.util.Collection; import org.onetwo.common.web.userdetails.UserDetail; import org.onetwo.common.web.userdetails.UserRoot; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.User; @SuppressWarnings("serial")...
Java
core/modules/security/src/main/java/org/onetwo/ext/security/utils/LoginUserDetails.java
wayshall/onetwo
apache-2.0
1,289
63
codeparrot/github-code
c674e2ac249895a580b88efe8f731042959eefe6922827a7f18b876932dda4da
/* <samplecode> <abstract> A DSPKernel subclass implementing the realtime signal processing portion of the FilterDemo audio unit. </abstract> </samplecode> */ #ifndef FilterDSPKernel_hpp #define FilterDSPKernel_hpp #import "DSPKernel.hpp" #import "ParameterRamper.hpp" #import <vector> static inline float co...
C++
Pepper/Code Examples/Apple/AudioUnitV3ExampleABasicAudioUnitExtensionandHostImplementation/Filter/Shared/FilterDSPKernel.hpp
eviathan/Salt
apache-2.0
7,597
268
codeparrot/github-code
b89ad35521724c6ca529785e4b4e80d79d0bd0fed6dec559c2f95f7e9e4956a8
/* * Copyright (C) 2015 P100 OG, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
sample/src/main/java/com/shiftconnects/android/auth/example/util/GsonConverter.java
shiftconnects/android-auth-manager
apache-2.0
3,430
116
codeparrot/github-code
a06f608621e603abe318e7bc315a52cb7e1f218ad90642af741f8a45693387c0
/** * */ package com.transcend.rds.worker; import java.util.Arrays; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.hibernate.Session; import org.slf4j.Logger; import org.springframework.transaction.annotation.Transactional; import com.msi.tough.cf.json.DatabagParameter...
Java
src/com/transcend/rds/worker/ModifyDBParameterGroupActionWorker.java
TranscendComputing/TopStackRDS
apache-2.0
11,169
277
codeparrot/github-code
f8eff2bf5e784070e244e8f4d3fcf226a75564f19d4c0f782c6f20d9c87ef978
class PagosController < ApplicationController before_action :set_pago, only: [:show, :edit, :update, :destroy] # GET /pagos # GET /pagos.json def index @pagos = Pago.all end # GET /pagos/1 # GET /pagos/1.json def show end # GET /pagos/new def new @pago = Pago.new end # GET /pagos/1...
Ruby
gestzam/app/controllers/pagos_controller.rb
felixparra/Gestzam
apache-2.0
1,866
75
codeparrot/github-code
bfcae5a365255df69f5671c5ce30a1c97f2400b46e65a7df9dd2e8c593e5af29
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "inter_vn_stats.h" #include <oper/interface.h> #include <oper/mirror_table.h> using namespace std; InterVnStatsCollector::VnStatsSet *InterVnStatsCollector::Find(string vn) { VnStatsMap::iterator it = inter_vn_stats_.find(vn); ...
C++
src/vnsw/agent/uve/inter_vn_stats.cc
sysbot/contrail-controller
apache-2.0
4,028
130
codeparrot/github-code
d0ea7e6cc413aa52e0f603f7aa8cf1d0c83f9046093340b25d614bf2038894db
/* * Copyright 2016 peter. * * 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
filesystem-core/src/main/java/onl/area51/filesystem/io/Flat.java
peter-mount/filesystem
apache-2.0
1,156
45
codeparrot/github-code
de99aaef24ca3ecc658af4a771be88eedd413173bc0ece7b082fa2290afbe65c
/*************************************************************************** * Copyright 2015 Kieker Project (http://kieker-monitoring.net) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
Java
kieker-common/test/kieker/test/common/junit/record/flow/trace/concurrency/monitor/TestMonitorNotifyEvent.java
HaStr/kieker
apache-2.0
3,493
97
codeparrot/github-code
3c237ca19538dfeb378102aa4e0f01ee78b26a096ed30d0ad44b1c96a9661e61
/** * Copyright © 2013 enioka. 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 la...
Java
jqm-all/jqm-client/jqm-api-client-jdbc/src/test/java/com/enioka/jqm/api/test/BasicTest.java
enioka/jqm
apache-2.0
7,478
235
codeparrot/github-code
7132d2bd18a2f0639203283eb03abb87285efe37d2249a38d9ed33d2c4a2d481
<?php declare(strict_types=1); namespace DaPigGuy\PiggyCustomEnchants\enchants\armor\chestplate; use DaPigGuy\PiggyCustomEnchants\enchants\CustomEnchant; use DaPigGuy\PiggyCustomEnchants\enchants\ToggleableEnchantment; use DaPigGuy\PiggyCustomEnchants\enchants\traits\TickingTrait; use pocketmine\entity\effect\Effect...
PHP
src/DaPigGuy/PiggyCustomEnchants/enchants/armor/chestplate/ProwlEnchant.php
DaPigGuy/PiggyCustomEnchants
apache-2.0
2,425
66
codeparrot/github-code
dfcce931d6a7840fd8bd12825575e0e2c90019a59e0672acef0262e863bc67a6
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
google/cloud/gaming_v1/types/common.py
googleapis/python-game-servers
apache-2.0
13,962
366
codeparrot/github-code
51a9976575bc56f7ac6f36917a1577e535db503cbdc80df6ce94c9abc4efdfd9
/** * Copyright (c) 2013-2020 Nikita Koksharov * * 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...
Java
redisson/src/main/java/org/redisson/iterator/RedissonBaseMapIterator.java
mrniko/redisson
apache-2.0
1,297
45
codeparrot/github-code
d2bea28eec986e693e6a0c9b1cb0c0674a09124ac5fc2852db390690131e463d
package org.artifactory.ui.rest.resource.home; import org.artifactory.api.security.AuthorizationService; import org.artifactory.ui.rest.resource.BaseResource; import org.artifactory.ui.rest.service.general.GeneralServiceFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework....
Java
web/rest-ui/src/main/java/org/artifactory/ui/rest/resource/home/HomeResource.java
alancnet/artifactory
apache-2.0
1,122
39
codeparrot/github-code
8f765b5e9faee1267ededb6fa8c4d48310c51ad60de5d6ffa6642c6c734bd309
/* * Licensed to Cloudkick, Inc ('Cloudkick') under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Cloudkick licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us...
Java
src/com/cloudkick/LoginActivity.java
cloudkick/cloudkick-android
apache-2.0
9,030
245
codeparrot/github-code
b33d317ceecf3493e1d1cb9387fe6d550fd2c0adf3c5ff09fedf936285a4c15f
package ai.api.test; /*********************************************************************************************************************** * * API.AI Java SDK - client-side libraries for API.AI * ================================================= * * Copyright (C) 2014 by Speaktoit, Inc. (https://www.speaktoit....
Java
libai/src/test/java/ai/api/test/ProtocolProdTest.java
deternan/Weather-line-bot
apache-2.0
1,887
58
codeparrot/github-code
1cf86ff85152a7a13a5923545d182afc49521c7535bb6b88170d9325df779637
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
Java
src/test/java/org/jboss/netty/handler/codec/serialization/OioOioSocketCompatibleObjectStreamEchoTest.java
CliffYuan/netty
apache-2.0
1,368
37
codeparrot/github-code
b4b7e2728441b1d0b65296b13491fc5e78f90a0bd633481360eb9171cd1a54d5
package com.coolweather.android; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.os.Build; import android.preference.PreferenceManager; import android.support.v4.view.GravityCompat; import android.support.v4.view.ScrollingView; import android.suppo...
Java
app/src/main/java/com/coolweather/android/WeatherActivity.java
MarkManYUN/coolweather
apache-2.0
9,610
230
codeparrot/github-code
757fa5f3333a607dd37213c8717b857ed6f8f7a015d0ee5358b2254070e30afa
package com.example.cdm.huntfun.activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.view.ViewPager.OnPageChangeListe...
Java
app/src/main/java/com/example/cdm/huntfun/activity/ImagePagerActivity.java
skycdm/HuntFun
apache-2.0
2,854
100
codeparrot/github-code
3f5ad5b3624fa90c0c689bc417c8b7a6a0903397f12c581342d68ccb45badb91
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.util.version.impl; import net.sf.mmm.util.version.api.DevelopmentPhase; import net.sf.mmm.util.version.api.VersionIdentifier; /** * This is the implementation of {@link ...
Java
version/src/main/java/net/sf/mmm/util/version/impl/VersionIdentifierFormatterPhaseValue.java
m-m-m/util
apache-2.0
1,372
41
codeparrot/github-code
2bccb34734fa4f4c63513acb5a5bf0917fae886e277591bd70c7abf68ce45131
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
components/camel-influxdb/src/main/java/org/apache/camel/component/influxdb/InfluxDbEndpoint.java
kevinearls/camel
apache-2.0
4,672
160
codeparrot/github-code
e95e19982015879f208b582c85a10ff0ba11361519102dc12677b4ce83ff44e7
/* * Copyright (C) 2008 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 app...
Java
common_ui/src/main/java/com/xiaomi/smarthome/common/ui/dialog/MLAlertController.java
Liyueyang/NewXmPluginSDK
apache-2.0
39,704
1,038
codeparrot/github-code
97f49a1b2faa3dd63e54428ddd7098fb9893c6b2a9b1232b3b9956d01db0c035
/** * Copyright 2011 Micheal Swiggs * * 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
core/src/test/java/com/google/reddcoin/net/discovery/SeedPeersTest.java
reddcoin-project/reddcoinj-pow
apache-2.0
1,795
51
codeparrot/github-code
fcf755da163e34ea7ed8df4018e04b5d8b637cad627fa3001685df746787b7aa
// Copyright 2012-2013 The Rust Project Developers. See the // COPYRIGHT file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MI...
Rust
src/compiletest/runtest.rs
jeltz/rust-debian-package
apache-2.0
23,259
712
codeparrot/github-code
611ee04bd69b536107de697e9b48333b96e2f70e87ef399cf5a8129f52b8e62f
/* * Copyright 2007 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 or agreed to i...
Java
drools-core/src/main/java/org/drools/core/reteoo/EntryPointNode.java
bxf12315/drools
apache-2.0
20,815
503
codeparrot/github-code
7720818f603eb052620bbb6da89d5d806a3306194185b7470451d8c40712f1f7
/* * 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
invertedindex/src/main/java/org/apache/kylin/invertedindex/index/ColumnValueContainer.java
lemire/incubator-kylin
apache-2.0
1,361
44
codeparrot/github-code
5589581501ee953c26641606fb9a48ece58459021d0a63d05c044834267da192
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014-2020 Couchbase, 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 * * ...
C++
src/lcbio/ioutils.cc
couchbase/libcouchbase
apache-2.0
8,898
340
codeparrot/github-code
691211a81e640186a0553ae27b314e15299df5afa1a5c49dd0d57a2f607d48ca
package org.valuereporter.observation; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component...
Java
src/main/java/org/valuereporter/observation/ObservedMethodsResouce.java
altran/Valuereporter
apache-2.0
4,690
115
codeparrot/github-code
ae105a68740dba871225da25867318f3aa451246facc8f49a0bd26a595a67a4c
package com.lee.game; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.View; i...
Java
game/src/main/java/com/lee/game/MainActivity.java
noobyang/AndroidStudy
apache-2.0
7,946
224
codeparrot/github-code
ec3c3ae9d07e49406d838cc541d829b7528baa4b59c5e7c71c9f790c0b661849
<?php namespace Obj; class Encoder { private $key; private $cipher; private $mode; /** * * args - array( * 'hash' => hash method * 'key' => path to private key * 'encrypt' => encryption method * ) */ public function __construct($key, $cipher = MCRYPT_RIJNDAEL_128, $mode = MCRYPT_MODE_CBC) { $k...
PHP
PHP_Projects/api-php/Obj/Encoder.php
bnewcomer/code-samples
apache-2.0
2,134
87
codeparrot/github-code
adfa2837f3fd59260253363ffb0af0a116ac8c6b232ea1d29204ce22f8e0f246
using System; using System.Globalization; using System.Resources; using System.Diagnostics; using System.Reflection; namespace Routrek.SSHC { /// <summary> /// StringResource ‚ÌŠT—v‚Ìà–¾‚Å‚·B /// </summary> internal class StringResources { private string _resourceName; private ResourceManager _...
C#
TerminalControl/StringResource.cs
ehazlett/sshconsole
apache-2.0
1,022
42
codeparrot/github-code
2ac6929cbcb6ea191d2e24365237c784e6feb71f2ae60fd01f66b2653000bb50
/* * Copyright 2014 http://Bither.net * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
bither-android/src/net/bither/util/FileUtil.java
bither/bither-android
apache-2.0
16,209
519
codeparrot/github-code
4d305f3a43b4ad71d0e5e6741053fd02196a4caefd184ab8eb568461c3c161d4
package io.react2.scalata.exporters import com.mongodb.{WriteConcern, BulkWriteOperation, BasicDBObject, MongoClient} import io.react2.scalata.Context import io.react2.scalata.plugins.Plugin import scala.util.control.NonFatal /** * @author dbalduini */ class MongoExporter(val args: Plugin.Args) extends Exporter { ...
Scala
src/main/scala/io/react2/scalata/exporters/MongoExporter.scala
React2/scalata
apache-2.0
1,637
66
codeparrot/github-code
8d4be14765b43579bc1b76baeb8925cb8b70c0165da0af9f0b5f5b2be217e75b
/* Copyright (C) 2014 by Project Tox <https://tox.im> This file is part of qTox, a Qt-based graphical interface for Tox. This program is libre software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either v...
C
BroadCast_QT/widget/form/groupchatform.h
mickelfeng/qt_learning
apache-2.0
2,098
75
codeparrot/github-code
2fb269aac16d7dace0991a134979c577cf3313d24ce3d9de8c2b4e9b1865731b
<?php /** * This is the model class for table "product_type". * * The followings are the available columns in table 'product_type': * @property string $product_type_id * @property string $parent_product_type_id * @property string $name * @property string $created * * The followings are the available model rel...
PHP
protected/models/ProductType.php
CdGitHub/live
apache-2.0
1,879
71
codeparrot/github-code
4cf1972eb23d6fb2d7a39725084b9721f00aff8c28a5d350f68094458255675f
/** * 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/ozShell/TestOzoneShell.java
xiao-chen/hadoop
apache-2.0
43,840
1,228
codeparrot/github-code
724d5f08a31033b49d0dfb37d8069fe2fffa2102398803d0d04fa1753e31e1e3
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright 2012 Couchbase, Inc. | +--------------...
C
flush.c
couchbase/php-ext-couchbase
apache-2.0
5,684
203
codeparrot/github-code
7b23858f6d0c93dc50b83ce46afb320627814b3c2537c8319a005e2087d4ddab
/* * Copyright 2015 Adaptris Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
interlok-core/src/test/java/com/adaptris/core/services/jdbc/JdbcMapInsertCase.java
adaptris/interlok
apache-2.0
4,375
144
codeparrot/github-code
f68d9dac97c7541fe0606b0c91b9bfee5e65c9ca67652082d1125a212f8ebd5b
/* * Project Scelight * * Copyright (c) 2013 Andras Belicza <iczaaa@gmail.com> * * This software is the property of Andras Belicza. * Copying, modifying, distributing, refactoring without the author's permission * is prohibited and protected by Law. */ package hu.scelight.gui.page.replist.column.impl...
Java
src-app/hu/scelight/gui/page/replist/column/impl/DateColumn.java
icza/scelight
apache-2.0
896
38
codeparrot/github-code
c45a3823fbd6fb7ef5eafd51f81bfeb18aaf3797ad4c02fe467c905544ea3281
/* * #%L * FlatPack serialization code * %% * Copyright (C) 2012 Perka 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 ...
Java
core/src/test/java/com/getperka/flatpack/codex/CollectionCodexTest.java
perka/flatpack-java
apache-2.0
4,155
132
codeparrot/github-code
50f3032bc71078cca190286cdf50ced835a46a8dd41f0dbd8decfb6e1c150fe0
/** * FreeRDP: A Remote Desktop Protocol Implementation * RDP Settings * * Copyright 2009-2011 Jay Sorg * * 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...
C
libfreerdp/core/settings.c
bmiklautz/debian-freerdp2
apache-2.0
41,463
1,139
codeparrot/github-code
0452c1802ba38aaca9aa7ee5315029f578464e35ee3a1876c57b276770f46caf
// Copyright (c) 2015-2016 Yuya Ochiai // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import AutoLaunch from 'auto-launch'; import {app} from 'electron'; function shouldQuitApp(cmd) { if (process.platform !== 'win32') { return false; } const sq...
JavaScript
src/main/squirrelStartup.js
yuya-oc/desktop
apache-2.0
1,409
44
codeparrot/github-code
27cd81c2de9bc19cd46d62e960fe956bbb8cbfbd8106a8a26d6746ad40fc7828
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package modelo.formularios; import controlador.dbConnection; import java.sql.Connection; import java.sql.PreparedStatement; import jav...
Java
TropiCabinas/src/modelo/formularios/Interfaz_Factura.java
eisnerh/PCT_315
apache-2.0
2,199
62
codeparrot/github-code
c7dd138020c12f2045c8234c31f6b28863c51f92927b718273d75a499ba4d0c6
// *************************************************************************** // * Copyright 2014 Joseph Molnar // * // * Licensed under the Apache License, Version 2.0 (the "License"); // * you may not use this file except in compliance with the License. // * You may obtain a copy of the License at // * // * ...
Java
user_client/src/main/java/com/talvish/tales/samples/userclient/UserClient.java
Talvish/Tales-Samples
apache-2.0
7,943
185
codeparrot/github-code
e8583f153d9339351d8eaaff6fbaf7fa4cdb580e91ed1eabd7ddfab200b0e136
#! /bin/bash # Runs the linters against dendrite # The linters can take a lot of resources and are slow, so they can be # configured using two environment variables: # # - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run, # gometalinter defaults this to 8 # - `DENDRITE_LINT_DISABLE_GC` - if set the...
Shell
scripts/find-lint.sh
gperdomor/dendrite
apache-2.0
1,179
47
codeparrot/github-code
f3d9f803fdfe11ef3b1d8571052841c03633c1c8a74fb4f50ea2b458eb3b4cbd
package com.ihtsdo.snomed.model.xml; import java.sql.Date; import javax.xml.bind.annotation.XmlRootElement; import com.google.common.base.Objects; import com.google.common.primitives.Longs; import com.ihtsdo.snomed.dto.refset.RefsetDto; import com.ihtsdo.snomed.model.refset.Refset; @XmlRootElement(name="refset") pu...
Java
model/src/main/java/com/ihtsdo/snomed/model/xml/RefsetDtoShort.java
IHTSDO/snomed-publish
apache-2.0
6,129
196
codeparrot/github-code
047fe0360a6c4dc5a7dd3a39fed6f1c0b50c1f86598efd629b650bfaef4455ae
/* * %CopyrightBegin% * * Copyright Ericsson AB 1998-2016. 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 * ...
C
erts/emulator/beam/erl_db_util.h
lemenkov/otp
apache-2.0
16,474
484
codeparrot/github-code
58c49e9e64fe2a438f6fc16e098d91ca5e64c40f8563244110da6511e389b616
package com.fuyoul.sanwenseller.bean.pickerview; import java.util.List; public class ProvinceModel implements IPickerViewData { private String name; private List<CityModel> cityList; @Override public String getPickerViewText() { return name; } public ProvinceModel() { super(...
Java
app/src/main/java/com/fuyoul/sanwenseller/bean/pickerview/ProvinceModel.java
newbieandroid/AppBase
apache-2.0
915
47
codeparrot/github-code
940e8484b0c6c3cd709e80152b5641f4fc9dde22d45b230baccc13c7d1b99e59
/* * Copyright 2014-2015 Red Hat, Inc. and/or its affiliates * and other 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 License at * * http://w...
Java
api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/handler/BaseHandler.java
140293816/Hawkular-fork
apache-2.0
2,802
85
codeparrot/github-code
b65b9daaa80e92ede01cc5283587f55cbceacb74a869c4dce1266c3736fe8ced
/* * 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
gaecompat-awt-imaging/src/common/javax/accessibility/AccessibleText.java
mike10004/appengine-imaging
apache-2.0
1,610
47
codeparrot/github-code
82f21fc58c5d55c3b78cc00e2a26d783921b3360c294e1d591e7a10ce218bdda
/** * Copyright 2015-2016 Maven Source Dependencies * Plugin 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 License at * * http://www.apache.org...
Java
srcdeps-core/src/main/java/org/l2x6/srcdeps/core/shell/ShellCommand.java
jpkrohling/srcdeps-maven-plugin
apache-2.0
3,821
117
codeparrot/github-code
d8ae44a92a298179747b5b1aa96d938557647c57a065f73fe608c11db4dedce7
<!DOCTYPE html> <html> <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>Carrot Cake</title> <meta name="description" content="ZutatenFür den Kuchen:200 g brauner Zucker180 g Pflanzenöl (200 ml)3 ...
HTML
recipe/secret/2015/09/26/carrot-cake.html
clonker/clonker.github.io
apache-2.0
4,720
149
codeparrot/github-code
e968dbd39afa0ef96e30871d5ef88925dcd5c96ee625a8a4ecdaa4a220ab248d
/* * * * Copyright (c) 2011-2015 EPFL DATA Laboratory * * Copyright (c) 2014-2015 The Squall Collaboration (see NOTICE) * * * * 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 o...
Java
squall-core/src/main/java/ch/epfl/data/squall/components/dbtoaster/DBToasterJoinComponent.java
akathorn/squall
apache-2.0
3,862
98
codeparrot/github-code
8b7f945b8ddefe576a935ba3e5619af65e4db23ebe46f86b444faa15e0957911
/* * Copyright 2009-2013 Aarhus 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 * * Unless required by applicable law or...
Java
ScriptCompressor1.0/src/dk/brics/tajs/analysis/WorkListStrategy.java
cursem/ScriptCompressor
apache-2.0
2,303
77
codeparrot/github-code
0c6b8e06ace126ffbeaf68869b2976840dcd665d330d6fd975bbbfcd297cdb04
#include "firestore/src/swig/equality_compare.h" namespace { template <typename T> bool EqualityCompareHelper(const T* lhs, const T* rhs) { return lhs == rhs || (lhs != nullptr && rhs != nullptr && *lhs == *rhs); } } // namespace namespace firebase { namespace firestore { namespace csharp { bool QueryEquals(con...
C++
firestore/src/swig/equality_compare.cc
firebase/firebase-unity-sdk
apache-2.0
912
37
codeparrot/github-code
d144370b8e08a87bf00c82bb4ac7af64868b41ea4bb8d782af96fda95376b860
package at.ac.tuwien.dsg.pm.resources; import at.ac.tuwien.dsg.pm.PeerManager; import at.ac.tuwien.dsg.pm.model.Collective; import at.ac.tuwien.dsg.smartcom.model.CollectiveInfo; import at.ac.tuwien.dsg.smartcom.model.Identifier; import javax.inject.Inject; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; imp...
Java
pm/src/main/java/at/ac/tuwien/dsg/pm/resources/CollectiveInfoResource.java
PhilZeppe/CaaS
apache-2.0
1,385
49
codeparrot/github-code
7e2aa5608f800480470e7e92a479f6a266bb3714748c156409c77feebc5079d8
/* * 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/server/handler/BasicPublishMethodHandler.java
wso2/andes
apache-2.0
3,860
104
codeparrot/github-code
e9c80fbc558e267cb405d2e2a0e947a3f4a3a8434498673ed32081fd96956076
using System; using System.Net.Http.Formatting; using System.Web; using System.Web.Hosting; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using NLog; using NLog.Config; using NLog.Targets; using RceDo...
C#
RceDoorzoeker/Global.asax.cs
Joppe-A/rce-doorzoeker
apache-2.0
3,309
131
codeparrot/github-code
72f4bb1735de85818ea48ebdff1a51276c9a5efaac99c3e17952d88bdf567420
/* * Copyright (c) 2015, 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.apache.org/...
Java
components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/task/TaskScheduleServiceImpl.java
charithag/carbon-device-mgt-framework
apache-2.0
5,611
134
codeparrot/github-code
ce8fe95ed006c503691e11098e980032bdd3864e2fc603da7d60571bec2ab84e
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
Java
google-api-client/src/main/java/com/google/api/client/googleapis/testing/json/GoogleJsonResponseExceptionFactoryTesting.java
googleapis/google-api-java-client
apache-2.0
3,555
78
codeparrot/github-code
1c17c7b98e17f550d7d93e211a40a9af8c5d741ba3d66526a3376e7b67f789cb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Class: Selenium::Rake::ServerTask ...
HTML
docs/api/rb/Selenium/Rake/ServerTask.html
qamate/iOS-selenium-server
apache-2.0
20,743
846
codeparrot/github-code
14f06315e99eb3e6e3517a4eec014edc623c8d21bac4f9e4d62ca9d71a4ad4ba
package pl.mobilization.conference2015.sponsor; import android.content.Context; import android.content.Intent; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import java.util.ArrayList; import java.util.List; import de.greenrob...
Java
app/src/test/java/pl/mobilization/conference2015/sponsor/SponsorRestModelPresenterTest.java
Mobilization/mobandroid5
apache-2.0
3,058
101
codeparrot/github-code
eaefc5c983092a70604f5b9ca764d6492d27ba3bf8de32421c45104ff283ff60
package org.liveontologies.protege.justification.proof.preferences; /*- * #%L * Protege Proof Justification * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2016 - 2017 Live Ontologies Project * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
Java
src/main/java/org/liveontologies/protege/justification/proof/preferences/ProofPreferencesPanelPluginLoader.java
liveontologies/protege-proof-justification
apache-2.0
1,491
46
codeparrot/github-code
a16315949deefb51dc7ed846c8e799909bceabce6a302e16ba0fd13b46c7343b
/* * 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-workdocs/src/main/java/com/amazonaws/services/workdocs/model/transform/DeleteFolderRequestProtocolMarshaller.java
jentfoo/aws-sdk-java
apache-2.0
2,620
63
codeparrot/github-code
8c36e9151298c5fa73189b2f0af022a0799eb8e97934313eb10076e868de071c
/** * Created by Jacky.Gao on 2017-02-09. */ import {alert} from '../MsgBox.js'; export default class EditPropertyConditionDialog{ constructor(conditions){ this.conditions=conditions; this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11001"> <div ...
JavaScript
ureport2-js/src/dialog/EditPropertyConditionDialog.js
youseries/ureport
apache-2.0
9,326
209
codeparrot/github-code
9562275c4679aa7154ea325eaa1d2ed4e25f2d69110c187eeee003c442c5c755
from collections import defaultdict import codecs def count(corpus, output_file): debug = False dic = defaultdict(int) other = set() fout = codecs.open(output_file, 'w', 'utf8') for line in open(corpus, 'r'): words = line.split() for word in words: if len(word) % 3 == 0:...
Python
tools/character_count.py
jileiwang/CJ-Glo
apache-2.0
1,312
50
codeparrot/github-code
a7c28a97ff648b24982425e9348340bdf1e6a4ac736a520b090842bcbb0b10e5
/* * Copyright 2017 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
domain/test/com/thoughtworks/go/config/materials/git/GitMaterialShallowCloneTest.java
soundcloud/gocd
apache-2.0
9,537
198
codeparrot/github-code
adefe24bfca80b6868993eaa52f22c4f36a84323c1ca767e0cff5a69b702e895
package wei_chih.service.handler.wei_chih; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.IOException; import java.net.Socket; import java.security.KeyPair; import java.security.PublicKey; import java.security.SignatureException; import java.util.concurrent.locks.R...
Java
src/wei_chih/service/handler/wei_chih/WeiChihHandler.java
CloudComLab/Voting-CAP
apache-2.0
5,740
158
codeparrot/github-code
eac3b2c87dfd229f491fb5a4840f19175f4ab77165a3f664b660719f34899bb5
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2012-2019 Couchbase, 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 * * ...
C++
tools/common/histogram.cc
avsej/libcouchbase
apache-2.0
1,439
58
codeparrot/github-code
af972228886d78ca0e3d0316899c98e3fe07d70103f2b2143d5af617a5511a88
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: AirAlliance -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
SQL
sql/aadb_dump.sql
ecabrerar/AirAlliance
apache-2.0
6,824
170
codeparrot/github-code
b18b2a9c4c6dedb70a6685f44005312b78e09f936555282c7c6312732cc6331d
package com.oauth.services.security; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.security.crypto.keygen.BytesKeyGenerator; import org.springframework.security.crypto.keygen.KeyGenerators; import org.springframework.security.crypto.password.StandardPasswordEncoder...
Java
oauth/src/main/java/com/oauth/services/security/Test.java
kinddevil/course-service
apache-2.0
1,438
31
codeparrot/github-code
2d97b6701365314d0705decd5e01d8919c03a1362c8ed9fe5905e8a1159006e0
<?php /** * Created by PhpStorm. * User: Bartosz Bartniczak <kontakt@bartoszbartniczak.pl> */ namespace BartoszBartniczak\EventSourcing\Shop\User\Event; use BartoszBartniczak\EventSourcing\Event\Id; class UserAccountHasBeenActivated extends Event { /** * @var string */ protected $activationToke...
PHP
src/User/Event/UserAccountHasBeenActivated.php
BartoszBartniczak/EventSourcing-Example
apache-2.0
735
36
codeparrot/github-code
01473f1bd6a40bf3bc2f880ea299a2fc1df0bad41eb1e823c74e7d05c379a7ab
package net.distilledcode.httpclient.impl.metatype.reflection; import org.apache.http.client.config.RequestConfig; import org.junit.Test; import java.util.Map; import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.CoreMatchers.hasItem; import static org.hamcrest.CoreMatchers.is; import static org...
Java
src/test/java/net/distilledcode/httpclient/impl/metatype/reflection/InvokersTest.java
code-distillery/httpclient-configuration-support
apache-2.0
3,178
90
codeparrot/github-code
e64178fa1d536a602469d5caaab5802f638f635807d6049b3e67ef93194e837c
/* * Copyright 2012 Michael Bischoff * * 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 ...
Java
jpaw-util/src/main/java/de/jpaw/util/ByteArray.java
jpaw/jpaw
apache-2.0
18,751
460
codeparrot/github-code
154e65fad91ed9b38e78ae37c259ec300ad6b174939e44b5d5f6b900bb68f66f
/* * Copyright (C) 2014 Jörg Prante * * 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 agree...
Java
src/main/java/org/xbib/elasticsearch/plugin/jdbc/feeder/JDBCFeeder.java
songwie/elasticsearch-river-jdbc
apache-2.0
12,907
304
codeparrot/github-code
783fa1a57f1ba30a9d5a128cc56a89b85eb061b90471c2bb1ec027bab1e45410
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may ...
Java
api/src/test/java/io/druid/data/input/impl/DelimitedParseSpecTest.java
Saligia-eva/mobvista_druid
apache-2.0
3,790
122
codeparrot/github-code
7b38365df25fc8fd3e079a9b25b45a88a8e900b8133e307f6bbe0d2698c7b852
/* * 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 "l...
Java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/model/RegisterInstancesWithLoadBalancerResult.java
trasa/aws-sdk-java
apache-2.0
5,518
156
codeparrot/github-code
c2e16fd4fb02e08cb8e69401cd7c94919c305eba8ede6c9ad463af134e7351c3
package com.example.godtemper.db; import java.util.ArrayList; import java.util.List; import com.example.godtemper.model.City; import com.example.godtemper.model.County; import com.example.godtemper.model.Province; import android.R.integer; import android.content.ContentValues; import android.content.Context; import ...
Java
src/com/example/godtemper/db/GodTemperDB.java
GodisGod/godtemper
apache-2.0
4,037
142
codeparrot/github-code
09a38f9eef7c97b1d0a36acf9bcd2142a9ddb4ffa588b13add1b2c7f9d8ea3a4
/* * Copyright 2012 Delving B.V. * * 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...
Scala
modules/cms/app/models/cms/CMSPage.scala
delving/culture-hub
apache-2.0
7,589
181
codeparrot/github-code
6e428bcb1ede6c88b7a9f27073ef3bfa6f598509df0cef9333d20903ba4571ed
// Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
C++
exegesis/x86/cleanup_instruction_set_fix_operands.cc
google/EXEgesis
apache-2.0
19,133
447
codeparrot/github-code
62cb4c1617bde721f9f5a073e7236733afe36defe0828163e45587fec708300e
package org.axway.grapes.server.webapp.resources; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.GenericType; import com.sun.jersey.api.client.WebResource; import com.yammer.dropwizard.auth.basic.BasicAuthProvider; import com.yammer.dropwizard.testing.ResourceTest; import org.axway.g...
Java
server/src/test/java/org/axway/grapes/server/webapp/resources/WebSearchResourceTest.java
Axway/Grapes
apache-2.0
5,448
128
codeparrot/github-code
42da767ce6eca759c309322c29a19d0aa3c4bc79a1f7f9105306ab23dbb20be3
#!/usr/bin/env ruby # Encoding: utf-8 # # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
Ruby
examples/billing/get_account_budget_proposals.rb
googleads/google-ads-ruby
apache-2.0
4,070
126
codeparrot/github-code
b64b5952c77d33d32f147030443a1991982a02b370b8d7e6af9bc884b86c0091
// Copyright 2017 The Oppia 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 ap...
JavaScript
core/templates/dev/head/domain/exploration/InteractionObjectFactory.js
AllanYangZhou/oppia
apache-2.0
3,481
95
codeparrot/github-code
9955f9822808eb1b320ef2d66538ae38cf7f8e4f3a9a406af2fbab1bff19202a
package org.tmarciniak.mtp.model; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; impo...
Java
mtp-core/src/main/java/org/tmarciniak/mtp/model/TradeMessage.java
tmarciniak/cfmtp
apache-2.0
4,895
197
codeparrot/github-code