repo_name stringlengths 7 104 | file_path stringlengths 13 198 | context stringlengths 67 7.15k | import_statement stringlengths 16 4.43k | code stringlengths 40 6.98k | prompt stringlengths 227 8.27k | next_line stringlengths 8 795 |
|---|---|---|---|---|---|---|
leandreck/spring-typescript-services | annotations/src/main/java/org/leandreck/endpoints/processor/model/TypeNodeFactory.java | // Path: annotations/src/main/java/org/leandreck/endpoints/processor/model/typefactories/TypeNodeUtils.java
// public class TypeNodeUtils {
//
// static final String NO_TEMPLATE = "NO_TEMPLATE";
// static final String UNDEFINED_TYPE_NAME = "UNDEFINED";
// static final String JAVA_LANG_OBJECT = "java.lang.O... | import org.leandreck.endpoints.annotations.TypeScriptIgnore;
import org.leandreck.endpoints.processor.config.TemplateConfiguration;
import org.leandreck.endpoints.processor.model.typefactories.ConcreteTypeNodeFactory;
import org.leandreck.endpoints.processor.model.typefactories.TypeNodeKind;
import org.leandreck.endpoi... | .filter(c -> filterVariableElements(c, publicGetter))
.map(it -> this.createTypeNode(it, /* parameterName */ null, typeMirror))
.collect(toList());
}
private static List<String> definePublicGetter(final TypeElement typeElement, final TypeMirror typeMirror, final ... | // Path: annotations/src/main/java/org/leandreck/endpoints/processor/model/typefactories/TypeNodeUtils.java
// public class TypeNodeUtils {
//
// static final String NO_TEMPLATE = "NO_TEMPLATE";
// static final String UNDEFINED_TYPE_NAME = "UNDEFINED";
// static final String JAVA_LANG_OBJECT = "java.lang.O... | Object dataAnnotation = TypeNodeUtils.getAnnotationForClass(typeMirror, dataAnnotationClass, typeUtils); |
lucassaldanha/playdoh | src/main/java/com/lsoftware/playdoh/reader/YamlModelReader.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.util.CaseUtils;
import com.lsoftware.playdoh.util.FileUtils;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.ConstructorException;
import java.io.FileNotFoundException;
import java.io.InputStream;
import ... | package com.lsoftware.playdoh.reader;
public class YamlModelReader implements ModelReader {
private FileUtils fileUtils;
private Yaml yaml;
public YamlModelReader() {
this.fileUtils = new FileUtils();
this.yaml = new Yaml();
}
@Override
public <T> Map<String, T> read(Class... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | throw new FixtureNotFoundException(getYamlFilename(type)); |
lucassaldanha/playdoh | src/main/java/com/lsoftware/playdoh/reader/YamlModelReader.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.util.CaseUtils;
import com.lsoftware.playdoh.util.FileUtils;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.ConstructorException;
import java.io.FileNotFoundException;
import java.io.InputStream;
import ... | Map map = (Map) yaml.load(inputStream);
if(map != null) {
for (Object o : map.keySet()) {
String key = (String) o;
objects.put(key, yaml.loadAs(yaml.dump(map.get(key)), type));
}
}
return objects;
... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | return CaseUtils.toSnakeCase(type.getSimpleName()) + ".yml"; |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/YamlFixtureObjectBuilderTest.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/User.java
// public class User {
//
// private String name;
// private String email;
// private int age;
//
// public User() {
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(Strin... | import com.lsoftware.playdoh.objects.models.User;
import org.junit.Test;
import java.io.FileNotFoundException;
import java.util.List;
import static org.junit.Assert.assertEquals; | package com.lsoftware.playdoh;
public class YamlFixtureObjectBuilderTest {
private YamlFixtureObjectBuilder builder = new YamlFixtureObjectBuilder();
@Test
public void testBuildUserObjectFromFixture() throws FileNotFoundException { | // Path: src/test/java/com/lsoftware/playdoh/objects/models/User.java
// public class User {
//
// private String name;
// private String email;
// private int age;
//
// public User() {
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(Strin... | User user = builder.build(User.class, "aUser"); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/objects/arrays/ArrayObjectsTest.java | // Path: src/main/java/com/lsoftware/playdoh/Playdoh.java
// public final class Playdoh {
//
// private static PlaydohConfiguration configuration = PlaydohConfiguration.getInstance();
//
// /**
// * Builds an instance of a class with random data
// * @param type The class to be instanced
// * @... | import com.lsoftware.playdoh.Playdoh;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue; | package com.lsoftware.playdoh.objects.arrays;
public class ArrayObjectsTest {
@Test
public void testGenerateObjectWithBooleanArray() throws Exception { | // Path: src/main/java/com/lsoftware/playdoh/Playdoh.java
// public final class Playdoh {
//
// private static PlaydohConfiguration configuration = PlaydohConfiguration.getInstance();
//
// /**
// * Builds an instance of a class with random data
// * @param type The class to be instanced
// * @... | ObjectWithBooleanArray obj = Playdoh.build(ObjectWithBooleanArray.class); |
lucassaldanha/playdoh | src/main/java/com/lsoftware/playdoh/generator/ValueGeneratorFactoryImpl.java | // Path: src/main/java/com/lsoftware/playdoh/util/Primitives.java
// public enum Primitives {
//
// BYTE ("byte", Byte.class, "[B"),
// SHORT ("short", Short.class, "[S"),
// INT ("int", Integer.class, "[I"),
// LONG ("long", Long.class, "[J"),
// FLOAT ("float", Float.class, "[F"),
/... | import com.lsoftware.playdoh.util.Primitives;
import java.util.HashMap;
import java.util.Map; | package com.lsoftware.playdoh.generator;
public class ValueGeneratorFactoryImpl implements ValueGeneratorFactory {
private final Map<Class, TypeValueGenerator> generators = new HashMap<Class, TypeValueGenerator>(){{
put( Byte.class, new ByteGenerator());
put( Short.class, ne... | // Path: src/main/java/com/lsoftware/playdoh/util/Primitives.java
// public enum Primitives {
//
// BYTE ("byte", Byte.class, "[B"),
// SHORT ("short", Short.class, "[S"),
// INT ("int", Integer.class, "[I"),
// LONG ("long", Long.class, "[J"),
// FLOAT ("float", Float.class, "[F"),
/... | if(Primitives.isPrimitive(type) || Primitives.isPrimitiveArray(type)) { |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohRandomDataObjectBuilder.java | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | import com.lsoftware.playdoh.objects.collections.ObjectWithArray;
import com.lsoftware.playdoh.objects.collections.ObjectWithCollection;
import com.lsoftware.playdoh.objects.collections.ObjectWithStringObjectMap;
import com.lsoftware.playdoh.objects.models.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutDefa... | package com.lsoftware.playdoh;
public class PlaydohRandomDataObjectBuilder {
@Test
public void testBuildDummyObject() throws Exception {
final Dummy builtDummy = Playdoh.build(Dummy.class);
assertNotNull(builtDummy);
assertNotNull(builtDummy.getIntegerValue());
assertNotNull(... | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | final ObjectWithArray objectWithArray = Playdoh.build(ObjectWithArray.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohRandomDataObjectBuilder.java | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | import com.lsoftware.playdoh.objects.collections.ObjectWithArray;
import com.lsoftware.playdoh.objects.collections.ObjectWithCollection;
import com.lsoftware.playdoh.objects.collections.ObjectWithStringObjectMap;
import com.lsoftware.playdoh.objects.models.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutDefa... |
@Test
public void testBuildInheritanceObject() {
final InheritanceObject builtInheritance = Playdoh.build(InheritanceObject.class);
assertNotNull(builtInheritance.getInheritanceString());
assertNotNull(builtInheritance.getParentString());
}
@Test
public void testBuildObject... | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | ObjectWithStringObjectMap objectWithMap = Playdoh.build(ObjectWithStringObjectMap.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohRandomDataObjectBuilder.java | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | import com.lsoftware.playdoh.objects.collections.ObjectWithArray;
import com.lsoftware.playdoh.objects.collections.ObjectWithCollection;
import com.lsoftware.playdoh.objects.collections.ObjectWithStringObjectMap;
import com.lsoftware.playdoh.objects.models.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutDefa... |
@Test
public void testBuildObjectWithArray() {
final ObjectWithArray objectWithArray = Playdoh.build(ObjectWithArray.class);
assertNotNull(objectWithArray);
assertTrue(objectWithArray.getIntArray().length > 0);
}
@Test
public void testBuildObjectWithPrimitiveArray() {
... | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | ObjectWithCollection objectWithCollection = Playdoh.build(ObjectWithCollection.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohRandomDataObjectBuilder.java | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | import com.lsoftware.playdoh.objects.collections.ObjectWithArray;
import com.lsoftware.playdoh.objects.collections.ObjectWithCollection;
import com.lsoftware.playdoh.objects.collections.ObjectWithStringObjectMap;
import com.lsoftware.playdoh.objects.models.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutDefa... | }
@Test
public void testBuildObjectWithMap() {
ObjectWithStringObjectMap objectWithMap = Playdoh.build(ObjectWithStringObjectMap.class);
assertNotNull(objectWithMap);
assertEquals(0, objectWithMap.getMap().size());
}
@Test
public void testBuildObjectWithCollection() {
... | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | ClassWithoutSetter object = Playdoh.build(ClassWithoutSetter.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohRandomDataObjectBuilder.java | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | import com.lsoftware.playdoh.objects.collections.ObjectWithArray;
import com.lsoftware.playdoh.objects.collections.ObjectWithCollection;
import com.lsoftware.playdoh.objects.collections.ObjectWithStringObjectMap;
import com.lsoftware.playdoh.objects.models.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutDefa... |
@Test
public void testBuildObjectWithCollection() {
ObjectWithCollection objectWithCollection = Playdoh.build(ObjectWithCollection.class);
assertNotNull(objectWithCollection);
assertEquals(0, objectWithCollection.getCollection().size());
}
@Test
public void testBuildObjectW... | // Path: src/test/java/com/lsoftware/playdoh/objects/collections/ObjectWithArray.java
// public class ObjectWithArray {
//
// private Integer[] intArray;
//
// public ObjectWithArray() {}
//
// public void setIntArray(Integer[] intArray) {
// this.intArray = intArray;
// }
//
// public I... | ClassWithoutDefaultConstructor object = Playdoh.build(ClassWithoutDefaultConstructor.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohSpecificFieldsObjectBuilderTest.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.ClassWithoutSetter;
import org.junit.Test;
import static org.junit.Assert.assertEquals; | package com.lsoftware.playdoh;
public class PlaydohSpecificFieldsObjectBuilderTest {
@Test
public void testBuildObjectWithSpecificValueOnField() { | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | Dummy dummy = Playdoh.builder(Dummy.class) |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohSpecificFieldsObjectBuilderTest.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.ClassWithoutSetter;
import org.junit.Test;
import static org.junit.Assert.assertEquals; | package com.lsoftware.playdoh;
public class PlaydohSpecificFieldsObjectBuilderTest {
@Test
public void testBuildObjectWithSpecificValueOnField() {
Dummy dummy = Playdoh.builder(Dummy.class)
.with("stringValue", "test")
.with("integerValue", 123)
.build... | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | NestedDummy nestedDummy = Playdoh.build(NestedDummy.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohSpecificFieldsObjectBuilderTest.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.ClassWithoutSetter;
import org.junit.Test;
import static org.junit.Assert.assertEquals; | package com.lsoftware.playdoh;
public class PlaydohSpecificFieldsObjectBuilderTest {
@Test
public void testBuildObjectWithSpecificValueOnField() {
Dummy dummy = Playdoh.builder(Dummy.class)
.with("stringValue", "test")
.with("integerValue", 123)
.build... | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | Playdoh.builder(ClassWithoutSetter.class).with("field", "aString").build(); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohFixtureObjectBuilder.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.collections.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.ObjectWithEnum;
import com.lsoftware.playdo... | package com.lsoftware.playdoh;
public class PlaydohFixtureObjectBuilder {
@Test
public void testBuildObjectFromFixture() { | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | User user1 = Playdoh.build(User.class, "aUser"); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohFixtureObjectBuilder.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.collections.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.ObjectWithEnum;
import com.lsoftware.playdo... | package com.lsoftware.playdoh;
public class PlaydohFixtureObjectBuilder {
@Test
public void testBuildObjectFromFixture() {
User user1 = Playdoh.build(User.class, "aUser");
assertNotNull(user1);
assertEquals("Lucas Saldanha", user1.getName());
assertEquals("lucas@example.com"... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | Dummy dummy = Playdoh.build(Dummy.class, "dummy1"); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohFixtureObjectBuilder.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.collections.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.ObjectWithEnum;
import com.lsoftware.playdo... | package com.lsoftware.playdoh;
public class PlaydohFixtureObjectBuilder {
@Test
public void testBuildObjectFromFixture() {
User user1 = Playdoh.build(User.class, "aUser");
assertNotNull(user1);
assertEquals("Lucas Saldanha", user1.getName());
assertEquals("lucas@example.com"... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | ObjectWithEnum objectWithEnum = Playdoh.build(ObjectWithEnum.class, "objectWithEnum"); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohFixtureObjectBuilder.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.collections.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.ObjectWithEnum;
import com.lsoftware.playdo... | }
@Test
public void testBuildOtherObjectFromFixture() {
User user1 = Playdoh.build(User.class, "anotherUser");
assertNotNull(user1);
assertEquals("Abdi Abidu", user1.getName());
assertEquals("aa@example.com", user1.getEmail());
assertEquals(999, user1.getAge());
... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | @Test(expected = FixtureNotFoundException.class) |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohFixtureObjectBuilder.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.collections.*;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.ObjectWithEnum;
import com.lsoftware.playdo... | @Test
public void testBuildOtherObjectFromFixture() {
User user1 = Playdoh.build(User.class, "anotherUser");
assertNotNull(user1);
assertEquals("Abdi Abidu", user1.getName());
assertEquals("aa@example.com", user1.getEmail());
assertEquals(999, user1.getAge());
}
... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | Playdoh.build(ClassWithoutFixture.class, "aClass"); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/reader/YamlModelReaderTest.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.User;
import com.lsoftware.playdoh.util.FileUtils;
import org.junit.After;
import org.jun... | package com.lsoftware.playdoh.reader;
public class YamlModelReaderTest {
public static final String USERS_YAML_FILE = "user.yml";
private YamlModelReader reader = new YamlModelReader();
| // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | private FileUtils mockFileUtils; |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/reader/YamlModelReaderTest.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.User;
import com.lsoftware.playdoh.util.FileUtils;
import org.junit.After;
import org.jun... | package com.lsoftware.playdoh.reader;
public class YamlModelReaderTest {
public static final String USERS_YAML_FILE = "user.yml";
private YamlModelReader reader = new YamlModelReader();
private FileUtils mockFileUtils;
@Before
public void setUp() throws Exception {
configureFileUtils... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | reader.read(User.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/reader/YamlModelReaderTest.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.User;
import com.lsoftware.playdoh.util.FileUtils;
import org.junit.After;
import org.jun... | private void configureFileUtilsMock() throws FileNotFoundException {
mockFileUtils = mock(FileUtils.class);
reader.setFileUtils(mockFileUtils);
}
private void mockFileUtilsToReturnFileInputStream(String filename) throws FileNotFoundException {
InputStream inputStream = getClass().ge... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | reader.read(NestedDummy.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/reader/YamlModelReaderTest.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.User;
import com.lsoftware.playdoh.util.FileUtils;
import org.junit.After;
import org.jun... | private void mockFileUtilsToReturnFileInputStream(String filename) throws FileNotFoundException {
InputStream inputStream = getClass().getClassLoader().getResourceAsStream(filename);
assertNotNull(inputStream);
when(mockFileUtils.readFileFromClasspath(eq(filename))).thenReturn(inputStream);... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | @Test(expected = FixtureNotFoundException.class) |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/reader/YamlModelReaderTest.java | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | import com.lsoftware.playdoh.exception.FixtureNotFoundException;
import com.lsoftware.playdoh.objects.models.ClassWithoutFixture;
import com.lsoftware.playdoh.objects.models.NestedDummy;
import com.lsoftware.playdoh.objects.models.User;
import com.lsoftware.playdoh.util.FileUtils;
import org.junit.After;
import org.jun... | }
@After
public void tearDown() {
Mockito.reset(mockFileUtils);
}
@Test
public void testYamlReaderSearchFileWithNameOfClass() throws FileNotFoundException {
mockFileUtilsToReturnFileInputStream(USERS_YAML_FILE);
reader.read(User.class);
verify(mockFileUtils, t... | // Path: src/main/java/com/lsoftware/playdoh/exception/FixtureNotFoundException.java
// public class FixtureNotFoundException extends PlaydohException {
//
// public FixtureNotFoundException(String fixtureName) {
// super("Can't find " + fixtureName + " fixture on classpath");
// }
// }
//
// Path: sr... | reader.read(ClassWithoutFixture.class); |
lucassaldanha/playdoh | src/main/java/com/lsoftware/playdoh/YamlFixtureObjectBuilder.java | // Path: src/main/java/com/lsoftware/playdoh/reader/YamlModelReader.java
// public class YamlModelReader implements ModelReader {
//
// private FileUtils fileUtils;
//
// private Yaml yaml;
//
// public YamlModelReader() {
// this.fileUtils = new FileUtils();
// this.yaml = new Yaml();
//... | import com.lsoftware.playdoh.reader.YamlModelReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map; | package com.lsoftware.playdoh;
public class YamlFixtureObjectBuilder extends AbstractFixtureObjectBuilder {
protected YamlFixtureObjectBuilder() { | // Path: src/main/java/com/lsoftware/playdoh/reader/YamlModelReader.java
// public class YamlModelReader implements ModelReader {
//
// private FileUtils fileUtils;
//
// private Yaml yaml;
//
// public YamlModelReader() {
// this.fileUtils = new FileUtils();
// this.yaml = new Yaml();
//... | super(new YamlModelReader()); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/generator/ValueGeneratorFactoryImplTest.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | import com.lsoftware.playdoh.objects.models.Dummy;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue; | package com.lsoftware.playdoh.generator;
public class ValueGeneratorFactoryImplTest {
private ValueGeneratorFactoryImpl valueGeneratorFactory = new ValueGeneratorFactoryImpl();
@Test
public void testRegister() throws Exception { | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | assertFalse(valueGeneratorFactory.existsForType(Dummy.class)); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohExample.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.User; | package com.lsoftware.playdoh;
class PlaydohExample {
public static void main(String[] args) {
/*
Creating Dummy instance with random data
*/ | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | final Dummy dummy = Playdoh.build(Dummy.class); |
lucassaldanha/playdoh | src/test/java/com/lsoftware/playdoh/PlaydohExample.java | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | import com.lsoftware.playdoh.objects.models.Dummy;
import com.lsoftware.playdoh.objects.models.User; | package com.lsoftware.playdoh;
class PlaydohExample {
public static void main(String[] args) {
/*
Creating Dummy instance with random data
*/
final Dummy dummy = Playdoh.build(Dummy.class);
System.out.println(dummy);
/*
Look the user.yml file to s... | // Path: src/test/java/com/lsoftware/playdoh/objects/models/Dummy.java
// public class Dummy {
//
// private Integer integerValue;
//
// private String stringValue;
//
// private NestedDummy nestedDummy;
//
// Dummy(int integerValue, String stringValue, NestedDummy nestedDummy) {
// this.int... | final User user = Playdoh.build(User.class, "aUser"); |
vbier/habpanelviewer | app/src/main/java/de/vier_bier/habpanelviewer/openhab/RestClient.java | // Path: app/src/main/java/de/vier_bier/habpanelviewer/connection/OkHttpClientFactory.java
// public class OkHttpClientFactory {
// private static OkHttpClientFactory ourInstance;
//
// public Credentials mCred = null;
// private String mHost;
// private String mRealm;
//
// public static synchron... | import android.os.Handler;
import android.os.HandlerThread;
import android.util.Log;
import java.io.IOException;
import de.vier_bier.habpanelviewer.connection.OkHttpClientFactory;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import o... | super("RestClient");
start();
}
void getItemState(String serverURL, ISubscriptionListener l, String itemName) {
mWorkerHandler.obtainMessage(GET_ID, new ItemSubscription(serverURL, l, itemName)).sendToTarget();
}
void setItemState(String serverURL, ItemState itemState) {
... | // Path: app/src/main/java/de/vier_bier/habpanelviewer/connection/OkHttpClientFactory.java
// public class OkHttpClientFactory {
// private static OkHttpClientFactory ourInstance;
//
// public Credentials mCred = null;
// private String mHost;
// private String mRealm;
//
// public static synchron... | OkHttpClient client = OkHttpClientFactory.getInstance().create(); |
vbier/habpanelviewer | app/src/main/java/de/vier_bier/habpanelviewer/AppRestartingExceptionHandler.java | // Path: app/src/main/java/de/vier_bier/habpanelviewer/status/ApplicationStatus.java
// public class ApplicationStatus {
// private final ArrayList<StatusItem> mValues = new ArrayList<>();
// private final HashMap<String, StatusItem> mIndices = new HashMap<>();
//
// public synchronized void set(String key... | import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import com.jakewharton.processphoenix.ProcessPhoenix;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;
... | package de.vier_bier.habpanelviewer;
/**
* UncaughtExceptionHandler that restarts the app in case of exceptions.
*/
class AppRestartingExceptionHandler implements Thread.UncaughtExceptionHandler {
private static final String TAG = "HPV-AppRestartingExHa";
private final MainActivity mCtx;
private fi... | // Path: app/src/main/java/de/vier_bier/habpanelviewer/status/ApplicationStatus.java
// public class ApplicationStatus {
// private final ArrayList<StatusItem> mValues = new ArrayList<>();
// private final HashMap<String, StatusItem> mIndices = new HashMap<>();
//
// public synchronized void set(String key... | public void onMessageEvent(ApplicationStatus status) { |
vbier/habpanelviewer | app/src/main/java/de/vier_bier/habpanelviewer/command/AdminHandler.java | // Path: app/src/main/java/de/vier_bier/habpanelviewer/AdminReceiver.java
// public class AdminReceiver extends DeviceAdminReceiver {
// public static final ComponentName COMP =
// new ComponentName("de.vier_bier.habpanelviewer", "de.vier_bier.habpanelviewer.AdminReceiver");
//
// public AdminRecei... | import android.app.Activity;
import android.app.admin.DevicePolicyManager;
import android.content.Context;
import de.vier_bier.habpanelviewer.AdminReceiver; | package de.vier_bier.habpanelviewer.command;
/**
* Handler for ADMIN_LOCK_SCREEN command.
*/
public class AdminHandler implements ICommandHandler {
private final DevicePolicyManager mDPM;
public AdminHandler(Activity activity) {
mDPM = (DevicePolicyManager) activity.getSystemService(Context.DEVICE... | // Path: app/src/main/java/de/vier_bier/habpanelviewer/AdminReceiver.java
// public class AdminReceiver extends DeviceAdminReceiver {
// public static final ComponentName COMP =
// new ComponentName("de.vier_bier.habpanelviewer", "de.vier_bier.habpanelviewer.AdminReceiver");
//
// public AdminRecei... | if (mDPM.isAdminActive(AdminReceiver.COMP)) { |
vbier/habpanelviewer | app/src/main/java/de/vier_bier/habpanelviewer/openhab/average/AveragePropagator.java | // Path: app/src/main/java/de/vier_bier/habpanelviewer/openhab/FutureState.java
// public class FutureState extends ItemState implements Delayed {
// private final int delayInMillis;
// private long origin = System.currentTimeMillis();
//
// public FutureState(String item, int interval, String state) {
// ... | import java.util.HashMap;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.DelayQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import de.vier_bier.habpanelviewer.openhab.FutureState; | package de.vier_bier.habpanelviewer.openhab.average;
/**
* Thread that does cyclic propagation of state averages or timed state updates
*/
public class AveragePropagator extends Thread {
private final IStatePropagator mStatePropagator;
private final AtomicBoolean mRunning = new AtomicBoolean(true);
pr... | // Path: app/src/main/java/de/vier_bier/habpanelviewer/openhab/FutureState.java
// public class FutureState extends ItemState implements Delayed {
// private final int delayInMillis;
// private long origin = System.currentTimeMillis();
//
// public FutureState(String item, int interval, String state) {
// ... | private final BlockingQueue<FutureState> mFutureStateQueue = new DelayQueue<>(); |
vbier/habpanelviewer | app/src/main/java/de/vier_bier/habpanelviewer/connection/ConnectionStatistics.java | // Path: app/src/main/java/de/vier_bier/habpanelviewer/status/ApplicationStatus.java
// public class ApplicationStatus {
// private final ArrayList<StatusItem> mValues = new ArrayList<>();
// private final HashMap<String, StatusItem> mIndices = new HashMap<>();
//
// public synchronized void set(String key... | import android.content.Context;
import android.content.res.Resources;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import de.vier_bier.habpanelviewer.R;
import de.vier_bier.habpanelviewer.status.ApplicationStatus; | package de.vier_bier.habpanelviewer.connection;
/**
* Holds information about online/offline times.
*/
public class ConnectionStatistics {
private final Context mCtx;
private final long mStartTime = System.currentTimeMillis();
private State mState = State.DISCONNECTED;
private long mLastOnlineTim... | // Path: app/src/main/java/de/vier_bier/habpanelviewer/status/ApplicationStatus.java
// public class ApplicationStatus {
// private final ArrayList<StatusItem> mValues = new ArrayList<>();
// private final HashMap<String, StatusItem> mIndices = new HashMap<>();
//
// public synchronized void set(String key... | public void onMessageEvent(ApplicationStatus status) { |
vbier/habpanelviewer | app/src/main/java/de/vier_bier/habpanelviewer/preferences/ItemValidator.java | // Path: app/src/main/java/de/vier_bier/habpanelviewer/connection/OkHttpClientFactory.java
// public class OkHttpClientFactory {
// private static OkHttpClientFactory ourInstance;
//
// public Credentials mCred = null;
// private String mHost;
// private String mRealm;
//
// public static synchron... | import android.util.Log;
import org.jetbrains.annotations.NotNull;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import de.vier_bier.habpanelviewer.connection.OkHttpClientFactory;
import okhttp3.Call;
... | package de.vier_bier.habpanelviewer.preferences;
class ItemValidator {
private static final String TAG = "HPV-ItemValidator";
private final List<String> mNames = new ArrayList<>();
void setServerUrl(String serverUrl, ValidationStateListener l) { | // Path: app/src/main/java/de/vier_bier/habpanelviewer/connection/OkHttpClientFactory.java
// public class OkHttpClientFactory {
// private static OkHttpClientFactory ourInstance;
//
// public Credentials mCred = null;
// private String mHost;
// private String mRealm;
//
// public static synchron... | OkHttpClient client = OkHttpClientFactory.getInstance().create(); |
vihuela/Lay-s | lay-s/src/main/java/com/hadlink/lay_s/datamanager/net/MyNet.java | // Path: lay-s/src/main/java/com/hadlink/lay_s/conf/C.java
// public final class C {
//
// /**
// * 主机
// */
// public static final class Host {
// public static final String host = "http://eptapi.imchehu.com/";
// public static final String BAIDU_IMAGES_URLS = "http://image.baidu.com... | import com.hadlink.easynet.util.NetUtils;
import com.hadlink.lay_s.conf.C; | /*
* Copyright (c) 2016, lyao. lomoliger@hotmail.com
*
* Part of the code from the open source community,
* thanks stackOverflow & gitHub .
* 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 ... | // Path: lay-s/src/main/java/com/hadlink/lay_s/conf/C.java
// public final class C {
//
// /**
// * 主机
// */
// public static final class Host {
// public static final String host = "http://eptapi.imchehu.com/";
// public static final String BAIDU_IMAGES_URLS = "http://image.baidu.com... | return NetUtils.createApi(ApiOverview.class, C.Host.host); |
vihuela/Lay-s | library/src/main/java/com/hadlink/library/widget/pla/PLALoadMoreListView.java | // Path: library/src/main/java/com/hadlink/library/widget/progress/CircularProgressBar.java
// public class CircularProgressBar extends ProgressBar {
//
// public CircularProgressBar(Context context) {
// this(context, null);
// }
//
// public CircularProgressBar(Context context, AttributeSet attrs) {
// ... | import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.hadlink.library.R;
import com.hadlink.library.widget.progress.CircularProgressBar; | /*
* Copyright (c) 2016, lyao. lomoliger@hotmail.com
*
* Part of the code from the open source community,
* thanks stackOverflow & gitHub .
* 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 ... | // Path: library/src/main/java/com/hadlink/library/widget/progress/CircularProgressBar.java
// public class CircularProgressBar extends ProgressBar {
//
// public CircularProgressBar(Context context) {
// this(context, null);
// }
//
// public CircularProgressBar(Context context, AttributeSet attrs) {
// ... | private CircularProgressBar mProgressBarLoadMore; |
vihuela/Lay-s | lay-s/src/main/java/com/hadlink/lay_s/utils/UriHelper.java | // Path: lay-s/src/main/java/com/hadlink/lay_s/conf/C.java
// public final class C {
//
// /**
// * 主机
// */
// public static final class Host {
// public static final String host = "http://eptapi.imchehu.com/";
// public static final String BAIDU_IMAGES_URLS = "http://image.baidu.com... | import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import com.hadlink.lay_s.conf.C; |
/*
* Copyright (c) 2016, lyao. lomoliger@hotmail.com
*
* Part of the code from the open source community,
* thanks stackOverflow & gitHub .
* 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... | // Path: lay-s/src/main/java/com/hadlink/lay_s/conf/C.java
// public final class C {
//
// /**
// * 主机
// */
// public static final class Host {
// public static final String host = "http://eptapi.imchehu.com/";
// public static final String BAIDU_IMAGES_URLS = "http://image.baidu.com... | sb.append(C.Host.BAIDU_IMAGES_URLS); |
vihuela/Lay-s | lay-s/src/main/java/com/hadlink/lay_s/datamanager/net/netcallback/MyNetCallBack.java | // Path: lay-s/src/main/java/com/hadlink/lay_s/model/EventImpl.java
// public class EventImpl extends Event {
//
//
// }
//
// Path: library/src/main/java/com/hadlink/library/model/Event.java
// public class Event {
//
// public final static int NET_REQUEST_ERROR = 0x10;
//
// public int arg;
// privat... | import com.hadlink.easynet.conf.ErrorInfo;
import com.hadlink.easynet.util.NetUtils;
import com.hadlink.lay_s.model.EventImpl;
import com.hadlink.library.model.Event;
import com.hadlink.library.util.rx.RxBus; | /*
* Copyright (c) 2016, lyao. lomoliger@hotmail.com
*
* Part of the code from the open source community,
* thanks stackOverflow & gitHub .
* 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 ... | // Path: lay-s/src/main/java/com/hadlink/lay_s/model/EventImpl.java
// public class EventImpl extends Event {
//
//
// }
//
// Path: library/src/main/java/com/hadlink/library/model/Event.java
// public class Event {
//
// public final static int NET_REQUEST_ERROR = 0x10;
//
// public int arg;
// privat... | Event event = new EventImpl(); |
vihuela/Lay-s | lay-s/src/main/java/com/hadlink/lay_s/datamanager/net/netcallback/MyNetCallBack.java | // Path: lay-s/src/main/java/com/hadlink/lay_s/model/EventImpl.java
// public class EventImpl extends Event {
//
//
// }
//
// Path: library/src/main/java/com/hadlink/library/model/Event.java
// public class Event {
//
// public final static int NET_REQUEST_ERROR = 0x10;
//
// public int arg;
// privat... | import com.hadlink.easynet.conf.ErrorInfo;
import com.hadlink.easynet.util.NetUtils;
import com.hadlink.lay_s.model.EventImpl;
import com.hadlink.library.model.Event;
import com.hadlink.library.util.rx.RxBus; | /*
* Copyright (c) 2016, lyao. lomoliger@hotmail.com
*
* Part of the code from the open source community,
* thanks stackOverflow & gitHub .
* 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 ... | // Path: lay-s/src/main/java/com/hadlink/lay_s/model/EventImpl.java
// public class EventImpl extends Event {
//
//
// }
//
// Path: library/src/main/java/com/hadlink/library/model/Event.java
// public class Event {
//
// public final static int NET_REQUEST_ERROR = 0x10;
//
// public int arg;
// privat... | Event event = new EventImpl(); |
vihuela/Lay-s | lay-s/src/main/java/com/hadlink/lay_s/datamanager/net/netcallback/MyNetCallBack.java | // Path: lay-s/src/main/java/com/hadlink/lay_s/model/EventImpl.java
// public class EventImpl extends Event {
//
//
// }
//
// Path: library/src/main/java/com/hadlink/library/model/Event.java
// public class Event {
//
// public final static int NET_REQUEST_ERROR = 0x10;
//
// public int arg;
// privat... | import com.hadlink.easynet.conf.ErrorInfo;
import com.hadlink.easynet.util.NetUtils;
import com.hadlink.lay_s.model.EventImpl;
import com.hadlink.library.model.Event;
import com.hadlink.library.util.rx.RxBus; | /*
* Copyright (c) 2016, lyao. lomoliger@hotmail.com
*
* Part of the code from the open source community,
* thanks stackOverflow & gitHub .
* 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 ... | // Path: lay-s/src/main/java/com/hadlink/lay_s/model/EventImpl.java
// public class EventImpl extends Event {
//
//
// }
//
// Path: library/src/main/java/com/hadlink/library/model/Event.java
// public class Event {
//
// public final static int NET_REQUEST_ERROR = 0x10;
//
// public int arg;
// privat... | RxBus.getDefault().post(event); |
iconmaster5326/Source | src/com/iconmaster/source/element/Element.java | // Path: src/com/iconmaster/source/util/IDirectable.java
// public interface IDirectable {
// public ArrayList<String> getDirectives();
// }
//
// Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// ... | import com.iconmaster.source.util.IDirectable;
import com.iconmaster.source.util.Range;
import java.util.ArrayList; | package com.iconmaster.source.element;
/**
*
* @author iconmaster
*/
public class Element implements IDirectable {
public IElementType type;
public Object[] args = new Object[10];
public Element dataType = null;
public ArrayList<String> directives = new ArrayList<>(); | // Path: src/com/iconmaster/source/util/IDirectable.java
// public interface IDirectable {
// public ArrayList<String> getDirectives();
// }
//
// Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// ... | public Range range; |
iconmaster5326/Source | src/com/iconmaster/source/prototype/Import.java | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | import com.iconmaster.source.util.Range; | package com.iconmaster.source.prototype;
/**
*
* @author iconmaster
*/
public class Import {
public String name;
public String alias;
public boolean isFile;
public boolean resolved = false;
public boolean compiled = false; | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | public Range range; |
iconmaster5326/Source | src/com/iconmaster/source/exception/SourceUninitializedVariableException.java | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | import com.iconmaster.source.util.Range; | package com.iconmaster.source.exception;
/**
*
* @author iconmaster
*/
public class SourceUninitializedVariableException extends SourceException {
public String var;
| // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | public SourceUninitializedVariableException(Range range, String message, String var) { |
iconmaster5326/Source | src/com/iconmaster/source/tokenize/TokenRule.java | // Path: src/com/iconmaster/source/element/IElementType.java
// public interface IElementType {
// public String getAlias();
// }
//
// Path: src/com/iconmaster/source/util/StringUtils.java
// public class StringUtils {
// public static String nameString(Element e) {
// if (e==null) {
// return null;
// } els... | import com.iconmaster.source.element.IElementType;
import com.iconmaster.source.util.StringUtils; | NUMBER("n","[\\d\\.]+"),
STRING("s","\"(\\\\.|[^\"])*\""),
CHAR(null,"\'(\\\\.|[^\'])\'"),
SEP(";",";+"),
DIRECTIVE("r","@[\\S]*"),
SYMBOL("y","([\\Q+-*/=<>~:!&|%^\\E]+|\\(|\\)|\\[|\\]|\\{|\\}|,)");
public final String match;
public String alias;
TokenRule(String alias, String match) {
this.match = "^"+m... | // Path: src/com/iconmaster/source/element/IElementType.java
// public interface IElementType {
// public String getAlias();
// }
//
// Path: src/com/iconmaster/source/util/StringUtils.java
// public class StringUtils {
// public static String nameString(Element e) {
// if (e==null) {
// return null;
// } els... | return StringUtils.unescape(input.substring(1, input.length()-1)); |
iconmaster5326/Source | src/com/iconmaster/source/element/Rule.java | // Path: src/com/iconmaster/source/element/ISpecialRule.java
// public class RuleResult {
// public Element ret;
// public int del;
//
// public RuleResult(Element ret, int del) {
// this.ret = ret;
// this.del = del;
// }
// }
//
// Path: src/com/iconmaster/source/parse/Parser.java
// public class Parser {... | import com.iconmaster.source.element.ISpecialRule.RuleResult;
import com.iconmaster.source.parse.Parser;
import com.iconmaster.source.tokenize.Token;
import com.iconmaster.source.tokenize.TokenRule;
import com.iconmaster.source.util.Range;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
impo... | package com.iconmaster.source.element;
/**
*
* @author iconmaster
*/
public enum Rule implements IElementType {
BLOCK_COMMENT(null,(a,i)->{ | // Path: src/com/iconmaster/source/element/ISpecialRule.java
// public class RuleResult {
// public Element ret;
// public int del;
//
// public RuleResult(Element ret, int del) {
// this.ret = ret;
// this.del = del;
// }
// }
//
// Path: src/com/iconmaster/source/parse/Parser.java
// public class Parser {... | if (a.get(i).type==TokenRule.SYMBOL && "/*".equals(a.get(i).args[0])) { |
iconmaster5326/Source | src/com/iconmaster/source/link/LinkGraph.java | // Path: src/com/iconmaster/source/prototype/Import.java
// public class Import {
// public String name;
// public String alias;
// public boolean isFile;
// public boolean resolved = false;
// public boolean compiled = false;
// public Range range;
// public SourcePackage pkg = null;
//
// public Import(Strin... | import com.iconmaster.source.prototype.Import;
import java.util.ArrayList;
import java.util.HashMap; | package com.iconmaster.source.link;
/**
*
* @author iconmaster
*/
public class LinkGraph {
public static class LinkNode {
public ArrayList<LinkNode> connectedTo = new ArrayList<>();
public String name; | // Path: src/com/iconmaster/source/prototype/Import.java
// public class Import {
// public String name;
// public String alias;
// public boolean isFile;
// public boolean resolved = false;
// public boolean compiled = false;
// public Range range;
// public SourcePackage pkg = null;
//
// public Import(Strin... | public Import data; |
iconmaster5326/Source | src/com/iconmaster/source/element/ISpecialRule.java | // Path: src/com/iconmaster/source/exception/SourceException.java
// public class SourceException extends Exception {
// private final Range range;
//
// public SourceException(Range range) {
// super(range.toString()+": Unknown Source exception");
// this.range = range;
// }
//
// public SourceException(Ra... | import com.iconmaster.source.exception.SourceException;
import java.util.ArrayList; | package com.iconmaster.source.element;
/**
*
* @author iconmaster
*/
public interface ISpecialRule {
public class RuleResult {
public Element ret;
public int del;
public RuleResult(Element ret, int del) {
this.ret = ret;
this.del = del;
}
}
| // Path: src/com/iconmaster/source/exception/SourceException.java
// public class SourceException extends Exception {
// private final Range range;
//
// public SourceException(Range range) {
// super(range.toString()+": Unknown Source exception");
// this.range = range;
// }
//
// public SourceException(Ra... | public RuleResult match(ArrayList<Element> a, int i) throws SourceException; |
iconmaster5326/Source | src/com/iconmaster/source/compile/Operation.java | // Path: src/com/iconmaster/source/prototype/TypeDef.java
// public class TypeDef {
// public static final TypeDef UNKNOWN = new TypeDef();
// public static final TypeDef STRING = new TypeDef("string");
// public static final TypeDef ARRAY = new TypeDef("array");
// public static final TypeDef LIST = new TypeDef("l... | import com.iconmaster.source.prototype.TypeDef;
import com.iconmaster.source.util.Range;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects; | case ENDB:
case DO:
case LABEL:
case GOTO:
case GOTOT:
case GOTOF:
case NATIVE:
case DEF:
case ITER:
return false;
default:
return true;
}
}
public boolean isBlockStarter() {
switch (this) {
case IF:
case WHILE:
case REP:
case FOR:
retu... | // Path: src/com/iconmaster/source/prototype/TypeDef.java
// public class TypeDef {
// public static final TypeDef UNKNOWN = new TypeDef();
// public static final TypeDef STRING = new TypeDef("string");
// public static final TypeDef ARRAY = new TypeDef("array");
// public static final TypeDef LIST = new TypeDef("l... | public Range range; |
iconmaster5326/Source | src/com/iconmaster/source/compile/Operation.java | // Path: src/com/iconmaster/source/prototype/TypeDef.java
// public class TypeDef {
// public static final TypeDef UNKNOWN = new TypeDef();
// public static final TypeDef STRING = new TypeDef("string");
// public static final TypeDef ARRAY = new TypeDef("array");
// public static final TypeDef LIST = new TypeDef("l... | import com.iconmaster.source.prototype.TypeDef;
import com.iconmaster.source.util.Range;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Objects; | case DO:
case LABEL:
case GOTO:
case GOTOT:
case GOTOF:
case NATIVE:
case DEF:
case ITER:
return false;
default:
return true;
}
}
public boolean isBlockStarter() {
switch (this) {
case IF:
case WHILE:
case REP:
case FOR:
return true;
de... | // Path: src/com/iconmaster/source/prototype/TypeDef.java
// public class TypeDef {
// public static final TypeDef UNKNOWN = new TypeDef();
// public static final TypeDef STRING = new TypeDef("string");
// public static final TypeDef ARRAY = new TypeDef("array");
// public static final TypeDef LIST = new TypeDef("l... | public TypeDef type; |
iconmaster5326/Source | src/com/iconmaster/source/exception/SourceUndefinedFunctionException.java | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | import com.iconmaster.source.util.Range; | package com.iconmaster.source.exception;
/**
*
* @author iconmaster
*/
public class SourceUndefinedFunctionException extends SourceException {
public String var;
| // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | public SourceUndefinedFunctionException(Range range, String message, String var) { |
iconmaster5326/Source | src/com/iconmaster/source/link/platform/hppl/HPPLNaming.java | // Path: src/com/iconmaster/source/prototype/Function.java
// public class Function implements IDirectable {
// protected String name;
// protected ArrayList<Field> args;
// public Element rawReturns;
// protected ArrayList<String> directives = new ArrayList<>();
// public ArrayList<Element> rawCode;
// protected... | import com.iconmaster.source.prototype.Function; | package com.iconmaster.source.link.platform.hppl;
/**
*
* @author iconmaster
*/
public class HPPLNaming {
public static String[] ILLEGAL_IDENTIFIERS = new String[] { //Someday, I need to put ALL HPPL function names here.
"i","e"
};
public static int varsMade = -1;
public static String getNewName() {
va... | // Path: src/com/iconmaster/source/prototype/Function.java
// public class Function implements IDirectable {
// protected String name;
// protected ArrayList<Field> args;
// public Element rawReturns;
// protected ArrayList<String> directives = new ArrayList<>();
// public ArrayList<Element> rawCode;
// protected... | public static String formatFuncName(Function fn) { |
iconmaster5326/Source | src/com/iconmaster/source/link/platform/hppl/HPPLField.java | // Path: src/com/iconmaster/source/link/platform/hppl/InlinedExpression.java
// public static class InlineOp {
// public Operation op;
// public Status status = null;
// public int refs = 0;
// public SpecialOp spec;
// public int matchingBlock = -1;
//
// public InlineOp(Operation op) {
// this.op = op;
// }... | import com.iconmaster.source.link.platform.hppl.InlinedExpression.InlineOp;
import com.iconmaster.source.prototype.Field; | package com.iconmaster.source.link.platform.hppl;
/**
*
* @author iconmaster
*/
public class HPPLField {
public String compileName;
public InlinedExpression expr; | // Path: src/com/iconmaster/source/link/platform/hppl/InlinedExpression.java
// public static class InlineOp {
// public Operation op;
// public Status status = null;
// public int refs = 0;
// public SpecialOp spec;
// public int matchingBlock = -1;
//
// public InlineOp(Operation op) {
// this.op = op;
// }... | public Field f; |
iconmaster5326/Source | src/com/iconmaster/source/link/platform/hppl/HPPLField.java | // Path: src/com/iconmaster/source/link/platform/hppl/InlinedExpression.java
// public static class InlineOp {
// public Operation op;
// public Status status = null;
// public int refs = 0;
// public SpecialOp spec;
// public int matchingBlock = -1;
//
// public InlineOp(Operation op) {
// this.op = op;
// }... | import com.iconmaster.source.link.platform.hppl.InlinedExpression.InlineOp;
import com.iconmaster.source.prototype.Field; | package com.iconmaster.source.link.platform.hppl;
/**
*
* @author iconmaster
*/
public class HPPLField {
public String compileName;
public InlinedExpression expr;
public Field f;
public HPPLField(String compileName, InlinedExpression expr, Field f) {
this.compileName = compileName;
this.expr = expr;
thi... | // Path: src/com/iconmaster/source/link/platform/hppl/InlinedExpression.java
// public static class InlineOp {
// public Operation op;
// public Status status = null;
// public int refs = 0;
// public SpecialOp spec;
// public int matchingBlock = -1;
//
// public InlineOp(Operation op) {
// this.op = op;
// }... | InlineOp op = expr.get(expr.size()-1); |
iconmaster5326/Source | src/com/iconmaster/source/compile/Expression.java | // Path: src/com/iconmaster/source/prototype/TypeDef.java
// public class TypeDef {
// public static final TypeDef UNKNOWN = new TypeDef();
// public static final TypeDef STRING = new TypeDef("string");
// public static final TypeDef ARRAY = new TypeDef("array");
// public static final TypeDef LIST = new TypeDef("l... | import com.iconmaster.source.prototype.TypeDef;
import java.util.ArrayList; | package com.iconmaster.source.compile;
/**
*
* @author iconmaster
*/
public class Expression extends ArrayList<Operation> {
public String retVar; | // Path: src/com/iconmaster/source/prototype/TypeDef.java
// public class TypeDef {
// public static final TypeDef UNKNOWN = new TypeDef();
// public static final TypeDef STRING = new TypeDef("string");
// public static final TypeDef ARRAY = new TypeDef("array");
// public static final TypeDef LIST = new TypeDef("l... | public DataType type = new DataType(TypeDef.UNKNOWN,true); |
iconmaster5326/Source | src/com/iconmaster/source/prototype/Prototyper.java | // Path: src/com/iconmaster/source/element/Element.java
// public class Element implements IDirectable {
// public IElementType type;
// public Object[] args = new Object[10];
// public Element dataType = null;
// public ArrayList<String> directives = new ArrayList<>();
// public Range range;
//
// public Elemen... | import com.iconmaster.source.element.Element;
import com.iconmaster.source.exception.SourceException;
import java.util.ArrayList; | package com.iconmaster.source.prototype;
/**
*
* @author iconmaster
*/
public class Prototyper {
public static class PrototypeResult {
public SourcePackage result; | // Path: src/com/iconmaster/source/element/Element.java
// public class Element implements IDirectable {
// public IElementType type;
// public Object[] args = new Object[10];
// public Element dataType = null;
// public ArrayList<String> directives = new ArrayList<>();
// public Range range;
//
// public Elemen... | public ArrayList<SourceException> errors; |
iconmaster5326/Source | src/com/iconmaster/source/prototype/Prototyper.java | // Path: src/com/iconmaster/source/element/Element.java
// public class Element implements IDirectable {
// public IElementType type;
// public Object[] args = new Object[10];
// public Element dataType = null;
// public ArrayList<String> directives = new ArrayList<>();
// public Range range;
//
// public Elemen... | import com.iconmaster.source.element.Element;
import com.iconmaster.source.exception.SourceException;
import java.util.ArrayList; | package com.iconmaster.source.prototype;
/**
*
* @author iconmaster
*/
public class Prototyper {
public static class PrototypeResult {
public SourcePackage result;
public ArrayList<SourceException> errors;
public PrototypeResult(SourcePackage result, ArrayList<SourceException> errors) {
this.result = re... | // Path: src/com/iconmaster/source/element/Element.java
// public class Element implements IDirectable {
// public IElementType type;
// public Object[] args = new Object[10];
// public Element dataType = null;
// public ArrayList<String> directives = new ArrayList<>();
// public Range range;
//
// public Elemen... | public static PrototypeResult prototype(ArrayList<Element> a) { |
iconmaster5326/Source | src/com/iconmaster/source/exception/SourceImportException.java | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | import com.iconmaster.source.util.Range; | package com.iconmaster.source.exception;
/**
*
* @author iconmaster
*/
public class SourceImportException extends SourceException {
public String var;
| // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | public SourceImportException(Range range, String message, String var) { |
iconmaster5326/Source | src/com/iconmaster/source/compile/DataType.java | // Path: src/com/iconmaster/source/prototype/ParamTypeDef.java
// public class ParamTypeDef extends TypeDef {
// public int paramNo;
// public TypeDef baseType;
//
// public ParamTypeDef(String name, int paramNo) {
// this(name,paramNo,TypeDef.UNKNOWN);
// }
//
// public ParamTypeDef(String name, int paramNo,... | import com.iconmaster.source.prototype.ParamTypeDef;
import com.iconmaster.source.prototype.TypeDef;
import java.util.Arrays; | public static DataType getNewType(DataType thisType, DataType other) {
if (thisType==null) {
return other;
}
if (other==null) {
other = new DataType(true);
}
if (!thisType.weak) {
return thisType;
}
return commonType(thisType, other);
}
public static DataType commonType(DataType type1, DataT... | // Path: src/com/iconmaster/source/prototype/ParamTypeDef.java
// public class ParamTypeDef extends TypeDef {
// public int paramNo;
// public TypeDef baseType;
//
// public ParamTypeDef(String name, int paramNo) {
// this(name,paramNo,TypeDef.UNKNOWN);
// }
//
// public ParamTypeDef(String name, int paramNo,... | if (thisType.type instanceof ParamTypeDef) { |
iconmaster5326/Source | src/com/iconmaster/source/link/platform/hppl/HPPLFunction.java | // Path: src/com/iconmaster/source/prototype/Function.java
// public class Function implements IDirectable {
// protected String name;
// protected ArrayList<Field> args;
// public Element rawReturns;
// protected ArrayList<String> directives = new ArrayList<>();
// public ArrayList<Element> rawCode;
// protected... | import com.iconmaster.source.prototype.Function;
import com.iconmaster.source.util.Directives;
import java.util.ArrayList; | package com.iconmaster.source.link.platform.hppl;
/**
*
* @author iconmaster
*/
public class HPPLFunction {
public String compileName;
public ArrayList<HPPLVariable> args;
public InlinedExpression code; | // Path: src/com/iconmaster/source/prototype/Function.java
// public class Function implements IDirectable {
// protected String name;
// protected ArrayList<Field> args;
// public Element rawReturns;
// protected ArrayList<String> directives = new ArrayList<>();
// public ArrayList<Element> rawCode;
// protected... | public Function fn; |
iconmaster5326/Source | src/com/iconmaster/source/tokenize/Tokenizer.java | // Path: src/com/iconmaster/source/element/Element.java
// public class Element implements IDirectable {
// public IElementType type;
// public Object[] args = new Object[10];
// public Element dataType = null;
// public ArrayList<String> directives = new ArrayList<>();
// public Range range;
//
// public Elemen... | import com.iconmaster.source.element.Element;
import com.iconmaster.source.exception.SourceException;
import com.iconmaster.source.util.Range;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern; | package com.iconmaster.source.tokenize;
/**
*
* @author iconmaster
*/
public class Tokenizer {
public static ArrayList<Element> tokenize(String input) throws SourceException {
return tokenize(input, true);
}
public static ArrayList<Element> tokenize(String input, boolean expand) throws SourceException {
A... | // Path: src/com/iconmaster/source/element/Element.java
// public class Element implements IDirectable {
// public IElementType type;
// public Object[] args = new Object[10];
// public Element dataType = null;
// public ArrayList<String> directives = new ArrayList<>();
// public Range range;
//
// public Elemen... | a.add(new Token(new Range(olen,len),rule,got)); |
iconmaster5326/Source | src/com/iconmaster/source/exception/SourceSafeModeException.java | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | import com.iconmaster.source.util.Range; | package com.iconmaster.source.exception;
/**
*
* @author iconmaster
*/
public class SourceSafeModeException extends SourceException {
public String var;
| // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | public SourceSafeModeException(Range range, String message, String var) { |
iconmaster5326/Source | src/com/iconmaster/source/exception/SourceUndefinedVariableException.java | // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | import com.iconmaster.source.util.Range; | package com.iconmaster.source.exception;
/**
*
* @author iconmaster
*/
public class SourceUndefinedVariableException extends SourceException {
public String var;
| // Path: src/com/iconmaster/source/util/Range.java
// public class Range {
// public final int low;
// public final int high;
//
// public Range(int low, int high) {
// this.low = Math.min(low, high);
// this.high = Math.max(low, high);
// }
//
// @Override
// public String toString() {
// return low+"~"+... | public SourceUndefinedVariableException(Range range, String message, String var) { |
iconmaster5326/Source | src/com/iconmaster/source/assemble/AssembledOutput.java | // Path: src/com/iconmaster/source/SourceOptions.java
// public class SourceOptions {
// public String input;
// public String platform;
// public boolean compile;
//
// public File assets;
// public File libs;
// public File outputFile;
//
// public OutputStream sout = System.out;
// public InputStream sin... | import com.iconmaster.source.SourceOptions;
import com.iconmaster.source.exception.SourceException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger; | package com.iconmaster.source.assemble;
/**
*
* @author iconmaster
*/
public abstract class AssembledOutput {
public ArrayList<SourceException> errs = new ArrayList<>();
| // Path: src/com/iconmaster/source/SourceOptions.java
// public class SourceOptions {
// public String input;
// public String platform;
// public boolean compile;
//
// public File assets;
// public File libs;
// public File outputFile;
//
// public OutputStream sout = System.out;
// public InputStream sin... | public void saveToFile(SourceOptions opts) { |
iconmaster5326/Source | src/com/iconmaster/source/prototype/FunctionCall.java | // Path: src/com/iconmaster/source/compile/DataType.java
// public class DataType {
// public TypeDef type;
// public boolean weak;
// public DataType[] params = new DataType[0];
//
// @Override
// public String toString() {
// StringBuilder sb = new StringBuilder();
// sb.append("");
// sb.append(type);
//... | import com.iconmaster.source.compile.DataType;
import java.util.ArrayList; | package com.iconmaster.source.prototype;
/**
*
* @author iconmaster
*/
public class FunctionCall {
public String name; | // Path: src/com/iconmaster/source/compile/DataType.java
// public class DataType {
// public TypeDef type;
// public boolean weak;
// public DataType[] params = new DataType[0];
//
// @Override
// public String toString() {
// StringBuilder sb = new StringBuilder();
// sb.append("");
// sb.append(type);
//... | public ArrayList<DataType> args; |
kenwdelong/stability-utils | src/main/java/com/kendelong/util/spring/JmxExportingAspectPostProcessor.java | // Path: src/main/java/com/kendelong/util/monitoring/webservice/ExternalNameElementComputer.java
// public class ExternalNameElementComputer
// {
// private final Logger logger = LoggerFactory.getLogger(this.getClass());
//
// public String computeExternalNameElement(Class<?> clazz)
// {
// Class<?> correctClazz ... | import java.util.Map;
import javax.management.ObjectName;
import org.aopalliance.aop.Advice;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.Advisor;
import org.springframework.aop.aspectj.AbstractAspectJAdvice;
import org.springframework.aop.framework.Advised;
import org.springf... | package com.kendelong.util.spring;
/**
* This bean can export AspectJ-style aspects to JMX when registered. For example:
*
* <pre>
* {@code
<bean class="com.kendelong.util.circuitbreaker.CircuitBreakerAspect" scope="prototype"/>
<bean class="com.kendelong.util.spring.JmxExportingAspectPostProcessor" la... | // Path: src/main/java/com/kendelong/util/monitoring/webservice/ExternalNameElementComputer.java
// public class ExternalNameElementComputer
// {
// private final Logger logger = LoggerFactory.getLogger(this.getClass());
//
// public String computeExternalNameElement(Class<?> clazz)
// {
// Class<?> correctClazz ... | private final ExternalNameElementComputer nameElementComputer = new ExternalNameElementComputer(); |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/FragmentDrawer.java | // Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
// private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
// private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
// private static final String AMERICAN_TYPEWRITER = "AmericanTyp... | import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import an... | package com.pushapp.press;
/**
* @author Bryan Lamtoo
*/
public class FragmentDrawer extends Fragment {
private static String TAG = FragmentDrawer.class.getSimpleName();
private RecyclerView recyclerView;
private ActionBarDrawerToggle mDrawerToggle;
private DrawerLayout mDrawerLayout; | // Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
// private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
// private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
// private static final String AMERICAN_TYPEWRITER = "AmericanTyp... | private NavigationDrawerAdapter adapter; |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/FragmentDrawer.java | // Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
// private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
// private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
// private static final String AMERICAN_TYPEWRITER = "AmericanTyp... | import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import an... | package com.pushapp.press;
/**
* @author Bryan Lamtoo
*/
public class FragmentDrawer extends Fragment {
private static String TAG = FragmentDrawer.class.getSimpleName();
private RecyclerView recyclerView;
private ActionBarDrawerToggle mDrawerToggle;
private DrawerLayout mDrawerLayout;
private... | // Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
// private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
// private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
// private static final String AMERICAN_TYPEWRITER = "AmericanTyp... | public static List<NavDrawerItem> getData() { |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/FragmentDrawer.java | // Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
// private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
// private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
// private static final String AMERICAN_TYPEWRITER = "AmericanTyp... | import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import an... | package com.pushapp.press;
/**
* @author Bryan Lamtoo
*/
public class FragmentDrawer extends Fragment {
private static String TAG = FragmentDrawer.class.getSimpleName();
private RecyclerView recyclerView;
private ActionBarDrawerToggle mDrawerToggle;
private DrawerLayout mDrawerLayout;
private... | // Path: app/src/main/java/com/pushapp/press/util/TypefaceManager.java
// public class TypefaceManager {
// private static final String ROBOTO_REGULAR = "Roboto-Regular.ttf";
// private static final String ROBOTO_MEDIUM = "Roboto-Medium.ttf";
// private static final String AMERICAN_TYPEWRITER = "AmericanTyp... | private TypefaceManager fontManager; |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/util/ObjectSerializer.java | // Path: app/src/main/java/com/pushapp/press/model/WrappedIOException.java
// public class WrappedIOException {
// public static IOException wrap(final Throwable e) {
// return wrap(e.getMessage(), e);
// }
//
// public static IOException wrap(final String message, final Throwable e) {
// f... | import com.pushapp.press.model.WrappedIOException;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable; | package com.pushapp.press.util;
/**
* @author Bryan Lamtoo.
*/
public class ObjectSerializer {
public static String serialize(Serializable obj) throws IOException {
if (obj == null) return "";
try {
ByteArrayOutputStream serialObj = new ByteArrayOutputStream();
ObjectO... | // Path: app/src/main/java/com/pushapp/press/model/WrappedIOException.java
// public class WrappedIOException {
// public static IOException wrap(final Throwable e) {
// return wrap(e.getMessage(), e);
// }
//
// public static IOException wrap(final String message, final Throwable e) {
// f... | throw WrappedIOException.wrap("Serialization error: " + e.getMessage(), e); |
PushOCCRP/Push-Android | app/src/androidTest/java/com/pushapp/press/BasicTest.java | // Path: app/src/androidTest/java/com/pushapp/press/ElapsedTimeIdlingResource.java
// public class ElapsedTimeIdlingResource implements IdlingResource {
// private final long startTime;
// private final long waitingTime;
// private ResourceCallback resourceCallback;
//
// public ElapsedTimeIdlingResour... | import android.support.test.espresso.Espresso;
import android.support.test.espresso.IdlingPolicies;
import android.support.test.espresso.IdlingResource;
import android.support.test.espresso.PerformException;
import android.support.test.espresso.UiController;
import android.support.test.espresso.ViewAction;
import andro... | package com.pushapp.press;
//import tools.fastlane.screengrab.Screengrab;
//import tools.fastlane.screengrab.locale.LocaleTestRule;
@RunWith(AndroidJUnit4.class)
public class
BasicTest {
// @ClassRule
// public static final TestRule classRule = new LocaleTestRule();
@Rule
public final ActivityTe... | // Path: app/src/androidTest/java/com/pushapp/press/ElapsedTimeIdlingResource.java
// public class ElapsedTimeIdlingResource implements IdlingResource {
// private final long startTime;
// private final long waitingTime;
// private ResourceCallback resourceCallback;
//
// public ElapsedTimeIdlingResour... | IdlingResource idlingResource = new ElapsedTimeIdlingResource(waitingTime); |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/util/AuthenticationManager.java | // Path: app/src/main/java/com/pushapp/press/interfaces/AuthenticationManager/AuthenticationDelegate.java
// public interface AuthenticationDelegate {
// void didLoginSuccessfully();
// void didReceiveErrorOnLogin();
// }
//
// Path: app/src/main/java/com/pushapp/press/interfaces/RestApi.java
// public interfa... | import android.content.Context;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import com.pushapp.press.R;
import com.pushapp.press.interfaces.AuthenticationManager.AuthenticationDelegate;
import com.pushapp.press.interfaces.Res... | package com.pushapp.press.util;
public class AuthenticationManager {
public static AuthenticationManager authenticationManager;
private Context applicationContext; | // Path: app/src/main/java/com/pushapp/press/interfaces/AuthenticationManager/AuthenticationDelegate.java
// public interface AuthenticationDelegate {
// void didLoginSuccessfully();
// void didReceiveErrorOnLogin();
// }
//
// Path: app/src/main/java/com/pushapp/press/interfaces/RestApi.java
// public interfa... | private RestApi restAPI; |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/fragment/YouTubeFragment.java | // Path: app/src/main/java/com/pushapp/press/interfaces/YouTubeFragmentInterface.java
// public interface YouTubeFragmentInterface {
// String getYouTubeVideoId();
// }
| import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.youtube.player.YouTubeInitializationResult;
import com.google.android.youtube.pla... | package com.pushapp.press.fragment;
/**
* Created by christopher on 1/8/16.
*/
public class YouTubeFragment extends Fragment {
private static YouTubePlayer mYoutubePlayer;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstance... | // Path: app/src/main/java/com/pushapp/press/interfaces/YouTubeFragmentInterface.java
// public interface YouTubeFragmentInterface {
// String getYouTubeVideoId();
// }
// Path: app/src/main/java/com/pushapp/press/fragment/YouTubeFragment.java
import android.app.Fragment;
import android.app.FragmentTransaction;
i... | YouTubeFragmentInterface parentActivity = (YouTubeFragmentInterface)getActivity(); |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/interfaces/RestApi.java | // Path: app/src/main/java/com/pushapp/press/model/ArticlePost.java
// public class ArticlePost implements Serializable {
//
// @SerializedName("start_date")
// @Expose
// private Integer startDate;
// @SerializedName("end_date")
// @Expose
// private Integer endDate;
//... | import com.pushapp.press.model.ArticlePost;
import com.pushapp.press.model.LoginRequest;
import java.util.HashMap;
import retrofit.Callback;
import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Query; | package com.pushapp.press.interfaces;
/**
* @author Bryan Lamtoo.
*/
public interface RestApi {
@GET("/articles.json") | // Path: app/src/main/java/com/pushapp/press/model/ArticlePost.java
// public class ArticlePost implements Serializable {
//
// @SerializedName("start_date")
// @Expose
// private Integer startDate;
// @SerializedName("end_date")
// @Expose
// private Integer endDate;
//... | void getArticles(@Query("installation_uuid")String installation_uuid, @Query("api_key")String api_key, Callback<ArticlePost> response); |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/fragment/DonationSummary.java | // Path: app/src/main/java/com/pushapp/press/interfaces/OnFragmentInteractionListener.java
// public interface OnFragmentInteractionListener {
// void onFragmentInteraction(Uri id);
// void onFragmentInteraction(String id);
// }
| import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.androidquery.AQuery;
import com.pushapp.press.interfaces.OnFragmentInteractionListener;
import com.pushapp.press.R; | package com.pushapp.press.fragment;
/**
* Created by Zed on 6/15/2015.
*/
public class DonationSummary extends Fragment {
AQuery aq; | // Path: app/src/main/java/com/pushapp/press/interfaces/OnFragmentInteractionListener.java
// public interface OnFragmentInteractionListener {
// void onFragmentInteraction(Uri id);
// void onFragmentInteraction(String id);
// }
// Path: app/src/main/java/com/pushapp/press/fragment/DonationSummary.java
import... | private OnFragmentInteractionListener mListener; |
PushOCCRP/Push-Android | app/src/main/java/com/pushapp/press/fragment/DonatePage.java | // Path: app/src/main/java/com/pushapp/press/interfaces/OnFragmentInteractionListener.java
// public interface OnFragmentInteractionListener {
// void onFragmentInteraction(Uri id);
// void onFragmentInteraction(String id);
// }
| import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
impor... | package com.pushapp.press.fragment;
/**
* A simple {@link Fragment} subclass.
* Activities that contain this fragment must implement the
* {@link OnFragmentInteractionListener} interface
* to handle interaction events.
* Use the {@link DonatePage#newInstance} factory method to
* create an instance of this fra... | // Path: app/src/main/java/com/pushapp/press/interfaces/OnFragmentInteractionListener.java
// public interface OnFragmentInteractionListener {
// void onFragmentInteraction(Uri id);
// void onFragmentInteraction(String id);
// }
// Path: app/src/main/java/com/pushapp/press/fragment/DonatePage.java
import andr... | private OnFragmentInteractionListener mListener; |
katjas/PDFrenderer | src/com/sun/pdfview/font/ttf/CmapTable.java | // Path: src/com/sun/pdfview/PDFDebugger.java
// public class PDFDebugger {
// public final static String DEBUG_DCTDECODE_DATA = "debugdctdecode";
// public static final boolean DEBUG_TEXT = false;
// public static final boolean DEBUG_IMAGES = false;
// public static final boolean DEBUG_OPERATORS = ... | import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.SortedMap;
import java.util.TreeMap;
import com.sun.pdfview.PDFDebugger;
| public void removeCMap(short platformID, short platformSpecificID) {
CmapSubtable key = new CmapSubtable(platformID, platformSpecificID);
this.subtables.remove(key);
}
@Override public void setData(ByteBuffer data) {
setVersion(data.getShort());
short nu... | // Path: src/com/sun/pdfview/PDFDebugger.java
// public class PDFDebugger {
// public final static String DEBUG_DCTDECODE_DATA = "debugdctdecode";
// public static final boolean DEBUG_TEXT = false;
// public static final boolean DEBUG_IMAGES = false;
// public static final boolean DEBUG_OPERATORS = ... | PDFDebugger.debug("Error reading map. PlatformID=" +
|
andriydruk/RxDNSSD | rx2dnssd/src/main/java/com/github/druk/rx2dnssd/Rx2RegisterListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | import com.github.druk.dnssd.DNSSDRegistration;
import com.github.druk.dnssd.DNSSDService;
import com.github.druk.dnssd.RegisterListener;
import io.reactivex.FlowableEmitter; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | public void serviceRegistered(DNSSDRegistration registration, int flags, String serviceName, String regType, String domain) { |
andriydruk/RxDNSSD | rx2dnssd/src/main/java/com/github/druk/rx2dnssd/Rx2RegisterListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | import com.github.druk.dnssd.DNSSDRegistration;
import com.github.druk.dnssd.DNSSDService;
import com.github.druk.dnssd.RegisterListener;
import io.reactivex.FlowableEmitter; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | public void operationFailed(DNSSDService service, int errorCode) { |
andriydruk/RxDNSSD | rxdnssd/src/main/java/com/github/druk/rxdnssd/RxRegisterListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | import com.github.druk.dnssd.DNSSDRegistration;
import com.github.druk.dnssd.DNSSDService;
import com.github.druk.dnssd.RegisterListener;
import rx.Subscriber; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | public void serviceRegistered(DNSSDRegistration registration, int flags, String serviceName, String regType, String domain) { |
andriydruk/RxDNSSD | rxdnssd/src/main/java/com/github/druk/rxdnssd/RxRegisterListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | import com.github.druk.dnssd.DNSSDRegistration;
import com.github.druk.dnssd.DNSSDService;
import com.github.druk.dnssd.RegisterListener;
import rx.Subscriber; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDRegistration.java
// public interface DNSSDRegistration extends DNSSDService {
// /** Get a reference to the primary TXT record of a registered service.<P>
// The record can be updated by sending it an update() message.<P>
//
// <P>
// @return A {@link D... | public void operationFailed(DNSSDService service, int errorCode) { |
andriydruk/RxDNSSD | rxdnssd/src/main/java/com/github/druk/rxdnssd/RxDnssdEmbedded.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDEmbedded.java
// public class DNSSDEmbedded extends DNSSD {
//
// public static final int DEFAULT_STOP_TIMER_DELAY = 5000; //5 sec
//
// private static final String TAG = "DNSSDEmbedded";
// private final long mStopTimerDelay;
// private final Ha... | import android.content.Context;
import com.github.druk.dnssd.DNSSDEmbedded; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDEmbedded.java
// public class DNSSDEmbedded extends DNSSD {
//
// public static final int DEFAULT_STOP_TIMER_DELAY = 5000; //5 sec
//
// private static final String TAG = "DNSSDEmbedded";
// private final long mStopTimerDelay;
// private final Ha... | super(new DNSSDEmbedded(context)); |
andriydruk/RxDNSSD | rx2dnssd/src/main/java/com/github/druk/rx2dnssd/Rx2BrowseListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/BrowseListener.java
// public interface BrowseListener extends BaseListener {
// /** Called to report discovered services.<P>
//
// @param browser
// The active browse service.
// <P>
// @param flags
// Possible values are DNSSD.MORE_COMING.
// <P>
... | import com.github.druk.dnssd.BrowseListener;
import com.github.druk.dnssd.DNSSDService;
import io.reactivex.FlowableEmitter; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/BrowseListener.java
// public interface BrowseListener extends BaseListener {
// /** Called to report discovered services.<P>
//
// @param browser
// The active browse service.
// <P>
// @param flags
// Possible values are DNSSD.MORE_COMING.
// <P>
... | public void serviceFound(DNSSDService browser, int flags, int ifIndex, String serviceName, String regType, String domain) { |
andriydruk/RxDNSSD | rx2dnssd/src/main/java/com/github/druk/rx2dnssd/Rx2ResolveListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDService.java
// public interface DNSSDService
// {
// /**
// Halt the active operation and free resources associated with the DNSSDService.<P>
//
// Any services or records registered with this DNSSDService will be deregistered. Any
// Browse, Resolve, or Que... | import com.github.druk.dnssd.DNSSDService;
import com.github.druk.dnssd.ResolveListener;
import java.util.Map;
import io.reactivex.FlowableEmitter; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDService.java
// public interface DNSSDService
// {
// /**
// Halt the active operation and free resources associated with the DNSSDService.<P>
//
// Any services or records registered with this DNSSDService will be deregistered. Any
// Browse, Resolve, or Que... | public void serviceResolved(DNSSDService resolver, int flags, int ifIndex, String fullName, String hostName, int port, Map<String, String> txtRecord) { |
andriydruk/RxDNSSD | rxdnssd/src/main/java/com/github/druk/rxdnssd/RxResolveListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDService.java
// public interface DNSSDService
// {
// /**
// Halt the active operation and free resources associated with the DNSSDService.<P>
//
// Any services or records registered with this DNSSDService will be deregistered. Any
// Browse, Resolve, or Que... | import com.github.druk.dnssd.DNSSDService;
import com.github.druk.dnssd.ResolveListener;
import java.util.Map;
import rx.Subscriber; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDService.java
// public interface DNSSDService
// {
// /**
// Halt the active operation and free resources associated with the DNSSDService.<P>
//
// Any services or records registered with this DNSSDService will be deregistered. Any
// Browse, Resolve, or Que... | public void serviceResolved(DNSSDService resolver, int flags, int ifIndex, String fullName, String hostName, int port, Map<String, String> txtRecord) { |
andriydruk/RxDNSSD | rx2dnssd/src/main/java/com/github/druk/rx2dnssd/Rx2DnssdEmbedded.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDEmbedded.java
// public class DNSSDEmbedded extends DNSSD {
//
// public static final int DEFAULT_STOP_TIMER_DELAY = 5000; //5 sec
//
// private static final String TAG = "DNSSDEmbedded";
// private final long mStopTimerDelay;
// private final Ha... | import android.content.Context;
import com.github.druk.dnssd.DNSSDEmbedded; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/DNSSDEmbedded.java
// public class DNSSDEmbedded extends DNSSD {
//
// public static final int DEFAULT_STOP_TIMER_DELAY = 5000; //5 sec
//
// private static final String TAG = "DNSSDEmbedded";
// private final long mStopTimerDelay;
// private final Ha... | super(new DNSSDEmbedded(context)); |
andriydruk/RxDNSSD | rxdnssd/src/main/java/com/github/druk/rxdnssd/RxBrowseListener.java | // Path: dnssd/src/main/java/com/github/druk/dnssd/BrowseListener.java
// public interface BrowseListener extends BaseListener {
// /** Called to report discovered services.<P>
//
// @param browser
// The active browse service.
// <P>
// @param flags
// Possible values are DNSSD.MORE_COMING.
// <P>
... | import com.github.druk.dnssd.BrowseListener;
import com.github.druk.dnssd.DNSSDService;
import rx.Subscriber; | /*
* Copyright (C) 2016 Andriy Druk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: dnssd/src/main/java/com/github/druk/dnssd/BrowseListener.java
// public interface BrowseListener extends BaseListener {
// /** Called to report discovered services.<P>
//
// @param browser
// The active browse service.
// <P>
// @param flags
// Possible values are DNSSD.MORE_COMING.
// <P>
... | public void serviceFound(DNSSDService browser, int flags, int ifIndex, String serviceName, String regType, String domain) { |
USC-SQL/Violist | test/usc/sql/string/testcase/SimpleTest.java | // Path: src/LoggerLib/Logger.java
// public class Logger {
// static int counter=0;
// public static void increase(int i)
// {
// counter+=i;
// }
// public static void report()
// {
// System.out.println(counter);
// }
// public static void reportString(String v, String log){
// System.out.println(log+"... | import LoggerLib.Logger;
import usc.sql.ir.Init; | package usc.sql.string.testcase;
class A
{
String a;
public void setA(String a)
{
this.a = a;
}
}
public class SimpleTest {
static String aa = "A";
public static String addA(String v)
{
return v+"A";
}
public static String tmp(String a)
{
for(int i=0;i<3;i++)
a = a + "a";
a = addA(a);
... | // Path: src/LoggerLib/Logger.java
// public class Logger {
// static int counter=0;
// public static void increase(int i)
// {
// counter+=i;
// }
// public static void report()
// {
// System.out.println(counter);
// }
// public static void reportString(String v, String log){
// System.out.println(log+"... | Logger.reportString(b,"Concat.NestedLoop"); |
USC-SQL/Violist | src/usc/sql/string/RegionNode.java | // Path: src/usc/sql/ir/Variable.java
// abstract public class Variable implements Serializable{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
// private Variable parent = null;
// private Set<String> interpretedValue = null;
// private List<String> interpretedValueL = null;
// /... | import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import usc.sql.ir.Variable;
import edu.usc.sql.graphs.EdgeInterface;
import edu.usc.sql.graphs.NodeInterface; | package usc.sql.string;
public class RegionNode {
private List<NodeInterface> nodeList = new ArrayList<>();
private RegionNode parent;
private List<RegionNode> children = new ArrayList<>();
private EdgeInterface backedge;
private int regionNumber; | // Path: src/usc/sql/ir/Variable.java
// abstract public class Variable implements Serializable{
//
// /**
// *
// */
// private static final long serialVersionUID = 1L;
// private Variable parent = null;
// private Set<String> interpretedValue = null;
// private List<String> interpretedValueL = null;
// /... | private Map<String,ArrayList<Variable>> useMap; |
MizzleDK/Mizuu | app/src/main/java/com/miz/mizuu/fragments/Prefs.java | // Path: app/src/main/java/com/miz/utils/FileUtils.java
// public class FileUtils {
//
// private FileUtils() {} // No instantiation!
//
// public static File getDatabaseFile(Context context) {
// return context.getDatabasePath(DatabaseHelper.DATABASE_NAME);
// }
//
// public static void copyFile(File src, F... | import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Locale;
import static com.miz.functions.PreferenceKeys.LANGUAGE_PREFERENCE;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import andro... | /*
* Copyright (C) 2014 Michell Bak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: app/src/main/java/com/miz/utils/FileUtils.java
// public class FileUtils {
//
// private FileUtils() {} // No instantiation!
//
// public static File getDatabaseFile(Context context) {
// return context.getDatabasePath(DatabaseHelper.DATABASE_NAME);
// }
//
// public static void copyFile(File src, F... | String path = FileUtils.copyDatabase(getActivity()); |
MizzleDK/Mizuu | app/src/main/java/com/miz/functions/GridSeason.java | // Path: app/src/main/java/com/miz/functions/PreferenceKeys.java
// public static final String TVSHOWS_COLLECTION_LAYOUT = "prefsSeasonsLayout";
| import android.content.Context;
import android.preference.PreferenceManager;
import com.miz.mizuu.R;
import java.io.File;
import static com.miz.functions.PreferenceKeys.TVSHOWS_COLLECTION_LAYOUT; | /*
* Copyright (C) 2014 Michell Bak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | // Path: app/src/main/java/com/miz/functions/PreferenceKeys.java
// public static final String TVSHOWS_COLLECTION_LAYOUT = "prefsSeasonsLayout";
// Path: app/src/main/java/com/miz/functions/GridSeason.java
import android.content.Context;
import android.preference.PreferenceManager;
import com.miz.mizuu.R;
import java... | mUseGridView = PreferenceManager.getDefaultSharedPreferences(mContext).getString(TVSHOWS_COLLECTION_LAYOUT, mContext.getString(R.string.gridView)).equals(mContext.getString(R.string.gridView)); |
cfloersch/RtspClient | src/main/java/xpertss/mime/Headers.java | // Path: src/main/java/xpertss/utils/Utils.java
// public class Utils {
//
// /**
// * Creates and returns an {@link InetSocketAddress} that represents the authority
// * of the given {@link java.net.URI}. If the {@link java.net.URI} does not define
// * a port then the specified default port is used in... | import xpertss.function.Predicate;
import xpertss.function.Predicates;
import xpertss.lang.Integers;
import xpertss.lang.Objects;
import xpertss.lang.Strings;
import xpertss.utils.Utils;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.NoSuchElementException; | /**
* Returns the set of headers with one header per line
*/
@Override
public String toString()
{
StringBuilder builder = new StringBuilder();
for(Enumeration<Header> e = headers(); e.hasMoreElements(); ) {
builder.append(e.nextElement()).append("\r\n");
}
return bui... | // Path: src/main/java/xpertss/utils/Utils.java
// public class Utils {
//
// /**
// * Creates and returns an {@link InetSocketAddress} that represents the authority
// * of the given {@link java.net.URI}. If the {@link java.net.URI} does not define
// * a port then the specified default port is used in... | if(!Utils.isWhiteSpace(header.charAt(0))) { |
cfloersch/RtspClient | src/main/java/xpertss/mime/impl/NamedHeaderValue.java | // Path: src/main/java/xpertss/mime/HeaderValue.java
// public interface HeaderValue {
//
//
// /**
// * Ths will return the value's name or {@code null} if it is not a
// * named value.
// */
// public String getName();
//
// /**
// * This will return the value's value.
// */
// publ... | import xpertss.mime.HeaderValue;
import xpertss.mime.Parameter;
import xpertss.lang.Objects;
import xpertss.lang.Strings; | /**
* Copyright XpertSoftware All rights reserved.
*
* Date: 3/18/11 9:45 PM
*/
package xpertss.mime.impl;
public class NamedHeaderValue implements HeaderValue {
private final String name;
private final String value; | // Path: src/main/java/xpertss/mime/HeaderValue.java
// public interface HeaderValue {
//
//
// /**
// * Ths will return the value's name or {@code null} if it is not a
// * named value.
// */
// public String getName();
//
// /**
// * This will return the value's value.
// */
// publ... | private final Parameter[] params; |
cfloersch/RtspClient | src/main/java/xpertss/mime/impl/ComplexValueHeader.java | // Path: src/main/java/xpertss/mime/Header.java
// public interface Header {
//
// /**
// * Http defines four types of headers. All headers not specifically
// * defined to be general, request, or response are treated as entity
// * headers.
// */
// public enum Type {
// /**
// * A ... | import xpertss.mime.Header;
import xpertss.mime.HeaderValue;
import xpertss.lang.Objects;
import xpertss.lang.Strings; | /**
* Copyright XpertSoftware All rights reserved.
*
* Date: 3/18/11 11:55 PM
*/
package xpertss.mime.impl;
public class ComplexValueHeader implements Header {
private final String name;
private final Type type; | // Path: src/main/java/xpertss/mime/Header.java
// public interface Header {
//
// /**
// * Http defines four types of headers. All headers not specifically
// * defined to be general, request, or response are treated as entity
// * headers.
// */
// public enum Type {
// /**
// * A ... | private final HeaderValue[] values; |
cfloersch/RtspClient | src/test/java/xpertss/rtsp/RtspClientTest.java | // Path: src/main/java/xpertss/media/MediaChannel.java
// public class MediaChannel implements Comparable<MediaChannel> {
//
// private final MediaDescription desc;
// private final Range<Integer> channels;
//
// public MediaChannel(MediaDescription desc, Range<Integer> channels)
// {
// this.desc =... | import org.junit.Test;
import xpertss.function.Consumer;
import xpertss.lang.Range;
import xpertss.media.MediaChannel;
import xpertss.media.MediaConsumer;
import xpertss.media.MediaType;
import xpertss.sdp.MediaDescription;
import xpertss.sdp.SessionDescription;
import xpertss.threads.Threads;
import java.net.ConnectEx... |
verify(handler, times(1)).onFailure(same(session), any(ConnectException.class));
assertEquals(Closed, session.getReadyState());
}
@Test
public void testClientConnectSequenceUnknownHost()
{
RtspHandler handler = mock(RtspHandler.class);
RtspClient client = new RtspClient();
Rt... | // Path: src/main/java/xpertss/media/MediaChannel.java
// public class MediaChannel implements Comparable<MediaChannel> {
//
// private final MediaDescription desc;
// private final Range<Integer> channels;
//
// public MediaChannel(MediaDescription desc, Range<Integer> channels)
// {
// this.desc =... | RtspPlayer player = new RtspPlayer(client, new MediaConsumer() { |
cfloersch/RtspClient | src/test/java/xpertss/rtsp/RtspClientTest.java | // Path: src/main/java/xpertss/media/MediaChannel.java
// public class MediaChannel implements Comparable<MediaChannel> {
//
// private final MediaDescription desc;
// private final Range<Integer> channels;
//
// public MediaChannel(MediaDescription desc, Range<Integer> channels)
// {
// this.desc =... | import org.junit.Test;
import xpertss.function.Consumer;
import xpertss.lang.Range;
import xpertss.media.MediaChannel;
import xpertss.media.MediaConsumer;
import xpertss.media.MediaType;
import xpertss.sdp.MediaDescription;
import xpertss.sdp.SessionDescription;
import xpertss.threads.Threads;
import java.net.ConnectEx... |
assertEquals(Open, session.getReadyState());
session.connect(100);
assertEquals(Connecting, session.getReadyState());
while(session.getReadyState() == Connecting);
verify(handler, times(1)).onFailure(same(session), any(UnknownHostException.class));
assertEquals(Closed, session.get... | // Path: src/main/java/xpertss/media/MediaChannel.java
// public class MediaChannel implements Comparable<MediaChannel> {
//
// private final MediaDescription desc;
// private final Range<Integer> channels;
//
// public MediaChannel(MediaDescription desc, Range<Integer> channels)
// {
// this.desc =... | public void createChannel(MediaChannel channel) |
cfloersch/RtspClient | src/test/java/xpertss/rtsp/RtspClientTest.java | // Path: src/main/java/xpertss/media/MediaChannel.java
// public class MediaChannel implements Comparable<MediaChannel> {
//
// private final MediaDescription desc;
// private final Range<Integer> channels;
//
// public MediaChannel(MediaDescription desc, Range<Integer> channels)
// {
// this.desc =... | import org.junit.Test;
import xpertss.function.Consumer;
import xpertss.lang.Range;
import xpertss.media.MediaChannel;
import xpertss.media.MediaConsumer;
import xpertss.media.MediaType;
import xpertss.sdp.MediaDescription;
import xpertss.sdp.SessionDescription;
import xpertss.threads.Threads;
import java.net.ConnectEx... | session.connect(100);
assertEquals(Connecting, session.getReadyState());
while(session.getReadyState() == Connecting);
verify(handler, times(1)).onFailure(same(session), any(UnknownHostException.class));
assertEquals(Closed, session.getReadyState());
}
@Test
public void tes... | // Path: src/main/java/xpertss/media/MediaChannel.java
// public class MediaChannel implements Comparable<MediaChannel> {
//
// private final MediaDescription desc;
// private final Range<Integer> channels;
//
// public MediaChannel(MediaDescription desc, Range<Integer> channels)
// {
// this.desc =... | final MediaType type = channel.getType(); |
cfloersch/RtspClient | src/main/java/xpertss/mime/impl/SingleValueHeader.java | // Path: src/main/java/xpertss/mime/Header.java
// public interface Header {
//
// /**
// * Http defines four types of headers. All headers not specifically
// * defined to be general, request, or response are treated as entity
// * headers.
// */
// public enum Type {
// /**
// * A ... | import xpertss.mime.HeaderValue;
import xpertss.lang.Objects;
import xpertss.mime.Header; | /**
* Copyright XpertSoftware All rights reserved.
*
* Date: 3/18/11 11:53 PM
*/
package xpertss.mime.impl;
public class SingleValueHeader implements Header {
private final Type type;
private final String name; | // Path: src/main/java/xpertss/mime/Header.java
// public interface Header {
//
// /**
// * Http defines four types of headers. All headers not specifically
// * defined to be general, request, or response are treated as entity
// * headers.
// */
// public enum Type {
// /**
// * A ... | private final HeaderValue[] value; |
sahildave/Gazetti_Newspaper_Reader | app/src/main/java/in/sahildave/gazetti/news_activities/ArticleLoadingCallback.java | // Path: app/src/main/java/in/sahildave/gazetti/util/BitmapTransform.java
// public class BitmapTransform implements Transformation {
//
// int maxWidth;
// int maxHeight;
//
// public BitmapTransform(int maxWidth, int maxHeight) {
// this.maxWidth = maxWidth;
// this.maxHeight = maxHeight... | import android.annotation.SuppressLint;
import android.app.Activity;
import android.graphics.Point;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.TypedValue;
import android.view.Display;
import android.view.View;
import android.view.ViewTreeObserv... | }
public void onPostExecute(String[] result, String mArticlePubDate) {
titleText = result[0];
mImageURL = result[1];
bodyText = result[2];
mSubtitleLayout.setVisibility(View.VISIBLE);
mArticleFooter.setVisibility(View.VISIBLE);
mArticlePubDateView.setText(mArti... | // Path: app/src/main/java/in/sahildave/gazetti/util/BitmapTransform.java
// public class BitmapTransform implements Transformation {
//
// int maxWidth;
// int maxHeight;
//
// public BitmapTransform(int maxWidth, int maxHeight) {
// this.maxWidth = maxWidth;
// this.maxHeight = maxHeight... | .transform(new BitmapTransform(MAX_WIDTH, MAX_HEIGHT)); |
sahildave/Gazetti_Newspaper_Reader | app/src/main/java/in/sahildave/gazetti/homescreen/adapter/CellModel.java | // Path: app/src/main/java/in/sahildave/gazetti/util/GazettiEnums.java
// public enum Category {
// NATIONAL ("National", "1"),
// INTERNATIONAL ("International", "2"),
// SPORTS ("Sports", "3"),
// SCIENCE ("Science", "4"),
// BUSINESS ("Business", "6"),
// OPINION_BLOG_EDITORIAL("Blogs and Edi... | import in.sahildave.gazetti.util.GazettiEnums.Category;
import in.sahildave.gazetti.util.GazettiEnums.Newspapers; | package in.sahildave.gazetti.homescreen.adapter;
public class CellModel {
private String newspaperImage;
private String newspaperTitle;
private String newspaperId;
private String categoryTitle;
private String categoryId;
| // Path: app/src/main/java/in/sahildave/gazetti/util/GazettiEnums.java
// public enum Category {
// NATIONAL ("National", "1"),
// INTERNATIONAL ("International", "2"),
// SPORTS ("Sports", "3"),
// SCIENCE ("Science", "4"),
// BUSINESS ("Business", "6"),
// OPINION_BLOG_EDITORIAL("Blogs and Edi... | public CellModel(Newspapers newspapers, Category category) { |
sahildave/Gazetti_Newspaper_Reader | app/src/main/java/in/sahildave/gazetti/homescreen/adapter/CellModel.java | // Path: app/src/main/java/in/sahildave/gazetti/util/GazettiEnums.java
// public enum Category {
// NATIONAL ("National", "1"),
// INTERNATIONAL ("International", "2"),
// SPORTS ("Sports", "3"),
// SCIENCE ("Science", "4"),
// BUSINESS ("Business", "6"),
// OPINION_BLOG_EDITORIAL("Blogs and Edi... | import in.sahildave.gazetti.util.GazettiEnums.Category;
import in.sahildave.gazetti.util.GazettiEnums.Newspapers; | package in.sahildave.gazetti.homescreen.adapter;
public class CellModel {
private String newspaperImage;
private String newspaperTitle;
private String newspaperId;
private String categoryTitle;
private String categoryId;
| // Path: app/src/main/java/in/sahildave/gazetti/util/GazettiEnums.java
// public enum Category {
// NATIONAL ("National", "1"),
// INTERNATIONAL ("International", "2"),
// SPORTS ("Sports", "3"),
// SCIENCE ("Science", "4"),
// BUSINESS ("Business", "6"),
// OPINION_BLOG_EDITORIAL("Blogs and Edi... | public CellModel(Newspapers newspapers, Category category) { |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.