idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
341,420
private void selectState(CharSequence stateName, int stateIndex, @NonNull Style loadedMapStyle) {<NEW_LINE>if (indexOfState(stateName) == stateIndex) {<NEW_LINE>// Adds a SymbolLayer to display maximum temperature in state<NEW_LINE>SymbolLayer maxTempLayer = (SymbolLayer) loadedMapStyle.getLayer(MAX_TEMP_LAYER_ID);<NEW...
, literal(stateName))));
1,057,343
public void handleMessage(GlobalHandlerMessageContext msgctxt) throws Exception {<NEW_LINE>if (msgctxt.getFlowType().equalsIgnoreCase(HandlerConstants.FLOW_TYPE_IN)) {<NEW_LINE>System.out.println("########################################");<NEW_LINE>HttpServletRequest httpRequest = msgctxt.getHttpServletRequest();<NEW_...
msgctxt.adapt(SOAPMessageContext.class);
1,640,580
public R transform(FetchableQuery<?, ?> query) {<NEW_LINE>Multimap<K, Group> groups = LinkedHashMultimap.create();<NEW_LINE>// create groups<NEW_LINE>FactoryExpression<Tuple> expr = FactoryExpressionUtils.wrap(Projections.tuple(expressions));<NEW_LINE>boolean hasGroups = false;<NEW_LINE>for (Expression<?> e : expr.getA...
= new GroupImpl(groupExpressions, maps);
519,132
public boolean execute(Object result) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) result;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>final SetAccountIdContract setAccountIdContract;<NE...
AccountIdIndexStore accountIdIndexStore = chainBaseManager.getAccountIdIndexStore();
1,362,090
public void run() {<NEW_LINE>try {<NEW_LINE>// Query to the jboss4 server<NEW_LINE>lookup.lookup(JBDeploymentManager.class).invokeRemoteAction(new JBRemoteAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void action(MBeanServerConnection connection, JBoss5ProfileServiceProxy profileService) throws Exceptio...
Iterator it = managedObj.iterator();
1,776,728
public <T0, T1, T2, T3, T4, T> Join<T> createJoin(final List<Stage<?>> stages, final Function5<T0, T1, T2, T3, T4, T> constructor, final TableIdentifier<T0> t0, final TableIdentifier<T1> t1, final TableIdentifier<T2> t2, final TableIdentifier<T3> t3, final TableIdentifier<T4> t4) {<NEW_LINE>final SqlFunction<ResultSet,...
, rsMapper4.apply(rs));
373,479
private static void insertNativeEdges(final List<? extends ICodeEdge<?>> nativeEdges, final List<ReilBlock> nodes, final List<ReilEdge> edges, final Map<IInstruction, ReilInstruction> firstMap, final Map<IInstruction, ReilInstruction> lastMap) {<NEW_LINE>for (final ICodeEdge<?> nativeEdge : nativeEdges) {<NEW_LINE>fina...
Object target = nativeEdge.getTarget();
503,250
private static ActionListener injectAndPostConstruct(Class Klass, ExternalContext eContext) throws InjectionProviderException {<NEW_LINE>WASInjectionProvider injectionProvider = (WASInjectionProvider) InjectionProviderFactory.getInjectionProviderFactory(eContext).getInjectionProvider(eContext);<NEW_LINE>ManagedObject m...
getCurrentInstance(eContext).isDisableFaceletActionListenerPreDestroy();
1,410,415
private static void selectWithGuide(Editor editor, IndentGuideDescriptor guide) {<NEW_LINE>final Document doc = editor.getDocument();<NEW_LINE>int startOffset = editor.logicalPositionToOffset(new LogicalPosition(guide.startLine, 0));<NEW_LINE>int endOffset = guide.endLine >= doc.getLineCount() ? doc.getTextLength() : d...
getHighlighter().createIterator(nonWhitespaceOffset);
869,586
private Mono<Response<Void>> enableKeyVaultWithResponseAsync(String resourceGroupName, String accountName) {<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_LINE>if (this.cli...
error(new IllegalArgumentException("Parameter accountName is required and cannot be null."));
648,233
private static // #284<NEW_LINE>void // #284<NEW_LINE>checkTableID(// #284<NEW_LINE>Properties ctx, // #284<NEW_LINE>SvrProcess sp, boolean onlyADSequence) {<NEW_LINE>int IDRangeEnd = DB.getSQLValue(null, "SELECT IDRangeEnd FROM AD_System");<NEW_LINE>if (IDRangeEnd <= 0)<NEW_LINE>IDRangeEnd = DB.getSQLValue(null, "SELE...
s_log.info("IDRangeEnd = " + IDRangeEnd);
1,311,402
private void drawCaretHexWindow(final Graphics g, final int characterWidth, final int characterHeight) {<NEW_LINE>final <MASK><NEW_LINE>final int currentColumn = getCurrentColumn();<NEW_LINE>// Calculate the position of the first character in the row.<NEW_LINE>final int startLeft = 9 + m_offsetViewWidth;<NEW_LINE>// Ca...
int currentRow = getCurrentRow() - m_firstRow;
150,562
private static void makeGroups(String option) {<NEW_LINE>File folder;<NEW_LINE>groups.put(DEFAULT_GROUP, Commons.getWorkDir());<NEW_LINE>if (null != (folder = Commons.asFolder(option))) {<NEW_LINE>groups.put(DEFAULT_GROUP, folder);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File folders;<NEW_LINE>if (null != (folders = Commo...
pattern = Pattern.compile("(.*?)[ :=](.*)");
692,830
private Where addWhereClauseForRowRange(String keyAlias, Select select, RowRange<?> rowRange) {<NEW_LINE>Where where = null;<NEW_LINE>boolean keyIsPresent = false;<NEW_LINE>boolean tokenIsPresent = false;<NEW_LINE>if (rowRange.getStartKey() != null || rowRange.getEndKey() != null) {<NEW_LINE>keyIsPresent = true;<NEW_LI...
(gte(keyAlias, BIND_MARKER));
263,709
public static Map<String, Type> findTypes(final Document document, final XPath xPath) throws Exception {<NEW_LINE>final Map<String, Type> typeByNameMap = new HashMap<>();<NEW_LINE>typeByNameMap.put("char", new EncodedDataType("char", REQUIRED, null, null, CHAR, 1, false));<NEW_LINE>typeByNameMap.put("int8", new Encoded...
, DOUBLE, 1, false));
1,315,953
public Boolean delete(DeleteTransformRequest request, String operator) {<NEW_LINE>LOGGER.info("begin to logic delete transform for request={}", request);<NEW_LINE>Preconditions.checkNotNull(request, "delete request of transform cannot be null");<NEW_LINE>String groupId = request.getInlongGroupId();<NEW_LINE>String stre...
Integer id = entity.getId();
725,392
private <T extends Node, N extends NodeList<T>> N modifyGenericNodeList(N nodeList, Function<NonTerminalNode, N> nodeListCreator) {<NEW_LINE>if (nodeList.isEmpty()) {<NEW_LINE>return nodeList;<NEW_LINE>}<NEW_LINE>boolean nodeModified = false;<NEW_LINE>STNode[] newSTNodes = new STNode[nodeList.size()];<NEW_LINE>for (int...
oldNode = nodeList.get(index);
485,379
public PsiMethod createWitherMethod(@NotNull PsiField psiField, @NotNull String methodModifier, @NotNull AccessorsInfo accessorsInfo) {<NEW_LINE>LombokLightMethodBuilder methodBuilder = null;<NEW_LINE>final PsiClass psiFieldContainingClass = psiField.getContainingClass();<NEW_LINE>if (psiFieldContainingClass != null) {...
LombokLightParameter(psiFieldName, psiFieldType, methodBuilder);
1,273,969
private TemporaryJobBuilder job(final Job.Builder jobBuilder) {<NEW_LINE>final TemporaryJobBuilder builder = new TemporaryJobBuilder(deployer, jobPrefixFile.prefix(), prober, env, reportWriter.get(), jobBuilder);<NEW_LINE>if (config.hasPath("env")) {<NEW_LINE>final Config env = config.getConfig("env");<NEW_LINE>for (fi...
(config.getString("registrationDomain"));
1,032,317
private void applyOverrides(int[] lengthsOverride, double[] weightsOverride) {<NEW_LINE>if (weightsOverride != null) {<NEW_LINE>if (weightsOverride.length > MAXGRIDSIZE) {<NEW_LINE>// awt.8F=Weights' overrides array is too long<NEW_LINE>// $NON-NLS-1$<NEW_LINE>throw new RuntimeException("Weights' overrides array is too...
[i] = lengthsOverride[i];
1,738,839
@Named("ConnectCustomDebugEndpointUri")<NEW_LINE>public URI connectCustomDebugEndpointUri() {<NEW_LINE>try {<NEW_LINE>final String region = clientConfiguration.getRegion();<NEW_LINE>LOG.info("Region chosen: " + region);<NEW_LINE>String endpointUrl;<NEW_LINE>try {<NEW_LINE>endpointUrl = Region.valueOf(region.toUpperCase...
e.getMessage(), e);
1,116,908
private void runAssertionManagementEvents(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>SupportVirtualDW <MASK><NEW_LINE>// create-index event<NEW_LINE>vdw.getEvents().clear();<NEW_LINE>env.compileDeploy("@name('idx') create index IndexOne on MyVDW (col3, col2 btree)", path)...
vdw = registerTypeSetMapData(env, path);
1,415,082
protected DataViewComponent createComponent() {<NEW_LINE>final JFRModel model = getModel();<NEW_LINE>masterView = new SamplerViewSupport.MasterViewSupport(model) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>void showCPU() {<NEW_LINE>JFRSnapshotSamplerView.this.showCPU(model);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE...
, false), DataViewComponent.TOP_LEFT);
190,466
private String cacheResolved(Supplier<Iterable<String>> availableVersions) {<NEW_LINE>boolean hasHardRequirements = false;<NEW_LINE>String nearestSoftRequirement = null;<NEW_LINE>VersionRequirement next = this;<NEW_LINE>while (next != null) {<NEW_LINE>VersionSpec spec = next.versionSpec;<NEW_LINE>if (spec instanceof Di...
DirectRequirement) spec).getVersion();
393,567
private void updateIntersectHighlighter(int highlightStart, int highlightEnd) {<NEW_LINE>if (myIntersectHighlighter != null) {<NEW_LINE>myEditor.getMarkupModel().removeHighlighter(myIntersectHighlighter);<NEW_LINE>myIntersectHighlighter.dispose();<NEW_LINE>}<NEW_LINE>if (myEditor.getSelectionModel().hasSelection()) {<N...
attributes.setForegroundColor(StandardColors.WHITE);
1,234,162
private void addIfCollectedValue() {<NEW_LINE>context.nodeSubtype.addMethod(MethodSpec.methodBuilder("getKeyReference").addModifiers(context.publicFinalModifiers()).returns(Object.class).addStatement("$1T valueRef = ($1T) $2L.get(this)", valueReferenceType(), varHandleName("value")).addStatement("return valueRef.getKey...
.of("NullAway", "unchecked"));
1,607,623
public Request<ListThingRegistrationTaskReportsRequest> marshall(ListThingRegistrationTaskReportsRequest listThingRegistrationTaskReportsRequest) {<NEW_LINE>if (listThingRegistrationTaskReportsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListThingRegistrationTaskRepor...
request.setHttpMethod(HttpMethodName.GET);
1,826,290
protected String compileUnits(JRCompilationUnit[] units, String classpath, File tempDirFile) throws JRException {<NEW_LINE>Context context = ContextFactory.getGlobal().enterContext();<NEW_LINE>try {<NEW_LINE>JRPropertiesUtil properties = JRPropertiesUtil.getInstance(jasperReportsContext);<NEW_LINE>int expressionsPerScr...
id, defaultExpressionIdx, oldExpressionIdx, estimatedExpressionIdx);
623,811
public static ListInstancesResponse unmarshall(ListInstancesResponse listInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInstancesResponse.setRequestId(_ctx.stringValue("ListInstancesResponse.RequestId"));<NEW_LINE>listInstancesResponse.setMessage(_ctx.stringValue("ListInstancesResponse.Message"));<NEW_LINE...
(_ctx.integerValue("ListInstancesResponse.Data.TotalCount"));
504,010
public Description matchSwitch(SwitchTree tree, VisitorState state) {<NEW_LINE>PeekingIterator<CaseTree> it = Iterators.peekingIterator(tree.getCases().iterator());<NEW_LINE>while (it.hasNext()) {<NEW_LINE>CaseTree caseTree = it.next();<NEW_LINE>if (!it.hasNext()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>CaseTree next = i...
.toString().trim();
597,668
private Manager initManager(String number, String accountPath) throws IOException, NotRegisteredException, AccountCheckException {<NEW_LINE>if (accountPath == null) {<NEW_LINE>throw new NotRegisteredException();<NEW_LINE>}<NEW_LINE>if (!SignalAccount.accountFileExists(pathConfig.dataPath(), accountPath)) {<NEW_LINE>thr...
, newAci), serviceEnvironmentConfig, userAgent);
1,462,659
private static HubIOStream makeHub2014Stream(String config) {<NEW_LINE>// Get rid of the /hub2/ part<NEW_LINE>config = config.substring(6);<NEW_LINE>String user = null;<NEW_LINE>String pass = null;<NEW_LINE>// poll time in milliseconds<NEW_LINE>int pollTime = 1000;<NEW_LINE>// split off options at the end<NEW_LINE>Stri...
port, pollTime, user, pass);
1,640,513
String[] directoryList(String qualifiedPackageName) {<NEW_LINE>String[] dirList = (String[]) this.directoryCache.get(qualifiedPackageName);<NEW_LINE>if (dirList != null)<NEW_LINE>return dirList;<NEW_LINE>try {<NEW_LINE>// this is a case-sensitive check<NEW_LINE>IResource container = this.binaryFolder.findMember(qualifi...
[index], 0, index);
365,837
public void run() {<NEW_LINE>final Set<Tag> tags = Sets.newHashSet();<NEW_LINE>tags.add(Tag.of(MetricsConstants.TagKeys.SCRIPT_URI, this.scriptUri.toString()));<NEW_LINE>final long start = System.nanoTime();<NEW_LINE>try {<NEW_LINE>final CompiledScript compiledScript = this.loadScript();<NEW_LINE>this.compiledScriptRef...
error("Failed to load script: " + scriptUri, e);
799,887
private void initializeWebSocketExtensions(ChannelPipeline pipeline) {<NEW_LINE>ArrayList<WebSocketServerExtensionHandshaker> extensionHandshakers = new ArrayList<>();<NEW_LINE>if (server.options.getPerFrameWebSocketCompressionSupported()) {<NEW_LINE>extensionHandshakers.add(new DeflateFrameServerExtensionHandshaker(se...
.options.getWebSocketPreferredClientNoContext()));
1,621,524
public static ListPhoneNumbersResponse unmarshall(ListPhoneNumbersResponse listPhoneNumbersResponse, UnmarshallerContext context) {<NEW_LINE>listPhoneNumbersResponse.setRequestId(context.stringValue("ListPhoneNumbersResponse.RequestId"));<NEW_LINE>listPhoneNumbersResponse.setSuccess(context.booleanValue("ListPhoneNumbe...
("ListPhoneNumbersResponse.PhoneNumbers[" + i + "].PrivacyNumber.PoolId"));
503,416
public DescribeEventSourcesConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeEventSourcesConfigResult describeEventSourcesConfigResult = new DescribeEventSourcesConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
JsonToken token = context.getCurrentToken();
247,829
public void install(final Model model, final Map<String, ?> options) {<NEW_LINE>assert model != null;<NEW_LINE>List<ExecuteTask> tasks = getTasks(model);<NEW_LINE>if (tasks.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Registering tasks for: " + model.getId());<NEW_LI...
plugins = new HashMap<>();
1,283,856
private void expireScript(AeiObjects aeiObjects, Manual manual, Task task) throws Exception {<NEW_LINE>ExpireScriptResult expire = new ExpireScriptResult();<NEW_LINE>ScriptContext scriptContext = aeiObjects.scriptContext();<NEW_LINE>CompiledScript cs = aeiObjects.business().element().getCompiledScript(aeiObjects.getWor...
setDate(o.getDate());
435,252
/* }}} */<NEW_LINE>public int query(MBeanServerConnection conn, PluginData pd, /* {{{ */<NEW_LINE>String instance_prefix) {<NEW_LINE>Set<ObjectName> names;<NEW_LINE>Iterator<ObjectName> iter;<NEW_LINE>try {<NEW_LINE>names = conn.queryNames(this._obj_name, /* query = */<NEW_LINE>null);<NEW_LINE>} catch (Exception e) {<N...
this._instance_from.get(i);
362,831
private void purgeXlog(String today) {<NEW_LINE>int retainXLogDays = conf.mgr_purge_xlog_keep_days;<NEW_LINE>if (retainXLogDays > 0) {<NEW_LINE>int lastDeleteDate = CastUtil.cint(DateUtil.yyyymmdd(System.currentTimeMillis() - (DateUtil.MILLIS_PER_DAY * retainXLogDays)));<NEW_LINE>while (true) {<NEW_LINE>String yyyymmdd...
deleteData(yyyymmdd, Mode.XLOG);
291,117
/* This method returns a new function value by taking except. */<NEW_LINE>@Override<NEW_LINE>public final Value takeExcept(ValueExcept ex) {<NEW_LINE>try {<NEW_LINE>if (ex.idx >= ex.path.length)<NEW_LINE>return ex.value;<NEW_LINE>if (this.fcnRcd != null) {<NEW_LINE>return this.fcnRcd.takeExcept(ex);<NEW_LINE>}<NEW_LINE...
fcn.excepts[0] = ex;
218,715
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>new StartupService().onStartupApplication(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>DependencyInjectionService.getInstance().inject(this);<NEW_LINE>setContentView(R.layout.missed_call_activity);<NEW_LINE>Intent intent = getIntent();<NEW_LI...
ContactsContract.Contacts.CONTENT_URI, contactId);
1,679,926
public MergePullRequestByThreeWayResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MergePullRequestByThreeWayResult mergePullRequestByThreeWayResult = new MergePullRequestByThreeWayResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = o...
String currentParentElement = context.getCurrentParentElement();
1,728,077
public void start() {<NEW_LINE>if (inheritableThreadlocalsConstructor != null) {<NEW_LINE>try {<NEW_LINE>this.thread = inheritableThreadlocalsConstructor.newInstance(Thread.currentThread().getThreadGroup(), this, Finalizer.class.<MASK><NEW_LINE>} catch (Throwable t) {<NEW_LINE>logger.log(Level.INFO, "Failed to disable ...
getName(), 0, false);
433,831
public AnAction[] createConsoleActions() {<NEW_LINE>// Initializing prev and next occurrences actions<NEW_LINE>final CommonActionsManager actionsManager = CommonActionsManager.getInstance();<NEW_LINE>final AnAction prevAction = actionsManager.createPrevOccurenceAction(this);<NEW_LINE>prevAction.getTemplatePresentation(...
AnAction autoScrollToTheEndAction = new ScrollToTheEndToolbarAction(myEditor);
886,215
synchronized public void put(final String identifier, final TemplateContentData templateContentData) {<NEW_LINE>if (!locksMap.containsKey(identifier)) {<NEW_LINE>locksMap.put(identifier, new Object());<NEW_LINE>}<NEW_LINE>Object lock = locksMap.get(identifier);<NEW_LINE>synchronized (lock) {<NEW_LINE>int size = templat...
(templateDataMap.get(identifier));
429,316
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ...
Source src = new StreamSource(respMsg);
397,490
public com.amazonaws.services.certificatemanager.model.InvalidTagException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.certificatemanager.model.InvalidTagException invalidTagException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.g...
certificatemanager.model.InvalidTagException(null);
883,492
private void showReplyView() {<NEW_LINE>if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {<NEW_LINE>int centerX = (replyFab.getLeft() + replyFab.getRight()) / 2;<NEW_LINE>int centerY = (replyFab.getTop() + <MASK><NEW_LINE>int finalRadius = Math.max(replyView.getWidth(), replyView.getHeight());<NEW_LINE>mCircul...
replyFab.getBottom()) / 2;
765,823
public int readBytesUntil(int inByte, byte[] dest) {<NEW_LINE>if (inBuffer == readOffset) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>synchronized (buffer) {<NEW_LINE>// look for needle in buffer<NEW_LINE>int found = -1;<NEW_LINE>for (int i = readOffset; i < inBuffer; i++) {<NEW_LINE>if (buffer[i] == (byte) inByte) {<NEW_...
+ "char " + (byte) inByte);
454,651
protected void run() throws Exception {<NEW_LINE>String dwarfExtDebugFilesLocEnvVar = System.getenv("DWARF_EXTERNAL_DEBUG_FILES");<NEW_LINE>if (dwarfExtDebugFilesLocEnvVar == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (!dir.isDirectory()) {<NEW_LINE>Msg.warn(this, "Invalid DWARF external debug file...
File dir = new File(dwarfExtDebugFilesLocEnvVar);
857,533
private // Priority: CompileDynamic > CompileStatic > TypeChecked<NEW_LINE>List<AnnotationNode> distinctAnnotations(AnnotatedNode node) {<NEW_LINE>List<AnnotationNode> <MASK><NEW_LINE>AnnotationNode resultAnnotationNode = null;<NEW_LINE>int resultIndex = -1;<NEW_LINE>for (AnnotationNode annotationNode : node.getAnnotat...
result = new LinkedList<>();
898,077
private static boolean tryNamespaceFromPath(Config config) {<NEW_LINE>LOGGER.debug("Trying to configure client namespace from Kubernetes service account namespace path...");<NEW_LINE>if (Utils.getSystemPropertyOrEnvVar(KUBERNETES_TRYNAMESPACE_PATH_SYSTEM_PROPERTY, true)) {<NEW_LINE>String serviceAccountNamespace = Util...
(serviceAccountNamespace).toPath());
1,657,630
public void completing(DelegateExecution execution, DelegateExecution subProcessInstance) throws Exception {<NEW_LINE>// only data. no control flow available on this execution.<NEW_LINE>ExpressionManager expressionManager = CommandContextUtil.getProcessEngineConfiguration().getExpressionManager();<NEW_LINE>// copy proc...
createExpression(outParameter.getTargetExpression());
810,186
private void handleSegregateFiles(final EncogFileSection section) {<NEW_LINE>final List<AnalystSegregateTarget> nfs = new ArrayList<AnalystSegregateTarget>();<NEW_LINE>boolean first = true;<NEW_LINE>for (final String line : section.getLines()) {<NEW_LINE>if (!first) {<NEW_LINE>final List<String> cols = EncogFileSection...
AnalystSegregateTarget[nfs.size()];
1,004,916
public void partVisible(final IWorkbenchPartReference partRef) {<NEW_LINE>final IWorkbenchPart part = partRef.getPart(false);<NEW_LINE>if ((part != null) && (part instanceof ModelEditor)) {<NEW_LINE>final ModelEditor editor = (ModelEditor) part;<NEW_LINE>final TLCModelLaunchDataProvider provider;<NEW_LINE>final Model m...
UIHelper.findView(TLCErrorView.ID);
725,941
public static void probeServer(final ServerInfo serverInfo) {<NEW_LINE>final String key = serverInfo.getName();<NEW_LINE>serverInfo.ping(new Callback<ServerPing>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void done(ServerPing serverPing, Throwable throwable) {<NEW_LINE>if (throwable == null && serverPing != null ...
.getConfigurationProvider().saveConfig();
1,542,240
public void execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder target, ArgumentList args, String label, CommandPermission permission) {<NEW_LINE>// cast to user<NEW_LINE>// although this command is build as a sharedsubcommand,<NEW_LINE>// it is only added to the listings for users.<NEW_LINE>User user = (Us...
send(sender, user, group);
521,030
public void revert(INDArray array, INDArray maskArray, MinMaxStats stats) {<NEW_LINE>// Subtract target range minimum value<NEW_LINE>array.subi(minRange);<NEW_LINE>// Scale by target range<NEW_LINE>array.divi(maxRange - minRange);<NEW_LINE>if (array.rank() <= 2) {<NEW_LINE>array.muliRowVector(stats.getRange());<NEW_LIN...
)), array, 1));
1,502,434
final DisassociateEnclaveCertificateIamRoleResult executeDisassociateEnclaveCertificateIamRole(DisassociateEnclaveCertificateIamRoleRequest disassociateEnclaveCertificateIamRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateEnclaveCertificateIamRoleRequest);<NEW_LINE>AWSReque...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,184,711
public void logout() {<NEW_LINE>final ServletRequestContext servletRequestContext = exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);<NEW_LINE>HttpServletRequest req = (HttpServletRequest) servletRequestContext.getServletRequest();<NEW_LINE>req.removeAttribute(KeycloakUndertowAccount.class.getName());<NEW_L...
KeycloakSecurityContext.class.getName());
1,565,846
public static void validateTimestampProperties(EventType eventType, String startTimestampProperty, String endTimestampProperty) throws ConfigurationException {<NEW_LINE>if (startTimestampProperty != null) {<NEW_LINE>if (eventType.getGetter(startTimestampProperty) == null) {<NEW_LINE>throw new ConfigurationException("De...
type.getName() + "'");
381,468
final DeleteInstanceProfileResult executeDeleteInstanceProfile(DeleteInstanceProfileRequest deleteInstanceProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInstanceProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
63,308
public void testConfigChangeConnectionCastingEnabled() throws Exception {<NEW_LINE>DataSource ds10 = (DataSource) new InitialContext().lookup("java:comp/env/jdbc/dsfat10ref2");<NEW_LINE>Connection con = ds10.getConnection();<NEW_LINE>try {<NEW_LINE>org.apache.derby.iapi.jdbc.EngineConnection derbyCon = (org.apache.derb...
.iapi.jdbc.EngineConnection) con;
1,334,366
public Optional<List<ItemStack>> match(List<ItemStack> stacks) {<NEW_LINE>List<Ingredient> inputsMissing = new ArrayList<>(inputs);<NEW_LINE>List<ItemStack> <MASK><NEW_LINE>for (ItemStack stack : stacks) {<NEW_LINE>if (stack.isEmpty()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (inputsMissing.isEmpty()) {<NEW_LINE>bre...
stacksToRemove = new ArrayList<>();
1,743,443
private byte[] generateKey(KeyDerivationFunc pbkdAlgorithm, String purpose, char[] password) throws IOException {<NEW_LINE>byte[] encPassword = PBEParametersGenerator.PKCS12PasswordToBytes(password);<NEW_LINE>byte[] differentiator = PBEParametersGenerator.<MASK><NEW_LINE>int keySizeInBytes;<NEW_LINE>if (MiscObjectIdent...
PKCS12PasswordToBytes(purpose.toCharArray());
777,474
public static final void handleESIPostProcessing(CacheProxyResponse response, FragmentInfo fragmentInfo, boolean exceptionThrown) throws IOException {<NEW_LINE>int esiVersion = response<MASK><NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "handleESIPostProcessing() esiVersion=" + esiVersion);<NEW_LINE>// check...
.getFragmentComposer().getESIVersion();
257,270
public RestResultBean doPostRandomPasswordJson(final RestRequest restRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final JsonInput jsonInput = RestUtility.deserializeJsonBody(restRequest, JsonInput.class);<NEW_LINE>try {<NEW_LINE>final JsonOutput jsonOutput = doOperation(restRequest, jsonInput);<NEW...
e.getMessage(), e);
783,080
public boolean isGetterMethod(Method m) throws SecurityException, NoSuchFieldException {<NEW_LINE>Boolean cachedIsGetter = isGetterCache.get(m);<NEW_LINE>if (cachedIsGetter != null) {<NEW_LINE>return cachedIsGetter;<NEW_LINE>}<NEW_LINE>String methodName = m.getName();<NEW_LINE>int prefixLength;<NEW_LINE>Class<?> clz = ...
isGetterCache.put(m, false);
1,097,562
public static GetInstanceConfigResponse unmarshall(GetInstanceConfigResponse getInstanceConfigResponse, UnmarshallerContext context) {<NEW_LINE>getInstanceConfigResponse.setRequestId(context.stringValue("GetInstanceConfigResponse.RequestId"));<NEW_LINE>getInstanceConfigResponse.setSuccess(context.booleanValue("GetInsta...
(context.integerValue("GetInstanceConfigResponse.HttpStatusCode"));
1,836,238
public synchronized XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>// stream size first, as it matters more and the files section can be long<NEW_LINE><MASK><NEW_LINE>builder.humanReadableField(Fields.TOTAL_IN_BYTES, Fields.TOTAL, new ByteSizeValue(totalBytes()));<NEW_L...
builder.startObject(Fields.SIZE);
1,176,861
public void deleteDNSRecord(String dnsName, String dnsType, String hostedZoneID) {<NEW_LINE>Validate.notEmpty(dnsName);<NEW_LINE>Validate.notEmpty(dnsType);<NEW_LINE>if (dnsType.equals("A") || dnsType.equals("AAAA") || dnsType.equals("CNAME")) {<NEW_LINE>LOGGER.info(String.format("Deleting DNS Route 53 record %s", dnsN...
" (" + dnsType + ") in zone " + hostedZoneID);
520,616
private static <T> TableUdaf<T, Map<T, Long>, Map<T, Long>> histogram() {<NEW_LINE>return new TableUdaf<T, Map<T, Long>, Map<T, Long>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Map<T, Long> initialize() {<NEW_LINE>return Maps.newHashMap();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Map<T, Long> aggr...
k, v, Long::sum);
1,564,143
public void readFields(DataInput dataInput) throws IOException {<NEW_LINE>// load iterators<NEW_LINE>long iterSize = dataInput.readInt();<NEW_LINE>if (iterSize > 0)<NEW_LINE>iterators = new ArrayList<>();<NEW_LINE>for (int i = 0; i < iterSize; i++) iterators.add(new IteratorSetting(dataInput));<NEW_LINE>// load ranges<...
long rangeSize = dataInput.readInt();
1,564,703
public void putExtra(String key, Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (value instanceof String) {<NEW_LINE>intent.putExtra(key, (String) value);<NEW_LINE>} else if (value instanceof Boolean) {<NEW_LINE>intent.putExtra(key, (Boolean) value);<NEW_LINE>} else if (value inst...
(key, (Long) value);
1,694,621
public Boolean call(StoreTransaction txh) throws BackendException {<NEW_LINE>ListMultimap<StaticBuffer, Entry> mutations = ArrayListMultimap.create();<NEW_LINE>for (MessageEnvelope env : msgEnvelopes) {<NEW_LINE>mutations.put(<MASK><NEW_LINE>long ts = env.entry.getColumn().getLong(0);<NEW_LINE>log.debug("Preparing to w...
env.key, env.entry);
268,442
public com.amazonaws.services.appconfig.model.InternalServerException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appconfig.model.InternalServerException internalServerException = new com.amazonaws.services.appconfig.model.InternalServerException(null);<NEW_...
JsonToken token = context.getCurrentToken();
1,361,294
public void send(@NonNull final RequestToProcurementWeb requestToProcurementWeb) {<NEW_LINE>final byte[] messageAsBytes;<NEW_LINE>try {<NEW_LINE>messageAsBytes = Constants.PROCUREMENT_WEBUI_OBJECT_MAPPER.writeValueAsBytes(requestToProcurementWeb);<NEW_LINE>} catch (final JsonProcessingException e) {<NEW_LINE>throw new ...
messageProperties.setContentType(MessageProperties.CONTENT_TYPE_JSON);
1,012,028
protected void onPrepareRightNavigationDrawerMenu(Menu menu) {<NEW_LINE>super.onPrepareRightNavigationDrawerMenu(menu);<NEW_LINE>MenuItem milestoneFilterItem = menu.findItem(R.id.filter_by_milestone);<NEW_LINE>if (milestoneFilterItem != null) {<NEW_LINE>final String subtitle = mSelectedMilestone == null ? getString(R.s...
R.string.issue_filter_by_no_milestone) : mSelectedMilestone;
23,662
public static long parseDuration(String str) throws IllegalArgumentException {<NEW_LINE>if (str == null)<NEW_LINE>return 0;<NEW_LINE>// Check for ISO_8601 format<NEW_LINE>if (str.startsWith("P")) {<NEW_LINE>// A common mistake is when the minutes format is intended but the month format is specified<NEW_LINE>// e.g. one...
dur.getTimeInMillis(STATIC_DATE) / 1000;
1,350,618
private int sendRedirects(final ArrayList<ClusterSession> redirectSessions, final long nowNs) {<NEW_LINE>int workCount = 0;<NEW_LINE>for (int lastIndex = redirectSessions.size() - 1, i = lastIndex; i >= 0; i--) {<NEW_LINE>final ClusterSession <MASK><NEW_LINE>final EventCode eventCode = EventCode.REDIRECT;<NEW_LINE>fina...
session = redirectSessions.get(i);
1,075,214
public static void main(String[] args) {<NEW_LINE>QuickUnionPathCompression quickUnionPathCompression = new Exercise12_QuickUnionPathCompression().new QuickUnionPathCompression(10);<NEW_LINE>quickUnionPathCompression.union(0, 1);<NEW_LINE>quickUnionPathCompression.union(2, 3);<NEW_LINE>quickUnionPathCompression.union(3...
"Components: " + quickUnionPathCompression.count + " Expected: 7");
1,565,991
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndMaxLengthAndAllElementsNotNull(sources, 2, 3);<NEW_LINE>final Object source = sources[0];<NEW_LINE>final Object target = sources[1];<NEW_LINE>AbstractNo...
NodeInterface s = rel.getSourceNode();
600,196
private void handleAsyncError(boolean forceQueue, IOException exception, TCPReadCompletedCallback inCallback) {<NEW_LINE>boolean fireHere = true;<NEW_LINE>if (forceQueue) {<NEW_LINE>// Error must be returned on a separate thread.<NEW_LINE>// Reuse queuedWork object (performance), but reset the error parameters.<NEW_LIN...
EventEngine events = SSLChannelProvider.getEventService();
498,625
private void capabilityObject(DesiredCapabilities desiredCapabilities, JSONObject platFormCapabilities, String key) {<NEW_LINE>String appCapability = "app";<NEW_LINE>if (appCapability.equals(key)) {<NEW_LINE>Object values = platFormCapabilities.get(appCapability);<NEW_LINE>List<HostArtifact> hostArtifacts = ArtifactsUp...
, platFormCapabilities.get(key));
1,816,290
public void cellPaint(GC gc, TableCellSWT cell) {<NEW_LINE>Subscription sub = (Subscription) cell.getDataSource();<NEW_LINE>Rectangle bounds = cell.getBounds();<NEW_LINE>bounds.width -= 5;<NEW_LINE>bounds.height -= 7;<NEW_LINE>bounds.x += 2;<NEW_LINE>bounds.y += 3;<NEW_LINE>gc.setBackground(ColorCache.getColor(gc.getDe...
, 200, 200, 200));
1,531,565
public static synchronized JSFVersion forProject(@NonNull final Project project) {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("project", project);<NEW_LINE>WebModule webModule = WebModule.<MASK><NEW_LINE>if (webModule != null) {<NEW_LINE>return forWebModule(webModule);<NEW_LINE>} else {<NEW_LINE>ClassPathProvider c...
getWebModule(project.getProjectDirectory());
1,520,919
public void calc(ComContext context) {<NEW_LINE>BoostingObjs boostingObjs = context.getObj(InitBoostingObjs.BOOSTING_OBJS);<NEW_LINE>if (boostingObjs.inWeakLearner) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.info("taskId: {}, {} start", context.getTaskId(), Bagging.class.getSimpleName());<NEW_LINE>if (LossUtils.isRanki...
.indices[numBaggingInstances++] = j;
285,290
public ArrayList[][] readSavableArrayListArray2D(String name, ArrayList[][] defVal) throws IOException {<NEW_LINE>BinaryClassField field = cObj.nameFields.get(name);<NEW_LINE>if (field == null || !fieldData.containsKey(field.alias))<NEW_LINE>return defVal;<NEW_LINE>Object value = fieldData.get(field.alias);<NEW_LINE>if...
savables[i][j]);
1,291,010
public List<ScalarType<?>> createTypes(DatabaseConfig config, Object objectMapper) {<NEW_LINE>List<ScalarType<?>> list = new ArrayList<>();<NEW_LINE>list.add(new ScalarTypePgisPoint());<NEW_LINE>list.add(new ScalarTypePgisPolygon());<NEW_LINE>list<MASK><NEW_LINE>list.add(new ScalarTypePgisMultiPolygon());<NEW_LINE>list...
.add(new ScalarTypePgisLineString());
1,287,860
public void executeIncrementalDataPurging() {<NEW_LINE>StringBuilder tableNames = new StringBuilder();<NEW_LINE>if (isPurgingEnabled()) {<NEW_LINE>if (scheduledPurgingTaskStatus != null) {<NEW_LINE>scheduledPurgingTaskStatus.cancel(true);<NEW_LINE>scheduledPurgingTaskStatus = siddhiQueryContext.getSiddhiAppContext().ge...
aggregationDefinition.getId() + " aggregation");
1,114,482
public SkipTaskRequest fromProto(SkipTaskRequestPb.SkipTaskRequest from) {<NEW_LINE>SkipTaskRequest to = new SkipTaskRequest();<NEW_LINE>Map<String, Object> taskInputMap = new HashMap<String, Object>();<NEW_LINE>for (Map.Entry<String, Value> pair : from.getTaskInputMap().entrySet()) {<NEW_LINE>taskInputMap.put(pair.get...
(from.getTaskInputMessage()));
742,509
private static void appendChunkOffsets(TrakBox trakBox1, TrakBox trakBox2) {<NEW_LINE>ChunkOffsetsBox stco1 = trakBox1.getStco();<NEW_LINE><MASK><NEW_LINE>ChunkOffsetsBox stco2 = trakBox2.getStco();<NEW_LINE>ChunkOffsets64Box co642 = trakBox2.getCo64();<NEW_LINE>long[] off1 = stco1 == null ? co641.getChunkOffsets() : s...
ChunkOffsets64Box co641 = trakBox1.getCo64();
1,151,369
public static void horizontal5(Kernel1D_S32 kernel, GrayU8 image, GrayI16 dest) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel...
int jEnd = j + width - radius;
45,680
/*<NEW_LINE>* superGet - get from live cache<NEW_LINE>*/<NEW_LINE>public Object superGet(Object id) {<NEW_LINE>if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {<NEW_LINE>LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[SUPER_GE...
sess = super.get(id);
1,585,283
public void update(Observable observable, Object data) {<NEW_LINE>if (observable instanceof GeoJsonFeature) {<NEW_LINE>GeoJsonFeature <MASK><NEW_LINE>boolean featureIsOnMap = getAllFeatures().get(feature) != FEATURE_NOT_ON_MAP;<NEW_LINE>if (featureIsOnMap && feature.hasGeometry()) {<NEW_LINE>// Checks if the feature ha...
feature = ((GeoJsonFeature) observable);
14,648
public ParameterGroup unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterGroup parameterGroup = new ParameterGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,446,120
public void testTransactionContextPropagatedToCompletableFuture() throws Exception {<NEW_LINE>ManagedExecutorService executor = InitialContext.doLookup("java:module/concurrent/txexecutor");<NEW_LINE>Object txKey;<NEW_LINE>CompletableFuture<Object> stage1 = executor.newIncompleteFuture();<NEW_LINE>CompletableFuture<?> s...
expectedTxKey, tranSyncRegistry.getTransactionKey());
1,843,455
private Result<Object> verifyFile(String name, ResourceType type, MultipartFile file) {<NEW_LINE>Result<Object> result = new Result<>();<NEW_LINE>putMsg(result, Status.SUCCESS);<NEW_LINE>if (file != null) {<NEW_LINE>// file is empty<NEW_LINE>if (file.isEmpty()) {<NEW_LINE>logger.error("file is empty: {}", RegexUtils.es...
putMsg(result, Status.UDF_RESOURCE_SUFFIX_NOT_JAR);