idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,516,441
private Map<String, Object> updateDagSchedule(User loginUser, long projectCode, long processDefinitionCode, String scheduleJson) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>Schedule schedule = JSONUtils.parseObject(scheduleJson, Schedule.class);<NEW_LINE>if (schedule == null) {<NEW_LINE>putMsg(res...
.CONTINUE : schedule.getFailureStrategy();
1,828,317
public UserSession createSession(UUID sessionId, User user, Locale locale, boolean system, String securityScope) {<NEW_LINE>List<RoleDefinition> roles = new ArrayList<>();<NEW_LINE>for (RoleDefinition role : rolesHelper.getRoleDefinitionsForUser(user, false)) {<NEW_LINE>if (role != null) {<NEW_LINE>String expectedScope...
setPermissionUndefinedAccessPolicy(rolesHelper.getPermissionUndefinedAccessPolicy());
474,249
private void addSpinner() {<NEW_LINE>if (spinner == null) {<NEW_LINE>spinner = new QuranSpinner(context, null, R.attr.actionDropDownStyle);<NEW_LINE>spinner.setDropDownVerticalOffset(spinnerPadding);<NEW_LINE>spinner.setAdapter(adapter);<NEW_LINE>spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(...
MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
1,502,272
protected void recoverVolume(Completion completion) {<NEW_LINE>final VolumeInventory vol = getSelfInventory();<NEW_LINE>List<RecoverDataVolumeExtensionPoint> exts = pluginRgty.getExtensionList(RecoverDataVolumeExtensionPoint.class);<NEW_LINE>CollectionUtils.safeForEach(exts, new ForEachFunction<RecoverDataVolumeExtensi...
VolumeStatus oldStatus = self.getStatus();
193,386
// leg initial notional, which is the same for all scenarios<NEW_LINE>// package-scoped for testing<NEW_LINE>LegAmounts legInitialNotional(ResolvedSwapTrade trade) {<NEW_LINE>List<Pair<ResolvedSwapLeg, CurrencyAmount>> notionals = trade.getProduct().getLegs().stream().map(leg -> Pair.of(leg, buildLegNotional(leg))<MASK...
).collect(toList());
631,956
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>FullHttpRequest request = (FullHttpRequest) msg;<NEW_LINE>QueryStringDecoder decoder = new QueryStringDecoder(request.uri());<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, deco...
HttpVersion.HTTP_1_1, HttpResponseStatus.OK);
81,370
public static CoreLabel labelFromString(String str) {<NEW_LINE>CoreLabel label = new CoreLabel();<NEW_LINE>String[] parts = str.split(SEPARATOR_PATTERN);<NEW_LINE>for (String part : parts) {<NEW_LINE>if (part.startsWith("word:::")) {<NEW_LINE>label.setWord(part.substring<MASK><NEW_LINE>label.setValue(part.substring("wo...
("word:::".length()));
439,612
private static boolean patchDexExtractViaDexDiff(Context context, String patchVersionDirectory, String meta, final File patchFile, PatchResult patchResult) {<NEW_LINE>String dir = patchVersionDirectory + "/" + DEX_PATH + "/";<NEW_LINE>if (!extractDexDiffInternals(context, dir, meta, patchFile, TYPE_DEX)) {<NEW_LINE>Sha...
legalFiles = new ArrayList<>();
152,451
protected void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>Color oldColor = g.getColor();<NEW_LINE>int h = height;<NEW_LINE>int w = width;<NEW_LINE>g.translate(x, y);<NEW_LINE>Shape saveClip = g.getClip();<NEW_LINE>Rectangle bounds = saveClip.getBounds();<NEW_LINE>g.setClip...
width, getHeight() + 2);
870,283
protected List<QuerySource> visitQueryBody(QueryBody node, QueryState state) {<NEW_LINE>ArrayList<QuerySource> relations <MASK><NEW_LINE>if (node instanceof Table) {<NEW_LINE>String table = ((Table) node).getName().toString();<NEW_LINE>// resolve relations provided in dot notation (schema.index.type) and just get the t...
= new ArrayList<QuerySource>();
535,259
SearchResponse searchJobs(QueryBuilder queryBuilder, PageRequest pageRequest) throws IOException {<NEW_LINE>SearchRequest searchRequest = new SearchRequest(jobIndexName);<NEW_LINE>SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();<NEW_LINE>searchSourceBuilder.query(queryBuilder);<NEW_LINE>searchSource...
search(searchRequest, RequestOptions.DEFAULT);
1,580,659
public void visitConstantExpression(final ConstantExpression expression) {<NEW_LINE>if (!(expression.isNullExpression() || expression.isTrueExpression() || expression.isFalseExpression() || expression.isEmptyStringExpression())) {<NEW_LINE>if (expression instanceof AnnotationConstantExpression) {<NEW_LINE>// ex: @inter...
int offset = expression.getStart();
544,273
protected void generateStatementsImpl() throws CustomChangeException {<NEW_LINE>String userFederationProviderTableName = database.correctObjectName("USER_FEDERATION_PROVIDER", Table.class);<NEW_LINE>try {<NEW_LINE>PreparedStatement statement = jdbcConnection.prepareStatement("select REALM_ID, USERFEDERATIONPROVIDERS_ID...
realmId = resultSet.getString(1);
1,036,253
public void init() {<NEW_LINE>model = new DefaultDiagramModel();<NEW_LINE>model.setMaxConnections(-1);<NEW_LINE>FlowChartConnector connector = new FlowChartConnector();<NEW_LINE>connector.setPaintStyle("{stroke:'#C7B097',strokeWidth:3}");<NEW_LINE>model.setDefaultConnector(connector);<NEW_LINE>Element start = new Eleme...
new BlankEndPoint(EndPointAnchor.RIGHT));
1,759,590
public static Set<String> tryParseMariaDb2xConnectionUri(String connectionUri) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException, InstantiationException {<NEW_LINE>// these are a bit more complicated<NEW_LINE>Class<?> urlParserClass = Class.for...
getOptions = urlParserClass.getMethod("getOptions");
574,968
private void referenceUnitDuty(Business business, WoIdentity woIdentity) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(UnitDuty.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<UnitDuty> cq = cb.createQuery(UnitDuty.class);<NEW_LINE>Root<UnitDuty> root = cq.from(UnitDuty.class);<NEW...
CriteriaBuilder cb = em.getCriteriaBuilder();
398,171
private void flushStripe(FlushReason flushReason) throws IOException {<NEW_LINE>List<OrcDataOutput> outputData = new ArrayList<>();<NEW_LINE>long stripeStartOffset = orcDataSink.size();<NEW_LINE>// add header to first stripe (this is not required but nice to have)<NEW_LINE>if (closedStripes.isEmpty()) {<NEW_LINE>output...
::getBufferedBytes).sum());
705,637
public void deleteFileCommentReactionsId(Integer id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling deleteFileCommentReactionsId");<NEW_...
final String[] localVarAccepts = {};
1,428,656
private void checkPreviewCollection(ResourceCollection collection) {<NEW_LINE>if (collection.hasRole(Roles.PREVIEW)) {<NEW_LINE>for (LinkedResource resource : collection.getResources().asList()) {<NEW_LINE>Optional<OPFItem> item = opfHandler.getItemByPath(resource.getPath());<NEW_LINE>if (!item.isPresent() || !("applic...
, EPUBLocation.create(path));
473,553
public IRubyObject in_context(ThreadContext context, IRubyObject str, IRubyObject options) {<NEW_LINE>RubyClass klass;<NEW_LINE>XmlDomParserContext ctx;<NEW_LINE>InputStream istream;<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>XmlDocument document = document(runtime);<NEW_LINE>if (document == null) {<NEW_LI...
getEncoding().asJavaString());
965,968
private void registerMessageHandlers() {<NEW_LINE>messageDispatcher.registerHandler(Message.Type.<MASK><NEW_LINE>messageDispatcher.registerHandler(Message.Type.MQTT_DISCONNECT, new MqttDisconnectMessageHandler(clientManager));<NEW_LINE>messageDispatcher.registerHandler(Message.Type.MQTT_PUBLISH, new MqttMessageForwarde...
MQTT_CONNECT, new MqttConnectMessageHandler(clientManager));
1,633,666
private ConsumerConfig createConsumerConfig() throws UnknownHostException {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.put("zookeeper.connect", mConfig.getZookeeperQuorum() + mConfig.getKafkaZookeeperPath());<NEW_LINE>props.put("group.id", mConfig.getKafkaGroup());<NEW_LINE>props.put("zookeeper.sessio...
"offsets.storage", mConfig.getOffsetsStorage());
650,130
public static Props loadProps(final String[] args, final OptionParser parser) {<NEW_LINE>final OptionSpec<String> configDirectory = parser.acceptsAll(Arrays.asList("c", "conf"), "The conf directory for Azkaban.").withRequiredArg().describedAs("conf").ofType(String.class);<NEW_LINE>// Grabbing the azkaban settings from ...
logger.info("Loading azkaban settings file from " + path);
1,046,274
protected void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>if (args.length < 1 || args[0].length() < 2) {<NEW_LINE>throw new NotEnoughArgumentsException(tl("mobsAvailable", StringUtil.joinList(Mob.getMobList())));<NEW_LINE>}<NEW_LINE>final Locati...
setSpawnedType(mob.getType());
764,493
private void init() {<NEW_LINE>synchronized (this) {<NEW_LINE>if (this.inited) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>inited = true;<NEW_LINE>}<NEW_LINE>Object fromValues = ctx.getVariable(fromAlias.getStringValue());<NEW_LINE>if (fromValues instanceof Iterable && !(fromValues instanceof OIdentifiable)) {<NEW_LINE>from...
OInternalResultSet) fromValues).copy();
1,429,165
public final void switchRows(final int from, int to, final int sortColumn, final boolean ascending) {<NEW_LINE>log.debug("Row index={}->{}, sortColumn={}, ascending={}", from, to, sortColumn, ascending);<NEW_LINE>// nothing to do<NEW_LINE>if (from == to) {<NEW_LINE>log.trace("nothing to do - from == to");<NEW_LINE>retu...
m_mTable.dataSave(to, false);
360,206
public void annotate(Annotation annotation) {<NEW_LINE>if (annotation.containsKey(CoreAnnotations.SentencesAnnotation.class)) {<NEW_LINE>// parse a tree for each sentence<NEW_LINE>for (CoreMap sentence : annotation.get(CoreAnnotations.SentencesAnnotation.class)) {<NEW_LINE>List<CoreLabel> words = sentence.<MASK><NEW_LI...
get(CoreAnnotations.TokensAnnotation.class);
680,285
public static DescribePendingMaintenanceActionResponse unmarshall(DescribePendingMaintenanceActionResponse describePendingMaintenanceActionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePendingMaintenanceActionResponse.setRequestId(_ctx.stringValue("DescribePendingMaintenanceActionResponse.RequestId"));<NEW_LIN...
("DescribePendingMaintenanceActionResponse.Items[" + i + "].CreatedTime"));
830,932
private Breakpoint added(JPDABreakpoint b) {<NEW_LINE>if (b instanceof LineBreakpoint) {<NEW_LINE>LineBreakpoint lb = (LineBreakpoint) b;<NEW_LINE>URL url;<NEW_LINE>try {<NEW_LINE>url = new URL(lb.getURL());<NEW_LINE>} catch (MalformedURLException ex) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String filePath = null;<...
debugger.addLineBreakpoint(lb, niBreakpointDescriptor);
1,409,008
public Page[] sliceAndRetainPagesTo(long to) {<NEW_LINE>if (to > capacity) {<NEW_LINE>throw new IndexOutOfBoundsException("can't slice a channel buffer with capacity [" + capacity + "], with slice parameters to [" + to + "]");<NEW_LINE>} else if (to == 0) {<NEW_LINE>return EMPTY_BYTE_PAGE_ARRAY;<NEW_LINE>}<NEW_LINE>lon...
byteBuffer().limit(finalLimit);
1,365,818
public static void throwException(Throwable exception) {<NEW_LINE>thrownException = exception;<NEW_LINE>RuntimeObject exceptionPtr = Address.ofObject(exception).toStructure();<NEW_LINE>RuntimeClass exceptionClass = RuntimeClass.getClass(exceptionPtr);<NEW_LINE>Address stackFrame = ShadowStack.getStackTop();<NEW_LINE>in...
callSite = findCallSiteById(callSiteId, stackFrame);
834,901
protected void createPreViews() {<NEW_LINE>reflectionCam = new Camera(renderWidth, renderHeight);<NEW_LINE>refractionCam = new Camera(renderWidth, renderHeight);<NEW_LINE>// create a pre-view. a view that is rendered before the main view<NEW_LINE>reflectionView = new ViewPort("Reflection View", reflectionCam);<NEW_LINE...
reflectionView.setBackgroundColor(ColorRGBA.Black);
444,560
public static String preprocessXhtmlNamespaceDeclaration(String value) {<NEW_LINE>if (value.charAt(0) != '<') {<NEW_LINE>value = DIV_OPEN_FIRST + value + "</div>";<NEW_LINE>}<NEW_LINE>boolean <MASK><NEW_LINE>int firstTagIndex = value.indexOf("<", hasProcessingInstruction ? 1 : 0);<NEW_LINE>if (firstTagIndex != -1) {<NE...
hasProcessingInstruction = value.startsWith("<?");
747,518
public static Interval ofHoursMinutesNanos(long hours, int minutes, long nanos) {<NEW_LINE>// Interval is negative if any field is negative<NEW_LINE>boolean negative = (hours | minutes | nanos) < 0;<NEW_LINE>if (negative) {<NEW_LINE>// Ensure that all fields are negative or zero<NEW_LINE>if (hours > 0 || minutes > 0 ||...
hours, minutes * NANOS_PER_MINUTE + nanos);
1,075,995
private static boolean allowInstantRename(CompilationInfo info, Element e, ElementUtilities eu) {<NEW_LINE>if (e.getKind() == ElementKind.FIELD) {<NEW_LINE>VariableElement variableElement = (VariableElement) e;<NEW_LINE>TypeElement typeElement = eu.enclosingTypeElement(e);<NEW_LINE>boolean isProperty = false;<NEW_LINE>...
getDefault(info.getDocument());
1,751,918
public static void main(String[] args) {<NEW_LINE>AWSCredentials credentials = null;<NEW_LINE>try {<NEW_LINE>credentials = new PropertiesCredentials(EmrHelper.class.getResourceAsStream("AwsCredentials.properties"));<NEW_LINE>} catch (IOException e1) {<NEW_LINE>System.out.println("Credentials were not properly entered i...
println(result.getStepIds());
1,651,526
public void updateAnomalyAlertConfigurationWithResponse() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.updateAlertConfigWithResponse#AnomalyAlertConfiguration-Context<NEW_LINE>String alertConfigId = "1p0f8er30-6e6e-4391-b78f-bpfdfee1e6f5";<NEW_LINE>String additional...
("updated to add more hook ids"), Context.NONE);
777,762
public Query toQuery(Class<?> clazz, String whereClause, Object[] params, String trxName) {<NEW_LINE>String tableName;<NEW_LINE>// Get Table_Name by Class<NEW_LINE>// TODO: refactor<NEW_LINE>try {<NEW_LINE>tableName = (String) clazz.getField("Table_Name").get(null);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new A...
, trxName).setParameters(finalParams);
508,949
private String lookupIdentifiers(List<BibEntry> bibEntries) {<NEW_LINE>String totalCount = Integer.toString(bibEntries.size());<NEW_LINE>NamedCompound namedCompound = new NamedCompound(Localization.lang("Look up %0", fetcher.getIdentifierName()));<NEW_LINE>int count = 0;<NEW_LINE>int foundCount = 0;<NEW_LINE>for (BibEn...
().notify(nextStatusMessage));
324,655
private void pretifyXml(String path) throws ReportException {<NEW_LINE>final String outputPath = path + ".pretty";<NEW_LINE>final File in = new File(path);<NEW_LINE>final File out = new File(outputPath);<NEW_LINE>try (OutputStream os = new FileOutputStream(out)) {<NEW_LINE>final TransformerFactory transformerFactory = ...
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
956,730
private void calculateEarliestAndLatestTimestamps(List<AccountType> accountTypeList) {<NEW_LINE>if (mReportPeriodStart != -1 && mReportPeriodEnd != -1) {<NEW_LINE>mEarliestTransactionTimestamp = mReportPeriodStart;<NEW_LINE>mLatestTransactionTimestamp = mReportPeriodEnd;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Transaction...
mLatestTimestampsMap.put(type, latest);
1,488,175
/*<NEW_LINE>* Called by Declarative Services to activate service<NEW_LINE>*/<NEW_LINE>@Activate<NEW_LINE>protected void activate(ComponentContext cc) throws Exception {<NEW_LINE>RuntimeDelegate.setInstance(new RuntimeDelegateImpl());<NEW_LINE>// This is a workaroud to avoid invoking createWoodstoxFactory in org.apache....
properties.put("org.apache.cxf.bus.id", "Default Bus");
1,741,838
public // }<NEW_LINE>ByteString handleInvokeChaincode(String chaincodeName, String function, String[] args, String uuid) {<NEW_LINE>// Check if this is a transaction<NEW_LINE>if (!isTransaction.containsKey(uuid)) {<NEW_LINE>throw new RuntimeException("Cannot invoke chaincode in query context");<NEW_LINE>}<NEW_LINE>Chai...
setCtorMsg(input).build();
940,464
public void awakeFromNib() {<NEW_LINE>// Reset<NEW_LINE>NSEnumerator items = tabView.tabViewItems().objectEnumerator();<NEW_LINE>NSObject object;<NEW_LINE>while ((object = items.nextObject()) != null) {<NEW_LINE>this.tabView.removeTabViewItem(Rococoa.cast(object, NSTabViewItem.class));<NEW_LINE>}<NEW_LINE>// Insert all...
size() ? index : 0);
1,651,828
void maybeCompileForWebMode(ModuleDef module, Set<String> userAgents) throws UnableToCompleteException {<NEW_LINE>compilerContext = compilerContextBuilder.module(module).build();<NEW_LINE>// Load any declared servlets.<NEW_LINE>for (String path : module.getServletPaths()) {<NEW_LINE>String servletClass = module.findSer...
module.getName() + "/*");
817,664
public static void insertNewLineAtCaret(Editor editor) {<NEW_LINE>EditorUIUtil.hideCursorInEditor(editor);<NEW_LINE>Document document = editor.getDocument();<NEW_LINE>int caretLine = editor.getCaretModel().getLogicalPosition().line;<NEW_LINE>if (!editor.isInsertMode()) {<NEW_LINE>int lineCount = document.getLineCount()...
) - document.getLineStartOffset(indentLineNum);
450,414
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) {<NEW_LINE>mSenders = SenderCollection.getInstance(getActivity());<NEW_LINE>mDeviceGroupsHelper = new DeviceGroupsHelper(getActivity());<NEW_LINE>View view = inflater.inflate(R.layout.fragment_groups, container, false);<NEW_LINE>s...
typedArray.getResourceId(0, 0);
406,031
public com.amazonaws.services.globalaccelerator.model.InternalServiceErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.globalaccelerator.model.InternalServiceErrorException internalServiceErrorException = new com.amazonaws.services.globalaccelerator...
int originalDepth = context.getCurrentDepth();
259,809
private static SinkRequest createKafkaRequest(StreamSink streamSink, InlongStreamInfo streamInfo) {<NEW_LINE>KafkaSinkRequest kafkaSinkRequest = new KafkaSinkRequest();<NEW_LINE>KafkaSink kafkaSink = (KafkaSink) streamSink;<NEW_LINE>kafkaSinkRequest.setSinkName(streamSink.getSinkName());<NEW_LINE>kafkaSinkRequest.setAd...
getSinkType().name());
1,510,885
protected Optional<PlanNode> pushDownProjectOff(Context context, ApplyNode applyNode, Set<Symbol> referencedOutputs) {<NEW_LINE>// remove unused apply node<NEW_LINE>if (intersection(applyNode.getSubqueryAssignments().getSymbols(), referencedOutputs).isEmpty()) {<NEW_LINE>return Optional.of(applyNode.getInput());<NEW_LI...
> requiredAssignmentsSymbols = ImmutableSet.builder();
1,484,073
public void genericNotify(Map<String, Set<WeakReference<ONetworkProtocolBinary>>> context, String database, OPushEventType pack) {<NEW_LINE>try {<NEW_LINE>executor.submit(() -> {<NEW_LINE>Set<WeakReference<ONetworkProtocolBinary>> clients = null;<NEW_LINE>synchronized (OPushManager.this) {<NEW_LINE>Set<WeakReference<ON...
> ref = iter.next();
1,846,739
private List<NameValueCountPair> listCreatorUnit(Business business, EffectivePerson effectivePerson, Application application) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Work.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<...
CriteriaBuilder cb = em.getCriteriaBuilder();
965,158
public static MessageData decode(JSONObject data, Map<String, String> userIds) throws ParseException {<NEW_LINE>if (data == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String topic = (String) data.get("topic");<NEW_LINE>String message = (String) data.get("message");<NEW_LINE>Debugging.println("pubsub-msg", "%s: %...
return new MessageData(topic, message);
863,606
private static String generateMessage(AttributeDescriber describer, AttributeContainerInternal fromConfigurationAttributes, AttributeMatcher attributeMatcher, final ComponentResolveMetadata targetComponent, boolean variantAware) {<NEW_LINE>Map<String, ConfigurationMetadata> configurations = new TreeMap<>();<NEW_LINE>Op...
or(new LegacyConfigurationsSupplier(targetComponent));
1,619,947
private void clearMediaPlayerListeners() {<NEW_LINE>if (mediaPlayer instanceof VideoPlayer) {<NEW_LINE>VideoPlayer vp = (VideoPlayer) mediaPlayer;<NEW_LINE>vp.setOnCompletionListener(x -> {<NEW_LINE>});<NEW_LINE>vp.setOnSeekCompleteListener(x -> {<NEW_LINE>});<NEW_LINE>vp.setOnErrorListener((mediaPlayer, i, i1) -> fals...
, y, z) -> false);
1,329,436
final UpdateReadinessCheckResult executeUpdateReadinessCheck(UpdateReadinessCheckRequest updateReadinessCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateReadinessCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Route53 Recovery Readiness");
1,618,034
public Response.NodeResponse calculateResult(RemoteClusterControllerTask.Context context) throws StateRestApiException {<NEW_LINE>Response.NodeResponse result = new Response.NodeResponse();<NEW_LINE>NodeInfo info = context.cluster.getNodeInfo(id.getNode());<NEW_LINE>if (info == null) {<NEW_LINE>throw new MissingResourc...
(info.getWantedState()));
926,849
// visible for testing<NEW_LINE>void processDatabase(Map<String, Object> databaseInfo) {<NEW_LINE>String name = databaseInfo.get("name").toString().replace(".tgz", "") + ".mmdb";<NEW_LINE>String md5 = (String) databaseInfo.get("md5_hash");<NEW_LINE>if (state.contains(name) && Objects.equals(md5, state.get(name).md5()))...
, state.get(name));
167,654
private static // [START monitoring_alert_update_channel]<NEW_LINE>Map<String, String> restoreNotificationChannels(String projectId, List<NotificationChannel> channels, boolean isSameProject) throws IOException {<NEW_LINE>Map<String, String> newChannelNames = Maps.newHashMap();<NEW_LINE>try (NotificationChannelServiceC...
), newChannel.getName());
1,811,138
public void scaleFeaturesGaussian() {<NEW_LINE>means = new double[this.numFeatures()];<NEW_LINE>// Arrays.fill(means, 0); // not needed; Java arrays zero initialized<NEW_LINE>for (int i = 0; i < this.size(); i++) {<NEW_LINE>for (int j = 0; j < data[i].length; j++) means[data[i][j]] += values[i][j];<NEW_LINE>}<NEW_LINE>...
+= values[i][j];
1,187,218
private ConformanceResult checkConformanceOnGetElement(Node node) {<NEW_LINE>Node key = node.getSecondChild();<NEW_LINE>if (key.isStringLit()) {<NEW_LINE>String keyName = key.getString().toLowerCase(Locale.ROOT);<NEW_LINE>if (!bannedAttrs.contains(keyName) && !isEventHandlerAttrName(keyName)) {<NEW_LINE>return Conforma...
JSType keyType = key.getJSType();
556,514
public SMSMessageActivity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SMSMessageActivity sMSMessageActivity = new SMSMessageActivity();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
216,660
private void createSimpleRoutingParameterButton(MapActivity mapActivity, final LocalRoutingParameter parameter, LinearLayout optionsContainer) {<NEW_LINE>OsmandApplication app = mapActivity.getMyApplication();<NEW_LINE>RoutingHelper routingHelper = app.getRoutingHelper();<NEW_LINE>final int colorActive = ContextCompat....
margin, 0, margin, 0);
16,760
static void computeTBNNormalized(Vec3f pa, Vec3f pb, Vec3f pc, Vec2f ta, Vec2f tb, Vec2f tc, Vec3f[] norm) {<NEW_LINE>MeshTempState instance = MeshTempState.getInstance();<NEW_LINE>Vec3f n = instance.vec3f1;<NEW_LINE>Vec3f v1 = instance.vec3f2;<NEW_LINE>Vec3f v2 = instance.vec3f3;<NEW_LINE>// compute Normal |(v1-v0)X(v...
= pc.z - pa.z;
859,828
public static void doRenderLaserWave(World world, TextureManager textureManager, LaserData laser, ResourceLocation texture) {<NEW_LINE>if (!laser.isVisible || texture == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GL11.glPushMatrix();<NEW_LINE>GL11.glTranslated(laser.head.xCoord, laser.head.<MASK><NEW_LINE>laser.updat...
yCoord, laser.head.zCoord);
653,019
public CreateScheduleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateScheduleResult createScheduleResult = new CreateScheduleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
class).unmarshall(context));
812,481
protected void onContentViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>revealBottomSheet();<NEW_LINE><MASK><NEW_LINE>getNegativeButton().setOnClickListener((v) -> dismiss());<NEW_LINE>getPositiveButton().setOnClickListener((v) -> {<NEW_LINE>deliverFormatAndDismiss(mViewModel.getFormat().getValue...
setTitle(R.string.name_format_builder_title);
1,261,211
public Server armeriaServer(ArmeriaSettings armeriaSettings, InternalServices internalService, Optional<MeterRegistry> meterRegistry, Optional<List<MetricCollectingServiceConfigurator>> metricCollectingServiceConfigurators, Optional<MeterIdPrefixFunction> meterIdPrefixFunction, Optional<List<ArmeriaServerConfigurator>>...
assert DEFAULT_PORT.getProtocols() != null;
689,670
protected void sendProxyRequest(HttpServletRequest clientRequest, HttpServletResponse proxyResponse, Request proxyRequest) {<NEW_LINE>if (_log.isDebugEnabled()) {<NEW_LINE>StringBuilder builder = new StringBuilder(clientRequest.getMethod());<NEW_LINE>builder.append(" ").append(clientRequest.getRequestURI());<NEW_LINE>S...
String headerValue = headerValues.nextElement();
792,306
public void afterTestStep(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestCaseRunner testRunner, TestCaseRunContext runContext, TestStepResult testStepResult) {<NEW_LINE>if (loadTest.getUpdateStatisticsPerTestStep()) {<NEW_LINE>TestCase testCase = testRunner.getTestCase();<NEW_LINE>if (testStepResult == ...
= new long[samples.length];
1,592,622
final GetTrustStoreResult executeGetTrustStore(GetTrustStoreRequest getTrustStoreRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTrustStoreRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetTrustStore");
1,418,354
private Mono<PagedResponse<PacketCaptureResultInner>> listSinglePageAsync(String resourceGroupName, String networkWatcherName, 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....
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
305,370
public synchronized PinotResourceManagerResponse updateInstance(String instanceId, Instance newInstance, boolean updateBrokerResource) {<NEW_LINE>InstanceConfig instanceConfig = getHelixInstanceConfig(instanceId);<NEW_LINE>if (instanceConfig == null) {<NEW_LINE>throw new NotFoundException("Failed to find instance confi...
, instanceId, tablesAdded, tablesRemoved));
1,150,263
public static ListRepositoryMemberResponse unmarshall(ListRepositoryMemberResponse listRepositoryMemberResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRepositoryMemberResponse.setRequestId(_ctx.stringValue("ListRepositoryMemberResponse.RequestId"));<NEW_LINE>listRepositoryMemberResponse.setErrorCode(_ctx.stringValue...
(_ctx.longValue("ListRepositoryMemberResponse.Total"));
560,517
public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {<NEW_LINE>FlowableEntityEvent entityEvent = (FlowableEntityEvent) event;<NEW_LINE>TaskEntity task = (TaskEntity) entityEvent.getEntity();<NEW_LINE>Map<String, Object> data = handleCommonTaskFields(task);<NEW_LINE>long duration = timeStamp....
data, Fields.LOCAL_VARIABLES, variableMap);
668,459
public static void write_default_rule(WriteScopeParameter p_par, int p_layer) throws java.io.IOException {<NEW_LINE>p_par.file.start_scope();<NEW_LINE>p_par.file.write("rule");<NEW_LINE>// write the trace width<NEW_LINE>double trace_width = 2 * p_par.coordinate_transform.board_to_dsn(p_par.board.rules.get_default_net_c...
().get_trace_half_width(0));
1,622,773
public static void updateStoryOrder(Context context, FeedSet fs, StoryOrder newOrder) {<NEW_LINE>if (fs.isAllNormal()) {<NEW_LINE>setStoryOrderForFolder(context, PrefConstants.ALL_STORIES_FOLDER_NAME, newOrder);<NEW_LINE>} else if (fs.getSingleFeed() != null) {<NEW_LINE>setStoryOrderForFeed(context, fs.getSingleFeed(),...
).getKey(), newOrder);
1,077,353
public T lexiconImpl(String name, InputStream data, long size) throws IOException {<NEW_LINE>long startTime = java.lang.System.nanoTime();<NEW_LINE>if (progress != null) {<NEW_LINE>progress.startBlock(name, startTime, Progress.Kind.INPUT);<NEW_LINE>}<NEW_LINE>TrackingInputStream tracker = new TrackingInputStream(data);...
(tracker, StandardCharsets.UTF_8));
712,737
public void handle(PSAttemptEvent event) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Processing " + event.getPSAttemptId() + <MASK><NEW_LINE>}<NEW_LINE>writeLock.lock();<NEW_LINE>try {<NEW_LINE>final PSAttemptStateInternal oldState = getInternalState();<NEW_LINE>try {<NEW_LINE>stateMachine.doTransition(e...
" of type " + event.getType());
276,861
private void moveNamedFunctions(Node functionBody) {<NEW_LINE>checkState(functionBody.getParent().isFunction());<NEW_LINE>Node insertAfter = null;<NEW_LINE>Node current = functionBody.getFirstChild();<NEW_LINE>// Skip any declarations at the beginning of the function body, they<NEW_LINE>// are already in the right plac...
Node next = current.getNext();
1,114,653
public void check(Path file, PageCursor cursor, Root root, GBPTreeConsistencyCheckVisitor<KEY> visitor, CursorContext cursorContext) throws IOException {<NEW_LINE>// TODO: limitation, can't run on an index larger than Integer.MAX_VALUE pages (which is fairly large)<NEW_LINE>long highId = lastId + 1;<NEW_LINE>BitSet see...
file, seenIds, lastId, visitor);
293,495
private void createAndWriteTraceFileHeader(Context context, long utglobaldataAddress, int bufferSize, PrintStream out) throws CorruptDataException, DDRInteractiveCommandException {<NEW_LINE>IProcess process = context.process;<NEW_LINE>boolean isBigEndian = process.getByteOrder().equals(ByteOrder.BIG_ENDIAN);<NEW_LINE>l...
("J9RAS", context), "cpus");
1,319,383
// Note: see page 327.<NEW_LINE>public StandardizeApartResult standardizeApart(Sentence sentence, StandardizeApartIndexical standardizeApartIndexical) {<NEW_LINE>Set<Variable> toRename = variableCollector.collectAllVariables(sentence);<NEW_LINE>Map<Variable, Term> renameSubstitution = new HashMap<Variable, Term>();<NEW...
renameSubstitution.put(var, v);
373,470
ExportResult<PhotosContainerResource> exportOneDrivePhotos(TokensAndUrlAuthData authData, Optional<IdOnlyContainerResource> albumData, Optional<PaginationData> paginationData, UUID jobId) throws IOException {<NEW_LINE>Optional<String> albumId = Optional.empty();<NEW_LINE>if (albumData.isPresent()) {<NEW_LINE>albumId = ...
).getDriveItems(albumId, paginationUrl);
1,668,329
public SQLConnection createDatabase(MariaDBGlobalState globalState) throws SQLException {<NEW_LINE>globalState.getState().logStatement("DROP DATABASE IF EXISTS " + globalState.getDatabaseName());<NEW_LINE>globalState.getState().logStatement("CREATE DATABASE " + globalState.getDatabaseName());<NEW_LINE>globalState.getSt...
"DROP DATABASE IF EXISTS " + globalState.getDatabaseName());
1,378,948
/*<NEW_LINE>* Override system variables.<NEW_LINE>*/<NEW_LINE>public void updateSystemVariables(@Sensitive Map<String, LibertyVariable> newVariables) {<NEW_LINE>// Remove any variables that were removed from config. Replace with a defaultInstance value if it exists.<NEW_LINE>for (String variableName : configVariables.k...
variableName, defaultInstanceVar.getValue());
1,092,038
protected JsonNode callRemoteIdmService(String url, String username, String password) {<NEW_LINE>HttpGet httpGet = new HttpGet(url);<NEW_LINE>httpGet.setHeader(HttpHeaders.AUTHORIZATION, "Basic " + new String(Base64.getEncoder().encode((username + ":" + password).getBytes(StandardCharsets.UTF_8))));<NEW_LINE>HttpClient...
LOGGER.warn("Could not configure SSL for http client", e);
228,342
// Visible for testing<NEW_LINE>static Resource buildResource(SimpleHttpClient httpClient, DockerHelper dockerHelper, String k8sTokenPath, String k8sKeystorePath) {<NEW_LINE>if (!isEks(k8sTokenPath, k8sKeystorePath, httpClient)) {<NEW_LINE>return Resource.empty();<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>attrBuilders.put(Re...
AttributesBuilder attrBuilders = Attributes.builder();
585,171
final UpdateAppImageConfigResult executeUpdateAppImageConfig(UpdateAppImageConfigRequest updateAppImageConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAppImageConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,285,989
public void marshall(CreateRecommendationTemplateRequest createRecommendationTemplateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createRecommendationTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
createRecommendationTemplateRequest.getFormat(), FORMAT_BINDING);
203,699
public void onStreamPropertyChanged(Participant participant, Integer transactionId, Set<Participant> participants, String streamId, String property, JsonElement newValue, String reason) {<NEW_LINE>JsonObject params = new JsonObject();<NEW_LINE>params.addProperty(ProtocolElements.<MASK><NEW_LINE>params.addProperty(Proto...
STREAMPROPERTYCHANGED_CONNECTIONID_PARAM, participant.getParticipantPublicId());
156,236
private void remove(Context context, DSpaceObject dso, DSpaceObjectService dsoService, MetadataField metadataField, String index) {<NEW_LINE>metadataPatchUtils.checkMetadataFieldNotNull(metadataField);<NEW_LINE>try {<NEW_LINE>if (index == null) {<NEW_LINE>// remove all metadata of this type<NEW_LINE>dsoService.clearMet...
getQualifier(), Item.ANY);
859,248
private AvroMessageContentUnwrapperResult tryDeserializingUsingAnySchemaVersion(byte[] data, Topic topic, boolean online) {<NEW_LINE>if (online) {<NEW_LINE>if (!schemaOnlineChecksRateLimiter.tryAcquireOnlineCheckPermit()) {<NEW_LINE>logger.error("Could not match schema online for message of topic {} " + "due to too man...
schemaRepository.getVersions(topic, online);
363,185
public void updateWeekGrid(int daysCount, List<CalendarDay> days, Date today, String[] realDayNames) {<NEW_LINE>weekGrid.setFirstHour(getFirstHourOfTheDay());<NEW_LINE>weekGrid.setLastHour(getLastHourOfTheDay());<NEW_LINE>weekGrid.getTimeBar().updateTimeBar(is24HFormat());<NEW_LINE>dayToolbar.clear();<NEW_LINE>dayToolb...
String date = day.getDate();
148,281
public ParsingResult<V> run(InputBuffer inputBuffer) {<NEW_LINE>checkArgNotNull(inputBuffer, "inputBuffer");<NEW_LINE>resetValueStack();<NEW_LINE>// first, run a basic match<NEW_LINE>ParsingResult<<MASK><NEW_LINE>// all good<NEW_LINE>if (result.matched)<NEW_LINE>return result;<NEW_LINE>// ok, we have a parse error, so ...
V> result = runBasicMatch(inputBuffer);
774,837
private static void configureBulkdata(Dcm2Xml dcm2xml, CommandLine cl) throws Exception {<NEW_LINE>if (cl.hasOption("b")) {<NEW_LINE>dcm2xml.setIncludeBulkData(IncludeBulkData.YES);<NEW_LINE>}<NEW_LINE>if (cl.hasOption("B")) {<NEW_LINE>dcm2xml.setIncludeBulkData(IncludeBulkData.NO);<NEW_LINE>}<NEW_LINE>if (cl.hasOption...
(cl.getOptionValue("blk-file-suffix"));
996,540
public void onNickChange(final NickMessage msg) {<NEW_LINE>if (msg == null || msg.getSource() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String oldNick = msg<MASK><NEW_LINE>final String newNick = msg.getNewNick();<NEW_LINE>if (oldNick == null || newNick == null) {<NEW_LINE>LOGGER.error("Incomplete nick chang...
.getSource().getNick();
603,467
private void generateDOM4MultiByteExtras(Element parent, TTFFile ttf, boolean isCid) {<NEW_LINE>Element el;<NEW_LINE>Document doc = parent.getOwnerDocument();<NEW_LINE>Element mel = doc.createElement("multibyte-extras");<NEW_LINE>parent.appendChild(mel);<NEW_LINE>el = doc.createElement("cid-type");<NEW_LINE>mel.appendC...
(ce.getUnicodeStart()));
862,106
protected final JMenu createResizeMenu() {<NEW_LINE>// NOI18N<NEW_LINE>JMenu menu = new JMenu(BUNDLE<MASK><NEW_LINE>JMenuItem horizPlus = new // NOI18N<NEW_LINE>// NOI18N<NEW_LINE>JMenuItem(BUNDLE().getString("TextArea_HorizPlus")) {<NEW_LINE><NEW_LINE>protected void fireActionPerformed(ActionEvent e) {<NEW_LINE>change...
().getString("TextArea_Resize"));
1,829,927
public static void deleteTable(TableId tableId, boolean insertDeletes, ServerContext context, ServiceLock lock) throws AccumuloException {<NEW_LINE>try (Scanner ms = new ScannerImpl(context, MetadataTable.ID, Authorizations.EMPTY);<NEW_LINE>BatchWriter bw = new BatchWriterImpl(context, MetadataTable.ID, new BatchWriter...
putLockID(context, lock, m);