idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
689,472
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
747,809
public long readFixedInt64() throws IOException {<NEW_LINE>if (getCurrentRemaining() < ProtoWriter.FIXED64_SIZE) {<NEW_LINE>return (((readRawByte() & 0xffL)) | ((readRawByte() & 0xffL) << 8) | ((readRawByte() & 0xffL) << 16) | ((readRawByte() & 0xffL) << 24) | ((readRawByte() & 0xffL) << 32) | ((readRawByte() & 0xffL) ...
) & 0xffL) << 56));
1,776,688
private static byte[] serialiseEntity(ResteasyReactiveRequestContext context, Object entity) throws IOException {<NEW_LINE>ServerSerialisers serialisers = context.getDeployment().getSerialisers();<NEW_LINE>Class<?> entityClass = entity.getClass();<NEW_LINE>Type entityType = context.getGenericReturnType();<NEW_LINE><MAS...
MediaType mediaType = context.getResponseMediaType();
1,447,220
private Status openWriter(TFileBrokerService.Client client, TNetworkAddress address, String remoteFile, TBrokerFD fd) {<NEW_LINE>try {<NEW_LINE>TBrokerOpenWriterRequest req = new TBrokerOpenWriterRequest(TBrokerVersion.VERSION_ONE, remoteFile, TBrokerOpenMode.APPEND, clientId(), properties);<NEW_LINE>TBrokerOpenWriterR...
info("finished to open writer. fd: {}. directly upload to remote path {}.", fd, remoteFile);
95,842
final DescribeConnectorProfilesResult executeDescribeConnectorProfiles(DescribeConnectorProfilesRequest describeConnectorProfilesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConnectorProfilesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
891,831
private static void processOutputLimitedViewDefaultCodegen(ResultSetProcessorRowForAllForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenMethod getSelectListEventAddList = getSelectListEventsAddListCodegen(forge, classScope, instance);<NEW_LINE>CodegenMethod ...
, REF_ISSYNTHESIZE, ref("newEvents"));
1,369,399
public static void showYesNoPrompt(Context _context, String title, String message, OnClickListener onYesListener, OnClickListener onNoListener) {<NEW_LINE>try {<NEW_LINE>if (alertDialog != null && alertDialog.isShowing() && !isContextActivityThatIsFinishing(_context)) {<NEW_LINE>alertDialog.dismiss();<NEW_LINE>}<NEW_LI...
.string.no), onNoListener);
262,477
private void store(ConfigurationChanges diffs, String deviceDN, ImageWriterFactory factory) throws NamingException {<NEW_LINE>String imageWritersDN = CN_IMAGE_WRITER_FACTORY + deviceDN;<NEW_LINE>ConfigurationChanges.ModifiedObject ldapObj = ConfigurationChanges.addModifiedObject(diffs, imageWritersDN, ConfigurationChan...
String tsuid = entry.getKey();
1,212,775
public String updateWhitelistedSite(@PathVariable("id") Long id, @RequestBody String jsonString, ModelMap m, Principal p) {<NEW_LINE>JsonObject json;<NEW_LINE>WhitelistedSite whitelist = null;<NEW_LINE>try {<NEW_LINE>json = parser.parse(jsonString).getAsJsonObject();<NEW_LINE>whitelist = gson.fromJson(json, Whitelisted...
put(JsonEntityView.ENTITY, newWhitelist);
1,816,418
void visitCase(String methodName) {<NEW_LINE>MethodNode methodNode = methods.get(methodName);<NEW_LINE>String name = methodNode.name;<NEW_LINE>boolean isStatic = (methodNode.<MASK><NEW_LINE>String newDesc = computeOverrideMethodDesc(methodNode.desc, isStatic);<NEW_LINE>if (TRACING_ENABLED) {<NEW_LINE>trace(mv, "M: " + ...
access & Opcodes.ACC_STATIC) != 0;
9,911
private void receiveSessionAccept(final RtpContentMap contentMap) {<NEW_LINE>this.responderRtpContentMap = contentMap;<NEW_LINE>this.storePeerDtlsSetup(contentMap.getDtlsSetup());<NEW_LINE>final SessionDescription sessionDescription;<NEW_LINE>try {<NEW_LINE>sessionDescription = SessionDescription.of(contentMap);<NEW_LI...
, Throwables.getRootCause(e));
1,672,501
private void initNativeSupport() {<NEW_LINE>if (!Settings.isMac()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log(lvl, "initNativeSupport: starting");<NEW_LINE>if (System.getProperty("sikulix.asapp") != null) {<NEW_LINE>Settings.isMacApp = true;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (runTime.isJava9()) {<NEW_LINE>log(lvl, ...
mGetApplication.invoke(null, null);
925,726
private void remeasure() {<NEW_LINE>if (items == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>maxTextHeight = textSize;<NEW_LINE>halfCircumference = (int) (maxTextHeight * <MASK><NEW_LINE>measuredHeight = (int) ((halfCircumference * 2) / Math.PI);<NEW_LINE>radius = (int) (halfCircumference / Math.PI);<NEW_LINE>firstLin...
lineSpacingMultiplier * (itemsVisible - 1));
534,941
// Publish a post to a WordPress site via the WordPress.com REST API<NEW_LINE>public static void publishPost(Context context, String url, String title, String content, String status, Callback callback) {<NEW_LINE>if (!hasWPToken(context)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String wpToken = PrefUtils.<MASK><NEW_LINE...
getStringPref(context, PrefUtils.PREF_WP_TOKEN);
450,339
private StateChange startupWait() {<NEW_LINE>StartStateListener listener = prepareStartMonitoring(true);<NEW_LINE>if (listener == null) {<NEW_LINE>return new StateChange(this, TaskState.FAILED, TaskEvent.ILLEGAL_STATE, "RestartTask.startupWait.listenerError", instanceName);<NEW_LINE>}<NEW_LINE>long start = System.curre...
TaskEvent.CMD_COMPLETED, "RestartTask.startupWait.completed", instanceName);
856,820
private void init() {<NEW_LINE>this.typePublic = new ConcurrentHashMap<String, String>();<NEW_LINE>this.typeUri = new ConcurrentHashMap<String, String>();<NEW_LINE>Map<String, NamespaceDefinition> namespaceDefinitionRegistry = new HashMap<String, NamespaceDefinition>();<NEW_LINE>ResourceLoader classLoader = loaderCache...
path = schemaMappings.get(key);
426,556
private void parsePrimitiveTypeClause(IoTDBSqlParser.OldTypeClauseContext ctx, Map<TSDataType, IFill> fillTypes) {<NEW_LINE>TSDataType dataType = parseType(ctx.dataType.getText());<NEW_LINE>if (dataType == TSDataType.VECTOR) {<NEW_LINE>throw new SQLParserException(String.format("type %s cannot use fill function", dataT...
().getText()));
15,549
private static boolean isPregMatchInverted(@NotNull FunctionReference reference) {<NEW_LINE>boolean result = false;<NEW_LINE>final PsiElement parent = reference.getParent();<NEW_LINE>if (ExpressionSemanticUtil.isUsedAsLogicalOperand(reference)) {<NEW_LINE>if (parent instanceof UnaryExpression) {<NEW_LINE>result = Opena...
getOperation(), PhpTokenTypes.opNOT);
1,521,377
public StreamObserver<T> clientStream(StreamObserver<T> responseObserver, Class<T> grpcMessageType) {<NEW_LINE>ServerCallStreamObserver<T> serverCallStreamObserver <MASK><NEW_LINE>serverCallStreamObserver.disableAutoInboundFlowControl();<NEW_LINE>FunctionInvocationWrapper function = this.resolveFunction(null);<NEW_LINE...
= (ServerCallStreamObserver<T>) responseObserver;
136,843
public void mergeCounters(TopologyMetric tpMetric, MetaType metaType, String meta, Map<Integer, MetricSnapshot> data) {<NEW_LINE>MetricInfo <MASK><NEW_LINE>Map<Integer, MetricSnapshot> existing = metricInfo.get_metrics().get(meta);<NEW_LINE>if (existing == null) {<NEW_LINE>metricInfo.put_to_metrics(meta, data);<NEW_LIN...
metricInfo = getMetricInfoByType(tpMetric, metaType);
1,424,842
private Properties processFile() {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>String extension = FilenameUtils.getExtension(configFile);<NEW_LINE>if (!extension.equalsIgnoreCase("properties")) {<NEW_LINE>LOG.info("Ignoring, as file extension is not correct for: {}", configFile);<NEW_LINE>} else {<NEW_L...
LOG.info("Trying to find Dozer configuration file: {}", configFile);
1,776,275
private void implementSetBearerAuth(List<ExecutableElement> methods) {<NEW_LINE>JMethod setBearerMethod = codeModelHelper.implementMethod(this, methods, "setBearerAuth", TypeKind.VOID.toString(), true, STRING);<NEW_LINE>if (setBearerMethod != null) {<NEW_LINE>JVar tokenParamVar = setBearerMethod.params().get(0);<NEW_LI...
getHeaderValueMethod.annotate(Override.class);
845,698
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject mageObject = game.getPermanentEntering(source.getSourceId());<NEW_LINE>if (mageObject == null) {<NEW_LINE>mageObject = game.getObject(source);<NEW_LINE>}<NEW_LINE>if (controller !...
VALUE_KEY, choices.getChoice());
718,057
private static SmartPointerElementInfo createAnchorInfo(@Nonnull PsiElement element, @Nonnull PsiFile containingFile) {<NEW_LINE>if (element instanceof StubBasedPsiElement && containingFile instanceof PsiFileImpl) {<NEW_LINE>IStubFileElementType stubType = ((<MASK><NEW_LINE>if (stubType != null && stubType.shouldBuildS...
PsiFileImpl) containingFile).getElementTypeForStubBuilder();
132,647
public boolean save() throws IOException {<NEW_LINE>// make sure the user didn't hide the sketch folder<NEW_LINE>ensureExistence();<NEW_LINE>if (isReadOnly()) {<NEW_LINE>Base.showMessage(tr("Sketch is read-only"), tr("Some files are marked \"read-only\", so you'll\n" + "need to re-save this sketch to another location."...
renameTo(newName.getName());
393,193
public String generateCapacityConfig() {<NEW_LINE>JsonArray brokerList = new JsonArray();<NEW_LINE>if (storage instanceof JbodStorage) {<NEW_LINE>// A capacity configuration for a cluster with a JBOD configuration<NEW_LINE>// requires a distinct broker capacity entry for every broker because the<NEW_LINE>// Kafka volum...
, String.valueOf(diskMiB));
933,785
private ApiResponse processInitSessionRequest(ApiRequest apiRequest) throws ApiException {<NEW_LINE>ApiResponse response = new ApiResponse();<NEW_LINE>// create session<NEW_LINE>Session session = sessionManager.createSession();<NEW_LINE>if (session != null) {<NEW_LINE>// Result Distributor<NEW_LINE>SharingResultDistrib...
setMainClass(PidUtils.mainClass());
1,038,001
public void writeToStream(@NonNull OutputStream outputStream, @Nullable IProgress progress) throws IOException {<NEW_LINE>JSONObject json = new JSONObject();<NEW_LINE>List<OsmandPreference<?>> prefs = new ArrayList<>(settings.getRegisteredPreferences().values());<NEW_LINE>for (OsmandPreference<?> pref : prefs) {<NEW_LI...
LOG.error("Failed to write json to stream", e);
329,194
private void saveState() {<NEW_LINE>if (length < 0)<NEW_LINE>return;<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.append(this.length + "\n");<NEW_LINE>sb.append(downloaded + "\n");<NEW_LINE>sb.append(chunks.size() + "\n");<NEW_LINE>for (int i = 0; i < chunks.size(); i++) {<NEW_LINE>Segment <MASK><NEW_LINE...
seg = chunks.get(i);
76,978
private void writeMapDotProperty(final Expression receiver, final String propertyName, final boolean safe) {<NEW_LINE>// load receiver<NEW_LINE>receiver.visit(controller.getAcg());<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>Label exit = new Label();<NEW_LINE>if (safe) {<NEW_LINE>Label doGet = n...
mv.visitJumpInsn(IFNONNULL, doGet);
1,575,028
private Response saveEdits(FitNesseContext context, Request request, WikiPage page, long ticketId) {<NEW_LINE>String savedContent = request.getInput(EditResponder.CONTENT_INPUT_NAME);<NEW_LINE>String helpText = request.getInput(EditResponder.HELP_TEXT);<NEW_LINE>String suites = request.getInput(EditResponder.SUITES);<N...
"Current-Version", commitRecord.getName());
526,465
public void processNewResult(Object result) {<NEW_LINE>Database db = ResultUtil.findDatabase(result);<NEW_LINE>SetDBIDs positiveids = DBIDUtil.ensureSet(DatabaseUtil.getObjectsByLabelMatch(db, positiveClassName));<NEW_LINE>if (positiveids.size() == 0) {<NEW_LINE>LOG.warning("Cannot evaluate outlier results - no objects...
orderings = ResultUtil.getOrderingResults(result);
1,406,571
private Mono<PagedResponse<ContainerAppInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
649,487
public static Map<String, RexNode> permutePredicateOnFullColumn(Mapping fullColumnMapping, Map<String, RexNode> predicates) {<NEW_LINE>final Mapping inverted = fullColumnMapping.inverse();<NEW_LINE>final List<Integer> <MASK><NEW_LINE>for (IntPair intPair : inverted) {<NEW_LINE>sourceList.add(intPair.source);<NEW_LINE>}...
sourceList = new ArrayList<>();
1,246,236
public Collection<VirtualFile> selectFilesToProcess(final List<VirtualFile> files, final String title, @Nullable final String prompt, final String singleFileTitle, final String singleFilePromptTemplate, final VcsShowConfirmationOption confirmationOption) {<NEW_LINE>if (files == null || files.isEmpty()) {<NEW_LINE>retur...
result = new ArrayList<>();
543,367
// restoreEntity<NEW_LINE>@Override<NEW_LINE>public EntityDetail restoreEntity(String userId, String deletedEntityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, EntityNotDeletedException, UserNotAuthorizedException {<NEW_LINE>final String methodName = "restoreEntity";<NEW_LIN...
repositoryName, deletedEntityGUID, entity, methodName);
1,545,739
private List<String> people(Business business, Wi wi) throws Exception {<NEW_LINE>List<Unit> os = business.unit().pick(wi.getUnitList());<NEW_LINE>List<String> unitIds = new ArrayList<>();<NEW_LINE>for (Unit o : os) {<NEW_LINE>unitIds.<MASK><NEW_LINE>unitIds.addAll(business.unit().listSubNested(o.getId()));<NEW_LINE>}<...
add(o.getId());
1,328,610
public boolean onPrepareOptionsMenu(Menu menu) {<NEW_LINE>super.onPrepareOptionsMenu(menu);<NEW_LINE>boolean enableUploadAgain = false;<NEW_LINE>boolean enableTryAgain = false;<NEW_LINE>boolean enableDeleteAll = false;<NEW_LINE>final LibraryTree tree = getCurrentTree();<NEW_LINE>if (tree instanceof SyncLabelTree) {<NEW...
.DeleteAll).setVisible(enableDeleteAll);
1,042,903
private void initializeSoot() {<NEW_LINE>logger.info("Initializing Soot...");<NEW_LINE>final String androidJar = config.getAnalysisFileConfig().getAndroidPlatformDir();<NEW_LINE>final String apkFileLocation = config.getAnalysisFileConfig().getTargetAPKFile();<NEW_LINE>// Clean up any old Soot instance we may have<NEW_L...
.v().autoSetOptions();
204,753
public void run() {<NEW_LINE>action.finish();<NEW_LINE>LocalHistory.getInstance().putSystemLabel(myProject, (myLocalHistoryActionName == null) ? myOperationName : myLocalHistoryActionName, -1);<NEW_LINE>final VcsDirtyScopeManager manager = project.getComponent(VcsDirtyScopeManager.class);<NEW_LINE>VcsGuess vcsGuess = n...
ContentRevision afterRevision = change.getAfterRevision();
707,104
public void explain(int p, ExplanationForSignedClause explanation) {<NEW_LINE>IntVar pivot = explanation.readVar(p);<NEW_LINE>IntIterableRangeSet set;<NEW_LINE>int i = 0;<NEW_LINE>while (i < mvars.length) {<NEW_LINE>IntVar v = mvars[i];<NEW_LINE>if (explanation.getFront().getValueOrDefault(v, -1) == -1) {<NEW_LINE>// s...
1] == mvars[i]);
1,464,377
private void emitBeginBlockForSwitchStatements(Block dom, Block beginBlockNode) {<NEW_LINE>final IntegerSwitchNode switchNode = <MASK><NEW_LINE>asm.indent();<NEW_LINE>Node beginNode = beginBlockNode.getBeginNode();<NEW_LINE>switches.add(beginBlockNode);<NEW_LINE>NodeIterable<Node> successors = switchNode.successors();<...
(IntegerSwitchNode) dom.getEndNode();
739,077
public Action onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) {<NEW_LINE>Action action = Action.CONTINUE;<NEW_LINE>final byte flags = header.flags();<NEW_LINE>if ((flags & UNFRAGMENTED) == UNFRAGMENTED) {<NEW_LINE>action = onMessage(buffer, offset, length, header);<NEW_LIN...
append(buffer, offset, length);
1,406,013
public <T extends ImmutableSortedListOfRanges> T createIntersectionSingleRange(T o) {<NEW_LINE>assert size() == 1 && !o.isEmpty();<NEW_LINE>if (getMin() <= o.getMin() && getMax() >= o.getMax()) {<NEW_LINE>return o;<NEW_LINE>}<NEW_LINE>int iLo = 0;<NEW_LINE>int iHi = o.size() - 1;<NEW_LINE>while (iLo < o.size() && o.get...
(iHi + 1) * 2);
731,907
protected void toStringWithIndentation(StringBuilder result, int level) {<NEW_LINE>// Spaces and tabs are dropped by IntelliJ logcat integration, so rely on __ instead.<NEW_LINE>StringBuilder indentation = new StringBuilder();<NEW_LINE>for (int i = 0; i < level; ++i) {<NEW_LINE>indentation.append("__");<NEW_LINE>}<NEW_...
toStringWithIndentation(result, level + 1);
1,478,321
public BillingDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BillingDetails billingDetails = new BillingDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,656,404
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent permanent = (Permanent) game.getLastKnownInformation(targetPointer.getFirst(game<MASK><NEW_LINE>if (permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Player owner = game.getPlayer(permanent.getOwnerId());<NEW_LINE>MageObject sourceObject...
, source), Zone.BATTLEFIELD);
125,272
private static void createReprInDocument(XTextDocument doc, String refMarkName, XTextCursor position, boolean insertSpaceAfter, boolean withoutBrackets) throws CreationException {<NEW_LINE>// The cursor we received: we push it before us.<NEW_LINE>position.collapseToEnd();<NEW_LINE>XTextCursor cursor = safeInsertSpacesB...
((short) 1, false);
544,413
private static ObjectArrayEventType makeTransientOATypeInternal(String enumMethod, Map<String, Object> boxedPropertyTypes, String eventTypeNameUUid, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) {<NEW_LINE>String eventTypeName = services.getEventTypeNameGeneratorStatement().getAnonymousTypeN...
getEventTypeCompileTimeRegistry().newType(oatype);
1,374,609
public void correctMetadataForList(String listId) {<NEW_LINE>StoreObject <MASK><NEW_LINE>if (list == GtasksListService.LIST_NOT_FOUND_OBJECT)<NEW_LINE>return;<NEW_LINE>updateParentSiblingMapsFor(list);<NEW_LINE>final AtomicLong order = new AtomicLong(0);<NEW_LINE>final AtomicInteger previousIndent = new AtomicInteger(-...
list = gtasksListService.getList(listId);
758,574
private int convertFromOneside(int value, @Nonnull Side side, boolean approximate, int index) {<NEW_LINE>if (index < 0) {<NEW_LINE>return convert(getFragments(side, true), value, approximate);<NEW_LINE>}<NEW_LINE>CorrectedChange change = myChanges.get(index);<NEW_LINE>int shift = change.newLength - change.oldLength;<NE...
side, approximate, index - 1);
1,269,080
public GetVoiceConnectorTerminationHealthResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetVoiceConnectorTerminationHealthResult getVoiceConnectorTerminationHealthResult = new GetVoiceConnectorTerminationHealthResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>Str...
().unmarshall(context));
1,846,814
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.ide.core.io.auth.IAuthenticationPrompt#promptPassword(com.aptana.ide.core.io.auth.IAuthenticationManager<NEW_LINE>* , java.lang.String, java.lang.String, java.lang.String, java.lang.String)<NEW_LINE>*/<NEW_LINE>public boolean promptPassword(final IAuthen...
= new boolean[] { false };
1,470,300
private void pushBalaToCustomRepo(Path balaFilePath) {<NEW_LINE>ProjectEnvironmentBuilder defaultBuilder = ProjectEnvironmentBuilder.getDefaultBuilder();<NEW_LINE>defaultBuilder.addCompilationCacheFactory(TempDirCompilationCache::from);<NEW_LINE>BalaProject balaProject = BalaProject.loadProject(defaultBuilder, balaFile...
String platform = balaProject.platform();
753,346
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String expression = "@public create expression cc { (a,v1,b,v2,c) -> a.p00 || v1 || b.p00 || v2 || c.p00}";<NEW_LINE><MASK><NEW_LINE>String epl = "@name('s0') select cc(e2, 'x', e3, 'y', e1) as c0 from \n" + "Supp...
env.compileDeploy(expression, path);
1,309,571
public void process(GrayU8 input) {<NEW_LINE>// input = im_0<NEW_LINE>removedWatersheds = false;<NEW_LINE>output.reshape(input.width + 2, input.height + 2);<NEW_LINE>distance.reshape(input.width + 2, input.height + 2);<NEW_LINE>ImageMiscOps.fill(output, INIT);<NEW_LINE><MASK><NEW_LINE>fifo.reset();<NEW_LINE>// sort pix...
ImageMiscOps.fill(distance, 0);
1,709,877
private void updateIfNeeded(@NonNull final Project project, @NonNull final AntBuildExtender extender) {<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("extender", extender);<NEW_LINE>if (extender.getExtension(J2SEDeployProperties.getCurrentExtensionName()) != null) {<NEW_LINE>// Alrea...
Parameters.notNull("project", project);
711,294
public void testisUserInRoleLDAPISWar2() throws Exception {<NEW_LINE>Log.info(logClass, getCurrentTestName(), "-----Entering " + getCurrentTestName());<NEW_LINE>String queryString = EJB_WAR2_PATH + SIMPLE_SERVLET2 + "?testInstance=ejb03&testMethod=manager";<NEW_LINE>Log.info(logClass, getCurrentTestName(), "-----------...
logClass, getCurrentTestName(), "-------------End of Response");
429,218
public void marshall(ReplicationConfigurationTemplate replicationConfigurationTemplate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replicationConfigurationTemplate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall...
replicationConfigurationTemplate.getArn(), ARN_BINDING);
511,667
public void downloadFileViaToken1(String token, String range, Boolean genericMimetype, Boolean inline) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'token' is set<NEW_LINE>if (token == null) {<NEW_LINE>throw new ApiException(400, "Missing the required paramete...
localVarAuthNames = new String[] {};
104,048
public static ErrorMessage sendErrorMessage(ChannelHandlerContext ctx, Throwable cause) throws Exception {<NEW_LINE>String message = cause.getMessage();<NEW_LINE>long statusCode = StatusCodes.Bad_UnexpectedError;<NEW_LINE>if (cause instanceof UaException) {<NEW_LINE>UaException ex = (UaException) cause;<NEW_LINE>messag...
= new ErrorMessage(statusCode, message);
385,689
final CreateContextResult executeCreateContext(CreateContextRequest createContextRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createContextRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,311,489
public File purgeSegment() throws Exception {<NEW_LINE>SegmentMetadataImpl segmentMetadata = new SegmentMetadataImpl(_indexDir);<NEW_LINE>String segmentName = segmentMetadata.getName();<NEW_LINE>LOGGER.info("Start purging table: {}, segment: {}", _tableConfig.getTableName(), segmentName);<NEW_LINE>try (PurgeRecordReade...
getValidationConfig().getTimeColumnName());
1,337,353
public void visitCastExpression(CastExpression castExpression) {<NEW_LINE>ClassNode type = castExpression.getType();<NEW_LINE>Expression subExpression = castExpression.getExpression();<NEW_LINE>subExpression.visit(this);<NEW_LINE>if (ClassHelper.OBJECT_TYPE.equals(type))<NEW_LINE>return;<NEW_LINE>if (castExpression.isC...
controller.getMethodVisitor(), type);
896,305
public boolean render(@Nonnull ItemStack stack, int xPosition, int yPosition, boolean alwaysShow) {<NEW_LINE>IEnergyStorage energyItem = <MASK><NEW_LINE>if (energyItem != null) {<NEW_LINE>int maxEnergy = energyItem.getMaxEnergyStored();<NEW_LINE>if (maxEnergy > 0) {<NEW_LINE>int energy = energyItem.getEnergyStored();<N...
PowerHandlerUtil.getCapability(stack, null);
53,832
private void processNextRegistrationMutation() throws InterruptedException {<NEW_LINE>RegisterMutation mutation = null;<NEW_LINE>try {<NEW_LINE>// Blocking<NEW_LINE>mutation = this.registrationQueue.take();<NEW_LINE>final <MASK><NEW_LINE>// Check if agent is still connected by the time this mutation is taken from the q...
String jobId = mutation.getJobId();
1,220,329
public String signString(String stringToSign, String accessKeySecret) {<NEW_LINE>try {<NEW_LINE>Signature rsaSign = Signature.getInstance(ALGORITHM_NAME);<NEW_LINE>KeyFactory kf = KeyFactory.getInstance("RSA");<NEW_LINE>byte[] keySpec = DatatypeConverter.parseBase64Binary(checkRSASecret(accessKeySecret));<NEW_LINE>Priv...
IllegalArgumentException(e.toString());
1,226,785
public void updateControllerConnections(OFBsnControllerConnectionsReply controllerCxnsReply) {<NEW_LINE>// Instantiate clean map, can't use a builder here since we need to call temp.get()<NEW_LINE>Map<URI, Map<OFAuxId, OFBsnControllerConnection>> temp = new ConcurrentHashMap<>();<NEW_LINE>List<OFBsnControllerConnection...
update.getAuxiliaryId(), update);
450,320
private void initialize() {<NEW_LINE>ITileCache cache = new SharedTileCache(getContext());<NEW_LINE>cache.setCacheSize(512 * (1 << 10));<NEW_LINE>OSciMap4TileSource tileSource = new OSciMap4TileSource();<NEW_LINE>tileSource.setCache(cache);<NEW_LINE>VectorTileLayer baseLayer = map().setBaseMap(tileSource);<NEW_LINE>Lay...
new ClearableVectorLayer(map()));
1,590,880
public void randomDisplayTick(@Nonnull IBlockState bs, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull Random rand) {<NEW_LINE>T te = getTileEntity(world, pos);<NEW_LINE>if (PersonalConfig.machineParticlesEnabled.get() && te != null && te.isActive()) {<NEW_LINE>EnumFacing front = te.getFacing();<NEW_LINE>for (int...
+ front.getFrontOffsetX() * 0.6;
1,630,345
public QuickConnectConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>QuickConnectConfig quickConnectConfig = new QuickConnectConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
().unmarshall(context));
1,349,841
private Optional<EventStreamInfo> createEventStreamInfo(Model model, OperationShape operation, StructureShape structure, MemberShape member) {<NEW_LINE>Shape eventStreamTarget = model.expectShape(member.getTarget());<NEW_LINE>// Compute the events of the event stream.<NEW_LINE>Map<String, StructureShape> events = new H...
structureMember.getMemberName(), shapeTarget);
1,808,705
public final void consume(String text) {<NEW_LINE>if ("".equals(text)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Some token producers treat "-1" as one token even though the sign is<NEW_LINE>// actually separate.<NEW_LINE>// This is not a problem with parsed code, but is often a problem with<NEW_LINE>// optimized parse...
c0 = text.charAt(0);
1,683,259
// Returns true if a segment of multipathA intersects point_b.<NEW_LINE>static boolean linearPathIntersectsPoint_(MultiPath multipathA, Point2D ptB, double tolerance) {<NEW_LINE>Point2D closest = new Point2D();<NEW_LINE>double toleranceSq = tolerance * tolerance;<NEW_LINE>SegmentIteratorImpl segIterA = ((MultiPathImpl)...
Segment segmentA = segIterA.nextSegment();
1,694,075
public SnowconeDeviceConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SnowconeDeviceConfiguration snowconeDeviceConfiguration = new SnowconeDeviceConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
().unmarshall(context));
707,775
public static void moveCaretToNextWord(@Nonnull Editor editor, boolean isWithSelection, boolean camel) {<NEW_LINE>Document document = editor.getDocument();<NEW_LINE>SelectionModel selectionModel = editor.getSelectionModel();<NEW_LINE>int selectionStart = selectionModel.getLeadSelectionOffset();<NEW_LINE><MASK><NEW_LINE...
CaretModel caretModel = editor.getCaretModel();
1,709,434
public ProfilingPoint create(Lookup.Provider project) {<NEW_LINE>if (project == null) {<NEW_LINE>// project not defined, will be detected from most active Editor or Main Project will be used<NEW_LINE>project = Utils.getCurrentProject();<NEW_LINE>}<NEW_LINE>CodeProfilingPoint.Location[] selectionLocations = Utils.getCur...
(startLocation.getFile()));
1,198,320
public boolean generateVMSetupCommand(Long ssAHostId) {<NEW_LINE>HostVO ssAHost = _hostDao.findById(ssAHostId);<NEW_LINE>if (ssAHost.getType() != Host.Type.SecondaryStorageVM) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String ssvmName = ssAHost.getName();<NEW_LINE>SecondaryStorageVmVO secStorageVm = _secStorageVmDao....
_agentMgr.easySend(ssAHostId, setupCmd);
1,433,217
void loadNameFromL5DataRow(Cursor nameCursor) {<NEW_LINE>this.fname = nameCursor.getString(ContactsApiLevel5.DATA_COLUMN_NAME_FIRST);<NEW_LINE>this.lname = nameCursor.getString(ContactsApiLevel5.DATA_COLUMN_NAME_LAST);<NEW_LINE>this.pname = nameCursor.getString(ContactsApiLevel5.DATA_COLUMN_NAME_PREFIX);<NEW_LINE>this....
nameCursor.getString(ContactsApiLevel5.DATA_COLUMN_NAME_MIDDLE);
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>...
prefixBytes.length, data.length);
356,349
public void serialize(OutputStream baos) throws IOException {<NEW_LINE>Deque<Pair<String, TemplateNode>> stack = new ArrayDeque<>();<NEW_LINE>Set<String> alignedPrefix = new HashSet<>();<NEW_LINE>ReadWriteIOUtils.write(getName(), baos);<NEW_LINE>ReadWriteIOUtils.write(isShareTime(), baos);<NEW_LINE>if (isShareTime()) {...
ReadWriteIOUtils.write(true, baos);
530,415
public Optional<DocOutBoundRecipient> provideMailRecipient(@NonNull final DocOutboundLogMailRecipientRequest request) {<NEW_LINE>if (request.getRecordRef() == null) {<NEW_LINE>Loggables.addLog("provideMailRecipient - docOutboundLogRecord has no AD_Table_ID/Record_ID => return 'no recipient'; request={}", request);<NEW_...
user.getId(), user);
677,310
private MultiAppStructues createMultiAppStructure(String numberofApps) {<NEW_LINE>// create input data<NEW_LINE>AppStructure reqPOJO1 = createAppData("myApp1", "Famous myApp1", true, AppStructure.SecurityType.NO_SECURITY, AppStructure.GenreType.GAME, createPriceList(Price.PurchaseType.BLUEPOINTS, 200, null, 100), "ABC"...
, reqPOJO2, reqPOJO3, reqPOJO4));
1,817,908
public static // | char<NEW_LINE>boolean Literal(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "Literal"))<NEW_LINE>return false;<NEW_LINE>boolean r;<NEW_LINE>Marker m = enter_section_(b, l, _COLLAPSE_, LITERAL, "<literal>");<NEW_LINE>r = consumeTokenSmart(b, INT);<NEW_LINE>if (!r)<NEW_LINE>r = consumeTok...
r = consumeTokenSmart(b, HEX);
1,656,566
public Destination unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Destination destination = new Destination();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
JsonToken token = context.getCurrentToken();
196,420
public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {<NEW_LINE>Method bridgedMethod = findBridgedMethod(method);<NEW_LINE>if (!isVisibilityBridgeMethodPair(method, bridgedMethod)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (method.getAnnotation(Bean.class) != null) {<NEW_LINE>// DO ...
getName() + " to inject interface proxy, it is not supported on static methods: " + method);
182,918
public Dialog onCreateDialog(final Bundle savedInstanceState) {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>Bundle arguments = getArguments();<NEW_LINE>final AlertDialog dialog = createDialog();<NEW_LINE>dialog.setButton(BUTTON_NEGATIVE, activity.getString(R.string.cancel), this);<NEW_LINE>LayoutInflater infla...
<Reference> choices = getChoices();
1,784,272
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {<NEW_LINE>List<ViewManager> managers = new ArrayList<>();<NEW_LINE>// components<NEW_LINE>managers.add(new RCTMGLMapViewManager(reactApplicationContext));<NEW_LINE>managers.add(new RCTMGLAndroidTextureMapViewManager(reactAppli...
.add(new RCTMGLCircleLayerManager());
1,307,452
protected void populateChannel(final Channel channel, final Element eChannel) {<NEW_LINE>super.populateChannel(channel, eChannel);<NEW_LINE>final String channelUri = channel.getUri();<NEW_LINE>if (channelUri != null) {<NEW_LINE>eChannel.setAttribute("about", channelUri, getRDFNamespace());<NEW_LINE>}<NEW_LINE>final Lis...
String uri = item.getUri();
1,294,890
private static CompilationRequestResult compileMethod(HotSpotGraalCompiler compiler, CompilationRequest request) {<NEW_LINE>long offset = compiler.getGraalRuntime().getVMConfig().jniEnvironmentOffset;<NEW_LINE>long javaThreadAddr = HotSpotJVMCIRuntime.runtime().getCurrentJavaThread();<NEW_LINE>JNI.JNIEnv env = (JNI.JNI...
(WordFactory.unsigned(offset));
1,763,462
private void applyLayoutInternal() {<NEW_LINE>hasPendingLayoutRequest = false;<NEW_LINE>if ((this.getNodes().size() == 0)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int layoutStyle = 0;<NEW_LINE>if ((nodeStyle & ZestStyles.NODES_NO_LAYOUT_RESIZE) > 0) {<NEW_LINE>layoutStyle = LayoutStyles.NO_LAYOUT_NODE_RESIZING;<NEW_LINE...
.height = d.height - 10;
1,612,600
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LI...
CacheManager.notify(Portal.class);
1,648,989
public void markResults(String[] result_ids, boolean[] reads) {<NEW_LINE>ByteArrayHashMap rid_map = new ByteArrayHashMap();<NEW_LINE>for (int i = 0; i < result_ids.length; i++) {<NEW_LINE>rid_map.put(Base32.decode(result_ids[i]), Boolean.valueOf(reads[i]));<NEW_LINE>}<NEW_LINE>boolean changed = false;<NEW_LINE>List new...
[results_map.size()]);
475,902
private static String formatAsNewReassignmentJson(String topic, scala.collection.Map<Object, Seq<Object>> partitionsToReassign) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("{\"version\":1,\"partitions\":[\n");<NEW_LINE>for (int partition = 0; partition < partitionsToReassign.size(); ...
(partition).append(",\"replicas\":[");
1,235,896
public void updateTotalBytesReadByRemoteReplica(PartitionId partitionId, String hostName, String replicaPath, long totalBytesRead) throws StoreException {<NEW_LINE>RemoteReplicaInfo remoteReplicaInfo = <MASK><NEW_LINE>if (remoteReplicaInfo != null) {<NEW_LINE>ReplicaId localReplica = remoteReplicaInfo.getLocalReplicaId...
getRemoteReplicaInfo(partitionId, hostName, replicaPath);
1,339,616
private void generateSendMailMethod(FileObject fileObject, final String className, String sessionVariableName, String sessionGetter) throws IOException {<NEW_LINE>List<MethodModel.Variable> parameters = Arrays.asList(new MethodModel.Variable[] { MethodModel.Variable.create("java.lang.String", "email"), MethodModel.Vari...
getElements().getTypeElement(className);
1,493,205
public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId(context.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setPageSize(context.integerValue("Describ...
("DescribeInstancesResponse.Items[" + i + "].Owner"));
243,787
public static Map<String, String> loadConfigurationFromInputStream(InputStream inputStream) {<NEW_LINE>Map<String, String> config = new HashMap<>();<NEW_LINE>try {<NEW_LINE>// System.in.available() : returns an estimate of the number of bytes that can be read (or skipped over) from this input stream<NEW_LINE>// Used to...
int firstCharacter = bufferedReader.read();
708,049
public void close() {<NEW_LINE>// This is just for show; JCImageFactory closes the input stream during construction.<NEW_LINE><MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>Object o = it.next();<NEW_LINE>if (o instanceof JavaCoreResourceReleaser) {<NEW_LINE>try {<NEW_LINE>((JavaCoreResourceReleaser) o).releaseResource...
Iterator it = _closables.iterator();
1,692,005
public void encode() {<NEW_LINE>this.reset();<NEW_LINE>this.putEntityUniqueId(this.entityUniqueId);<NEW_LINE>this.putEntityRuntimeId(this.entityRuntimeId);<NEW_LINE><MASK><NEW_LINE>this.putVector3f(this.x, this.y, this.z);<NEW_LINE>this.putLFloat(this.yaw);<NEW_LINE>this.putLFloat(this.pitch);<NEW_LINE>this.putVarInt(t...
this.putVarInt(this.playerGamemode);