index
int64
0
0
repo_id
stringlengths
9
205
file_path
stringlengths
31
246
content
stringlengths
1
12.2M
__index_level_0__
int64
0
10k
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/Node.java
/* * 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 ...
9,500
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/FieldIn.java
/* * 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 ...
9,501
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/Group.java
/* * 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 ...
9,502
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/FieldOut.java
/* * 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 ...
9,503
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/ServiceWorkFlow.java
/* * 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 ...
9,504
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/Fields.java
/* * 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 ...
9,505
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/Connection.java
/* * 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 ...
9,506
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/workflow/VisTrailJson.java
/* * 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 ...
9,507
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/ClimateServiceController.java
/* * 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 ...
9,508
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/DatasetController.java
/* * 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 ...
9,509
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/ServiceConfigurationItemController.java
/* * 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 ...
9,510
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/ServiceExecutionLogController.java
/* * 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 ...
9,511
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/DatasetLogController.java
/* * 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 ...
9,512
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/ServiceConfigurationController.java
/* * 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 ...
9,513
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/ConferencePublicationController.java
/* * 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 ...
9,514
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/JournalPublicationController.java
/* * 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 ...
9,515
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/BookChapterPublicationController.java
/* * 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 ...
9,516
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/ParameterController.java
/* * 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 ...
9,517
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/InstrumentController.java
/* * 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 ...
9,518
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/WorkflowController.java
/* * 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 ...
9,519
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/UserController.java
/* * 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 ...
9,520
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/BookPublicationController.java
/* * 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 ...
9,521
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/app/controllers/BugReportController.java
/* * 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 ...
9,522
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/BookChapterPublicationTest.java
import static org.junit.Assert.*; import models.BookChapterPublication; import models.Publication; import models.User; import org.junit.Before; import org.junit.Test; public class BookChapterPublicationTest { private static String TEST_BOOK_NAME = "test_bookName"; private static String TEST_EDITOR_NAME = "test_ed...
9,523
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/DatasetTest.java
import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Date; import java.util.List; import models.ClimateService; import models.ConferencePublication; import models.Dataset; import models.Instrument; import models.User; import org.junit.Before; import org.junit.Test; public class DatasetTes...
9,524
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/BugReportTest.java
import static org.junit.Assert.*; import java.util.Date; import models.BugReport; import models.ClimateService; import models.User; import org.junit.Before; import org.junit.Test; public class BugReportTest { private static long TEST_ID = 0; private static String TEST_TITLE = "test_title"; private static Strin...
9,525
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/DatasetEntryTest.java
import static org.junit.Assert.*; import java.util.Date; import models.ConferencePublication; import models.Dataset; import models.DatasetEntry; import models.User; import org.junit.Before; import org.junit.Test; public class DatasetEntryTest { private static long TEST_ID = 0; private static String TEST_VERSION...
9,526
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ServiceEntryTest.java
import static org.junit.Assert.*; import java.util.Date; import models.ClimateService; import models.Parameter; import models.ServiceConfiguration; import models.ServiceConfigurationItem; import models.ServiceEntry; import models.User; import org.junit.Before; import org.junit.Test; public class ServiceEntryTest {...
9,527
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/UserTest.java
import static org.junit.Assert.*; import java.util.Date; import models.ClimateService; import models.ServiceConfiguration; import models.ServiceExecutionLog; import models.User; import org.junit.Before; import org.junit.Test; public class UserTest { private static long TEST_ID = 0; private static String USER_NA...
9,528
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/DatasetLogTest.java
import static org.junit.Assert.*; import models.Dataset; import models.DatasetLog; import models.ServiceExecutionLog; import org.junit.Before; import org.junit.Test; public class DatasetLogTest { private static long TEST_ID = 0; private static ServiceExecutionLog serviceExecutionLog; private static Dataset TEST_D...
9,529
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ServiceExecutionLogTest.java
import static org.junit.Assert.*; import java.util.Date; import models.ClimateService; import models.Dataset; import models.DatasetLog; import models.ServiceConfiguration; import models.ServiceExecutionLog; import models.User; import org.junit.Before; import org.junit.Test; public class ServiceExecutionLogTest { ...
9,530
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/PublicationTest.java
import static org.junit.Assert.*; import java.sql.Date; import models.BookChapterPublication; import models.Publication; import models.User; import org.junit.Before; import org.junit.Test; public class PublicationTest { private static String TEST_PAPER_TITLE = "test_paperTitle"; private static User TEST_AUTHOR;...
9,531
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/JournalPublicationTest.java
import static org.junit.Assert.*; import models.JournalPublication; import models.Publication; import models.User; import org.junit.Before; import org.junit.Test; public class JournalPublicationTest { private static String TEST_PAPER_TITLE = "test_paperTitle"; private static User TEST_AUTHOR; private static Str...
9,532
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ServiceConfigurationItemTest.java
import static org.junit.Assert.*; import models.ClimateService; import models.Parameter; import models.ServiceConfiguration; import models.ServiceConfigurationItem; import org.junit.Before; import org.junit.Test; public class ServiceConfigurationItemTest { private static long TEST_ID = 0; private static ServiceCon...
9,533
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ClimateServiceTest.java
import static org.junit.Assert.*; import models.ClimateService; import models.User; import java.sql.Date; import org.junit.Before; import org.junit.Test; public class ClimateServiceTest { private static long TEST_ROOT_SERVICE_ID = 1; private static User TEST_USER; private static String TEST_NAME = "test_name";...
9,534
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/WorkflowTest.java
import static org.junit.Assert.*; import java.util.ArrayList; import java.util.Date; import java.util.List; import models.ClimateService; import models.Dataset; import models.Instrument; import models.User; import models.Workflow; import org.junit.Before; import org.junit.Test; public class WorkflowTest { privat...
9,535
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ApplicationTest.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.databind.JsonNode; import org.junit.*; import play.mvc.*; import play.test.*; import play.data.DynamicForm; import play.data.validation.ValidationError; import play.data.validation.Constrain...
9,536
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ConferencePublicationTest.java
import static org.junit.Assert.*; import models.ConferencePublication; import models.Publication; import models.User; import org.junit.Before; import org.junit.Test; public class ConferencePublicationTest { private static String TEST_NAME = "test_name"; private static String TEST_LOCATION = "test_location"; priva...
9,537
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ServiceConfigurationTest.java
import static org.junit.Assert.*; import models.ClimateService; import models.ServiceConfiguration; import models.User; import org.junit.Before; import org.junit.Test; public class ServiceConfigurationTest { private static long TEST_ID = 0; private static String TEST_RUN_TIME = "runTime"; private static ClimateS...
9,538
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/IntegrationTest.java
import org.junit.*; import play.mvc.*; import play.test.*; import play.libs.F.*; import static play.test.Helpers.*; import static org.fest.assertions.Assertions.*; import static org.fluentlenium.core.filter.FilterConstructor.*; public class IntegrationTest { /** * add your integration test here * in ...
9,539
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/BookPublicationTest.java
import static org.junit.Assert.*; import models.BookPublication; import models.Publication; import models.User; import org.junit.Before; import org.junit.Test; public class BookPublicationTest { private static String TEST_BOOK_NAME = "test_bookName"; private static String TEST_PUBLISHER_LOCATION = "test_publisher...
9,540
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/ParameterTest.java
import static org.junit.Assert.*; import models.ClimateService; import models.JournalPublication; import models.Parameter; import org.junit.Before; import org.junit.Test; public class ParameterTest { private static long TEST_ID = 0; private static ClimateService climateService; private static long TEST_INDEX_IN_...
9,541
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/InstrumentTest.java
import static org.junit.Assert.*; import java.util.Date; import models.Dataset; import models.DatasetLog; import models.Instrument; import models.ServiceExecutionLog; import org.junit.Before; import org.junit.Test; public class InstrumentTest { private static long TEST_ID = 0; private static String TEST_NAME = "...
9,542
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/test/models/ClimateServiceTest.java
package models; import static org.junit.Assert.*; import org.junit.Test; public class ClimateServiceTest { @Test public void test() { fail("Not yet implemented"); } }
9,543
0
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/target/scala-2.11/src_managed/main
Create_ds/incubator-retired-cmda/ApacheCMDA-Backend/target/scala-2.11/src_managed/main/controllers/routes.java
// @SOURCE:/Users/mingqi/git/ApacheCMDA-Backend/conf/routes // @HASH:73b57dec301e9888106f2ecbbfcaca49095b5715 // @DATE:Wed Sep 02 14:54:15 PDT 2015 package controllers; public class routes { public static final controllers.ReverseAssets Assets = new controllers.ReverseAssets(); public static final controllers.Reverse...
9,544
0
Create_ds/spoon/spoon-common/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-common/src/main/java/com/squareup/spoon/internal/Constants.java
package com.squareup.spoon.internal; public interface Constants { String SPOON_SCREENSHOTS = "spoon-screenshots"; String SPOON_FILES = "spoon-files"; String NAME_SEPARATOR = "_"; }
9,545
0
Create_ds/spoon/test-app/src/androidTest/java/com/example/boxup
Create_ds/spoon/test-app/src/androidTest/java/com/example/boxup/bucks/BucksSendingTest.java
package com.example.boxup.bucks; import android.support.test.rule.ActivityTestRule; import com.squareup.spoon.SpoonRule; import org.junit.Rule; import org.junit.Test; import static android.support.test.espresso.Espresso.onView; import static android.support.test.espresso.action.ViewActions.click; import static androi...
9,546
0
Create_ds/spoon/test-app/src/androidTest/java/com/example/boxup
Create_ds/spoon/test-app/src/androidTest/java/com/example/boxup/bucks/MoneysTest.java
package com.example.boxup.bucks; import org.junit.Test; import static com.google.common.truth.Truth.assertThat; public final class MoneysTest { @Test public void dollarsAndCentsAsCents() { assertThat(Moneys.formatCents(340)).isEqualTo("$3.40"); assertThat(Moneys.formatCents(100000042)).isEqualTo("$1,000,00...
9,547
0
Create_ds/spoon/test-app/src/androidTest/java/com/example/boxup
Create_ds/spoon/test-app/src/androidTest/java/com/example/boxup/bucks/EdgeCases.java
package com.example.boxup.bucks; import org.junit.Ignore; import org.junit.Test; import static org.junit.Assert.fail; import static org.junit.Assume.assumeTrue; public final class EdgeCases { @Test @Ignore("Message!") public void ignored() { fail(); } @Test public void assumptionFailure() { assumeTrue...
9,548
0
Create_ds/spoon/test-app/src/main/java/com/example/boxup
Create_ds/spoon/test-app/src/main/java/com/example/boxup/bucks/AmountActivity.java
package com.example.boxup.bucks; import android.os.Build; import android.os.Bundle; import android.os.Vibrator; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.transition.TransitionManager; import android.view.View; import android.view.ViewGroup; import andro...
9,549
0
Create_ds/spoon/test-app/src/main/java/com/example/boxup
Create_ds/spoon/test-app/src/main/java/com/example/boxup/bucks/RecipientActivity.java
package com.example.boxup.bucks; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.annotation.VisibleForTesting; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import an...
9,550
0
Create_ds/spoon/test-app/src/main/java/com/example/boxup
Create_ds/spoon/test-app/src/main/java/com/example/boxup/bucks/Moneys.java
package com.example.boxup.bucks; import android.support.annotation.MainThread; import java.text.DecimalFormat; final class Moneys { private static final DecimalFormat DOLLARS_ONLY = new DecimalFormat("$#,###"); private static final DecimalFormat DOLLARS_AND_CENTS = new DecimalFormat("$#,###.00"); @MainThread /...
9,551
0
Create_ds/spoon/test-app/src/main/java/com/example/boxup
Create_ds/spoon/test-app/src/main/java/com/example/boxup/bucks/ResultActivity.java
package com.example.boxup.bucks; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.widget.ImageView; import android.widget.TextView; import butterknife.BindView; import but...
9,552
0
Create_ds/spoon/spoon-client/src/test/java/com/squareup
Create_ds/spoon/spoon-client/src/test/java/com/squareup/spoon/SpoonRuleTest.java
// Copyright 2012 Square, Inc. package com.squareup.spoon; import org.junit.Rule; import org.junit.Test; public final class SpoonRuleTest { @Rule public final SpoonRule spoon = new SpoonRule(); @Test(expected = IllegalArgumentException.class) public void invalidTagThrowsException() { spoon.screenshot(null,...
9,553
0
Create_ds/spoon/spoon-client/src/main/java/com/squareup
Create_ds/spoon/spoon-client/src/main/java/com/squareup/spoon/Chmod.java
// Copyright 2013 Square, Inc. package com.squareup.spoon; import android.os.Build; import java.io.File; import java.io.IOException; abstract class Chmod { private static final Chmod INSTANCE; static { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) { INSTANCE = new Java6Chmod(); } els...
9,554
0
Create_ds/spoon/spoon-client/src/main/java/com/squareup
Create_ds/spoon/spoon-client/src/main/java/com/squareup/spoon/SpoonRule.java
package com.squareup.spoon; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.util.Log; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import j...
9,555
0
Create_ds/spoon/spoon-client/src/main/java/com/squareup
Create_ds/spoon/spoon-client/src/main/java/com/squareup/spoon/Screenshot.java
package com.squareup.spoon; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Canvas; import android.os.Looper; import android.view.View; import java.util.concurrent.CountDownLatch; import static android.graphics.Bitmap.Config.ARGB_8888; abstract class Screenshot { static Bitmap ...
9,556
0
Create_ds/spoon/third-party/axmlparser/src/test/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/test/java/com/squareup/spoon/internal/thirdparty/axmlparser/StringBlockTests.java
package com.squareup.spoon.internal.thirdparty.axmlparser; import org.junit.Test; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import static org.junit.Assert.*; /**...
9,557
0
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty/axmlparser/ReadUtil.java
/* * Copyright 2008 Android4ME * * 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...
9,558
0
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty/axmlparser/CSString.java
/* * Copyright 2008 Android4ME * * 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...
9,559
0
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty/axmlparser/StringBlock.java
/* * Copyright 2008 Android4ME * * 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...
9,560
0
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty/axmlparser/AXMLParser.java
/* * Copyright 2008 Android4ME * * 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...
9,561
0
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty/axmlparser/Cast.java
/* * Copyright 2008 Android4ME * * 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...
9,562
0
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty
Create_ds/spoon/third-party/axmlparser/src/main/java/com/squareup/spoon/internal/thirdparty/axmlparser/IntReader.java
/* * Copyright 2008 Android4ME * * 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...
9,563
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/SpoonHtmlRendererTest.java
package com.squareup.spoon; import com.squareup.spoon.html.HtmlRenderer; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.lang.reflect.Field; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.charset.Charset; import java.nio.charset.CharsetDec...
9,564
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/SpoonUtilsTest.java
package com.squareup.spoon; import org.junit.Test; import static com.google.common.truth.Truth.assertThat; public final class SpoonUtilsTest { @Test public void serialSanitizer() { assertThat(SpoonUtils.sanitizeSerial("1234")).isEqualTo("1234"); assertThat(SpoonUtils.sanitizeSerial("FooBarBaz")).isEqualTo(...
9,565
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/SpoonRunnerTest.java
package com.squareup.spoon; import org.junit.Test; import static com.google.common.truth.Truth.assertThat; import static com.squareup.spoon.SpoonRunner.parseOverallSuccess; public final class SpoonRunnerTest { @Test public void parsingSuccess() { SpoonSummary summary; DeviceTest device = new DeviceTest("fo...
9,566
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/DeviceUtilsTest.java
package com.squareup.spoon; import org.junit.Test; import static com.google.common.truth.Truth.assertThat; import static com.squareup.spoon.DeviceUtils.scrubLanguage; import static com.squareup.spoon.DeviceUtils.scrubModel; public final class DeviceUtilsTest { @Test public void scrubModelExamples() { assertTha...
9,567
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/misc/StackTraceTest.java
package com.squareup.spoon.misc; import java.util.ArrayDeque; import java.util.Deque; import org.junit.Test; import static com.google.common.truth.Truth.assertThat; public final class StackTraceTest { @Test public void recursiveCause() { Exception e = new IllegalArgumentException("To understand recursion...") ...
9,568
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/html/HtmlIndexTest.java
package com.squareup.spoon.html; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.junit.Test; import static com.google.common.truth.Truth.assertThat; import static com.squareup.spoon.html.HtmlIndex.Device; import static com.squareup.spoon.html.HtmlIndex.TestResult; public fina...
9,569
0
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/test/java/com/squareup/spoon/html/HtmlUtilsTest.java
package com.squareup.spoon.html; import java.io.File; import java.util.List; import org.junit.Test; import com.squareup.spoon.html.HtmlUtils.ExceptionInfo; import com.squareup.spoon.misc.StackTrace; import static com.google.common.truth.Truth.assertThat; import static com.squareup.spoon.html.HtmlUtils.createRelativeU...
9,570
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonUtils.java
package com.squareup.spoon; import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.DdmPreferences; import com.android.ddmlib.IDevice; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.TypeAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.st...
9,571
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonAndroidTestRunner.java
package com.squareup.spoon; import com.android.ddmlib.AdbCommandRejectedException; import com.android.ddmlib.CollectingOutputReceiver; import com.android.ddmlib.IShellEnabledDevice; import com.android.ddmlib.ShellCommandUnresponsiveException; import com.android.ddmlib.TimeoutException; import com.android.ddmlib.testru...
9,572
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonLogger.java
package com.squareup.spoon; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; /** Simple logger interface. */ final class SpoonLogger { private static final ThreadLocal<DateFormat> DATE_FORMAT = ThreadLocal.withInitial(() -> new SimpleDateFormat("y...
9,573
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/XmlTestRunListener.java
package com.squareup.spoon; import java.io.File; import java.io.IOException; /** * An {@link com.android.ddmlib.testrunner.XmlTestRunListener XmlTestRunListener} that points * directly to an output file. */ class XmlTestRunListener extends com.android.ddmlib.testrunner.XmlTestRunListener { private final File fil...
9,574
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonSummary.java
package com.squareup.spoon; import com.android.ddmlib.testrunner.IRemoteAndroidTestRunner; import java.util.Date; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Preconditions....
9,575
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonRunner.java
package com.squareup.spoon; import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.testrunner.IRemoteAndroidTestRunner; import com.android.ddmlib.testrunner.ITestRunListener; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect....
9,576
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/DeviceTestResult.java
package com.squareup.spoon; import com.android.ddmlib.logcat.LogCatMessage; import com.squareup.spoon.misc.StackTrace; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurrent.TimeUnit; import static com.google.common.base.Preconditions.checkArg...
9,577
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonInstrumentationInfo.java
package com.squareup.spoon; import com.squareup.spoon.internal.thirdparty.axmlparser.AXMLParser; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import org.apache.commons.lang3.builder.ToStringBuilder; import static com.google.c...
9,578
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonDeviceRunner.java
package com.squareup.spoon; import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.CollectingOutputReceiver; import com.android.ddmlib.DdmPreferences; import com.android.ddmlib.IDevice; import com.android.ddmlib.InstallException; import com.android.ddmlib.logcat.LogCatMessage; import com.android.ddmli...
9,579
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonTestRunListener.java
package com.squareup.spoon; import com.android.ddmlib.testrunner.ITestRunListener; import com.android.ddmlib.testrunner.TestIdentifier; import java.util.HashMap; import java.util.Map; import static com.google.common.base.Preconditions.checkNotNull; import static com.squareup.spoon.SpoonLogger.logDebug; import static ...
9,580
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/DeviceResult.java
package com.squareup.spoon; import com.squareup.spoon.misc.StackTrace; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import java.util.concurrent.TimeUnit; import static com.google.common.base.Preconditions.checkArgum...
9,581
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/DeviceTest.java
package com.squareup.spoon; import com.android.ddmlib.testrunner.TestIdentifier; import static com.google.common.base.Preconditions.checkNotNull; /** Represents a single test method. */ public final class DeviceTest implements Comparable<DeviceTest> { static DeviceTest from(TestIdentifier testIdentifier) { ret...
9,582
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/SpoonDeviceLogger.java
package com.squareup.spoon; import com.android.ddmlib.IDevice; import com.android.ddmlib.logcat.LogCatListener; import com.android.ddmlib.logcat.LogCatMessage; import com.android.ddmlib.logcat.LogCatReceiverTask; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import ...
9,583
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/DeviceDetails.java
package com.squareup.spoon; import com.android.ddmlib.IDevice; import org.apache.commons.lang3.builder.ToStringBuilder; import static com.google.common.base.Strings.emptyToNull; /** Device configuration and hardware information. */ public final class DeviceDetails { public static final int UNKNOWN_API_LEVEL = 0; ...
9,584
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/DeviceUtils.java
package com.squareup.spoon; final class DeviceUtils { /** Scrub the model so that it does not contain redundant data. */ static String scrubModel(String manufacturer, String model) { if (manufacturer == null || model == null) { return model; } if (model.regionMatches(true, 0, manufacturer, 0, man...
9,585
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/misc/StackTrace.java
package com.squareup.spoon.misc; import com.google.common.collect.ImmutableList; import java.util.ArrayDeque; import java.util.Deque; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.lang3.StringUtils; import static com.google.common.base.Preconditions.c...
9,586
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlDevice.java
package com.squareup.spoon.html; import com.squareup.spoon.DeviceDetails; import com.squareup.spoon.DeviceResult; import com.squareup.spoon.DeviceTest; import com.squareup.spoon.DeviceTestResult; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Map; import static com.squareup.s...
9,587
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlRenderer.java
package com.squareup.spoon.html; import com.android.ddmlib.logcat.LogCatMessage; import com.github.mustachejava.DefaultMustacheFactory; import com.github.mustachejava.Mustache; import com.github.mustachejava.MustacheFactory; import com.google.common.io.Resources; import com.google.gson.Gson; import com.squareup.spoon....
9,588
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlTest.java
package com.squareup.spoon.html; import com.squareup.spoon.DeviceDetails; import com.squareup.spoon.DeviceResult; import com.squareup.spoon.DeviceTest; import com.squareup.spoon.DeviceTestResult; import com.squareup.spoon.SpoonSummary; import java.io.File; import java.util.ArrayList; import java.util.List; import java...
9,589
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlUtils.java
package com.squareup.spoon.html; import com.squareup.spoon.DeviceDetails; import com.squareup.spoon.DeviceTestResult; import com.squareup.spoon.misc.StackTrace; import java.io.File; import java.io.IOException; import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; imp...
9,590
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlLog.java
package com.squareup.spoon.html; import com.android.ddmlib.logcat.LogCatMessage; import com.squareup.spoon.DeviceTest; import com.squareup.spoon.DeviceTestResult; import java.util.List; import static java.util.stream.Collectors.toList; /** Model for representing a {@code log.html} page. */ final class HtmlLog { pu...
9,591
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlIndex.java
package com.squareup.spoon.html; import com.android.ddmlib.testrunner.IRemoteAndroidTestRunner; import com.squareup.spoon.DeviceDetails; import com.squareup.spoon.DeviceResult; import com.squareup.spoon.DeviceTest; import com.squareup.spoon.DeviceTestResult; import com.squareup.spoon.SpoonSummary; import java.util.Arr...
9,592
0
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon
Create_ds/spoon/spoon-runner/src/main/java/com/squareup/spoon/html/HtmlTv.java
package com.squareup.spoon.html; import com.google.gson.Gson; import com.squareup.spoon.DeviceDetails; import com.squareup.spoon.DeviceResult; import com.squareup.spoon.DeviceTestResult; import com.squareup.spoon.SpoonSummary; import java.io.File; import java.util.List; import java.util.stream.Collectors; import stat...
9,593
0
Create_ds/calcite-avatica/metrics/src/test/java/org/apache/calcite/avatica
Create_ds/calcite-avatica/metrics/src/test/java/org/apache/calcite/avatica/metrics/MetricsSystemLoaderTest.java
/* * 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 ...
9,594
0
Create_ds/calcite-avatica/metrics/src/test/java/org/apache/calcite/avatica/metrics
Create_ds/calcite-avatica/metrics/src/test/java/org/apache/calcite/avatica/metrics/noop/NoopMetricsSystemFactoryTest.java
/* * 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 ...
9,595
0
Create_ds/calcite-avatica/metrics/src/test/java/org/apache/calcite/avatica/metrics
Create_ds/calcite-avatica/metrics/src/test/java/org/apache/calcite/avatica/metrics/noop/NoopMetricsSystemTest.java
/* * 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 ...
9,596
0
Create_ds/calcite-avatica/metrics/src/main/java/org/apache/calcite/avatica
Create_ds/calcite-avatica/metrics/src/main/java/org/apache/calcite/avatica/metrics/PackageMarker.java
/* * 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 ...
9,597
0
Create_ds/calcite-avatica/metrics/src/main/java/org/apache/calcite/avatica
Create_ds/calcite-avatica/metrics/src/main/java/org/apache/calcite/avatica/metrics/Gauge.java
/* * 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 ...
9,598
0
Create_ds/calcite-avatica/metrics/src/main/java/org/apache/calcite/avatica
Create_ds/calcite-avatica/metrics/src/main/java/org/apache/calcite/avatica/metrics/Metric.java
/* * 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 ...
9,599