idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
726,815
private static void withinStyle(StringBuilder out, CharSequence text, int start, int end) {<NEW_LINE>for (int i = start; i < end; i++) {<NEW_LINE>char c = text.charAt(i);<NEW_LINE>if (c == '<') {<NEW_LINE>out.append("&lt;");<NEW_LINE>} else if (c == '>') {<NEW_LINE>out.append("&gt;");<NEW_LINE>} else if (c == '&') {<NE...
- 0xD800 << 10 | d - 0xDC00;
1,250,509
private static BakedQuad putQuad(Transformation transform, Direction side, TextureAtlasSprite sprite, int color, int tint, float x1, float y1, float x2, float y2, float z, float u1, float v1, float u2, float v2, int luminosity) {<NEW_LINE>BakedQuadBuilder builder = new BakedQuadBuilder(sprite);<NEW_LINE>builder.setQuad...
u2, v2, color, luminosity);
601,542
private CallTree selectInRootNodeList(final NodeList rootNodeList, boolean bestMatchingState) {<NEW_LINE>// in root list<NEW_LINE>if (rootNodeList.size() == 1) {<NEW_LINE>logger.info("Select root span in top node list");<NEW_LINE>final Node node = rootNodeList.get(0);<NEW_LINE>if (bestMatchingState) {<NEW_LINE>traceSta...
rootNodeList.filter(this.focusFilter);
405,768
final CancelHandshakeResult executeCancelHandshake(CancelHandshakeRequest cancelHandshakeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelHandshakeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
false), new CancelHandshakeResultJsonUnmarshaller());
708,997
public void dragEnter(DropTargetEvent event) {<NEW_LINE>// no event.data on dragOver, use drag_drop_line_start to determine<NEW_LINE>// if ours<NEW_LINE>lastScrollTime = 0;<NEW_LINE>if (drag_drop_location_start < 0) {<NEW_LINE>if (event.detail != DND.DROP_COPY) {<NEW_LINE>if ((event.operations & DND.DROP_LINK) > 0)<NEW...
? DND.DROP_NONE : DND.DROP_MOVE;
392,195
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.skill_condition__ringer_mode, container, false);<NEW_LINE>rg_ringer_mode = view.findViewById(R.id.rg_ringer_mode);<NEW_LINE>rb_ringer_mode_silen...
findViewById(R.id.rb_ringer_mode_normal);
997,793
public final Result applyFilter(@Nonnull String line, int entireLength) {<NEW_LINE>List<FileHyperlinkRawData> links;<NEW_LINE>try {<NEW_LINE>links = parse(line);<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>LOG.error("Failed to parse '" + line + "' with " + getClass(), e);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>...
? null : new Result(items);
1,037,717
public void doAbout(ActionEvent ae) {<NEW_LINE>Debug.log(3, "doAbout: selected");<NEW_LINE>EditorPane cp = SikulixIDE.get().getCurrentCodePane();<NEW_LINE>final SikulixIDE.PaneContext cx = cp.context;<NEW_LINE>if (cp.isTemp()) {<NEW_LINE>(new Thread() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE...
), cx.getImageFolder());
218,177
public void applyParameters(MotionWidget view) {<NEW_LINE>this.mVisibility = view.getVisibility();<NEW_LINE>this.mAlpha = (view.getVisibility() != MotionWidget.VISIBLE) ? 0.0f : view.getAlpha();<NEW_LINE>// TODO figure a way to cache parameters<NEW_LINE>this.mApplyElevation = false;<NEW_LINE>this<MASK><NEW_LINE>this.mR...
.mRotation = view.getRotationZ();
551,632
static void dissectCatalogResize(final MutableDirectBuffer buffer, final int offset, final StringBuilder builder) {<NEW_LINE>int absoluteOffset = offset;<NEW_LINE>absoluteOffset += dissectLogHeader(CONTEXT, CATALOG_RESIZE, buffer, absoluteOffset, builder);<NEW_LINE>final int maxEntries = buffer.getInt(absoluteOffset, L...
buffer.getLong(absoluteOffset, LITTLE_ENDIAN);
1,186,579
private static ConfiguredFeature<ResizableOreFeatureConfig, ResizableOreFeature> configureOreFeature(OreVeinType oreVeinType, FeatureRegistryObject<ResizableOreFeatureConfig, ? extends ResizableOreFeature> featureRO) {<NEW_LINE>OreVeinConfig oreVeinConfig = MekanismConfig.world.getVeinConfig(oreVeinType);<NEW_LINE>List...
, oreVeinConfig.discardChanceOnAirExposure()));
1,445,126
final RestoreServerResult executeRestoreServer(RestoreServerRequest restoreServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "RestoreServer");
1,801,397
private void importDatabase(final String airbyteVersion, final String targetSchema, final Map<JobsDatabaseSchema, Stream<JsonNode>> data, final boolean incrementalImport) throws IOException {<NEW_LINE>if (!data.isEmpty()) {<NEW_LINE>createSchema(BACKUP_SCHEMA);<NEW_LINE>jobDatabase.transaction(ctx -> {<NEW_LINE>// obta...
, data.get(tableType));
988,675
private static Map<String, SearchDefinition> toSearchDefinitions(IndexInfoConfig c) {<NEW_LINE>Map<String, SearchDefinition> searchDefinitions = new HashMap<>();<NEW_LINE>for (Iterator<IndexInfoConfig.Indexinfo> i = c.indexinfo().iterator(); i.hasNext(); ) {<NEW_LINE>IndexInfoConfig.<MASK><NEW_LINE>SearchDefinition sd ...
Indexinfo info = i.next();
1,567,344
private void okPressed() {<NEW_LINE>if (editable) {<NEW_LINE>X500Name dn = distinguishedNameChooser.getDN();<NEW_LINE>if (dn == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (dn.toString().isEmpty()) {<NEW_LINE>JOptionPane.showMessageDialog(this, res.getString("DDistinguishedNameChooser.ValueReqAtLeastOneField.messag...
getTitle(), JOptionPane.WARNING_MESSAGE);
673,463
private void addSortToPipeline(BasicDBObject orderBy, BasicDBObject aggregation, boolean hasLob, List<DBObject> pipeline) {<NEW_LINE>BasicDBObject actual = new BasicDBObject();<NEW_LINE>for (String key : orderBy.keySet()) {<NEW_LINE>if (aggregation.containsField(key)) {<NEW_LINE>actual.put(key, orderBy.get(key));<NEW_L...
, orderBy.get(key));
1,297,709
public static final long[] readThisLongArrayXml(XmlPullParser parser, String endTag, String[] name) throws XmlPullParserException, java.io.IOException {<NEW_LINE>int num;<NEW_LINE>try {<NEW_LINE>num = Integer.parseInt(parser.getAttributeValue(null, "num"));<NEW_LINE>} catch (NullPointerException e) {<NEW_LINE>throw new...
"Expected item tag at: " + parser.getName());
1,056,140
private Mono<PagedResponse<WorkspaceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LI...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
761,486
private void loadNode345() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ExclusiveLimitStateMachineType_HighHigh_StateNumber, new QualifiedName(0, "StateNumber"), new LocalizedText("en", "StateNumber"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue...
(1), 0.0, false);
799,371
public int extractFluid(IFluidHandler fluidHandler, EnumFacing side) {<NEW_LINE>int amount = fluidToExtract > transport.getFlowRate() ? transport.getFlowRate() : fluidToExtract;<NEW_LINE>FluidTankInfo tankInfo = transport.getTankInfo(side)[0];<NEW_LINE>FluidStack extracted;<NEW_LINE>if (tankInfo.fluid != null) {<NEW_LI...
fill(side, extracted, true);
1,489,877
private static final int packedNybblesToInt(ByteBuf buffer, int offset, int startNybble, int numberOfNybbles) {<NEW_LINE>int value = 0;<NEW_LINE>int i = startNybble / 2;<NEW_LINE>if ((startNybble % 2) != 0) {<NEW_LINE>// process low nybble of the first byte if necessary.<NEW_LINE>value += buffer.getByte(offset + i) & 0...
int endNybble = startNybble + numberOfNybbles - 1;
1,558,696
private void saveSettings(WizardDescriptor wizard) {<NEW_LINE>JUnitSettings settings = JUnitSettings.getDefault();<NEW_LINE>settings.setMembersPublic(Boolean.TRUE.equals(wizard.getProperty(GuiUtils.CHK_PUBLIC)));<NEW_LINE>settings.setMembersProtected(Boolean.TRUE.equals(wizard.<MASK><NEW_LINE>settings.setMembersPackage...
getProperty(GuiUtils.CHK_PROTECTED)));
99,339
private void paintAvailableColumns(PaintTarget target) throws PaintException {<NEW_LINE>if (columnCollapsingAllowed) {<NEW_LINE>final HashSet<Object> collapsedCols <MASK><NEW_LINE>for (Object colId : visibleColumns) {<NEW_LINE>if (isColumnCollapsed(colId)) {<NEW_LINE>collapsedCols.add(colId);<NEW_LINE>}<NEW_LINE>}<NEW_...
= new HashSet<Object>();
231,862
private void registerListener(AccessServiceConfig accessServiceConfigurationProperties, OMRSTopicConnector enterpriseOMRSTopicConnector, OMRSRepositoryConnector repositoryConnector, AuditLog auditLog) throws OMAGConfigurationErrorException {<NEW_LINE><MASK><NEW_LINE>String serviceName = accessServiceConfigurationProper...
Connection outTopicConnection = accessServiceConfigurationProperties.getAccessServiceOutTopic();
137,542
public void deleteCaseDefinitionAndRelatedData(String caseDefinitionId, boolean cascadeHistory) {<NEW_LINE>// Case instances<NEW_LINE>CaseInstanceEntityManager caseInstanceEntityManager = getCaseInstanceEntityManager();<NEW_LINE>CommandContext commandContext = Context.getCommandContext();<NEW_LINE>List<CaseInstance> ca...
getId(), true, null);
1,513,198
public Answer dettachIso(final DettachCommand cmd) {<NEW_LINE>final DiskTO disk = cmd.getDisk();<NEW_LINE>final TemplateObjectTO isoTO = <MASK><NEW_LINE>final DataStoreTO store = isoTO.getDataStore();<NEW_LINE>try {<NEW_LINE>String dataStoreUrl = getDataStoreUrlFromStore(store);<NEW_LINE>final Connect conn = LibvirtCon...
(TemplateObjectTO) disk.getData();
1,802,151
public static void addTermToTarget(Urn labelUrn, Urn targetUrn, String subResource, Urn actor, EntityService entityService) throws URISyntaxException {<NEW_LINE>if (subResource == null || subResource.equals("")) {<NEW_LINE>com.linkedin.common.GlossaryTerms terms = (com.linkedin.common.GlossaryTerms) getAspectFromEntity...
.setAuditStamp(getAuditStamp(actor));
40,395
// IFlowItems<NEW_LINE>@Override<NEW_LINE>public int tryExtractItems(int count, EnumFacing from, EnumDyeColor colour, IStackFilter filter, boolean simulate) {<NEW_LINE>if (pipe.getHolder().getPipeWorld().isRemote) {<NEW_LINE>throw new IllegalStateException("Cannot extract items on the client side!");<NEW_LINE>}<NEW_LIN...
tile, from.getOpposite());
596,863
public Result implement(EnumerableRelImplementor implementor, Prefer pref) {<NEW_LINE>// TODO for the moment only LAZY read & write is supported<NEW_LINE>if (readType != Type.LAZY || writeType != Type.LAZY) {<NEW_LINE>throw new UnsupportedOperationException("EnumerableTableSpool supports for the moment only LAZY read a...
append("input", inputResult.block);
640,290
private Mono<Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String vmScaleSetName, VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
7,315
static ChaiProvider openProxyChaiProvider(final ChaiProviderFactory chaiProviderFactory, final SessionLabel sessionLabel, final LdapProfile ldapProfile, final DomainConfig config, final StatisticsService statisticsManager) throws PwmUnrecoverableException {<NEW_LINE>LOGGER.trace(sessionLabel, () -> "opening new ldap pr...
"check ldap proxy settings: " + errorInformation.toDebugStr());
412,838
private static boolean isNewerVersion(String latestVersion) {<NEW_LINE>int[] oldVersions = versionStringToInt(getThisJarVersion());<NEW_LINE>int[] newVersions = versionStringToInt(latestVersion);<NEW_LINE>if (oldVersions.length < newVersions.length) {<NEW_LINE>System.err.println("Calculated: " + getThisJarVersion() + "...
.equals(getThisJarVersion()));
941,651
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public void run(@PathParam("name") String name, @Context EventManager events, @Suspended AsyncResponse response) {<NEW_LINE>String id = UUID.randomUUID().toString();<NEW_LINE>EventLog<LeadershipEventListener<String>, LeadershipEvent<String>> eventLog = events.getOrCreateEv...
serverError().build());
114,683
public Set<UsageContext> keySet() {<NEW_LINE>final EnumSet<UsageContext> set = EnumSet.noneOf(UsageContext.class);<NEW_LINE>if (terms > 0L) {<NEW_LINE>set.add(UsageContext.TERMS);<NEW_LINE>}<NEW_LINE>if (postings > 0L) {<NEW_LINE>set.add(UsageContext.POSTINGS);<NEW_LINE>}<NEW_LINE>if (termFrequencies > 0L) {<NEW_LINE>s...
set.add(UsageContext.DOC_VALUES);
684,292
public void start(Configuration conf) {<NEW_LINE>boolean httpEnabled = conf.getBoolean(PROMETHEUS_STATS_HTTP_ENABLE, DEFAULT_PROMETHEUS_STATS_HTTP_ENABLE);<NEW_LINE>boolean bkHttpServerEnabled = conf.getBoolean("httpServerEnabled", false);<NEW_LINE>// only start its own http server when prometheus http is enabled and b...
1, latencyRolloverSeconds, TimeUnit.SECONDS);
232,049
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context TheContext " + "context C0 partition by theString from SupportBean," + "context C1 initiated by SupportBean(intPrimitive=1) terminated by SupportBean(intPrimitive=2)", pat...
] { "C", -1L });
1,592,974
public PolicyError validate(RealmModel realm, UserModel user, String password) {<NEW_LINE>PasswordPolicy policy = session.getContext().getRealm().getPasswordPolicy();<NEW_LINE>int passwordHistoryPolicyValue = policy.getPolicyConfig(PasswordPolicy.PASSWORD_HISTORY_ID);<NEW_LINE>if (passwordHistoryPolicyValue != -1) {<NE...
hash.verify(password, passwordCredential);
215,825
public void writeRawBytes(final ByteString value, int offset, int length) throws IOException {<NEW_LINE>if (limit - position >= length) {<NEW_LINE>// We have room in the current buffer.<NEW_LINE>value.copyTo(buffer, offset, position, length);<NEW_LINE>position += length;<NEW_LINE>} else {<NEW_LINE>// Write extends past...
read(buffer, 0, bytesToRead);
1,378,845
private void manageRunDocumentCommand(boolean active) {<NEW_LINE>boolean runDocFromServerR = false;<NEW_LINE>if (active) {<NEW_LINE>String activePath = activeEditor_ != null ? activeEditor_.getPath() : null;<NEW_LINE>if (activePath != null) {<NEW_LINE>boolean isServerR = activePath.endsWith("server.R"<MASK><NEW_LINE>if...
) || activePath.endsWith("global.R");
811,836
private synchronized void checkSecondaryStorageResourceLimit(TemplateOrVolumePostUploadCommand cmd, int contentLengthInGB) {<NEW_LINE>String rootDir = this.getRootDir(cmd.getDataTo(), cmd.getNfsVersion()) + File.separator;<NEW_LINE>long accountId = cmd.getAccountId();<NEW_LINE>long accountTemplateDirSize = 0;<NEW_LINE>...
accountVolumeDirSize = FileUtils.sizeOfDirectory(accountVolumeDir);
968,057
String generateUpdateStatement(DBTable table, int row, Map<Integer, Object> changedRow, DataViewTableUIModel tblModel) throws DBException {<NEW_LINE>List<DBColumn> columns = table.getColumnList();<NEW_LINE>StringBuilder rawUpdateStmt = new StringBuilder();<NEW_LINE>// NOI18N<NEW_LINE>rawUpdateStmt.append("UPDATE ").app...
(dbcol.getQualifiedName(true));
276,839
public void onGroupExpand(int groupPosition) {<NEW_LINE>// these shouldn't ever be collapsible<NEW_LINE>if (adapter.isRowRootFolder(groupPosition))<NEW_LINE>return;<NEW_LINE>if (adapter.isRowReadStories(groupPosition))<NEW_LINE>return;<NEW_LINE>if (adapter.isRowSavedSearches(groupPosition))<NEW_LINE>return;<NEW_LINE>St...
adapter.setFolderClosed(flatGroupName, false);
1,591,793
public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>prefEnableCustomNotif = (SwitchPreference) getPreferenceScreen().findPreference(getString(R.string.custom_notification_enable_key));<NEW_LINE>prefMessagePreview = (SwitchPreference) getPrefe...
addPreferencesFromResource(R.xml.preference_custom_notify);
269,839
private void rewriteStringConcat(InfixExpression node) {<NEW_LINE>// Collect all non-string operands that precede the first string operand.<NEW_LINE>// If there are multiple such operands, move them into a sub-expression.<NEW_LINE>List<Expression> nonStringOperands = new ArrayList<>();<NEW_LINE>TypeMirror nonStringExpr...
nonStringExprType = getAdditionType(nonStringExprType, operandType);
414,728
private void appendBody(ContainerChange change, JsonObject toJson, JsonSerializationContext context) {<NEW_LINE>JsonArray jsonArray = new JsonArray();<NEW_LINE>for (ContainerElementChange elementChange : (List<ContainerElementChange>) change.getChanges()) {<NEW_LINE>JsonObject jsonElement = new JsonObject();<NEW_LINE>j...
INDEX_FIELD, elementChange.getIndex());
619,909
private void drawPathScreenTicks(Graphics2D g2d, float x, float y, int viewWidth, int viewHeight, int layoutWidth, int layoutHeight) {<NEW_LINE>float x1 = 0;<NEW_LINE>float y1 = 0;<NEW_LINE>float x2 = 1;<NEW_LINE>float y2 = 1;<NEW_LINE>float minx = 0;<NEW_LINE>float maxy = 0;<NEW_LINE>float xgap = x;<NEW_LINE>float yga...
x + 5, maxy - off);
1,671,531
private <T, U> List<U> transformAll(Collection<T> inputs, ValueOrTransformProvider<T, U> valueOrTransformProvider) {<NEW_LINE>assert !inputs.isEmpty();<NEW_LINE>return cache.useCache(() -> {<NEW_LINE>final List<U> results = new ArrayList<>(inputs.size());<NEW_LINE>final List<Callable<Void>> transforms = new ArrayList<>...
int index = results.size();
560,227
private void configureProperties() {<NEW_LINE>PropertyLayout propLayout = find("properties", PropertyLayout.class);<NEW_LINE>propLayout.setOrdering(PropertyOrdering.byLabel());<NEW_LINE>propLayout.clear();<NEW_LINE>WorldConfigurator worldConfig = worldGenerator.getConfigurator();<NEW_LINE>Map<String, Component> params ...
properties = provider.createProperties(target);
411,403
private void assertUnfilled(RegressionEnvironment env, EventBean event) {<NEW_LINE>assertNull(collectionValue(event, local -> local.c0));<NEW_LINE>assertNull(collectionValue(event, local -> local.c1));<NEW_LINE>assertNull(collectionValue(event, local -> local.c2));<NEW_LINE>assertNull(collectionValue(event<MASK><NEW_LI...
, local -> local.c3));
1,091,248
public MdmLink createOrUpdateLinkEntity(IBaseResource theGoldenResource, IBaseResource theSourceResource, MdmMatchOutcome theMatchOutcome, MdmLinkSourceEnum theLinkSource, @Nullable MdmTransactionContext theMdmTransactionContext) {<NEW_LINE>Long goldenResourcePid = myJpaIdHelperService.getPidOrNull(theGoldenResource);<...
).toUnqualifiedVersionless(), theMatchOutcome);
645,396
public RDSDatabaseCredentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RDSDatabaseCredentials rDSDatabaseCredentials = new RDSDatabaseCredentials();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
class).unmarshall(context));
1,032,999
protected void configure() {<NEW_LINE>bind(SystemMessageService.class).to(SystemMessageServiceImpl.class);<NEW_LINE>bind(AlertService.class).to(AlertServiceImpl.class);<NEW_LINE>bind(NotificationService.class<MASK><NEW_LINE>bind(IndexFailureService.class).to(IndexFailureServiceImpl.class);<NEW_LINE>bind(NodeService.cla...
).to(NotificationServiceImpl.class);
199,055
public static Iterable<String> iterateLookupStrings(@Nonnull final LookupElement element) {<NEW_LINE>return new Iterable<String>() {<NEW_LINE><NEW_LINE>@Nonnull<NEW_LINE>@Override<NEW_LINE>public Iterator<String> iterator() {<NEW_LINE>final Iterator<String> original = element<MASK><NEW_LINE>return new UnmodifiableItera...
.getAllLookupStrings().iterator();
541,151
public static void generateJLCGMODS(ClassWriter cw, String classname) {<NEW_LINE>FieldVisitor fv = cw.visitField(ACC_PUBLIC + ACC_STATIC, "__sljlcgmods", "Ljava/lang/reflect/Method;", null, null);<NEW_LINE>fv.visitEnd();<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_STATIC, "__sljlcgmods", "(Ljava/lang/C...
l0, l1, l2, "java/lang/Exception");
441,863
protected void startHeartbeat() throws ServiceException {<NEW_LINE>if (master == null) {<NEW_LINE>LOG.error("Master has not been connected");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>clientId = master.getClientId(null, GetClientIdRequest.getDefaultInstance()).getClientId();<NEW_LINE>master.clientRegister(null, ClientRegist...
(clientId).build());
1,035,362
public Request<UpdateCloudFrontOriginAccessIdentityRequest> marshall(UpdateCloudFrontOriginAccessIdentityRequest updateCloudFrontOriginAccessIdentityRequest) {<NEW_LINE>if (updateCloudFrontOriginAccessIdentityRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>...
= new XMLWriter(stringWriter, "http://cloudfront.amazonaws.com/doc/2020-05-31/");
1,367,768
private void doLoop(int packetCount, NativeMappings.pcap_handler handler) throws PcapNativeException, InterruptedException, NotOpenException {<NEW_LINE>if (!open) {<NEW_LINE>throw new NotOpenException();<NEW_LINE>}<NEW_LINE>if (!handleLock.readLock().tryLock()) {<NEW_LINE>throw new NotOpenException();<NEW_LINE>}<NEW_LI...
"Error occurred: " + getError(), rc);
657,411
public static KeyPair loadKeyPairFromKeystore(String keystoreFile, String storePassword, String keyPassword, String keyAlias, KeystoreFormat format) {<NEW_LINE>InputStream stream = FindFile.findFile(keystoreFile);<NEW_LINE>try {<NEW_LINE>KeyStore keyStore = null;<NEW_LINE>if (format == KeystoreFormat.JKS) {<NEW_LINE>ke...
getCertificate(keyAlias).getPublicKey();
926,900
public static DescribeDeploymentSetsResponse unmarshall(DescribeDeploymentSetsResponse describeDeploymentSetsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDeploymentSetsResponse.setRequestId(_ctx.stringValue("DescribeDeploymentSetsResponse.RequestId"));<NEW_LINE>describeDeploymentSetsResponse.setPageSize(_ctx....
("DescribeDeploymentSetsResponse.DeploymentSets[" + i + "].DeploymentSetName"));
1,170,617
public Network implement(final Network network, final NetworkOffering offering, final DeployDestination dest, final ReservationContext context) throws InsufficientVirtualNetworkCapacityException {<NEW_LINE>assert network.getState() == State.Implementing : "Why are we implementing " + network;<NEW_LINE>final long dcId =...
physicalNetworkId, context.getReservationId());
623,371
public static DescribeVnNavigationConfigResponse unmarshall(DescribeVnNavigationConfigResponse describeVnNavigationConfigResponse, UnmarshallerContext context) {<NEW_LINE>describeVnNavigationConfigResponse.setRequestId<MASK><NEW_LINE>GreetingConfig greetingConfig = new GreetingConfig();<NEW_LINE>greetingConfig.setGreet...
(context.stringValue("DescribeVnNavigationConfigResponse.RequestId"));
1,827,441
private Example applyCustomizationsToExample(Example example, Operation operation) {<NEW_LINE>if (example == null)<NEW_LINE>return null;<NEW_LINE>System.out.println(String.format("Customizing operation example : %s", example.getId()));<NEW_LINE>Input input = operation.getInput();<NEW_LINE>if (input != null) {<NEW_LINE>...
outputShape = serviceModel.getShape(outputShapeName);
1,250,956
public LatticeNode concatenate(List<LatticeNode> path, int begin, int end, Lattice lattice, String normalizedForm) {<NEW_LINE>if (begin >= end) {<NEW_LINE>throw new IndexOutOfBoundsException("begin >= end");<NEW_LINE>}<NEW_LINE>int b = path.get(begin).getBegin();<NEW_LINE>int e = path.get(end - 1).getEnd();<NEW_LINE>sh...
get(i).getWordInfo();
657,294
private void fillBuffer(int start) {<NEW_LINE>// adjust start if needed<NEW_LINE>if (start > 0) {<NEW_LINE>if (start + 200 >= m_sort.size()) {<NEW_LINE>start = start - (200 - (m_sort.size() - start));<NEW_LINE>if (start < 0) {<NEW_LINE>start = 0;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>StringBuilder sql = new StringB...
toremove = new ArrayList<>();
1,415,306
protected DataViewComponent createComponent() {<NEW_LINE>GlobalPreferences preferences = GlobalPreferences.sharedInstance();<NEW_LINE>int chartCache = preferences.getMonitoredHostCache() * 60 / preferences.getMonitoredHostPoll();<NEW_LINE>DataViewComponent dvc = new DataViewComponent(new MasterViewSupport((Host) getDat...
dvc.hideDetailsArea(DataViewComponent.TOP_LEFT);
309,813
public final Object read(final InputStream is) {<NEW_LINE>int states = 0;<NEW_LINE>int[] items;<NEW_LINE>double[] pi = null;<NEW_LINE>Matrix transitionProbability = null;<NEW_LINE>Map<String, String> properties = null;<NEW_LINE>List<StateDistribution> distributions = new ArrayList<StateDistribution>();<NEW_LINE>final E...
DiscreteDistribution(prob.getData());
469,947
private static void flush(StringBuilder out, List<Match> matches) {<NEW_LINE>boolean methods = matches.stream().anyMatch(match -> match.code.<MASK><NEW_LINE>if (matches.size() == 1 && methods) {<NEW_LINE>out.append(matches.get(0).original);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Match> distinct = matches.stream().di...
indexOf('(') != -1);
89,799
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>MariaDBConfig config = new MariaDBConfig(instrumentor.getProfilerConfig());<NEW_LINE>InstrumentClass...
target.addField(BindValueAccessor.class);
959,198
private void magicParameterExplodedStyleSimpleTypeObject(Parameter parameter) {<NEW_LINE>ObjectTypeValidator objectTypeValidator = ObjectTypeValidator.ObjectTypeValidatorFactory.<MASK><NEW_LINE>this.resolveObjectTypeFields(objectTypeValidator, parameter.getSchema());<NEW_LINE>switch(parameter.getIn()) {<NEW_LINE>case "...
createObjectTypeValidator(ContainerSerializationStyle.simple_exploded_object, false);
1,213,530
public BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest batchDetectSyntaxRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDetectSyntaxRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,213,782
public void refresh(TableCell cell) {<NEW_LINE>DownloadManager dm = (DownloadManager) cell.getDataSource();<NEW_LINE>String text;<NEW_LINE>String tt = null;<NEW_LINE>if (dm == null) {<NEW_LINE>text = null;<NEW_LINE>} else {<NEW_LINE>text = dm.getDownloadState().getAttribute(DownloadManagerState.AT_MOVE_ON_COMPLETE_DIR)...
)) + file.getAbsolutePath();
1,090,239
private ImmutableMultimap<Path, PrintingSegment> extractAndAssignPaths(@NonNull final String baseDirectory, @NonNull final PrintingData printingData) {<NEW_LINE>final ImmutableMultimap.Builder<Path, PrintingSegment> path2Segments = new ImmutableMultimap.Builder<>();<NEW_LINE>for (final PrintingSegment segment : printin...
getTray(segment.getTrayId());
919,957
protected void putMetadataAndHashIndexTask(Transaction t, Map<Long, StreamMetadata> streamIdsToMetadata) {<NEW_LINE>UserPhotosStreamMetadataTable mdTable = tables.getUserPhotosStreamMetadataTable(t);<NEW_LINE>Map<Long, StreamMetadata> prevMetadatas = getMetadata(t, streamIdsToMetadata.keySet());<NEW_LINE>Map<UserPhotos...
throw new TransactionFailedRetriableException("Cannot reuse the same stream id: " + streamId);
1,547,138
public static TextView createItemTextView(Context context) {<NEW_LINE>TextView tv = new QMUISpanTouchFixTextView(context);<NEW_LINE>TypedArray a = context.obtainStyledAttributes(null, R.styleable.QMUIDialogMenuTextStyleDef, R.attr.qmui_dialog_menu_item_style, 0);<NEW_LINE>int count = a.getIndexCount();<NEW_LINE>for (in...
getInt(attr, -1));
195,503
private void drawVerticalGradient(Canvas canvas, int left, int top, int right, int bottom, int color0_R, int color0_G, int color0_B, int color1_R, int color1_G, int color1_B) {<NEW_LINE>Paint paint = new Paint();<NEW_LINE>paint.setAntiAlias(false);<NEW_LINE>paint.setARGB(255, 0, 0, 0);<NEW_LINE>int i;<NEW_LINE>for (i =...
/ (bottom - top - 1);
874,673
public static void main(String[] args) {<NEW_LINE>List<PathLabel> examples = new ArrayList<>();<NEW_LINE>examples.add(new PathLabel("Chessboard", UtilIO.pathExample("calibration/mono/Sony_DSC-HX5V_Chess/frame06.jpg")));<NEW_LINE>examples.add(new PathLabel("Square Grid", UtilIO.pathExample("calibration/mono/Sony_DSC-HX5...
UtilIO.pathExample("fiducial/chessboard/movie.mjpeg")));
17,648
public byte[] decodeMessage() {<NEW_LINE>// Example data<NEW_LINE>// BLINDS1 09 19 00 06 00 B1 8F 01 00 70<NEW_LINE>byte[] data = new byte[10];<NEW_LINE>data[0] = 0x09;<NEW_LINE>data[1] = RFXComBaseMessage.PacketType.BLINDS1.toByte();<NEW_LINE>data[2] = subType.toByte();<NEW_LINE>data[3] = seqNbr;<NEW_LINE>data[4] = (b...
sensorId >> 16) & 0xFF);
1,054,431
private Map propertiesToMap(Alert alert) {<NEW_LINE>Map map = new HashMap();<NEW_LINE>map.put("_id", alert.getId());<NEW_LINE>map.put("checkId", alert.getCheckId());<NEW_LINE>map.put("target", alert.getTarget());<NEW_LINE>map.put(<MASK><NEW_LINE>if (alert.getValue() != null) {<NEW_LINE>map.put("value", alert.getValue()...
"targetHash", alert.getTargetHash());
1,519,971
protected ExecutionStepInfo createExecutionStepInfo(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLFieldDefinition fieldDefinition, GraphQLObjectType fieldContainer) {<NEW_LINE>MergedField field = parameters.getField();<NEW_LINE>ExecutionStepInfo parentStepInfo = parameters.getExecuti...
fieldArgs, executionContext.getVariables());
1,547,055
public RFuture<Long> fastRemoveAsync(K... keys) {<NEW_LINE>if (keys == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>if (keys.length == 0) {<NEW_LINE>return RedissonPromise.newSucceededFuture(0L);<NEW_LINE>}<NEW_LINE>if (hasNoWriter()) {<NEW_LINE>return fastRemoveOperationAsync(keys);<NEW_LINE>...
.add(keys[i]);
1,694,075
public SnowconeDeviceConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SnowconeDeviceConfiguration snowconeDeviceConfiguration = new SnowconeDeviceConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
934,348
public void printLog(int level) {<NEW_LINE>// convert total time to nanoseconds<NEW_LINE>totalTime = (long) (((double) totalTime * (double) 1000000000) / (double) ProfileTimer.getResolution());<NEW_LINE>StringBuffer sb = new StringBuffer(200);<NEW_LINE>for (int i = 0; i < (level * 3); i++) sb.append(' ');<NEW_LINE>sb.a...
(totalTime / numCalls) / 1000000f);
432,889
public UpdateAssignmentResult updateAssignment(@NonNull final AssignableInvoiceCandidate assignableCandidate, @NonNull final RefundInvoiceCandidate refundCandidateToAssignTo, @NonNull final RefundContract refundContract) {<NEW_LINE>Check.errorUnless(RefundMode.APPLY_TO_ALL_QTIES.equals(refundContract.extractRefundMode(...
= !refundConfig.equals(newRefundConfig);
1,850,980
private static SessionFactory makeSessionFactory(ServiceRegistry serviceRegistry) {<NEW_LINE>MetadataSources metadataSources = new MetadataSources(serviceRegistry);<NEW_LINE>metadataSources.addPackage("com.baeldung.hibernate.pojo");<NEW_LINE>metadataSources.addAnnotatedClass(Employee.class);<NEW_LINE>metadataSources.ad...
metadataSources.addAnnotatedClass(Pen.class);
934,046
public static <T> SchemaUserTypeCreator createConstructorCreator(Class<T> clazz, Constructor<T> constructor, Schema schema, List<FieldValueTypeInformation> types, TypeConversionsFactory typeConversionsFactory) {<NEW_LINE>try {<NEW_LINE>DynamicType.Builder<SchemaUserTypeCreator> builder = BYTE_BUDDY.with(new InjectPacka...
, clazz, constructor, typeConversionsFactory));
1,027,749
public void parseContentTypesFile(InputStream contentTypes) throws InvalidFormatException {<NEW_LINE>CTTypes types;<NEW_LINE>try {<NEW_LINE>XMLInputFactory xif = XMLInputFactory.newInstance();<NEW_LINE>xif.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);<NEW_LINE>// a DTD is merely ignored, its pres...
true, true, Context.jcContentTypes);
1,755,030
public void write(DataOutput out) throws IOException {<NEW_LINE>super.write(out);<NEW_LINE>Map<String, String> serializeMap = Maps.newHashMap();<NEW_LINE>serializeMap.put(ODBC_CATALOG_RESOURCE, odbcCatalogResourceName);<NEW_LINE>serializeMap.put(ODBC_HOST, host);<NEW_LINE>serializeMap.put(ODBC_PORT, port);<NEW_LINE>ser...
serializeMap.put(ODBC_DRIVER, driver);
450,641
private void onNewAndChangeAndDelete(final PO po, int type) {<NEW_LINE>if (!(type == TYPE_AFTER_NEW || type == TYPE_AFTER_CHANGE || type == TYPE_AFTER_DELETE)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_C_OrderLine ol = InterfaceWrapperHelper.create(po, I_C_OrderLine.class);<NEW_LINE>//<NEW_LINE>// updating the fre...
(MOrder) ol.getC_Order();
1,502,036
final GetSessionResult executeGetSession(GetSessionRequest getSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetSession");
61,942
final ListTrainingJobsForHyperParameterTuningJobResult executeListTrainingJobsForHyperParameterTuningJob(ListTrainingJobsForHyperParameterTuningJobRequest listTrainingJobsForHyperParameterTuningJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTrainingJobsForHyperParameterTuningJobRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
834,238
private int recordHashCode(HollowObjectTypeReadState typeState, int ordinal, int[] commonSchemaFieldMapping, boolean fromState) {<NEW_LINE>int hashCode = 0;<NEW_LINE>for (int i = 0; i < commonSchemaFieldMapping.length; i++) {<NEW_LINE>int typeStateFieldIndex = commonSchemaFieldMapping[i];<NEW_LINE>if (commonSchema.getF...
typeState.readOrdinal(ordinal, typeStateFieldIndex);
1,582,845
public static ListRolesResponse unmarshall(ListRolesResponse listRolesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRolesResponse.setRequestId(_ctx.stringValue("ListRolesResponse.RequestId"));<NEW_LINE>listRolesResponse.setTotalCount(_ctx.integerValue("ListRolesResponse.TotalCount"));<NEW_LINE>listRolesResponse.se...
("ListRolesResponse.Roles[" + i + "].UpdateDate"));
1,391,034
public static Map<UUID, PartitionIdSet> createPartitionMap(NodeEngine nodeEngine, @Nullable MemberVersion localMemberVersion, boolean failOnUnassignedPartition) {<NEW_LINE>Collection<Partition> parts = nodeEngine.getHazelcastInstance().getPartitionService().getPartitions();<NEW_LINE>int partCnt = parts.size();<NEW_LINE...
Member owner = part.getOwner();
970,051
public PlanNode visitAggregation(AggregationNode node, RewriteContext<Set<VariableReferenceExpression>> context) {<NEW_LINE>ImmutableSet.Builder<VariableReferenceExpression> expectedInputs = ImmutableSet.<VariableReferenceExpression>builder().addAll(node.getGroupingKeys());<NEW_LINE>if (node.getHashVariable().isPresent...
).ifPresent(expectedInputs::add);
170,046
final void showHelp(long address) {<NEW_LINE>System.out.println("c: continue");<NEW_LINE>System.out.println("n: step over");<NEW_LINE>if (emulator.isRunning()) {<NEW_LINE>System.out.println("bt: back trace");<NEW_LINE>}<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("st hex: search stack");<NEW_LINE>System....
System.out.println("threads: show thread list");
1,687,194
public static ListPrefixListsResponse unmarshall(ListPrefixListsResponse listPrefixListsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPrefixListsResponse.setRequestId(_ctx.stringValue("ListPrefixListsResponse.RequestId"));<NEW_LINE>listPrefixListsResponse.setNextToken(_ctx.stringValue("ListPrefixListsResponse.Next...
+ "].CidrBlocks[" + j + "]"));
1,603,919
private void publishNotification(final String arn, @Nullable final String fallbackArn, final SNSMessage<?> message, final QualifiedName name, final String errorMessage, final String counterKey) {<NEW_LINE>this.notificationMetric.recordTime(message, Metrics.TimerNotificationsBeforePublishDelay.getMetricName());<NEW_LINE...
publishNotification(arn, message, counterKey);
1,655,396
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Dialog res = super.onCreateDialog(savedInstanceState);<NEW_LINE>res.requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>res.setCancelable(false);<NEW_LINE>hanldeOnboardingSteps();<NEW_LINE>mContentView = View.inflate(getActivity(), R.layout.fragment...
setImageResource(R.drawable.img_welcome);
268,290
public static DeleteUserResponse unmarshall(DeleteUserResponse deleteUserResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteUserResponse.setRequestId(_ctx.stringValue("DeleteUserResponse.RequestId"));<NEW_LINE>deleteUserResponse.setCode<MASK><NEW_LINE>deleteUserResponse.setData(_ctx.mapValue("DeleteUserResponse.Data"...
(_ctx.stringValue("DeleteUserResponse.Code"));
566,415
protected Object decode(ChannelHandlerContext ctx, Channel channel, ByteBuf buf) throws Exception {<NEW_LINE>int length = 6;<NEW_LINE>if (buf.readableBytes() >= length) {<NEW_LINE>int type = buf.getUnsignedByte(buf.readerIndex() + 2) & 0x0f;<NEW_LINE>if (type == OrionProtocolDecoder.MSG_USERLOG && buf.readableBytes() >...
= buf.readerIndex() + 3;