idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,058,145
public void testWeldSessionAttributes(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String <MASK><NEW_LINE>String key0 = sessionId + ".WELD_S#0";<NEW_LINE>String key1 = sessionId + ".WELD_S#1";<NEW_LINE>Cache<String, byte[]> cache = SessionCacheTestServlet.getAttrCache();<NEW_LIN...
sessionId = request.getParameter("sessionId");
498,003
final DBClusterSnapshotAttributesResult executeModifyDBClusterSnapshotAttribute(ModifyDBClusterSnapshotAttributeRequest modifyDBClusterSnapshotAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyDBClusterSnapshotAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,022,749
public boolean updateConfig(String group, String serviceId, String config) throws Exception {<NEW_LINE>String appId = environment.getProperty(ApolloConstant.APOLLO_PLUGIN_APP_ID);<NEW_LINE>if (StringUtils.isEmpty(appId)) {<NEW_LINE>throw new DiscoveryException(ApolloConstant.APOLLO_PLUGIN_APP_ID + " can't be null or em...
String.class, ApolloConstant.APOLLO_DEFAULT_NAMESPACE);
1,113,578
public StopContinuousExportResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StopContinuousExportResult stopContinuousExportResult = new StopContinuousExportResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
26,138
private Coin payToFederation(Constants constants, boolean isRskip85Enabled, Block processingBlock, BlockHeader processingBlockHeader, Coin syntheticReward) {<NEW_LINE>RemascFederationProvider federationProvider = new RemascFederationProvider(activationConfig, constants.<MASK><NEW_LINE>Coin federationReward = syntheticR...
getBridgeConstants(), repository, processingBlock);
1,057,739
public CellStyle createCellStyle(WriteCellStyle writeCellStyle, CellStyle originCellStyle) {<NEW_LINE>if (writeCellStyle == null) {<NEW_LINE>return originCellStyle;<NEW_LINE>}<NEW_LINE>short styleIndex = -1;<NEW_LINE>Font originFont = null;<NEW_LINE>boolean useCache = true;<NEW_LINE>if (originCellStyle != null) {<NEW_L...
cellStyleMap.put(tempWriteCellStyle, cellStyle);
1,774,945
public void resumeSelectAttackers(Game game) {<NEW_LINE>Map<UUID, Set<MageObjectReference>> morSetMap = new HashMap<>();<NEW_LINE>for (CombatGroup group : groups) {<NEW_LINE>for (UUID attacker : group.getAttackers()) {<NEW_LINE>if (attackersTappedByAttack.contains(attacker)) {<NEW_LINE>Permanent attackingPermanent = ga...
.defenderId, attacker, attackingPlayerId));
1,469,933
private // active config model which is changed on activate<NEW_LINE>List<Node> prepareNodes(ApplicationId application, ClusterSpec cluster, NodeSpec requestedNodes, int wantedGroups, boolean reuseIndexes) {<NEW_LINE>NodesAndHosts<LockedNodeList> allNodesAndHosts = groupPreparer.createNodesAndHostUnlocked();<NEW_LINE>N...
<Node> accepted = result.prepared;
1,836,476
public static ProjectProblemsProvider createPlatformVersionProblemProvider(@NonNull final AntProjectHelper projectHelper, @NonNull final PropertyEvaluator evaluator, @NullAllowed final PlatformUpdatedCallBack postPlatformSetHook, @NonNull final String platformType, @NonNull final SpecificationVersion minimalVersion, @N...
Parameters.notNull("evaluator", evaluator);
1,197,340
private int newCorrelationTypeKnownId(CorrelationAttributeInstance.Type newType) throws CentralRepoException {<NEW_LINE>Connection conn = connect();<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>PreparedStatement preparedStatementQuery = null;<NEW_LINE>ResultSet resultSet = null;<NEW_LINE>int typeId = 0...
throw new CentralRepoException("Error inserting new correlation type.", ex);
1,148,970
public Status resetLearners(final String groupId, final Configuration conf, final List<PeerId> learners) {<NEW_LINE>checkLearnersOpParams(groupId, conf, learners);<NEW_LINE><MASK><NEW_LINE>final Status st = getLeader(groupId, conf, leaderId);<NEW_LINE>if (!st.isOk()) {<NEW_LINE>return st;<NEW_LINE>}<NEW_LINE>if (!this....
final PeerId leaderId = new PeerId();
540,044
public static DescribeInstanceResponse unmarshall(DescribeInstanceResponse describeInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInstanceResponse.setRequestId(_ctx.stringValue("DescribeInstanceResponse.RequestId"));<NEW_LINE>describeInstanceResponse.setInstanceId(_ctx.stringValue("DescribeInstanceRespo...
("DescribeInstanceResponse.ApplicableOperations[" + i + "]"));
1,578,692
private void mergeOsAccounts(OsAccount sourceAccount, OsAccount destAccount, CaseDbTransaction trans) throws TskCoreException {<NEW_LINE>String query = "";<NEW_LINE>try (Statement s = trans.getConnection().createStatement()) {<NEW_LINE>// Update all references<NEW_LINE>query = <MASK><NEW_LINE>s.executeUpdate(query);<NE...
makeOsAccountUpdateQuery("tsk_os_account_attributes", sourceAccount, destAccount);
1,747,751
public Optional<GameProfile> card_findByName(String name) {<NEW_LINE>Optional<GameProfile> optional2 = null;<NEW_LINE>String string = name.toLowerCase(Locale.ROOT);<NEW_LINE>Entry entry = this.byName.get(string);<NEW_LINE>boolean bl = false;<NEW_LINE>if (entry != null && new Date().getTime() >= entry.getExpirationDate(...
add(optional2.get());
1,040,014
final ListSatellitesResult executeListSatellites(ListSatellitesRequest listSatellitesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSatellitesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,423,964
private static List<ClipperTrip> computeBalances(long balance, @NonNull List<ClipperTrip> trips, @NonNull List<ClipperRefill> refills) {<NEW_LINE>List<ClipperTrip> tripsWithBalance = new ArrayList<>(Collections.nCopies(trips.size(), (ClipperTrip) null));<NEW_LINE>int tripIdx = 0;<NEW_LINE>int refillIdx = 0;<NEW_LINE>wh...
get(tripIdx).getFare();
1,682,644
private OrderedCollection<PortChangeEvent> handlePortStatusDelete(OFPortDesc delPort) {<NEW_LINE>OrderedCollection<PortChangeEvent> events = new LinkedHashSetWrapper<>();<NEW_LINE>lock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>Map<OFPort, OFPortDesc> newPortByNumber = new HashMap<>(portsByNumber);<NEW_LINE>OFPortDesc...
(prevPort, PortChangeType.DELETE));
625,569
// Parses the specified source into a compilation unit with type bindings.<NEW_LINE>private CompilationUnit compileSource(String source, String sourceFilePath, String unitName, StringBuilder errors) throws Exception {<NEW_LINE>if (!unitName.endsWith(".java")) {<NEW_LINE>// The AST compiler is surprisingly insistent abo...
classpath, sources, null, true);
30,581
public void createAndFireStockCountEvents(@NonNull final I_Fresh_QtyOnHand qtyOnHand, @NonNull final ModelChangeType timing) {<NEW_LINE>final boolean createDeletedEvent = timing.isDelete() || ModelChangeUtil.isJustDeactivatedOrUnProcessed(qtyOnHand);<NEW_LINE>final List<AbstractStockEstimateEvent> events = new ArrayLis...
Fresh_QtyOnHand_Line.buildDeletedEvent(line, materialDescriptor);
271,076
protected void calculateLayout(View view, boolean initLayout) {<NEW_LINE>menuTitleHeight = view.findViewById(R.id.route_menu_top_shadow_all).getHeight() + view.findViewById(R.id.control_buttons).getHeight() - view.findViewById(R.<MASK><NEW_LINE>LinearLayout cardsContainer = getCardsContainer();<NEW_LINE>if (menu != nul...
id.buttons_shadow).getHeight();
117,962
private void addAsClassDefItem(SootClass c) {<NEW_LINE>// add source file tag if any<NEW_LINE>SourceFileTag sft = (SourceFileTag) c.getTag(SourceFileTag.NAME);<NEW_LINE>String sourceFile = sft == null ? null : sft.getSourceFile();<NEW_LINE>String classType = SootToDexUtils.getDexTypeDescriptor(c.getType());<NEW_LINE>in...
warn("More than one constant tag for field \"{}\": \"{}\"", f, t);
1,507,682
public void markup(OatHeader oatHeader, Program program, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>Symbol oatDataSymbol = OatUtilities.getOatDataSymbol(program);<NEW_LINE>Address address = oatDataSymbol.getAddress();<NEW_LINE>Address <MASK><NEW_LINE>program.getListing().setComment(dataAddress, Co...
dataAddress = address.add(_offset);
214,006
public boolean handleJob(final JobService jobService, final JobParameters params) {<NEW_LINE>PersistableBundle extras = params.getExtras();<NEW_LINE>// persistable bundle extras param name is appId for legacy reasons<NEW_LINE>String appScopeKey = extras.getString("appId");<NEW_LINE>String taskName = extras.getString("t...
Log.w(TAG, "Task or consumer not found.");
102,205
public synchronized int waitFor() throws InterruptedException {<NEW_LINE>if (exitValue == null) {<NEW_LINE>int[] stat_loc = { 0 };<NEW_LINE>Ruby runtime = this.runtime;<NEW_LINE><MASK><NEW_LINE>context.blockingThreadPoll();<NEW_LINE>retry: while (true) {<NEW_LINE>stat_loc[0] = 0;<NEW_LINE>// TODO: investigate WNOHANG<N...
ThreadContext context = runtime.getCurrentContext();
339,791
public boolean handleChange(final ChangeEvent event) {<NEW_LINE>if (event.getState() == State.DELETED) {<NEW_LINE>UIHelper.runUISync(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final Model model = event.getModel();<NEW_LINE>// getViewer().remove(...) internally (see<NEW_LINE>// o...
new Object[] { model });
754,108
protected AssemblyResolvedPatterns combineLessBackfill(AssemblyResolvedPatterns that, AssemblyResolvedBackfill bf) {<NEW_LINE>AssemblyPatternBlock newIns = this.ins.combine(that.ins);<NEW_LINE>if (newIns == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AssemblyPatternBlock newCtx = this.ctx.combine(that.ctx);<NEW_L...
newForbids.addAll(that.forbids);
759,867
private void changeOnOffline(String subject, String consumerGroup, boolean isOnline, StatusSource src) {<NEW_LINE>synchronized (getConsumerLockKey(subject, consumerGroup, "onOffline")) {<NEW_LINE>final String realSubject = RetrySubjectUtils.getRealSubject(subject);<NEW_LINE>final String retrySubject = RetrySubjectUtils...
.buildSubscribeKey(retrySubject, consumerGroup));
888,747
void doRequest(CollectorRegistry registry, String job, Map<String, String> groupingKey, String method) throws IOException {<NEW_LINE>String url = gatewayBaseURL;<NEW_LINE>if (job.contains("/")) {<NEW_LINE>url += "job@base64/" + base64url(job);<NEW_LINE>} else {<NEW_LINE>url += "job/" + <MASK><NEW_LINE>}<NEW_LINE>if (gr...
URLEncoder.encode(job, "UTF-8");
1,828,608
public void marshall(BurninDestinationSettings burninDestinationSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (burninDestinationSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(burninDes...
burninDestinationSettings.getBackgroundOpacity(), BACKGROUNDOPACITY_BINDING);
1,234,767
public boolean execute() throws Exception {<NEW_LINE>if (_action.equalsIgnoreCase("extractFilterColumns")) {<NEW_LINE>Set<String> filterColumns = PinotDataAndQueryAnonymizer.FilterColumnExtractor.extractColumnsUsedInFilter(_queryDir, _originalQueryFile);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.appe...
filterColumns = new HashSet<>();
7,731
public void close() throws IOException {<NEW_LINE>dataStream.close();<NEW_LINE>eiGen.close();<NEW_LINE>Map parameters;<NEW_LINE>if (digestCalculator != null) {<NEW_LINE>parameters = Collections.unmodifiableMap(getBaseParameters(contentType, digestCalculator.getAlgorithmIdentifier(), macCalculator.getAlgorithmIdentifier...
OutputStream mOut = macCalculator.getOutputStream();
1,690,427
private void sendScreenNotification(String message, String detail) {<NEW_LINE>Context context = mContext;<NEW_LINE>if (context == null) {<NEW_LINE>LogManager.e(TAG, "congtext is unexpectedly null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>initializeWithContext(context);<NEW_LINE>if (this.mNotificationsEnabled) {<NEW_LINE>...
200L }).setContentText(detail);
1,507,808
public ArrayList<ListBlobsIncludeItem> toList() {<NEW_LINE>ArrayList<ListBlobsIncludeItem> details = new ArrayList<>();<NEW_LINE>if (this.retrieveCopy) {<NEW_LINE>details.add(ListBlobsIncludeItem.COPY);<NEW_LINE>}<NEW_LINE>if (this.retrieveDeletedBlobs) {<NEW_LINE>details.add(ListBlobsIncludeItem.DELETED);<NEW_LINE>}<N...
details.add(ListBlobsIncludeItem.UNCOMMITTEDBLOBS);
1,214,213
private void buildOnce() {<NEW_LINE>fireBuildStarted();<NEW_LINE>reportProgress(0);<NEW_LINE>DebugInformationBuilder debugInformationBuilder = new DebugInformationBuilder(referenceCache);<NEW_LINE>ClassLoader classLoader = initClassLoader();<NEW_LINE>ClasspathResourceReader reader = new ClasspathResourceReader(classLoa...
setObfuscated(false).build();
1,126,567
private String reportBulkErrors(JsonNode items) {<NEW_LINE><MASK><NEW_LINE>for (JsonNode item : items) {<NEW_LINE>JsonNode action = item.get("index");<NEW_LINE>if (action == null) {<NEW_LINE>action = item.get("create");<NEW_LINE>}<NEW_LINE>if (action != null) {<NEW_LINE>final JsonNode error = action.get("error");<NEW_L...
final StringBuilder sb = new StringBuilder();
1,761,841
protected int next(final int bits) {<NEW_LINE>int y;<NEW_LINE>if (mti >= N) {<NEW_LINE>int kk;<NEW_LINE>for (kk = 0; kk < N - M; kk++) {<NEW_LINE>y = (stateVector[kk] & UPPER_MASK) | (stateVector[kk + 1] & LOWER_MASK);<NEW_LINE>stateVector[kk] = stateVector[kk + M] ^ (y >>> 1) ^ mag01[y & 0x1];<NEW_LINE>}<NEW_LINE>for ...
^= (y << 7) & TEMPERING_MASK_B;
165,052
public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {<NEW_LINE>String localHost = null;<NEW_LINE>int localPort = 0;<NEW_LINE>IRubyObject maybeOpts;<NEW_LINE>RubyHash opts = null;<NEW_LINE>switch(args.length) {<NEW_LINE>case 2:<NEW_LINE>return initialize(context, args[0], args[1]);<NEW_LINE>case 3:<...
SocketUtils.getPortFrom(context, port);
19,441
// scopes ///////////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public void initialize() {<NEW_LINE>LOGGER.debug("initializing {}", this);<NEW_LINE>ScopeImpl scope = getScopeObject();<NEW_LINE>ensureParentInitialized();<NEW_LINE>// initia...
scope.getProperty(BpmnParse.PROPERTYNAME_EVENT_SUBSCRIPTION_DECLARATION);
1,661,355
private void rebuildFileRootsCache() {<NEW_LINE>shortcutsRootsPanel.clear();<NEW_LINE>File[] roots = File.listRoots();<NEW_LINE>driveCheckerListeners.clear();<NEW_LINE>for (final File root : roots) {<NEW_LINE>DriveCheckerListener listener = new DriveCheckerListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void ...
root, initialName, style.iconDrive);
468,684
public void testAuthenticateMethodFL_ProtectedServlet2() throws Exception {<NEW_LINE>METHODS = "testMethod=login,logout_once,authenticate";<NEW_LINE>String url = "http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/formlogin/ProgrammaticAPIServlet?" + METHODS + "&user=" + managerUser + "&password=" ...
validUser, test3, NOT_MANAGER_ROLE, IS_EMPLOYEE_ROLE);
418,975
/* This is just a light syntactic check of the language tag.<NEW_LINE>* See JENA-827.<NEW_LINE>* Jena, when parsing RDF/XML, used to check the syntax and against (an encoded copy of) the IANA registry.<NEW_LINE>* Elsewhere, Turtle et al and SPARQL, Jena has always only performed this syntax check.<NEW_LINE>*/<NEW_LINE>...
WARN_BAD_XMLLANG, "Bad language tag: " + newLang + " (not allowed)");
1,489,969
protected void encodeDropDown(FacesContext context, AutoComplete ac) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String dropdownClass = AutoComplete.DROPDOWN_CLASS;<NEW_LINE>boolean disabled = ac.isDisabled<MASK><NEW_LINE>if (disabled) {<NEW_LINE>dropdownClass += " ui-sta...
() || ac.isReadonly();
861,552
public static void horizontal3(Kernel1D_S32 kernel, GrayU16 image, GrayI16 dest) {<NEW_LINE>final short[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int <MASK><NEW_LINE>final int radius = kernel.getRadi...
k3 = kernel.data[2];
132,572
public void onStateTransition(CommandContext commandContext, DelegatePlanItemInstance planItemInstance, String transition) {<NEW_LINE>// Remove event subscription when moving to a terminal state<NEW_LINE>CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(commandContext);<NEW...
getTenantId()).create();
545,833
public static void initialize(Core core) {<NEW_LINE>ConfigurationManager config = ConfigurationManager.getInstance();<NEW_LINE>if ("az2".equalsIgnoreCase(config.getStringParameter("ui", "az3"))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int userMode = COConfigurationManager.getIntParameter("User Mode");<NEW_LINE>boolean s...
defaults.addParameter("ui", "az3");
576,806
protected void updateShadowCams(Camera viewCam) {<NEW_LINE>if (light == null) {<NEW_LINE>logger.warning("The light can't be null for a " + getClass().getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// bottom<NEW_LINE>shadowCams[0].setAxes(Vector3f.UNIT_X.mult(-1f), Vector3f.UNIT_Z.mult(-1f), Vector3f.UNIT_Y.mult(-1f))...
0.1f, light.getRadius());
779,664
public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>int multiplier = getZoomMultiplier();<NEW_LINE>double binPixelWidth = getBinPixelWidth(multiplier);<NEW_LINE>int offset = (int) (getPixelOffset(multiplier) - binPixelWidth);<NEW_LINE>g.drawImage(mWaterfallImage, offset, 0, (getWidth() *...
int) binPixelWidth, mImageHeight, this);
1,026,459
public Void execute(CommandContext commandContext) {<NEW_LINE>// Finally, Throw the exception to indicate the ExecuteAsyncJobCmd failed<NEW_LINE>String message = "Job " + job.getId() + " failed";<NEW_LINE>LOGGER.error(message, exception);<NEW_LINE>if (job instanceof AbstractRuntimeJobEntity) {<NEW_LINE>AbstractRuntimeJ...
), cmd.getClass());
432,128
private static Set<String> transitiveDeps(Set<String> cnbs) {<NEW_LINE>HashSet<String> all = new HashSet<String>();<NEW_LINE>all.addAll(cnbs);<NEW_LINE>for (; ; ) {<NEW_LINE>int prev = all.size();<NEW_LINE>for (ModuleInfo mi : Lookup.getDefault().lookupAll(ModuleInfo.class)) {<NEW_LINE>if (all.contains(mi.getCodeNameBa...
slash = moduleName.indexOf('/');
60,817
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String sqlServerInstanceName) {<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_LIN...
)).readOnly()));
1,674,639
private void addRolePlayers(TypeDB.Transaction transaction) throws IOException {<NEW_LINE>try (InputStream inputStream = new BufferedInputStream(Files.newInputStream(dataFile))) {<NEW_LINE>DataProto.Item item;<NEW_LINE>while ((item = ITEM_PARSER.parseDelimitedFrom(inputStream)) != null) {<NEW_LINE>if (item.getItemCase(...
roleType = getRoleType(relationType, roleMsg);
261,861
public void populate(final InputStream inputStream) throws PwmUnrecoverableException {<NEW_LINE>if (status() != STATUS.OPEN) {<NEW_LINE>throw new PwmUnrecoverableException(<MASK><NEW_LINE>}<NEW_LINE>cancelBackgroundAndRunImmediate(() -> {<NEW_LINE>setActivity(Activity.Importing);<NEW_LINE>getLogger().debug(getSessionLa...
PwmError.ERROR_SERVICE_NOT_AVAILABLE.toInfo());
1,350,448
private static Shape[] uncantedShapesBack(FinSet finset, Transformation transformation) {<NEW_LINE>double thickness = finset.getThickness();<NEW_LINE><MASK><NEW_LINE>double tabHeight = finset.getTabHeight();<NEW_LINE>// Generate base coordinates for a single fin<NEW_LINE>Coordinate[] c = new Coordinate[4];<NEW_LINE>c[0...
double height = finset.getSpan();
1,410,219
public static void main(String[] args) {<NEW_LINE>Adempiere.startupEnvironment(true);<NEW_LINE>CLogMgt.setLevel(Level.INFO);<NEW_LINE>Properties ctx = Env.getCtx();<NEW_LINE>// HARDCODED<NEW_LINE>int AD_Process_ID = 53156;<NEW_LINE>MPInstance pinstance = new MPInstance(ctx, AD_Process_ID, -1);<NEW_LINE>pinstance.saveEx...
startProcess(ctx, pi, null);
1,454,847
// Using the example in the book<NEW_LINE>public static void main(String[] args) {<NEW_LINE>List<String> students = new ArrayList<>();<NEW_LINE>students.add("Alice");<NEW_LINE>students.add("Bob");<NEW_LINE>students.add("Carol");<NEW_LINE>students.add("Dave");<NEW_LINE>students.add("Eliza");<NEW_LINE>students.add("Frank...
companies = new ArrayList<>();
218,945
private static void generateApi(ApiDefinition apiDefinition, ObjectNode data, ApiOutput... outputs) throws Exception {<NEW_LINE>PathElementDefinition definition = apiDefinition.getPathDefinition();<NEW_LINE>OpenApi3 api = new OpenApi3();<NEW_LINE>api.setOpenapi(OPENAPI_VERSION);<NEW_LINE>//<NEW_LINE>//<NEW_LINE>api.set...
apiDefinition.getPathPrefix(), data);
260,666
public void markup(MachHeader header, FlatProgramAPI api, Address baseAddress, boolean isBinary, ProgramModule parentModule, TaskMonitor monitor, MessageLog log) {<NEW_LINE>updateMonitor(monitor);<NEW_LINE>try {<NEW_LINE>if (isBinary) {<NEW_LINE>super.markup(header, api, baseAddress, isBinary, parentModule, monitor, lo...
).locateAddressesForFileOffset(getDataOffset());
1,111,010
private void drawDynamic(final Canvas canvas) {<NEW_LINE>final int viewWidth = getWidth() - getPaddingLeft() - getPaddingRight();<NEW_LINE>final int viewHalfWidth = getPaddingLeft() + viewWidth / 2;<NEW_LINE>final int viewBottom = getHeight();<NEW_LINE>final float density = getResources().getDisplayMetrics().density;<N...
label, labelLeft, y, paint);
761,880
private void unzip(TaskMonitor monitor) throws ZipException, IOException, FileNotFoundException, CancelledException {<NEW_LINE>FileSystemService fsService = FileSystemService.getInstance();<NEW_LINE>try (GFileSystem fs = fsService.openFileSystemContainer(jarFile, monitor)) {<NEW_LINE>List<GFile> files = FSUtilities.lis...
initialize(files.size());
448,187
private boolean checkIfCompileTime(String name) {<NEW_LINE>String packageName = name;<NEW_LINE>while (true) {<NEW_LINE>int index = packageName.lastIndexOf('.');<NEW_LINE>if (index < 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>packageName = packageName.substring(0, index);<NEW_LINE>if (isCompileTimePackage(packageName)) {<...
outerName.substring(0, index);
124,382
Map<String, String> kafkaPodAnnotations(int brokerId, boolean storageAnnotation) {<NEW_LINE>Map<String, String> podAnnotations <MASK><NEW_LINE>podAnnotations.put(Ca.ANNO_STRIMZI_IO_CLUSTER_CA_CERT_GENERATION, String.valueOf(ModelUtils.caCertGeneration(this.clusterCa)));<NEW_LINE>podAnnotations.put(Ca.ANNO_STRIMZI_IO_CL...
= new LinkedHashMap<>(9);
1,336,649
public void reverseTrxLines(final List<I_M_HU_Trx_Line> trxLines) {<NEW_LINE><MASK><NEW_LINE>if (trxLines.isEmpty()) {<NEW_LINE>// nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Build ID to M_HU_Trx_Line map<NEW_LINE>final Map<Integer, I_M_HU_Trx_Line> id2trxLine = new HashMap<>(trxLines.size());<NEW...
Check.assumeNotNull(trxLines, "trxLines not null");
353,384
public boolean isSigned(int param) throws VirtuosoException {<NEW_LINE>int dtp = ((Number) getPd(param).elementAt(3)).intValue();<NEW_LINE>return (dtp == VirtuosoTypes.DV_SHORT_CONT_STRING || dtp == VirtuosoTypes.DV_SHORT_STRING_SERIAL || dtp == VirtuosoTypes.DV_STRICT_STRING || dtp == VirtuosoTypes.DV_LONG_CONT_STRING...
DV_CHARACTER || dtp == VirtuosoTypes.DV_NUMERIC);
662,110
public void onFocusChange(View view, boolean hasFocus) {<NEW_LINE>// Force show soft keyboard if TerminalView or toolbar text input view has<NEW_LINE>// focus and close it if they don't<NEW_LINE>boolean textInputViewHasFocus = false;<NEW_LINE>final EditText textInputView = mActivity.findViewById(R.id.terminal_toolbar_t...
Logger.logVerbose(LOG_TAG, "Hiding soft keyboard on focus change");
510,978
/* (non-Javadoc)<NEW_LINE>* @see org.archive.modules.extractor.ContentExtractor#shouldExtract(org.archive.modules.CrawlURI)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected boolean shouldExtract(CrawlURI uri) {<NEW_LINE>// If declared as such:<NEW_LINE>if (uri.getAnnotations().contains(ExtractorRobotsTxt.ANNOTATION_IS...
uri.getFetchStatus() + ".");
463,897
public void build(Task<Void> task) throws CompileExceptionError, IOException {<NEW_LINE>IResource input = task.getInputs().get(0);<NEW_LINE>PrototypeDesc.Builder protoBuilder = loadPrototype(input);<NEW_LINE>for (ComponentDesc c : protoBuilder.getComponentsList()) {<NEW_LINE>String component = c.getComponent();<NEW_LIN...
setComponent(path).build();
1,354,297
private static Future<Void> postUserTask(final Source src, final UserTask task, final AtomicReference<Throwable> status) {<NEW_LINE>boolean retry = false;<NEW_LINE>Boolean b = retryGuard.get();<NEW_LINE>boolean mode = b <MASK><NEW_LINE>try {<NEW_LINE>retryGuard.set(mode);<NEW_LINE>ParserManager.parse(Collections.single...
== null || b.booleanValue();
1,666,349
private void doDeleteRowRPC(TDSCommand command) throws SQLServerException {<NEW_LINE>assert 0 != serverCursorId;<NEW_LINE>TDSWriter tdsWriter = command.startRequest(TDS.PKT_RPC);<NEW_LINE>// procedure name length -> use ProcIDs<NEW_LINE>tdsWriter.writeShort((short) 0xFFFF);<NEW_LINE>tdsWriter.writeShort(TDS.PROCID_SP_C...
.writeByte((byte) 0);
743,254
public void fit(ArrayList<double[]> init, double[] data, double[] cResidual, int ifIntercept) {<NEW_LINE>double[] arCoef = init.get(0);<NEW_LINE>double[] <MASK><NEW_LINE>double intercept = init.get(2)[0];<NEW_LINE>double variance = init.get(3)[0];<NEW_LINE>this.p = arCoef.length;<NEW_LINE>this.q = maCoef.length;<NEW_LI...
maCoef = init.get(1);
1,568,953
private void externalLoad(final Cache concreteCache, final long currentTime) throws Throwable {<NEW_LINE>byte[] newKey = ((AbstractExternalCache) concreteCache).buildKey(key);<NEW_LINE>byte[] lockKey = combine(newKey, "_#RL#".getBytes());<NEW_LINE>long loadTimeOut = RefreshCache.this.config.getRefreshPolicy().getRefres...
.getRefreshPolicy().getRefreshMillis();
1,525,508
protected void removeUnusedRedises() {<NEW_LINE>Set<Endpoint> currentStoredRedises = sessions.keySet();<NEW_LINE>if (currentStoredRedises.isEmpty())<NEW_LINE>return;<NEW_LINE>Set<HostPort> redisInUse = getInUseRedises();<NEW_LINE>if (redisInUse == null || redisInUse.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Lis...
unusedRedises = new LinkedList<>();
1,695,833
public VersionStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VersionStatus versionStatus = new VersionStatus();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu...
int originalDepth = context.getCurrentDepth();
420,083
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>try (final PrintFile printFile = getOutputFile(cl)) {<NEW_LINE>final String tableName = OptUtil.getTableOpt(cl, shellState);<NEW_LINE>final Class<? extends Formatter> formatter = getFormatter(cl, table...
tableName, cl, shellState, scanner);
731,926
public BigInteger[] generateSignature(byte[] digest) {<NEW_LINE>if (!this.forSigning) {<NEW_LINE>throw new IllegalStateException("not initialised for signing");<NEW_LINE>}<NEW_LINE>BigInteger n = getOrder();<NEW_LINE>BigInteger e = new BigInteger(1, digest);<NEW_LINE>ECPrivateKeyParameters privKey = (ECPrivateKeyParame...
.equals(ECConstants.ZERO));
1,550,621
private static URI initializeNamespace(ServerConfiguration bkServerConf, URI dlogUri) throws IOException {<NEW_LINE>BKDLConfig dlConfig = new BKDLConfig(ZKMetadataDriverBase.resolveZkServers(bkServerConf), ZKMetadataDriverBase.resolveZkLedgersRootPath(bkServerConf));<NEW_LINE>DLMetadata dlMetadata = DLMetadata.create(d...
error("Failed to initialize dlog namespace at {}", dlogUri, e);
993,165
private void verifyDynamicEditorModel(HighFunction hf, FunctionEditorModel model) {<NEW_LINE>FunctionPrototype functionPrototype = hf.getFunctionPrototype();<NEW_LINE>int decompParamCnt = functionPrototype.getNumParams();<NEW_LINE>List<ParamInfo<MASK><NEW_LINE>int modelParamCnt = parameters.size();<NEW_LINE>// growth a...
> parameters = model.getParameters();
1,618,463
public ReplicaGlobalSecondaryIndexSettingsUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReplicaGlobalSecondaryIndexSettingsUpdate replicaGlobalSecondaryIndexSettingsUpdate = new ReplicaGlobalSecondaryIndexSettingsUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
1,408,897
public StorageRuleType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StorageRuleType storageRuleType = new StorageRuleType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,743,593
private TextLine[] calculateTextLines() {<NEW_LINE>int startOffset = 0;<NEW_LINE>List<TextLine> textLines = new ArrayList<>();<NEW_LINE>StringBuilder lineBuilder = new StringBuilder();<NEW_LINE>int index = 0;<NEW_LINE>int line = 0;<NEW_LINE>int textLength = text.length();<NEW_LINE>int lengthOfNewLineChars;<NEW_LINE>whi...
, startOffset, endOffset, lengthOfNewLineChars));
858,292
public void provideCodegen(CodegenMethod method, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenExpressionRef spec = ref("spec");<NEW_LINE>method.getBlock().declareVarNewInstance(OutputProcessViewConditionSpec.EPTYPE, spec.getRef()).exprDotMethod(spec, "setConditionType", enumValue(Resul...
(OutputProcessViewConditionFactory.EPTYPE, spec));
601,977
// Create and init manager including all listeners etc<NEW_LINE>public static InfinispanNotificationsManager create(KeycloakSession session, Cache<String, Serializable> workCache, String myAddress, String mySite, Set<RemoteStore> remoteStores) {<NEW_LINE>RemoteCache workRemoteCache = null;<NEW_LINE>if (!remoteStores.is...
manager.new HotRodListener(workRemoteCache));
1,561,340
private static DiskStats queryReadWriteStats(String index) {<NEW_LINE>// Create object to hold and return results<NEW_LINE>DiskStats stats = new DiskStats();<NEW_LINE>Pair<List<String>, Map<PhysicalDiskProperty, List<Long>>> instanceValuePair = PhysicalDisk.queryDiskCounters();<NEW_LINE>List<String> instances = instanc...
, queueLengthList.get(i));
1,317,108
private static void generateEnumDecoder(final StringBuilder sb, final int level, final Token fieldToken, final Token typeToken, final String name) throws IOException {<NEW_LINE>final String referencedName = typeToken.referencedName();<NEW_LINE>final String enumType = formatStructName(referencedName == null ? typeToken....
, rustPrimitiveType, getBufOffset(typeToken));
1,539,966
// variable instance query /////////////////////////////<NEW_LINE>protected void configureVariableInstanceQuery(VariableInstanceQueryImpl query) {<NEW_LINE>configureQuery(query);<NEW_LINE>if (query.getAuthCheck().isAuthorizationCheckEnabled()) {<NEW_LINE>CompositePermissionCheck permissionCheck;<NEW_LINE>if (isEnsureSp...
"RES.TASK_ID_", READ).build();
966,482
public void writeRelationshipGroupCommand(WritableChannel channel, Command.RelationshipGroupCommand command) throws IOException {<NEW_LINE>int relType = Math.max(command.getBefore().getType(), command.getAfter().getType());<NEW_LINE>if (relType == Record.NULL_REFERENCE.intValue() || relType >>> Short.SIZE == 0) {<NEW_L...
channel, command.getBefore());
1,212,889
public void hash(final String s, final LongTupleHashFunction hashFunction, final int off, final int len, final long[] result) {<NEW_LINE>final int sl = s.length();<NEW_LINE>if (len <= 0 || sl <= 0) {<NEW_LINE>// check as chars<NEW_LINE>checkArrayOffs(sl, off, len);<NEW_LINE>hashFunction.hashVoid(result);<NEW_LINE>} els...
checkArrayOffs(sl, off, len);
1,601,047
public Document mongoSerialise() {<NEW_LINE>Document dbObject = super.mongoSerialise();<NEW_LINE>dbObject.put("direction", getDirection().ordinal());<NEW_LINE>dbObject.put("hp", hp);<NEW_LINE>dbObject.put("shield", shield);<NEW_LINE>dbObject.put("action", lastAction.ordinal());<NEW_LINE>if (parent != null) {<NEW_LINE>/...
hardware = hardwareAddresses.get(address);
1,798,720
public void deleteAttachmentFilesForViewOnceMessage(long mmsId) {<NEW_LINE>Log.d(TAG, "[deleteAttachmentFilesForViewOnceMessage] mmsId: " + mmsId);<NEW_LINE>SQLiteDatabase database = databaseHelper.getSignalWritableDatabase();<NEW_LINE>Cursor cursor = null;<NEW_LINE>try {<NEW_LINE>cursor = database.query(TABLE_NAME, ne...
[] { mmsId + "" });
77,751
private String calculateInputSpecHash(File inputSpecFile) throws IOException {<NEW_LINE>URL inputSpecRemoteUrl = inputSpecRemoteUrl();<NEW_LINE>File inputSpecTempFile = inputSpecFile;<NEW_LINE>if (inputSpecRemoteUrl != null) {<NEW_LINE>inputSpecTempFile = java.nio.file.Files.createTempFile("openapi-spec", ".tmp").toFil...
URLConnection conn = inputSpecRemoteUrl.openConnection();
1,207,604
public boolean checkRunConfig(RunConfig config) {<NEW_LINE>if (config.getPreExecution() != null && !checkRunConfig(config.getPreExecution())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (config.getReactorStyle() == RunConfig.ReactorStyle.NONE) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>File dir = config.getExecuti...
).lookup(NbMavenProject.class);
1,455,978
private static Metadata metadataToSnapshot(Collection<IndexId> indices, Metadata metadata) {<NEW_LINE>Metadata.Builder <MASK><NEW_LINE>for (IndexId indexId : indices) {<NEW_LINE>IndexMetadata index = metadata.index(indexId.getName());<NEW_LINE>IndexMetadata.Builder indexMetadataBuilder = IndexMetadata.builder(index);<N...
builder = Metadata.builder(metadata);
1,551,832
public void marshall(UpdateProductRequest updateProductRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateProductRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateProductRequest.get...
updateProductRequest.getSupportDescription(), SUPPORTDESCRIPTION_BINDING);
567,768
private <T extends ScriptObject> T initConstructor(final String name, final Class<T> clazz) {<NEW_LINE>try {<NEW_LINE>// Assuming class name pattern for built-in JS constructors.<NEW_LINE>final StringBuilder sb = new StringBuilder("jdk.nashorn.internal.objects.");<NEW_LINE>sb.append("Native");<NEW_LINE>sb.append(name);...
forName(sb.toString());
1,197,252
private boolean moveUser(UserVO user, long newAccountId) {<NEW_LINE>if (newAccountId == user.getAccountId()) {<NEW_LINE>// could do a not silent fail but the objective of the user is reached<NEW_LINE>// no need to create a new user object for this user<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>return Transaction.execut...
setExternalEntity(user.getUuid());
1,594,746
public static String parseUPN(GeneralName generalName) {<NEW_LINE>// OtherName ::= SEQUENCE {<NEW_LINE>// type-id OBJECT IDENTIFIER,<NEW_LINE>// value [0] EXPLICIT ANY DEFINED BY type-id }<NEW_LINE>ASN1Sequence otherName = <MASK><NEW_LINE>ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) otherName.getObjectAt(0);<NEW_L...
(ASN1Sequence) generalName.getName();
1,433,227
public PageSTInterface<Key, Value> split() {<NEW_LINE>List<Key> keysToMove = new ArrayList<>();<NEW_LINE>int middleRank = binarySearchSymbolTable.size() / 2;<NEW_LINE>for (int index = middleRank; index < binarySearchSymbolTable.size(); index++) {<NEW_LINE>Key <MASK><NEW_LINE>keysToMove.add(keyToMove);<NEW_LINE>}<NEW_LI...
keyToMove = binarySearchSymbolTable.select(index);
1,200,037
public void testCreateSharedNonDurableConsumer_JRException_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextTCFTCP = tcfTCP.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContextTCFTCP.createSharedConsumer(topic1, "DURATEST1_TCP");<NEW_LINE><...
JMSProducer jmsProducer = jmsContextTCFTCP.createProducer();
964,436
public boolean processScriptAfter(String fieldName) {<NEW_LINE>int index = getIndexOfScript(fieldName, false);<NEW_LINE>if (index == -1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String afterElementName = fieldName.substring(0, index);<NEW_LINE>if (StringUtils.isNotEmpty(afterElementName)) {<NEW_LINE>if (afterElemen...
.findParentElementInfo(singletonList(afterElementName));
248,052
private void createStream(MediaStreamTrack[] tracks, BiConsumer<String, ArrayList<WritableMap>> successCallback) {<NEW_LINE>String streamId = UUID.randomUUID().toString();<NEW_LINE>MediaStream mediaStream = webRTCModule.mFactory.createLocalMediaStream(streamId);<NEW_LINE>ArrayList<WritableMap> tracksInfo = new ArrayLis...
state().toString());
179,363
private static String removeMultiLineGarbage(String data, Pattern pattern) {<NEW_LINE>ArrayList<Region> regions = new ArrayList<Region>();<NEW_LINE>Matcher matcher = pattern.matcher(data);<NEW_LINE>while (matcher.find()) {<NEW_LINE>String declaration = matcher.group();<NEW_LINE>if (declaration.endsWith(C_MULTILINE_DELI...
'\n', matcher.start());