idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,711,727
public JSONObject createEncryptedItem(String plaintextValue, KeyStore keyStore, KeyStore.PrivateKeyEntry privateKeyEntry) throws GeneralSecurityException, JSONException {<NEW_LINE>// Generate the IV and symmetric key with which we encrypt the value<NEW_LINE>byte[<MASK><NEW_LINE>mSecureRandom.nextBytes(ivBytes);<NEW_LIN...
] ivBytes = new byte[GCM_IV_LENGTH_BYTES];
766,999
// snippet-start:[personalize.java2.create_event_tracker.main]<NEW_LINE>public static String createEventTracker(PersonalizeClient personalizeClient, String eventTrackerName, String datasetGroupArn) {<NEW_LINE>String eventTrackerId = "";<NEW_LINE>String eventTrackerArn;<NEW_LINE>// 3 hours<NEW_LINE>long maxTime = 3 * 60...
eventTrackerArn(eventTrackerArn).build();
1,429,576
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {<NEW_LINE>// current card's part<NEW_LINE>Card cardToCheck = game.getCard(objectId);<NEW_LINE>if (cardToCheck == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// must be you<NEW_LINE>if (!affectedControllerId.equals(source...
getId(), null, newCosts);
68,714
private Position decodeObd(Position position, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_OBD, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>getLastLocation(position, null);<NEW_LINE>position.set(Position.KEY_BATTERY, parser.nextDouble());<NEW_LINE>position.se...
KEY_RPM, parser.nextInt());
1,347,709
private static ReadResult<String> readString(@Nonnull ByteBuffer buffer, @Nonnull SeekableByteChannel channel) throws IOException {<NEW_LINE>boolean terminated = false;<NEW_LINE>boolean eof = false;<NEW_LINE>ReadResult<Byte> status = readByte(buffer, channel);<NEW_LINE>eof |= status.eof;<NEW_LINE>if (status.error != nu...
channel, buffer.capacity());
496,489
protected int runCmd() throws Exception {<NEW_LINE>SortedMap<String, List<Pair<LogSegmentMetadata, List<String>>>> corruptedCandidates = new TreeMap<String, List<Pair<LogSegmentMetadata, List<MASK><NEW_LINE>inspectStreams(corruptedCandidates);<NEW_LINE>System.out.println("Corrupted Candidates : ");<NEW_LINE>if (printSt...
<String>>>>();
1,402,606
private int vertexHitTest(float x, float y) {<NEW_LINE>Vector2 tmpVector = new Vector2(x, y);<NEW_LINE>int lineIndex = -1;<NEW_LINE>float circleSqr = ((float) CIRCLE_RADIUS / pixelsPerWU) * ((float) CIRCLE_RADIUS / pixelsPerWU);<NEW_LINE>for (int i = 1; i < drawPoints.length; i++) {<NEW_LINE>Vector2 pointOne = drawPoin...
runtimeCamera.zoom * transformComponent.scaleY);
621,004
public int startServer() throws IllegalStateException {<NEW_LINE>if (server != null || serverThread != null) {<NEW_LINE>throw new IllegalStateException("Recorder already running");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>server = new ServerSocket(0, -1, InetAddress.getLoopbackAddress());<NEW_LINE>} catch (IOException e) {<N...
"Registered remote process from " + socket.getRemoteSocketAddress());
712,036
public AccountTakeoverActionsType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AccountTakeoverActionsType accountTakeoverActionsType = new A...
String name = reader.nextName();
402,084
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>parseCommandLine(args);<NEW_LINE>// default location for output files is folder beside input files with the name of the input file<NEW_LINE>if (outputFiles.size() == 1) {<NEW_LINE>File outputFile = outputFiles.get(0);<NEW_LINE>if (!outputFi...
String fileName = outputFile.getName();
1,081,023
private Group pickObject(String flag) throws Exception {<NEW_LINE>Group o = this.entityManagerContainer().flag(flag, Group.class);<NEW_LINE>if (o != null) {<NEW_LINE>this.entityManagerContainer().get(Group.class).detach(o);<NEW_LINE>} else {<NEW_LINE>String name = flag;<NEW_LINE>Matcher matcher = PersistenceProperties....
).get(Group.class);
1,310,487
private void changeKeyAuthentication() {<NEW_LINE>boolean enabled = keyAuthButton.getSelection();<NEW_LINE>if (enabled) {<NEW_LINE>FileDialog dlg;<NEW_LINE><MASK><NEW_LINE>while (true) {<NEW_LINE>dlg = new FileDialog(getShell(), SWT.OPEN);<NEW_LINE>dlg.setText(Messages.CommonFTPConnectionPointPropertyDialog_SpecifyPriv...
String ssh_home = SecureUtils.getSSH_HOME();
572,743
// You can mix/match most flags for the desired output format<NEW_LINE>private void sampleDateRange() {<NEW_LINE>List<String> text = new ArrayList<String>();<NEW_LINE>DateTime start = DateTime.now();<NEW_LINE>DateTime end = start.plusMinutes(30).plusHours(2).plusDays(56);<NEW_LINE>text.add("Range: " + DateUtils.formatD...
, end, DateUtils.FORMAT_SHOW_TIME));
1,164,878
public Optional<StateHashReportResult> process(RiskEngine riskEngine) {<NEW_LINE>final SortedMap<StateHashReportResult.SubmoduleKey, Integer> hashCodes = new TreeMap<>();<NEW_LINE>final <MASK><NEW_LINE>hashCodes.put(StateHashReportResult.createKey(moduleId, StateHashReportResult.SubmoduleType.RISK_SYMBOL_SPEC_PROVIDER)...
int moduleId = riskEngine.getShardId();
1,612,998
public void handle(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, List<JobEntity> elements) {<NEW_LINE>Map<String, TimerDeclarationImpl> sourceTimerDeclarationsInEventScope = TimerDeclarationImpl.getDeclarationsForScope(activityInstance.getSourceScope());<NEW_LINE>Map<String, Ti...
getTimeoutListenerDeclarationsForScope(activityInstance.getSourceScope());
1,001,175
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>boolean applied = Boolean.TRUE.equals(game.getState().getValue(source.getSourceId() + "applied"));<NEW_LINE>if (!applied && layer == Layer.RulesEffects) {<NEW_LINE>if (!source.isControlledBy(game.getActivePlayerId()) && game.getS...
permanent, source, game, true);
969,571
private void drawSelectedFilesSplits(Canvas canvas, RotatedTileBox tileBox, List<SelectedGpxFile> selectedGPXFiles, DrawSettings settings) {<NEW_LINE>if (tileBox.getZoom() >= START_ZOOM) {<NEW_LINE>// request to load<NEW_LINE>OsmandApplication app = view.getApplication();<NEW_LINE>for (SelectedGpxFile selectedGpxFile :...
canvas, tileBox, items, settings);
319,881
private static boolean equalNextTo(IncludeDesc iDesc1, IncludeDesc iDesc2, int alignment) {<NEW_LINE>if (iDesc1.parent.isSequential() && iDesc1.snappedNextTo != null) {<NEW_LINE>if (iDesc1.parent == iDesc2.parent && iDesc1.snappedNextTo == iDesc2.snappedNextTo) {<NEW_LINE>return iDesc1.paddingType == iDesc2.paddingType...
LayoutInterval.getRoot(iDesc2.snappedParallel);
1,467,511
// -----------------------------------------------------<NEW_LINE>// Actually Crud<NEW_LINE>// -------------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE })<NEW_LINE>public HtmlResponse create(final CreateForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.CREATE);<NEW_LINE>validate(form, messages -> {<NEW_LINE>...
error("Failed to add {}", entity, e);
1,696,599
public void OpenShift_StubbedTests_usingSocialConfig_userNameMissingInTokenReviewResponse() throws Exception {<NEW_LINE>// Use a "captured" response from an OpenShift tokenReviews response<NEW_LINE>// remove the UserName<NEW_LINE>String access_token = "{\"kind\":\"TokenReview\",\"apiVersion\":\"authentication.k8s.io/v1...
SocialTestSettings updatedSocialTestSettings = socialSettings.copyTestSettings();
155,739
private void loadNode453() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_Read_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArgument...
.expanded(), false));
362,267
public void resolveFields(SearchContext searchContext, String indexMapping) throws DorisEsException {<NEW_LINE>JSONObject jsonObject = (JSONObject) JSONValue.parse(indexMapping);<NEW_LINE>// the indexName use alias takes the first mapping<NEW_LINE>Iterator<String> keys = jsonObject.keySet().iterator();<NEW_LINE>String ...
JSONObject) mappings.get("properties");
320,888
public ResultSet execute() throws SqlExecutionException {<NEW_LINE>Environment env = context.getExecutionContext().getEnvironment();<NEW_LINE>TableEntry tableEntry = env.getTables().get(viewName);<NEW_LINE>if (!(tableEntry instanceof ViewEntry) && !ifExists) {<NEW_LINE>throw new SqlExecutionException("'" + viewName + "...
().cloneExecutionContext(builder));
739,549
public final MatchRecogPatternAtomContext matchRecogPatternAtom() throws RecognitionException {<NEW_LINE>MatchRecogPatternAtomContext _localctx = new MatchRecogPatternAtomContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 294, RULE_matchRecogPatternAtom);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_l...
).reluctant = match(QUESTION);
831,597
protected QualifiedDeclaration<TypeDeclaration> lookupTypeDeclaration(String name) {<NEW_LINE>if (name == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// NOTE: it is possible to search using the context find methods... it<NEW_LINE>// would be nicer but it may be slower, so we do it this way... to be<NEW_LINE>// th...
getName() + "." + rootRelativeName);
853,080
protected void parseDefineButtonSound(InStream in) throws IOException {<NEW_LINE>int id = in.readUI16();<NEW_LINE>int rollOverSoundId = in.readUI16();<NEW_LINE>SoundInfo rollOverSoundInfo = (rollOverSoundId == 0) ? null : new SoundInfo(in);<NEW_LINE>int rollOutSoundId = in.readUI16();<NEW_LINE>SoundInfo rollOutSoundInf...
int releaseSoundId = in.readUI16();
747,915
void UIThreadInit(@NonNull final GLViewHolder viewHolder, @Nullable final HttpHandler handler) {<NEW_LINE>// Use the DefaultHttpHandler if none is provided<NEW_LINE>if (handler == null) {<NEW_LINE>httpHandler = new DefaultHttpHandler();<NEW_LINE>} else {<NEW_LINE>httpHandler = handler;<NEW_LINE>}<NEW_LINE>Context conte...
touchInput.setPanResponder(getPanResponder());
1,648,958
final DeleteConnectorResult executeDeleteConnector(DeleteConnectorRequest deleteConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectorRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteConnectorRequest> reques...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
15,677
public Bgpv4Route build() {<NEW_LINE>checkArgument(_originatorIp != null, "Missing %s", PROP_ORIGINATOR_IP);<NEW_LINE>checkArgument(<MASK><NEW_LINE>checkArgument(_srcProtocol != null || (_originMechanism != NETWORK && _originMechanism != REDISTRIBUTE), "Local routes must have a source protocol");<NEW_LINE>checkArgument...
_originMechanism != null, "Missing %s", PROP_ORIGIN_MECHANISM);
1,594,299
public void updateUI() {<NEW_LINE><MASK><NEW_LINE>String id = lf.getID();<NEW_LINE>boolean useClean = tableUI && (// NOI18N<NEW_LINE>lf instanceof MetalLookAndFeel || // NOI18N<NEW_LINE>"GTK".equals(id) || // NOI18N<NEW_LINE>"Nimbus".equals(id) || // #217957<NEW_LINE>("Aqua".equals(id) && checkMacSystemVersion()) || //...
LookAndFeel lf = UIManager.getLookAndFeel();
394,079
private static BigInteger valueOfBigInt(final TruffleString string) {<NEW_LINE>TruffleString valueString = removeUnderscores(string);<NEW_LINE>if (ParserStrings.length(valueString) > 2 && ParserStrings.charAt(valueString, 0) == '0') {<NEW_LINE>switch(ParserStrings.charAt(valueString, 1)) {<NEW_LINE>case 'x':<NEW_LINE>c...
).toJavaStringUncached(), 8);
1,168,019
final DescribeReservedInstanceOfferingsResult executeDescribeReservedInstanceOfferings(DescribeReservedInstanceOfferingsRequest describeReservedInstanceOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedInstanceOfferingsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "OpenSearch");
495,761
private Interface initRoutingInterface(Interface_idContext id) {<NEW_LINE>Map<String, Interface> interfaces;<NEW_LINE>InterfaceId interfaceId = new InterfaceId(id);<NEW_LINE>if (interfaceId.getNode() != null) {<NEW_LINE>String nodeDeviceName = interfaceId.getNode();<NEW_LINE>NodeDevice nodeDevice = _configuration.getNo...
setRoutingInstance(_currentLogicalSystem.getDefaultRoutingInstance());
1,743,483
private void createMissingValues() {<NEW_LINE>String sql = // Not in Registration<NEW_LINE>"SELECT ra.A_RegistrationAttribute_ID " + "FROM A_RegistrationAttribute ra" + " LEFT OUTER JOIN A_RegistrationProduct rp ON (rp.A_RegistrationAttribute_ID=ra.A_RegistrationAttribute_ID)" <MASK><NEW_LINE>PreparedStatement pstmt = ...
+ " LEFT OUTER JOIN A_Registration r ON (r.M_Product_ID=rp.M_Product_ID) " + "WHERE r.A_Registration_ID=?" + " AND NOT EXISTS (SELECT A_RegistrationAttribute_ID FROM A_RegistrationValue v " + "WHERE ra.A_RegistrationAttribute_ID=v.A_RegistrationAttribute_ID AND r.A_Registration_ID=v.A_Registration_ID)";
1,210,129
private void sendFileRegion(RandomAccessFile file, long offset, long length, ChannelPromise writeFuture) {<NEW_LINE>if (length < MAX_REGION_SIZE) {<NEW_LINE>writeToChannel(new DefaultFileRegion(file.getChannel(), offset, length), writeFuture);<NEW_LINE>} else {<NEW_LINE>ChannelPromise promise = chctx.newPromise();<NEW_...
setFailure(future.cause());
783,322
public static NavTreeSettings readFromRequest(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final Map<String, Object> inputParameters = pwmRequest.readBodyAsJsonMap(PwmHttpRequestWrapper.Flag.BypassValidation);<NEW_LINE>final boolean modifiedSettingsOnly = (boolean) inputParamete...
domainStateReader = DomainStateReader.forRequest(pwmRequest);
679,006
public void iteratorwhileSnippet() throws MalformedURLException {<NEW_LINE>HttpHeaders httpHeaders = new HttpHeaders().set("header1", "value1").set("header2", "value2");<NEW_LINE>HttpRequest httpRequest = new HttpRequest(HttpMethod.GET, new URL("http://localhost"));<NEW_LINE>String deserializedHeaders = "header1,value1...
deserializedHeaders, 1, 3)));
1,508,464
public int read(byte[] dest, int bytesToBeRead, int timeoutMillis) throws IOException {<NEW_LINE>int numBytesRead = 0;<NEW_LINE>// synchronized (mReadBufferLock) {<NEW_LINE>int readNow;<NEW_LINE>Log.v(TAG, "TO read : " + bytesToBeRead);<NEW_LINE>int bytesToBeReadTemp = bytesToBeRead;<NEW_LINE>while (numBytesRead < byte...
e(TAG, "Read Error: " + bytesToBeReadTemp);
1,233,285
public GetPortfolioPreferencesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPortfolioPreferencesResult getPortfolioPreferencesResult = new GetPortfolioPreferencesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
().unmarshall(context));
1,593,772
private void internalInitializeLiveRoom() {<NEW_LINE>LoginInfo loginInfo = new LoginInfo();<NEW_LINE>loginInfo.sdkAppID = GenerateTestUserSig.SDKAPPID;<NEW_LINE>loginInfo.userID = ProfileManager.getInstance().getUserModel().userId;<NEW_LINE>loginInfo.userSig = ProfileManager.getInstance().getUserModel().userSig;<NEW_LI...
().getUserModel().userId;
278,146
private Writer createWriter(TypeDefinition type, DecompilerSettings settings, String outputDirectory) throws IOException {<NEW_LINE>if (StringUtilities.isNullOrWhitespace(outputDirectory)) {<NEW_LINE>return new OutputStreamWriter(System.out, settings.isUnicodeOutputEnabled() ? Charset.forName("UTF-8") : Charset.default...
, PathHelper.DirectorySeparator), fileName);
448,961
final PurgeQueueResult executePurgeQueue(PurgeQueueRequest purgeQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purgeQueueRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
(super.beforeMarshalling(purgeQueueRequest));
1,020,877
public MethodInsnAST visit(int lineNo, String line) throws ASTParseException {<NEW_LINE>try {<NEW_LINE>String[] trim = line.<MASK><NEW_LINE>if (trim.length < 2)<NEW_LINE>throw new ASTParseException(lineNo, "Not enough paramters");<NEW_LINE>int start = line.indexOf(trim[0]);<NEW_LINE>// op<NEW_LINE>OpcodeParser opParser...
trim().split("\\s+");
1,530,890
public <T extends Record> void notify(final String key, final DataOperation action, final T value) {<NEW_LINE>if (listenerMap.containsKey(KeyBuilder.SERVICE_META_KEY_PREFIX)) {<NEW_LINE>if (KeyBuilder.matchServiceMetaKey(key) && !KeyBuilder.matchSwitchKey(key)) {<NEW_LINE>for (RecordListener listener : listenerMap.get(...
error("[NACOS-RAFT] error while notifying listener of key: {}", key, e);
33,042
protected StringBuilder renderCommands(StringBuilder sb, Collection<CLI> commands) {<NEW_LINE>final String lpad = createPadding(leftPad);<NEW_LINE>final String dpad = createPadding(descPad);<NEW_LINE>// We need a double loop to compute the longest command name<NEW_LINE>int max = 0;<NEW_LINE>List<StringBuilder> prefixLi...
nextLineTabStop, buf.toString());
601,971
public static Drawable createSimpleSelectorDrawable(Context context, int resource, int defaultColor, int pressedColor) {<NEW_LINE>Resources resources = context.getResources();<NEW_LINE>Drawable defaultDrawable = resources.getDrawable(resource).mutate();<NEW_LINE>if (defaultColor != 0) {<NEW_LINE>defaultDrawable.setColo...
.getPaint().getColorFilter();
617,535
public OResultSet executeDDL(OCommandContext ctx) {<NEW_LINE>ODatabase db = ctx.getDatabase();<NEW_LINE>int existingId = db.getClusterIdByName(name.getStringValue());<NEW_LINE>if (existingId >= 0) {<NEW_LINE>if (ifNotExists) {<NEW_LINE>return new OInternalResultSet();<NEW_LINE>} else {<NEW_LINE>throw new OCommandExecut...
id.getValue() + " already exists");
96,207
public void updatePmiInRequest(String method, TransactionUserWrapper tuWrapper, SipServletDesc sipDesc) {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { tuWrapper.getAppName(), tuWrapper.getId(), method };<NEW_LINE>c_logger.traceEntry(tuWrapper.getTuImpl(), "updatePmiInRequest", params)...
), "updatePmiInRequest", "Unable to update PerfManager " + "SIP app descriptor not available");
481,288
public void showStatus(String title, String status, String hideLabel, final IMethodResult result) {<NEW_LINE>Map<String, Object> propertyMap = new HashMap<String, Object>();<NEW_LINE>if (title != null) {<NEW_LINE>propertyMap.put(HK_TITLE, title);<NEW_LINE>}<NEW_LINE>if (status != null) {<NEW_LINE>propertyMap.put(HK_MES...
= new ArrayList<String>();
1,300,548
protected ProductsProposalRowsLoader createRowsLoaderFromRecord(TableRecordReference recordRef) {<NEW_LINE>final IBPartnerDAO bpartnersRepo = Services.get(IBPartnerDAO.class);<NEW_LINE>final IPriceListDAO priceListsRepo = Services.get(IPriceListDAO.class);<NEW_LINE>recordRef.assertTableName(I_C_BPartner.Table_Name);<NE...
collect(ImmutableSet.toImmutableSet());
1,614,816
protected Mono<Void> doExecute(final ServerWebExchange exchange, final ShenyuPluginChain chain, final SelectorData selector, final RuleData rule) {<NEW_LINE>JwtConfig jwtConfig = Singleton.INST.get(JwtConfig.class);<NEW_LINE>String authorization = exchange.getRequest().getHeaders().getFirst(HttpHeaders.AUTHORIZATION);<...
WebFluxResultUtils.result(exchange, error);
1,850,060
protected JRTemplateGenericPrintElement createGenericPrintElement() {<NEW_LINE>JRComponentElement element = fillContext.getComponentElement();<NEW_LINE>JRTemplateGenericElement template = new JRTemplateGenericElement(fillContext.getElementOrigin(), fillContext.getDefaultStyleProvider(), fillContext.getComponentElement(...
setHeight(element.getHeight());
19,793
public void init(FilterConfig config) throws ServletException {<NEW_LINE>mappings = WebSocketMappings.ensureMappings(config.getServletContext());<NEW_LINE>String max = config.getInitParameter("idleTimeout");<NEW_LINE>if (max == null) {<NEW_LINE><MASK><NEW_LINE>if (max != null)<NEW_LINE>LOG.warn("'maxIdleTime' init para...
max = config.getInitParameter("maxIdleTime");
1,132,127
protected org.activiti.engine.impl.persistence.entity.JobEntity convertToActiviti5JobEntity(final JobEntity job) {<NEW_LINE>org.activiti.engine.impl.persistence.entity.JobEntity activity5Job = new org.activiti.engine.impl.persistence.entity.JobEntity();<NEW_LINE>activity5Job.setJobType(job.getJobType());<NEW_LINE>activ...
setExceptionMessage(job.getExceptionMessage());
188,166
public void add(char[] output, int offset, int len, int endOffset, int posLength) {<NEW_LINE>if (count == outputs.length) {<NEW_LINE>outputs = ArrayUtil.grow(outputs);<NEW_LINE>}<NEW_LINE>if (count == endOffsets.length) {<NEW_LINE>final int[] next = new int[ArrayUtil.oversize(1 <MASK><NEW_LINE>System.arraycopy(endOffse...
+ count, Integer.BYTES)];
62,317
public void QueryJPQL() {<NEW_LINE>PersistenceManagerFactory pmf = new JDOPersistenceManagerFactory(pumd, null);<NEW_LINE>PersistenceManager pm = pmf.getPersistenceManager();<NEW_LINE>Transaction tx = pm.currentTransaction();<NEW_LINE>try {<NEW_LINE>tx.begin();<NEW_LINE>// JPQL :<NEW_LINE>LOGGER.log(Level.INFO, "JPQL -...
> iter = results.iterator();
22,349
private void submitForm() {<NEW_LINE>if (!validateForm()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<NEW_LINE>if (!isOnline(this)) {<NEW_LINE>loginLoggingIn.setVisibility(...
loginFetchNodesProgressBar.setVisibility(View.GONE);
48,238
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(listTagsForResourceRequest));
694,369
final ListDataIngestionJobsResult executeListDataIngestionJobs(ListDataIngestionJobsRequest listDataIngestionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDataIngestionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,047,577
public void execute() throws Exception {<NEW_LINE>ensureArgCount(2);<NEW_LINE>int numberOfRuns = getIntArg(0);<NEW_LINE>int secondsBetweenRuns = getIntArg(1);<NEW_LINE>AtomicInteger counter = new AtomicInteger(0);<NEW_LINE><MASK><NEW_LINE>Runnable containerRecoveryIteration = () -> {<NEW_LINE>// Recover all the Segment...
AtomicBoolean failed = new AtomicBoolean(false);
192,374
private int writeData(byte[] result, int offset, DataValue value) {<NEW_LINE><MASK><NEW_LINE>if (type == DataPrimitives.BYTE) {<NEW_LINE>result[offset++] = value.getByte(0);<NEW_LINE>} else if (type == DataPrimitives.SHORT) {<NEW_LINE>offset = align(offset, 2);<NEW_LINE>short v = value.getShort(0);<NEW_LINE>result[offs...
DataType type = value.getType();
267,077
public void fillExecutableFromMapObject(final TypedMapWrapper<String, Object> wrappedMap) {<NEW_LINE>this.id = wrappedMap.getString(ID_PARAM);<NEW_LINE>this.type = wrappedMap.getString(TYPE_PARAM);<NEW_LINE>this.condition = wrappedMap.getString(CONDITION_PARAM);<NEW_LINE>this.conditionOnJobStatus = ConditionOnJobStatus...
(wrappedMap.getString(CONDITION_ON_JOB_STATUS_PARAM));
1,574,357
public boolean updatePublicKeyEntry(String domainName, String serviceName, PublicKeyEntry publicKey) {<NEW_LINE>final String caller = "updatePublicKeyEntry";<NEW_LINE>int domainId = getDomainId(domainName);<NEW_LINE>if (domainId == 0) {<NEW_LINE>throw notFoundError(caller, ZMSConsts.OBJECT_DOMAIN, domainName);<NEW_LINE...
serviceId = getServiceId(domainId, serviceName);
214,732
final DescribeDataRepositoryTasksResult executeDescribeDataRepositoryTasks(DescribeDataRepositoryTasksRequest describeDataRepositoryTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDataRepositoryTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
516,663
private void parseUrlString(String urlString) throws MalformedURLException {<NEW_LINE>int idx = urlString.lastIndexOf('@');<NEW_LINE>// NOI18N<NEW_LINE>int hostIdx = urlString.indexOf("://");<NEW_LINE>// NOI18N<NEW_LINE>int firstSlashIdx = urlString.indexOf("/", hostIdx + 3);<NEW_LINE>if (urlString.contains("\\")) {<NE...
SvnUtils.decodeToString(normalizedUrl)));
337,804
public boolean onPreDraw() {<NEW_LINE>// rotation fix, if not set, originalTitleY = Na<NEW_LINE>ViewCompat.setTranslationY(mLogo, 0);<NEW_LINE>ViewCompat.setTranslationX(mLogo, 0);<NEW_LINE>originalTitleY = ViewCompat.getY(mLogo);<NEW_LINE>originalTitleX = ViewCompat.getX(mLogo);<NEW_LINE>originalTitleHeight = mLogo.ge...
- (1 - finalScale) * finalTitleHeight;
248,014
private void tryUpdateData(String monthUrlString, final String regionUrlString) {<NEW_LINE>GetJsonAsyncTask.OnResponseListener<Protocol.TotalChangesByMonthResponse> onResponseListener = new GetJsonAsyncTask.OnResponseListener<Protocol.TotalChangesByMonthResponse>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void on...
setText(R.string.data_is_not_available);
339,992
public void solve() {<NEW_LINE>model.getSolver().solve();<NEW_LINE>if (model.getSolver().isFeasible() == ESat.TRUE) {<NEW_LINE>int num_sols = 0;<NEW_LINE>do {<NEW_LINE>System.out.print("wife : ");<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>System.out.print(wife[i].getValue() + " ");<NEW_LINE>}<NEW_LINE>System.ou...
solve() == Boolean.TRUE);
938,396
public static void remux(String srcFile, String dstFile, int rotation) {<NEW_LINE>AVFormatContext inputContext = new AVFormatContext(null);<NEW_LINE>int ret;<NEW_LINE>if ((ret = avformat_open_input(inputContext, srcFile, null, null)) < 0) {<NEW_LINE>loggerStatic.warn("cannot open input context {} errror code: {}", srcF...
int streamCount = inputContext.nb_streams();
1,252,925
public void visit(BLangBreak breakStmt) {<NEW_LINE>BIRLockDetailsHolder toUnlock = this.env.unlockVars.peek();<NEW_LINE>if (!toUnlock.isEmpty()) {<NEW_LINE>BIRBasicBlock goToBB = new BIRBasicBlock(this.env.nextBBId(names));<NEW_LINE>this.env.enclBasicBlocks.add(goToBB);<NEW_LINE>this.env.enclBB.terminator = new BIRTerm...
pos, goToBB, this.currentScope);
712,992
public static void dump(ServletContext ctx) {<NEW_LINE>log.config("ServletContext " + ctx.getServletContextName());<NEW_LINE>log.config("- ServerInfo=" + ctx.getServerInfo());<NEW_LINE>if (!CLogMgt.isLevelFiner())<NEW_LINE>return;<NEW_LINE>boolean first = true;<NEW_LINE>Enumeration e = ctx.getInitParameterNames();<NEW_...
(String) e.nextElement();
1,146,853
protected boolean isMandatory(Field field) {<NEW_LINE>OneToMany oneToManyAnnotation = field.getAnnotation(OneToMany.class);<NEW_LINE>ManyToMany manyToManyAnnotation = field.getAnnotation(ManyToMany.class);<NEW_LINE>if (oneToManyAnnotation != null || manyToManyAnnotation != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_...
manyToOneAnnotation.optional()) || superMandatory;
1,773,720
public void dialogChanged() {<NEW_LINE>IResource container = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(getContainerName()));<NEW_LINE>String fileName = getFileName();<NEW_LINE>IResource file = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(getContainerName() + "/" + fileName));<NEW_LINE...
updateStatus("File " + fileName + " already exists. Choose a new name.");
1,752,694
private Precedence visitBinOp(Concrete.Expression left, Concrete.ReferenceExpression infix, List<Concrete.Argument> implicitArgs, Concrete.Expression right, Precedence prec, StringBuilder builder) {<NEW_LINE>Precedence infixPrec = ((GlobalReferable) infix.getReferent()).getRepresentablePrecedence();<NEW_LINE>boolean ne...
priority, infixPrec.isInfix) : infixPrec;
284,312
public static void drawLoadingProgress(Graphics g, float alpha) {<NEW_LINE>String text, file;<NEW_LINE>int progress;<NEW_LINE>// determine current action<NEW_LINE>if ((file = OszUnpacker.getCurrentFileName()) != null) {<NEW_LINE>text = "Unpacking new beatmaps...";<NEW_LINE>progress = OszUnpacker.getUnpackerProgress();<...
, progress), Colors.WHITE_FADE);
620,685
final GetConfigurationProfileResult executeGetConfigurationProfile(GetConfigurationProfileRequest getConfigurationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConfigurationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
861,546
private void updateDataPoint(IDataPoint dataPoint) {<NEW_LINE><MASK><NEW_LINE>for (Channel channel : getThing().getChannels()) {<NEW_LINE>if (channel.getConfiguration().containsKey("id")) {<NEW_LINE>try {<NEW_LINE>int id = Integer.parseInt(channel.getConfiguration().get("id").toString());<NEW_LINE>if (id == dataPoint.g...
this.updateStatus(ThingStatus.ONLINE);
1,451,585
public boolean loginAs(String username) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.<MASK><NEW_LINE>String urlString = buildUrl(APIConstants.PATH_LOGINAS) + "?" + builderGetParametersString(values);<NEW_LINE>com.newsblur.util.Log.i(this.getClass().getName(), "doing superuser swap: " + urlStri...
put(APIConstants.PARAMETER_USER, username);
1,095,983
// CALL WITH THE LOCK<NEW_LINE>private void connect() {<NEW_LINE>if (isInProgress)<NEW_LINE>return;<NEW_LINE>isInProgress = true;<NEW_LINE>// ignore previous client closes<NEW_LINE>receivedClientClose = false;<NEW_LINE>AsyncInvokerImpl invoker = (AsyncInvokerImpl) invocationBuilder.rx();<NEW_LINE>RestClientRequestConte...
registerOnClient(restClientRequestContext.getVertxClientResponse());
687,061
public void init(List<String> keys, List<ParamValue> values) {<NEW_LINE>keys.add(CommonConstants.VERSION_KEY);<NEW_LINE>values.add(new DynamicValues(null));<NEW_LINE>keys.add(CommonConstants.SIDE_KEY);<NEW_LINE>values.add(new FixedParamValue(CommonConstants.CONSUMER_SIDE, CommonConstants.PROVIDER_SIDE));<NEW_LINE>keys....
add(new DynamicValues(null));
1,420,491
private FhirVersionIndependentConcept toConcept(IPrimitiveType<String> theCodeType, IPrimitiveType<String> theCodeSystemIdentifierType, IBaseCoding theCodingType) {<NEW_LINE>String code = theCodeType != null ? theCodeType.getValueAsString() : null;<NEW_LINE>String system = theCodeSystemIdentifierType != null ? getUrlFr...
theCodeSystemIdentifierType.getValueAsString()) : null;
293,978
public void paint(Graphics g, JComponent c) {<NEW_LINE>JBTabsImpl tabs = (JBTabsImpl) c;<NEW_LINE>if (tabs.getVisibleInfos().isEmpty())<NEW_LINE>return;<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>final <MASK><NEW_LINE>config.setAntialiasing(true);<NEW_LINE>try {<NEW_LINE>final Rectangle clip = g2d.getClipBounds...
GraphicsConfig config = new GraphicsConfig(g2d);
1,347,947
public boolean fullEquals(MultiLabel o) {<NEW_LINE>if (this == o)<NEW_LINE>return true;<NEW_LINE>if (o == null || getClass() != o.getClass())<NEW_LINE>return false;<NEW_LINE>if (Double.compare(score, o.score) != 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Map<String, Double> thisMap = new HashMap<>();<NEW_LINE>for ...
get(e.getKey());
1,570,100
private static void uncompressSlidingFlavor(final CpcSketch target, final CompressedState source) {<NEW_LINE><MASK><NEW_LINE>uncompressTheWindow(target, source);<NEW_LINE>final int srcLgK = source.lgK;<NEW_LINE>final int numPairs = source.numCsv;<NEW_LINE>if (numPairs == 0) {<NEW_LINE>target.pairTable = new PairTable(2...
assert (source.cwStream != null);
869,929
private static byte[] createPrefixDataType(final byte[] prefix, final DataTypeIdentifier nested, final byte[] postfix) {<NEW_LINE>byte[] whole = new byte[prefix.length + 2 + nested.utf8.getByteLength() + postfix.length];<NEW_LINE>for (int i = 0; i < prefix.length; i++) {<NEW_LINE>whole<MASK><NEW_LINE>}<NEW_LINE>whole[p...
[i] = prefix[i];
1,627,632
public StringBuilder toTEIPages(StringBuilder buffer, Document doc, GrobidAnalysisConfig config) throws Exception {<NEW_LINE>if (!config.isGenerateTeiCoordinates()) {<NEW_LINE>// no cooredinates, nothing to do<NEW_LINE>return buffer;<NEW_LINE>}<NEW_LINE>// page height and width<NEW_LINE>List<Page<MASK><NEW_LINE>int pag...
> pages = doc.getPages();
873,290
public static QueryProjectResponse unmarshall(QueryProjectResponse queryProjectResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryProjectResponse.setRequestId(_ctx.stringValue("QueryProjectResponse.RequestId"));<NEW_LINE>queryProjectResponse.setPageNumber(_ctx.integerValue("QueryProjectResponse.PageNumber"));<NEW_LINE...
(_ctx.integerValue("QueryProjectResponse.PageSize"));
1,484,829
public void createBindings() {<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter("%f");<NEW_LINE>DoubleConverter degreeConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LINE>IntegerConverter integerConverter = new IntegerConverter();<NEW_LINE>LengthConverter lengthConverter...
machine, "pickAndPlaceChecking", pickAndPlaceChecking, "selected");
1,232,475
protected String doIt() throws Exception {<NEW_LINE>final IQueryFilter<I_C_Printing_Queue> queryFilter <MASK><NEW_LINE>final Iterator<I_C_Printing_Queue> iterator = Services.get(IQueryBL.class).createQueryBuilder(I_C_Printing_Queue.class, getCtx(), getTrxName()).filter(queryFilter).orderBy().addColumn(I_C_Printing_Queu...
= getProcessInfo().getQueryFilterOrElseFalse();
1,772,500
final UpdateAssessmentResult executeUpdateAssessment(UpdateAssessmentRequest updateAssessmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssessmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAssessment");
758,652
public void parse(XMLStreamReader xtr, Process activeProcess) throws Exception {<NEW_LINE>String <MASK><NEW_LINE>if (StringUtils.isNotEmpty(resourceElement) && "resourceAssignmentExpression".equals(resourceElement)) {<NEW_LINE>String expression = XMLStreamReaderUtil.moveDown(xtr);<NEW_LINE>if (StringUtils.isNotEmpty(ex...
resourceElement = XMLStreamReaderUtil.moveDown(xtr);
1,727,686
public void marshall(APNSChannelResponse aPNSChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (aPNSChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aPNSChannelResponse.getAppl...
aPNSChannelResponse.getEnabled(), ENABLED_BINDING);
1,236,051
public final GopConfigContext gopConfig() throws RecognitionException {<NEW_LINE>GopConfigContext _localctx = new GopConfigContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 144, RULE_gopConfig);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(1302);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1...
_errHandler.recover(this, re);
627,062
protected AddressPoolVO scripts() {<NEW_LINE>AddressPoolVO vo = new AddressPoolVO();<NEW_LINE>vo.setUuid(ipr.getUuid() == null ? Platform.getUuid() : ipr.getUuid());<NEW_LINE>vo.setDescription(ipr.getDescription());<NEW_LINE>vo.setEndIp(ipr.getEndIp());<NEW_LINE>vo.setGateway(ipr.getStartIp());<NEW_LINE>vo.<MASK><NEW_L...
setL3NetworkUuid(ipr.getL3NetworkUuid());
810,286
public UpdateGeofenceCollectionResult updateGeofenceCollection(UpdateGeofenceCollectionRequest updateGeofenceCollectionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGeofenceCollectionRequest);<NEW_LINE>AWSRequestMetrics awsReque...
UpdateGeofenceCollectionRequestMarshaller().marshall(updateGeofenceCollectionRequest);
1,140,279
protected PFont createDefaultFont(float size) {<NEW_LINE>Font baseFont = null;<NEW_LINE>try {<NEW_LINE>// For 4.0 alpha 4 and later, include a built-in font<NEW_LINE>InputStream input = getClass().getResourceAsStream("/font/ProcessingSansPro-Regular.ttf");<NEW_LINE>if (input != null) {<NEW_LINE>baseFont = Font.createFo...
"Lucida Sans", Font.PLAIN, 1);
1,470,009
private MethodSpec.Builder handleInitDestroyBeanPostProcessor() {<NEW_LINE>InitDestroyMethodsDiscoverer initDestroyMethodsDiscoverer = new InitDestroyMethodsDiscoverer(this.beanFactory);<NEW_LINE>Map<String, List<Method>> initMethods = initDestroyMethodsDiscoverer.registerInitMethods(this.writerContext.getNativeConfigu...
addCode(code.build());
923,920
private static Node toHtmlNode(AbstractWmlConversionContext context, AbstractHyperlinkWriterModel model, Node content, Document doc) {<NEW_LINE>Element <MASK><NEW_LINE>String internalTarget = model.getInternalTarget();<NEW_LINE>String externalTarget = model.getExternalTarget();<NEW_LINE>String location = null;<NEW_LINE...
ret = doc.createElement("a");
912,624
public <T extends NodeInterface> T create(final Class<T> type, final PropertyMap source) throws FrameworkException {<NEW_LINE>if (type == null) {<NEW_LINE>throw new FrameworkException(422, "Empty type (null). Please supply a valid class name in the type property.");<NEW_LINE>}<NEW_LINE>final CreateNodeCommand<T> comman...
type.getSimpleName() + ", please supply a non-abstract class name in the type property");
1,701,577
public static HullCollisionShape makeShapeFromPointMap(Map<Integer, List<Float>> pointsMap, List<Integer> boneIndices, Vector3f initialScale, Vector3f initialPosition) {<NEW_LINE>ArrayList<Float> points = new ArrayList<>();<NEW_LINE>for (Integer index : boneIndices) {<NEW_LINE>List<Float> l = pointsMap.get(index);<NEW_...
l.get(i + 2);