idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,805,311 | private static void tryAssertion3StreamKeyRangeCoercion(RegressionEnvironment env, AtomicInteger milestone, String epl, boolean isHasRangeReversal) {<NEW_LINE>env.compileDeployAddListenerMile(epl, "s0", milestone.getAndIncrement());<NEW_LINE>env.sendEventBean(new SupportBean("G", -1));<NEW_LINE>env.sendEventBean(new Su... | assertEqualsNew("s0", "sumi", 39); |
1,745,214 | public void explore(List<AlarmRule> rules) {<NEW_LINE>if (CollectionUtils.isEmpty(rules)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Long pipelineId = rules.get(0).getPipelineId();<NEW_LINE>List<ProcessStat> processStats = processStatService.listRealtimeProcessStat(pipelineId);<NEW_LINE>if (CollectionUtils.isEmpty(processS... | long now = System.currentTimeMillis(); |
1,748,926 | public static TruffleString temporalDateTimeToString(int year, int month, int day, int hour, int minute, int second, int millisecond, int microsecond, int nanosecond, JSDynamicObject calendar, Object precision, ShowCalendar showCalendar) {<NEW_LINE>TruffleString yearString = TemporalUtil.padISOYear(year);<NEW_LINE>Truf... | hourString, minuteString, secondString, calendarString); |
1,199,857 | protected void load(String fileName) throws IOException, MaryConfigurationException {<NEW_LINE>super.load(fileName);<NEW_LINE>// Now make sense of the processing header<NEW_LINE>Properties props = new Properties();<NEW_LINE>ByteArrayInputStream bais = new ByteArrayInputStream(procHdr.getString().getBytes("latin1"));<NE... | (props.getProperty("hnm.cumAmpTh")); |
55,400 | private TypeDefPatch updateGovernanceOfficer() {<NEW_LINE>final String typeName = "GovernanceOfficer";<NEW_LINE>final String superTypeName = "GovernanceRole";<NEW_LINE>TypeDefPatch typeDefPatch = archiveBuilder.getPatchForType(typeName);<NEW_LINE>typeDefPatch.setUpdatedBy(originatorName);<NEW_LINE>typeDefPatch.setUpdat... | .archiveBuilder.getEntityDef(superTypeName)); |
60,899 | private void submitCommand(StoreCommand command, RaftStoreClosure closure) {<NEW_LINE>// Wait leader elected<NEW_LINE>LeaderInfo leaderInfo = this.waitLeaderElected(RaftSharedContext.NO_TIMEOUT);<NEW_LINE>if (!leaderInfo.selfIsLeader) {<NEW_LINE>this.context.rpcForwarder().forwardToLeader(leaderInfo.leaderId, command, ... | debug("submit to raft node {}", this.node); |
25,179 | public static String generateObjectDDL(@NotNull DBRProgressMonitor monitor, @NotNull DBSObject object, Map<String, Object> options, boolean addComments) throws DBException {<NEW_LINE>final DBERegistry editorsRegistry = object.getDataSource().getContainer().getPlatform().getEditorsRegistry();<NEW_LINE>final SQLObjectEdi... | getClass().getName()); |
1,679,029 | public void parse(BtcTransaction btcTx) throws PeginInstructionsException {<NEW_LINE>logger.trace("[parse] Trying to parse peg-in information from btc tx {}", btcTx.getHash());<NEW_LINE>// Get information from tx sender first<NEW_LINE>Optional<BtcLockSender> btcLockSenderOptional = btcLockSenderProvider.tryGetBtcLockSe... | peginInstructionsOptional = peginInstructionsProvider.buildPeginInstructions(btcTx); |
4,956 | private void processCommandAddGroup(String commandLine) {<NEW_LINE>try {<NEW_LINE>CommandLine cmd = CMD_PARSER.parse(addGroupOptions(), commandLine.split(" "));<NEW_LINE>if (cmd.getArgList().size() != 1 || !cmd.hasOption("f") || !cmd.hasOption("g")) {<NEW_LINE>logError("Invalid command, expecting addToGroup[removeFromG... | FEATURE + feature + " has been added to group " + group); |
1,384,652 | public int poolUtf8(CharSequence cs) {<NEW_LINE>int index = utf8Cache.keyIndex(cs);<NEW_LINE>if (index > -1) {<NEW_LINE>putByte(0x01);<NEW_LINE><MASK><NEW_LINE>int pos = buf.position();<NEW_LINE>putShort(0);<NEW_LINE>for (int i = 0; i < n; ) {<NEW_LINE>final char c = cs.charAt(i++);<NEW_LINE>if (c < 128) {<NEW_LINE>put... | int n = cs.length(); |
1,201,478 | private boolean handleEvent(V8Event event) {<NEW_LINE>if (testeable != null) {<NEW_LINE>testeable.notifyEvent(event);<NEW_LINE>}<NEW_LINE>switch(event.getKind()) {<NEW_LINE>case AfterCompile:<NEW_LINE>AfterCompileEventBody aceb = (AfterCompileEventBody) event.getBody();<NEW_LINE>V8Script script = aceb.getScript();<NEW_... | System.out.println(""); |
1,104,712 | public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException {<NEW_LINE>org.apache.xml.utils.PrefixResolver xprefixResolver = xctxt.getNamespaceContext();<NEW_LINE>XObject result;<NEW_LINE>// Is the variable fetched always the same?<NEW_LINE>// XObject result = xctxt... | { m_qname.getLocalPart() }); |
365,509 | public static int indexOfIgnoreCase(@Nonnull CharSequence where, @Nonnull CharSequence what, int fromIndex) {<NEW_LINE>int targetCount = what.length();<NEW_LINE>int sourceCount = where.length();<NEW_LINE>if (fromIndex >= sourceCount) {<NEW_LINE>return <MASK><NEW_LINE>}<NEW_LINE>if (fromIndex < 0) {<NEW_LINE>fromIndex =... | targetCount == 0 ? sourceCount : -1; |
65,466 | private void showPostInfo(Post post) {<NEW_LINE>StringBuilder text = new StringBuilder();<NEW_LINE>for (PostImage image : post.images) {<NEW_LINE>text.append("Filename: ").append(image.filename).append(".").append(image.extension).append(" \nDimensions: ").append(image.imageWidth).append("x").append(image.imageHeight).... | ).append(post.tripcode); |
1,522,209 | public boolean add(ProjectEntity project) throws Exception {<NEW_LINE>LOG.info("add({})", project.toString());<NEW_LINE>try (SqlSession sqlSession = MyBatisUtil.getSqlSession()) {<NEW_LINE>ProjectMapper projectMapper = sqlSession.getMapper(ProjectMapper.class);<NEW_LINE>projectMapper.insert(project);<NEW_LINE>ProjectFi... | sqlSession.getMapper(ProjectFilesMapper.class); |
1,529,561 | private CellStyle createCellStyle(final CellStyleKey key) {<NEW_LINE>final int displayType = key.getDisplayType();<NEW_LINE>final boolean isHighlightNegativeNumbers = true;<NEW_LINE>final CellStyle style = getWorkbook().createCellStyle();<NEW_LINE>//<NEW_LINE>// Font<NEW_LINE>final Font font;<NEW_LINE>if (key.isFunctio... | .setBorderLeft((short) 1); |
1,183,757 | private static JPanel buildLinkPanel(ImageIcon icon, String topText, String bottomText, Runnable callback) {<NEW_LINE>JPanel container = new JPanel();<NEW_LINE><MASK><NEW_LINE>container.setLayout(new BorderLayout());<NEW_LINE>container.setBorder(new EmptyBorder(10, 10, 10, 10));<NEW_LINE>final Color hoverColor = ColorS... | container.setBackground(ColorScheme.DARKER_GRAY_COLOR); |
1,187,152 | public static ListSortScriptsResponse unmarshall(ListSortScriptsResponse listSortScriptsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSortScriptsResponse.setRequestId(_ctx.stringValue("ListSortScriptsResponse.requestId"));<NEW_LINE>List<ScriptInfo> result = new ArrayList<ScriptInfo>();<NEW_LINE>for (int i = 0; i <... | ("ListSortScriptsResponse.result[" + i + "].scope")); |
199,448 | public static ListClientSdksResponse unmarshall(ListClientSdksResponse listClientSdksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClientSdksResponse.setRequestId(_ctx.stringValue("ListClientSdksResponse.RequestId"));<NEW_LINE>List<Result> clientSdks = new ArrayList<Result>();<NEW_LINE>for (int i = 0; i < _ctx.len... | ("ListClientSdksResponse.ClientSdks[" + i + "].OsType")); |
1,058,481 | private void enterMovingMode(RotatedTileBox tileBox) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>previousMapPosition = view.getMapPosition();<NEW_LINE>view.setMapPosition(OsmandSettings.MIDDLE_BOTTOM_CONSTANT);<NEW_LINE>MapContextMenu m... | collapseButton.setVisibility(View.INVISIBLE); |
435,143 | private void putAllWorkerToSupervisor(List<ResourceWorkerSlot> assignedWorkers, List<SupervisorInfo> supervisors) {<NEW_LINE>for (ResourceWorkerSlot worker : assignedWorkers) {<NEW_LINE>if (worker.getHostname() != null) {<NEW_LINE>for (SupervisorInfo supervisor : supervisors) {<NEW_LINE>if (NetWorkUtils.equals(supervis... | getAvailableWorkerPorts().size()); |
1,207,352 | private void populateSizeSelector() {<NEW_LINE>Spinner sizeSpinner = findViewById(R.id.size_selector);<NEW_LINE>List<String> options = new ArrayList<>();<NEW_LINE>options.add(SIZE_SCREEN);<NEW_LINE>options.add(SIZE_1024_768);<NEW_LINE>options.add(SIZE_640_480);<NEW_LINE>options.add(SIZE_ORIGINAL);<NEW_LINE>// Creating ... | R.layout.spinner_style, options); |
546,391 | public void paint(final Graphics graphics) {<NEW_LINE>graphics.setColor(getBackground());<NEW_LINE>graphics.fillRect(0, 0, getWidth(), getHeight());<NEW_LINE>if (m_column == table.getNameColumn()) {<NEW_LINE>CLoadProgressPainter.paint(m_view, graphics, getWidth(), getHeight(), getBackground());<NEW_LINE>if (m_view.isSt... | setFont(isOpen ? normalBoldFont : normalFont); |
744,408 | public void paint(Graphics g) {<NEW_LINE>Dimension size = getSize();<NEW_LINE>int gridSize = (int) renderer.getScaledGridSize();<NEW_LINE>// Background<NEW_LINE>g.setColor(getBackground());<NEW_LINE>g.fillRect(x, y, size.width, size.height);<NEW_LINE>// Border<NEW_LINE>AppStyle.border.paintAround((Graphics2D) g, x, y, ... | token.getImageAssetId(), renderer); |
1,707,023 | public BeanDefinition parse(Element element, ParserContext parserContext) {<NEW_LINE>Object source = parserContext.extractSource(element);<NEW_LINE>String id = element.getAttribute("id");<NEW_LINE>BeanComponentDefinitionBuilder helper = new BeanComponentDefinitionBuilder(element, parserContext);<NEW_LINE>BeanDefinition... | getComponent(MongoParsingUtils.getWriteConcernPropertyEditorBuilder()); |
719,424 | public Role loadRole(String rolename) throws IOException {<NEW_LINE>File roleProfile = SystemFileFactory.INSTANCE.getFile(roleDirPath + File.separator + rolename + IoTDBConstant.PROFILE_SUFFIX);<NEW_LINE>if (!roleProfile.exists() || !roleProfile.isFile()) {<NEW_LINE>// System may crush before a newer file is written, s... | FileInputStream inputStream = new FileInputStream(roleProfile); |
1,855,129 | void handleLinkTag(MutableAttributeSet attributes) {<NEW_LINE>Object rel = attributes.getAttribute(HTML.Attribute.REL);<NEW_LINE>Object type = attributes.getAttribute(HTML.Attribute.TYPE);<NEW_LINE>Object href = attributes.<MASK><NEW_LINE>if (rel != null && type != null && href != null) {<NEW_LINE>if (rel.toString().eq... | getAttribute(HTML.Attribute.HREF); |
726,441 | private static ReleaseWakeLockArgs createReleaseWakeLockArgs2(Object[] argsArr) {<NEW_LINE>if (argsArr.length != 2) {<NEW_LINE>MatrixLog.w(TAG, "createReleaseWakeLockArgs2 args length invalid : %d", argsArr.length);<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ReleaseWakeLockArgs args = new ReleaseWakeLockArgs();<NEW_LINE... | , "createReleaseWakeLockArgs2 args idx 0 not IBinder, %s", argsArr[0]); |
733,689 | public void marshall(CreateAssociationRequest createAssociationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createAssociationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createAssoci... | createAssociationRequest.getApplyOnlyAtCronInterval(), APPLYONLYATCRONINTERVAL_BINDING); |
738,857 | public void marshall(BackupVaultListMember backupVaultListMember, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (backupVaultListMember == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(backupVaultListMember... | backupVaultListMember.getCreatorRequestId(), CREATORREQUESTID_BINDING); |
361,467 | public FilterOperation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FilterOperation filterOperation = new FilterOperation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | class).unmarshall(context)); |
971,488 | public static Memory register(Environment env, Memory... args) {<NEW_LINE>String code = args[0].toString();<NEW_LINE>String className = <MASK><NEW_LINE>if (code.isEmpty()) {<NEW_LINE>throw new IllegalArgumentException("Argument 1 (code) must be not empty");<NEW_LINE>}<NEW_LINE>if (!code.matches("^[A-Za-z0-9]+$")) {<NEW... | args[1].toString(); |
1,332,813 | private MessageDefinition messageDefinitionFromConnectSchema(FromConnectContext ctx, DynamicSchema.Builder schema, String name, Schema messageElem) {<NEW_LINE>MessageDefinition.Builder message = MessageDefinition.newBuilder(name);<NEW_LINE>int index = 1;<NEW_LINE>for (Field field : messageElem.fields()) {<NEW_LINE>Sche... | ).get(PROTOBUF_TYPE_TAG) : null; |
1,174,057 | static void populateBuiltInHandlers(TypeHandlerLibrary typeHandlerLibrary) {<NEW_LINE>typeHandlerLibrary.addTypeHandler(Boolean.class, new BooleanTypeHandler());<NEW_LINE>typeHandlerLibrary.addTypeHandler(Boolean.TYPE, new BooleanTypeHandler());<NEW_LINE>typeHandlerLibrary.addTypeHandler(Byte.class, new ByteTypeHandler... | .class, new StringTypeHandler()); |
546,016 | public void processXML() throws InjectionException {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<ServiceRef> serviceRefs = (List<ServiceRef>) ivNameSpaceConfig.getWebServiceRefs();<NEW_LINE>// no need to do any work if there are no service refs in the XML<NEW_LINE>if (serviceRefs == null || serviceRefs.isEmpt... | InjectionHelper.normalizeJaxWsServiceRefs(serviceRefs, moduleClassLoader); |
1,122,510 | public ResponseData register(@RequestBody Map<String, String> map, HttpServletRequest request) {<NEW_LINE>String userName = map.get("userName");<NEW_LINE>String userPwd = map.get("userPwd");<NEW_LINE>String captcha = map.get("captcha");<NEW_LINE>String <MASK><NEW_LINE>KaptchaCodeRequest kaptchaCodeRequest = new Kaptcha... | email = map.get("email"); |
1,693,738 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("norminv" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQExceptio... | + mm.getMessage("function.invalidParam")); |
1,800,991 | private void displayFile(AvroFileStoreConnector connector) {<NEW_LINE>try {<NEW_LINE>System.out.println("===============================");<NEW_LINE>System.out.println("Accessing file: " + fileName);<NEW_LINE>File file = connector.getFile();<NEW_LINE>System.out.println("File: " + file.getName());<NEW_LINE>System.out.pr... | System.out.println("No asset properties ..."); |
244,603 | public CView createView(final String name, final String description) {<NEW_LINE>Preconditions.checkNotNull(name, "IE00164: Name argument can not be null");<NEW_LINE>Preconditions.checkNotNull(description, "IE00165: Name description can not be null");<NEW_LINE>final Date date = new Date();<NEW_LINE>final CModuleViewGene... | <CTag>(), false); |
815,614 | public final // JPA2.g:518:1: parameter_name : WORD ( '.' WORD )* ;<NEW_LINE>JPA2Parser.parameter_name_return parameter_name() throws RecognitionException {<NEW_LINE>JPA2Parser.parameter_name_return retval = new JPA2Parser.parameter_name_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_... | match(input, WORD, FOLLOW_WORD_in_parameter_name4834); |
1,731,108 | public void visit(Scalar node) {<NEW_LINE>if (CancelSupport.getDefault().isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (lineBounds.containsInclusive(node.getStartOffset())) {<NEW_LINE>NamespaceDeclaration currenNamespace = null;<NEW_LINE>for (ASTNode oneNode : getPath()) {<NEW_LINE>if (oneNode instanceof Nam... | String stringValue = node.getStringValue(); |
1,232,853 | public ModifyReplicationSubnetGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ModifyReplicationSubnetGroupResult modifyReplicationSubnetGroupResult = new ModifyReplicationSubnetGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | JsonToken token = context.getCurrentToken(); |
1,316,974 | public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("MessageDigest.SHA3-224", PREFIX + "$Digest224");<NEW_LINE>provider.addAlgorithm("MessageDigest.SHA3-256", PREFIX + "$Digest256");<NEW_LINE>provider.addAlgorithm("MessageDigest.SHA3-384", PREFIX + "$Digest384");<NEW_LINE>provider.addA... | PREFIX + "$KMac128", PREFIX + "$KeyGenerator256"); |
1,613,971 | public boolean delete(final Contentlet contentlet, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>final Optional<Boolean> deleteOpt = this.checkAndRunDeleteAsWorkflow(contentlet, user, respectFrontendRoles);<NEW_LINE>if (deleteOpt.isPresent()) {<NEW_LINE>Lo... | delete(contentlets, user, respectFrontendRoles); |
378,600 | public void marshall(CreateActionRequest createActionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createActionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createActionRequest.getActi... | createActionRequest.getSource(), SOURCE_BINDING); |
693,111 | protected void acceptTypeParameter(TypeParameterInfo typeParameterInfo, JavaElementInfo parentInfo) {<NEW_LINE>JavaElement parentHandle = (JavaElement) this.handleStack.peek();<NEW_LINE>String nameString = new String(typeParameterInfo.name);<NEW_LINE>// NB: occurenceCount is computed in resolveDuplicates<NEW_LINE>TypeP... | ITypeParameter[] typeParameters = elementInfo.typeParameters; |
1,169,327 | private static void write_padstack(app.freerouting.library.Padstack p_padstack, BasicBoard p_board, IdentifierType p_identifier_type, CoordinateTransform p_coordinate_transform, IndentFileWriter p_file) throws java.io.IOException {<NEW_LINE>// search the layer range of the padstack<NEW_LINE>int first_layer_no = 0;<NEW_... | p_board.layer_structure.arr[i]; |
366,820 | // ------------------------------------------------------------------------------<NEW_LINE>// Method: MultiScopeRecoveryLog.closeLogImmediate<NEW_LINE>// ------------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public void closeLogImmediate() throws InternalLogException... | exc, "com.ibm.ws.recoverylog.spi.MultiScopeRecoveryLog.closeLogImmediate", "1173", this); |
232,586 | private void updateTabFieldColumns(Properties ctx, I_AD_Tab tab, String trxName) {<NEW_LINE>final String tableName = Services.get(IADTableDAO.class).retrieveTableName(tab.getAD_Table_ID());<NEW_LINE>final List<I_AD_Field> fields = new Query(ctx, I_AD_Field.Table_Name, I_AD_Field.COLUMNNAME_AD_Tab_ID + "=?", trxName).se... | (field).deleteEx(true); |
541,818 | public void create(IProject project, CommandLine commandLine) {<NEW_LINE>String[] args = commandLine.getValues(Options.ARGS_OPTION);<NEW_LINE>DefaultParser parser = new DefaultParser();<NEW_LINE>org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();<NEW_LINE>options.addOption(Option.builder().ha... | IProjectDescription desc = project.getDescription(); |
163,559 | public SleuthkitCase createPortableCase(String caseName, File portableCaseFolder) throws TskCoreException {<NEW_LINE>if (portableCaseFolder.exists()) {<NEW_LINE>throw new TskCoreException("Portable case folder " + portableCaseFolder.toString() + " already exists");<NEW_LINE>}<NEW_LINE>if (!portableCaseFolder.mkdirs()) ... | "Error creating portable case folder " + portableCaseFolder.toString()); |
764,170 | public static ListAstralnetAppUrlsResponse unmarshall(ListAstralnetAppUrlsResponse listAstralnetAppUrlsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAstralnetAppUrlsResponse.setRequestId(_ctx.stringValue("ListAstralnetAppUrlsResponse.RequestId"));<NEW_LINE>listAstralnetAppUrlsResponse.setCode(_ctx.integerValue("Li... | ("ListAstralnetAppUrlsResponse.Data.Item[" + i + "].UrlSuffixes")); |
1,821,132 | private void loadProps() {<NEW_LINE>InputStream inputStream;<NEW_LINE>String url = System.getProperty(IoTDBConstant.IOTDB_CONF, null);<NEW_LINE>if (url == null) {<NEW_LINE>url = System.getProperty(IoTDBConstant.IOTDB_HOME, null);<NEW_LINE>if (url != null) {<NEW_LINE>url = url + File.separatorChar + "conf" + File.separa... | logger.warn("Error format in sync config file, use default sync configuration.", e); |
968,218 | void dfs(int u, int p) {<NEW_LINE>visited[u] = true;<NEW_LINE>lowlink[u] = tin[u] = time++;<NEW_LINE>stack.add(u);<NEW_LINE>int children = 0;<NEW_LINE>boolean cutPoint = false;<NEW_LINE>for (int v : graph[u]) {<NEW_LINE>if (v == p)<NEW_LINE>continue;<NEW_LINE>if (visited[v]) {<NEW_LINE>// or lowlink[u] = Math.min(lowli... | int x = stack.pop(); |
1,111,502 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.layout_examplegeneric);<NEW_LINE>flContainer = (FrameLayout) findViewById(R.id.fl);<NEW_LINE>tvExplanation = (TextView) findViewById(R.id.tv_explanation);<NEW_LINE>tvTitle = (TextView) find... | setText(R.string.explanation_emailorcredit); |
945,357 | private void createStatistic(Map<String, SamplingStatistic> statistics, MapResultData resultData) {<NEW_LINE>LOGGER.debug("Creating statistics for result data:{}", resultData);<NEW_LINE>SamplingStatistic statistic = new SamplingStatistic();<NEW_LINE>ListResultData listResultData = (ListResultData) resultData.getResult(... | 9)).getValue()); |
1,235,405 | public AdminListDevicesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AdminListDevicesResult adminListDevicesResult = new AdminListDevicesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
1,263,232 | private void testCacheEntryDoesNotMatch(String key, Object unexpectedValue) throws Exception {<NEW_LINE>byte[] unexpectedBytes = unexpectedValue == null ? null : toBytes(unexpectedValue);<NEW_LINE>System.out.println("testCacheEntryDoesNotMatch cache entry " + key + " will be checked to verify the value is not: " + unex... | bytes = cache.get(key); |
985,140 | public void fieldEofResponse(byte[] headerNull, List<byte[]> fieldsNull, List<FieldPacket> fieldPackets, byte[] eofNull, boolean isLeft, @NotNull AbstractService service) {<NEW_LINE>if (terminate.get()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>session.setHandlerStart(this);<NEW_LINE>i... | (session.getOtherBufferMC())); |
190,479 | public RuleResult execute(final Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========ResourcewithSeverityVulnerabilityRule started=========");<NEW_LINE>Annotation annotation = null;<NEW_LINE>String instanceId = null;<NEW_LINE>String severity = ruleParam.get(PacmanRuleC... | resourceAttributes.get(PacmanRuleConstants.ENTITY_TYPE); |
203,522 | protected void initializeDefaults() {<NEW_LINE>setDefaultVertexShape(ELLIPSE);<NEW_LINE>setDefaultVertexColor(WebColors.RED);<NEW_LINE>setDefaultEdgeColor(WebColors.RED);<NEW_LINE>setFavoredEdgeType(FALL_THROUGH);<NEW_LINE>configureVertexType(BODY, RECTANGLE, WebColors.BLUE);<NEW_LINE>configureVertexType(ENTRY, TRIANGL... | configureEdgeType(WRITE_INDIRECT, WebColors.DARK_RED); |
965,451 | public static void vertical9(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip, int divisor) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final <MASK><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 = ker... | short[] dataDst = output.data; |
925,751 | private void createUfsBlock(BlockWriteRequestContext context) throws Exception {<NEW_LINE>BlockWriteRequest request = context.getRequest();<NEW_LINE>Protocol.CreateUfsBlockOptions createUfsBlockOptions = request.getCreateUfsBlockOptions();<NEW_LINE>UfsManager.UfsClient ufsClient = mUfsManager.get(createUfsBlockOptions.... | , MetricInfo.TAG_UFS, ufsString)); |
126,177 | public static void replicatedMapXmlGenerator(ConfigXmlGenerator.XmlGenerator gen, Config config) {<NEW_LINE>for (ReplicatedMapConfig r : config.getReplicatedMapConfigs().values()) {<NEW_LINE><MASK><NEW_LINE>gen.open("replicatedmap", "name", r.getName()).node("in-memory-format", r.getInMemoryFormat()).node("async-fillup... | MergePolicyConfig mergePolicyConfig = r.getMergePolicyConfig(); |
965,915 | protected void initView() {<NEW_LINE>LayoutInflater.from(mContext).inflate(R.layout.trtccalling_group_videocall_activity_call_main, this);<NEW_LINE>mMuteImg = (ImageView) findViewById(R.id.iv_mute);<NEW_LINE>mMuteLl = (LinearLayout) findViewById(R.id.ll_mute);<NEW_LINE>mHangupImg = (ImageView) findViewById(R.id.iv_hang... | findViewById(R.id.img_camera); |
928,474 | private void sendEMail(final MClient client, final UserId userId, EMailAddress email, final String subject, final String message, final File pdf, final boolean isHtml) {<NEW_LINE>if (userId != null) {<NEW_LINE>final I_AD_User <MASK><NEW_LINE>email = EMailAddress.ofNullableString(user.getEMail());<NEW_LINE>if (email != ... | user = context.getUserById(userId); |
806,268 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>// Create the adapter that will return a fragment for each section<NEW_LINE>FragmentStateAdapter mPagerAdapter = new FragmentStateAdapte... | (), new MyTopPostsFragment() }; |
780,404 | private <TOKEN extends CoreLabel> void annotateTokens(List<TOKEN> tokens) {<NEW_LINE>// Make a copy of the tokens before annotating because QuantifiableEntityNormalizer may change the POS too<NEW_LINE>List<CoreLabel> words = new ArrayList<>();<NEW_LINE>for (CoreLabel token : tokens) {<NEW_LINE>CoreLabel word = new Core... | setWord(token.word()); |
46,341 | public Chunk read(ByteBuf input, ClientWorld world) throws Exception {<NEW_LINE>int chunkX = input.readInt();<NEW_LINE>int chunkZ = input.readInt();<NEW_LINE><MASK><NEW_LINE>int primaryBitmask = Type.VAR_INT.readPrimitive(input);<NEW_LINE>// Size (unused)<NEW_LINE>Type.VAR_INT.readPrimitive(input);<NEW_LINE>BitSet used... | boolean groundUp = input.readBoolean(); |
188,794 | private void checkLayout() throws ReplicationException.CompatibilityException {<NEW_LINE>while (true) {<NEW_LINE>if (!store.exists(layoutPath).join()) {<NEW_LINE>LedgerRereplicationLayoutFormat.Builder builder = LedgerRereplicationLayoutFormat.newBuilder();<NEW_LINE>builder.setType(LAYOUT).setVersion(LAYOUT_VERSION);<N... | ReplicationException.CompatibilityException("Invalid data found", pe); |
1,027,423 | private void calculateNextLinks() {<NEW_LINE><MASK><NEW_LINE>if (levelObjects.get(0) instanceof Literal) {<NEW_LINE>for (ActionSchema action : problem.getPropositionalisedActions()) {<NEW_LINE>if (levelObjects.containsAll(action.getPrecondition())) {<NEW_LINE>List<Object> nextLevelNodes;<NEW_LINE>for (Literal literal :... | nextLinks = new HashMap<>(); |
307,222 | public QueryStatement toSelectStmt() {<NEW_LINE>if (where == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (type == null) {<NEW_LINE>type = SetType.DEFAULT;<NEW_LINE>}<NEW_LINE>// Columns<NEW_LINE>SelectList selectList = new SelectList();<NEW_LINE>ExprSubstitutionMap aliasMap = new ExprSubstitutionMap(false);<NE... | (tableName, "VARIABLE_NAME"), NAME_COL); |
1,261,873 | protected int doPersist(final WorldStateStorage worldStateStorage, final Updater updater, final WorldDownloadState<SnapDataRequest> downloadState, final SnapSyncState snapSyncState) {<NEW_LINE>if (startStorageRange.isPresent() && endStorageRange.isPresent()) {<NEW_LINE>// not store the new account if we just want to co... | super.maybeStoreNode(location, node); |
1,832,115 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
474,873 | public static DescribeInstanceInfoResponse unmarshall(DescribeInstanceInfoResponse describeInstanceInfoResponse, UnmarshallerContext context) {<NEW_LINE>describeInstanceInfoResponse.setRequestId(context.stringValue("DescribeInstanceInfoResponse.RequestId"));<NEW_LINE>describeInstanceInfoResponse.setInstanceId(context.s... | ("DescribeInstanceInfoResponse.NetworkInfoItems[" + i + "].VSwitchId")); |
70,643 | public void initTree() {<NEW_LINE>// Not initialized<NEW_LINE>if (m_AD_FavTree_ID == -1) {<NEW_LINE>mTreeFav = new MTreeFavorite(Env.getCtx(), 0, null);<NEW_LINE>m_AD_FavTree_ID = mTreeFav.getTreeID(AD_Role_ID, AD_User_ID, AD_Client_ID);<NEW_LINE>}<NEW_LINE>// Not found<NEW_LINE>if (m_AD_FavTree_ID == -1) {<NEW_LINE>mT... | initADTree(tree, m_AD_FavTree_ID, 0); |
1,823,807 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final String destination = instruction.getOperands().get(0).getRootNode().getChildren().get(0).getValue();<NEW_LINE>final String operand = instruction.getOperands(... | lsb, width, OperandSize.DWORD); |
82,736 | protected ScriptedMetricAggregatorFactory doBuild(QueryShardContext queryShardContext, AggregatorFactory parent, Builder subfactoriesBuilder) throws IOException {<NEW_LINE>if (combineScript == null) {<NEW_LINE>throw new IllegalArgumentException("[combineScript] must not be null: [" + name + "]");<NEW_LINE>}<NEW_LINE>if... | mapScript, ScriptedMetricAggContexts.MapScript.CONTEXT); |
984,226 | protected static boolean hasLevelOrHint(FilterSpecCompilerIndexPlannerHint requiredHint, StatementRawInfo raw, StatementCompileTimeServices services) throws ExprValidationException {<NEW_LINE>ConfigurationCompilerExecution.FilterIndexPlanning config = services.getConfiguration().getCompiler().getExecution().getFilterIn... | ExprValidationException("Unrecognized filterindex hint value '" + hintAtom + "'"); |
169,230 | public io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Apiextensions.ServiceReference result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x000000... | proto.V1beta1Apiextensions.ServiceReference(this); |
254,634 | private void removeProductQtyFromHU(final IHUContext huContext, final I_M_HU hu, final PackingItemPart part) {<NEW_LINE>final ShipmentScheduleId shipmentScheduleId = part.getShipmentScheduleId();<NEW_LINE>final I_M_ShipmentSchedule schedule = Services.get(IShipmentSchedulePA.class).getById(shipmentScheduleId);<NEW_LINE... | = new GenericAllocationSourceDestination(shipmentScheduleQtyPickedStorage, schedule); |
36,984 | public void injectConverter(AStatement userStatementNode, ScriptScope scriptScope) {<NEW_LINE>Converter converter = scriptScope.getDecoration(userStatementNode, Converter.class);<NEW_LINE>if (converter == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IRNodeDecoration irNodeDecoration = scriptScope.getDecoration(userStat... | createError(new IllegalStateException("illegal tree structure")); |
144,295 | public CreatePrivateTemplateAnswer CreatePrivateTemplateFromSnapshot(CreatePrivateTemplateFromSnapshotCommand cmd) {<NEW_LINE>TransactionLegacy txn = <MASK><NEW_LINE>MockVolumeVO snapshot = null;<NEW_LINE>MockSecStorageVO sec = null;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>String snapshotUUId = cmd.getSnapshotUui... | TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB); |
1,409,928 | public RegionReport unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>RegionReport regionReport = new RegionReport();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>... | ().unmarshall(context)); |
191,074 | public void MultiProvider_LocalAuthentication_withRequestParameters() throws Exception {<NEW_LINE>SocialTestSettings updatedSocialTestSettings = socialSettings.copyTestSettings();<NEW_LINE>updatedSocialTestSettings = updateSettingsForLocalAuthentication(updatedSocialTestSettings);<NEW_LINE>// Add request parameters to ... | addQueryParameterExpectations(expectations, reqParams, lastAction); |
710,428 | private void populateSupportedFieldNamesFromVcfFile() {<NEW_LINE>final VCFFileReader reader = new VCFFileReader(sourceFilePath);<NEW_LINE>final VCFHeader header = reader.getFileHeader();<NEW_LINE>final List<String> infoLineKeys = new ArrayList<>();<NEW_LINE>final Map<String, Boolean> <MASK><NEW_LINE>// Get our list of ... | infoFieldFlagMap = new HashMap<>(); |
619,110 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_tor_run, container, false);<NEW_LINE>btnTorStart = view.findViewById(R.id.btnTorStart);<NEW_LINE>// Not required for a portrait orientation, so return<NEW_LINE>if (... | findViewById(R.id.tvTorStatus); |
899,083 | static CommandComplete decode(ByteBuf in) {<NEW_LINE>Assert.requireNonNull(in, "in must not be null");<NEW_LINE>String tag = readCStringUTF8(in);<NEW_LINE>if (tag.startsWith("INSERT")) {<NEW_LINE>int index1 = tag.indexOf(' ');<NEW_LINE>int index2 = tag.indexOf(' ', index1 + 1);<NEW_LINE>int index3 = tag.indexOf(' ', in... | index1 = tag.indexOf(' '); |
1,769,243 | private final NativeFunctionInfo newFunctionInfo(Ruby runtime, CallbackInfo cbInfo) {<NEW_LINE>org.jruby.ext.ffi.Type[] paramTypes = cbInfo.getParameterTypes();<NEW_LINE>for (int i = 0; i < paramTypes.length; ++i) {<NEW_LINE>if (!isParameterTypeValid(paramTypes[i]) || FFIUtil.getFFIType(paramTypes[i]) == null) {<NEW_LI... | CallingConvention.STDCALL : CallingConvention.DEFAULT); |
383,652 | final EnableUserResult executeEnableUser(EnableUserRequest enableUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.SERVICE_ID, "finspace data"); |
311,401 | public void paintInstance(InstancePainter painter) {<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>final var b = painter.getBounds();<NEW_LINE>final var x = b.getX();<NEW_LINE>final var y = b.getY();<NEW_LINE>final var height = (byte) b.getHeight();<NEW_LINE>final var width = (byte) b.getWidth();<NEW_LINE>g.se... | y + 15, 10, 10); |
1,311,168 | final UpdateContactResult executeUpdateContact(UpdateContactRequest updateContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,479,796 | public void execute(Job job, String configuration, ExecutionEntity execution, CommandContext commandContext) {<NEW_LINE>String nestedActivityId = TimerEventHandler.getActivityIdFromConfiguration(configuration);<NEW_LINE>ActivityImpl borderEventActivity = execution.getProcessDefinition().findActivity(nestedActivityId);<... | LOGGER.error("exception during timer execution", e); |
1,232,496 | protected void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Exception {<NEW_LINE>LOG.log(Debug.getDebugLogLevel(), "Incoming message: " + msg);<NEW_LINE>if (msg instanceof io.netty.handler.codec.http.HttpRequest) {<NEW_LINE>LOG.log(Debug.getDebugLogLevel(), "Start of http request: " + msg);<NEW_LINE>i... | Debug.getDebugLogLevel(), "Closing input pipe."); |
712,393 | protected Transferable createTransferable(JComponent c) {<NEW_LINE>Map<String, String> _copiedImgs = getCopiedImgs();<NEW_LINE>JTextPane aTextPane = (JTextPane) c;<NEW_LINE>SikuliEditorKit kit = ((SikuliEditorKit) aTextPane.getEditorKit());<NEW_LINE>Document doc = aTextPane.getDocument();<NEW_LINE><MASK><NEW_LINE>int s... | int sel_start = aTextPane.getSelectionStart(); |
769,612 | public MongoItemReader<T> build() {<NEW_LINE>Assert.notNull(this.template, "template is required.");<NEW_LINE>if (this.saveState) {<NEW_LINE>Assert.hasText(this.name, "A name is required when saveState is set to true");<NEW_LINE>}<NEW_LINE>Assert.notNull(this.targetType, "targetType is required.");<NEW_LINE>Assert.stat... | reader.setFields(this.fields); |
882,710 | public synchronized void start() {<NEW_LINE>if (log.isInfoEnabled()) {<NEW_LINE>log.info("Starting EsperIO DB Adapter for runtime URI '" + runtimeURI + "'");<NEW_LINE>}<NEW_LINE>EPRuntimeSPI runtime = (EPRuntimeSPI) EPRuntimeProvider.getRuntime(runtimeURI);<NEW_LINE>databaseConfigSvc = new DatabaseConfigServiceImpl(con... | add(deployment.getDeploymentId()); |
813,946 | private void updateEncryptionPreferences() {<NEW_LINE>boolean encrypted = _vaultManager.getVault().isEncryptionEnabled();<NEW_LINE>_encryptionPreference.setChecked(encrypted, true);<NEW_LINE>_setPasswordPreference.setVisible(encrypted);<NEW_LINE>_biometricsPreference.setVisible(encrypted);<NEW_LINE>_autoLockPreference.... | (BiometricSlot.class), true); |
1,269,694 | Optional<OspfExternalRoute> convertToExternalRoute(AbstractRouteDecorator potentialExportRoute, RoutingPolicy exportPolicy) {<NEW_LINE>// Prepare the builder<NEW_LINE>OspfExternalRoute.Builder outputRouteBuilder = OspfExternalRoute.builder().setNextHop(NextHopDiscard.instance());<NEW_LINE>// Export based on the policy ... | OspfMetricType metricType = outputRouteBuilder.getOspfMetricType(); |
1,559,727 | public static SettingsController create(Context context, String googleAppId, IdManager idManager, HttpRequestFactory httpRequestFactory, String versionCode, String versionName, FileStore fileStore, DataCollectionArbiter dataCollectionArbiter) {<NEW_LINE>final String installerPackageName = idManager.getInstallerPackageN... | String deviceModel = idManager.getModelName(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.