code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package lv.bond.science.nnstudio;
import lv.bond.science.nnstudio.ui.errorgraph.ErrorGraphView;
import lv.bond.science.nnstudio.ui.imageloader.ImageLoadView;
import lv.bond.science.nnstudio.ui.netsetup.NetSetupView;
import lv.bond.science.nnstudio.ui.testgraph.TestGraphView;
import lv.bond.science.nnstudio.ui.testresu... | Java |
package lv.bond.science.nnstudio;
import org.eclipse.core.runtime.IPlatformRunnable;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
/**
* This class controls all aspects of the application's execution
*/
public class NNStudioApplication implements IPlatformRunnable {
/* (non-Javadoc)
... | Java |
package lv.bond.science.nnstudio.core;
public class NetworkParams {
private double learnRate = 0.0;
private double sigmoidStep = 0.0;
private double learnRateDecrease = 0.0;
private int inputDimX = 0;
private int inputDimY = 0;
private int hiddenDim = 0;
private int outputDim = 0;
private int e... | Java |
package lv.bond.science.nnstudio.core;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
import lv.bond.ann.mlp.IActFunction;
import lv.bond.ann.mlp.IErrorCalculator;
imp... | Java |
package lv.bond.science.nnstudio.ui.testresult;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.ec... | Java |
package lv.bond.science.nnstudio.ui.testresult;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
public class TestResultLabelProvider extends LabelProvider implements ITableLabelProvider {
public Image getColumnImage... | Java |
package lv.bond.science.nnstudio.ui.testresult;
import java.util.ArrayList;
import java.util.List;
public class TestResult {
private int nearestResultingVectorId;
private int targetVectorId;
public TestResult(int nearestResultingVectorId,
int targetVectorId)
{
this.nearestResultingVectorI... | Java |
package lv.bond.science.nnstudio.ui.netsetup;
import lv.bond.science.nnstudio.core.MlpModel;
import lv.bond.science.nnstudio.core.NetworkParams;
import lv.bond.science.nnstudio.model.ImagesBean;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.ImageData;
impo... | Java |
package lv.bond.science.nnstudio.ui.imageloader;
import lv.bond.eclipse.imagecanvas.SWTImageCanvas;
import lv.bond.science.nnstudio.model.ImagesBean;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org... | Java |
package lv.bond.science.nnstudio.ui.errorgraph;
import java.awt.Dimension;
import java.awt.Font;
import java.util.Iterator;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import lv.bond.science.nnstudio.model.ImagesBean;
import org.eclipse.swt.SWT;
import org.eclipse.swt.awt.SWT_AWT;
import... | Java |
package lv.bond.science.nnstudio.ui.testgraph;
import java.awt.Dimension;
import java.awt.Font;
import java.util.Iterator;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import org.eclipse.swt.SWT;
import org.eclipse.swt.awt.SWT_AWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.... | Java |
package lv.bond.science.nnstudio;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction... | Java |
package lv.bond.science.nnstudio;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.Work... | Java |
package lv.bond.science.nnstudio.model;
public class ImagesBean {
private static String fileNameTrainData = "";
private static String fileNameTrainTargetData = "";
private static String fileNameTestData = "";
private static String fileNameTestTargetData = "";
private static ImagesBean instance = null... | Java |
package lv.bond.eclipse.imagecanvas;
import java.awt.geom.AffineTransform;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ControlAdapter;
import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.PaintListener;
import org.eclipse.swt.events.Selectio... | Java |
/*******************************************************************************
* Copyright (c) 2004 Chengdong Li : cdli@ccs.uky.edu
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is a... | Java |
package info.bond.labs.geftest1;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import java.util.List;
/**
* @model abstract="true"
*/
public interface Shape extends EObject {
/**
* @model
*/
String getName();
/**
* Sets the value of the '{@link info.bon... | Java |
package info.bond.labs.geftest1;
/**
* @model
*/
public interface RectangularShape extends Shape {
}
| Java |
package info.bond.labs.geftest1;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* @model
*/
public interface ShapesDiagram extends EObject {
/**
* @model containment="true"
*/
EList<Shape> getShapes();
}
| Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1.impl;
import info.bond.labs.geftest1.Connection;
import info.bond.labs.geftest1.Geftest1Package;
import info.bond.labs.geftest1.Shape;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1.impl;
import info.bond.labs.geftest1.Connection;
import info.bond.labs.geftest1.EllipticalShape;
import info.bond.labs.geftest1.Geftest1Factory;
import info.bond.labs.geftest1.Geftest1Package;
import info.bond.labs.geftest1.R... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1.impl;
import info.bond.labs.geftest1.Connection;
import info.bond.labs.geftest1.Geftest1Package;
import info.bond.labs.geftest1.Shape;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
impor... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1.impl;
import info.bond.labs.geftest1.Geftest1Package;
import info.bond.labs.geftest1.Shape;
import info.bond.labs.geftest1.ShapesDiagram;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the m... | Java |
package info.bond.labs.geftest1;
/**
* @model
*/
public interface EllipticalShape extends Shape {
}
| Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1.util;
import info.bond.labs.geftest1.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.e... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bond.labs.geftest1.util;
import info.bond.labs.geftest1.*;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the model's inheritance... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors f... | Java |
package info.bondtnt.labs.model.research;
import org.eclipse.emf.ecore.EObject;
/**
* @author <a href="mailto:bondtnt@gmail.com">Andrey Bondarenko</a>
* @model
*/
public interface NamedDoubleParameter extends EObject {
/**
* @model
*/
public String getName();
/**
* Sets the value of th... | Java |
package info.bondtnt.labs.model.research;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* @author <a href="mailto:bondtnt@gmail.com">Andrey Bondarenko</a>
* @model
*/
public interface BoundedTypedParameter<Type> extends EObject {
/**
* @model changeable="false... | Java |
package info.bondtnt.labs.model.research;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* @author <a href="mailto:bondtnt@gmail.com">Andrey Bondarenko</a>
* @model
*/
public interface ParametersList<Type> extends EObject {
/**
* @model containment=true
*/
... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.impl;
import info.bondtnt.labs.model.research.ParametersList;
import info.bondtnt.labs.model.research.ResearchPackage;
import java.util.Collection;
import org.eclipse.emf.common.util.EList;
import org.eclipse.e... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.impl;
import info.bondtnt.labs.model.research.NamedDoubleParameter;
import info.bondtnt.labs.model.research.ResearchPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.impl;
import info.bondtnt.labs.model.research.BoundedDoubleParameter;
import info.bondtnt.labs.model.research.ResearchPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.impl;
import info.bondtnt.labs.model.research.BoundedDoubleParameter;
import info.bondtnt.labs.model.research.BoundedTypedParameter;
import info.bondtnt.labs.model.research.NamedDoubleParameter;
import info.bondtnt.la... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.impl;
import info.bondtnt.labs.model.research.BoundedTypedParameter;
import info.bondtnt.labs.model.research.ResearchPackage;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.E... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.util;
import info.bondtnt.labs.model.research.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import... | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package info.bondtnt.labs.model.research.util;
import info.bondtnt.labs.model.research.*;
import java.util.List;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* The <b>Switch</b> for the m... | Java |
package info.bondtnt.labs.model.research;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* @author <a href="mailto:bondtnt@gmail.com">Andrey Bondarenko</a>
* @model
*/
public interface BoundedDoubleParameter extends EObject {
/**
* @model changeable="false"
... | Java |
package info.bond.rp.experiments;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "info.bond.r... | Java |
package info.bond.rp.experiments;
public class SpaceCoordinatesGenerator {
private DimensionSizeIndexPair[] dimensions;
/**
* @param dimensionsSizesArray - array contains lengths of every
* space dimension. E.g. if we have 3 parameters (dimensions) and
* each of dimensions (parameters) can be e... | Java |
package info.bond.rp.experiments;
import info.bondtnt.labs.model.research.BoundedDoubleParameter;
import info.bondtnt.labs.model.research.NamedDoubleParameter;
import info.bondtnt.labs.model.research.ParametersList;
import info.bondtnt.labs.model.research.ResearchFactory;
import java.util.ArrayList;
import ja... | Java |
package info.bond.rp.experiments;
/**
* @author Andrey Bondarenko
*
* Pair of values needed for generator - maximum possible index for dimension
* and current dimension index parameter.
*/
public class DimensionSizeIndexPair {
private Integer dimensionParameterIndex;
private Integer maxDimension... | Java |
package info.bond.rp.experiments;
import info.bondtnt.labs.model.research.BoundedDoubleParameter;
import info.bondtnt.labs.model.research.NamedDoubleParameter;
import info.bondtnt.labs.model.research.ParametersList;
import java.util.List;
public interface ExperimentsDataGenerator {
void add(BoundedDouble... | Java |
package panda_codelab_soln;
public class ConstantSumPairInArray {
public static boolean existPairWithSum(int arr[], int sum) {
if (arr == null) {
return false;
}
int begin = 0;
int end = arr.length - 1;
while (begin != end) {
int current_sum = arr[begin] + arr[end];
if (current_sum < sum) {
beg... | Java |
package panda_codelab_soln;
public class MergeSort {
public static int[] sort(int[] arr) {
if (arr == null) {
return null;
}
if (arr.length < 2) {
return arr;
}
int middle = arr.length / 2;
int[] left = new int[middle];
System.arraycopy(arr, 0, left, 0, middle);
int[] sorted_left = sort(left);
... | Java |
package panda_codelab_soln;
public class OddBeforeEvenInArrary {
public static void reorder(int[] arr) {
assert(arr != null);
int open_slot = 0;
int next = 0;
while (next < arr.length) {
if (arr[next] % 2 == 1) {
swap(arr, open_slot++, next);
}
next++;
}
}
private static void swap(int[] arr... | Java |
package panda_codelab;
/**
* Given a _sorted_ array of ints, and a value, _sum_, find a pair of ints in
* array that sum up to this number. Returns true if exists such pair, false
* otherwise.
*
* Running time requirements, O(n).
*/
public class ConstantSumPairInArray {
// 1. Test if there is a pair of ints wi... | Java |
package panda_codelab;
public class MergeSort {
public static int[] sort(int[] arr) {
return null;
}
}
| Java |
package panda_codelab;
/**
* Given an array of ints, reorder its elements such that odd number are in
* front of even numbers.
*
* Running time requirement: O(n).
*/
public class OddBeforeEvenInArrary {
public static void reorder(int[] arr) {
}
}
| Java |
package panda_codelab_test;
import static org.junit.Assert.*;
import org.junit.Test;
import panda_codelab_soln.ConstantSumPairInArray;
public class ConstantSumPairInArrayTest {
@Test
public void TestWithSingleElemArray() {
int sum = 1;
int[] arr = { sum + sum };
assertFalse(ConstantSumPairInArray.existPairWi... | Java |
package panda_codelab_test;
import static org.junit.Assert.*;
import org.junit.Test;
// import classes to be tested.
import panda_codelab_soln.MergeSort;
//import panda_codelab.MergeSort;
public class MergeSortTest {
@Test
public void NullInputIntArr() {
int[] arr = null;
int[] result = MergeSort.sort(arr);
... | Java |
package panda_codelab_test;
import static org.junit.Assert.*;
import org.junit.Test;
import panda_codelab_soln.OddBeforeEvenInArrary;
public class OddBeforeEvenInArraryTest {
// helper function that for a given array of ints, it returns true if odd
// numbers are before even numbers, false otherwise.
private stat... | Java |
package com.jincheng.activity;
import android.os.Bundle;
import android.preference.PreferenceActivity;
public class SettingActivity extends PreferenceActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.setting);
... | Java |
package com.jincheng.activity;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.Menu;
import android.view.MenuItem;
public class BaseActivity extends Activity {
... | Java |
package com.jincheng.parser;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.xmlpull.v1.XmlPullParser;
import com.jincheng.model.Team;
import android.util.Xml;
public class XMLParser {
public static List<Team> XML2Object(... | Java |
package com.jincheng.utils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClie... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2010 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 i... | Java |
package com.google.android.apps.mytracks.services.sensors;
import com.google.android.apps.mytracks.Constants;
import com.google.android.apps.mytracks.services.sensors.ant.AntDirectSensorManager;
import com.google.android.apps.mytracks.services.sensors.ant.AntSrmBridgeSensorManager;
import com.google.android.maps.mytra... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
package com.google.android.apps.mytracks.services.sensors;
import java.util.Arrays;
import com.google.android.apps.mytracks.content.Sensor;
import junit.framework.TestCase;
public class PolarMessageParserTest extends TestCase {
PolarMessageParser parser = new PolarMessageParser();
// A complete and valid Polar... | Java |
package com.google.android.apps.mytracks.services.sensors;
import com.google.android.apps.mytracks.content.Sensor;
import junit.framework.TestCase;
public class ZephyrMessageParserTest extends TestCase {
ZephyrMessageParser parser = new ZephyrMessageParser();
public void testIsValid() {
byte[] smallBuf = n... | Java |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.google.android.apps.mytracks.services;
import android.app.Notification;
import android.app.Service;
import android.test.ServiceTestCase;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
*... | Java |
/*
* Copyright 2010 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 i... | Java |
/*
* Copyright 2010 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 i... | Java |
/**
*
*/
package com.google.android.apps.mytracks.content;
import com.google.android.apps.mytracks.content.SearchEngine.ScoredResult;
import com.google.android.apps.mytracks.content.SearchEngine.SearchQuery;
import com.google.android.apps.mytracks.services.TrackRecordingServiceTest.MockContext;
import com.google.and... | Java |
/*
* Copyright 2011 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 i... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
// Copyright 2009 Google Inc. All Rights Reserved.
package com.google.android.apps.mytracks.stats;
import com.google.android.apps.mytracks.Constants;
import android.location.Location;
import junit.framework.TestCase;
/**
* Test the the function of the TripStatisticsBuilder class.
*
* @author Sandor Dornbush
*/... | Java |
/*
* Copyright 2009 Google Inc. All Rights Reserved.
*/
package com.google.android.apps.mytracks.stats;
import junit.framework.TestCase;
/**
* Test for the DoubleBuffer class.
*
* @author Sandor Dornbush
*/
public class DoubleBufferTest extends TestCase {
/**
* Tests that the constructor leaves the buffe... | Java |
/**
* Copyright 2009 Google Inc. All Rights Reserved.
*/
package com.google.android.apps.mytracks.stats;
import junit.framework.TestCase;
import java.util.Random;
/**
* This class test the ExtremityMonitor class.
*
* @author Sandor Dornbush
*/
public class ExtremityMonitorTest extends TestCase {
public Extre... | Java |
/*
* Copyright 2010 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 i... | Java |
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
// Copyright 2010 Google Inc. All Rights Reserved.
package com.google.android.apps.mytracks.testing;
import com.google.android.apps.mytracks.content.MyTracksProviderUtils;
import com.google.android.apps.mytracks.content.MyTracksProviderUtils.Factory;
import android.content.Context;
/**
* A fake factory for {@link ... | Java |
/*
* Copyright 2010 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 i... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | Java |
/*
* Copyright 2009 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 i... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.