idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
632,419
private void copyFrom(MProcess process, int key) throws SQLException {<NEW_LINE>// Get Values<NEW_LINE>int columnId = getSelectionAsInt(key, "PARAMETER_AD_Column_ID");<NEW_LINE>int reportViewId = getSelectionAsInt(key, "PARAMETER_AD_ReportView_ID");<NEW_LINE>int processParaId = getSelectionAsInt(key, "PARAMETER_AD_Proc...
setHelp(column.getHelp());
550,404
public Object createResource(ResourceInfo info) throws Exception {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "createResource", info);<NEW_LINE>Object resource;<NEW_LINE>try {<NEW_LINE>ResourceFactory factory = tracker.wait...
resource = factory.createResource(info);
409,831
public void visitListInit(EListInit userListInitNode, ScriptScope scriptScope) {<NEW_LINE>ListInitializationNode irListInitializationNode = new ListInitializationNode(userListInitNode.getLocation());<NEW_LINE>irListInitializationNode.attachDecoration(new IRDExpressionType(scriptScope.getDecoration(userListInitNode, Val...
class).standardPainlessConstructor()));
1,183,225
public void deregisterObject(JRVirtualizable o) {<NEW_LINE>String uid = o.getUID();<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("deregistering " + uid);<NEW_LINE>}<NEW_LINE>// try to remove virtual data<NEW_LINE>try {<NEW_LINE>dispose(o);<NEW_LINE>} catch (Exception e) {<NEW_LINE>log.error("Error removing v...
oldOut = pagedOut.remove(uid);
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...
"UserName").get(0));
355,163
private void runStateMachineOperation(final String initialStateName, final TransactionType transactionType, final LeavingStateCallback leavingStateCallback, final OperationCallback operationCallback, final EnteringStateCallback enteringStateCallback, final Boolean includeDeletedPaymentMethod, final PaymentStateContext ...
initialState = initialStateMachine.getState(initialStateName);
1,783,478
private boolean isNetworkAddressInCidr(String networkUuid1, String networkUuid2) {<NEW_LINE>L3NetworkVO l3vo1 = Q.New(L3NetworkVO.class).eq(L3NetworkVO_.uuid, networkUuid1).find();<NEW_LINE>L3NetworkVO l3vo2 = Q.New(L3NetworkVO.class).eq(L3NetworkVO_.<MASK><NEW_LINE>List<IpRangeInventory> ipInvs1 = IpRangeHelper.getNor...
uuid, networkUuid2).find();
1,041,122
private byte printKeywordsFor(GherkinDialect dialect) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>List<List<String>> table = new ArrayList<>();<NEW_LINE>addKeywordRow(table, "feature", dialect.getFeatureKeywords());<NEW_LINE>addKeywordRow(table, "background", dialect.getBackgroundKeywords());<NEW_L...
"given", dialect.getGivenKeywords());
920,724
private static Condition convIn2Or(Relation relation, boolean supportIn) {<NEW_LINE>assert relation.relation() == Condition.RelationType.IN;<NEW_LINE><MASK><NEW_LINE>Object valueObject = relation.value();<NEW_LINE>E.checkArgument(valueObject instanceof List, "Expect list value for IN condition: %s", relation);<NEW_LINE...
Object key = relation.key();
207,009
public void assignLabels(LingoProcessingContext context, DoubleMatrix2D stemCos, IntIntHashMap filteredRowToStemIndex, DoubleMatrix2D phraseCos) {<NEW_LINE>final PreprocessingContext preprocessingContext = context.preprocessingContext;<NEW_LINE>final <MASK><NEW_LINE>final int[] labelsFeatureIndex = preprocessingContext...
int firstPhraseIndex = preprocessingContext.allLabels.firstPhraseIndex;
1,789,580
protected void doPrefetch(final File tokenFile, final Props props, final Logger logger, final String userToProxy) throws HadoopSecurityManagerException {<NEW_LINE>// Create suffix to be added to kerberos principal<NEW_LINE>final String suffix = getFQNSuffix(props);<NEW_LINE>final String userToProxyFQN = userToProxy + s...
userToProxy, props, logger, cred);
1,392,828
public void shouldAddPipelineToTheTopOfConfigFile() throws Exception {<NEW_LINE>goConfigDao.load();<NEW_LINE>PipelineConfig pipelineConfig = PipelineMother.twoBuildPlansWithResourcesAndSvnMaterialsAtUrl("addedFirst", "ut", "www.spring.com");<NEW_LINE>PipelineConfig pipelineConfig2 = PipelineMother.twoBuildPlansWithReso...
indexOfFirst = content.indexOf("addedFirst");
1,597,170
public HashMap pageContent(String query, String sortBy, String perPage, String currentPageNumber) {<NEW_LINE>HashMap retMap = new HashMap();<NEW_LINE>int pageNumber = 1;<NEW_LINE>try {<NEW_LINE>pageNumber = Integer.parseInt(currentPageNumber);<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>int displayPerPage = Co...
(i).getIdentifier());
1,217,597
protected void encodeScript(FacesContext context, InputTextarea inputTextarea) throws IOException {<NEW_LINE>boolean autoResize = inputTextarea.isAutoResize();<NEW_LINE>String counter = inputTextarea.getCounter();<NEW_LINE>WidgetBuilder wb = getWidgetBuilder(context);<NEW_LINE>wb.init("InputTextarea", inputTextarea).at...
getScrollHeight(), Integer.MAX_VALUE);
456,775
public static void processApiOperation(ApiOperation apiOperation, Resource resource, Operation operation) {<NEW_LINE>if (!StringUtils.isNullOrEmpty(apiOperation.nickname())) {<NEW_LINE>operation.setName(apiOperation.nickname());<NEW_LINE>}<NEW_LINE>if (!StringUtils.isNullOrEmpty(apiOperation.value())) {<NEW_LINE>operat...
setMethod(apiOperation.httpMethod());
749,573
public void drawBoundingBoxes(DetectedObjects detections) {<NEW_LINE>// Make image copy with alpha channel because original image was jpg<NEW_LINE>convertIdNeeded();<NEW_LINE>Graphics2D g = (Graphics2D) image.getGraphics();<NEW_LINE>int stroke = 2;<NEW_LINE>g.setStroke(new BasicStroke(stroke));<NEW_LINE>g.setRenderingH...
.getHeight() * imageHeight));
1,033,461
String testLdap(@BindRequest LdapConfigDto configDto) throws Exception {<NEW_LINE>// capturing newPlainPassword separately so that newPassword doesn't go through<NEW_LINE>// encryption/decryption which has possibility of throwing<NEW_LINE>// org.glowroot.common.repo.util.LazySecretKey.SymmetricEncryptionKeyMissingExcep...
passwordOverride, configRepository.getLazySecretKey());
778,730
private static int combinePixels(int rgb1, int rgb2) {<NEW_LINE>// first ARGB<NEW_LINE>int a1 = (rgb1 >> 24) & 0xff;<NEW_LINE>int r1 = <MASK><NEW_LINE>int g1 = (rgb1 >> 8) & 0xff;<NEW_LINE>int b1 = rgb1 & 0xff;<NEW_LINE>// second ARGB<NEW_LINE>int a2 = (rgb2 >> 24) & 0xff;<NEW_LINE>int r2 = (rgb2 >> 16) & 0xff;<NEW_LIN...
(rgb1 >> 16) & 0xff;
506,723
/* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBEngineInterface#sqlAction_enforceCheckConstraints(java.lang.String, java.lang.String, java.lang.String, java.lang.String)<NEW_LINE>*/<NEW_LINE>public String sqlAction_enforceCheckConstraints(String catalogName, String schemaName, String tableName, String ...
(checkExpression).append(") ");
1,499,331
private void declareField(final VariableDeclarationContext ctx, final ModifierManager modifierManager, final ClassNode variableType, final ClassNode classNode, final int i, final VariableExpression variableExpression, final String fieldName, final int modifiers, final Expression initialValue) {<NEW_LINE>FieldNode exist...
fieldName, modifiers, variableType, initialValue);
607,077
public static String computeFitText(JTable table, int rowIdx, int columnIdx, String text) {<NEW_LINE>// NOI18N<NEW_LINE>if (text == null)<NEW_LINE>text = "";<NEW_LINE>if (text.length() <= VISIBLE_START_CHARS + 3)<NEW_LINE>return text;<NEW_LINE>FontMetrics fm = table.getFontMetrics(table.getFont());<NEW_LINE>int width =...
text.substring(0, i);
371,024
private static List<String> readConfig(String filename) {<NEW_LINE>File userHome = new File<MASK><NEW_LINE>// search for config file<NEW_LINE>String[] configDirs = { // KDE 5<NEW_LINE>// KDE 4<NEW_LINE>".config", // KDE 3<NEW_LINE>".kde4/share/config", ".kde/share/config" };<NEW_LINE>File file = null;<NEW_LINE>for (Str...
(System.getProperty("user.home"));
278,460
public static Savable fromName(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException {<NEW_LINE>className = remapClass(className);<NEW_LINE>Constructor noArgConstructor = findNoArgConstructor(className);<NEW_LINE>noArgConstructor.setAccessible(true);<...
"Some types need to have the BinaryImporter set up in a special way. Please double-check the setup.", e.getMessage());
134,341
private PluginOperationResult executeUpdate() throws Exception {<NEW_LINE>List<String> updateablePlugins = findUpdateCandidates();<NEW_LINE>List<String> erroneousPlugins = Lists.newArrayList();<NEW_LINE>List<String> delayedPlugins = Lists.newArrayList();<NEW_LINE>// update only a specific plugin if it is updatable and ...
result.setResultCode(PluginResultCode.NOK);
1,310,513
public static ImmutablePair<Contract, Contract> loadTopicControlContract(Client client, String controlAddress, int version, int timeout) throws BrokerException {<NEW_LINE>// support version list<NEW_LINE>switch(version) {<NEW_LINE>case 10:<NEW_LINE>TopicController topicController = (TopicController) Web3SDK2Wrapper.loa...
log.error("unknown solidity version: {}", version);
1,556,181
public ResponseEntity<Void> createUserWithHttpInfo(User body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when...
LinkedMultiValueMap<String, String>();
500,477
final ListKeysResult executeListKeys(ListKeysRequest listKeysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listKeysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
invoke(request, responseHandler, executionContext);
319,445
private static int run(CommandContext<CommandSourceStack> context, Operation op, int count) throws CommandSyntaxException {<NEW_LINE>if (count == 0 && op != Operation.SET) {<NEW_LINE>throw INVALID_SLOT_COUNT.create();<NEW_LINE>}<NEW_LINE>SlotType slotType = <MASK><NEW_LINE>List<LivingEntity> successes = HeldModifiableI...
SlotTypeArgument.getSlotType(context, "slot_type");
175,230
public boolean deleteBackup(final Long backupId) {<NEW_LINE>final BackupVO <MASK><NEW_LINE>if (backup == null) {<NEW_LINE>throw new CloudRuntimeException("Backup " + backupId + " does not exist");<NEW_LINE>}<NEW_LINE>final Long vmId = backup.getVmId();<NEW_LINE>final VMInstanceVO vm = vmInstanceDao.findByIdIncludingRem...
backup = backupDao.findByIdIncludingRemoved(backupId);
377,847
public boolean copyDir(URI srcUri, URI dstUri) throws IOException {<NEW_LINE>LOGGER.debug("copy is called with srcUri='{}', dstUri='{}'", srcUri, dstUri);<NEW_LINE>// If src and dst are the same, do nothing.<NEW_LINE>if (srcUri.equals(dstUri)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Remove the destination direct...
getHost(), path, null);
1,322,397
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String tmpVar1 = environment.getNextVariableString();
1,165,961
private void configureClearText(SocketChannel ch) {<NEW_LINE>final ChannelPipeline p = ch.pipeline();<NEW_LINE>final HttpServerCodec sourceCodec = new HttpServerCodec();<NEW_LINE>final HttpServerUpgradeHandler upgradeHandler = new HttpServerUpgradeHandler(sourceCodec, upgradeCodecFactory);<NEW_LINE>final CleartextHttp2...
.addLast(new UserEventLogger());
1,810,957
public boolean isAvailable() {<NEW_LINE>if (available != null) {<NEW_LINE>return available;<NEW_LINE>}<NEW_LINE>if (generatorList != null && !generatorList.isEmpty()) {<NEW_LINE>String path = System.getenv("PATH");<NEW_LINE>if (path == null) {<NEW_LINE>path = System.getenv("Path");<NEW_LINE>}<NEW_LINE>if (path == null)...
filePathMap.put(s, filePath);
132,656
private void doCreateFormatCombo() {<NEW_LINE>FormData data;<NEW_LINE>// Text label for combo box<NEW_LINE>formatLabel = getWidgetFactory().createCLabel(getSectionComposite(), "Format:");<NEW_LINE>data = new FormData();<NEW_LINE>data.top = new FormAttachment(getTextWidget(), ITabbedPropertyConstants.VSPACE, SWT.BOTTOM)...
formatLabel, 0, SWT.RIGHT);
1,685,348
protected void startPersistThread() {<NEW_LINE>final Granularity segmentGranularity = schema.getGranularitySpec().getSegmentGranularity();<NEW_LINE>final Period windowPeriod = config.getWindowPeriod();<NEW_LINE>final DateTime truncatedNow = segmentGranularity.bucketStart(DateTimes.nowUtc());<NEW_LINE>final long windowM...
getShardSpec().getPartitionNum());
454,990
private static String outputMapResultsDefaultKeys(Map<String, Counter<Result>> tagResults, String[] keyOrder) {<NEW_LINE>StringBuilder output = new StringBuilder();<NEW_LINE>Result[] order = new Result[] { Result.CORRECT, Result.INCORRECT, Result.SKIPPED };<NEW_LINE>for (String tag : keyOrder) {<NEW_LINE>Counter<Result...
.getCount(result) + "\t");
656,760
final AdminDeleteUserAttributesResult executeAdminDeleteUserAttributes(AdminDeleteUserAttributesRequest adminDeleteUserAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminDeleteUserAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
false), new AdminDeleteUserAttributesResultJsonUnmarshaller());
1,056,737
static // smaller tablets into large tablets.<NEW_LINE>SortedMap<KeyExtent, Bulk.Files> mergeOverlapping(SortedMap<KeyExtent, Bulk.Files> mappings) {<NEW_LINE>List<KeyExtent> extents = new ArrayList<<MASK><NEW_LINE>for (KeyExtent ke : extents) {<NEW_LINE>Set<KeyExtent> overlapping = KeyExtent.findOverlapping(ke, mappin...
>(mappings.keySet());
259,849
final StartSnapshotResult executeStartSnapshot(StartSnapshotRequest startSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
42,649
public V forcePut(K key, V value) {<NEW_LINE>boolean containsValue = this.inverse.delegate.containsKey(value);<NEW_LINE>if (containsValue) {<NEW_LINE>if (AbstractMutableBiMap.nullSafeEquals(key, this.inverse.delegate.get(value))) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>boolean containsKey = this.delegat...
delegate.put(value, key);
69,848
public void layout(LayoutContext c, int contentStart) {<NEW_LINE>boolean running = c.isPrint() && getTable().getStyle().isPaginateTable();<NEW_LINE>int prevExtraTop = 0;<NEW_LINE>int prevExtraBottom = 0;<NEW_LINE>if (running) {<NEW_LINE>prevExtraTop = c.getExtraSpaceTop();<NEW_LINE>prevExtraBottom = c.getExtraSpaceBott...
super.layout(c, contentStart);
721,921
protected com.liferay.portal.model.PasswordTracker update(com.liferay.portal.model.PasswordTracker passwordTracker) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>if (passwordTracker.isNew() || passwordTracker.isModified()) {<NEW_LINE>session = openSession();<NEW_LINE>if (passwordTrac...
), passwordTracker.getPassword());
646,417
/* Spreading */<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>@Deprecated<NEW_LINE>@Override<NEW_LINE>public void randomTick(BlockState state, ServerLevel world, BlockPos pos, Random random) {<NEW_LINE>// based on vanilla logic, reimplemented to remove dirt hardcode<NEW_LINE>// prevent loading unloaded chunks<NEW_...
is(Blocks.SNOW)));
900,534
public static Ticker adaptTicker(BitcoinChartsTicker[] bitcoinChartsTickers, CurrencyPair currencyPair) {<NEW_LINE>for (int i = 0; i < bitcoinChartsTickers.length; i++) {<NEW_LINE>if (bitcoinChartsTickers[i].getSymbol().equals(currencyPair.counter.getCurrencyCode())) {<NEW_LINE>BigDecimal last = bitcoinChartsTickers[i]...
].getLatestTrade() * 1000L);
1,383,815
private int readFromInputWhileSpanQuickCheckYes() {<NEW_LINE>afterQuickCheckYes = true;<NEW_LINE>int end = normalizer.spanQuickCheckYes(inputBuffer);<NEW_LINE>if (end > 0) {<NEW_LINE>int cp;<NEW_LINE>if (end == inputBuffer.length() && !normalizer.hasBoundaryAfter(cp = inputBuffer.codePointBefore(end))) {<NEW_LINE>after...
end -= Character.charCount(cp);
366,395
public HealthbotManager authenticate(TokenCredential credential, AzureProfile profile) {<NEW_LINE>Objects.requireNonNull(credential, "'credential' cannot be null.");<NEW_LINE>Objects.requireNonNull(profile, "'profile' cannot be null.");<NEW_LINE>if (retryPolicy == null) {<NEW_LINE>retryPolicy = new RetryPolicy("Retry-A...
.add(new RequestIdPolicy());
545,011
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {<NEW_LINE>// Reference the data source.<NEW_LINE>final DataSource source = mysqlDataSource;<NEW_LINE>final int count = Common.normalise(req.getParameter(PARAMETER_QUERIES));<NEW_LINE>final World[] worlds = new Wo...
setRandomNumber(Common.getRandom());
1,821,778
protected List<Amenity> doInBackground(Void... voids) {<NEW_LINE>FragmentActivity activity = activityRef.get();<NEW_LINE>OsmandApplication application = (OsmandApplication) activity.getApplication();<NEW_LINE>final List<Amenity> results = new ArrayList<>();<NEW_LINE>if (application != null && !isCancelled()) {<NEW_LINE...
getRegions().getWorldRegionsAt(articleLatLon);
124,352
private static <T extends ReferenceListAwareEnum> ImmutableSet<ReferenceListAwareEnum> extractValuesOrNull(final Class<T> clazz) {<NEW_LINE>//<NEW_LINE>// Enum type<NEW_LINE>final T[] enumConstants = clazz.getEnumConstants();<NEW_LINE>if (enumConstants != null) {<NEW_LINE>return ImmutableSet.copyOf(enumConstants);<NEW_...
Check.newException("Invalid values method: " + valuesMethod);
749,755
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.rwesmarthome.internal.communicator.client.RWEClient#execute(java.lang.String,<NEW_LINE>* java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public String execute(String hostname, String clientId, String request, String command) throws IOE...
logger.trace("REQ:" + request);
825,713
public Map<String, Object> createTopicPartitions(String clusterAlias, String topic, int totalCount) {<NEW_LINE>Map<String, Object> targets = new HashMap<String, Object>();<NEW_LINE>int existPartitions = (int) partitionNumbers(clusterAlias, topic);<NEW_LINE>Properties prop = new Properties();<NEW_LINE>prop.put(CommonCli...
targets.put("status", "success");
1,229,472
private void addPrimaryKey(StringBuilder query, List<Column> columns, String name) {<NEW_LINE>checkArgument(columns.stream().anyMatch(c -> c.kind() == Column.Kind.valueOf(Column.Kind.PartitionKey.name())), "At least one partition key must be specified for table or materialized view '%s' %s", name, Arrays.deepToString(c...
Collectors.joining(", ")));
270,426
private void initialize(ApplicationConfigurator applicationConfigurator, InjectionManager injectionManager, Binder customBinder) {<NEW_LINE>LOGGER.config(LocalizationMessages.INIT_MSG(Version.getBuildId()));<NEW_LINE>this.injectionManager = injectionManager;<NEW_LINE>this.injectionManager.register(CompositeBinder.wrap(...
new FeatureConfigurator(RuntimeType.SERVER));
1,042,803
protected void paintInPanel(AffineTransform tran, Graphics2D g2) {<NEW_LINE>super.paintInPanel(tran, g2);<NEW_LINE>BoofSwingUtil.antialiasing(g2);<NEW_LINE>if (controlPanel.translucent > 0) {<NEW_LINE>// this requires some explaining<NEW_LINE>// for some reason it was decided that the transform would apply a translatio...
float translucent = controlPanel.translucent / 100.0f;
796,309
public void loadLibrary() throws IOException {<NEW_LINE>try {<NEW_LINE>// First, try loading path<NEW_LINE>System.loadLibrary(m_libraryName);<NEW_LINE>} catch (UnsatisfiedLinkError ule) {<NEW_LINE>// Then load the hash from the resources<NEW_LINE>String <MASK><NEW_LINE>String resname = RuntimeDetector.getLibraryResourc...
hashName = RuntimeDetector.getHashLibraryResource(m_libraryName);
884,528
public void emptyDeletedNodes(Long nodeId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'nodeId' is set<NEW_LINE>if (nodeId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'nodeId' when calling emptyDeleted...
= new ArrayList<Pair>();
1,573,824
protected void updatePlayer(final Server server, final CommandSource sender, final User user, final String[] args) throws PlayerExemptException {<NEW_LINE>try {<NEW_LINE>final Player player = user.getBase();<NEW_LINE>if (player.getHealth() == 0) {<NEW_LINE>throw new PlayerExemptException(tl("healDead"));<NEW_LINE>}<NEW...
.sendMessage(tl("heal"));
1,022,809
final DescribeCustomRoutingEndpointGroupResult executeDescribeCustomRoutingEndpointGroup(DescribeCustomRoutingEndpointGroupRequest describeCustomRoutingEndpointGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCustomRoutingEndpointGroupRequest);<NEW_LINE>AWSRequestMetrics awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
766,110
private static RowType addMetadataFields(RowType rowType, boolean withOperationField) {<NEW_LINE>List<RowType.RowField> mergedFields = new ArrayList<>();<NEW_LINE>LogicalType metadataFieldType = DataTypes.STRING().getLogicalType();<NEW_LINE>RowType.RowField commitTimeField = new RowType.RowField(HoodieRecord.COMMIT_TIM...
HoodieRecord.FILENAME_METADATA_FIELD, metadataFieldType, "field name");
1,621,109
protected void sendEntriesToSwitch(DatapathId switchId) {<NEW_LINE>IOFSwitch sw = switchService.getSwitch(switchId);<NEW_LINE>if (sw == null)<NEW_LINE>return;<NEW_LINE>String stringId = sw.getId().toString();<NEW_LINE>if ((entriesFromStorage != null) && (entriesFromStorage.containsKey(stringId))) {<NEW_LINE>Map<String,...
message = entries.get(entryName);
1,824,036
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String sessionHandle = InputParser.getQueryParamOrThrowError(req, "sessionHandle", false);<NEW_LINE>assert sessionHandle != null;<NEW_LINE>try {<NEW_LINE>JsonObject userDataInDatabase = Session.getSess...
result.addProperty("status", "OK");
749,403
public final PyObject _ge(PyObject o) {<NEW_LINE>PyObject token = null;<NEW_LINE>PyType t1 = this.getType();<NEW_LINE>PyType t2 = o.getType();<NEW_LINE>if (t1 != t2 && t2.isSubType(t1)) {<NEW_LINE>return o._le(this);<NEW_LINE>}<NEW_LINE>ThreadState ts = Py.getThreadState();<NEW_LINE>try {<NEW_LINE>if (++ts.compareState...
? Py.True : Py.False;
1,683,306
final GetGraphqlApiResult executeGetGraphqlApi(GetGraphqlApiRequest getGraphqlApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGraphqlApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(getGraphqlApiRequest));
1,367,721
public Map<String, Map<String, Object>> asList() {<NEW_LINE>final Map<String, Map<String, Object>> configs = Maps.newLinkedHashMap();<NEW_LINE>for (ConfigurationField f : fields.values()) {<NEW_LINE>final Map<String, Object> config = Maps.newHashMap();<NEW_LINE>config.put("type", f.getFieldType());<NEW_LINE>config.put(...
"attributes", f.getAttributes());
1,503,750
public static Expr buildExpr(Item item) {<NEW_LINE>// Before testing for a list because of RDF terms that are lists: (qtriple).<NEW_LINE>if (item.isNode())<NEW_LINE>return ExprLib.nodeToExpr(item.getNode());<NEW_LINE>Expr expr = null;<NEW_LINE>if (item.isList()) {<NEW_LINE>ItemList list = item.getList();<NEW_LINE>if (l...
item = list.get(1);
1,538,628
public TestStepConfig createNewTestStep(WsdlTestCase testCase, String name) {<NEW_LINE>if (dialog == null) {<NEW_LINE>buildDialog();<NEW_LINE>} else {<NEW_LINE>dialog.setValue(Form.ENDPOINT, "");<NEW_LINE>}<NEW_LINE>params = new XmlBeansRestParamsTestPropertyHolder(testCase, <MASK><NEW_LINE>paramsTable = new RestParams...
RestParametersConfig.Factory.newInstance());
345,637
private void loadSessionsFromRemoteCache(final KeycloakSessionFactory sessionFactory, String cacheName, final int sessionsPerSegment, final int maxErrors) {<NEW_LINE>log.debugf("Check pre-loading sessions from remote cache '%s'", cacheName);<NEW_LINE>KeycloakModelUtils.runJobInTransaction(sessionFactory, new KeycloakSe...
"remoteCacheLoad::" + cacheName, sessionsPerSegment, maxErrors);
1,029,644
void doUncached(Object callable, Object[] scope_w, Signature signature, PKeyword[] kwdefaults, int co_argcount, int co_kwonlyargcount, @Cached PRaiseNode raise, @Cached FindKwDefaultNode findKwDefaultNode, @Cached ConditionProfile missingProfile) {<NEW_LINE>String[] missingNames = new String[co_kwonlyargcount];<NEW_LIN...
findKwDefaultNode.execute(kwdefaults, kwname);
1,320,995
public DiffRequest process(@Nonnull UserDataHolder context, @Nonnull ProgressIndicator indicator) throws DiffRequestProducerException, ProcessCanceledException {<NEW_LINE>if (!isNewFile && file.getFileType() == UnknownFileType.INSTANCE) {<NEW_LINE>return new UnknownFileTypeDiffRequest(file, getName());<NEW_LINE>}<NEW_L...
getName(), context, indicator);
1,482,908
public void testSimpleQueryWithSet(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>QueryClient client = <MASK><NEW_LINE>Query query = new Query();<NEW_LINE>query.setOperationName("allWidgetsSet");<NEW_LINE>query.setQuery("query allWidgetsSet {" + System.lineSeparator() + " allWidgetsSet {...
builder.build(QueryClient.class);
1,311,409
public CodegenExpression evaluateCodegen(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField eventToPublic = TableDeployTimeResolver.makeTableEventToPublicField(table, codegenClassScope, this.getClass(...
refIsNewData = exprSymbol.getAddIsNewData(methodNode);
127,516
public Stream<M> receiveMessages(MessageScope messageScope) {<NEW_LINE>if (messageScope instanceof MessageScope.Global) {<NEW_LINE>M message = vertexMemory.getMessage(vertexId, messageScope);<NEW_LINE>if (message == null)<NEW_LINE>return Stream.empty();<NEW_LINE>else<NEW_LINE>return Stream.of(message);<NEW_LINE>} else ...
.longId()), localMessageScope);
1,630,904
public HeuristicResult apply(MapReduceApplicationData data) {<NEW_LINE>if (!data.getSucceeded()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long totalInputByteSize = 0;<NEW_LINE>MapReduceTaskData[] tasks = data.getMapperData();<NEW_LINE>List<Long> inputByteSizes = new ArrayList<Long>();<NEW_LINE>List<Long> speeds = ne...
getCounters().get(counterName);
453,406
public static void addPartResource(FhirContext theContext, IBase theParameter, String theName, IBaseResource theValue) {<NEW_LINE>BaseRuntimeElementCompositeDefinition<?> def = (BaseRuntimeElementCompositeDefinition<?>) theContext.getElementDefinition(theParameter.getClass());<NEW_LINE>BaseRuntimeChildDefinition partCh...
).addValue(part, name);
1,846,413
public void handle(Request request, Response response) {<NEW_LINE>try {<NEW_LINE>final Protocol protocol = request.getProtocol();<NEW_LINE>if (Protocol.SMTP.equals(protocol) || Protocol.SMTPS.equals(protocol)) {<NEW_LINE>handleSmtp(request, response);<NEW_LINE>} else if (Protocol.POP.equals(protocol) || Protocol.POPS.e...
Level.WARNING, "JavaMail client error", e);
1,089,116
public SQLFuture<List<CursorWithError>> executeBatch(Context ctx, List<String> queryList, @Nullable List<Map<String, ?>> bindVarsList, final VTSession vtSession) throws SQLException {<NEW_LINE>vtSession.checkCallIsAllowed("executeBatch");<NEW_LINE>List<Query.BoundQuery> <MASK><NEW_LINE>if (null != bindVarsList && bindV...
queries = new ArrayList<>();
160,460
void completed(Exception throwable) {<NEW_LINE>boolean needToFire = true;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, <MASK><NEW_LINE>}<NEW_LINE>synchronized (this.completedSemaphore) {<NEW_LINE>// future can already be completed<NEW_LINE>if (this.completed || !this...
"completed", throwable.getMessage());
485,850
List<ChatEmote> findTwitchEmotes(@Nullable String line, String message) {<NEW_LINE>if (line == null)<NEW_LINE>return Collections.emptyList();<NEW_LINE>List<ChatEmote> emotes = new ArrayList<>();<NEW_LINE>Matcher emoteMatcher = emotePattern.matcher(line);<NEW_LINE>while (emoteMatcher.find()) {<NEW_LINE>String emoteId = ...
.parseInt(range[0]);
1,691,269
final GetPermissionPolicyResult executeGetPermissionPolicy(GetPermissionPolicyRequest getPermissionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPermissionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
892,100
private Spliterator<R> arraySplit() {<NEW_LINE>long s = estimateSize();<NEW_LINE>if (s <= 1)<NEW_LINE>return null;<NEW_LINE>int n = batch + BATCH_UNIT;<NEW_LINE>if (n > s)<NEW_LINE>n = (int) s;<NEW_LINE>if (n > MAX_BATCH)<NEW_LINE>n = MAX_BATCH;<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>R[] array = (R[]) new Obj...
index = drainTo(array, this);
609,636
public Object bind(BindableRequest request, EntityBean bean) throws SQLException {<NEW_LINE>Object embeddedId = (bean == null) ? null : foreignAssocOne.getValue(bean);<NEW_LINE><MASK><NEW_LINE>if (embeddedId == null) {<NEW_LINE>for (ImportedIdSimple anImported : imported) {<NEW_LINE>if (anImported.isInclude(update)) {<...
boolean update = request.isUpdate();
187,285
final GetInsightSelectorsResult executeGetInsightSelectors(GetInsightSelectorsRequest getInsightSelectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInsightSelectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudTrail");
1,298,473
ProviderAuthenticationResult handleImplicitFlowTokens(HttpServletRequest req, HttpServletResponse res, String responseState, ConvergedClientConfig clientConfig, Hashtable<String, String> reqParameters) {<NEW_LINE>OidcClientRequest oidcClientRequest = (OidcClientRequest) req.getAttribute(ClientConstants.ATTRIB_OIDC_CLIE...
oidcResult, reqParameters, sslSocketFactory, oidcClientRequest);
694,955
private void loadCpeEcosystemCache() {<NEW_LINE>final Map<Pair<String, String>, String> map = new HashMap<>();<NEW_LINE>try (Connection conn = databaseManager.getConnection();<NEW_LINE>PreparedStatement ps = getPreparedStatement(conn, SELECT_CPE_ECOSYSTEM);<NEW_LINE>ResultSet rs = ps.executeQuery()) {<NEW_LINE>while (r...
value = rs.getString(3);
290,546
public void testFindTaskIds(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE><MASK><NEW_LINE>String jndiName = request.getParameter("jndiName");<NEW_LINE>String executorName = request.getParameter("executorId");<NEW_LINE>ObjectInstance bean = getPEMBean(mbs, jndiName);<NEW_LINE>Obje...
PrintWriter out = response.getWriter();
976,937
static int measureChildForCells(View child, int cellSize, int cellsRemaining, int parentHeightMeasureSpec, int parentHeightPadding) {<NEW_LINE>final LayoutParams lp = (LayoutParams) child.getLayoutParams();<NEW_LINE>final int childHeightSize = MeasureSpec.getSize(parentHeightMeasureSpec) - parentHeightPadding;<NEW_LINE...
int measuredWidth = child.getMeasuredWidth();
1,423,040
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@Name('context') @public create context SegmentedByString partition by theString from SupportBean", path);<NEW_LINE>env.compileDeploy("@Name('table') @public context SegmentedByString " + "creat...
, { "G2", 21 } });
1,007,210
public CompletionStage<Void> receive(Message<String> message) throws InterruptedException {<NEW_LINE>Thread.sleep(WORK_TIME);<NEW_LINE>ReceivedMessage status = new ReceivedMessage(message.getPayload());<NEW_LINE>messages.add(status);<NEW_LINE>System.out.println("Bean received message " + message.getPayload());<NEW_LINE...
"Bean failed to ack message " + message.getPayload());
958,482
private static Attributes storeTo(CompressionRule rule, BasicAttributes attrs) {<NEW_LINE>attrs.put("objectclass", "dcmCompressionRule");<NEW_LINE>attrs.put("cn", rule.getCommonName());<NEW_LINE>LdapUtils.storeNotEmpty(attrs, "dcmPhotometricInterpretation", rule.getPhotometricInterpretations());<NEW_LINE>LdapUtils.stor...
"dcmAETitle", rule.getAETitles());
1,306,761
public void onConnectionLocalOpen(Event event) {<NEW_LINE>Connection connection = event.getConnection();<NEW_LINE>if (connection.getRemoteState() != EndpointState.UNINITIALIZED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Transport transport = Proton.transport();<NEW_LINE>// To detect connection drops in worst case in idleT...
transport.setIdleTimeout(AmqpConstants.TRANSPORT_IDLE_TIMEOUT_MILLIS);
290,045
private void queueRetry(List<QCMutation> mutations, HostAndPort server) {<NEW_LINE>if (timeout < Long.MAX_VALUE) {<NEW_LINE><MASK><NEW_LINE>ArrayList<QCMutation> mutations2 = new ArrayList<>(mutations.size());<NEW_LINE>for (QCMutation qcm : mutations) {<NEW_LINE>qcm.resetDelay();<NEW_LINE>if (time + qcm.getDelay(MILLIS...
long time = System.currentTimeMillis();
1,692,583
final AttachThingPrincipalResult executeAttachThingPrincipal(AttachThingPrincipalRequest attachThingPrincipalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(attachThingPrincipalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
582,675
protected void drawIcon(Graphics g, Icon icon) {<NEW_LINE>Insets i = getInsets();<NEW_LINE>if (i != null) {<NEW_LINE>drawX = i.left;<NEW_LINE>drawY = i.top;<NEW_LINE>} else {<NEW_LINE>drawX = 0;<NEW_LINE>drawY = 0;<NEW_LINE>}<NEW_LINE>if (icon != null) {<NEW_LINE>if (g != null) {<NEW_LINE>icon.paintIcon(this, g, drawX,...
fontHeight, icon.getIconHeight());
929,570
public void emitIf(final IfNode x) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.OpenCL, "emitIf: %s, condition=%s\n", x, x.condition().getClass().getName());<NEW_LINE>final LabelRef falseBranch = getLIRBlock(x.falseSuccessor());<NEW_LINE>if (falseBranch.getTargetBlock().isExceptionEntry()) {<NEW_LINE>Logger.traceBuil...
emitLogicNode(x.condition());
138,636
private void positionViews() {<NEW_LINE>LayoutParams layoutParams = (LayoutParams) getLayoutParams();<NEW_LINE>layoutParams.setMargins(0, 0, 0, 0);<NEW_LINE>setLayoutParams(layoutParams);<NEW_LINE>// FloatingWidgetView layout is forced LTR<NEW_LINE>mBackgroundView.setTranslationX(mBackgroundPosition.left);<NEW_LINE>mBa...
sTmpMatrix.postScale(foregroundScale, foregroundScale);
153,445
public Intent executeApi(Intent data, InputStream is, OutputStream os) {<NEW_LINE>ParcelFileDescriptor input = null;<NEW_LINE>ParcelFileDescriptor output = null;<NEW_LINE>try {<NEW_LINE>if (is != null) {<NEW_LINE>input = ParcelFileDescriptorUtil.pipeFrom(is);<NEW_LINE>}<NEW_LINE>Thread pumpThread = null;<NEW_LINE>int o...
result.putExtra(RESULT_CODE, RESULT_CODE_ERROR);
389,663
final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.SERVICE_ID, "Redshift");
381,661
public void process(T gray, GrayU8 binary) {<NEW_LINE>detector.process(gray, binary);<NEW_LINE>if (refineGray != null)<NEW_LINE>refineGray.setImage(gray);<NEW_LINE>edgeIntensity.setImage(gray);<NEW_LINE><MASK><NEW_LINE>DogArray<DetectPolygonFromContour.Info> detections = detector.getFoundInfo();<NEW_LINE>if (adjustForB...
long time0 = System.nanoTime();
1,824,381
static void pollCheckAppContextLocal(final Locale destLocale, final int index, final Utils.Consumer<Boolean> consumer) {<NEW_LINE>Resources appResources = Utils.getApp().getResources();<NEW_LINE><MASK><NEW_LINE>Locale appLocal = getLocal(appConfig);<NEW_LINE>setLocal(appConfig, destLocale);<NEW_LINE>Utils.getApp().getR...
Configuration appConfig = appResources.getConfiguration();
622,488
public static DataSet<FastDistanceMatrixData> initKmeansCentroids(DataSet<FastDistanceVectorData> data, FastDistance distance, Params params, DataSet<Integer> vectorSize, int seed) {<NEW_LINE>final InitMode initMode = params.get(KMeansTrainParams.INIT_MODE);<NEW_LINE>final int initSteps = <MASK><NEW_LINE>final int k = ...
params.get(KMeansTrainParams.INIT_STEPS);