idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
241,938
private static String determineNodeText(final NaviNode node) {<NEW_LINE>if (node.getRawNode() instanceof INaviCodeNode) {<NEW_LINE>final INaviCodeNode cnode = (INaviCodeNode) node.getRawNode();<NEW_LINE>return String.format("Basic Block: %s", cnode.getAddress().toHexString());<NEW_LINE>} else if (node.getRawNode() inst...
get(0).getComment();
165,505
final PutPolicyResult executePutPolicy(PutPolicyRequest putPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,757,217
protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>JLabel nameLabel = new JLabel(IdeBundle.message("label.todo.filter.name"));<NEW_LINE>panel.add(nameLabel, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, ...
.getRowHeight() * 10));
1,239,713
public void applyDefinitions(Configuration config) {<NEW_LINE>final int CORES = Runtime.getRuntime().availableProcessors();<NEW_LINE>config.set(MAX_ACTIVE_PEERS, DEFAULT_MAX_ACTIVE_PEERS);<NEW_LINE>config.set(MAX_PEER_INACTIVITY_PERIOD, DEFAULT_MAX_PEER_INACTIVITY_PERIOD_IN_SECONDS, TimeUnit.SECONDS);<NEW_LINE>config.s...
set(CONGESTION_CONTROL_ALGORITHM, CongestionControlMode.NULL);
923,820
private void update() {<NEW_LINE>if (updating) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>updating = true;<NEW_LINE>try {<NEW_LINE>int allocSize = allocSizeModel<MASK><NEW_LINE>int allocBits = 8 * allocSize;<NEW_LINE>updateBitSizeModel();<NEW_LINE>bitOffsetModel.setMaximum(Long.valueOf(allocBits - 1));<NEW_LINE>int bitSize...
.getNumber().intValue();
1,449,800
private void loadSettings(PClient newClient, Client client) throws IOException {<NEW_LINE>PSettings newSettings = newClient.getSettings();<NEW_LINE>ClientSettings settings = client.getSettings();<NEW_LINE>// remove all auto-created bookmarks<NEW_LINE>settings.clearBookmarks();<NEW_LINE>for (PBookmark newBookmark : newS...
setName(newAttributeType.getName());
979,836
private <INDEX_KEY extends SchemaDescriptorSupplier> Iterable<IndexEntryUpdate<INDEX_KEY>> gatherUpdatesForPotentials(Iterable<INDEX_KEY> potentiallyRelevant) {<NEW_LINE>List<IndexEntryUpdate<INDEX_KEY>> indexUpdates = new ArrayList<>();<NEW_LINE>for (INDEX_KEY indexKey : potentiallyRelevant) {<NEW_LINE>SchemaDescripto...
indexKey, valuesBefore(propertyIds)));
694,093
private void populateSubMap(NavigableMap subMap, FieldValues fieldValues, int startIndex) {<NEW_LINE>if (startIndex >= fieldValues.getValues().size())<NEW_LINE>return;<NEW_LINE>Pair<String, Object> pair = fieldValues.getValues().get(startIndex);<NEW_LINE>Object value = pair.getSecond();<NEW_LINE>DBValue dbValue;<NEW_LI...
subMap.put(dbValue, subMap2);
1,757,521
private void parseSwitchInternal(final XmlPullParser parser, final boolean parseKeyboard, final KeyboardRow row, final boolean skip) throws XmlPullParserException, IOException {<NEW_LINE>if (DEBUG)<NEW_LINE>startTag("<%s> %s", TAG_SWITCH, mParams.mId);<NEW_LINE>boolean selected = false;<NEW_LINE>while (parser.getEventT...
parseKeyboard, row, selected || skip);
141,697
private void postProcessCaches() {<NEW_LINE>IClassPath classPath = analysisCache.getClassPath();<NEW_LINE>Map<ClassDescriptor, Object> classAnalysis = analysisCache.getClassAnalysis(ClassData.class);<NEW_LINE>if (classAnalysis == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Entry<ClassDescriptor, Object>> entrySet ...
+= cd.getData().length;
1,643,212
private Function<SourceLookup, FragmentsBuilder> fragmentsBuilderSupplier(SearchHighlightContext.Field field, MappedFieldType fieldType, boolean forceSource, boolean fixBrokenAnalysis) {<NEW_LINE>BoundaryScanner boundaryScanner = getBoundaryScanner(field);<NEW_LINE>FieldOptions options = field.fieldOptions();<NEW_LINE>...
options.postTags(), boundaryScanner);
1,825,706
private void makeSeaGlassToolbar() {<NEW_LINE>Tools.makeTexturedToolBarButton(tb_copy, Tools.SEGMENT_POSITION_FIRST);<NEW_LINE>Tools.makeTexturedToolBarButton(tb_selectall, Tools.SEGMENT_POSITION_LAST);<NEW_LINE>Tools.makeTexturedToolBarButton(tb_editentry, Tools.SEGMENT_POSITION_FIRST);<NEW_LINE>Tools.makeTexturedTool...
makeTexturedToolBarButton(tb_highlight, Tools.SEGMENT_POSITION_ONLY);
1,846,614
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findAll(java.lang.Class,<NEW_LINE>* java.lang.Object[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public <E> List<E> findAll(Class<E> entityClass, String[] columnsToSelect, Object... rowIds) {<NEW_LINE>EntityMetadata entityMetadata =...
log.error("Error during find All , Caused by: .", ioex);
1,803,136
public void registerServerAliases() {<NEW_LINE>Map<String, List<String>> values = this.server.getCommandAliases();<NEW_LINE>for (Map.Entry<String, List<String>> entry : values.entrySet()) {<NEW_LINE>String alias = entry.getKey();<NEW_LINE>List<String> commandStrings = entry.getValue();<NEW_LINE>if (alias.contains(" ") ...
.translateString("nukkit.command.alias.illegal", alias));
397,417
protected int sigaction(Emulator<?> emulator, int signum, Pointer act, Pointer oldact) {<NEW_LINE>SigAction action = SigAction.create(emulator, act);<NEW_LINE>SigAction oldAction = SigAction.create(emulator, oldact);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("sigaction signum=" + signum + ", action=" + ac...
setSaHandler(lastAction.getSaHandler());
735,975
public Response generateInstallation(KeycloakSession session, RealmModel realm, ClientModel client, URI baseUri) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>buffer.append("<secure-deployment name=\"WAR MODULE NAME.war\">\n");<NEW_LINE>buffer.append(" <realm>").append(realm.getName()).append("</real...
()).append("</auth-server-url>\n");
860,034
// snippet-start:[rekognition.java2.search_faces_collection.main]<NEW_LINE>public static void searchFaceInCollection(RekognitionClient rekClient, String collectionId, String sourceImage) {<NEW_LINE>try {<NEW_LINE>InputStream sourceStream = new FileInputStream(new File(sourceImage));<NEW_LINE>SdkBytes sourceBytes = SdkB...
> faceImageMatches = imageResponse.faceMatches();
1,061,318
/*public Memory writePushDynamicMethod(CallExprToken function, boolean returnValue, boolean writeOpcode,<NEW_LINE>PushCallStatistic statistic) {<NEW_LINE>if (!writeOpcode)<NEW_LINE>return null;<NEW_LINE><NEW_LINE>DynamicAccessExprToken access = (DynamicAccessExprToken) function.getName();<NEW_LINE>if (access instanceof...
.returnType = StackItem.Type.REFERENCE;
110,336
public DataValueDto convert(DataValue dataValue, Map<String, Object> parameters) {<NEW_LINE>if (dataValue == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (dataValue.getValue() instanceof Integer) {<NEW_LINE>DataValueDto<Integer> integerDataValueDto = new DataValueDto<>();<NEW_LINE>integerDataValueDto.setValue((...
stringDataValueDto = new DataValueDto<>();
1,258,343
private void embedNetwork(final EncogProgramNode node) {<NEW_LINE>addBreak();<NEW_LINE>final File methodFile = (File) node.getArgs().get(0).getValue();<NEW_LINE>final MLMethod method = (MLMethod) EncogDirectoryPersistence.loadObject(methodFile);<NEW_LINE>if (!(method instanceof MLFactory)) {<NEW_LINE>throw new EncogErr...
final MLFactory factoryMethod = (MLFactory) method;
1,662,749
private String writeFiles(Compilation compilation) throws IOException {<NEW_LINE>// Path outputRoot = Files.createTempDirectory("grape-ffi");<NEW_LINE>File outputRootDir = new File(this.outputDirectory);<NEW_LINE>if (!outputRootDir.exists()) {<NEW_LINE>outputRootDir.mkdirs();<NEW_LINE>}<NEW_LINE>Path outputRootPath = o...
.toUri().getPath();
774,752
public Result isConditionMet(Index index, ClusterState clusterState) {<NEW_LINE>IndexMetadata indexMetadata = clusterState.metadata().index(index);<NEW_LINE>if (indexMetadata == null) {<NEW_LINE>throw error(NO_INDEX_METADATA_MESSAGE, index.getName());<NEW_LINE>}<NEW_LINE>Long actionTime = indexMetadata.getLifecycleExec...
getLastSuccess().getSnapshotFinishTimestamp());
749,410
private <T> Future<List<InetSocketAddress>> resolveAddresses(Request request, ProxyServer proxy, NettyResponseFuture<T> future, AsyncHandler<T> asyncHandler) {<NEW_LINE>Uri uri = request.getUri();<NEW_LINE>final Promise<List<InetSocketAddress>> promise = ImmediateEventExecutor.INSTANCE.newPromise();<NEW_LINE>if (proxy ...
.setSuccess(singletonList(inetSocketAddress));
1,322,344
public ElideResponse delete(String baseUrlEndPoint, String path, String jsonApiDocument, MultivaluedMap<String, String> queryParams, Map<String, List<String>> requestHeaders, User opaqueUser, String apiVersion, UUID requestId) {<NEW_LINE>return handleRequest(false, opaqueUser, dataStore::beginTransaction, requestId, (t...
requestScope).parsePath(path));
897,543
private final void decodeModifiersForModuleRequires(StringBuffer buffer, int accessFlags) {<NEW_LINE>int[] checkBits = new int[] { IModifierConstants.ACC_TRANSITIVE, IModifierConstants.ACC_STATIC_PHASE };<NEW_LINE>boolean firstModifier = true;<NEW_LINE>for (int i = 0, max = checkBits.length; i < max; i++) {<NEW_LINE>sw...
IModifierConstants.ACC_STATIC_PHASE, "protected", firstModifier);
25,378
private Optional<StorageNode> storageNodeInGroup(Predicate<ServiceInstance> storageServicePredicate) {<NEW_LINE>if (!VespaModelUtil.isStorage(serviceCluster)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Set<StorageNode> <MASK><NEW_LINE>for (ServiceInstance serviceInstance : servicesInGroup) {<NEW_LINE>if (!...
storageNodes = new HashSet<>();
459,472
private void shuffleAndFilterInstances(Map<String, VipIndexSupport> srcMap, boolean filterUpInstances) {<NEW_LINE>Random shuffleRandom = new Random();<NEW_LINE>for (Map.Entry<String, VipIndexSupport> entries : srcMap.entrySet()) {<NEW_LINE>VipIndexSupport vipIndexSupport = entries.getValue();<NEW_LINE>AbstractQueue<Ins...
Collections.shuffle(filteredInstances, shuffleRandom);
866,993
public static BeanEmbeddedMeta create(BeanDescriptorMap owner, DeployBeanPropertyAssocOne<?> prop) {<NEW_LINE>// we can get a BeanDescriptor for an Embedded bean<NEW_LINE>// and know that it is NOT recursive, as Embedded beans are<NEW_LINE>// only allow to hold simple scalar types...<NEW_LINE>BeanDescriptor<?> targetDe...
.getDeployEmbedded().getPropertyColumnMap();
1,119,850
public DomainInfos unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DomainInfos domainInfos = new DomainInfos();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if ...
String currentParentElement = context.getCurrentParentElement();
1,435,714
protected synchronized Properties read() {<NEW_LINE>if (propertiesFile != null && propertiesFile.exists() && (forceReload || (propertiesFile.lastModified() > lastModified))) {<NEW_LINE>FileInputStream is = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>Properties props = new Properties();<NEW_LINE>is = new FileInputStre...
logger.debug("loading {}", propertiesFile);
929,454
public String createFor(PlayerContainer player) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>UUID playerUUID = player.getUnsafe(PlayerKeys.UUID);<NEW_LINE>PlaceholderReplacer placeholders = new PlaceholderReplacer();<NEW_LINE>placeholders.put("refresh", clockLongFormatter.apply(now));<NEW_LINE>placeholder...
.get(DisplaySettings.PLAYER_HEAD_IMG_URL));
1,521,472
public static void preInit(FMLPreInitializationEvent evt) {<NEW_LINE>MOD_CONTAINER = Loader.instance().activeModContainer();<NEW_LINE>try {<NEW_LINE>BCLog.logger.info("");<NEW_LINE>} catch (NoSuchFieldError e) {<NEW_LINE>throw throwBadClass(e, BCLog.class);<NEW_LINE>}<NEW_LINE>BCLog.logger.info("Starting BuildCraft " +...
logger.info(" " + GIT_COMMIT_MSG);
1,361,209
public void enableCameraUpload() {<NEW_LINE>cameraUpload = true;<NEW_LINE>prefs = dbH.getPreferences();<NEW_LINE>// internet connect type<NEW_LINE>setupConnectionTypeForCameraUpload();<NEW_LINE>// upload type<NEW_LINE>setWhatToUploadForCameraUpload();<NEW_LINE>// video options<NEW_LINE>setupVideoOptionsForCameraUpload(...
getPreferenceScreen().addPreference(keepFileNames);
1,658,922
public static Vector<String> listDispTypes(boolean showCursor) {<NEW_LINE>Vector<String> v = new Vector<String>();<NEW_LINE>v.add(IdeCommonMessage.get().getMessage("type.int"));<NEW_LINE>v.add(IdeCommonMessage.get().getMessage("type.long"));<NEW_LINE>v.add(IdeCommonMessage.get().getMessage("type.short"));<NEW_LINE>v.ad...
().getMessage("type.longarr"));
1,369,742
public void write(final JsonWriter writer, @Nullable final T instance) {<NEW_LINE>if (instance == null) {<NEW_LINE>writer.writeNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Class<?> current = instance.getClass();<NEW_LINE>for (FormatDescription<T> od : descriptions) {<NEW_LINE>if (current != od.manifest)<NEW_LINE>...
long flushed = writer.flushed();
1,253,693
protected void extendRow(Row row, DataExtension dataExtension, int extensionRowIndex, Map<String, Recon> reconMap) {<NEW_LINE>Object[] <MASK><NEW_LINE>for (int c = 0; c < values.length; c++) {<NEW_LINE>Object value = values[c];<NEW_LINE>Cell cell = null;<NEW_LINE>if (value instanceof ReconCandidate) {<NEW_LINE>ReconCan...
values = dataExtension.data[extensionRowIndex];
388,676
public SqlType resultType(final SqlType left, final SqlType right) throws KsqlException {<NEW_LINE>checkForNullTypes(left, right);<NEW_LINE>if (left.baseType().isNumber() && right.baseType().isNumber()) {<NEW_LINE>if (left.baseType().canImplicitlyCast(right.baseType())) {<NEW_LINE>if (right.baseType() != SqlBaseType.DE...
" " + right.baseType());
611,601
protected void initializeContainer() {<NEW_LINE>// set up the help button<NEW_LINE>container.getHelpButton().setVisible(false);<NEW_LINE>container.getHelpButton().setEnabled(false);<NEW_LINE>container.getHelpButton().setText(component.getProperty(HELP_BUTTON_TEXT_PROPERTY));<NEW_LINE>// set up the back button<NEW_LINE>...
getCancelButton().setEnabled(true);
987,459
private String issueReceipt(MProject project) {<NEW_LINE>MInOut inOut = new MInOut(getCtx(), getInOutId(), null);<NEW_LINE>if (inOut.isSOTrx() || !inOut.isProcessed() || !(MInOut.DOCSTATUS_Completed.equals(inOut.getDocStatus()) || MInOut.DOCSTATUS_Closed.equals(inOut.getDocStatus())))<NEW_LINE>throw new IllegalArgument...
MProjectIssue projectIssue = new MProjectIssue(project);
40,442
public static ZonedDateTime parseDateMathOrNull(String fieldName, XContentParser parser, ZoneId timeZone, Clock clock) throws IOException {<NEW_LINE>XContentParser.Token token = parser.currentToken();<NEW_LINE>if (token == XContentParser.Token.VALUE_NUMBER) {<NEW_LINE>return Instant.ofEpochMilli(parser.longValue()).atZ...
text(), timeZone, clock);
1,156,443
private List<Step> findPaths(GrammarNfaTransition transition) {<NEW_LINE>ArrayDeque<Step> stack = new ArrayDeque<>();<NEW_LINE>stack.push<MASK><NEW_LINE>List<Step> result = new ArrayList<>();<NEW_LINE>BitSet active = new BitSet();<NEW_LINE>while (stack.size() > 0) {<NEW_LINE>Step currStep = stack.pop();<NEW_LINE>if (cu...
(Step.initial(transition));
308,430
public Future<HttpClientConnection> wrap(EventLoopContext context, NetSocket so_) {<NEW_LINE>NetSocketImpl so = (NetSocketImpl) so_;<NEW_LINE>Object metric = so.metric();<NEW_LINE>Promise<HttpClientConnection> promise = context.promise();<NEW_LINE>// Remove all un-necessary handlers<NEW_LINE>ChannelPipeline pipeline = ...
removedHandlers = new ArrayList<>();
772,402
public void initialise() throws Exception {<NEW_LINE>panel = new JPanel();<NEW_LINE>propertySelectorPanel = createPropertySelectorPanel();<NEW_LINE>propertySelectorPanel.addSelectionListener(selListener);<NEW_LINE>propertySelectorPanel.setBorder(ComponentFactory.createTitledBorder("Restricted property"));<NEW_LINE>fill...
JSplitPane(JSplitPane.HORIZONTAL_SPLIT, false);
590,183
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>addPreferencesFromResource(R.xml.preferences_file_management);<NEW_LINE>offlineFileManagement = findPreference(KEY_OFFLINE);<NEW_LINE>offlineFileManagement.setOnPreferenceClickListener(this);<NEW_LINE>cacheAdvancedOptions = findPrefer...
(R.string.settings_advanced_features_calculating));
572,306
private TaskDOExample convert(TaskQueryCondition condition) {<NEW_LINE>TaskDOExample example = new TaskDOExample();<NEW_LINE>Criteria criteria = example.createCriteria();<NEW_LINE>if (!StringUtils.isEmpty(condition.getTaskUuid())) {<NEW_LINE>criteria.andTaskUuidEqualTo(condition.getTaskUuid());<NEW_LINE>}<NEW_LINE>if (...
andDetectorCodeEqualTo(condition.getDetectorCode());
385,836
public List<AppConfigurationEntry> parseAppConfigurationEntry() {<NEW_LINE>Vector<AppConfigurationEntry> appEntry = new Vector<AppConfigurationEntry>();<NEW_LINE>try {<NEW_LINE>while (!peek("}")) {<NEW_LINE>String lmName = getString();<NEW_LINE>String flag = getString();<NEW_LINE>Map<String, String> opt = new <MASK><NE...
HashMap<String, String>();
740,555
final DefineExpressionResult executeDefineExpression(DefineExpressionRequest defineExpressionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(defineExpressionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
endClientExecution(awsRequestMetrics, request, response);
1,148,186
private static void flatten(Path inputPath, Path outputPath, Settings settings) throws IOException {<NEW_LINE>BatfishLogger logger = settings.getLogger();<NEW_LINE>logger.info("\n*** READING FILES TO FLATTEN ***\n");<NEW_LINE>Map<Path, String> configurationData = readAllFiles(inputPath.resolve(BfConsts.RELPATH_CONFIGUR...
outputPath.resolve(BfConsts.RELPATH_CONFIGURATIONS_DIR);
1,357,078
public void saveScheme(WorkflowScheme scheme) throws DotDataException, AlreadyExistException {<NEW_LINE>boolean isNew = true;<NEW_LINE>if (UtilMethods.isSet(scheme.getId())) {<NEW_LINE>try {<NEW_LINE>final WorkflowScheme test = this.findScheme(scheme.getId());<NEW_LINE>if (test != null) {<NEW_LINE>isNew = false;<NEW_LI...
e.getMessage(), e);
267,927
public int onStartCommand(Intent intent, int flags, int startId) {<NEW_LINE>NotificationChannelCompat serviceChannel = new NotificationChannelCompat.Builder(NotificationUtils.CHANNEL_SUBMIT_POST, NotificationManagerCompat.IMPORTANCE_LOW).setName(NotificationUtils.CHANNEL_SUBMIT_POST).build();<NEW_LINE>NotificationManag...
getData().toString());
1,645,087
public void playerStateChangeEvent(HeosEventObject eventObject) {<NEW_LINE>if (ThingStatus.UNINITIALIZED == getThing().getStatus()) {<NEW_LINE>logger.debug("Can't Handle Event. Group {} not initialized. Status is: {}", getConfig().get(PROP_NAME), <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>@Nullable<NEW_LINE>String loc...
getThing().getStatus());
1,086,707
private static void showWarning(Object filename, int lineno, Object text, Object category, Object sourceline) {<NEW_LINE>Object name;<NEW_LINE>if (category instanceof PythonBuiltinClassType) {<NEW_LINE>name = ((PythonBuiltinClassType) category).getName();<NEW_LINE>} else {<NEW_LINE>name = PyObjectLookupAttr.getUncached...
.execute(null, sourceline));
718,868
public void activate(Map<String, Object> config) {<NEW_LINE>betaFenceCheck();<NEW_LINE>id = (String) config.get(KEY_ID);<NEW_LINE>String uriValue = (String) config.get(KEY_URI);<NEW_LINE>if (uriValue != null)<NEW_LINE>try {<NEW_LINE>this.configuredUri = new URI(uriValue);<NEW_LINE>} catch (URISyntaxException e) {<NEW_L...
key = key.substring(TOTAL_PREFIX_LENGTH);
1,046,609
private CharSequence generateCompositePropertyElements(final String containingClassName, final List<Token> tokens, final String indent) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = 0; i < tokens.size(); ) {<NEW_LINE>final Token fieldToken = tokens.get(i);<NEW_LINE>final String property...
get(i).componentTokenCount();
886,867
public static InsnList copy(InsnList orig) {<NEW_LINE>Iterator<?> it = orig.iterator();<NEW_LINE>InsnList copy = new InsnList();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>AbstractInsnNode node = (AbstractInsnNode) it.next();<NEW_LINE>if (node instanceof VarInsnNode) {<NEW_LINE>VarInsnNode vn = (VarInsnNode) node;<NEW_LI...
(), vn.var));
54,591
public void actionPerformed(final ActionEvent e) {<NEW_LINE>final NodeModel parent = Controller.getCurrentModeController().getMapController().getSelectedNode();<NEW_LINE>if (parent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final JFileChooser chooser = UITools.newFileChooser();<NEW_LINE>final FileFilter fileFilter...
getController().handleLoadingException(ex);
1,053,091
// Generates all binary search trees from nodes numbered 'start' to 'end'<NEW_LINE>private List<TreeNode> generateTrees(int start, int end) {<NEW_LINE>List<TreeNode> <MASK><NEW_LINE>// 'start' has passed 'end', we cannot generate anymore nodes<NEW_LINE>if (start > end) {<NEW_LINE>trees.add(null);<NEW_LINE>return trees;...
trees = new ArrayList<>();
903,961
public void keyPressed(final KeyEvent event) {<NEW_LINE>if (event.getKeyCode() == KeyEvent.VK_RIGHT) {<NEW_LINE>if (m_caretPosition != (2 * m_registerModel.getRegisterInformation(m_editedRegister).getRegisterSize())) {<NEW_LINE>m_caretPosition++;<NEW_LINE>}<NEW_LINE>// Consume the event to avoid scrolling<NEW_LINE>even...
hexToValue(event.getKeyChar());
44,339
protected static ExtractedInfo extractProvenanceInfo(Map<String, Provenance> map) {<NEW_LINE>Map<String, Provenance> configuredParameters = new HashMap<>(map);<NEW_LINE>String className = ObjectProvenance.checkAndExtractProvenance(configuredParameters, CLASS_NAME, StringProvenance.class, SQLDataSourceProvenance.class.g...
instanceParameters = new HashMap<>();
552,382
public static DescribeRdsResourceSettingsResponse unmarshall(DescribeRdsResourceSettingsResponse describeRdsResourceSettingsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRdsResourceSettingsResponse.setRequestId(_ctx.stringValue("DescribeRdsResourceSettingsResponse.RequestId"));<NEW_LINE>List<RdsInstanceResourc...
("DescribeRdsResourceSettingsResponse.RdsInstanceResourceSettings[" + i + "].PoppedUpContent"));
1,768,262
public final XaCommitWorkContext xaCommitWork() throws RecognitionException {<NEW_LINE>XaCommitWorkContext _localctx = new XaCommitWorkContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 332, RULE_xaCommitWork);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(406...
_errHandler.reportError(this, re);
1,320,553
protected boolean writeObjectHeader(final FSTClazzInfo clsInfo, final FSTClazzInfo.FSTFieldInfo referencee, final Object toWrite) throws IOException {<NEW_LINE>if (toWrite.getClass() == referencee.getType() && !clsInfo.useCompatibleMode()) {<NEW_LINE>return getCodec().writeTag(TYPED, clsInfo, 0, toWrite, this);<NEW_LIN...
final Class possibleClass = possibleClasses[j];
1,348,576
public org.python.Object __imul__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Int) {<NEW_LINE>long count = ((org.python.types.Int) other).value;<NEW_LINE>org.python.types.List result = new org.python.types.List();<NEW_LINE>for (long i = 0; i < count; i++) {<NEW_LINE>result.value.addAll(thi...
.python.types.List();
1,457,978
private void loadPMRByPipelineIds(List<Long> pipelineIds) {<NEW_LINE>List<PipelineMaterialRevision> pmrs = (List<PipelineMaterialRevision>) getHibernateTemplate().findByCriteria(buildPMRDetachedQuery(pipelineIds));<NEW_LINE>sortPersistentObjectsById(pmrs, true);<NEW_LINE>final Set<PipelineMaterialRevision> uniquePmrs =...
getToModification().getMaterialInstance());
329,891
private List<String> checkOfflineTablesSegmentIntervals(String offlineTableName) {<NEW_LINE>TableConfig tableConfig = ZKMetadataProvider.getOfflineTableConfig(_propertyStore, offlineTableName);<NEW_LINE>List<SegmentZKMetadata> segmentsZKMetadata = ZKMetadataProvider.getSegmentsZKMetadata(_propertyStore, offlineTableNam...
add(segmentZKMetadata.getSegmentName());
133,532
private Iterator<I_C_Printing_Queue> retrievePrintingQueueItems() {<NEW_LINE>final ILoggable loggable = Loggables.withLogger(logger, Level.DEBUG);<NEW_LINE>queueQuery.setRequiredAccess(Access.WRITE);<NEW_LINE>if (p_FilterBySelectedQueueItems) {<NEW_LINE>final PInstanceId selectionId = getPinstanceId();<NEW_LINE>createW...
.<Object>of(p_WhereClause);
806,717
protected void blockInter(BitReader bits, VLC vlcCoeff, int[] block, int[] scan, int escSize, int qScale, int[] qmat) {<NEW_LINE>// System.out.println();<NEW_LINE>int idx = -1;<NEW_LINE>if (vlcCoeff == vlcCoeff0 && bits.checkNBit(1) == 1) {<NEW_LINE>bits.read1Bit();<NEW_LINE>int dc = toSigned(quantInter(1, qScale * qma...
), bits.read1Bit());
411,330
private static void updateErrorsInRoot(@NonNull final Callback callback, @NonNull final FileObject root, @NonNull final AtomicBoolean canceled) {<NEW_LINE>Set<FileObject> filesWithErrors = getFilesWithAttachedErrors(root);<NEW_LINE>Set<FileObject> fixedFiles = new HashSet<FileObject>(filesWithErrors);<NEW_LINE>filesWit...
.<Task>emptyList());
695,689
public void putBigInteger(byte[] buffer, int index, BigInteger value, int numBytes) throws IndexOutOfBoundsException, OverflowException {<NEW_LINE>assert numBytes <= buffer.length - index;<NEW_LINE>// src byte array is always returned in big endian order<NEW_LINE>final byte[<MASK><NEW_LINE>int srcIndex = 0;<NEW_LINE>in...
] src = value.toByteArray();
242,409
public ListObjectsV2Result listObjectsV2(ListObjectsV2Request listObjectsV2Request) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(listObjectsV2Request, "listObjectsRequest");<NEW_LINE>String bucketName = listObjectsV2Request.getBucketName();<NEW_LINE>assertParameterNotNull(bucketName, "bucketNa...
listObjectsV2ResponseParser, bucketName, null, true);
1,150,700
protected void applyImpl(KFAnimationFrame stateA, KFAnimationFrame stateB, float interpolationValue, StrokeColor modifiable) {<NEW_LINE>if (stateB == null) {<NEW_LINE>modifiable.setStrokeColor(stateA.getData()[0]);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Interpolate A, R, G, B values separately<NEW_LINE>int aColor = (i...
green, (int) blue));
828,011
private void processRegularSource(ProcessingContext input) throws IOException {<NEW_LINE>InputFile file = input.getFile();<NEW_LINE>String source = options.fileUtil().readFile(file);<NEW_LINE>boolean shouldMapHeaders = options.getHeaderMap().useSourceDirectories();<NEW_LINE>boolean doIncompatibleStripping = source.cont...
String qualifiedName = parseResult.mainTypeName();
623,130
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String serviceTopologyName, String serviceName, 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 serviceName is required and cannot be null."));
1,745,326
public static void createGenericSpan(@Advice.This ContainerRequestContext requestContext, @Local("otelHandlerData") HandlerData handlerData, @Local("otelContext") Context context, @Local("otelScope") Scope scope) {<NEW_LINE>if (requestContext.getProperty(JaxrsSingletons.ABORT_HANDLED) != null) {<NEW_LINE>return;<NEW_LI...
).start(parentContext, handlerData);
208,201
private static boolean restoreDocument(final ClientSession cs, final MongoCollection<BsonDocument> coll, final Object documentId, final BsonDocument shardKeys, final BsonDocument data, final Object etag, final String etagLocation) {<NEW_LINE>Objects.requireNonNull(coll);<NEW_LINE>Objects.requireNonNull(documentId);<NEW...
query = eq("_id", documentId);
1,843,091
public static String formatTimetables(@NonNull Context context, @NonNull Timetable[] timetables) {<NEW_LINE>final Resources resources = MwmApplication.from(context).getResources();<NEW_LINE>if (timetables[0].isFullWeek()) {<NEW_LINE>return timetables[0].isFullday ? resources.getString(R.string.twentyfour_seven) : resou...
" " + timetables[0].workingTimespan;
1,833,684
private void initView() {<NEW_LINE><MASK><NEW_LINE>mPreview = findViewById(R.id.preview);<NEW_LINE>mPlaybackButton = findViewById(R.id.pause_playback);<NEW_LINE>mFrameListParent = findViewById(R.id.recycler_parent);<NEW_LINE>mFrameList = findViewById(R.id.recycler_frame_list);<NEW_LINE>mScrollViewParent = findViewById(...
setContentView(R.layout.activity_video_divide);
1,498,234
ActionResult<Object> execute(EffectivePerson effectivePerson, String flag, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Object> result = new ActionResult<>();<NEW_LINE>Statement statement = this.getStatement(flag);<NEW_LINE>if (null == statement) {<NEW_LINE>throw new Exc...
effectivePerson, jsonElement, page, size);
27,241
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Wo> wos = <MASK>...
this.list(business, effectivePerson);
373,948
public ShardStats shardStats(Collection<String> indices) {<NEW_LINE>final Health clusterHealthRequest = new Health.Builder().addIndex(indices).build();<NEW_LINE>final JestResult clusterHealthResponse = JestUtils.execute(jestClient, clusterHealthRequest, () -> "Couldn't read Elasticsearch cluster health");<NEW_LINE>fina...
("timed_out").asBoolean());
1,160,603
private int releaseInternal(String path, long fd) {<NEW_LINE>try {<NEW_LINE>FileInStream is = mOpenFileEntries.remove(fd);<NEW_LINE>CreateFileEntry<FileOutStream> ce = mCreateFileEntries.getFirstByField(ID_INDEX, fd);<NEW_LINE>if (is == null && ce == null) {<NEW_LINE>LOG.error("Failed to release {}: Cannot find fd {}",...
error("Failed to release {}", path, e);
25,182
IModule initializeModule() {<NEW_LINE>IModule mod = null;<NEW_LINE>try (ZipFile file = new ZipFile(this.zipFilename)) {<NEW_LINE>ClassFileReader classfile = null;<NEW_LINE>try {<NEW_LINE>for (String path : this.supportedVersions) {<NEW_LINE>classfile = ClassFileReader.read(file, path.toString() + '/' + IModule.MODULE_I...
log(e, "Failed to initialize module for: " + this);
425,251
private static void initProxy() {<NEW_LINE>synchronized (SearchResultsTabArea.class) {<NEW_LINE>if (search_proxy_init_done) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>search_proxy_init_done = true;<NEW_LINE>}<NEW_LINE>new AEThread2("ST_test") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LI...
setAutoReloadPending(false, search_proxy == null);
1,206,013
protected Void doInBackground(Void... params) {<NEW_LINE>JSONObject requestBody = new JSONObject();<NEW_LINE>JSONObject data = new JSONObject();<NEW_LINE>try {<NEW_LINE>data.put("url", streamUrl);<NEW_LINE>data.put("position", streamPosition);<NEW_LINE>data.put("stream_duration", streamDuration);<NEW_LINE>// data.put("...
toString(), Helper.JSON_MEDIA_TYPE);
1,373,952
private void buildCommonJson(final AbstractProperty property, final Map<String, Object> map) {<NEW_LINE>final Type type = property.getType();<NEW_LINE>map.put("type", type);<NEW_LINE>map.put("hidden", property.isHidden());<NEW_LINE>if (type.equals(Type.BOOL)) {<NEW_LINE>map.put("value", property.getBoolean());<NEW_LINE...
String value = property.getString();
162,597
public com.amazonaws.services.simplesystemsmanagement.model.InvalidDocumentContentException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.InvalidDocumentContentException invalidDocumentContentException = new com.amazonaws.services...
simplesystemsmanagement.model.InvalidDocumentContentException(null);
1,154,121
private void createTables(Connection conn, int id) throws ServletException {<NEW_LINE>System.out.println("Executing createTables id = " + id);<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>String sql = "CREATE TABLE DEFDSENTITY (ID INTEGER NOT NULL, STRDATA VARCHAR(255), PRIMARY KEY (ID))";<NEW_LINE>Sys...
throw new RuntimeException("Failed to create new table: " + updateCount);
1,417,817
public void migrate(Map<String, String> values, Map<String, String> defaultValues, Log log) {<NEW_LINE>List<String> <MASK><NEW_LINE>Map<String, List<String>> crsValues = new HashMap<>();<NEW_LINE>values.forEach((setting, value) -> {<NEW_LINE>Matcher matcher = oldConnector.matcher(setting);<NEW_LINE>if (matcher.find()) ...
oldCrs = new ArrayList<>();
855,642
public static void register(Protocol protocol) {<NEW_LINE>protocol.registerClientbound(ClientboundPackets1_14.RESPAWN, new PacketRemapper() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void registerMap() {<NEW_LINE>map(Type.INT);<NEW_LINE>// Level Seed<NEW_LINE>handler(wrapper -> wrapper.write(Type.LONG, 0L));<NEW_LI...
get(Type.INT, 0);
1,074,530
final GetEndpointResult executeGetEndpoint(GetEndpointRequest getEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,308,706
public Matrix3d mulLocal(Matrix3dc left, Matrix3d dest) {<NEW_LINE>double nm00 = left.m00() * m00 + left.m10() * m01 + left.m20() * m02;<NEW_LINE>double nm01 = left.m01() * m00 + left.m11() * m01 + left.m21() * m02;<NEW_LINE>double nm02 = left.m02() * m00 + left.m12() * m01 + left.m22() * m02;<NEW_LINE>double nm10 = le...
+ left.m20() * m12;
830,382
public int read(final long srcOffset, final ByteBuffer dstBuf, final int dstBufStart, final int numBytes) throws IOException {<NEW_LINE>if (numBytes == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (srcOffset < 0L || numBytes < 0 || numBytes > sliceLength - srcOffset) {<NEW_LINE>throw new IOException("Read index out o...
).limit(dstBufStart + numBytesToRead);
104,645
public void draw(IDisplayableCastingRecipe recipe, IRecipeSlotsView recipeSlotsView, PoseStack matrixStack, double mouseX, double mouseY) {<NEW_LINE>cachedArrows.getUnchecked(Math.max(1, recipe.getCoolingTime())).draw(matrixStack, 58, 18);<NEW_LINE>block.draw(matrixStack, 38, 35);<NEW_LINE>if (recipe.hasCast()) {<NEW_L...
= recipe.getCoolingTime() / 20;
838,809
public IPage<NotifyRespDTO> queryPage(NotifyQueryReqDTO reqDTO) {<NEW_LINE>LambdaQueryWrapper<NotifyInfo> queryWrapper = Wrappers.lambdaQuery(NotifyInfo.class).eq(StrUtil.isNotBlank(reqDTO.getTenantId()), NotifyInfo::getTenantId, reqDTO.getTenantId()).eq(StrUtil.isNotBlank(reqDTO.getItemId()), NotifyInfo::getItemId, re...
).orderByDesc(NotifyInfo::getGmtCreate);
1,414,063
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
0 ? localVarContentTypes[0] : "application/json";
1,096,294
protected void createHUDocumentsFromTypedModel(final HUDocumentsCollector documentsCollector, final I_DD_Order ddOrder) {<NEW_LINE>final IWarehouseDAO warehouseDAO = Services.get(IWarehouseDAO.class);<NEW_LINE>final IHandlingUnitsDAO handlingUnitsDAO = Services.get(IHandlingUnitsDAO.class);<NEW_LINE>final IHUDocumentFa...
(line.getC_UOM_ID()));
1,729,395
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String circuitName) {<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 (resou...
)).readOnly()));
919,726
private boolean completeAnnotations(@NotNull CompletionResultSet result, boolean autoImport, PsiFile file, PsiElement completionElement) {<NEW_LINE>final JSGraphQLEndpointFieldDefinition field = PsiTreeUtil.getNextSiblingOfType(completionElement, JSGraphQLEndpointFieldDefinition.class);<NEW_LINE>final JSGraphQLEndpoint...
getNextSiblingOfType(completionElement, JSGraphQLEndpointProperty.class);
1,657,506
public void UIInputReceiverClosed(UIInputReceiver entryWindow) {<NEW_LINE>if (!entryWindow.hasSubmittedInput()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sReturn = entryWindow.getSubmittedInput();<NEW_LINE>if (sReturn == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int mins = -1;<NEW_LINE>try {<NEW_LINE>mins = Inte...
SWT.ICON_ERROR | SWT.OK);
1,025,547
public static void generateTargetGroupFiles(Map<String, List<TargetGroupVH>> targetGrpMap) throws IOException {<NEW_LINE>String fieldNames;<NEW_LINE>String keys;<NEW_LINE>fieldNames = "trgtGrp.TargetGroupArn`trgtGrp.TargetGroupName`trgtGrp.vpcid`trgtGrp.protocol`trgtGrp.port`trgtGrp.HealthyThresholdCount`trgtGrp.Unheal...
targetGrpMap, fieldNames, "aws-targetgroup.data", keys);