idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,259,830
public // testCreateSharedDurableExpiry_B_SecOff<NEW_LINE>void testCreateSharedDurableConsumer_create_Expiry_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextSender = tcfBindings.createContext();<NEW_LINE>JMSContext jmsContextReceiver = tcfBindings.crea...
System.out.println("testCreateSharedDurableExpiry_B_SecOff (send, durable, expiring):");
689,857
public ChefConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ChefConfiguration chefConfiguration = new ChefConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
1,234,300
protected void drawFilter() {<NEW_LINE>GLES20.glUseProgram(program);<NEW_LINE>squareVertex.position(SQUARE_VERTEX_DATA_POS_OFFSET);<NEW_LINE>GLES20.glVertexAttribPointer(aPositionHandle, 3, GLES20.GL_FLOAT, false, SQUARE_VERTEX_DATA_STRIDE_BYTES, squareVertex);<NEW_LINE>GLES20.glEnableVertexAttribArray(aPositionHandle)...
GL_FLOAT, false, SQUARE_VERTEX_DATA_STRIDE_BYTES, squareVertex);
581,606
private Map<String, List<Token>> readSimpleDict() throws IOException {<NEW_LINE>Map<String, List<Token>> dict = new HashMap<String, List<Token>>();<NEW_LINE>int length = read(Token.INTEGER).intValue();<NEW_LINE><MASK><NEW_LINE>readMaybe(Token.NAME, "dup");<NEW_LINE>read(Token.NAME, "begin");<NEW_LINE>for (int i = 0; i ...
read(Token.NAME, "dict");
206,978
public void actionPerformed(JTextComponent text) {<NEW_LINE>boolean indentError = false;<NEW_LINE>Document doc = text.getDocument();<NEW_LINE>Element map = doc.getDefaultRootElement();<NEW_LINE>String tabWhitespace = PreferencesUser.get().getTabWhitespace();<NEW_LINE>Caret c = text.getCaret();<NEW_LINE>int dot = c.getD...
int mark = c.getMark();
1,672,120
public static ListBookkeepingSubjectBalancesResponse unmarshall(ListBookkeepingSubjectBalancesResponse listBookkeepingSubjectBalancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listBookkeepingSubjectBalancesResponse.setRequestId(_ctx.stringValue("ListBookkeepingSubjectBalancesResponse.RequestId"));<NEW_LINE>listBook...
(_ctx.integerValue("ListBookkeepingSubjectBalancesResponse.PageNumber"));
188,689
private static long readSub12(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c, long mvl0, int subMode1, int blk, int packedRefFrames) {<NEW_LINE>int ref0 = Packed4BitList.get(packedRefFrames, 0);<NEW_LINE>int ref1 = Packed4BitList.get(packedRefFrames, 1);<NEW_LINE>boolean compoundPred = Pac...
MVList.create(mv10, mv11);
673,908
public void loadGeometry() throws QueryException, ServerException, UserException, PublicInterfaceNotFoundException, IOException, GeometryException, IfcModelInterfaceException {<NEW_LINE>if (includeGeometry) {<NEW_LINE>if (modelState == ModelState.FULLY_LOADED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Query query = new Qu...
Include geometryData = include.createInclude();
372,848
private void drawSwipeListItemBackground(Canvas c, int dX, View itemView, int actionState) {<NEW_LINE>if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE) {<NEW_LINE>// Fade out the view as it is swiped out of the parent's bounds<NEW_LINE>final float alpha = 1.0f - Math.abs(dX) / (float) itemView.getWidth();<NEW_LINE...
ViewHelper.setAlpha(itemView, alpha);
674,396
public boolean saveAs(final MapModel map) {<NEW_LINE>final JFileChooser chooser = getMindMapFileChooser();<NEW_LINE>File mapFile = map.getFile();<NEW_LINE>if (mapFile == null || mapFile.getParentFile() == null) {<NEW_LINE>File defaultFile = new File(getFileNameProposal(map) + org.freeplane.features.url.UrlManager.FREEP...
(TextUtils.getText("SaveAsAction.text"));
57,427
private Range calculateRangeBinaryOp(Node leftNode, Node rightNode, NumericalBinaryOps op, TransferInput<CFValue, CFStore> p) {<NEW_LINE>if (TypesUtils.isIntegralPrimitive(leftNode.getType()) && TypesUtils.isIntegralPrimitive(rightNode.getType())) {<NEW_LINE>Range leftRange = getIntRange(leftNode, p);<NEW_LINE>Range ri...
resultRange = leftRange.remainder(rightRange);
1,268,745
public DataHolder parseModel() {<NEW_LINE>EList<PackageableElement<MASK><NEW_LINE>// expect root machine to be a one having no machines in a submachineState field.<NEW_LINE>StateMachine stateMachine = null;<NEW_LINE>Collection<StateMachine> stateMachines = EcoreUtil.getObjectsByType(packagedElements, UMLPackage.Literal...
> packagedElements = model.getPackagedElements();
816,414
public static void addClient(PushClient client) {<NEW_LINE>// client is stored by key 'serviceName' because notify event is driven by serviceName change<NEW_LINE>String serviceKey = UtilsAndCommons.assembleFullServiceName(client.getNamespaceId(<MASK><NEW_LINE>ConcurrentMap<String, PushClient> clients = clientMap.get(se...
), client.getServiceName());
653,819
public void run(Transaction tx, Key userKey, Void arg) {<NEW_LINE>Entity user = tx.get(userKey);<NEW_LINE>if (user == null) {<NEW_LINE>System.out.printf("User '%s' does not exist.%n", userKey.getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (user.contains("contact")) {<NEW_LINE>FullEntity<IncompleteKey> contact = us...
sortedComments = new TreeMap<>();
719,620
final DetachThingPrincipalResult executeDetachThingPrincipal(DetachThingPrincipalRequest detachThingPrincipalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachThingPrincipalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DetachThingPrincipal");
1,671,687
public DownOperationResult execute() throws Exception {<NEW_LINE>logger.log(Level.INFO, "");<NEW_LINE>logger.log(Level.INFO, "Running 'Sync down' at client " + config.getMachineName() + " ...");<NEW_LINE>logger.log(Level.INFO, "--------------------------------------------");<NEW_LINE>fireStartEvent();<NEW_LINE>if (!che...
allBranches = populateDatabaseBranches(localBranch, remoteDatabaseHeaders);
561,992
public static byte[] generateWARCInfo(Map<String, String> fields) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>buffer.append(WARC_VERSION);<NEW_LINE>buffer.append(CRLF);<NEW_LINE>buffer.append("WARC-Type: ").append(WARC_TYPE_WARCINFO).append(CRLF);<NEW_LINE>String mainID = UUID.randomUUID().toString();...
.entrySet().iterator();
1,699,667
public List<List<String>> displayTable(List<List<String>> orders) {<NEW_LINE>Set<Integer> tables = new HashSet<>();<NEW_LINE>Set<String> foods = new HashSet<>();<NEW_LINE>Map<String, Integer> mp = new HashMap<>();<NEW_LINE>for (List<String> order : orders) {<NEW_LINE>int table = Integer.parseInt(order.get(1));<NEW_LINE...
(String.valueOf(table));
1,568,959
public void runSupport() {<NEW_LINE>final MenuItem torrentItem = MenuFactory.findMenuItem(mainWindow.getMainMenu().getMenu(IMenuConstants.MENU_ID_MENU_BAR<MASK><NEW_LINE>if (null != torrentItem) {<NEW_LINE>DownloadManager[] dms = SelectedContentManager.getDMSFromSelectedContent();<NEW_LINE>final DownloadManager[] dm_fi...
), MenuFactory.MENU_ID_TORRENT, false);
605,895
private TableMapping parserProperty(TableMappingDef def, TypeHandlerRegistry typeRegistry, MetaDataService metaDataService) throws SQLException {<NEW_LINE>// collect @Property and ColumnDef<NEW_LINE>Map<String, WrapProperty> propertyInfoMap = matchProperty(def, def.isAutoProperty(), typeRegistry);<NEW_LINE>Map<String, ...
setPrimary(columnDef.isPrimaryKey());
130,459
public void removePreviousQueueItems() {<NEW_LINE>DataRefreshService dataRefreshService = KoinJavaComponent.<DataRefreshService>get(DataRefreshService.class);<NEW_LINE>dataRefreshService.setLastVideoQueueChange(System.currentTimeMillis());<NEW_LINE>if (isLiveTv || !mediaManager.getValue().isVideoQueueModified()) {<NEW_...
getCurrentVideoQueue().remove(0);
423,587
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>> result =...
page, size, ReadCompleted.startTime_FIELDNAME);
1,246,360
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent volrathTheShapestealer = game.getPermanent(source.getSourceId());<NEW_LINE>Permanent newBluePrint = null;<NEW_LINE>if (controller == null || volrathTheShapestealer == null) {<NEW_L...
copyEffect.init(newAbility, game);
1,187,253
protected void paintComponent(Graphics g) {<NEW_LINE>if (!drawContainer) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int x = X_OFFSET;<NEW_LINE>int y = Y_OFFSET;<NEW_LINE>int w = getWidth() - 2 * X_OFFSET;<NEW_LINE>int h = getHeight() - 2 * Y_OFFSET;<NEW_LINE>int arc = 30;<NEW_LINE>Graphics2D g2 = (Graphics2D) g.create();<N...
RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
497,158
public void find_StatementSequences(SETNode SETParent, IterableSet body, HashSet<AugmentedStmt> childUnion, DavaBody davaBody) {<NEW_LINE>Iterator bit = body.iterator();<NEW_LINE>while (bit.hasNext()) {<NEW_LINE>AugmentedStmt as = (AugmentedStmt) bit.next();<NEW_LINE>if (childUnion.contains(as)) {<NEW_LINE>continue;<NE...
().get(body));
512,402
public void startWrite(RecordReceiver recordReceiver) {<NEW_LINE>String lineDelimiter = this.keys.getLineDelimiter();<NEW_LINE>DorisFlushBatch flushBatch = new DorisFlushBatch(lineDelimiter, this.keys.getFormat());<NEW_LINE>long batchCount = 0;<NEW_LINE>long batchByteSize = 0L;<NEW_LINE>Record record;<NEW_LINE>// loop ...
().size()));
1,637,375
protected void readField(long recordsToRead) {<NEW_LINE>// TODO - unlike most implementations of this method, the recordsReadInThisIteration field is not set here<NEW_LINE>// should verify that this is not breaking anything<NEW_LINE>currentValNull = variableWidthVector.<MASK><NEW_LINE>// again, I am re-purposing the un...
getAccessor().isNull(valuesReadInCurrentPass);
410,498
public Dialog onCreateDialog(Bundle savedInstanceBundle) {<NEW_LINE>LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>nameView = inflater.inflate(R.layout.name_variable_view, null);<NEW_LINE>mNameEditText = (EditText) nameView.findViewById(R.id.name);<NEW_LINE>mNameEditText.setText(mVariable);<NEW_L...
findViewById(R.id.description);
158,268
public static ArJavaI420Buffer createYUV(byte[] var0, int var1, int var2) {<NEW_LINE>if (var0 != null && var0.length != 0) {<NEW_LINE>ArJavaI420Buffer var3 = allocate(var1, var2);<NEW_LINE>ByteBuffer var4 = var3.getDataY();<NEW_LINE>ByteBuffer var5 = var3.getDataU();<NEW_LINE>ByteBuffer var6 = var3.getDataV();<NEW_LINE...
put(var0, 0, var8);
1,692,403
protected void prepareTable(Info_Column[] layout, String from, String staticWhere, String orderBy) {<NEW_LINE>if (p_table == null)<NEW_LINE>return;<NEW_LINE>p_layout = layout;<NEW_LINE>// For dynamic columns, we need to wipe the table.<NEW_LINE>if (p_resetColumns) {<NEW_LINE>// First, stop auto-updates<NEW_LINE>boolean...
[i].getColHeader());
29,557
public void marshall(SNOMEDCTEntity sNOMEDCTEntity, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sNOMEDCTEntity == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sNOMEDCTEntity.getId(), ID_BINDING);<NEW_L...
sNOMEDCTEntity.getEndOffset(), ENDOFFSET_BINDING);
226,427
RetryRuleWithContent<T> build(RetryDecision decision) {<NEW_LINE>final BiFunction<? super ClientRequestContext, ? super T, ? extends CompletionStage<Boolean>> responseFilter = responseFilter();<NEW_LINE>final boolean hasResponseFilter = responseFilter != null;<NEW_LINE>if (decision != RetryDecision.noRetry() && excepti...
), exceptionFilter(), hasResponseFilter);
273,863
public static int[][] iwalsh4x4(int[] input) {<NEW_LINE>int a1, b1, c1, d1;<NEW_LINE>int a2, b2, c2, d2;<NEW_LINE>int[] output = new int[16];<NEW_LINE>int[][] diff = new int[4][4];<NEW_LINE>for (int i = 0, offset = 0; i < 4; i++) {<NEW_LINE>a1 = input[offset] + input[offset + 12];<NEW_LINE>b1 = input[offset + 4] + inpu...
output[offset] = a1 + b1;
209,659
public Description matchMethod(MethodTree tree, VisitorState state) {<NEW_LINE>ImmutableSet<MethodPairing> pairings = PAIRINGS;<NEW_LINE>Set<MethodPairing> required = new HashSet<>();<NEW_LINE>Set<MethodPairing> called = new HashSet<>();<NEW_LINE>new TreePathScanner<Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE...
state.withPath(getCurrentPath());
1,246,431
public void deleteRestrictions(int uid, String restrictionName) throws RemoteException {<NEW_LINE>try {<NEW_LINE>enforcePermission(uid);<NEW_LINE>SQLiteDatabase db = getDb();<NEW_LINE>if (db == null)<NEW_LINE>return;<NEW_LINE>mLock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>db.beginTransaction();<NEW_LINE>try {<NEW_LI...
toString(uid), restrictionName });
1,560,864
public int compare(PolicyStats p1, PolicyStats p2) {<NEW_LINE>Metric metric1 = p1.metrics().get(header);<NEW_LINE>Metric metric2 = p2.metrics().get(header);<NEW_LINE>if (metric1 == null) {<NEW_LINE>return (metric2 == null) ? 0 : -1;<NEW_LINE>} else if (metric2 == null) {<NEW_LINE>return 1;<NEW_LINE>} else if (metric1.v...
(metric2.value()));
757,663
public void run() {<NEW_LINE>final long start = System.currentTimeMillis();<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("Shutting down persistent stores");<NEW_LINE>}<NEW_LINE>payloadPersistenceExecutor.shutdown();<NEW_LINE>final ImmutableList.Builder<ListenableFuture<Void>> builder = ImmutableList.builder(...
add(clientSessionPersistence.closeDB());
1,301,190
private PsiFile configureInner(@Nonnull final VirtualFile copy, final SelectionAndCaretMarkupLoader loader) {<NEW_LINE>assertInitialized();<NEW_LINE>new WriteCommandAction.Simple(getProject()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>copy.setBinaryContent(loader.newFileText.ge...
.execute().throwException();
555,728
private void editCalibrationPipeline() throws Exception {<NEW_LINE>Camera camera = VisionUtils.getBottomVisionCamera();<NEW_LINE>ReferenceNozzleTipCalibration calibration = nozzleTip.getCalibration();<NEW_LINE>// Use the current Nozzle location as the nominal detection location, this allows testing off-center detection...
CvPipelineEditor editor = new CvPipelineEditor(pipeline);
746,935
public void scanImage() {<NEW_LINE>for (int x = 1, w = sheet.getWidth() - 1; x < w; x++) {<NEW_LINE>for (int y = 1, h = sheet.getHeight() - 1; y < h; y++) {<NEW_LINE>int pix = <MASK><NEW_LINE>if (pix == ARC) {<NEW_LINE>// Basic arc pixel, not yet processed, so scan full arc<NEW_LINE>scanArc(x, y, null, 0);<NEW_LINE>// ...
skeleton.getPixel(x, y);
150,088
public ChannelMembership 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>ChannelMembership channelMembership = new ChannelMembership();<NEW_LIN...
().unmarshall(context));
475,618
public synchronized void removeIndexPath(IPath path) {<NEW_LINE>if (VERBOSE || DEBUG)<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>this.indexer.makeWorkspacePathDirty(path);<NEW_LINE>Object[] keyTable = this.indexes.keyTable;<NEW_LINE>Object[] valueTable = this.indexes.valueTable;<NEW_LINE>IndexLocation[] locations...
Util.verbose("removing index path " + path);
837,255
private Optional<OExecutionPlan> readExecutionPlan(OChannelDataInput network) throws IOException {<NEW_LINE><MASK><NEW_LINE>if (!present) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>OInfoExecutionPlan result = new OInfoExecutionPlan();<NEW_LINE>OResult read = OMessageHelper.readResult(network);<NEW_LINE>res...
boolean present = network.readBoolean();
701,812
public void execute() {<NEW_LINE>ensureArgCount(2);<NEW_LINE><MASK><NEW_LINE>final String segmentStoreHost = getArg(1);<NEW_LINE>@Cleanup<NEW_LINE>CuratorFramework zkClient = createZKClient();<NEW_LINE>@Cleanup<NEW_LINE>AdminSegmentHelper adminSegmentHelper = instantiateAdminSegmentHelper(zkClient);<NEW_LINE>Completabl...
final String fullyQualifiedSegmentName = getArg(0);
156,866
// http://localhost:8090/mediawiki_p.html?dump=wikipedia.de.xml&title=Kartoffel<NEW_LINE>public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) throws IOException {<NEW_LINE>final Switchboard sb = (Switchboard) env;<NEW_LINE>final se...
, MediawikiImporter.idxFromMediawikiXML(dumpFile));
87,637
private String convertModuleOrAppJNDIName(Application application, String jndiName, JndiNameEnvironment env) {<NEW_LINE>BundleDescriptor bd = null;<NEW_LINE>if (env instanceof EjbDescriptor) {<NEW_LINE>bd = ((EjbDescriptor) env).getEjbBundleDescriptor();<NEW_LINE>} else if (env instanceof BundleDescriptor) {<NEW_LINE>b...
= ResourceConstants.JAVA_MODULE_SCOPE_PREFIX.length();
1,256,285
protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>gistId = getArguments().getString("gistId");<NEW_LINE>recycler.setEmptyView(stateLayout, refresh);<NEW_LINE>if (gistId == null)<NEW_LINE>return;<NEW_LINE>stateLayout.setEmptyText(R.string.no_comments);<NEW_LINE>recycler...
recycler.addOnScrollListener(getLoadMore());
1,268,045
public com.amazonaws.services.route53domains.model.InvalidInputException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.route53domains.model.InvalidInputException invalidInputException = new com.amazonaws.services.route53domains.model.InvalidInputException(null...
String currentParentElement = context.getCurrentParentElement();
739,501
public void onSuccess(@Nullable final Set<String> retainedMessageTopics) {<NEW_LINE>if (retainedMessageTopics == null || retainedMessageTopics.size() == 0) {<NEW_LINE>// Do nothing, we don't have retained messages<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Attention, this set is immutable, so we need a fresh mutable colle...
concurrentMessages, retainedMessageTopics.size());
826,030
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create schema WinOMISSchema as (v1 string, v2 int);\n";<NEW_LINE>epl += namedWindow ? "@name('Create') create window WinOMIS#keepall as WinOMISSchema;\n" : "@name('Create') create table WinOMIS as (v1 string primary key, v2 int);\n";<NEW_LINE>epl += "o...
[] { "ID1", "K2" });
33,612
private void initAnimators() {<NEW_LINE>int revealDuration = getContext().getResources().getInteger(R.integer.reaction_scrubber_reveal_duration);<NEW_LINE>int revealOffset = getContext().getResources().<MASK><NEW_LINE>List<Animator> reveals = Stream.of(emojiViews).mapIndexed((idx, v) -> {<NEW_LINE>Animator anim = Anima...
getInteger(R.integer.reaction_scrubber_reveal_offset);
804,028
static synchronized void markCurrent(final Object line) {<NEW_LINE>unmarkCurrent();<NEW_LINE>Annotatable[] annotatables = (Annotatable[]) line;<NEW_LINE>int i <MASK><NEW_LINE>// first line with icon in gutter<NEW_LINE>DebuggerAnnotation[] annotations = new DebuggerAnnotation[k];<NEW_LINE>if (annotatables[i] instanceof ...
= 0, k = annotatables.length;
916,036
public PlanNode visitExchange(ExchangeNode node, RewriteContext<Void> context) {<NEW_LINE>List<PlanNode> sources = node.getSources().stream().map(context::rewrite).collect(toImmutableList());<NEW_LINE>mapExchangeNodeSymbols(node);<NEW_LINE>List<List<VariableReferenceExpression>> inputs = new ArrayList<>();<NEW_LINE>for...
input.get(variableIndex)));
1,283,192
public long calculateDistance(final NakadiCursor initialCursor, final NakadiCursor finalCursor) throws InvalidCursorOperation {<NEW_LINE>// Validate query<NEW_LINE>if (!initialCursor.getPartition().equals(finalCursor.getPartition())) {<NEW_LINE>throw new InvalidCursorOperation(CURSORS_WITH_DIFFERENT_PARTITION);<NEW_LIN...
.getTimeline().getOrder();
1,777,021
public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<BusinessReport>> mergedReports = new HashMap<String, List<BusinessReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<String, Bu...
= new ReportReloadEntity(report, content);
393,450
protected Key engineTranslateKey(Key key) throws InvalidKeyException {<NEW_LINE>if (key == null) {<NEW_LINE>throw new InvalidKeyException("key == null");<NEW_LINE>}<NEW_LINE>if ((key instanceof OpenSSLX25519PublicKey) || (key instanceof OpenSSLX25519PrivateKey)) {<NEW_LINE>return key;<NEW_LINE>} else if ((key instanceo...
] encoded = key.getEncoded();
237,742
public static CompletionStage<?> send(ResteasyReactiveRequestContext context, List<PublisherResponseHandler.StreamingResponseCustomizer> customizers, Object entity, String prefix) {<NEW_LINE>ServerHttpResponse response = context.serverResponse();<NEW_LINE>if (response.closed()) {<NEW_LINE>// FIXME: check spec<NEW_LINE>...
prefixedData, 0, prefixBytes.length);
202,640
private byte[] PBKDF2(PRF prf, byte[] S, int c, int dkLen) {<NEW_LINE>if (S == null) {<NEW_LINE>S = new byte[0];<NEW_LINE>}<NEW_LINE>int hLen = prf.getHLen();<NEW_LINE>int l = ceil(dkLen, hLen);<NEW_LINE>int r = dkLen - (l - 1) * hLen;<NEW_LINE>byte[] T = new byte[l * hLen];<NEW_LINE>int ti_offset = 0;<NEW_LINE>for (in...
prf, S, c, i);
218,272
public void flush() throws IOException {<NEW_LINE>try (BufferedWriter writer = Files.newBufferedWriter(rTxtOut, UTF_8)) {<NEW_LINE>for (Map.Entry<ResourceType, Set<String>> innerClass : innerClasses.entrySet()) {<NEW_LINE><MASK><NEW_LINE>for (String fieldName : innerClass.getValue()) {<NEW_LINE>writer.write(String.form...
ResourceType resourceType = innerClass.getKey();
970,159
final StartMaintenanceResult executeStartMaintenance(StartMaintenanceRequest startMaintenanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startMaintenanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
879,335
public static void formatImportStatements(final SourceFile sourceFile, final AbstractSchemaNode schemaNode, final Class baseType) {<NEW_LINE>sourceFile.importLine(baseType.getName());<NEW_LINE>sourceFile.importLine(<MASK><NEW_LINE>sourceFile.importLine(ConfigurationProvider.class.getName());<NEW_LINE>sourceFile.importL...
DateArrayPropertyParser.class.getName());
1,695,052
protected boolean applies(final IdentityProviderMapperModel mapperModel, final BrokeredIdentityContext context) {<NEW_LINE>Map<String, String> attributes = mapperModel.getConfigMap(ATTRIBUTE_PROPERTY_NAME);<NEW_LINE>boolean areAttributeValuesRegexes = Boolean.parseBoolean(mapperModel.getConfig().get(ARE_ATTRIBUTE_VALUE...
> attributeAssertions = assertion.getAttributeStatements();
1,741,697
private void parseGdisOptionsFile(String fileName) throws IOException {<NEW_LINE>LanguageDescription desc = lang.getLanguageDescription();<NEW_LINE>if (!(desc instanceof SleighLanguageDescription)) {<NEW_LINE>throw new IOException("Not a Sleigh Language: " + lang.getLanguageID());<NEW_LINE>}<NEW_LINE>SleighLanguageDesc...
valueToOptionString = new HashMap<>();
297,897
public static void horizontal(Kernel1D_S32 kernel, ImageBorder_S32 input, GrayS32 output) {<NEW_LINE>final int[] dataDst = output.data;<NEW_LINE>final int[] dataKer = kernel.data;<NEW_LINE>final <MASK><NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int width = output.getWidth();<NEW_LINE>final int h...
int offset = kernel.getOffset();
1,613,624
private void collectConfigStatistics(@NotNull final Statistic statistic) {<NEW_LINE>final ListenerConfigurationService listenerConfiguration = fullConfigurationService.listenerConfiguration();<NEW_LINE>statistic.setTcpListeners(listenerConfiguration.getTcpListeners().size());<NEW_LINE>statistic.setTlsListeners(listener...
getTlsWebsocketListeners().size());
1,553,152
// start a pick and plop from the palette operation<NEW_LINE>void start(PaletteItem item, Point pt) {<NEW_LINE>// clean up prev is necessary<NEW_LINE>if (dragComponent != null) {<NEW_LINE><MASK><NEW_LINE>dragComponent = null;<NEW_LINE>}<NEW_LINE>if (!menuEditLayer.doesFormContainMenuBar()) {<NEW_LINE>// op = Op.NO_MENU...
menuEditLayer.layers.remove(dragComponent);
253,429
private static void decodeBase256Segment(BitSource bits, StringBuffer result, Vector byteSegments) throws FormatException {<NEW_LINE>// Figure out how long the Base 256 Segment is.<NEW_LINE>int d1 = bits.readBits(8);<NEW_LINE>int count;<NEW_LINE>if (d1 == 0) {<NEW_LINE>// Read the remainder of the symbol<NEW_LINE>count...
] bytes = new byte[count];
541,778
protected ValuesSourceAggregatorFactory innerBuild(AggregationContext context, ValuesSourceConfig config, AggregatorFactory parent, Builder subFactoriesBuilder) throws IOException {<NEW_LINE>int shardSize = this.shardSize;<NEW_LINE>int requiredSize = this.requiredSize;<NEW_LINE>if (shardSize < 0) {<NEW_LINE>// Use defa...
context, parent, subFactoriesBuilder, metadata);
610,680
public void run(final FlowTrigger trigger, Map data) {<NEW_LINE>PrimaryStorageInventory ps = findSMPByHostUuid(context.getInventory().getClusterUuid());<NEW_LINE>if (ps == null) {<NEW_LINE>trigger.next();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InitKvmHostMsg msg = new InitKvmHostMsg();<NEW_LINE>msg.setHypervisorType(cont...
SERVICE_ID, ps.getUuid());
682,715
/*<NEW_LINE>* Helper method to delete rules<NEW_LINE>* */<NEW_LINE>private static void deleteRules(String bearerToken, List<String> existingRules) throws URISyntaxException, IOException {<NEW_LINE>HttpClient httpClient = HttpClients.custom().setDefaultRequestConfig(RequestConfig.custom().setCookieSpec(CookieSpecs.STAND...
.toString(entity, "UTF-8"));
1,047,899
protected synchronized boolean deleteTicketImpl(RepositoryModel repository, TicketModel ticket, String deletedBy) {<NEW_LINE>if (ticket == null) {<NEW_LINE>throw new RuntimeException("must specify a ticket!");<NEW_LINE>}<NEW_LINE>boolean success = false;<NEW_LINE>Repository db = repositoryManager.getRepository(ticket.r...
DirCacheEntry entry = new DirCacheEntry(path);
1,515,336
private void init(Hashtable toCopy) {<NEW_LINE>super.copy(toCopy);<NEW_LINE>Hashtable f = (Hashtable) toCopy.get("from");<NEW_LINE>if (f != null) {<NEW_LINE>from.copy(f);<NEW_LINE>}<NEW_LINE>iconUrl = (String) toCopy.get("icon");<NEW_LINE>pictureUrl = (String) toCopy.get("picture");<NEW_LINE>sourceUrl = (String) toCopy...
String) toCopy.get("position");
47,150
public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>String channel = wrapper.get(Type.STRING, 0);<NEW_LINE>if (channel.equals("minecraft:trader_list") || channel.equals("trader_list")) {<NEW_LINE>// Passthrough Window ID<NEW_LINE><MASK><NEW_LINE>int size = wrapper.passthrough(Type.UNSIGNED_BYTE);<NEW_...
wrapper.passthrough(Type.INT);
425,058
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>Module module = mActivity.getModule();<NEW_LINE>if (module == null)<NEW_LINE>return;<NEW_LINE>if (module.versions.isEmpty()) {<NEW_LINE>setEmptyText(getString(R.string.download_no_versions));<NEW_LI...
setText(R.string.download_test_version_not_shown);
448,864
public StreamBucket collect(IntArrayList docIds) {<NEW_LINE>boolean collectSequential = isSequential(docIds);<NEW_LINE>StreamBucket.Builder builder = new <MASK><NEW_LINE>try (var borrowed = fetchTask.searcher(readerId)) {<NEW_LINE>var searcher = borrowed.item();<NEW_LINE>List<LeafReaderContext> leaves = searcher.getTop...
StreamBucket.Builder(streamers, ramAccounting);
1,356,392
public static List<ZipExtraField> parse(byte[] data) throws ZipException {<NEW_LINE>List<ZipExtraField> v <MASK><NEW_LINE>if (data == null) {<NEW_LINE>return v;<NEW_LINE>}<NEW_LINE>int start = 0;<NEW_LINE>while (start <= data.length - WORD) {<NEW_LINE>ZipShort headerId = new ZipShort(data, start);<NEW_LINE>int length =...
= new ArrayList<ZipExtraField>();
1,167,647
public void processBorder(int c_x, int c_y, TupleDesc_B feature) {<NEW_LINE>Arrays.fill(feature.data, 0);<NEW_LINE>int index = image.startIndex + image.stride * c_y + c_x;<NEW_LINE>for (int i = 0; i < definition.compare.length; i += 32) {<NEW_LINE>int end = Math.min(definition.<MASK><NEW_LINE>int desc = 0;<NEW_LINE>for...
compare.length, i + 32);
1,033,237
public static StyleValue parse(String value) {<NEW_LINE>if (value.equals("0")) {<NEW_LINE>return new StyleValue(0f, Unit.EM);<NEW_LINE>}<NEW_LINE>if (value.endsWith("px")) {<NEW_LINE>try {<NEW_LINE>final Integer intValue = Integer.parseInt(value.substring(0, value.length() - 2));<NEW_LINE>return new StyleValue(intValue...
StyleValue(floatValue, Unit.PERCENTAGE);
819,991
// return true means new request need to be rejected<NEW_LINE>public boolean isLimitNewRequest() {<NEW_LINE>if (this.getQpsLimit() == null) {<NEW_LINE>throw new IllegalStateException("should not happen");<NEW_LINE>}<NEW_LINE>long newCount = requestCount.incrementAndGet();<NEW_LINE><MASK><NEW_LINE>// Time jump cause the...
long msNow = System.currentTimeMillis();
314,940
public UpdateBackendAuthPasswordPolicyConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateBackendAuthPasswordPolicyConfig updateBackendAuthPasswordPolicyConfig = new UpdateBackendAuthPasswordPolicyConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
742,736
public Neighbor<K, V>[] search(K q, int k) {<NEW_LINE>if (k <= 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid k: " + k);<NEW_LINE>}<NEW_LINE>if (k > data.size()) {<NEW_LINE>throw new IllegalArgumentException("Neighbor array length is larger than the data size");<NEW_LINE>}<NEW_LINE>double[] dist = keys.strea...
(new NeighborBuilder<>());
666,969
public void compile(Set<File> filesToCompile, Context context) {<NEW_LINE>JavaCompiler compiler = this.compiler;<NEW_LINE>if (compiler == null) {<NEW_LINE>compiler = this.compiler = ToolProvider.getSystemJavaCompiler();<NEW_LINE>}<NEW_LINE>if (compiler == null) {<NEW_LINE>throw new RuntimeException("No system java comp...
sources = fileManager.getJavaFileObjectsFromFiles(filesToCompile);
389,858
public TaskDefPb.TaskDef toProto(TaskDef from) {<NEW_LINE>TaskDefPb.TaskDef.Builder to = TaskDefPb.TaskDef.newBuilder();<NEW_LINE>if (from.getName() != null) {<NEW_LINE>to.setName(from.getName());<NEW_LINE>}<NEW_LINE>if (from.getDescription() != null) {<NEW_LINE>to.setDescription(from.getDescription());<NEW_LINE>}<NEW_...
setTimeoutSeconds(from.getTimeoutSeconds());
281,939
protected void discover(final Class clazz, final Object arg) {<NEW_LINE>Object[] params;<NEW_LINE>// If you passed in null as property, we don't use the value<NEW_LINE>// for parameter lookup. Instead we just look for put(Object) without<NEW_LINE>// any parameters.<NEW_LINE>//<NEW_LINE>// In any other case, the followi...
= new Object[] { arg };
1,314,463
public Stream<PathResult> list(@Name(value = "nodeIds", defaultValue = "") List<Long> nodeIds, @Name(value = "weights", defaultValue = "") List<Double> weights, @Name(value = "config", defaultValue = "{}") Map<String, Object> rawConfig) {<NEW_LINE>if (nodeIds.size() <= 0) {<NEW_LINE>return Stream.empty();<NEW_LINE>}<NE...
).toArray())));
1,141,699
public HTMLDocument createHTMLDocument(final Object titleObj) {<NEW_LINE>if (Undefined.isUndefined(titleObj) && getBrowserVersion().hasFeature(JS_DOMIMPLEMENTATION_CREATE_HTMLDOCOMENT_REQUIRES_TITLE)) {<NEW_LINE>throw Context.reportRuntimeError("Title is required");<NEW_LINE>}<NEW_LINE>// a similar impl is in<NEW_LINE>...
final HTMLDocument document = new HTMLDocument();
923,631
private CCache<String, String> initMsg(String AD_Language) {<NEW_LINE>// Trace.printStack();<NEW_LINE>CCache<String, String> msg = new CCache<String, String>("AD_Message", MAP_SIZE, 0);<NEW_LINE>//<NEW_LINE>if (!DB.isConnected()) {<NEW_LINE>s_log.log(Level.SEVERE, "No DB Connection");<NEW_LINE>return null;<NEW_LINE>}<N...
DB.prepareStatement("SELECT Value, MsgText, MsgTip FROM AD_Message", null);
1,294,387
private int pushGetValueForPathCall(GeneratorAdapter injectMethodVisitor, ClassElement propertyType, String propertyName, String propertyPath, boolean zeroArgs, Map<String, ClassElement> generics) {<NEW_LINE>injectMethodVisitor.loadThis();<NEW_LINE>// the resolution context<NEW_LINE>injectMethodVisitor.loadArg(0);<NEW_...
.Method.getMethod(GET_VALUE_FOR_PATH));
1,172,266
public <I> void hear(TypeLiteral<I> type, TypeEncounter<I> encounter) {<NEW_LINE>for (final Method method : type.getRawType().getMethods()) {<NEW_LINE>final Gauge annotation = method.getAnnotation(Gauge.class);<NEW_LINE>if (annotation != null) {<NEW_LINE>boolean validMethod = true;<NEW_LINE>if (method.getParameterTypes...
encounter.addError("Method %s is annotated with @Gauge but has a void return type.", method);
427,723
// we need to produce a correct DER encoding GeneralizedTime here as the BC ASN.1 library doesn't handle this properly yet.<NEW_LINE>private ASN1GeneralizedTime createGeneralizedTime(Date time) throws TSPException {<NEW_LINE>String format = "yyyyMMddHHmmss.SSS";<NEW_LINE>SimpleDateFormat dateF = (locale == null) ? new ...
sBuild.length() - 1);
1,123,840
protected void onMessage(PeerConnection peer, TronMessage msg) {<NEW_LINE>try {<NEW_LINE>switch(msg.getType()) {<NEW_LINE>case SYNC_BLOCK_CHAIN:<NEW_LINE>syncBlockChainMsgHandler.processMessage(peer, msg);<NEW_LINE>break;<NEW_LINE>case BLOCK_CHAIN_INVENTORY:<NEW_LINE>chainInventoryMsgHandler.processMessage(peer, msg);<...
transactionsMsgHandler.processMessage(peer, msg);
380,823
public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeLong(this.id);<NEW_LINE>dest.writeString(this.url);<NEW_LINE>dest.writeString(this.body);<NEW_LINE>dest.writeString(this.title);<NEW_LINE>dest.writeInt(this.comments);<NEW_LINE>dest.writeInt(this.number);<NEW_LINE>dest.writeByte(this.locked ? (byte)...
dest.writeString(this.mergeState);
391,913
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
1,313,809
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_xaccount_login, container, false);<NEW_LINE>storePasswordView = (CheckBox) view.findViewById(R.id.store_password);<NEW_LINE>chkSync = (CheckBox) view.find...
findViewById(R.id.ivEmail);
1,614,699
private void showAddExtensionPopupMenu(View anchorView) {<NEW_LINE>if (addExtensionPopupMenu != null) {<NEW_LINE>addExtensionPopupMenu.dismiss();<NEW_LINE>}<NEW_LINE>addExtensionPopupMenu = new PopupMenu(getActivity(), anchorView);<NEW_LINE>Menu menu = addExtensionPopupMenu.getMenu();<NEW_LINE>// sort disabled extensio...
Collections.sort(disabledExtensions, alphabeticalComparator);
1,279,974
public static void onReceive(final Context context, Intent intent) {<NEW_LINE>Logger.logDebug(LOG_TAG, "onReceive");<NEW_LINE>final int durationExtra = intent.getBooleanExtra("short", false) ? Toast.LENGTH_SHORT : Toast.LENGTH_LONG;<NEW_LINE>final int backgroundColor = getColorExtra(intent, "background", Color.GRAY);<N...
final int gravity = getGravityExtra(intent);
879,711
protected String renderRemoteUploads() {<NEW_LINE>NetworkStatsTracker.RemoteArtifactUploadStats uploadStats = networkStatsTracker.getRemoteArtifactUploadStats();<NEW_LINE>long bytesUploaded = uploadStats.getTotalBytes();<NEW_LINE>String humanReadableBytesUploaded = convertToAllCapsIfNeeded(SizeUnit.toHumanReadableStrin...
int scheduled = uploadStats.getScheduled();
1,556,755
private Resource.Builder doCreateResourceBuilder() {<NEW_LINE>if (!disableValidation) {<NEW_LINE>checkForNonPublicMethodIssues();<NEW_LINE>}<NEW_LINE>final Class<?> annotatedResourceClass = ModelHelper.getAnnotatedResourceClass(handlerClass);<NEW_LINE>final Path rPathAnnotation = annotatedResourceClass.getAnnotation(Pa...
MethodList methodList = new MethodList(handlerClass);
963,966
public static QueryOutboundTaskResponse unmarshall(QueryOutboundTaskResponse queryOutboundTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOutboundTaskResponse.setRequestId(_ctx.stringValue("QueryOutboundTaskResponse.RequestId"));<NEW_LINE>queryOutboundTaskResponse.setMessage(_ctx.stringValue("QueryOutboundTaskR...
("QueryOutboundTaskResponse.Data.List[" + i + "].EndDate"));
1,312,024
protected Class<?> resolveClass(ObjectStreamClass v) throws IOException, ClassNotFoundException {<NEW_LINE>String clsName = v.getName();<NEW_LINE>if (clsName.startsWith("org.python.proxies")) {<NEW_LINE>int idx = clsName.lastIndexOf('$');<NEW_LINE>if (idx > 19) {<NEW_LINE>clsName = <MASK><NEW_LINE>}<NEW_LINE>idx = clsN...
clsName.substring(19, idx);