Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
package freehand.neandroid.ui; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; public class TextUI implements Drawable { private String text; private Paint paint; private PointF position; private boolean visible; public TextUI(){ position = new PointF(); visi...
229
github-java-corpus
2,012
package freehand.neandroid.ui; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; /* BorderTextUI is decorated from TextUI in order to draw border of TextUI * ToDo: Change TextUI to Drawable so BorderTextUI can draw border to any Drawable object. */ public class BorderTex...
330
github-java-corpus
2,012
package freehand.neandroid.ui; import freehand.neandroid.Input.InputSystem; import freehand.neandroid.Input.InputTouch; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.PointF; import android.graphics.Rect; import android.graphics.Region; public class ToggleButtonUI implements D...
551
github-java-corpus
2,012
package freehand.neandroid.ui; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PointF; /* ColorRectUI is use for draw rectangle for specific color */ public class ColorRectUI implements Drawable { private DrawPosition drawPosition; private boolean visible; private Paint pai...
245
github-java-corpus
2,012
package freehand.neandroid.Input; import android.view.MotionEvent; public class InputSystem { private static InputSystem instance; private InputKey key; private InputTouch touch; private InputSystem() { key = new InputKey(); touch = new InputTouch(); } public static InputSystem getInstance() { if (inst...
226
github-java-corpus
2,012
package freehand.neandroid.Input; import freehand.neandroid.util.Timer; import android.view.KeyEvent; public class InputKey { private static final int TIME_OUT = 200; public static final int NORMAL = 0; public static final int HOLDING = 1; public static final int CLICKED = 2; private int[] key; private Timer ...
249
github-java-corpus
2,012
package freehand.neandroid.Input; import freehand.neandroid.util.Timer; import android.graphics.PointF; import android.view.MotionEvent; public class InputTouch { public static final int NORMAL = 0; public static final int TOUCHING = 1; public static final int TOUCHED = 2; private static final int TIME_OUT = 200...
256
github-java-corpus
2,012
package freehand.neandroid; import java.util.Vector; import android.content.Intent; import android.graphics.Canvas; import freehand.neandroid.ui.Drawable; public class Screen { protected GameActivity activity; private boolean active; private Vector<Drawable> drawObject; public Screen(GameActivity activity) { ...
287
github-java-corpus
2,012
package freehand.neandroid; import freehand.neandroid.Input.InputSystem; import android.app.Activity; import android.os.Bundle; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.Window; import android.view.WindowManager; /* Game Activity is use for control the Screen for game. * It s...
497
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,080
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
638
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,591
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,873
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,635
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
779
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
858
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
226
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
860
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,048
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
919
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
269
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,463
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
443
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
243
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
671
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
977
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
356
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,087
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
381
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
588
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6,601
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
863
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,760
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,443
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,893
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,729
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,459
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,706
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
703
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3,616
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
507
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,105
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
728
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
965
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
363
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
5,098
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
765
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
3,871
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,182
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4,624
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,404
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
584
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6,069
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2,063
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,667
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
486
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
399
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
542
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
373
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
482
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
4,700
github-java-corpus
2,012
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
6,453
github-java-corpus
2,012
package com.michelboudreau.alternator.models; public class Limits { public static final int NUMBER_MAX = 10^+126; public static final int NUMBER_MIN = 10^-128; public static final int TABLE_MAX = 256; }
52
github-java-corpus
2,012
package com.michelboudreau.alternator.models; import com.amazonaws.services.dynamodb.model.*; import java.util.Date; import java.util.HashMap; import java.util.Map; public class Table { private String name; private KeySchema keySchema; private ProvisionedThroughputDescription throughputDescription; private Date...
917
github-java-corpus
2,012
package com.michelboudreau.alternator; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.dynamodb.model.InternalServerErrorException; import com.amazonaws.services.dynamodb.model.LimitExceededException; import com.amazonaws.services.dynamodb.model.ResourceInUseException; import com.amazonaws.s...
563
github-java-corpus
2,012
package com.michelboudreau.alternator; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import com.amazonaws.AmazonClientException; import com.amazonaws.AmazonServiceException; import com.amazonaws.s...
1,140
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.ProvisionedThroughput; import com.michelboudreau.alternator.models.Limits; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; p...
217
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.UpdateTableRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class UpdateTableRequestValidator extends Validat...
160
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.DeleteTableRequest; import com.amazonaws.services.dynamodb.model.DescribeTableRequest; import com.amazonaws.services.dynamodb.model.ListTablesRequest; import com.michelboudreau.alternator.validation.Validator; import com.mic...
193
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.DescribeTableRequest; import com.amazonaws.services.dynamodb.model.ListTablesRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.ut...
213
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.KeySchemaElement; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class KeySchemaElementValidator extends Validator {...
155
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.UpdateItemRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class UpdateItemReques...
185
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.AttributeValue; import com.amazonaws.services.dynamodb.model.ComparisonOperator; import com.amazonaws.services.dynamodb.model.Condition; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.al...
272
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.CreateTableRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class CreateTableRequ...
179
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.KeySchema; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class KeySchemaValidator extends Validator { public Bool...
292
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.DescribeTableRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class DescribeTable...
144
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.KeysAndAttributes; import com.amazonaws.services.dynamodb.model.Key; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; imp...
182
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.QueryRequest; import com.michelboudreau.alternator.models.Limits; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public cla...
371
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.GetItemRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class GetItemRequestValid...
169
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.Key; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class KeyValidator extends Validator { public Boolean suppo...
218
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.BatchGetItemRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class BatchGetItemRe...
209
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.CreateTableRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class AttributeNameValidator extends Validator { ...
144
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class AttributeTypeValidator extends Validator { public Boolean supports(Class clazz) { return String.class.is...
136
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.ScanRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class ScanRequestValidator e...
139
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.AttributeValue; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.nio.charset.Charset; import java.util.List; import java.util.Map; publi...
291
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.PutItemRequest; import com.amazonaws.services.dynamodb.model.ReturnValue; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; pu...
232
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.ExpectedAttributeValue; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.nio.charset.Charset; import java.util.ArrayList; import java.uti...
321
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.AttributeValue; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.List; public class PrimaryKeyValidator extends Validator { publi...
231
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class TableNameValidator extends Validator { public Bo...
173
github-java-corpus
2,012
package com.michelboudreau.alternator.validators; import com.amazonaws.services.dynamodb.model.DeleteItemRequest; import com.michelboudreau.alternator.validation.Validator; import com.michelboudreau.alternator.validation.ValidatorUtils; import java.util.ArrayList; import java.util.List; public class DeleteItemReques...
285
github-java-corpus
2,012
package com.michelboudreau.alternator; import com.amazonaws.services.dynamodb.model.*; import com.amazonaws.services.dynamodb.model.transform.*; import com.michelboudreau.alternator.enums.AttributeValueType; import com.michelboudreau.alternator.models.Limits; import com.michelboudreau.alternator.models.Table; import c...
8,088
github-java-corpus
2,012
package com.michelboudreau.alternator; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.nio.SelectChannelConnector; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfr...
567
github-java-corpus
2,012
package com.michelboudreau.alternator; import com.amazonaws.services.dynamodb.datamodeling.DynamoDBMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration class AlternatorDBConfig { @Bean public AlternatorDBClient client() { return n...
111
github-java-corpus
2,012
package com.michelboudreau.alternator.validation; import java.util.ArrayList; import java.util.Collections; import java.util.List; public abstract class Validator { public abstract Boolean supports(Class clazz); public abstract List<Error> validate(Object target); protected List<Error> removeNulls(List<Error> ...
92
github-java-corpus
2,012
package com.michelboudreau.alternator.validation; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.util.Assert; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern;...
1,060
github-java-corpus
2,012
package com.michelboudreau.alternator; import com.amazonaws.*; import com.amazonaws.handlers.HandlerChainFactory; import com.amazonaws.http.ExecutionContext; import com.amazonaws.http.HttpResponseHandler; import com.amazonaws.http.JsonErrorResponseHandler; import com.amazonaws.http.JsonResponseHandler; import com.amaz...
1,934
github-java-corpus
2,012
package com.michelboudreau.alternator.parsers; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.AmazonWebServiceResponse; import com.amazonaws.ResponseMetadata; import com.amazonaws.http.JsonResponseHandler; import com.amazonaws.services.dynamodb.model.CreateTableResult; import com.amazonaws.services...
622
github-java-corpus
2,012
package com.michelboudreau.alternator.enums; public enum RequestType { // Item Actions PUT("PutItem"), GET("GetItem"), UPDATE("UpdateItem"), DELETE("DeleteItem"), BATCH_GET_ITEM("BatchGetItem"), BATCH_WRITE_ITEM("BatchWriteItem"), // Operations QUERY("Query"), SCAN("Scan"), // Table Actions CREATE_TABLE...
199
github-java-corpus
2,012
package com.michelboudreau.alternator.enums; public enum AttributeValueType { // Item Actions S("S"), N("N"), NS("NS"), SS("SS"), // Unknowns UNKNOWN(""); private String type; AttributeValueType(String value) { this.type = value; } public String toString() { return type; } public static Attribute...
118
github-java-corpus
2,012
package com.amazonaws.services.dynamodb.model.transform; import com.amazonaws.services.dynamodb.model.QueryRequest; import com.amazonaws.transform.JsonUnmarshallerContext; import com.amazonaws.transform.ListUnmarshaller; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers; import com.amazonaws.transform.Unmarsh...
605