repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
pmd | pmd-master/pmd-julia/src/main/java/net/sourceforge/pmd/lang/julia/cpd/JuliaTokenizer.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.julia.cpd;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Lexer;
import net.sourceforge.pmd.cpd.impl.AntlrTokenizer;
import net.sourceforge.pmd.lang.julia.ast.JuliaLexer;
/**... | 530 | 23.136364 | 79 | java |
null | edge-approx-main/src/test/java/edu/umn/dcsg/AppTest.java | package edu.umn.dcsg;
import edu.umn.dcsg.DeviceSimulator;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.TraceInfo;
import edu.umn.dcsg.common.StreamTuple;
import edu.umn.dcsg.client.EdgeSimulator;
import edu.umn.dcsg.server.CloudSimulator;
import edu.umn.dc... | 2,026 | 32.229508 | 89 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/DeviceSimulator.java | package edu.umn.dcsg;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.TraceInfo;
import edu.umn.dcsg.common.StreamTuple;
import edu.umn.dcsg.client.EdgeSimulator;
import edu.umn.dcsg.server.CloudSimulator;
import edu.umn.dcsg.server.SimulationResults;
import ... | 2,555 | 26.483871 | 83 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/DataFileIOMgr.java | package edu.umn.dcsg;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.StreamTuple;
import edu.umn.dcsg.common.TraceInfo;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import... | 4,301 | 27.872483 | 87 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/TraceInfo.java | package edu.umn.dcsg.common;
public class TraceInfo
{
public final static TraceInfo MVNORM = new TraceInfo(
"MVNORM",
"./data/mvnorm.csv",
2 * 60, // 2 minutes
60 / 2, // Run against 1 hour of data
2, 0, 1, // Specific to the input file
-1 // No additional... | 1,630 | 30.365385 | 78 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/RegModel.java | package edu.umn.dcsg.common;
import org.apache.commons.math3.stat.regression.OLSMultipleLinearRegression;
public class RegModel extends OLSMultipleLinearRegression
{
public double getSanatizedRSquared()
{
double r2 = calculateRSquared();
final double yvar = calculateYVariance();
if(Dou... | 415 | 23.470588 | 76 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/StreamTuple.java | package edu.umn.dcsg.common;
// Class that represents a stream tuple
// (as opposed to a Storm tuple object)
public class StreamTuple
{
public Integer mStreamId;
public Double mValue;
public Long mTime;
public String mMetadata;
public StreamTuple(final Integer streamId, final Double value... | 1,113 | 23.217391 | 72 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/ModelInfo.java | package edu.umn.dcsg.common;
//import clojure.core.protocols__init;
import org.apache.commons.math3.linear.RealVector;
// Information related to an imputation module that needs to be
// sent over the network.
public class ModelInfo
{
protected final String DELIMITER = ":";
protected Integer mPredictorId;
... | 2,694 | 22.849558 | 82 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/GenericPayload.java | package edu.umn.dcsg.common;
import org.apache.storm.tuple.Fields;
import org.apache.storm.tuple.Tuple;
import org.apache.storm.tuple.Values;
// This is a generic class that represents a payload that gets sent
// over the network. We derive from the org.apache.storm.tuple.Values
// class, which allows us to easily se... | 3,801 | 28.022901 | 81 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/SimulationHandler.java | package edu.umn.dcsg.common;
public interface SimulationHandler
{
public void handleEvent(final GenericPayload payload);
} | 127 | 20.333333 | 58 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/common/Config.java | package edu.umn.dcsg.common;
// Note: This design is rather rigid, since there is no runtime configuration.
// A future enhancement would be to configure behavior dynamically based on an
// input file or something similar.
public class Config
{
/// Strategies
public static final int SRS_STRATEGY ... | 2,235 | 30.492958 | 78 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/TTLDataCache.java | package edu.umn.dcsg.client;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.StreamTuple;
import edu.umn.dcsg.common.RegModel;
import java.lang.IllegalArgumentException;
import java.lang.StringBuilder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.H... | 17,147 | 29.243386 | 126 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/SampleSizeCalculator.java | package edu.umn.dcsg.client;
import java.util.Arrays;
import java.util.Random;
public class SampleSizeCalculator
{
public static int[] getProportionalAllocation(final double samplesAllowed, double[] popSizes)
{
final double totalSamples = (double) Arrays.stream(popSizes).sum();
int sampleSizes... | 4,821 | 30.933775 | 104 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/EdgeBolt.java | package edu.umn.dcsg.client;
import edu.umn.dcsg.common.GenericPayload;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.IRichBolt;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.tuple.Fields;
import org.apache... | 2,029 | 22.882353 | 85 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/OptimizationParms.java | package edu.umn.dcsg.client;
import java.util.Arrays;
public class OptimizationParms
{
public final Integer mNumStreams;
public final Double mSamplesAllowed;
public long[] mStrataSizes;
public int[] mPredictorStream;
public double[] mPredictorDependence;
pub... | 2,870 | 29.870968 | 69 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/AbstractEdge.java | package edu.umn.dcsg.client;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.ModelInfo;
import edu.umn.dcsg.common.RegModel;
import edu.umn.dcsg.common.StreamTuple;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.... | 8,809 | 35.556017 | 125 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/DependenceEstimator.java | package edu.umn.dcsg.client;
import edu.umn.dcsg.common.Config;
import org.apache.commons.math3.stat.correlation.PearsonsCorrelation;
import org.apache.commons.math3.stat.correlation.SpearmansCorrelation;
import org.apache.commons.math3.stat.correlation.KendallsCorrelation;
public class DependenceEstimator
{
pub... | 3,805 | 29.943089 | 109 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/OptimizationSolver.java | package edu.umn.dcsg.client;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
public class OptimizationSolver
{
protected OptimizationParms mParms;
public OptimizationSolver(OptimizationParms parms)
{
mParms = parms;
}
public double[] compute(fin... | 2,567 | 33.702703 | 101 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/LinearCostFunction.java | package edu.umn.dcsg.client;
public class LinearCostFunction
{
// Cost function for evaulation based solely on sample size
public static LinearCostFunction UNIT_COST = new LinearCostFunction(0, 1);
protected double mBaseCost;
protected double mCostPerSample;
public LinearCostFunction(double... | 698 | 20.84375 | 78 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/client/EdgeSimulator.java | package edu.umn.dcsg.client;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.SimulationHandler;
public class EdgeSimulator extends AbstractEdge implements SimulationHandler
{
private static final long serialVersionUID = 1L;
protected SimulationHandler mUpstreamHandler;
public EdgeS... | 943 | 22.02439 | 76 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/server/CloudAggregationBolt.java | package edu.umn.dcsg.server;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.StreamTuple;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.IRichBolt;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apac... | 1,340 | 21.728814 | 85 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/server/CloudSimulator.java | package edu.umn.dcsg.server;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.ModelInfo;
import edu.umn.dcsg.common.SimulationHandler;
import edu.umn.dcsg.common.StreamTuple;
import java.util.List;
import java.util.Map;
import org.apache.commons.math3.stat.desc... | 3,718 | 31.060345 | 95 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/server/SimulationResults.java | package edu.umn.dcsg.server;
import java.lang.Exception;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;
import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
import org.apache.commons.math3.stat.descriptive.rank.Percentile;
import org.apache.commons.ma... | 9,619 | 29.251572 | 77 | java |
null | edge-approx-main/src/main/java/edu/umn/dcsg/server/AbstractCloud.java | package edu.umn.dcsg.server;
import edu.umn.dcsg.client.TTLDataCache;
import edu.umn.dcsg.common.Config;
import edu.umn.dcsg.common.GenericPayload;
import edu.umn.dcsg.common.ModelInfo;
import edu.umn.dcsg.common.RegModel;
import edu.umn.dcsg.common.StreamTuple;
import java.util.Arrays;
import java.util.ArrayList;
i... | 6,849 | 31.159624 | 108 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/MainActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import java.io.BufferedReader;
import java.io.InputStreamReader;
imp... | 5,576 | 28.046875 | 94 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/WifiReceiver.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import android.content.BroadcastReceiver;
import android.content.Con... | 2,537 | 25.4375 | 71 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/WpaWebViewActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import android.app.Activity;
import android.app.AlertDialog;
import ... | 3,774 | 24.680272 | 71 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/WpaCommandListActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import java.util.ArrayList;
import java.util.Scanner;
import java.io... | 3,264 | 27.893805 | 107 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/WpaCredEditActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import android.app.Activity;
import android.content.Intent;
import a... | 1,413 | 24.25 | 71 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/CommandListActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import java.util.ArrayList;
import java.util.Scanner;
import java.io... | 3,477 | 25.549618 | 94 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/DisplayMessageActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import android.app.Activity;
import android.os.Bundle;
import androi... | 1,310 | 25.22 | 71 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/WpaCredActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import java.util.ArrayList;
import java.util.ListIterator;
import ja... | 6,887 | 25.090909 | 107 | java |
hostap | hostap-master/wpadebug/src/w1/fi/wpadebug/WpaNfcActivity.java | /*
* wpadebug - wpa_supplicant and Wi-Fi debugging app for Android
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
package w1.fi.wpadebug;
import java.io.BufferedReader;
import java.io.InputStreamReader;
imp... | 3,813 | 27.893939 | 107 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/PolicyUtils.java | /*
* Copyright (c) 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/license... | 38,053 | 43.611958 | 120 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/Utils.java | /*
* Copyright (c) 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/license... | 5,212 | 38.793893 | 122 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/BasicPolicyHelper.java | /*
* Copyright (c) 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/license... | 58,849 | 52.941338 | 126 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/PolicyBuilder.java | /*
* Copyright (c) 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/license... | 5,347 | 31.216867 | 104 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/PolicySetElementDTO.java | /*
* Copyright (c) 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/licenses... | 3,411 | 25.449612 | 101 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AttributeAssignmentElementDTO.java | /*
* Copyright (c) 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/licenses... | 2,188 | 24.16092 | 78 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/RuleElementDTO.java | /*
* Copyright (c) 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/licenses... | 2,496 | 25.849462 | 101 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/RequestElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,915 | 26.371429 | 101 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AttributeElementDTO.java | /*
* Copyright (c) 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/licenses... | 2,045 | 23.070588 | 69 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AllOfElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,247 | 28.714286 | 87 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/TargetElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,247 | 28.023256 | 86 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/ObligationElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,988 | 24.177215 | 101 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AttributesElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,499 | 27.846154 | 98 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AttributeSelectorDTO.java | /*
* Copyright (c) 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/licenses... | 2,446 | 27.453488 | 100 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/ConditionElementDT0.java | /*
* Copyright (c) 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/licenses... | 2,396 | 25.932584 | 96 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/BasicRuleDTO.java | /*
* Copyright (c) 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/licenses... | 6,432 | 22.738007 | 78 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AnyOfElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,246 | 28 | 86 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/FunctionElementDTO.java | /*
* Copyright (c) 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/licenses... | 950 | 25.416667 | 69 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/PolicyElementDTO.java | /*
* Copyright (c) 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/licenses... | 2,992 | 26.971963 | 101 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/BasicTargetDTO.java | /*
* Copyright (c) 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/licenses... | 4,742 | 22.954545 | 92 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AttributeDesignatorDTO.java | /*
* Copyright (c) 2005-2010, 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.o... | 2,579 | 21.241379 | 80 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/ApplyElementDTO.java | /*
* Copyright (c) 2005-2010, 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.o... | 4,616 | 27.85625 | 113 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/BasicPolicyDTO.java | /*
* Copyright (c) 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/licenses... | 2,095 | 22.818182 | 78 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/AttributeValueElementDTO.java | /*
* Copyright (c) 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/licenses... | 1,869 | 24.27027 | 69 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/policy/dto/MatchElementDTO.java | /*
* Copyright (c) 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/licenses... | 2,584 | 25.927083 | 96 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/exception/PolicyBuilderException.java | /*
* Copyright (c) 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/license... | 952 | 27.029412 | 70 | java |
balana | balana-master/modules/balana-utils/src/main/java/org/wso2/balana/utils/Constants/PolicyConstants.java | /*
* Copyright (c) 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/license... | 15,300 | 40.920548 | 145 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample-web-service/src/main/java/org/wso2/balana/balanasamples/RequestObject.java | package org.wso2.balana.balanasamples;
/**
* This is request object to generate XACML Request for KMarket sample.
* @see <a href="https://github.com/wso2/balana/tree/master/modules/balana-samples/kmarket-trading-sample">KMarket sample</a>.
* */
public class RequestObject {
/**
* Example : bob, alice, peter... | 985 | 27.171429 | 127 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample-web-service/src/main/java/org/wso2/balana/balanasamples/SampleAttributeFinderModule.java | /*
* Copyright (c) 2019, 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/li... | 3,555 | 33.192308 | 106 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample-web-service/src/main/java/org/wso2/balana/balanasamples/PDPController.java | /*
* Copyright (c) 2019, 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/li... | 3,305 | 41.935065 | 127 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample-web-service/src/main/java/org/wso2/balana/balanasamples/ResponseObject.java | package org.wso2.balana.balanasamples;
/**
* This is response object to map XACML Response for client users.
* */
public class ResponseObject {
/**
* Generic message for the client.
* Example : "Bob is NOT authorized to perform this purchase."
* */
private String message;
public ResponseOb... | 449 | 22.684211 | 66 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample-web-service/src/main/java/org/wso2/balana/balanasamples/Utilities.java | /*
* Copyright (c) 2019, 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/li... | 7,332 | 42.390533 | 143 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample-web-service/src/main/java/org/wso2/balana/balanasamples/KmarketTradingSampleWebServiceApplication.java | /*
* Copyright (c) 2019, 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/li... | 1,049 | 35.206897 | 85 | java |
balana | balana-master/modules/balana-samples/hierarchical-resource/src/main/java/org/wso2/balana/samples/hierarchical/resource/Main.java | /*
* Copyright (c) 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/licenses... | 9,892 | 39.215447 | 143 | java |
balana | balana-master/modules/balana-samples/hierarchical-resource/src/main/java/org/wso2/balana/samples/hierarchical/resource/HierarchicalResourceFinder.java | /*
* Copyright (c) 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/licenses... | 3,824 | 37.25 | 123 | java |
balana | balana-master/modules/balana-samples/hierarchical-resource/src/main/java/org/wso2/balana/samples/hierarchical/resource/SampleAttributeFinderModule.java | /*
* Copyright (c) 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/licenses... | 3,348 | 30.59434 | 106 | java |
balana | balana-master/modules/balana-samples/custom-combining-algo/src/main/java/org/wso2/balana/samples/custom/algo/Main.java | /*
* Copyright (c) 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/licenses... | 6,498 | 37.005848 | 143 | java |
balana | balana-master/modules/balana-samples/custom-combining-algo/src/main/java/org/wso2/balana/samples/custom/algo/HighestEffectRuleAlg.java | /*
* Copyright (c) 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/licenses... | 2,843 | 31.689655 | 101 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample/src/main/java/org/wso2/balana/samples/kmarket/trading/SampleAttributeFinderModule.java | /*
* Copyright (c) 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/licenses... | 3,539 | 31.777778 | 106 | java |
balana | balana-master/modules/balana-samples/kmarket-trading-sample/src/main/java/org/wso2/balana/samples/kmarket/trading/KMarketAccessControl.java | /*
* Copyright (c) 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/licenses... | 10,490 | 38.889734 | 143 | java |
balana | balana-master/modules/balana-samples/web-page-image-filtering/src/main/java/org/wso2/balana/samples/image/filtering/SampleAttributeFinderModule.java | /*
* Copyright (c) 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/licenses... | 3,366 | 30.764151 | 106 | java |
balana | balana-master/modules/balana-samples/web-page-image-filtering/src/main/java/org/wso2/balana/samples/image/filtering/ImageFilter.java | /*
* Copyright (c) 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/licenses... | 12,084 | 45.841085 | 143 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/BalanaTest.java |
/*
* @(#)BalanaTest.java
*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright not... | 2,749 | 33.375 | 78 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/TestUtil.java | /*
* @(#)TestUtil.java
*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright notice... | 14,063 | 37.321526 | 106 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/TestResourceFinderModule.java |
/*
* @(#)TestResourceFinderModule.java
*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above... | 6,110 | 34.52907 | 79 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/TestConstants.java | /*
* Copyright (c) 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/... | 1,435 | 33.190476 | 100 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/TestAttributeFinderModule.java |
/*
* @(#)TestAttributeFinderModule.java
*
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the abov... | 6,310 | 34.061111 | 97 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/BaseTestCase.java | /*
* Copyright (c) WSO2 Inc. (http://www.wso2.org) 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... | 2,267 | 36.180328 | 87 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/conformance/ConformanceTestV2.java | /*
* Copyright (c) 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/... | 18,065 | 41.013953 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/conformance/ConformanceTestV3.java | /*
* Copyright (c) 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/... | 5,503 | 35.210526 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/basic/TestMultipleRequestV3.java | /*
* Copyright (c) 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/... | 4,804 | 34.858209 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/basic/TestAlgorithmsV3.java | /*
* Copyright (c) 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/... | 6,745 | 36.687151 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/basic/TestXPathV3.java | /*
* Copyright (c) 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/... | 11,303 | 37.580205 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/basic/BasicTestV3.java | /*
* Copyright (c) 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/... | 11,764 | 38.216667 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/basic/TestFunctionV3.java | /*
* Copyright (c) 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/... | 11,781 | 38.013245 | 110 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/advance/XACML3HigherOrderFunctionTest.java | /*
* Copyright (c) 2019, 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.apac... | 9,154 | 40.053812 | 100 | java |
balana | balana-master/modules/balana-core/src/test/java/org/wso2/balana/advance/AdvanceTestV3.java | /*
* Copyright (c) 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/... | 6,496 | 37.217647 | 110 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/AbstractPolicy.java | /*
* @(#)AbstractPolicy.java
*
* Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyr... | 24,528 | 35.83033 | 109 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/Rule.java | /*
* @(#)Rule.java
*
* Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright notic... | 21,124 | 39.391969 | 105 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/XACMLConstants.java | /*
* Copyright (c) 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/licenses... | 4,571 | 32.617647 | 113 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/VersionConstraints.java | /*
* @(#)VersionConstraints.java
*
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyri... | 8,511 | 36.497797 | 100 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/ConfigurationStore.java | /*
* @(#)ConfigurationStore.java
*
* Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above c... | 39,309 | 38.58711 | 105 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/TargetFactory.java | /*
* Copyright (c) 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/licenses... | 2,058 | 29.279412 | 97 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/PolicySet.java | /*
* @(#)PolicySet.java
*
* Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright ... | 18,734 | 43.820574 | 108 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/UnknownIdentifierException.java | /*
* @(#)UnknownIdentifierException.java
*
* Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the... | 2,458 | 37.421875 | 99 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/ParsingException.java | /*
* @(#)ParsingException.java
*
* Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above cop... | 3,537 | 38.752809 | 99 | java |
balana | balana-master/modules/balana-core/src/main/java/org/wso2/balana/PDP.java | /*
* @(#)PDP.java
*
* Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright notice... | 16,496 | 43.227882 | 114 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.