id
int64
1
49k
buggy
stringlengths
34
37.5k
fixed
stringlengths
2
37k
41,701
public void onCallContact(final CallContact c) { Log.d(TAG, "onCallContact " + c.toString() + " " + c.getId() + " " + c.getKey()); if (c.getPhones().size() > 1) { final CharSequence numbers[] = new CharSequence[c.getPhones().size()]; int i = 0; <BUG>for (CallContact.Phone p : c.getPhones()) { numbers[i++] = p.getNumber().getRawUriString();</BUG> } AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.choose_number);
for (Phone p : c.getPhones()) { numbers[i++] = p.getNumber().getRawUriString();
41,702
@Override public void onTextContact(final CallContact c) { if (c.getPhones().size() > 1) { final CharSequence numbers[] = new CharSequence[c.getPhones().size()]; int i = 0; <BUG>for (CallContact.Phone p : c.getPhones()) { numbers[i++] = p.getNumber().getRawUriString();</BUG> } AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.choose_number);
public void onCallContact(final CallContact c) { Log.d(TAG, "onCallContact " + c.toString() + " " + c.getId() + " " + c.getKey()); for (Phone p : c.getPhones()) { numbers[i++] = p.getNumber().getRawUriString();
41,703
import cx.ring.client.HomeActivity; import cx.ring.client.QRCodeScannerActivity; import cx.ring.model.Account; import cx.ring.model.CallContact; import cx.ring.model.Conference; <BUG>import cx.ring.model.Conversation; import cx.ring.model.SipUri;</BUG> import cx.ring.service.LocalService; import cx.ring.services.StateService; import cx.ring.utils.ActionHelper;
import cx.ring.model.Phone; import cx.ring.model.SipUri;
41,704
import cx.ring.model.SecureSipCall; import cx.ring.model.SipCall; import cx.ring.service.CallManagerCallBack; import cx.ring.service.DRingService; import cx.ring.service.IDRingService; <BUG>import cx.ring.service.LocalService; import cx.ring.utils.ContentUriHandler; import cx.ring.utils.CropImageUtils; </BUG> import cx.ring.utils.KeyboardVisibilityManager;
import cx.ring.utils.ActionHelper; import cx.ring.utils.BitmapUtils;
41,705
Log.d(TAG, "VCard found: " + vcard); } if (!vcard.getPhotos().isEmpty()) { Photo tmp = vcard.getPhotos().get(0); if (tmp.getData() != null) { <BUG>contactBubbleView.setImageBitmap(CropImageUtils.cropImageToCircle(tmp.getData())); </BUG> } else { setDefaultPhoto(); }
contactBubbleView.setImageBitmap(BitmapUtils.cropImageToCircle(tmp.getData()));
41,706
import cx.ring.adapters.ConversationAdapter; import cx.ring.adapters.NumberAdapter; import cx.ring.model.Account; import cx.ring.model.CallContact; import cx.ring.model.Conference; <BUG>import cx.ring.model.Conversation; import cx.ring.model.SipUri;</BUG> import cx.ring.service.LocalService; import cx.ring.utils.ActionHelper; import cx.ring.utils.ClipboardHelper;
import cx.ring.model.Phone; import cx.ring.model.SipUri;
41,707
Log.d(TAG, "returning " + conv.getContact().getDisplayName() + " " + number); return new Pair<>(conv, number); } static private int getIndex(Spinner spinner, SipUri myString) { for (int i = 0, n = spinner.getCount(); i < n; i++) <BUG>if (((CallContact.Phone) spinner.getItemAtPosition(i)).getNumber().equals(myString)) return i;</BUG> return 0; } @Override
if (((Phone) spinner.getItemAtPosition(i)).getNumber().equals(myString)) return i;
41,708
return super.onOptionsItemSelected(item); } } private Pair<Account, SipUri> guess() { SipUri number = mNumberAdapter == null ? <BUG>mPreferredNumber : ((CallContact.Phone) mNumberSpinner.getSelectedItem()).getNumber(); Account a = mService.getAccount(mConversation.getLastAccountUsed());</BUG> if (a == null && number != null) a = mService.guessAccount(number); if (a != null && (number == null/* || number.isEmpty()*/))
mPreferredNumber : ((Phone) mNumberSpinner.getSelectedItem()).getNumber(); Account a = mService.getAccount(mConversation.getLastAccountUsed());
41,709
import cx.ring.R; import cx.ring.history.HistoryCall; import cx.ring.history.HistoryEntry; import cx.ring.history.Tuple; import cx.ring.model.CallContact; <BUG>import cx.ring.model.Conversation; import cx.ring.model.TextMessage;</BUG> public class SmartListAdapter extends BaseAdapter { private static String TAG = SmartListAdapter.class.getSimpleName(); private final ArrayList<Conversation> mConversations = new ArrayList<>();
import cx.ring.model.Phone; import cx.ring.model.TextMessage;
41,710
CallContact contact = c.getContact(); if (!TextUtils.isEmpty(contact.getDisplayName()) && stringFormatting(contact.getDisplayName()).contains(stringFormatting(query))) { mConversations.add(c); } else if (contact.getPhones() != null && !contact.getPhones().isEmpty()) { <BUG>ArrayList<CallContact.Phone> phones = contact.getPhones(); for (CallContact.Phone phone : phones) { if (phone.getNumber() != null) {</BUG> String rawUriString = phone.getNumber().getRawUriString(); if (!TextUtils.isEmpty(rawUriString) &&
ArrayList<Phone> phones = contact.getPhones(); for (Phone phone : phones) { if (phone.getNumber() != null) {
41,711
v = inflater.inflate(R.layout.item_contact_starred, parent, false); } CallContact item = dataset.get(pos); ((TextView) v.findViewById(R.id.display_name)).setText(item.getDisplayName()); ImageView photo_view = (ImageView) v.findViewById(R.id.photo); <BUG>if(item.hasPhoto()){ photo_view.setImageBitmap(item.getPhoto()); </BUG> } else {
if (item.hasPhoto()) { photo_view.setImageBitmap(BitmapUtils.bytesToBitmap(item.getPhoto()));
41,712
return getDescendantsInSet(al, true, false, mode, contextId); } public NodeSet filterDocuments(NewArrayNodeSet other) { NewArrayNodeSet result = new NewArrayNodeSet(); for (int i = 0; i < other.size; i++) { <BUG>int idx = Arrays.binarySearch(documentIds, 0, documentCount, other.nodes[i].getDocument().getDocId()); if (idx > -1)</BUG> result.add(other.nodes[i]); } return result;
int idx = findDoc(other.nodes[i].getDocument().getDocId()); if (idx > -1)
41,713
package com.google.cloud.tools.eclipse.login; import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeRequestUrl; import com.google.cloud.tools.eclipse.login.ui.LoginServiceUi; <BUG>import com.google.cloud.tools.ide.login.Account; import com.google.cloud.tools.ide.login.GoogleLoginState; import com.google.cloud.tools.ide.login.JavaPreferenceOAuthDataStore; import com.google.cloud.tools.ide.login.LoggerFacade; import com.google.cloud.tools.ide.login.OAuthDataStore; import com.google.common.annotations.VisibleForTesting;</BUG> import java.util.Arrays;
import com.google.cloud.tools.login.Account; import com.google.cloud.tools.login.GoogleLoginState; import com.google.cloud.tools.login.JavaPreferenceOAuthDataStore; import com.google.cloud.tools.login.LoggerFacade; import com.google.cloud.tools.login.OAuthDataStore; import com.google.common.annotations.VisibleForTesting;
41,714
package com.google.cloud.tools.eclipse.login.ui; import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.util.Strings; import com.google.cloud.tools.eclipse.login.IGoogleLoginService; <BUG>import com.google.cloud.tools.ide.login.Account; import com.google.common.annotations.VisibleForTesting;</BUG> import java.util.ArrayList; import java.util.Collections; import java.util.Comparator;
import com.google.cloud.tools.login.Account; import com.google.common.annotations.VisibleForTesting;
41,715
import static org.mockito.Mockito.when; import com.google.api.client.auth.oauth2.Credential; import com.google.cloud.tools.eclipse.login.IGoogleLoginService; import com.google.cloud.tools.eclipse.login.ui.AccountSelectorObservableValue; import com.google.cloud.tools.eclipse.test.util.ui.ShellTestResource; <BUG>import com.google.cloud.tools.ide.login.Account; import java.util.Arrays;</BUG> import java.util.HashSet; import org.eclipse.core.databinding.ValidationStatusProvider; import org.eclipse.core.resources.IProject;
import com.google.cloud.tools.login.Account; import java.util.Arrays;
41,716
package com.google.cloud.tools.eclipse.login; <BUG>import com.google.cloud.tools.ide.login.Account; import java.util.Set;</BUG> public interface IGoogleLoginService { Account logIn(String dialogMessage); void logOutAll();
import com.google.cloud.tools.login.Account; import java.util.Set;
41,717
package com.google.cloud.tools.eclipse.login.ui; import static org.junit.Assert.assertEquals; <BUG>import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull;</BUG> import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.when; import com.google.cloud.tools.eclipse.login.IGoogleLoginService;
[DELETED]
41,718
import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; <BUG>import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List;</BUG> @RunWith(MockitoJUnitRunner.class)
[DELETED]
41,719
} @Test public void testLogOutButton_notLoggedIn() {</BUG> setUpLoginService(); AccountsPanel panel = new AccountsPanel(null, loginService); <BUG>panel.createDialogArea(shell); assertNull(panel.logOutButton); }</BUG> @Test
@Test(expected = WidgetNotFoundException.class) public void testLogOutButton_notLoggedIn() { Control control = panel.createDialogArea(shell); new SWTBot(control).buttonWithId(AccountsPanel.CSS_CLASS_NAME_KEY, "logOutButton");
41,720
}</BUG> @Test public void testLogOutButton_loggedIn() { setUpLoginService(Arrays.asList(account1)); AccountsPanel panel = new AccountsPanel(null, loginService); <BUG>panel.createDialogArea(shell); assertNotNull(panel.logOutButton); } @Test public void testAccountsArea_zeroAccounts() {</BUG> setUpLoginService();
@Test(expected = WidgetNotFoundException.class) public void testLogOutButton_notLoggedIn() { Control control = panel.createDialogArea(shell); new SWTBot(control).buttonWithId(AccountsPanel.CSS_CLASS_NAME_KEY, "logOutButton");
41,721
} @Test public void testAccountsArea_zeroAccounts() {</BUG> setUpLoginService(); AccountsPanel panel = new AccountsPanel(null, loginService); <BUG>panel.createDialogArea(shell); assertTrue(panel.accountLabels.isEmpty()); } @Test public void testAccountsArea_oneAccount() {</BUG> setUpLoginService(Arrays.asList(account1));
@Test(expected = WidgetNotFoundException.class) public void testLogOutButton_notLoggedIn() {
41,722
} @Test public void testAccountsArea_oneAccount() {</BUG> setUpLoginService(Arrays.asList(account1)); AccountsPanel panel = new AccountsPanel(null, loginService); <BUG>panel.createDialogArea(shell); assertEquals(1, panel.accountLabels.size()); panel.accountLabels.get(0).getText().contains(account2.getEmail()); } @Test public void testAccountsArea_threeAccounts() {</BUG> setUpLoginService(Arrays.asList(account1, account2, account3));
@Test(expected = WidgetNotFoundException.class) public void testLogOutButton_notLoggedIn() { setUpLoginService(); Control control = panel.createDialogArea(shell); new SWTBot(control).buttonWithId(AccountsPanel.CSS_CLASS_NAME_KEY, "logOutButton");
41,723
import static org.mockito.Matchers.anyString; import static org.mockito.Mockito.when; import com.google.api.client.auth.oauth2.Credential; import com.google.cloud.tools.eclipse.login.IGoogleLoginService; import com.google.cloud.tools.eclipse.test.util.ui.ShellTestResource; <BUG>import com.google.cloud.tools.ide.login.Account; import java.util.Arrays;</BUG> import java.util.HashSet; import java.util.LinkedHashSet; import org.eclipse.swt.widgets.Shell;
import com.google.cloud.tools.login.Account; import java.util.Arrays;
41,724
package com.google.cloud.tools.eclipse.login.ui; import com.google.cloud.tools.eclipse.login.IGoogleLoginService; import com.google.cloud.tools.eclipse.login.Messages; <BUG>import com.google.cloud.tools.ide.login.Account; import com.google.common.annotations.VisibleForTesting;</BUG> import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.dialogs.PopupDialog; import org.eclipse.jface.layout.GridDataFactory;
import com.google.cloud.tools.login.Account; import com.google.common.annotations.VisibleForTesting;
41,725
import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.jface.layout.GridLayoutFactory; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; <BUG>import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.Button;</BUG> import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Button;
41,726
builder.eq("node.id", nodeId); final Date startDate = new Date(); startDate.setTime(start * 1000l); final Date endDate = new Date(); endDate.setTime(end * 1000l); <BUG>builder.or(Restrictions.isNull("ifRegainedService"), Restrictions.and(Restrictions.gt("ifRegainedService", startDate), Restrictions.le("ifRegainedService", endDate))); builder.le("ifLostService", endDate);</BUG> builder.eq("serviceType.name", serviceName); builder.eq("ipInterface.ipAddress", InetAddressUtils.addr(ipAddress)); builder.alias("monitoredService", "monitoredService");
builder.or(Restrictions.isNull("ifRegainedService"), Restrictions.gt("ifRegainedService", startDate)); builder.le("ifLostService", endDate);
41,727
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.DigestOutputStream; import java.security.MessageDigest; <BUG>import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Collections; import java.util.List;</BUG> public final class PatchUtils {
import java.text.DateFormat; import java.util.Date; import java.util.List;
41,728
package org.jboss.as.patching.runner; <BUG>import org.jboss.as.boot.DirectoryStructure; import org.jboss.as.patching.LocalPatchInfo;</BUG> import org.jboss.as.patching.PatchInfo; import org.jboss.as.patching.PatchLogger; import org.jboss.as.patching.PatchMessages;
import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp; import org.jboss.as.patching.CommonAttributes; import org.jboss.as.patching.LocalPatchInfo;
41,729
private static final String PATH_DELIMITER = "/"; public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT; enum Element { ADDED_BUNDLE("added-bundle"), ADDED_MISC_CONTENT("added-misc-content"), <BUG>ADDED_MODULE("added-module"), BUNDLES("bundles"),</BUG> CUMULATIVE("cumulative"), DESCRIPTION("description"), MISC_FILES("misc-files"),
APPLIES_TO_VERSION("applies-to-version"), BUNDLES("bundles"),
41,730
final int count = reader.getAttributeCount(); for (int i = 0; i < count; i++) { final String value = reader.getAttributeValue(i); final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i)); switch (attribute) { <BUG>case APPLIES_TO_VERSION: builder.addAppliesTo(value); break;</BUG> case RESULTING_VERSION: if(type == Patch.PatchType.CUMULATIVE) {
[DELETED]
41,731
final StringBuilder path = new StringBuilder(); for(final String p : item.getPath()) { path.append(p).append(PATH_DELIMITER); } path.append(item.getName()); <BUG>writer.writeAttribute(Attribute.PATH.name, path.toString()); if(type != ModificationType.REMOVE) {</BUG> writer.writeAttribute(Attribute.HASH.name, bytesToHexString(item.getContentHash())); } if(type != ModificationType.ADD) {
if (item.isDirectory()) { writer.writeAttribute(Attribute.DIRECTORY.name, "true"); if(type != ModificationType.REMOVE) {
41,732
package org.jboss.as.patching; import org.jboss.as.controller.OperationFailedException; import org.jboss.as.patching.runner.PatchingException; import org.jboss.logging.Messages; import org.jboss.logging.annotations.Message; <BUG>import org.jboss.logging.annotations.MessageBundle; import java.io.IOException;</BUG> import java.util.List; @MessageBundle(projectCode = "JBAS") public interface PatchMessages {
import org.jboss.logging.annotations.Cause; import java.io.IOException;
41,733
boolean ret = programFile(getProgrammer(), sketchName); ctx.executeKey("upload.postcmd"); return ret; } public boolean performSerialReset(boolean dtr, boolean rts, int speed, int predelay, int delay, int postdelay) { <BUG>ctx.bullet("Resetting board."); </BUG> try { CommunicationPort port = ctx.getDevice(); if (port instanceof SerialCommunicationPort) {
if (!Base.isQuiet()) ctx.bullet("Resetting board.");
41,734
ArrayList<File>sketchObjects = compileSketch(); if(sketchObjects == null) { error("Failed compiling sketch"); return false; } <BUG>bullet("Compiling core..."); setCompilingProgress(20);</BUG> if(!compileCore()) { error("Failed compiling core"); return false;
if (!Base.isQuiet()) bullet("Compiling core..."); setCompilingProgress(20);
41,735
if(!compileCore()) { error("Failed compiling core"); return false; } setCompilingProgress(30); <BUG>bullet("Compiling libraries..."); </BUG> if(!compileLibraries()) { error("Failed compiling libraries"); return false;
if (!Base.isQuiet()) bullet("Compiling libraries...");
41,736
if(!compileLibraries()) { error("Failed compiling libraries"); return false; } setCompilingProgress(40); <BUG>bullet("Linking sketch..."); if(!compileLink(sketchObjects)) {</BUG> error("Failed linking sketch"); return false; }
if (!Base.isQuiet()) bullet("Linking sketch..."); if(!compileLink(sketchObjects)) {
41,737
editor.updateOutputTree(); } compileSize(); long endTime = System.currentTimeMillis(); double compileTime = (double)(endTime - startTime) / 1000d; <BUG>bullet("Compilation took " + compileTime + " seconds"); </BUG> ctx.executeKey("compile.postcmd"); return true; }
if (!Base.isQuiet()) bullet("Compilation took " + compileTime + " seconds");
41,738
return true; } public boolean compileSize() { PropertyFile props = ctx.getMerged(); if (props.get("compile.size") != null) { <BUG>heading("Memory usage"); ctx.startBuffer();</BUG> ctx.executeKey("compile.size"); String output = ctx.endBuffer(); String reg = props.get("compiler.size.regex", "^\\s+(\\d+)\\s+(\\d+)\\s+(\\d+)");
if (!Base.isQuiet()) heading("Memory usage"); ctx.startBuffer();
41,739
ctx.set("size.data", dataSize + ""); ctx.set("size.rodata", rodataSize + ""); ctx.set("size.bss", bssSize + ""); ctx.set("size.flash", (textSize + dataSize + rodataSize) + ""); ctx.set("size.ram", (bssSize + dataSize) + ""); <BUG>bullet("Program size: " + (textSize + dataSize + rodataSize) + " bytes"); bullet("Memory size: " + (bssSize + dataSize) + " bytes"); </BUG> }
if (!Base.isQuiet()) bullet("Program size: " + (textSize + dataSize + rodataSize) + " bytes"); if (!Base.isQuiet()) bullet("Memory size: " + (bssSize + dataSize) + " bytes");
41,740
for(File file : sources) { File objectFile = new File(dest, file.getName() + "." + objExt); objectPaths.add(objectFile); if(objectFile.exists() && objectFile.lastModified() > file.lastModified()) { if(Preferences.getBoolean("compiler.verbose_compile")) { <BUG>bullet2("Skipping " + file.getAbsolutePath() + " as not modified."); </BUG> } continue; }
if (!Base.isQuiet()) bullet2("Skipping " + file.getAbsolutePath() + " as not modified.");
41,741
ctx.parsedMessage("{\\bullet}{\\error Error at line " + errorLineNumber + " in file " + errorFile.getName() + ":}\n"); } } catch (Exception execpt) { } } else { <BUG>ctx.error("Error at line " + errorLineNumber + " in file " + errorFile.getName() + ":"); </BUG> } ctx.parsedMessage("{\\bullet2}{\\error " + m.group(3) + "}\n"); setLineComment(errorFile, errorLineNumber, m.group(3));
[DELETED]
41,742
ctx.parsedMessage("{\\bullet}{\\warning Error at line " + errorLineNumber + " in file " + errorFile.getName() + ":}\n"); } } catch (Exception execpt) { } } else { <BUG>ctx.warning("Warning at line " + errorLineNumber + " in file " + errorFile.getName() + ":"); </BUG> } ctx.parsedMessage("{\\bullet2}{\\warning " + m.group(3) + "}\n"); setLineComment(errorFile, errorLineNumber, m.group(3));
ctx.parsedMessage("{\\bullet}{\\warning Warning at line " + errorLineNumber + " in file " + errorFile.getName() + ":}\n");
41,743
package org.uecide; import java.io.*; import java.lang.*; import java.util.*; import java.lang.reflect.*; <BUG>import javax.script.*; import org.uecide.builtin.BuiltinCommand;</BUG> import org.uecide.varcmd.VariableCommand; public class Context { Board board = null;
import java.util.regex.*; import org.uecide.builtin.BuiltinCommand;
41,744
cli.addParameter("force-join-files", "", Boolean.class, "Force joining INO and PDE files into single CPP file"); cli.addParameter("online", "", Boolean.class, "Force online mode"); cli.addParameter("offline", "", Boolean.class, "Force offline mode"); cli.addParameter("version", "", Boolean.class, "Display the UECIDE version number"); cli.addParameter("cli", "", Boolean.class, "Enter CLI mode"); <BUG>cli.addParameter("preferences", "", Boolean.class, "Display preferences dialog"); String[] argv = cli.process(args);</BUG> headless = cli.isSet("headless"); boolean loadLastSketch = cli.isSet("last-sketch"); boolean doExit = false;
cli.addParameter("quiet", "", Boolean.class, "Reduce the noise of output"); String[] argv = cli.process(args);
41,745
String name = namer.getUnitTestClassName(service); ClientTestClassView.Builder testClass = ClientTestClassView.newBuilder(); testClass.apiSettingsClassName(namer.getApiSettingsClassName(service)); testClass.apiClassName(namer.getApiWrapperClassName(service)); testClass.name(name); <BUG>testClass.testCases(createTestCaseViews(context)); testClass.mockServices(</BUG> mockServiceTransformer.createMockServices( context.getNamer(), context.getModel(), context.getApiConfig())); ClientTestFileView.Builder testFile = ClientTestFileView.newBuilder();
testClass.apiHasLongRunningMethods(context.getInterfaceConfig().hasLongRunningOperations()); testClass.mockServices(
41,746
.name(testClassName) .apiName( PhpPackageMetadataNamer.getApiNameFromPackageName( surfacePackageNamer.getPackageName()) .toLowerUnderscore()) <BUG>.testCases(createTestCaseViews(context)) .mockServices(mockServiceList)</BUG> .build(); addUnitTestImports(typeTable); String outputPath = pathMapper.getOutputPath(context.getInterface(), apiConfig);
.apiHasLongRunningMethods(context.getInterfaceConfig().hasLongRunningOperations()) .mockServices(mockServiceList)
41,747
SymbolTable testNameTable = new SymbolTable(); for (Method method : context.getSupportedMethods()) { MethodTransformerContext methodContext = context.asRequestMethodContext(method); if (methodContext.getMethodConfig().isGrpcStreaming()) { continue; <BUG>} if (methodContext.getMethodConfig().isLongRunningOperation()) { continue; } ClientMethodType clientMethodType = ClientMethodType.OptionalArrayMethod; if (methodContext.getMethodConfig().isPageStreaming()) { </BUG> clientMethodType = ClientMethodType.PagedOptionalArrayMethod;
[DELETED]
41,748
public abstract String apiClassName(); public abstract String apiSettingsClassName(); @Nullable public abstract String apiName(); public abstract List<MockServiceUsageView> mockServices(); <BUG>public abstract List<TestCaseView> testCases(); public static Builder newBuilder() {</BUG> return new AutoValue_ClientTestClassView.Builder(); } @AutoValue.Builder
public abstract boolean apiHasLongRunningMethods(); public static Builder newBuilder() {
41,749
"GoGapicSurfaceTestTransformer.generateMockServiceView - apiSettingsClassName")) .apiClassName(namer.getApiWrapperClassName(service)) .name( namer.getNotImplementedString( "GoGapicSurfaceTestTransformer.generateMockServiceView - name")) <BUG>.testCases(createTestCaseViews(context)) .mockServices(Collections.<MockServiceUsageView>emptyList())</BUG> .build()); } return MockCombinedView.newBuilder()
.apiHasLongRunningMethods(context.getInterfaceConfig().hasLongRunningOperations()) .mockServices(Collections.<MockServiceUsageView>emptyList())
41,750
public abstract boolean hasRequestParameters(); public abstract boolean hasReturnValue(); public abstract GrpcStreamingType grpcStreamingType(); public abstract String mockGrpcStubTypeName(); public abstract String createStubFunctionName(); <BUG>public abstract String grpcMethodName(); </BUG> public static Builder newBuilder() { return new AutoValue_TestCaseView.Builder(); }
public abstract String grpcStubCallString();
41,751
package com.google.api.codegen.transformer.php; import com.google.api.codegen.ServiceMessages; import com.google.api.codegen.config.MethodConfig; <BUG>import com.google.api.codegen.config.SingleResourceNameConfig; import com.google.api.codegen.transformer.ModelTypeFormatterImpl;</BUG> import com.google.api.codegen.transformer.SurfaceNamer; import com.google.api.codegen.util.Name; import com.google.api.codegen.util.NamePath;
import com.google.api.codegen.config.VisibilityConfig; import com.google.api.codegen.transformer.ModelTypeFormatterImpl;
41,752
public PhpSurfaceNamer(String packageName) { super( new PhpNameFormatter(), new ModelTypeFormatterImpl(new PhpModelTypeNameConverter(packageName)), new PhpTypeTable(packageName), <BUG>packageName); }</BUG> @Override public String getFieldSetFunctionName(TypeRef type, Name identifier) { return publicMethodName(Name.from("set").join(identifier));
} public String getLroApiMethodName(Method method, VisibilityConfig visibility) { return getApiMethodName(method, visibility); }
41,753
getTypeNameConverter().getNamePath(getModelTypeFormatter().getFullNameFor(service)); String publicClassName = publicClassName(Name.upperCamelKeepUpperAcronyms(namePath.getHead(), suffix)); return namePath.withHead(publicClassName); } <BUG>@Override public String getTestPackageName() {</BUG> return getTestPackageName(getPackageName()); } private static String getTestPackageName(String packageName) {
public String getGrpcStubCallString(Interface service, Method method) { return '/' + service.getFullName() + '/' + getGrpcMethodName(method); public String getTestPackageName() {
41,754
"NodeJSGapicSurfaceTestTransformer.generateTestView - apiSettingsClassName")) .apiClassName(namer.getApiWrapperClassName(service)) .name( namer.getNotImplementedString( "NodeJSGapicSurfaceTestTransformer.generateTestView - name")) <BUG>.testCases(createTestCaseViews(context)) .mockServices(Collections.<MockServiceUsageView>emptyList())</BUG> .build()); } return MockCombinedView.newBuilder()
.apiHasLongRunningMethods(context.getInterfaceConfig().hasLongRunningOperations()) .mockServices(Collections.<MockServiceUsageView>emptyList())
41,755
OperationRequestObjectMethod, AsyncOperationFlattenedMethod, AsyncOperationRequestObjectMethod, OperationCallableMethod, OptionalArrayMethod, <BUG>PagedOptionalArrayMethod, FlattenedAsyncCallSettingsMethod,</BUG> FlattenedAsyncCancellationTokenMethod, PagedFlattenedAsyncMethod, AsyncRequestObjectMethod,
OperationOptionalArrayMethod, FlattenedAsyncCallSettingsMethod,
41,756
namer.getAndSavePagedResponseTypeName( method, methodContext.getTypeTable(), methodConfig.getPageStreaming().getResourcesFieldConfig()); } else if (methodConfig.isLongRunningOperation()) { <BUG>clientMethodName = namer.getAsyncApiMethodName(method, methodConfig.getVisibility()); </BUG> responseTypeName = methodContext .getTypeTable()
clientMethodName = namer.getLroApiMethodName(method, methodConfig.getVisibility());
41,757
.serviceConstructorName( namer.getApiWrapperClassConstructorName(methodContext.getInterface())) .clientMethodName(clientMethodName) .mockGrpcStubTypeName(namer.getMockGrpcServiceImplName(methodContext.getTargetInterface())) .createStubFunctionName(namer.getCreateStubFunctionName(methodContext.getTargetInterface())) <BUG>.grpcMethodName(namer.getGrpcMethodName(method)) .build();</BUG> } private List<PageStreamingResponseView> createPageStreamingResponseViews( MethodTransformerContext methodContext) {
.grpcStubCallString(namer.getGrpcStubCallString(methodContext.getTargetInterface(), method)) .build();
41,758
Sandbox sandbox = getSandbox(method); configureShadows(method, sandbox); final ClassLoader priorContextClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(sandbox.getRobolectricClassLoader()); Class bootstrappedTestClass = sandbox.bootstrappedClass(getTestClass().getJavaClass()); <BUG>HelperTestRunner helperTestRunner = getHelperTestRunner(bootstrappedTestClass); final Method bootstrappedMethod;</BUG> try { bootstrappedMethod = bootstrappedTestClass.getMethod(method.getMethod().getName()); } catch (NoSuchMethodException e) {
helperTestRunner.frameworkMethod = method; final Method bootstrappedMethod;
41,759
} finally { afterTest(method, bootstrappedMethod); } } finally { Thread.currentThread().setContextClassLoader(priorContextClassLoader); <BUG>finallyAfterTest(); </BUG> } } };
finallyAfterTest(method);
41,760
return new HelperTestRunner(bootstrappedTestClass); } catch (InitializationError initializationError) { throw new RuntimeException(initializationError); } } <BUG>protected static class HelperTestRunner extends BlockJUnit4ClassRunner { public HelperTestRunner(Class<?> klass) throws InitializationError {</BUG> super(klass); } @Override
public FrameworkMethod frameworkMethod; public HelperTestRunner(Class<?> klass) throws InitializationError {
41,761
import org.objectweb.asm.tree.LdcInsnNode; import org.objectweb.asm.tree.MethodInsnNode; import org.objectweb.asm.tree.MethodNode; import org.objectweb.asm.tree.TypeInsnNode; import org.objectweb.asm.tree.VarInsnNode; <BUG>import org.robolectric.util.Logger; import org.robolectric.util.Util;</BUG> import java.io.IOException; import java.io.InputStream; import java.lang.invoke.CallSite;
import org.robolectric.util.ReflectionHelpers; import org.robolectric.util.Util;
41,762
return theClass; } @Override</BUG> public URL getResource(String name) { URL fromParent = super.getResource(name); <BUG>if (fromParent != null) { return fromParent;</BUG> } return urls.getResource(name); }
for (URL url : urls) { Logger.debug("Loading classes from: %s", url); @Override if (fromParent != null) { return fromParent;
41,763
if ((method.access & ACC_FINAL) != 0) { return true; } } } <BUG>if(classNode.superName == null) { </BUG> return false; } try {
if (classNode.superName == null) {
41,764
generatorAdapter.mark(end); } void handler() { generatorAdapter.mark(handler); } <BUG>} private static class MissingClassMarker {</BUG> } public class OldClassInstrumentor extends SandboxClassLoader.ClassInstrumentor { private final Type PLAN_TYPE = Type.getType(ClassHandler.Plan.class);
[DELETED]
41,765
boolean isStatic = targetMethod.getOpcode() == INVOKESTATIC; instructions.remove(); // remove the method invocation Type[] argumentTypes = Type.getArgumentTypes(targetMethod.desc); instructions.add(new LdcInsnNode(argumentTypes.length)); instructions.add(new TypeInsnNode(ANEWARRAY, "java/lang/Object")); <BUG>for (int i = argumentTypes.length - 1; i >= 0 ; i--) { Type type = argumentTypes[i];</BUG> int argWidth = type.getSize(); if (argWidth == 1) { // A B C [] instructions.add(new InsnNode(DUP_X1)); // A B [] C []
for (int i = argumentTypes.length - 1; i >= 0; i--) { Type type = argumentTypes[i];
41,766
import java.util.Set; public class InstrumentationConfiguration { public static Builder newBuilder() { return new Builder(); } <BUG>private static final Set<String> CLASSES_TO_ALWAYS_ACQUIRE = Sets.newHashSet( RobolectricInternals.class.getName(),</BUG> InvokeDynamicSupport.class.getName(), Shadow.class.getName(), ShadowExtractor.class.getName(),
RobolectricInternals.class.getName(),
41,767
import co.cask.cdap.api.metrics.MetricValues; import co.cask.cdap.common.io.BinaryDecoder;</BUG> import co.cask.cdap.internal.io.DatumReader; import co.cask.common.io.ByteBufferInputStream; <BUG>import com.google.common.base.Function; import com.google.common.base.Predicates; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterators; </BUG> import org.apache.twill.kafka.client.FetchedMessage;
import co.cask.cdap.common.conf.Constants; import co.cask.cdap.common.io.BinaryDecoder; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists;
41,768
import org.apache.twill.kafka.client.KafkaConsumer; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.Iterator; <BUG>import java.util.List; public final class MetricsMessageCallback implements KafkaConsumer.MessageCallback { private static final Logger LOG = LoggerFactory.getLogger(MetricsMessageCallback.class); private final DatumReader<MetricValues> recordReader;</BUG> private final Schema recordSchema;
import java.util.concurrent.TimeUnit; private static final ImmutableMap<String, String> METRICS_PROCESSOR_CONTEXT = ImmutableMap.of(Constants.Metrics.Tag.NAMESPACE, Constants.SYSTEM_NAMESPACE, Constants.Metrics.Tag.COMPONENT, "metrics.processor"); private final DatumReader<MetricValues> recordReader;
41,769
this.recordSchema = recordSchema; this.metricStore = metricStore; } @Override public void onReceived(Iterator<FetchedMessage> messages) { <BUG>final ByteBufferInputStream is = new ByteBufferInputStream(null); List<MetricValues> records = ImmutableList.copyOf( Iterators.filter(Iterators.transform(messages, new Function<FetchedMessage, MetricValues>() { @Override public MetricValues apply(FetchedMessage input) {</BUG> try {
List<MetricValues> records = Lists.newArrayList(); while (messages.hasNext()) { FetchedMessage input = messages.next();
41,770
Iterators.addAll(published, metrics); } @Override protected Scheduler scheduler() { return Scheduler.newFixedRateSchedule(5, 1, TimeUnit.SECONDS); <BUG>} @Override protected boolean isPublishMetaMetrics() { return false;</BUG> }
[DELETED]
41,771
return result; } @Test public void testSearchWithTags() throws Exception { verifySearchResultWithTags("/v3/metrics/search?target=tag", getSearchResultExpected("namespace", "myspace", <BUG>"namespace", "yourspace", "namespace", "system"));</BUG> verifySearchResultWithTags("/v3/metrics/search?target=tag&tag=namespace:myspace", getSearchResultExpected("app", "WordCount1"));
"namespace", "yourspace"));
41,772
UpgradeUtils.updateMovedProperties( LOG, ImmutableList.of( Tuple.of( "dns.recursive.enabled", "com.eucalyptus.dns.resolvers.RecursiveDnsResolver.enabled", "com.eucalyptus.vm.dns.RecursiveDnsResolver.enabled" ) ) ); <BUG>updatePropertyValues( ImmutableList.of( </BUG> Tuple.of( "cloudformation.swf_activity_worker_config", "{\"PollThreadCount\": 8, \"TaskExecutorThreadPoolSize\": 16, \"MaximumPollRateIntervalMilliseconds\": 50 }", "{\"PollThreadCount\": 8, \"TaskExecutorThreadPoolSize\": 16, \"MaximumPollRateIntervalMilliseconds\": 50, \"MaximumPollRatePerSecond\": 20 }" ),
UpgradeUtils.updatePropertyValues( LOG, ImmutableList.of(
41,773
public enum StaticPropertyEntryUpgrade500 implements Predicate<Class> { INSTANCE; private static Logger LOG = Logger.getLogger( StaticPropertyEntryUpgrade500.class ); @Override public boolean apply( final Class arg0 ) { <BUG>UpgradeUtils.deleteRemovedProperties( LOG, ImmutableList.of( "reporting.data_collection_enabled",</BUG> "reporting.default_size_time_size_unit", "reporting.default_size_time_time_unit", "reporting.default_size_unit",
"bootstrap.webservices.client_idle_timeout_secs", "bootstrap.webservices.client_pool_max_mem_per_conn", "bootstrap.webservices.client_pool_timeout_millis", "bootstrap.webservices.client_pool_total_mem", "reporting.data_collection_enabled",
41,774
package com.eucalyptus.component.id; import com.eucalyptus.component.annotation.Description; import com.eucalyptus.component.ComponentId; import com.eucalyptus.component.annotation.FaultLogPrefix; import com.eucalyptus.component.annotation.InternalService; <BUG>import com.eucalyptus.component.annotation.Partition; import io.netty.channel.ChannelInitializer; @Partition( value = { Eucalyptus.class } )</BUG> @FaultLogPrefix( "cloud" ) // stub for cc, but in clc @Description( "The Cluster Controller service" )
import com.eucalyptus.ws.StackConfiguration; import com.google.common.base.MoreObjects; import io.netty.bootstrap.Bootstrap; import io.netty.channel.ChannelOption; @Partition( value = { Eucalyptus.class } )
41,775
public ReportElement getBase() { return base; } @Override public float print(PDDocument document, PDPageContentStream stream, int pageNumber, float startX, float startY, float allowedWidth) throws IOException { <BUG>PDPage currPage = (PDPage) document.getDocumentCatalog().getPages().get(pageNo); PDPageContentStream pageStream = new PDPageContentStream(document, currPage, true, false); </BUG> base.print(document, pageStream, pageNo, x, y, width); pageStream.close();
PDPage currPage = document.getDocumentCatalog().getPages().get(pageNo); PDPageContentStream pageStream = new PDPageContentStream(document, currPage, PDPageContentStream.AppendMode.APPEND, false);
41,776
public PdfTextStyle(String config) { Assert.hasText(config); String[] split = config.split(","); Assert.isTrue(split.length == 3, "config must look like: 10,Times-Roman,#000000"); fontSize = Integer.parseInt(split[0]); <BUG>font = resolveStandard14Name(split[1]); color = new Color(Integer.valueOf(split[2].substring(1), 16));</BUG> } public int getFontSize() { return fontSize;
font = getFont(split[1]); color = new Color(Integer.valueOf(split[2].substring(1), 16));
41,777
package cc.catalysts.boot.report.pdf.elements; import cc.catalysts.boot.report.pdf.config.PdfTextStyle; import cc.catalysts.boot.report.pdf.utils.ReportAlignType; import org.apache.pdfbox.pdmodel.PDPageContentStream; <BUG>import org.apache.pdfbox.pdmodel.font.PDFont; import org.slf4j.Logger;</BUG> import org.slf4j.LoggerFactory; import org.springframework.util.StringUtils; import java.io.IOException;
import org.apache.pdfbox.pdmodel.font.PDType1Font; import org.apache.pdfbox.util.Matrix; import org.slf4j.Logger;
41,778
addTextSimple(stream, textConfig, textX, nextLineY, ""); return nextLineY; } try { <BUG>String[] split = splitText(textConfig.getFont(), textConfig.getFontSize(), allowedWidth, fixedText); </BUG> float x = calculateAlignPosition(textX, align, textConfig, allowedWidth, split[0]); if (!underline) { addTextSimple(stream, textConfig, x, nextLineY, split[0]); } else {
String[] split = splitText(textConfig.getFont(), textConfig.getFontSize(), allowedWidth, text);
41,779
public static void addTextSimple(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) { try { stream.setFont(textConfig.getFont(), textConfig.getFontSize()); stream.setNonStrokingColor(textConfig.getColor()); stream.beginText(); <BUG>stream.newLineAtOffset(textX, textY); stream.showText(text);</BUG> } catch (Exception e) { LOG.warn("Could not add text: " + e.getClass() + " - " + e.getMessage()); }
stream.setTextMatrix(new Matrix(1,0,0,1, textX, textY)); stream.showText(text);
41,780
public static void addTextSimpleUnderlined(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) { addTextSimple(stream, textConfig, textX, textY, text); try { float lineOffset = textConfig.getFontSize() / 8F; stream.setStrokingColor(textConfig.getColor()); <BUG>stream.setLineWidth(0.5F); stream.drawLine(textX, textY - lineOffset, textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset); </BUG> stream.stroke(); } catch (IOException e) {
stream.moveTo(textX, textY - lineOffset); stream.lineTo(textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset);
41,781
list.add(text.length()); return list; } public static String[] splitText(PDFont font, int fontSize, float allowedWidth, String text) { String endPart = ""; <BUG>String shortenedText = text; List<String> breakSplitted = Arrays.asList(shortenedText.split("(\\r\\n)|(\\n)|(\\n\\r)")).stream().collect(Collectors.toList()); if (breakSplitted.size() > 1) {</BUG> String[] splittedFirst = splitText(font, fontSize, allowedWidth, breakSplitted.get(0)); StringBuilder remaining = new StringBuilder(splittedFirst[1] == null ? "" : splittedFirst[1] + "\n");
List<String> breakSplitted = Arrays.asList(text.split("(\\r\\n)|(\\n)|(\\n\\r)")).stream().collect(Collectors.toList()); if (breakSplitted.size() > 1) {
41,782
package cc.catalysts.boot.report.pdf.elements; import org.apache.pdfbox.pdmodel.PDDocument; <BUG>import org.apache.pdfbox.pdmodel.edit.PDPageContentStream; import java.io.IOException;</BUG> import java.util.ArrayList; import java.util.Collection; import java.util.LinkedList;
import org.apache.pdfbox.pdmodel.PDPageContentStream; import java.io.IOException;
41,783
package com.projecttango.examples.java.augmentedreality; import com.google.atap.tangoservice.Tango; import com.google.atap.tangoservice.Tango.OnTangoUpdateListener; import com.google.atap.tangoservice.TangoCameraIntrinsics; import com.google.atap.tangoservice.TangoConfig; <BUG>import com.google.atap.tangoservice.TangoCoordinateFramePair; import com.google.atap.tangoservice.TangoEvent;</BUG> import com.google.atap.tangoservice.TangoOutOfDateException; import com.google.atap.tangoservice.TangoPoseData; import com.google.atap.tangoservice.TangoXyzIjData;
import com.google.atap.tangoservice.TangoErrorException; import com.google.atap.tangoservice.TangoEvent;
41,784
super.onResume(); if (!mIsConnected) { mTango = new Tango(AugmentedRealityActivity.this, new Runnable() { @Override public void run() { <BUG>try { connectTango();</BUG> setupRenderer(); mIsConnected = true; } catch (TangoOutOfDateException e) {
TangoSupport.initialize(); connectTango();
41,785
if (lastFramePose.statusCode == TangoPoseData.POSE_VALID) { mRenderer.updateRenderCameraPose(lastFramePose, mExtrinsics); mCameraPoseTimestamp = lastFramePose.timestamp;</BUG> } else { <BUG>Log.w(TAG, "Can't get device pose at time: " + mRgbTimestampGlThread); }</BUG> } } } @Override
mRenderer.updateRenderCameraPose(lastFramePose); mCameraPoseTimestamp = lastFramePose.timestamp; Log.w(TAG, "Can't get device pose at time: " +
41,786
import org.rajawali3d.materials.Material; import org.rajawali3d.materials.methods.DiffuseMethod; import org.rajawali3d.materials.textures.ATexture; import org.rajawali3d.materials.textures.StreamingTexture; import org.rajawali3d.materials.textures.Texture; <BUG>import org.rajawali3d.math.Matrix4; import org.rajawali3d.math.vector.Vector3;</BUG> import org.rajawali3d.primitives.ScreenQuad; import org.rajawali3d.primitives.Sphere; import org.rajawali3d.renderer.RajawaliRenderer;
import org.rajawali3d.math.Quaternion; import org.rajawali3d.math.vector.Vector3;
41,787
translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE); translationMoon.setTransformable3D(moon); getCurrentScene().registerAnimation(translationMoon); translationMoon.play(); } <BUG>public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) { Pose cameraPose = ScenePoseCalculator.toOpenGlCameraPose(devicePose, extrinsics); getCurrentCamera().setRotation(cameraPose.getOrientation()); getCurrentCamera().setPosition(cameraPose.getPosition()); }</BUG> public int getTextureId() {
public void updateRenderCameraPose(TangoPoseData cameraPose) { float[] rotation = cameraPose.getRotationAsFloats(); float[] translation = cameraPose.getTranslationAsFloats(); Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]); getCurrentCamera().setRotation(quaternion.conjugate()); getCurrentCamera().setPosition(translation[0], translation[1], translation[2]);
41,788
package com.projecttango.examples.java.helloareadescription; import com.google.atap.tangoservice.Tango; <BUG>import com.google.atap.tangoservice.Tango.OnTangoUpdateListener; import com.google.atap.tangoservice.TangoConfig;</BUG> import com.google.atap.tangoservice.TangoCoordinateFramePair; import com.google.atap.tangoservice.TangoErrorException; import com.google.atap.tangoservice.TangoEvent;
import com.google.atap.tangoservice.TangoAreaDescriptionMetaData; import com.google.atap.tangoservice.TangoConfig;
41,789
ClassElementValueGen evg = new ClassElementValueGen(classType, cp); assertTrue("Unexpected value for contained class: '" + evg.getClassString() + "'", evg.getClassString().contains("Integer")); checkSerialize(evg, cp); } <BUG>private void checkSerialize(final ElementValueGen evgBefore, final ConstantPoolGen cpg) { try {</BUG> String beforeValue = evgBefore.stringifyValue();
private void checkSerialize(final ElementValueGen evgBefore, final ConstantPoolGen cpg) { try {
41,790
cpg); dis.close();</BUG> String afterValue = evgAfter.stringifyValue(); <BUG>if (!beforeValue.equals(afterValue)) { fail("Deserialization failed: before='" + beforeValue + "' after='" + afterValue + "'");</BUG> }
ClassElementValueGen evg = new ClassElementValueGen(classType, cp); assertTrue("Unexpected value for contained class: '" + evg.getClassString() + "'", evg.getClassString().contains("Integer")); checkSerialize(evg, cp);
41,791
fail("Deserialization failed: before='" + beforeValue + "' after='" + afterValue + "'");</BUG> } <BUG>} catch (IOException ioe) {</BUG> fail("Unexpected exception whilst checking serialization: " + ioe); }
ClassElementValueGen evg = new ClassElementValueGen(classType, cp); assertTrue("Unexpected value for contained class: '" + evg.getClassString() + "'", evg.getClassString().contains("Integer")); checkSerialize(evg, cp);
41,792
public int compareTo(Frequency o) { return this.start_time - o.start_time; } public static class Loader extends Entity.Loader<Frequency> { public Loader(GTFSFeed feed) { <BUG>super(feed, "frequencies"); }</BUG> @Override public void loadOneRow() throws IOException { Frequency f = new Frequency();
protected boolean isRequired() { return false;
41,793
throw new RuntimeException(e); } } public static class Loader extends Entity.Loader<FeedInfo> { public Loader(GTFSFeed feed) { <BUG>super(feed, "feed_info"); }</BUG> @Override public void loadOneRow() throws IOException { FeedInfo fi = new FeedInfo();
protected boolean isRequired() { return false;
41,794
public int drop_off_type; public double shape_dist_traveled; public int timepoint = INT_MISSING; public static class Loader extends Entity.Loader<StopTime> { public Loader(GTFSFeed feed) { <BUG>super(feed, "stop_times"); }</BUG> @Override public void loadOneRow() throws IOException { StopTime st = new StopTime();
} protected boolean isRequired() { return true; }
41,795
public URL agency_fare_url; public URL agency_branding_url; public String feed_id; public static class Loader extends Entity.Loader<Agency> { public Loader(GTFSFeed feed) { <BUG>super(feed, "agency"); }</BUG> @Override public void loadOneRow() throws IOException { Agency a = new Agency();
} protected boolean isRequired() { return true; }
41,796
this.shape_pt_sequence = shape_pt_sequence; this.shape_dist_traveled = shape_dist_traveled; } public static class Loader extends Entity.Loader<ShapePoint> { public Loader(GTFSFeed feed) { <BUG>super(feed, "shapes"); }</BUG> @Override public void loadOneRow() throws IOException { String shape_id = getStringField("shape_id", true);
protected boolean isRequired() { return false;
41,797
public String stop_timezone; public String wheelchair_boarding; public String feed_id; public static class Loader extends Entity.Loader<Stop> { public Loader(GTFSFeed feed) { <BUG>super(feed, "stops"); }</BUG> @Override public void loadOneRow() throws IOException { Stop s = new Stop();
} protected boolean isRequired() { return true; }
41,798
public String route_text_color; public URL route_branding_url; public String feed_id; public static class Loader extends Entity.Loader<Route> { public Loader(GTFSFeed feed) { <BUG>super(feed, "routes"); }</BUG> @Override public void loadOneRow() throws IOException { Route r = new Route();
} protected boolean isRequired() { return true; }
41,799
public String feed_id; public static class Loader extends Entity.Loader<FareAttribute> { private final Map<String, Fare> fares; public Loader(GTFSFeed feed, Map<String, Fare> fares) { super(feed, "fare_attributes"); <BUG>this.fares = fares; }</BUG> @Override public void loadOneRow() throws IOException { String fareId = getStringField("fare_id", true);
} protected boolean isRequired() { return false; }
41,800
public String to_stop_id; public int transfer_type; public int min_transfer_time; public static class Loader extends Entity.Loader<Transfer> { public Loader(GTFSFeed feed) { <BUG>super(feed, "transfers"); }</BUG> @Override public void loadOneRow() throws IOException { Transfer tr = new Transfer();
} protected boolean isRequired() { return false; }