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 |
|---|---|---|---|---|---|---|---|---|
bcefb03fd0e80b40cf7c3b826cfd1a54410b2c010715144bd583b5bd6ff113b4 | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | GO | test/e2e/storage/persistent_volumes-gce.go | enisoc/kubernetes | apache-2.0 | 6,296 | 165 | codeparrot/github-code |
7561a0e802e1fd8c6f6c868800aad77e75a3854aab8876350c2660d7d5a934fa | package org.misc;
import java.util.HashMap;
/**
*
* There are n bombs in a road going from left to right,and each bomb has a
* value and a 'effect range'.If you detonated a bomb,you will get this bomb's
* value,but a bomb can have effect on the neighbors which the
* distance(difference between index) between the... | Java | src/org/misc/BombDiffuse2.java | sandeepmukho/sample-data-structures | apache-2.0 | 2,179 | 70 | codeparrot/github-code |
0a54e7262340b762928adef6a4298313c8ed4b7b1ce522667ed6ba73b52bbedf | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_mail import Mail
from flask_moment import Moment
from flask_sqlalchemy import SQLAlchemy
from config import config
import chartkick
bootstrap = Bootstrap()
mail = Mail()
moment = Moment()
db = SQLAlchemy()
def create_app(config_name):
app ... | Python | app/__init__.py | ASaiun/saiun_bysj | apache-2.0 | 785 | 35 | codeparrot/github-code |
381275ecafa534fd540644b8cbea937ea389b4c48181cf032006f02de3a777fd | /*
* 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-route53/src/main/java/com/amazonaws/services/route53domains/model/transform/ViewBillingResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 3,094 | 79 | codeparrot/github-code |
10eb1efe0ea02ebe9b0bcaee4538fa8d776e33db00284ba7d51a2582a714dd9a | /* Copyright (c) 2019-2022, Arm Limited and Contributors
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 the "License";
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/L... | C | framework/platform/glfw_window.h | KhronosGroup/Vulkan-Samples | apache-2.0 | 1,432 | 57 | codeparrot/github-code |
1fbbf1300218ba9946917f7174872a8d39a85ac6e1eb4e4ce6aaabff33f1d056 | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | C++ | net/native-stack-impl.hh | scylladb/scylla-seastar | apache-2.0 | 5,373 | 174 | codeparrot/github-code |
b0d11434374dce34752f2760cbf25b1b3db8bc54a34ba00cc30cf58efe9ad68a | /**
* Copyright 2015 Cerner Corporation.
* Copyright 2015 Cloudera, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | Java | kite-apps-cli/src/main/java/org/kitesdk/apps/cli/Main.java | mkwhitacre/kite-apps | apache-2.0 | 5,446 | 182 | codeparrot/github-code |
03cedc91adcf0d8caad229ea190f861976d8f7d63579c0ce0f629185ad20f58b | package com.parse.starter;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppComp... | Java | ParseStarterProject/src/main/java/com/parse/starter/Register.java | EllisMin/st | apache-2.0 | 6,081 | 154 | codeparrot/github-code |
f6c64f51ebea0e318c542d52674e2ea3462928d2a30aa2a8058ec5e3263e1706 | package com.github.dactiv.showcase.test.manager.foundation.audit;
import static org.junit.Assert.assertEquals;
import java.util.Date;
import com.github.bean.showcase.common.enumeration.entity.OperatingState;
import com.github.bean.showcase.entity.foundation.audit.OperatingRecord;
import com.github.bean.showc... | Java | showcase/base-curd/src/test/java/com/github/dactiv/showcase/test/manager/foundation/audit/TestOperatingRecordManager.java | yangwn/ordering | apache-2.0 | 1,587 | 51 | codeparrot/github-code |
997581969d28fd982f153e34d11efc5d6ff19630a3e9a3897c9f102ff0c00e1e | #!/usr/bin/env python3
#
# Copyright 2014 Simone Campagna
#
# 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 ... | Python | rubik/filename.py | simone-campagna/rubik | apache-2.0 | 2,441 | 91 | codeparrot/github-code |
c3d18d4322391d3d1061b3aa31076abe340d6e5928910f24bef789b2129a2c6d | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not
* ... | Java | buession-core/src/main/java/com/buession/core/mcrypt/RSAMcrypt.java | eduosi/buessionframework | apache-2.0 | 8,163 | 283 | codeparrot/github-code |
caa8ed1818738e2d2dd3b67ee6c7e9297c0033a2dd980b03046a95192f90aebc | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/ModifySnapshotAttributeResultStaxUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 2,323 | 62 | codeparrot/github-code |
5834c03c5df8d154a84bda575e60652395e372fc509db76c3872df0e452d3d59 | /*
* Copyright 2010-2020 Alfresco Software, 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 ... | Java | activiti-api/activiti-api-process-model/src/main/java/org/activiti/api/process/model/builders/GetProcessDefinitionsPayloadBuilder.java | Activiti/Activiti | apache-2.0 | 1,777 | 50 | codeparrot/github-code |
007e47cd1fa98f6d65a6b716c96e6134f672686f00e664e54f92323f4ca56a34 | /**
* Copyright (C) [2013] [The FURTHeR 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 applica... | Java | security/security-impl/src/main/java/edu/utah/further/security/impl/domain/UserPropertyEntity.java | openfurther/further-open-core | apache-2.0 | 4,384 | 198 | codeparrot/github-code |
39550c189d02d8472fd833715edcd944651fcc9af860e53cae91ccac5b6bf37e | ///////////////////////////////////////////////////////////////////////////
// __ _ _ ________ //
// / / ____ ____ _(_)____/ | / / ____/ //
// / / / __ \/ __ `/ / ___/ |/ / / __ //
// ... | Java | src/main/java/org/logicng/functions/MinimumPrimeImplicantFunction.java | logic-ng/LogicNG | apache-2.0 | 5,106 | 105 | codeparrot/github-code |
e9ac18c603fa3b8af7096a3fd12e6cd1a16b8c2552aab7305e6d0ccc98b3bd20 | /*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | TypeScript | packages/backend-api/src/api/publisher/comments.ts | Instrument/conversationai-moderator | apache-2.0 | 3,104 | 101 | codeparrot/github-code |
9ec7ec6462130f25f3308f915aaa45590ff68055cf5811793495b033b7fe2696 | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | Java | oep-core-datamgt-portlet/docroot/WEB-INF/service/org/oep/core/datamgt/service/DictAttributeServiceClp.java | openegovplatform/OEPv2 | apache-2.0 | 2,536 | 91 | codeparrot/github-code |
fdf5091036ee39cb310a48daa6b8e81e741a232dc1154c5e5de115d44aa8c373 | # Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Python | nova/api/openstack/compute/plugins/v3/extended_volumes.py | OpenAcademy-OpenStack/nova-scheduler | apache-2.0 | 9,702 | 232 | codeparrot/github-code |
c043d9d1bdaa989eaaa3e1d7e69c97d0314a06c3f5a7a1f6d2396d552e46b394 | /*
* Copyright 2014 Ranjan Kumar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | src/main/java/com/restfeel/dto/TagDTO.java | Jason-Chen-2017/restfeel | apache-2.0 | 1,086 | 43 | codeparrot/github-code |
bebaecd5098fcedf96d686ad49018e27493a57116364755349a83c69970cd9b9 | using System;
using System.Collections.Generic;
using System.Text;
namespace LTAF
{
/// <summary>
/// Attribute reader that provides strong typed access to HtmlAnchorElement properties
/// </summary>
public class HtmlAnchorElementAttributeReader: HtmlElementAttributeReader
{
internal HtmlAn... | C# | src/LTAF/UI/HtmlAnchorElementAttributeReader.cs | OakRaven/ltaf | apache-2.0 | 1,317 | 62 | codeparrot/github-code |
a16a23f49a7e0d727f5b52b017f282a785563d6cb0e61c53d8e3b63bc7c567f4 | /*
* Copyright 2016 The BigDL Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Scala | spark/dl/src/main/scala/com/intel/analytics/bigdl/nn/ops/FloorDiv.scala | jenniew/BigDL | apache-2.0 | 1,398 | 42 | codeparrot/github-code |
432bc1e1cecc1edebd3cd844c6875b2df081fdf578e16756044da8c55c173d2b | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListLabelingJobsForWorkteamSortByOptions.java | aws/aws-sdk-java | apache-2.0 | 1,921 | 60 | codeparrot/github-code |
754b2d03037c67098d4e559f8c07c8e8d7a85ec17d0eb9c6d892f237c56fe53e | #ifndef WaSet_H
#define WaSet_H
#include "Synthesizer.h"
#include "Orchestra.h"
#include <string>
#include <map>
#define HAVE_WriteWaPlot 0
//! A vocal sound
struct Wa {
Synthesizer::Waveform waveform;
float freq; // Frequency of wa in Hz
float duration; // Duration of... | C | Source/WaSet.h | ArchRobison/Wacoder | apache-2.0 | 1,085 | 48 | codeparrot/github-code |
e92ab22edd3c7b66a6a5c558300f7a2d7b0047ab1cb1c2fca8bd4a2139219378 | // Copyright 2018 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 | metrics/metrics.go | cosmtrek/tidb | apache-2.0 | 6,064 | 156 | codeparrot/github-code |
a8a192f160dbc1ba6ada19d72d9d25929f958aafd8d4127cbd9eb9ce3509a6e4 | /*
* @Author Wei-Tsung Lin
* @Date 03/11/2016
* @Description Show all products in the wishlist
*/
package cs263w16;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRe... | Java | base_project/base/src/main/java/cs263w16/WishlistServlet.java | fasthall/cs263w16 | apache-2.0 | 3,026 | 88 | codeparrot/github-code |
e1db36857bf15099c2d4e90cea378909ff6b261ea40687560a03491cc5d567eb | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The Legrand Orange Book
% LaTeX Template
% Version 1.2 (19/5/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Mathias Legrand (legrand.mathias@gmail.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/... | TeX | doc/main.tex | zhitang/mercury | apache-2.0 | 12,712 | 375 | codeparrot/github-code |
cf5a0f0a844395b0c6d85b594a2912e2720145bc304ac37a6221e2a697acbd1a | package net.lecousin.framework.event;
/** Class that implements SimpleListenable and delegate to an event of type T which is lazily instantiated on its first listener.
* @param <T> type of event
*/
public abstract class SimpleListenableContainer<T extends SimpleListenable> implements SimpleListenable {
protected T... | Java | net.lecousin.core/src/main/java/net/lecousin/framework/event/SimpleListenableContainer.java | lecousin/java-framework-core | apache-2.0 | 772 | 34 | codeparrot/github-code |
0617821b488a63e48dd4b3ccf6196792bfd00d16d203225e947dcf280e91f6e9 | package smbModel;
import java.io.File;
import javax.sound.midi.MidiSystem;
import javax.sound.midi.Sequence;
import javax.sound.midi.Sequencer;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
public class MusicPlayer {
private String[] soundPaths = new String[] { "Assets/Sounds/smbTheme.MI... | Java | SuperMarioBros/src/smbModel/MusicPlayer.java | cmurat/CS434-Project | apache-2.0 | 2,264 | 99 | codeparrot/github-code |
927a71de0e4e88ae336857d595429e2c04ed47c17fdf4c6f644b0577ca79613a | //go:build example
// +build example
/*
* MinIO Go Library for Amazon S3 Compatible Cloud Storage
* Copyright 2020 MinIO, 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
*
* ... | GO | examples/s3/removebucketencryption.go | minio/minio-go | apache-2.0 | 1,686 | 56 | codeparrot/github-code |
cbb95b7fbc2875146216fce19e17764d7a6c95782a1f6ffab5f19b7f60b763b2 | /*
* Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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
... | Java | lib/wicket-utils/src/main/java/org/opensingular/lib/wicket/util/bootstrap/layout/TemplatePanel.java | opensingular/singular-core | apache-2.0 | 5,362 | 134 | codeparrot/github-code |
c564769f0807605d4e783ee60f5868262e786de7e5685b8d309394485445128f | /*
* Copyright © 2017-2019 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | Java | wrangler-core/src/main/java/io/cdap/directives/transformation/Upper.java | hydrator/wrangler | apache-2.0 | 2,548 | 81 | codeparrot/github-code |
2da9db62a4898303cf8ec76e7d6432553e16377c619d96dad65710edbf067a20 | using System;
using System.Collections.Generic;
using System.Linq;
namespace MvcContrib.PortableAreas
{
/// <summary>
/// Lookup to find an embedded resource from an assembly.<para/>
/// This class abstract the fact that embedded resource in C# project and those in VB project
/// are not embedded the ... | C# | src/MVCContrib/PortableAreas/AssemblyResourceLocator.cs | joaofx/mvccontrib | apache-2.0 | 5,999 | 152 | codeparrot/github-code |
79ace69f050f37a85cbf78c6842a7cb50673ef3168c1d998d8232dc8289259bc | /*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.gfx.path"]){
dojo._hasResource["dojox.gfx.path"]=true;
dojo.provide("dojox.gfx.path")... | JavaScript | components/camel-web/src/main/webapp/js/dojox/gfx/path.js | everttigchelaar/camel-svn | apache-2.0 | 6,565 | 278 | codeparrot/github-code |
406c2f63640bad110b8a2d76210aa4394eac34b77210735ce5b9d89e95fc7ae3 | /*
* Copyright 2001-2013 Artima, 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 agre... | Scala | jvm/scalatest-test/src/test/scala/org/scalatest/verbs/BehaveWordSpec.scala | scalatest/scalatest | apache-2.0 | 960 | 35 | codeparrot/github-code |
8ca8091e34b40ec08f388cd6e3774eb348f41489d75d2802be4da899731587e5 | /**
* Copyright (C) 2018 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.opengamma.core.holiday.impl;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.Arrays;
import java.util.Collec... | Java | projects/core/src/test/java/com/opengamma/core/holiday/impl/SchemeAlteringHolidaySourceTest.java | McLeodMoores/starling | apache-2.0 | 8,227 | 218 | codeparrot/github-code |
27cf7b10f8181ddcd1d217f8c04a086387cc906b9ded83c1c57828b30229bd67 | /**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
/*jshint jquery:true*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
define([
"jquery",
"mage/validation",
"mage/translate"
], factory);
} else... | JavaScript | lib/web/mage/validation/validation.js | webadvancedservicescom/magento | apache-2.0 | 2,961 | 90 | codeparrot/github-code |
08977456910b67a881d9758c1a966f4a854e9ce69d176a85b26e9c96e6a84875 | /*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
dojo.provide("dojo.validate.common");
doj... | JavaScript | WebContent/js/src/validate/common.js | gepesz/chat | apache-2.0 | 10,441 | 249 | codeparrot/github-code |
7c7d6254b9384653a8a6149c136a2b751e57dd744bfb59869b08164e7772dcb8 | package com.whitebearsolutions.imagine.wbsairback.disk;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.whitebearsolutions.util.Command;
p... | Java | src/com/whitebearsolutions/imagine/wbsairback/disk/RaidManager.java | WhiteBearSolutions/WBSAirback | apache-2.0 | 38,060 | 1,006 | codeparrot/github-code |
d86721c564342e12830cd5242591582bca0205da12e47a21fc271de7c2bcc405 | /*
* The aspiredb project
*
* Copyright (c) 2013 University of British Columbia
*
* 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 | aspiredb/src/main/java/ubc/pavlab/aspiredb/server/service/LabelServiceImpl.java | ppavlidis/aspiredb | apache-2.0 | 7,233 | 222 | codeparrot/github-code |
758cb90db62ee1debfaa960304441c38444b1cb418ce207f4866d08181fd3536 | /**
* 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/net/MessagingService.java | ucare-uchicago/cass-fate-system | apache-2.0 | 18,798 | 552 | codeparrot/github-code |
bd10d72b876b62f9a1e5dba8977bbbbd0aea8aa26e258c20af88e263605c9dc8 | /*
* Copyright (c) 2015 Pactera. 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
*
* THIS CODE IS PROVIDED AS IS B... | Java | app/src/main/java/au/com/pactera/pacterapulse/helper/VoteManager.java | PacteraMobile/pacterapulse-android | apache-2.0 | 2,283 | 73 | codeparrot/github-code |
4a6332d5ca3e79fdf847a529507e8742a942a24c1cac3ee95a57b9c4805a96e6 | /*
* Copyright 2014 Daniel Nilsson
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java | src/main/java/com/github/dannil/scbjavaclient/client/SCBClient.java | dannil/scb-java-client | apache-2.0 | 12,887 | 355 | codeparrot/github-code |
2ca870e630bde63685183b4ba8ba4b619430701f93f42a9fb990d6146627f75d | /*
* Copyright 2015-2016 Valentin Milea
*
* 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 | CppAsync/StacklessCoroutine.h | vmilea/CppAsync | apache-2.0 | 9,078 | 347 | codeparrot/github-code |
9b63cdb435f4b10c3f1e64d11616184de438d14a273d724cb8f6184658aa2d46 | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Python | research/multi_representation_adversary/multi_representation_adversary/selectors.py | tensorflow/neural-structured-learning | apache-2.0 | 6,095 | 161 | codeparrot/github-code |
cd0a8073131d855a8e712b799f247676efc06810e0889bdeb68b64a1b74f1fe9 | /**************************************************************************
Copyright [2009] [CrypTool Team]
This file is part of CrypTool.
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... | C++ | trunk/CrypTool/KeyEdit.cpp | flomar/CrypTool-VS2015 | apache-2.0 | 1,993 | 79 | codeparrot/github-code |
3b50d8e4c06902dfdee8a87af2f6156953cdaf7b48b0c4677d408b37fde3269e | # This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you ma... | Python | gmn/src/d1_gmn/app/revision.py | DataONEorg/d1_python | apache-2.0 | 18,605 | 534 | codeparrot/github-code |
87afbefe1d5ca3bf8a57939527b7385ffc953606a6f2bbe93500ec8bcd4f79b7 | /*
* Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... | Java | snomed/com.b2international.snowowl.snomed.importer/src/com/b2international/snowowl/snomed/importer/net4j/SnomedSubsetImportUtil.java | IHTSDO/snow-owl | apache-2.0 | 10,566 | 356 | codeparrot/github-code |
70de3dd862e7bf57ed30fbd7329d3226cc20a83d2e72b052f2a379bf12826cbf | /**
* Copyright 2012 Twitter, 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 | parquet-column/src/main/java/parquet/example/data/simple/BooleanValue.java | julienledem/redelm | apache-2.0 | 1,067 | 42 | codeparrot/github-code |
781d32bf871aab0df1e73902542a4ccaa7675e2ad961b8f21ac0749b340ef24a | /*
* 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 ... | Scala | flink-libraries/flink-table/src/test/scala/org/apache/flink/table/runtime/utils/CommonTestData.scala | xiaokuangkuang/kuangjingxiangmu | apache-2.0 | 7,518 | 230 | codeparrot/github-code |
505f7a50f8e3504ea24c901d8f0df37c5b6115e081acd5264924327ad2ccf1b5 | #
# Copyright 2022 Centreon (http://www.centreon.com/)
#
# Centreon is a full-fledged industry-strength solution that meets
# the needs in IT infrastructure and application monitoring for
# service performance.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in com... | Perl | database/oracle/mode/tnsping.pm | centreon/centreon-plugins | apache-2.0 | 2,832 | 91 | codeparrot/github-code |
81a3bc8c26d738c020f6f9f907b2cbd9713e91b2b6c312fa7faa48f80ca77a54 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | Python | library/bigip_snmp_trap.py | mcgonagle/ansible_f5 | apache-2.0 | 13,740 | 481 | codeparrot/github-code |
467a8f7abcb6f75afc2c608298e5b2d0c293b9c9136fc96a6585861b492a84df | package com.bigr.applestore.subcategories;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGro... | Java | app/src/main/java/com/bigr/applestore/subcategories/SubCategoriesFragment.java | RanaAhmedHamdy/Apple-Store | apache-2.0 | 3,627 | 103 | codeparrot/github-code |
61924642d05b56171a2ca5f042c7aac7d433b1e52bee52cf76a393f42d3bc0ca | /*
* Orika - simpler, better and faster Java bean mapping
*
* Copyright (C) 2011-2013 Orika 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/lic... | Java | core/src/test/java/ma/glasnost/orika/test/community/Issue19TestCase.java | orika-mapper/orika | apache-2.0 | 1,877 | 75 | codeparrot/github-code |
122b70824d5601ef112b358b4aefd95363142f3a70b83ac848831db74c7cebbb | WORKERS=2 #total workers = masters+slaves
NODES=10000 #total graph nodes
LOGN_WEIGHT_M=0
LOGN_WEIGHT_S=1.0 #sigma
WEIGHTGEN=1
UPLOADDFS=false
HADOOPPATH=/home/yzhang/hadoop-priter-0.1/bin/hadoop
:<<BLOCK
#for sp
GRAPH=input/maxval_graph
LOGN_DEGREE_M=-0.5
LOGN_DEGREE_S=2.3
LOGN_WEIGHT_M=0
LOGN_WEIGHT_S=1.0
WEI... | Shell | sw/gengraph.sh | deepakcu/maestro | apache-2.0 | 1,253 | 63 | codeparrot/github-code |
2e754a91cf657b122b26b3e05a3366fbd7d0afaef3c40b3fcd74a236d85db26a | package com.bigkoo.pickerview.view;
import android.graphics.Typeface;
import android.view.View;
import com.bigkoo.pickerview.R;
import com.bigkoo.pickerview.adapter.ArrayWheelAdapter;
import com.bigkoo.pickerview.lib.WheelView;
import com.bigkoo.pickerview.listener.OnItemSelectedListener;
import java.util.List;
pub... | Java | pickerview/src/main/java/com/bigkoo/pickerview/view/WheelOptions.java | hopjojo/PublicWidget | apache-2.0 | 11,865 | 368 | codeparrot/github-code |
6439a9f9792c4678234664ea783074898aa5097456bac9af3981a13f4350f22d | /*
* Copyright 2015 Torridity.
*
* 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 | Core/src/main/java/de/tor/tribes/util/bb/TroopListFormatter.java | extremeCrazyCoder/dsworkbench | apache-2.0 | 2,847 | 76 | codeparrot/github-code |
40003e1c4859e407f5539adc12f426adc83bb8068ee16ee749a169fa6390d753 | package com.svbio.cloudkeeper.model.beans.element.module;
import com.svbio.cloudkeeper.model.bare.element.module.BareModuleVisitor;
import com.svbio.cloudkeeper.model.bare.element.module.BareProxyModule;
import com.svbio.cloudkeeper.model.beans.CopyOption;
import com.svbio.cloudkeeper.model.beans.element.MutableQualif... | Java | cloudkeeper-core/cloudkeeper-model/src/main/java/com/svbio/cloudkeeper/model/beans/element/module/MutableProxyModule.java | priimak/cloudkeeper | apache-2.0 | 2,597 | 82 | codeparrot/github-code |
6161920675b3b15f0a72b1009e4871c250ef5b9d77cd1db6a0c0a4b6cf0c1f28 | /*
* Copyright Kay Stenschke
*
* 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 | src/com/kstenschke/shifter/models/shiftable_types/Css.java | kstenschke/shifter-plugin | apache-2.0 | 4,628 | 136 | codeparrot/github-code |
8f530a79a1498b69bcb2acb99a66887e756f4f9183636dc9a9ecf84c13a54a84 | /*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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/license... | Java | driver/src/main/java/org/neo4j/driver/internal/handlers/pulln/AutoPullResponseHandler.java | neo4j/neo4j-java-driver | apache-2.0 | 9,854 | 334 | codeparrot/github-code |
b8eb889db6bd6c299a0146f1747a39b5f12563562ec6aafb12095d2e82bf35f7 | package com.ptoceti.osgi.pi.impl;
/*
* #%L
* **********************************************************************
* ORGANIZATION : ptoceti
* PROJECT : Pi
* FILENAME : ConfigReader.java
*
* This file is part of the Ptoceti project. More information about
* this project can be found here: http://www.ptoceti.c... | Java | com.ptoceti.osgi.pi/src/main/java/com/ptoceti/osgi/pi/impl/ConfigReader.java | lathil/Ptoceti | apache-2.0 | 6,022 | 199 | codeparrot/github-code |
080a8d6c6ec603e6f104572533ce3162393e171b058dc6ea62f66b22b971ead8 | # -*- coding: utf-8 -*-
import logging
from flask import request
from flask import render_template
from relay import app
from relay.decorators import jsonify
from relay.decorators import session_required
from relay.decorators import sanitize_user
from relay.models.relays import add_relay_model
from relay.models.rel... | Python | relay/views/relays.py | Magicjarvis/relay-backend | apache-2.0 | 5,107 | 187 | codeparrot/github-code |
cf70a917760e752c127cd970afbe49efd57f64955236dae49a74ffe38c866362 | // Copyright 2021 The XLS Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | C++ | xls/ir/interval.cc | google/xls | apache-2.0 | 9,319 | 308 | codeparrot/github-code |
c26f1bc94dc827f7a963c85e5f034b61f0011a1f3a62929f7aab821d751eeaf4 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | Java | aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/transform/InvalidCloudWatchLogsLogGroupArnExceptionUnmarshaller.java | aws/aws-sdk-java | apache-2.0 | 3,122 | 76 | codeparrot/github-code |
4641b768e44dd7ed7e769188973c55f9c616debe92c7404f2ed5f7f7fd78327a | /*
* Copyright 2014 Philip Cronje
*
* 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 | nbt-api/src/test/java/net/za/slyfox/minecraft/nbt/stream/BigTestNbtParserTest.java | slyfoxza/minecraft | apache-2.0 | 9,062 | 259 | codeparrot/github-code |
20028a38d25950352594d117335922cadd019dee163e94b7e0f04239e37e4d9f | /*
* Copyright (C) 2014 Steelkiwi Development, Julia Zudikova
*
* 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 | sample/src/com/skd/sketchview/sketch/SketchManager.java | steelkiwi/SketchView | apache-2.0 | 2,013 | 65 | codeparrot/github-code |
7a5f4c1a5523612684313110c9a23edfd3946b88dcaf6c85aa74d37c8c010bdf | /*
* Copyright 2013 by Maxim Kalina
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Java | src/main/java/net/javaforge/netty/servlet/bridge/impl/HttpServletResponseImpl.java | fangchi/netty-servlet-bridge | apache-2.0 | 7,177 | 241 | codeparrot/github-code |
164796726331cb23e8a506f9fffd799b24f09f5eb960d85090d633095973d0fe | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | Java | modules/flowable-bpmn-model/src/main/java/org/flowable/bpmn/model/ServiceTask.java | sibok666/flowable-engine | apache-2.0 | 4,114 | 134 | codeparrot/github-code |
d2c20b968fe733f827ebca9e3e09aa33764e0c2d79f1e26b4a74e6a63ece0ba7 | /*
* Copyright 2012-2019 MarkLogic Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | Java | marklogic-data-hub/src/main/java/com/marklogic/hub/impl/MasteringManagerImpl.java | marklogic/data-hub-in-a-box | apache-2.0 | 5,623 | 146 | codeparrot/github-code |
70dabc98bcc343fe24e84a7a0dd99e9e223fbcc97d62701e43e721d626c5e9f8 | angular.module('n52.core.diagram')
.service('flotChartServ', [
'timeseriesService',
'timeService',
'settingsService',
'flotDataHelperServ',
'$rootScope',
'monthNamesTranslaterServ',
'labelMapperSrvc',
'$q',
function(
timeseriesServi... | JavaScript | src/js/Chart/services/flotChartServ.js | 52North/sensorweb-client-core | apache-2.0 | 7,537 | 183 | codeparrot/github-code |
8484c7dd1467ac947ad6bc94110b4f301a1b33936690efaa61127686de4ceb0d | package works.weave.socks.orders.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import org.apache.servicecomb.provider.rest.common.Rest... | Java | orders/src/main/java/works/weave/socks/orders/controllers/HealthCheckController.java | huawei-microservice-demo/sockshop-demo | apache-2.0 | 1,529 | 48 | codeparrot/github-code |
bc5b0fb115652e65a157213c104b1fd29094dbe1db52b24fec12b943b793110d | const { Command } = require("klasa");
const { MessageEmbed } = require("discord.js");
const statusList = {
online: "online",
idle: "idle",
dnd: "in do not disturb"
};
module.exports = class extends Command {
constructor(...args) {
super(...args, {
name: "userinfo",
enab... | JavaScript | commands/General/userinfo.js | Butterstroke/MargarineBot | apache-2.0 | 3,031 | 88 | codeparrot/github-code |
088fff9e179497a1cc4a84bcf38846e1a811d84e65a3f6ca7416d027fda85b5a | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Ericsson AB
#
# 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 ... | Python | calvinextras/calvinsys/data/buffer/PersistentBuffer.py | EricssonResearch/calvin-base | apache-2.0 | 7,704 | 206 | codeparrot/github-code |
faf080af2a1e84353071d1e8aa5f5f488fa8af6b667ba2d41e97c27ab2267dd8 | /*
* 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 "lice... | Java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/AddInstanceGroupsResultJsonUnmarshaller.java | trasa/aws-sdk-java | apache-2.0 | 3,282 | 87 | codeparrot/github-code |
98d3a48bcd3c66dd1a06114c7fbd4591023f2165226ad6b1054991622c073745 | /*
* Copyright (c) 2016 PocketHub
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Java | app/src/main/java/com/github/pockethub/accounts/StoreCredentials.java | hufsm/PocketHub | apache-2.0 | 2,133 | 70 | codeparrot/github-code |
11465f6f356a285c5ca2e08442c50d7997de689536e9ab35f8337deb3654bf39 | #!/usr/bin/env node
'use strict';
const Engine = require('../').Engine;
const browserScripts = require('../lib/support/browserScript');
const logging = require('../').logging;
const cli = require('../lib/support/cli');
const StorageManager = require('../lib/support/storageManager');
const merge = require('lodash.merge... | JavaScript | bin/browsertime.js | tobli/browsertime | apache-2.0 | 4,376 | 145 | codeparrot/github-code |
464a7e737d34ba902cc0066382209744016dd9c231da5d0002c41058d34b6927 | /*
* Copyright 2016 Erik Wramner.
*
* 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 | JmsCommon/src/test/java/name/wramner/util/AutoCloserTest.java | erik-wramner/JmsTools | apache-2.0 | 2,497 | 86 | codeparrot/github-code |
2fe6398668bfee0955bae41c0988f9e25cc679f17113dfffd14d67c8e2c24967 | $(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit b... | JavaScript | js/contact_me.js | Lamx/cv | apache-2.0 | 2,861 | 71 | codeparrot/github-code |
62562cf5c8ef9fdbe71bebb134b113cd77265234f8c130ee0a470101bce1945b | package appdevzhang.com.androidvolleydemo.net;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley... | Java | app/src/main/java/appdevzhang/com/androidvolleydemo/net/GsonRequest.java | appdevzhang/AndroidVolleyDemo | apache-2.0 | 1,693 | 52 | codeparrot/github-code |
cebba7190e571259f7dca0584a005b2242dbfb6215b8c17a3ed7bdbe5c2b9368 | /******************************************************************************************************/
/* */
/* Infinidat Ltd. - Proprietary and Confidential Material */
/* ... | Java | entity-manager/src/test/java/org/mestor/em/CriteriaBuilderTest.java | alexradzin/Mestor | apache-2.0 | 18,708 | 512 | codeparrot/github-code |
4bac23eec7c8935df3e5b633142e5435996c551570bc1ffecc0c8e572a5078e7 | #!/bin/bash
# Copyright (c) 2013-2015, Rethink Robotics
# All rights reserved.
# This file is to be used in the *root* of your Catkin workspace.
# This is a convenient script which will set up your ROS environment and
# should be executed with every new instance of a shell in which you plan on
# working with Baxter.
... | Shell | baxter.sh | u3099811/BaxterTictacToe | apache-2.0 | 6,122 | 184 | codeparrot/github-code |
6992c5aa5dfe9536d633887ed5c4f9ed913014d3f191cb99dec0939d6f77da83 | package org.ow2.chameleon.fuchsia.exporter.jsonrpc;
/*
* #%L
* OW2 Chameleon - Fuchsia Exporter JSON-RPC
* %%
* Copyright (C) 2009 - 2014 OW2 Chameleon
* %%
* 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 co... | Java | exporters/json-rpc/src/main/java/org/ow2/chameleon/fuchsia/exporter/jsonrpc/JSONRPCExporter.java | ow2-chameleon/fuchsia | apache-2.0 | 6,699 | 189 | codeparrot/github-code |
c80fcb87ff6299bbcfb26df74b947e7e683e4880a45d151188a9bd4cc343c164 |
"""Resource manager for using the add-apt-repository command (part of the
python-software-properties package).
"""
# Common stdlib imports
import sys
import os
import os.path
import re
import glob
# fix path if necessary (if running from source or running as test)
try:
import engage.utils
except:
sys.exc... | Python | python_pkg/engage/drivers/genforma/add_apt_repository.py | quaddra/engage | apache-2.0 | 5,376 | 161 | codeparrot/github-code |
089376e96a21fcf29826d4dc5c7f43c82785c311cf140887d04e04ddbf5e823f | /*
* Copyright (c) 2015 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | C | vnet/vnet/ethernet/node.c | muharif/vpp | apache-2.0 | 37,450 | 1,168 | codeparrot/github-code |
f3ef937f88249864cc759261d80295f88e98b5e9a7121edf112389a752169ee9 | /*
* Copyright 2012 Roman Kashitsyn
*
* 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 applicabl... | Java | src/main/java/org/rulesdsl/predicates/StatelessSelectors.java | roman-kashitsyn/rules-dsl | apache-2.0 | 1,449 | 57 | codeparrot/github-code |
4cb8159904dddef1bac9c4b1dd2b28eedc130b390a05298e2837485a6e65aaa2 | package gov.va.med.srcalc.web.view.admin;
import static org.junit.Assert.*;
import gov.va.med.srcalc.domain.model.DiscreteNumericalVariable.Category;
import gov.va.med.srcalc.domain.model.MultiSelectOption;
import org.junit.Test;
/**
* Tests the {@link CategoryBuilder} class.
*/
public class CategoryBuilderTest
{
... | Java | srcalc/src/test/java/gov/va/med/srcalc/web/view/admin/CategoryBuilderTest.java | VHAINNOVATIONS/ASRCM | apache-2.0 | 1,758 | 53 | codeparrot/github-code |
dabae2929dd40230b4015fb37dd2096db6ce3f6f00dae2a37a6ced9efb05e230 | package it.unibz.krdb.obda.model.impl;
/*
* #%L
* ontop-obdalib-core
* %%
* Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano
* %%
* 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... | Java | obdalib-core/src/main/java/it/unibz/krdb/obda/model/impl/BooleanOperationPredicateImpl.java | clarkparsia/ontop | apache-2.0 | 1,326 | 47 | codeparrot/github-code |
324bbf0d2831eea2595658fcc0cfa86a3680eb89f5ad2a659b1b931a58df9a29 | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package org.appcelerator.titanium.util;
import android.content.res.Configuration... | Java | android/titanium/src/org/appcelerator/titanium/util/TiOrientationHelper.java | arnaudsj/titanium_mobile | apache-2.0 | 1,249 | 47 | codeparrot/github-code |
ba5125b237ebfbe045c6ec82e6ffb2f673b63130fb751a457b9a6fc98bfe2803 | /**
* SdtncAuthDtoTest.java
* (C) 2013,2015, Hitachi, Ltd.
*/
package org.o3project.mlo.server.rpc.dto;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.o3project.mlo.server.impl.rpc.service.SdtncSerdesImpl;
import org.o3project.mlo.server.impl.rp... | Java | mlo-srv/src/test/java/org/o3project/mlo/server/rpc/dto/SdtncAuthDtoTest.java | o3project/mlo-net | apache-2.0 | 1,920 | 68 | codeparrot/github-code |
3acdb3021ac7afe90b220d46903e765d8a29f1f18dc43e602d4c21552f6873df | /*************************************************************
*
* MathJax/jax/output/HTML-CSS/config.js
*
* Initializes the HTML-CCS OutputJax (the main definition is in
* MathJax/jax/input/HTML-CSS/jax.js, which is loaded when needed).
*
* ---------------------------------------------------------... | JavaScript | slidewiki/libraries/frontend/MathJax/unpacked/jax/output/HTML-CSS/config.js | AKSW/SlideWiki | apache-2.0 | 5,162 | 144 | codeparrot/github-code |
0424e7b1614524eb5aa62ad8fb384784808df9cd4fafc222468e700f9304d2a1 |
/* First created by JCasGen Sat Apr 11 19:49:33 EDT 2015 */
package edu.cmu.lti.oaqa.type.nlp;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apach... | Java | src/main/java/edu/cmu/lti/oaqa/type/nlp/Focus_Type.java | oaqa/baseqa | apache-2.0 | 4,029 | 121 | codeparrot/github-code |
1722df40e1b543f06894fbb8d9f8590cbdb1caf34ff9d9b5eeb9209bcbd2c13d | /**
* Copyright 2013-2019 Gaurav Gupta
*
* 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 | modeler-impl/src/main/java/org/netbeans/modeler/widget/node/vmd/internal/AbstractPNodeWidget.java | jGauravGupta/nbmodeler | apache-2.0 | 16,106 | 509 | codeparrot/github-code |
4854628fe2eac28fb804e44ced51cdfc886449773e737bedeceaf61b5708a7ed | #!/bin/bash
## \cond
#HEADSTART##############################################################
#
#PROJECT: UnifiedTraceAndLogManager
#AUTHOR: Arno-Can Uestuensoez - acue.opensource@gmail.com
#MAINTAINER: Arno-Can Uestuensoez - acue.opensource@gmail.com
#SHORT: utalm-bash
#LICENSE: Apache-2.0 + C... | Shell | src/utalm-bash/src/bin/setversion.sh | ArnoCan/utalm | apache-2.0 | 6,877 | 269 | codeparrot/github-code |
47c0950641c89ec9992d802e88dcd459e0d1bd5bcbbcd52bda31f584f0f2fc55 | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Java | gradle/gradle-2.8/src/language-java/org/gradle/language/java/internal/JavaLanguagePluginServiceRegistry.java | FinishX/coolweather | apache-2.0 | 1,912 | 50 | codeparrot/github-code |
2721318427131a962a9ee9abe59291c9de50757c18c88349b04efee557aaca83 | package com.palantir.atlasdb.todo.generated;
import java.util.Arrays;
import java.util.Collection;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.Optional;
import java.uti... | Java | atlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.java | EvilMcJerkface/atlasdb | apache-2.0 | 31,748 | 744 | codeparrot/github-code |
2f3a112774784ca202c93e2fdd463dd3a04a5a44be27c78bf9b234ef32ce2646 | #
# Copyright 2015-2016 USEF Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | Shell | usef-environment/bin/start-h2-database.sh | FHPproject/FHPUsef | apache-2.0 | 3,436 | 98 | codeparrot/github-code |
929d261af3a23564cc7b2817d9221133c83298dcedf09b2a37739ff9c7a02cf1 | /*
Copyright 2012 Harri Smatt
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 wri... | Java | src/fi/harism/wallpaper/flier/FlierService.java | harism/android_wallpaper_flier | apache-2.0 | 3,883 | 132 | codeparrot/github-code |
2ef8110b5c7f9e4fc2a8bd295859b5b558b1727bef37d4783a47e24f69a1de16 | package com.massrelevance.dropwizard.scala.inject
import javax.ws.rs.QueryParam
import javax.ws.rs.ext.Provider
import com.sun.jersey.api.model.Parameter
import com.sun.jersey.core.spi.component.{ProviderServices, ComponentScope, ComponentContext}
import com.sun.jersey.spi.inject.{Injectable, InjectableProvider}
impor... | Scala | src/main/scala/com/massrelevance/dropwizard/scala/inject/ScalaCollectionsQueryParamInjectableProvider.scala | torbjornvatn/dropwizard-scala | apache-2.0 | 3,970 | 90 | codeparrot/github-code |
3e12352af37ef680acbe83cc10ab7383948ff240063b92180161bcbb8c4eddc5 | //////////////////////////////////////////////////////////////////////////
// Name: plate_detect Header
// Version: 1.2
// Date: 2014-09-28
// MDate: 2015-03-13
// Author: liuruoze
// Copyright: liuruoze
// Reference: Mastering OpenCV with Practical Computer Vision Projects
// Reference: CSDN Bloger ... | C | include/easypr/core/plate_detect.h | wrestle/EasyPR | apache-2.0 | 2,831 | 102 | codeparrot/github-code |
fecf1afcfa17cb9ed0438e828078eabdc6df8a0817ecab3dce3cb565feca4ae9 | /*
* 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 | trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Activator.java | boneman1231/org.apache.felix | apache-2.0 | 5,273 | 153 | codeparrot/github-code |
76b0bd0ee18cc352a361949a8ca6fb4e6308fea7b80f5e850d9bd4c79be15784 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | Java | ui/src/org/pentaho/di/ui/job/entries/job/JobEntryJobDialog.java | pymjer/pentaho-kettle | apache-2.0 | 63,700 | 1,617 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.