idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,425,193
public static UpdateStateConfigurationResponse unmarshall(UpdateStateConfigurationResponse updateStateConfigurationResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateStateConfigurationResponse.setRequestId(_ctx.stringValue("UpdateStateConfigurationResponse.RequestId"));<NEW_LINE>List<StateConfigurationItem> stateConf...
("UpdateStateConfigurationResponse.StateConfiguration[" + i + "].ResourceGroupId"));
1,481,878
public User call() throws Exception {<NEW_LINE>GitHubClient client = new TwoFactorAuthClient();<NEW_LINE>client.setCredentials(username, password);<NEW_LINE>User user;<NEW_LINE>try {<NEW_LINE>user = new UserService(client).getUser();<NEW_LINE>} catch (TwoFactorAuthException e) {<NEW_LINE>if (e.twoFactorAuthType == TWO_...
user.getLogin(), ACCOUNT_TYPE);
1,760,623
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.amazonaws.services.s3.AmazonS3#completeMultipartUpload(com.amazonaws<NEW_LINE>* .services.s3.model.CompleteMultipartUploadRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public CompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadReques...
key, completeMultipartUploadRequest, HttpMethodName.POST);
577,836
private static List<GeoPolygonFactory.PolygonDescription> convertToDescription(final PlanetModel planetModel, final Polygon... polygons) {<NEW_LINE>final List<GeoPolygonFactory.PolygonDescription> descriptions = new ArrayList<>(polygons.length);<NEW_LINE>for (final Polygon polygon : polygons) {<NEW_LINE>final Polygon[]...
(polyLons[index])));
371,540
protected void prepare() {<NEW_LINE>p_Record_ID = getRecord_ID();<NEW_LINE>if (p_AD_Client_ID == 0)<NEW_LINE>p_AD_Client_ID = Env.getAD_Client_ID(getCtx());<NEW_LINE>AD_Table_ID = getTable_ID();<NEW_LINE>StringBuffer sb = new StringBuffer("AD_Table_ID=").append(AD_Table_ID);<NEW_LINE>sb.append("; Record_ID=").append(ge...
info(sb.toString());
65,650
final AttachPolicyResult executeAttachPolicy(AttachPolicyRequest attachPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
518,962
protected JSDynamicObject toTemporalDuration(Object item, @Cached("create()") IsObjectNode isObjectNode, @Cached("create()") JSToStringNode toStringNode) {<NEW_LINE>JSTemporalDurationRecord result;<NEW_LINE>if (isObjectProfile.profile(isObjectNode.executeBoolean(item))) {<NEW_LINE>JSDynamicObject itemObj = (JSDynamicOb...
result = JSTemporalDuration.toTemporalDurationRecord(itemObj);
939,695
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Consumes(MediaType.APPLICATION_FORM_URLENCODED)<NEW_LINE>public Response regenerateKey(@Context final HttpServletRequest request, @Context final HttpServletResponse response) throws JSONException, IOException {<NEW_LINE>try {<NEW_LINE>final InitDataObject initData = new W...
())).build();
1,644,652
protected void fillBand(JRPrintBand band) {<NEW_LINE>if (isReorderBandElements()) {<NEW_LINE>List<JRPrintElement> elements = new ArrayList<>();<NEW_LINE>for (Iterator<JRPrintElement> it = band.iterateElements(); it.hasNext(); ) {<NEW_LINE>JRPrintElement element = it.next();<NEW_LINE>element.setX(element.getX() + offset...
element.getY() + offsetY);
1,242,357
default RGBColor average(Color other) {<NEW_LINE><MASK><NEW_LINE>RGBColor c2 = other.toRGB();<NEW_LINE>int r = (c1.red * c1.alpha / 255) + (c2.red * c1.blue * (255 - c1.alpha) / (255 * 255));<NEW_LINE>int g = (c1.green * c1.alpha / 255) + (c2.green * c1.blue * (255 - c1.alpha) / (255 * 255));<NEW_LINE>int b = (c1.blue ...
RGBColor c1 = this.toRGB();
1,125,008
Token mSTRING() {<NEW_LINE>// {setText(getText().substring(1, getText().length()-1));}<NEW_LINE>boolean sawEscape = false;<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>buf.append(c);<NEW_LINE>consume();<NEW_LINE>while (c != '"') {<NEW_LINE>if (c == '\\') {<NEW_LINE>sawEscape = true;<NEW_LINE>consume();<NE...
.line = input.getLine();
1,268,972
public static void init() {<NEW_LINE>if (Options.isSoundDisabled())<NEW_LINE>return;<NEW_LINE>currentFileIndex = 0;<NEW_LINE>int failedCount = 0;<NEW_LINE>// menu and game sounds<NEW_LINE>for (SoundEffect s : SoundEffect.values()) {<NEW_LINE>if ((currentFileName = getSoundFileName(s.getFileName())) == null) {<NEW_LINE>...
).open(Options.LOG_FILE);
603,672
private void goBack() {<NEW_LINE>final boolean isNavigationPage = activeParentNavigationPage_ != null;<NEW_LINE>// determine behavior based on whether we are going back to a<NEW_LINE>// navigation page or a selector page<NEW_LINE>final Widget toWidget = isNavigationPage ? activeParentNavigationPage_ : firstPage_;<NEW_L...
backButton_.setVisible(newActivePage != firstPage_);
209,320
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (!hasValidCSRFToken(request)) {<NEW_LINE>respondCSRFError(response);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("doPost Connection: {}", request....
response.setHeader("Content-Type", "application/json");
1,637,808
final GetMaintenanceWindowTaskResult executeGetMaintenanceWindowTask(GetMaintenanceWindowTaskRequest getMaintenanceWindowTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
991,851
public DeleteConflictOutcome handleDeleteConflicts(DeleteConflictList theConflictList, RequestDetails theRequest, TransactionDetails theTransactionDetails) {<NEW_LINE>ourLog.debug("Have delete conflicts: {}", theConflictList);<NEW_LINE>if (shouldCascade(theRequest) == DeleteCascadeModeEnum.NONE) {<NEW_LINE>// Add a mes...
dao.read(nextSource, theRequest);
850,763
public void PrintRegionData(int Label0, int Label1) {<NEW_LINE>if (Label0 < 0)<NEW_LINE>Label0 = 0;<NEW_LINE>if (Label1 > MaxLabel)<NEW_LINE>Label1 = MaxLabel;<NEW_LINE>if (Label1 < Label0)<NEW_LINE>return;<NEW_LINE>for (int Label = Label0; Label <= Label1; Label++) {<NEW_LINE>double[] Property = RegionData[Label];<NEW...
+ ThisParent + "] C[" + ThisColor + "]";
660,111
private void validateDataFields(BlindVote blindVote) throws ProposalValidationException {<NEW_LINE>try {<NEW_LINE>checkNotNull(<MASK><NEW_LINE>checkArgument(blindVote.getEncryptedVotes().length > 0, "encryptedProposalList must not be empty");<NEW_LINE>checkArgument(blindVote.getEncryptedVotes().length <= 100000, "encry...
blindVote.getEncryptedVotes(), "encryptedProposalList must not be null");
738,308
public ExportProjectResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportProjectResult exportProjectResult = new ExportProjectResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
348,856
static Fix createSuppressWarningsFix(CompilationInfo compilationInfo, TreePath treePath, String... keys) {<NEW_LINE>Parameters.notNull("compilationInfo", compilationInfo);<NEW_LINE>Parameters.notNull("treePath", treePath);<NEW_LINE>Parameters.notNull("keys", keys);<NEW_LINE>if (keys.length == 0) {<NEW_LINE>// NOI18N<NE...
compilationInfo.getFileObject(), keys);
548,104
public I_C_Print_Job_Instructions createPrintJobInstructions(@Nullable final UserId userToPrintId, final boolean createWithSpecificHostKey, @NonNull final I_C_Print_Job_Line firstLine, @NonNull final I_C_Print_Job_Line lastLine, final int copies) {<NEW_LINE>Check.assume(firstLine.getSeqNo() <= lastLine.getSeqNo(), "Fir...
, UserId.toRepoId(userToPrintId));
1,383,944
Guard anonfun_10(Guard pc_40, EventBuffer effects, EventHandlerReturnReason outcome) {<NEW_LINE>PrimitiveVS<Machine> var_$tmp0 = new PrimitiveVS<Machine>().restrict(pc_40);<NEW_LINE>PrimitiveVS<Event> var_$tmp1 = new PrimitiveVS<Event>(_null).restrict(pc_40);<NEW_LINE>PrimitiveVS<Machine> var_$tmp2 = new PrimitiveVS<Ma...
(this).restrict(pc_40);
806,792
public List<String> tailCloudLog(final LogConfigs configs, final String logPath, final int numLines) throws IOException {<NEW_LINE>LOGGER.debug("Tailing logs from S3 path: {}", logPath);<NEW_LINE>final S3Client s3Client = getOrCreateS3Client();<NEW_LINE>final var s3Bucket = <MASK><NEW_LINE>LOGGER.debug("Start making S3...
getBucketName(configs.getStorageConfigs());
95,756
private void updateCheckBoxes() {<NEW_LINE>Map<Object, JCheckBox> remaining = new IdentityHashMap<>();<NEW_LINE>// Add ones that are<NEW_LINE>remaining.putAll(item2CheckBoxMap);<NEW_LINE>ListModel model = list.getModel();<NEW_LINE>for (int i = 0; i < model.getSize(); i++) {<NEW_LINE>final Object item = model.getElement...
item2CheckBoxMap.put(item, cb);
1,114,735
private void init() {<NEW_LINE>// WARNING: called from ctor so must not be overridden (i.e. must be private or final)<NEW_LINE>setLayout(new VerticalLayout(5, VerticalLayout.BOTH));<NEW_LINE>setBorder(makeBorder());<NEW_LINE>add(makeTitlePanel());<NEW_LINE>JPanel threadDelayPropsPanel = new JPanel(new MigLayout("fillx,...
, getTimerRangeLabelKey(), RANGE_FIELD));
1,401,947
public ListMetricStreamsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListMetricStreamsResult listMetricStreamsResult = new ListMetricStreamsResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_L...
int originalDepth = context.getCurrentDepth();
1,757,954
void compileSingleFile(Path filePath, Path outputDirectory, AvroOptions options) throws CodeGenException {<NEW_LINE>final Schema schema;<NEW_LINE>File file = filePath.toFile();<NEW_LINE>// This is necessary to maintain backward-compatibility. If there are<NEW_LINE>// no imported files then isolate the schemas from each...
schema = schemaParser.parse(file);
305,015
public void run() {<NEW_LINE>try {<NEW_LINE>appletLock.lock();<NEW_LINE>AppletResourceController appletResourceController = new AppletResourceController(FreeplaneApplet.this);<NEW_LINE>new ParserDelegator() {<NEW_LINE><NEW_LINE>{<NEW_LINE>setDefaultDTD();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>controller = new Controller(appl...
new NextNodeAction(Direction.FORWARD));
1,283,133
public List<Long> addPagesToList(@NonNull String csrfToken, long listId, @NonNull List<RemoteReadingListEntry> entries) throws Throwable {<NEW_LINE>final int maxBatchSize = 50;<NEW_LINE>int batchIndex = 0;<NEW_LINE>List<Long> ids = new ArrayList<>();<NEW_LINE>List<RemoteReadingListEntry> currentBatch = new ArrayList<>(...
(currentBatch)).execute();
1,078,096
private Mono<PagedResponse<ActivityLogAlertResourceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new Illeg...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
248,571
public void invoke() {<NEW_LINE>// obtain the generation from project properties<NEW_LINE>JTextComponent component = cgsInfo.getComponent();<NEW_LINE>FileObject fo = NbEditorUtilities.getFileObject(component.getDocument());<NEW_LINE>Preferences preferences = null;<NEW_LINE>Project project = FileOwnerQuery.getOwner(fo);...
AS_JAVA.name())));
545,350
protected void configure() {<NEW_LINE>bind(ExtensionBootstrap.class).to(ExtensionBootstrapImpl.class);<NEW_LINE>bind(ExtensionStaticInitializer.class).to(ExtensionStaticInitializerImpl.class);<NEW_LINE>bind(HiveMQExtensionFactory.class).to(HiveMQExtensionFactoryImpl.class);<NEW_LINE>bind(ExtensionLoader.class).to(Exten...
).to(InitializerRegistryImpl.class);
765,099
private Node tryAppend(Node s, boolean haveData) {<NEW_LINE>for (Node t = tail, p = t; ; ) {<NEW_LINE>// move p to last node and append<NEW_LINE>// temps for reads of next & tail<NEW_LINE>Node n, u;<NEW_LINE>if (p == null && (p = head) == null) {<NEW_LINE>if (casHead(null, s))<NEW_LINE>// initialize<NEW_LINE>return s;<...
) != null && s != UNLINKED) ;
1,836,037
@Override<NEW_LINE>protected Component createLayout(PropertyBuilder propertyBuilder, @Nonnull Disposable uiDisposable) {<NEW_LINE>VerticalLayout rootLayout = VerticalLayout.create();<NEW_LINE>ExternalDiffSettings externalDiffSettings = myExternalDiffSettings.get();<NEW_LINE>CheckBox enableForFiles = CheckBox.create(Dif...
externalDiffSettings::getMergeExePath, externalDiffSettings::setMergeExePath);
460,386
static void copyLocalFileOrDirectory(File src, File dst) throws IOException {<NEW_LINE>try {<NEW_LINE>Files.createSymbolicLink(dst.toPath(), src.toPath());<NEW_LINE>return;<NEW_LINE>} catch (IOException e) {<NEW_LINE>LOG.info("Creating symbolic links from {} to {} failed.", src.getAbsolutePath(), dst.getAbsoluteFile())...
] files = src.listFiles();
971,943
private void startLookup() {<NEW_LINE>contacts_to_query_mon = new AEMonitor("DHTControl:ctq");<NEW_LINE>contacts_to_query = getClosestContactsSet(lookup_id, K, false);<NEW_LINE><MASK><NEW_LINE>// record the set of contacts we've queried to avoid re-queries<NEW_LINE>contacts_queried = new ByteArrayHashMap<>();<NEW_LINE>...
level_map = new LightHashMap<>();
1,378,735
/*<NEW_LINE>private String getLifecycleId()<NEW_LINE>{<NEW_LINE>String id = _externalContext.getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR);<NEW_LINE><NEW_LINE>if (id != null)<NEW_LINE>{<NEW_LINE>return id;<NEW_LINE>}<NEW_LINE><NEW_LINE>return LifecycleFactory.DEFAULT_LIFECYCLE;<NEW_LINE>}*/<NEW_LINE>private void han...
"Serialization provider : " + serialFactory.getClass());
586,410
// getRecordWhere<NEW_LINE>private String buildPersonalDataRecordAccessSqlWhereClause(@NonNull final AdTableId adTableId, @NonNull final String keyColumnNameFQ, @NonNull final UserId userId) {<NEW_LINE>final StringBuilder sql = new StringBuilder(" NOT EXISTS ( SELECT Record_ID FROM " + I_AD_Private_Access.Table_Name + ...
userGroupIds)).append(")");
1,358,557
protected Optional<ShardingConditions> createShardingConditions(final SQLStatementContext<?> sqlStatementContext, final ShardingRule shardingRule, final Collection<AssignmentSegment> assignments, final List<Object> parameters) {<NEW_LINE>Collection<ShardingConditionValue> values = new LinkedList<>();<NEW_LINE>String ta...
assignmentValue = getShardingColumnAssignmentValue(each, parameters);
1,143,091
static void writeFile(ByteArrayPayload payload, String path) throws IOException {<NEW_LINE>File file = new File(path);<NEW_LINE>if (file.exists() && !file.delete()) {<NEW_LINE>throw new IOException("Cannot overwrite " + path + ". Perhaps the file is locked?");<NEW_LINE>}<NEW_LINE>// create data stream<NEW_LINE>InputStr...
(int) payload.getLength();
1,172,560
// Concatenates list1 and list2. The nodes of list2 are added to the end of<NEW_LINE>// list1. The list2 index becomes invalid.<NEW_LINE>// Returns list1.<NEW_LINE>int concatenateLists(int list1, int list2) {<NEW_LINE>int tailNode1 = m_lists.getField(list1, 1);<NEW_LINE>int headNode2 = <MASK><NEW_LINE>if (// do not con...
m_lists.getField(list2, 0);
1,295,511
public void marshall(EngineTranscribeSettings engineTranscribeSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (engineTranscribeSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(engineTransc...
e.getMessage(), e);
304,149
public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>SysSite site = getSite(handler);<NEW_LINE>CmsCategoryQuery queryEntity = new CmsCategoryQuery();<NEW_LINE>queryEntity.setQueryAll<MASK><NEW_LINE>if (handler.getBoolean("advanced", false)) {<NEW_LINE>queryEntity.setDisabled(handler.getBo...
(handler.getBoolean("queryAll"));
771,904
private MethodSpec renderNamedDeleteRow() {<NEW_LINE>MethodSpec.Builder deleteRowBuilder = MethodSpec.methodBuilder("deleteRow").addModifiers(Modifier.PUBLIC).addJavadoc("Delete all columns for specified row components.");<NEW_LINE><MASK><NEW_LINE>SortedSet<NamedColumnDescription> namedColumns = ColumnRenderers.namedCo...
deleteRowBuilder = addParametersFromRowComponents(deleteRowBuilder, tableMetadata);
151,492
public void launchGame(Profile profile, Account account, AuthenticationResponse auth) {<NEW_LINE>Log.i(TAG, "launchGame: Launching in " + gameDirectory);<NEW_LINE>File nativeDirectory = new File(gameDirectory, "versions/" + profile.getVersion().getId() + "/" + profile.getVersion().getId() + "-natives-" + System.nanoTim...
gameDirectory, assetsDirectory, nativeDirectory, virtualAssetsDirectory);
281,129
private void validateContentCluster(ContentCluster currentCluster, ContentCluster nextCluster) {<NEW_LINE>String clusterName = currentCluster.getName();<NEW_LINE>currentCluster.getDocumentDefinitions().forEach((documentTypeName, currentDocumentType) -> {<NEW_LINE>NewDocumentType nextDocumentType = nextCluster.getDocume...
currentIsGlobal = currentCluster.isGloballyDistributed(currentDocumentType);
1,627,720
public SqlInjectionMatchSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SqlInjectionMatchSetUpdate sqlInjectionMatchSetUpdate = new SqlInjectionMatchSetUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
().unmarshall(context));
879,368
public Direction estimateDirection(String str) {<NEW_LINE>int rtlCount = 0;<NEW_LINE>int total = 0;<NEW_LINE>boolean hasWeaklyLtr = false;<NEW_LINE>SplitResult <MASK><NEW_LINE>for (int i = 0; i < tokens.length(); i++) {<NEW_LINE>String token = tokens.get(i);<NEW_LINE>if (startsWithRtl(token)) {<NEW_LINE>rtlCount++;<NEW...
tokens = WORD_SEPARATOR_RE.split(str);
1,184,234
public void onMessageReceived(final RemoteMessage remoteMessage) {<NEW_LINE>super.onMessageReceived(remoteMessage);<NEW_LINE>final Boolean isBrazeMessage = this.remotePushClientType.handleRemoteMessages(this, remoteMessage);<NEW_LINE>if (!isBrazeMessage) {<NEW_LINE>final String senderId = getString(R.string.gcm_default...
"Received message: %s", envelope.toString());
1,762,947
public static ListFunctionResponse unmarshall(ListFunctionResponse listFunctionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionResponse.setRequestId(_ctx.stringValue("ListFunctionResponse.RequestId"));<NEW_LINE>listFunctionResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionResponse.HttpStatusCode"));<N...
(_ctx.integerValue("ListFunctionResponse.Paginator.PageCount"));
288,857
protected void listKeys(PrintStream out, PrintStream err, List<String> args) throws Exception {<NEW_LINE>final String[] usage = { "list-keys - ", "Usage: list-keys ", /* [-t mode-table] [-T key-table] */<NEW_LINE>" -? --help Show help" };<NEW_LINE>Options opt = Options.compile<MASK><NEW_LINE>if (opt...
(usage).parse(args);
276,559
public NotificationCompat.Builder buildNotification(boolean wearable) {<NEW_LINE>String notificationTitle;<NEW_LINE>String notificationText;<NEW_LINE>icon = R.drawable.ic_notification_bug;<NEW_LINE>notificationTitle = app.getString(R.string.shared_string_unexpected_error);<NEW_LINE>NavigationService service = app.getNa...
boolean pause = routingHelper.isPauseNavigation();
44,319
protected <T> T castTimestamp(DefaultJSONParser parser, Type clazz, Object fieldName, Object val) {<NEW_LINE>if (val == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (val instanceof java.util.Date) {<NEW_LINE>return (T) new java.sql.Timestamp(((Date) val).getTime());<NEW_LINE>}<NEW_LINE>if (val instanceof BigDec...
.getCalendar().getTimeInMillis();
911,315
private boolean isApplicable(FileObject fileObject) {<NEW_LINE>Project project = FileOwnerQuery.getOwner(fileObject);<NEW_LINE>if (project == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>WebModule webModule = WebModule.getWebModule(project.getProjectDirectory());<NEW_LINE>if (webModule == null) {<NEW_LINE>return ...
Profile profile = webModule.getJ2eeProfile();
1,631,653
public void marshall(StartTaskRequest startTaskRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startTaskRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(startTaskRequest.getCluster(), CLUST...
startTaskRequest.getEnableExecuteCommand(), ENABLEEXECUTECOMMAND_BINDING);
405,833
public static WsdlInterface[] importWsdl(WsdlProject project, String url, boolean createRequests, QName bindingName, WsdlLoader wsdlLoader) throws SoapUIException {<NEW_LINE>WsdlInterface[] result;<NEW_LINE>PropertyExpansionContext context = new DefaultPropertyExpansionContext(project.getModelItem());<NEW_LINE>url = <M...
PropertyExpander.expandProperties(context, url);
1,555,028
public /*private final String SEPARATOR = ",";<NEW_LINE>private final String END_OF_LINE = "\n";<NEW_LINE><NEW_LINE><NEW_LINE>private String convertResponsesToCommaDelimited(List<Object[]> guestbookResponses) {<NEW_LINE><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Guestbook, Dataset, Date, Type...
? "" : response[1]);
920,232
public void refresh() {<NEW_LINE>if (manualRefresh) {<NEW_LINE>manualRefresh = false;<NEW_LINE>getPrevTotalPerf();<NEW_LINE>}<NEW_LINE>MapPack map = new MapPack();<NEW_LINE>map.put("objType", objType);<NEW_LINE>map.put("counter", counter);<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final DoubleVal...
primaryYAxis.setRange(0, 100);
341,820
private void writeEventToRelayDispatcher(ConnectionState curState, DbusEvent event, String message) throws InterruptedException, InvalidEventException {<NEW_LINE>boolean success = false;<NEW_LINE>// Create a infinite backoff timer that waits for maximum of 1 sec<NEW_LINE>// for writing the control message to evb<NEW_LI...
getRawBytes().get(eventBytes);
549,904
public static Map<Integer, ?> constantsMap(FileScanTask task, Types.StructType partitionType, BiFunction<Type, Object, Object> convertConstant) {<NEW_LINE>PartitionSpec spec = task.spec();<NEW_LINE>StructLike partitionData = task<MASK><NEW_LINE>// use java.util.HashMap because partition data may contain null values<NEW...
.file().partition();
375,364
public V put(final K key, final V value) {<NEW_LINE>int hash = hash(key);<NEW_LINE>MapEntry<K, V>[] table = this.entries;<NEW_LINE>while (true) {<NEW_LINE>int index = hash <MASK><NEW_LINE>MapEntry<K, V> tombstone = null;<NEW_LINE>for (int i = index; i < table.length; i++) {<NEW_LINE>MapEntry<K, V> entry = table[i];<NEW...
& (table.length - 1);
638,270
public CompletableFuture<OutputT> execute(SdkHttpFullRequest input, RequestExecutionContext context) throws Exception {<NEW_LINE>CompletableFuture<OutputT> future = new CompletableFuture<>();<NEW_LINE>long apiCallTimeoutInMillis = resolveTimeoutInMillis(() -> context.requestConfig().apiCallTimeout(), clientConfig.optio...
future, scheduledExecutor, exceptionSupplier, apiCallTimeoutInMillis);
490,706
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, NetServerOptions obj) {<NEW_LINE>for (java.util.Map.Entry<String, Object> member : json) {<NEW_LINE>switch(member.getKey()) {<NEW_LINE>case "acceptBacklog":<NEW_LINE>if (member.getValue() instanceof Number) {<NEW_LINE>obj.setAcceptBacklog(((Number...
) member.getValue()));
1,718,502
private void run(String... args) {<NEW_LINE>TreeMap<Integer, String> map = getProcesses();<NEW_LINE>System.out.println("Processes:");<NEW_LINE>System.out.println(map);<NEW_LINE>if (args.length == 0) {<NEW_LINE>System.out.println("Kill a Java process");<NEW_LINE>System.out.println("Usage: java " + getClass().getName() +...
String name = e.getValue();
931,563
public void openConnection(ConnectionHandle ch, Map<String, String> info) {<NEW_LINE>Properties fullInfo = new Properties();<NEW_LINE>fullInfo.putAll(this.info);<NEW_LINE>if (info != null) {<NEW_LINE>fullInfo.putAll(info);<NEW_LINE>}<NEW_LINE>final ConcurrentMap<String, Connection> cacheAsMap = connectionCache.asMap();...
RuntimeException("Connection already exists: " + ch.id);
1,492,609
public static String format(TalkgroupIdentifier identifier, IntegerFormat format, boolean fixedWidth) {<NEW_LINE>if (identifier instanceof MPT1327Talkgroup) {<NEW_LINE>MPT1327Talkgroup mpt = (MPT1327Talkgroup) identifier;<NEW_LINE>if (fixedWidth) {<NEW_LINE>switch(format) {<NEW_LINE>case DECIMAL:<NEW_LINE>return toDeci...
+ SEPARATOR + mpt.getIdent();
1,320,980
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String imei = parser.next();<NEW_LINE>DeviceSession deviceSession = getDeviceSessio...
setTime(parser.nextDateTime());
869,930
public static GetQualityRuleDetailResponse unmarshall(GetQualityRuleDetailResponse getQualityRuleDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQualityRuleDetailResponse.setRequestId(_ctx.stringValue("GetQualityRuleDetailResponse.RequestId"));<NEW_LINE>getQualityRuleDetailResponse.setMessage(_ctx.stringValue("...
(_ctx.stringValue("GetQualityRuleDetailResponse.Data.Name"));
1,616,426
/*<NEW_LINE>// Slower, non-indexed algorithm. Left here for future testing.<NEW_LINE><NEW_LINE>private Coordinate[] OLDcomputeCurve(Coordinate[] curveRingPts, Coordinate[] rawOffset) {<NEW_LINE>boolean[] isInCurve = new boolean[curveRingPts.length - 1];<NEW_LINE>int curveStart = -1;<NEW_LINE>for (int i = 0; i < rawOff...
= new LineSegment(seg0, seg1);
867,392
protected void performWorkload(BaseSubscriber<CosmosItemResponse> baseSubscriber, long i) throws InterruptedException {<NEW_LINE>String id = uuid + i;<NEW_LINE>Mono<CosmosItemResponse<PojoizedJson>> obs;<NEW_LINE>PojoizedJson newDoc = BenchmarkHelper.generateDocument(id, dataFieldValue, partitionKey, configuration.getD...
.context = latency.time();
1,198,431
public void filterCmpValue(QueryExecutionContext context, ScanOperation op, ScanFilter filter) {<NEW_LINE>try {<NEW_LINE>filter.begin(Group.GROUP_OR);<NEW_LINE>Object parameterValue = parameter.getParameterValue(context);<NEW_LINE>if (parameterValue == null) {<NEW_LINE>throw new ClusterJUserException(local.message("ERR...
parameterArray = (Object[]) parameterValue;
168,584
public final ExpressionDefContext expressionDef() throws RecognitionException {<NEW_LINE>ExpressionDefContext _localctx = new ExpressionDefContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 12, RULE_expressionDef);<NEW_LINE>try {<NEW_LINE>setState(586);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1...
_errHandler.reportError(this, re);
1,136,159
private void onConfigExport() {<NEW_LINE>FileDialog dialog = new FileDialog(getControl().getShell(), SWT.SAVE);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String proposal = TextUtil.sanitizeFilename(currentConfigLabel != null ? currentConfigLabel : "csv-config");<NEW_LINE>// $NON-NLS-1$<NEW_LINE>dialog.setFileName(proposal + ".j...
String fileName = dialog.open();
513,486
private SortedRangeList computeNavigationIndices(int height, AddressIndexMap map) {<NEW_LINE>double numIndexes = map.getIndexCount().doubleValue();<NEW_LINE>if (markers.isEmpty() || height == 0 || numIndexes == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (overview != null && lastHeight == height) {<NEW_LINE>// us...
newOverview.addRange(index, index);
144,133
public ListDevelopmentSchemaArnsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDevelopmentSchemaArnsResult listDevelopmentSchemaArnsResult = new ListDevelopmentSchemaArnsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
class).unmarshall(context));
826,773
public static ListFpShotImportJobResponse unmarshall(ListFpShotImportJobResponse listFpShotImportJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFpShotImportJobResponse.setRequestId(_ctx.stringValue("ListFpShotImportJobResponse.RequestId"));<NEW_LINE>List<String> nonExistIds = new ArrayList<String>();<NEW_LINE>fo...
= new ArrayList<FpShotImportJob>();
1,124,409
public static Piece hasWon(Piece[][] board) {<NEW_LINE>if (board.length != board[0].length)<NEW_LINE>return Piece.Empty;<NEW_LINE>int size = board.length;<NEW_LINE>ArrayList<PositionIterator> instructions = new ArrayList<PositionIterator>();<NEW_LINE>for (int i = 0; i < board.length; i++) {<NEW_LINE>instructions.add(ne...
1, -1, size));
799,222
public Builder mergeFrom(name.abuchen.portfolio.model.proto.v1.PTaxonomy other) {<NEW_LINE>if (other == name.abuchen.portfolio.model.proto.v1.PTaxonomy.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.getId().isEmpty()) {<NEW_LINE>id_ = other.id_;<NEW_LINE>onChanged();<NEW_LINE>}<NEW_LINE>if (!other.getN...
bitField0_ = (bitField0_ & ~0x00000002);
1,174,371
// TODO(malcon): Create a builder like LogCmd, etc.<NEW_LINE>ImmutableList<TreeElement> lsTree(GitRevision reference, @Nullable String treeish, boolean recursive, boolean fullName) throws RepoException {<NEW_LINE>ImmutableList.Builder<TreeElement> result = ImmutableList.builder();<NEW_LINE>List<String> args = Lists.new...
).replace("\\n", "\n");
1,171,849
public static Chrome instance(JasperReportsContext jasperReportsContext) {<NEW_LINE>JRPropertiesUtil properties = JRPropertiesUtil.getInstance(jasperReportsContext);<NEW_LINE>boolean enabled = properties.getBooleanProperty(PROPERTY_ENABLED, false);<NEW_LINE>if (enabled) {<NEW_LINE>enabled = CDTClassCheck.FOUND_CDT_CLAS...
properties.getLongProperty(PROPERTY_IDLE_TIMEOUT, 0);
792,156
public boolean onCallApi(int page, @Nullable Object parameter) {<NEW_LINE>if (page == 1) {<NEW_LINE>lastPage = Integer.MAX_VALUE;<NEW_LINE>sendToView(view -> view.getLoadMore().reset());<NEW_LINE>}<NEW_LINE>setCurrentPage(page);<NEW_LINE>if (page > lastPage || lastPage == 0) {<NEW_LINE>sendToView(RepoCommitsMvp.View::h...
(), repoId, login));
1,550,367
public ServiceContext generateServiceContext(Codec codec, TSSCompoundSecMechConfig requirement, ClientRequestInfo ri) throws UserException {<NEW_LINE>if (as_mech instanceof CSSNULLASMechConfig && sas_mech.isAssertingITTAbsent(requirement.getSas_mech())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>EstablishContext msg =...
.authorization_token = sas_mech.encodeAuthorizationElement();
1,693,327
public CreateAssociationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAssociationResult createAssociationResult = new CreateAssociationResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
int originalDepth = context.getCurrentDepth();
479,552
public PlanFragment visitPhysicalCTEConsume(OptExpression optExpression, ExecPlan context) {<NEW_LINE>PhysicalCTEConsumeOperator consume = (PhysicalCTEConsumeOperator) optExpression.getOp();<NEW_LINE>int cteId = consume.getCteId();<NEW_LINE>MultiCastPlanFragment cteFragment = (MultiCastPlanFragment) context.getCteProdu...
> projectMap = Maps.newHashMap();
870,060
final ListManagedDataIdentifiersResult executeListManagedDataIdentifiers(ListManagedDataIdentifiersRequest listManagedDataIdentifiersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listManagedDataIdentifiersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
false), new ListManagedDataIdentifiersResultJsonUnmarshaller());
1,672,923
private void decodeAlarm(Position position, int alarm) {<NEW_LINE>switch(alarm) {<NEW_LINE>case 0x01:<NEW_LINE>position.set(Position.KEY_ALARM, Position.ALARM_OVERSPEED);<NEW_LINE>break;<NEW_LINE>case 0x02:<NEW_LINE>position.set(<MASK><NEW_LINE>break;<NEW_LINE>case 0x03:<NEW_LINE>position.set(Position.KEY_ALARM, Positi...
Position.KEY_ALARM, Position.ALARM_LOW_POWER);
1,648,106
public byte[] box(byte[] message, final int moff, final int mlen, byte[] theNonce) {<NEW_LINE>// check message<NEW_LINE>if (!(message != null && message.length >= (moff + mlen) && theNonce != null && theNonce.length == nonceLength))<NEW_LINE>return null;<NEW_LINE>// message buffer<NEW_LINE>byte[] m = new byte[mlen + ze...
byte[c.length - boxzerobytesLength];
50,047
public static void drawCurveTrapezium(@Nonnull Graphics2D g, int x1, int x2, int start1, int end1, int start2, int end2, @Nullable Color fillColor, @Nullable Color borderColor) {<NEW_LINE>Shape upperCurve = makeCurve(x1, x2, start1, start2, true);<NEW_LINE>Shape lowerCurve = makeCurve(x1, x2, end1 + <MASK><NEW_LINE>Sha...
1, end2 + 1, false);
1,344,374
public Optional<ServiceBindingConfigSource> convert(List<ServiceBinding> serviceBindings) {<NEW_LINE>Optional<ServiceBinding> matchingByType = ServiceBinding.singleMatchingByType("kafka", serviceBindings);<NEW_LINE>if (!matchingByType.isPresent()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Map<String, Stri...
getProperties().get("bootstrap-servers");
264,634
private void writeEntry(DatenFilm datenFilm, JsonGenerator jg) throws IOException {<NEW_LINE>jg.writeArrayFieldStart(TAG_JSON_LIST);<NEW_LINE>writeSender(jg, datenFilm);<NEW_LINE>writeThema(jg, datenFilm);<NEW_LINE>writeTitel(jg, datenFilm);<NEW_LINE>jg.writeString(datenFilm.getSendeDatum());<NEW_LINE>writeZeit(jg, dat...
(datenFilm.isNew()));
479,127
public void buildInternal(View view) {<NEW_LINE>if (osmPoint instanceof OsmNotesPoint) {<NEW_LINE>OsmNotesPoint notes = (OsmNotesPoint) osmPoint;<NEW_LINE>buildRow(view, R.drawable.ic_action_note_dark, null, notes.getText(), 0, false, null, false, 0, false, null, false);<NEW_LINE>buildRow(view, R.drawable.ic_group, nul...
resId = RenderingIcons.getBigIconResourceId(id);
532,975
private Object readSimpleArray(Object value, Class<?> array) throws ConversionException {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(value instanceof JSONArray)) {<NEW_LINE>throwConversionException("readSimpleArray() expects a JSONArray.", value);<NEW_LINE>}<NEW_LINE>JSONArray json = ...
, SupportedClasses.get(component));
443,199
ActionResult<JsonElement> execute(String applicationDictFlag, String applicationFlag, String path0, String path1, String path2, String path3, String path4, String path5) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<JsonElement> ...
application().pick(applicationFlag);
85,396
public boolean visit(SQLBetweenExpr x) {<NEW_LINE>boolean not = x.isNot();<NEW_LINE>if (not) {<NEW_LINE>failureBecauseIndeterminacy(x);<NEW_LINE>} else {<NEW_LINE>SQLExpr testExpr = x.getTestExpr();<NEW_LINE>SQLExpr beginExpr = x.getBeginExpr();<NEW_LINE>SQLExpr endExpr = x.getEndExpr();<NEW_LINE>if (testExpr instanceo...
SQLName) testExpr).getResolvedColumn();
655,950
static void longToBase16String(long value, char[] dest, int destOffset) {<NEW_LINE>byteToBase16((byte) (value >> 56 & 0xFFL), dest, destOffset);<NEW_LINE>byteToBase16((byte) (value >> 48 & 0xFFL), dest, destOffset + BYTE_BASE16);<NEW_LINE>byteToBase16((byte) (value >> 40 & 0xFFL), dest, destOffset + 2 * BYTE_BASE16);<N...
dest, destOffset + 7 * BYTE_BASE16);
1,169,284
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null && card != null) {<NEW_LINE>// get main card id<NEW_LINE>UUID mainCardId = card.getMainCard().getId();<NEW_LINE>// retrieve the exileId of the foretold card<NEW_LINE>U...
.getId(), game));
1,606,758
public static int time(String hhmmss) {<NEW_LINE>int days = 0;<NEW_LINE>String[] tokens;<NEW_LINE>boolean negative = hhmmss.startsWith("-");<NEW_LINE>if (negative) {<NEW_LINE>hhmmss = hhmmss.substring(1);<NEW_LINE>}<NEW_LINE>Matcher m = DAYS_SUFFIX.matcher(hhmmss);<NEW_LINE>if (m.find()) {<NEW_LINE>days = Integer.parse...
(m.group(2));
1,689,366
private void processConfig(Map<String, Object> props) {<NEW_LINE>if (props == null || props.isEmpty())<NEW_LINE>return;<NEW_LINE>if ((Boolean) props.get(KEY_ENABLED)) {<NEW_LINE>id = (String) props.get(KEY_ID);<NEW_LINE>className = (String) props.get(KEY_CLASS_NAME);<NEW_LINE>invokeBeforeSSO = (Boolean) props.get(KEY_I...
" invokeBeforeSSO=" + invokeBeforeSSO + " invokeAfterSSO=" + invokeAfterSSO);
292,106
public static void checkAllAttributeExpressions(Grammar g) {<NEW_LINE>for (ActionAST act : g.namedActions.values()) {<NEW_LINE>AttributeChecks checker = new AttributeChecks(g, null, null, act, act.token);<NEW_LINE>checker.examineAction();<NEW_LINE>}<NEW_LINE>for (Rule r : g.rules.values()) {<NEW_LINE>for (ActionAST a :...
null, a, a.token);
85,989
public CRParseResult responseMessageForParseDirectory(String responseBody) {<NEW_LINE>ErrorCollection errors = new ErrorCollection();<NEW_LINE>try {<NEW_LINE>ResponseScratch responseMap = parseResponseForMigration(responseBody);<NEW_LINE>ParseDirectoryResponseMessage parseDirectoryResponseMessage;<NEW_LINE>if (response...
fromJson(responseBody, ParseDirectoryResponseMessage.class);