idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
800,263 | public final DTypeContext dType() throws RecognitionException {<NEW_LINE>DTypeContext _localctx = new DTypeContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 36, RULE_dType);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>{<NEW_LINE>setState(310);<NEW_LINE>_localctx.bas... | .t.getText())); |
630,082 | public GlobalSearchScope uniteWith(@Nonnull GlobalSearchScope scope) {<NEW_LINE>if (equals(scope)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (scope instanceof DirectoryScope) {<NEW_LINE>if (in(((DirectoryScope) scope).myDirectory)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>VirtualFile[] newDirectories = ArrayUti... | (DirectoryScope) scope).myWithSubdirectories); |
276,261 | private ClientDetailsEntity validateAuth(ClientDetailsEntity newClient) throws ValidationException {<NEW_LINE>if (newClient.getTokenEndpointAuthMethod() == null) {<NEW_LINE>newClient.setTokenEndpointAuthMethod(AuthMethod.SECRET_BASIC);<NEW_LINE>}<NEW_LINE>if (newClient.getTokenEndpointAuthMethod() == AuthMethod.SECRET_... | "invalid_client_metadata", "JWK Set URI required when using private key authentication", HttpStatus.BAD_REQUEST); |
1,123,365 | void refreshConfig() {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.put("serverAddr", <MASK><NEW_LINE>properties.put("namespace", NacosConfig.INSTANCE.getNameSpace());<NEW_LINE>try {<NEW_LINE>ConfigService configService = NacosFactory.createConfigService(properties);<NEW_LINE>String content = ... | NacosConfig.INSTANCE.getServerAddr()); |
1,201,634 | private Value readNumericBinary(int paramLen) throws IOException {<NEW_LINE>if (paramLen < 8) {<NEW_LINE>throw DbException.getInvalidValueException("numeric binary length", paramLen);<NEW_LINE>}<NEW_LINE>short len = readShort();<NEW_LINE>short weight = readShort();<NEW_LINE>short sign = readShort();<NEW_LINE>short scal... | DbException.getInvalidValueException("numeric chunk", c); |
1,576,796 | private static FileResource createRegularURI(String pathname, boolean asFile) {<NEW_LINE>URL url;<NEW_LINE>try {<NEW_LINE>// TODO NormalizedFile does too much - should leave uri: files as they are<NEW_LINE>// and make file:/a protocol to be file:///a so the second replace does not apply<NEW_LINE>pathname = pathname.rep... | URI + pathname, url, null); |
1,474,798 | private State _checkl(char command, boolean expectNumber, State state) throws IOException, DatatypeException {<NEW_LINE>for (; ; ) {<NEW_LINE>switch(state.current) {<NEW_LINE>default:<NEW_LINE>if (expectNumber) {<NEW_LINE>reportUnexpected("coordinate pair for " + "\u201c" + command + "\u201d command", state.current, st... | checkArg(command, "y coordinate", state); |
1,543,442 | public Status insert(String table, String key, Map<String, ByteIterator> values) {<NEW_LINE>try {<NEW_LINE>Set<String> fields = values.keySet();<NEW_LINE>PreparedStatement stmt = insertStmts.get(fields);<NEW_LINE>// Prepare statement on demand<NEW_LINE>if (stmt == null) {<NEW_LINE>Insert insertStmt = QueryBuilder.inser... | stmt = session.prepare(insertStmt); |
727,649 | List<NetFlowV9Packet> decodeV9Packets(ByteBuf buffer) throws InvalidProtocolBufferException {<NEW_LINE>byte[] v9JournalEntry = new byte[buffer.readableBytes()];<NEW_LINE>buffer.readBytes(v9JournalEntry);<NEW_LINE>final NetFlowV9Journal.RawNetflowV9 rawNetflowV9 = NetFlowV9Journal.RawNetflowV9.parseFrom(v9JournalEntry);... | templateMap.put(templateId, netFlowV9Template); |
1,236,760 | public static void toFile(File targetFile, ClientConfiguration config) throws Exception {<NEW_LINE>// write contents to a temporary file<NEW_LINE>RemoteFile originalFile = LibertyFileManager.createRemoteFile(Machine.getLocalMachine(), targetFile.getAbsolutePath());<NEW_LINE>RemoteFile newServerFile = LibertyFileManager... | ).marshal(config, os); |
1,090,888 | private static void shutdownConnectionGracefullyIfThresholdReached(Request request) {<NEW_LINE>ConnectorConfig connectorConfig = getConnector(request).connectorConfig();<NEW_LINE>int maxRequestsPerConnection = connectorConfig.maxRequestsPerConnection();<NEW_LINE>Connection connection = RequestUtils.getConnection(reques... | double maxConnectionLifeInSeconds = connectorConfig.maxConnectionLife(); |
1,439,226 | public static void invokeConcurrentlyIfPossible(final List<? extends Runnable> tasks) {<NEW_LINE>if (tasks.size() == 1 || ApplicationManager.getApplication().isWriteAccessAllowed()) {<NEW_LINE>for (Runnable r : tasks) r.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ProgressIndicator progress = ProgressManager.getIn... | = new ConcurrentLinkedQueue<>(tasks); |
1,071,025 | public FieldBinding[] syntheticFields() {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>return null;<NEW_LINE>int fieldSize = this.synthetics[SourceTypeBinding.FIELD_EMUL] == null ? 0 : this.synthetics[SourceTypeBinding.FIELD_EMUL].size();<NEW_LI... | SourceTypeBinding.CLASS_LITERAL_EMUL].size(); |
999,902 | public void deleteRequest(HttpServletRequest req, HttpServletResponse resp) {<NEW_LINE>ConfigurableWebApplicationContext appContext = (ConfigurableWebApplicationContext) req.getServletContext().getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);<NEW_LINE>if (appContext != null && appContext.isRu... | resp, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, null); |
1,198,107 | public boolean callback(Event event, Type type, QName name, String path, String message) {<NEW_LINE>// if(paths.contains(path)) return true;<NEW_LINE>StringBuilder s = new StringBuilder(message).append(" ");<NEW_LINE>if (event == Event.CREATION) {<NEW_LINE>paths.add(path);<NEW_LINE>s.append("Create ");<NEW_LINE>} else ... | (" OK").toString()); |
463,682 | private NameEnvironmentAnswer[] askForTypeFromModules(ModuleBinding clientModule, ModuleBinding[] otherModules, Function<ModuleBinding, NameEnvironmentAnswer> oracle) {<NEW_LINE>if (clientModule != null && clientModule.nameForLookup().length == 0) {<NEW_LINE>NameEnvironmentAnswer answer = oracle.apply(clientModule);<NE... | .apply(otherModules[i]); |
1,471,075 | private int bsdthread_register(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer thread_start = context.getPointerArg(0);<NEW_LINE>UnidbgPointer start_wqthread = context.getPointerArg(1);<NEW_LINE>int pthreadSize = context.getIntArg(2);<NEW_LINE>UnidbgPointer data ... | dataSize = context.getIntArg(4); |
1,796,527 | public void initNew(HttpServletRequest request, HttpServletResponse response, @RequestParam("code") String code, @RequestParam("state") String state) throws IOException {<NEW_LINE>JsonObject stateJson = new JsonParser().parse(state).getAsJsonObject();<NEW_LINE>AliyunAccessTokenVO token = oauth2Util.getAccessToken(code)... | , TeslaGsonUtil.toJson(token)); |
882,469 | final CreateLocationNfsResult executeCreateLocationNfs(CreateLocationNfsRequest createLocationNfsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLocationNfsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new CreateLocationNfsResultJsonUnmarshaller()); |
873,436 | public ExperimentTemplateTargetInputFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExperimentTemplateTargetInputFilter experimentTemplateTargetInputFilter = new ExperimentTemplateTargetInputFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | int originalDepth = context.getCurrentDepth(); |
711,851 | public boolean shouldRun(Description description) {<NEW_LINE>String methodName = description.getMethodName();<NEW_LINE>if (methodName == null) {<NEW_LINE>// JUnit will give us an org.junit.runner.Description like this for the<NEW_LINE>// test class<NEW_LINE>// itself. It's easier for our filtering to make decisions ju... | = new TestDescription(className, methodName); |
89,605 | public CacheBehaviorPerPath unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CacheBehaviorPerPath cacheBehaviorPerPath = new CacheBehaviorPerPath();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | int originalDepth = context.getCurrentDepth(); |
1,046,382 | public static void ToXContent(ReferenceDecoration referenceDecoration, XContentBuilderWrapper builder) {<NEW_LINE>start(referenceDecoration, builder);<NEW_LINE>FunctionRef ref = referenceDecoration.reference();<NEW_LINE>builder.field("interfaceMethodName", ref.interfaceMethodName);<NEW_LINE>builder.field("interfaceMeth... | field("delegateInvokeType", ref.delegateInvokeType); |
1,569,582 | public State unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>State state = new State();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | class).unmarshall(context)); |
1,111,531 | public CompletableFuture<BallerinaProject> project(BallerinaProjectParams params) {<NEW_LINE>return CompletableFuture.supplyAsync(() -> {<NEW_LINE>BallerinaProject ballerinaProject = new BallerinaProject();<NEW_LINE>try {<NEW_LINE>Optional<Path> filePath = CommonUtil.getPathFromURI(params.getDocumentIdentifier().getUri... | setKind(projectKind.name()); |
215,891 | private void build(MethodGen methodGen) {<NEW_LINE>CodeExceptionGen[] handlerList = methodGen.getExceptionHandlers();<NEW_LINE>// Map handler start instructions to the actual exception handlers<NEW_LINE>for (CodeExceptionGen exceptionHandler : handlerList) {<NEW_LINE>addExceptionHandler(exceptionHandler);<NEW_LINE>}<NE... | .getEndPC().getPosition(); |
1,217,433 | private static Coder<?> inferCoderFromObject(CoderRegistry coderRegistry, SchemaRegistry schemaRegistry, Object o) throws CannotProvideCoderException {<NEW_LINE>if (o == null) {<NEW_LINE>return VoidCoder.of();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>return SchemaCoder.of(schemaRegistry.getSchema(o.getClass()), TypeDescripto... | o).getValue())); |
1,195,852 | protected String validate() {<NEW_LINE>String name = dialogPanel.getResourceName().trim();<NEW_LINE>WebResourceCollection webResource = null;<NEW_LINE>if (row != -1)<NEW_LINE>webResource = model.getWebResourceCollection(row);<NEW_LINE>if (name.length() == 0) {<NEW_LINE>return NbBundle.getMessage(WebResourceCollectionTa... | WebResourceCollectionTablePanel.class, "TXT_EmptyUrlPatterns", name); |
196,232 | public boolean visit(MethodDeclaration node) {<NEW_LINE>int lParen = this.tm.firstIndexAfter(node.getName(), TokenNameLPAREN);<NEW_LINE>int rParen = node.getBody() == null ? this.tm.lastIndexIn(node, TokenNameRPAREN) : this.tm.firstIndexBefore(node.getBody(), TokenNameRPAREN);<NEW_LINE>handleParenthesesPositions(lParen... | .alignment_for_throws_clause_in_constructor_declaration : this.options.alignment_for_throws_clause_in_method_declaration; |
113,171 | private State convertDeviceValueToOpenHabState(Class<? extends Item> itemType, String data) {<NEW_LINE>State state = UnDefType.UNDEF;<NEW_LINE>try {<NEW_LINE>int index;<NEW_LINE>if (itemType == SwitchItem.class) {<NEW_LINE>index = Integer.parseInt(data);<NEW_LINE>state = index == 0 ? OnOffType.OFF : OnOffType.ON;<NEW_L... | index = Integer.parseInt(data); |
366,051 | private void refreshValueProviders() {<NEW_LINE>DebuggerManager dm = DebuggerManager.getDebuggerManager();<NEW_LINE>DebuggerEngine e = dm.getCurrentEngine();<NEW_LINE>List<? extends ValueProvider> providers;<NEW_LINE>if (e == null) {<NEW_LINE>providers = dm.lookup(null, ValueProvider.class);<NEW_LINE>} else {<NEW_LINE>... | String id = provider.getId(); |
1,675,813 | void loadUdafFromClass(final Class<?> theClass, final String path) {<NEW_LINE>final UdafDescription udafAnnotation = theClass.getAnnotation(UdafDescription.class);<NEW_LINE>final List<UdafFactoryInvoker> invokers = new ArrayList<>();<NEW_LINE>for (final Method method : theClass.getMethods()) {<NEW_LINE>if (method.getAn... | ), udafAnnotation.name()); |
762,702 | final GetWorkflowStepsResult executeGetWorkflowSteps(GetWorkflowStepsRequest getWorkflowStepsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWorkflowStepsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<G... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,710,345 | protected Point additionFormular(Point p, Point q) {<NEW_LINE>if (!(p.getFieldX() instanceof FieldElementF2m && p.getFieldY() instanceof FieldElementF2m && q.getFieldX() instanceof FieldElementF2m && q.getFieldY() instanceof FieldElementF2m)) {<NEW_LINE>LOGGER.warn("Trying to add non F2m points with F2m curve. Returnin... | BigInteger.ZERO, BigInteger.ZERO); |
1,506,065 | public CodeCompletionResult complete(CodeCompletionContext context) {<NEW_LINE>List<CompletionProposal> proposals = new ArrayList<CompletionProposal>();<NEW_LINE><MASK><NEW_LINE>String prefix = context.getPrefix();<NEW_LINE>if (prefix == null) {<NEW_LINE>prefix = "";<NEW_LINE>}<NEW_LINE>int anchor = context.getCaretOff... | boolean caseSensitive = context.isCaseSensitive(); |
1,598,206 | private ExpressionNode transformConstantReference(ReferenceNode node, RankProfileTransformContext context) {<NEW_LINE>String constantName = node.getName();<NEW_LINE>Reference constantReference = node.reference();<NEW_LINE>if (FeatureNames.isConstantFeature(constantReference)) {<NEW_LINE>constantName = constantReference... | constantReference = FeatureNames.asConstantFeature(constantName); |
709,803 | public List<ByteRecord> xReadGroup(Consumer consumer, StreamReadOptions readOptions, StreamOffset<byte[]>... streams) {<NEW_LINE>Assert.notNull(consumer, "Consumer must not be null!");<NEW_LINE>Assert.notNull(readOptions, "StreamReadOptions must not be null!");<NEW_LINE>Assert.notNull(streams, "StreamOffsets must not b... | toList(StreamConverters.byteRecordConverter()); |
415,108 | public List<T> handleResponse(HttpResponse response) throws IOException {<NEW_LINE>int statusCode = response.getStatusLine().getStatusCode();<NEW_LINE>if (!isSuccessful(statusCode)) {<NEW_LINE>if (statusCode == SC_NOT_FOUND && myIgnoreNotFound) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>throw Reques... | LOG.warn("Malformed server response", e); |
973,555 | private void updateEmotesets() {<NEW_LINE>boolean changed = false;<NEW_LINE>Set<String> latest = new HashSet<>();<NEW_LINE>Set<String> all = new HashSet<>();<NEW_LINE>synchronized (this) {<NEW_LINE>latest.addAll(userEmotesets);<NEW_LINE>latest.addAll(latestIrcEmotesets);<NEW_LINE>// Both IRC and GetUserEmotes sets as l... | g.updateEmoteNames(latest, all); |
792,305 | public synchronized void updateTextureAtlas(TextureAtlas atlas, TextureFilter minFilter, TextureFilter magFilter, boolean useMipMaps, boolean useIndexes) {<NEW_LINE>updatePageTextures(minFilter, magFilter, useMipMaps);<NEW_LINE>for (Page page : pages) {<NEW_LINE>if (page.addedRects.size > 0) {<NEW_LINE>for (String name... | getRegions().add(region); |
347,866 | public static void initialisationComplete() {<NEW_LINE>SelectedContentManager.addCurrentlySelectedContentListener(new SelectedContentListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void currentlySelectedContentChanged(ISelectedContent[] currentContent, String viewID) {<NEW_LINE>triggerDataSourceListeners(Sele... | to_fire = new ArrayList<>(); |
1,607,532 | // Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>Object o;<NEW_LINE>org.netbeans.modules.schema2beans.BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("PropertyOne");<NEW_LINE>// NOI18N<NEW_L... | .BaseBean) this.getChildObjectTwo(); |
1,071,387 | final GetLifecyclePolicyResult executeGetLifecyclePolicy(GetLifecyclePolicyRequest getLifecyclePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLifecyclePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
974,329 | public int download(String url, FetchHandler handler) throws IOException {<NEW_LINE>HttpGet toGet = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>PerfTimer timer = PerfTimer.start(String.format("Downloading from url [%s]", url));<NEW_LINE>try (CloseableHttpResponse response = execute(toGet)) {<NEW_LINE>timer.stop();<NE... | toGet = httpClientFactory.createGet(url); |
137,073 | public Collection<IvyNode> resolveConflicts(IvyNode in, Collection conflictsUntyped) {<NEW_LINE>Collection<IvyNode> conflicts = conflictsUntyped;<NEW_LINE>// No conflict<NEW_LINE>if (conflicts.size() < 2) {<NEW_LINE>return conflicts;<NEW_LINE>}<NEW_LINE>// Force<NEW_LINE>for (IvyNode node : conflicts) {<NEW_LINE>Depend... | ModuleRevisionId modRev = node.getResolvedId(); |
1,091,698 | public void read(org.apache.thrift.protocol.TProtocol prot, CursorRequestMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.header = new AsyncMessageHeader();<NEW_LINE>struct.header.read(iprot... | .close = iprot.readBool(); |
948,637 | public Map.Entry<StubConfiguration, File> downloadAndUnpackStubJar(StubConfiguration stubConfiguration) {<NEW_LINE>try {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Trying to find a contract for [" + stubConfiguration.toColonSeparatedDependencyNotation() + "]");<NEW_LINE>}<NEW_LINE>Resource repo = this.stu... | FileWalker walker = new FileWalker(stubConfiguration); |
1,183,590 | public boolean onActionItemClicked(ActionMode mode, MenuItem item) {<NEW_LINE>List<MegaNode> documents = adapter.getSelectedNodes();<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.cab_menu_download:<NEW_LINE>{<NEW_LINE>((ContactFileListActivity<MASK><NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case R.id.cab_menu_copy:<... | ) context).downloadFile(documents); |
604,006 | protected Identifier saveIdentifier(final Identifier id) throws DotDataException {<NEW_LINE>if (id == null) {<NEW_LINE>throw new DotRuntimeException("identifier to save cannot be null");<NEW_LINE>}<NEW_LINE>String query;<NEW_LINE>if (UtilMethods.isSet(id.getId())) {<NEW_LINE>if (isIdentifier(id.getId())) {<NEW_LINE>que... | addParam(id.getId()); |
1,187,893 | final CreateTransitGatewayResult executeCreateTransitGateway(CreateTransitGatewayRequest createTransitGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTransitGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2"); |
597,972 | protected <RESULT extends FileConfig> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) {<NEW_LINE>try {<NEW_LINE>final RESULT result = entityType.newInstance();<NEW_LINE>result.setAvailable(DfTypeUtil.toBoolean(source.get("available")));<NEW_LINE>result.setBoost(DfTypeUtil.toFloat(sou... | = "Cannot create a new instance: " + entityType.getName(); |
1,114,888 | public int serialize(byte[] stream, int offset, UUID ownerUuid) {<NEW_LINE>applyNewEntries();<NEW_LINE>final ORecordSerializationContext context;<NEW_LINE>final ODatabaseDocumentInternal databaseDocumentInternal = ODatabaseRecordThreadLocal<MASK><NEW_LINE>boolean remoteMode = databaseDocumentInternal.isRemote();<NEW_LI... | .instance().get(); |
1,850,730 | public ZeebeTransactionDb<ColumnFamilyType> createDb(final File pathName) {<NEW_LINE>final ZeebeTransactionDb<ColumnFamilyType> db;<NEW_LINE>final List<AutoCloseable> closeables = Collections.synchronizedList(new ArrayList<>());<NEW_LINE>try {<NEW_LINE>// column family options have to be closed as last<NEW_LINE>final v... | final var dbOptions = createDefaultDbOptions(closeables); |
1,143,732 | public Composite[] colorize(Graphics2D g2) {<NEW_LINE>Theme currentTheme = ThemeFactory.getCurrentTheme();<NEW_LINE>bgColorString = "";<NEW_LINE>fgColorString = "";<NEW_LINE>bgColor = getDefaultBackgroundColor();<NEW_LINE>fgColorBase = Converter.convert(currentTheme.getColor(Theme.ColorStyle.DEFAULT_FOREGROUND));<NEW_L... | (Theme.ColorStyle.DEFAULT_FOREGROUND)); |
456,773 | protected void executeImpl(Connection metaDbConnection, ExecutionContext executionContext) {<NEW_LINE>LOGGER.info(String.format("start write meta during cutOver for primary table: %s.%s", schemaName, logicalTableName));<NEW_LINE><MASK><NEW_LINE>// allowing use hint to skip clean up stage<NEW_LINE>final String skipCutov... | updateSupportedCommands(true, false, metaDbConnection); |
1,051,333 | public void configureJobConf(TableDesc tableDesc, JobConf jobConf) {<NEW_LINE>if (tableDesc != null && tableDesc.getProperties() != null && tableDesc.getProperties().get(WRITE_KEY) != null) {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkArgument(!tableName.contains(TABLE_NAME_SEPARATOR), "Can not handle table " + tableN... | String tableName = tableDesc.getTableName(); |
1,187,307 | protected void acceptTracked(final AirbyteMessage msg) throws Exception {<NEW_LINE>if (msg.getType() == Type.STATE) {<NEW_LINE>lastStateMessage = msg;<NEW_LINE>outputRecordCollector.accept(lastStateMessage);<NEW_LINE>return;<NEW_LINE>} else if (msg.getType() != Type.RECORD) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ... | ))).build()); |
519,785 | private void processFilterFields() {<NEW_LINE>OsmandApplication app = getMyApplication();<NEW_LINE>String filterByName = filter.getFilterByName();<NEW_LINE>if (!Algorithms.isEmpty(filterByName)) {<NEW_LINE>int index;<NEW_LINE>MapPoiTypes poiTypes = app.getPoiTypes();<NEW_LINE>Map<String, PoiType> poiAdditionals = filte... | '_', ':').toLowerCase(); |
393,438 | protected PropertySet propertySet() {<NEW_LINE>try {<NEW_LINE>pushContext(ContextType.FUNCTION);<NEW_LINE>Token set = consume(IDENTIFIER);<NEW_LINE>if (!set.getText().equals("set")) {<NEW_LINE>throw new SyntaxError("expected 'set', was: " + set);<NEW_LINE>}<NEW_LINE>Token token = laToken();<NEW_LINE>if (!isPropertyName... | = consume().getText(); |
1,330,124 | public static List<Class<?>> findParamTypesFromDescriptor(String desc) {<NEW_LINE>int beginIndex = desc.indexOf('(');<NEW_LINE>int endIndex = desc.lastIndexOf(')');<NEW_LINE>if ((beginIndex == -1 && endIndex != -1) || (beginIndex != -1 && endIndex == -1)) {<NEW_LINE>throw JobRunrException.shouldNotHappenException("Coul... | substring(beginIndex + 1, endIndex); |
1,312,059 | private void loadNode129() {<NEW_LINE>TransitionTypeNode node = new TransitionTypeNode(this.context, Identifiers.ExclusiveLimitStateMachineType_LowToLowLow, new QualifiedName(0, "LowToLowLow"), new LocalizedText("en", "LowToLowLow"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueOf(0));... | .expanded(), false)); |
1,159,438 | // Finds one-to-many matches in functions from addressSet A and Address Set B<NEW_LINE>public static List<MatchedFunctions> matchFunctions(Program aProgram, AddressSetView setA, Program bProgram, AddressSetView setB, int minimumFunctionSize, boolean includeOneToOne, boolean includeNonOneToOne, FunctionHasher hasher, Ta... | ().getFunctionCount())); |
249,883 | public static FieldInitializer of(DependencyInfo dependencyInfo, Visibility visibility, String fieldName, String value) {<NEW_LINE>Preconditions.checkArgument(value<MASK><NEW_LINE>Preconditions.checkArgument(value.endsWith(" }"), "Expected list ending with } ");<NEW_LINE>// Check for an empty list, which is "{ }".<NEW_... | .startsWith("{ "), "Expected list starting with { "); |
939,052 | public void scrollTo(float x, float y, float width, float height, boolean centerHorizontal, boolean centerVertical) {<NEW_LINE>validate();<NEW_LINE>float amountX = this.amountX;<NEW_LINE>if (centerHorizontal) {<NEW_LINE>amountX = x - widgetArea.width / 2 + width / 2;<NEW_LINE>} else {<NEW_LINE>if (x + width > amountX +... | = x + width - widgetArea.width; |
1,472,699 | protected void onDraw(Canvas canvas) {<NEW_LINE>super.onDraw(canvas);<NEW_LINE>int whiteKeyIndex = 0;<NEW_LINE>canvas.drawRect(0, 0, mWidth, mHeight, mShadowPaint);<NEW_LINE>// Draw white keys first.<NEW_LINE>for (int i = 0; i < mNumKeys; i++) {<NEW_LINE>int pitch = mLowestPitch + i;<NEW_LINE>int note = pitch % NOTES_P... | mWhiteKeyWidth - WHITE_KEY_GAP, mHeight, paint); |
1,423,009 | public static final UmaConfiguration create(KeycloakSession session) {<NEW_LINE>WellKnownProvider oidcProvider = session.getProvider(WellKnownProvider.class, OIDCWellKnownProviderFactory.PROVIDER_ID);<NEW_LINE>OIDCConfigurationRepresentation oidcConfig = OIDCConfigurationRepresentation.class.cast(oidcProvider.getConfig... | setIntrospectionEndpoint(oidcConfig.getIntrospectionEndpoint()); |
1,666,904 | void registerItem(GraphItem item) {<NEW_LINE>if (item.getItemType() == GraphItem.NODE) {<NEW_LINE>IFigure figure = item.getFigure();<NEW_LINE>figure2ItemMap.put(figure, item);<NEW_LINE>} else if (item.getItemType() == GraphItem.CONNECTION) {<NEW_LINE>IFigure figure = item.getFigure();<NEW_LINE>figure2ItemMap.put(figure... | ).getSourceContainerConnectionFigure(), item); |
394,102 | private static LayerDrawable createDTRatingMarker(final Resources res, final float difficulty, final float terrain) {<NEW_LINE>final Drawable background = DrawableCompat.wrap(ResourcesCompat.getDrawable(res, R<MASK><NEW_LINE>final InsetsBuilder insetsBuilder = new InsetsBuilder(res, background.getIntrinsicWidth(), back... | .drawable.marker_rating_bg, null)); |
1,304,349 | protected CompletableFuture<Response> encodeResponse(Invocation invocation, Response response) {<NEW_LINE>invocation.onEncodeResponseStart(response);<NEW_LINE>ResponseHeader header = new ResponseHeader();<NEW_LINE>header.setStatusCode(response.getStatusCode());<NEW_LINE>header.setReasonPhrase(response.getReasonPhrase()... | HighwayTransportContext transportContext = invocation.getTransportContext(); |
915,888 | public Map<String, Address> readRegisters(ElfFile file, Builder builder, Object addressSpace) throws IOException {<NEW_LINE>Map<String, Address> registers = new TreeMap<>();<NEW_LINE>for (int i = 0; i < 30; i++) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>registers.put("x" + i, new Address64(file.readLong()));<NEW_LINE>}<NEW_LI... | (file.readLong())); |
29,625 | /*<NEW_LINE>* @see com.ibm.wsspi.channelfw.base.OutboundProtocolLink#connect(java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void connect(Object address) throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "connect, vc=" + getVCHash());<N... | ) + " associated with vc=" + getVCHash()); |
1,495,239 | protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) throws IOException {<NEW_LINE>String jobId = restRequest.param(Job.ID.getPreferredName());<NEW_LINE>final Request request;<NEW_LINE>if (restRequest.hasContentOrSourceParam()) {<NEW_LINE>XContentParser parser = restRequest.contentOr... | .START.getPreferredName())); |
1,145,568 | Bitmap hunt() throws IOException {<NEW_LINE>Bitmap bitmap = null;<NEW_LINE>if (shouldReadFromMemoryCache(memoryPolicy)) {<NEW_LINE>bitmap = cache.get(key);<NEW_LINE>if (bitmap != null) {<NEW_LINE>stats.dispatchCacheHit();<NEW_LINE>loadedFrom = MEMORY;<NEW_LINE>if (picasso.loggingEnabled) {<NEW_LINE>log(OWNER_HUNTER, VE... | transformResult(data, bitmap, exifRotation); |
296,313 | public static int nextWord(@Nonnull String text, int start) {<NEW_LINE>if (!Character.isLetterOrDigit(text.charAt(start))) {<NEW_LINE>return start + 1;<NEW_LINE>}<NEW_LINE>int i = start;<NEW_LINE>while (i < text.length() && Character.isDigit(text.charAt(i))) i++;<NEW_LINE>if (i > start) {<NEW_LINE>// digits form a sepa... | (text, i)) i++; |
1,370,143 | private void showForCloud(final GameRequestContent content, final Object mode) {<NEW_LINE>Context context = this.getActivityContext();<NEW_LINE>AccessToken currentAccessToken = AccessToken.getCurrentAccessToken();<NEW_LINE>if (currentAccessToken == null || currentAccessToken.isExpired()) {<NEW_LINE>throw new FacebookEx... | PARAM_GAME_REQUESTS_MESSAGE, content.getMessage()); |
1,139,523 | private Mono<Response<Object>> createOneDeployOperationWithResponseAsync(String resourceGroupName, String name, 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."));<NEW_LINE>}... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,943 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean notifyUncaught0(com.sun.jdi.request.ExceptionRequest a) {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {<NEW_LINE>org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart("com.sun.jdi.req... | new Object[] { a }); |
1,512,064 | private JComponent createActionsPanel() {<NEW_LINE>final JButton include = new JButton(IdeBundle.message("button.include"));<NEW_LINE>final JButton includeRec = new JButton<MASK><NEW_LINE>final JButton exclude = new JButton(IdeBundle.message("button.exclude"));<NEW_LINE>final JButton excludeRec = new JButton(IdeBundle.... | (IdeBundle.message("button.include.recursively")); |
526,106 | public DetectorState unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DetectorState detectorState = new DetectorState();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu... | int originalDepth = context.getCurrentDepth(); |
1,509,235 | protected void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (UIUtil.isUnderAquaLookAndFeel() || (SystemInfo.isMac && UIUtil.isUnderIntelliJLaF())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(getState()) {<NEW_LINE>case DONT_CARE:<NEW_LINE>Icon icon = getIcon();<NEW_LINE>if (icon == null)... | int height = r2.height / 10; |
1,003,440 | public void appendHoverText(ItemStack stack, @Nullable Level world, List<Component> list, TooltipFlag flag) {<NEW_LINE>String key = getCategory(stack);<NEW_LINE>if (!key.isEmpty() && BlueprintCraftingRecipe.recipeCategories.contains(key)) {<NEW_LINE>String formatKey = Lib.DESC_INFO + "blueprint." + key;<NEW_LINE>String... | add(new TextComponent(key)); |
1,831,958 | public void run(IProgressMonitor mon) throws InvocationTargetException, InterruptedException {<NEW_LINE>mon.beginTask("Import Gradle Buildship project", 10);<NEW_LINE>try {<NEW_LINE>File loc = new File(conf.getLocation());<NEW_LINE>conf.getCodeSet().createAt(loc);<NEW_LINE>// Replace project name in the settings.gradle... | .convert(mon, 9)); |
481,833 | /* Deal with unexpected exception. only used for asyc send*/<NEW_LINE>public void waitForAckForChannel(Channel channel) {<NEW_LINE>if (channel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("wait for ack for channel {}", channel);<NEW_LINE>try {<NEW_LINE>ConcurrentHashMap<String, QueueObject> queueObjMap =... | error("waitForAckForChannel exception, channel is {}", channel, e); |
1,393,167 | private List<I_M_HU> luExtractCUs(@NonNull final HUsToNewCUsRequest singleSourceLuRequest) {<NEW_LINE>Preconditions.checkArgument(singleSourceLuRequest.getQtyCU().<MASK><NEW_LINE>final ImmutableList.Builder<I_M_HU> extractedCUs = new ImmutableList.Builder<>();<NEW_LINE>// how many CUs we still have to extract<NEW_LINE>... | signum() > 0, "qtyCU > 0"); |
453,095 | protected WebPanel createControlsPanel() {<NEW_LINE>final StyleId controlsPanelId = StyleId.directorychooserControlsPanel.at(this);<NEW_LINE>final WebPanel controlsPanel = new WebPanel(controlsPanelId, new BorderLayout(0, 0));<NEW_LINE>final StyleId acceptButtonId = <MASK><NEW_LINE>acceptButton = new WebButton(acceptBu... | StyleId.directorychooserAcceptButton.at(controlsPanel); |
1,680,352 | public void logAudioTrack(int idx) {<NEW_LINE>if (mI == null || !mI.isValid()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>sb.append("\n - Audio - ");<NEW_LINE>boolean first = true;<NEW_LINE>first &= !appendString("Title", mI.Get(StreamType.Audio, idx, "Title"), first, true, true);<NEW_LINE>first &= !appendString("Format... | .Audio, 0, "Duration")); |
1,427,398 | private void addAutomaticLayoutControls(final DefaultFormBuilder formBuilder) {<NEW_LINE>TranslatedObject[] automaticLayoutTypes = TranslatedObject.fromEnum(AutomaticLayout.class);<NEW_LINE>mAutomaticLayoutComboBox = JComboBoxFactory.create(automaticLayoutTypes);<NEW_LINE>DefaultComboBoxModel automaticLayoutComboBoxMod... | (DefaultComboBoxModel) mAutomaticLayoutComboBox.getModel(); |
339,856 | public void execute() {<NEW_LINE>try {<NEW_LINE>RegisteredMicroserviceResponse serviceResponse = serviceCenterClient.queryServiceId(microservice);<NEW_LINE>if (serviceResponse == null) {<NEW_LINE>RegisteredMicroserviceResponse response = serviceCenterClient.registerMicroservice(microservice);<NEW_LINE>if (StringUtils.i... | post(new MicroserviceRegistrationEvent(false)); |
1,288,088 | public Node beforeDecode(mxCodec dec, Node node, Object into) {<NEW_LINE>if (into instanceof mxRootChange) {<NEW_LINE>mxRootChange change = (mxRootChange) into;<NEW_LINE>if (node.getFirstChild() != null && node.getFirstChild().getNodeType() == Node.ELEMENT_NODE) {<NEW_LINE>// Makes sure the original node isn't modified... | node = node.cloneNode(true); |
920,248 | public void add(DLNAResource resource) {<NEW_LINE>DLNAResource res1;<NEW_LINE>LOGGER.debug("Adding \"{}\" to playlist \"{}\"", resource.getDisplayName(), getName());<NEW_LINE>if (resource instanceof VirtualVideoAction) {<NEW_LINE>// don't add these<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resource.getParent() == this) ... | setMediaSubtitle(resource.getMediaSubtitle()); |
1,381,801 | protected ItemStack insertIntoTunnel(BrassTunnelTileEntity tunnel, Direction side, ItemStack stack, boolean simulate) {<NEW_LINE>if (stack.isEmpty())<NEW_LINE>return stack;<NEW_LINE>if (!tunnel.testFlapFilter(side, stack))<NEW_LINE>return null;<NEW_LINE>BeltTileEntity below = BeltHelper.getSegmentTE(level, tunnel.world... | 16f, outPos.z, ejected); |
55,113 | public List<TypeCompound> visitDeclared(AnnotatedDeclaredType type, TypeAnnotationPosition tapos) {<NEW_LINE>if (visitedNodes.containsKey(type)) {<NEW_LINE>return visitedNodes.get(type);<NEW_LINE>}<NEW_LINE>// Hack for termination<NEW_LINE>visitedNodes.put(type, List.nil());<NEW_LINE>List<Attribute.TypeCompound> res;<N... | res = directAnnotations(type, tapos); |
390,734 | public void sessionPut(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>boolean createSession = Boolean.parseBoolean(request.getParameter("createSession"));<NEW_LINE>HttpSession session = request.getSession(createSession);<NEW_LINE>if (createSession)<NEW_LINE>System.out.println(<MAS... | "Created a new session with sessionID=" + session.getId()); |
1,495,553 | private boolean saveVideoWatchStatus(String videoId, long position, boolean watched) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(PlaybackStatusTable.COL_YOUTUBE_VIDEO_ID, videoId);<NEW_LINE>values.put(PlaybackStatusTable.COL_YOUTUBE_VIDEO_POSITION, (int) position);<NEW_LINE>values.put(Pla... | , SQLiteDatabase.CONFLICT_REPLACE) != -1; |
675,952 | public RegisterDeviceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegisterDeviceResult registerDeviceResult = new RegisterDeviceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
1,625,046 | private String validate(Path path) throws IOException, SAXException {<NEW_LINE>if (!used.compareAndSet(false, true)) {<NEW_LINE>throw new IllegalStateException("OneOffValidator instances are not reusable");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (Files.notExists(path) || !Files.isReadable(path)) {<NEW_LINE>errorHandler.... | checkXmlFile(path.toFile()); |
63 | // Newly added to allow the EcoService to be added<NEW_LINE>public void init(Echo12Service echo12Service) {<NEW_LINE>_service = echo12Service;<NEW_LINE>_proxy = null;<NEW_LINE>_dispatch = null;<NEW_LINE>if (_service == null) {<NEW_LINE>try {<NEW_LINE>InitialContext ctx = new InitialContext();<NEW_LINE>_service = (com.i... | Echo12Service) ctx.lookup("java:comp/env/service/Echo12Service"); |
806,877 | public TlsVerifier createVerifier(int signatureScheme) throws IOException {<NEW_LINE>validateKeyUsage(KeyUsage.digitalSignature);<NEW_LINE>switch(signatureScheme) {<NEW_LINE>case SignatureScheme.ecdsa_brainpoolP256r1tls13_sha256:<NEW_LINE>case SignatureScheme.ecdsa_brainpoolP384r1tls13_sha384:<NEW_LINE>case SignatureSc... | BcTlsEd25519Verifier(crypto, getPubKeyEd25519()); |
932,475 | public void handleImportLibrary(String libraryName) {<NEW_LINE>// make sure the user didn't hide the sketch folder<NEW_LINE>sketch.ensureExistence();<NEW_LINE>// import statements into the main sketch file (code[0])<NEW_LINE>// if the current code is a .java file, insert into current<NEW_LINE>// if (current.flavor == P... | packageListFromClassPath(lib.getJarPath()); |
1,417,777 | public static Map<String, Object> resolvedArtifactProps(Artifact artifact, Map<String, Object> props) {<NEW_LINE>props.putAll(artifact.getExtraProperties());<NEW_LINE>props.putAll(artifact.getResolvedExtraProperties());<NEW_LINE>String artifactFile = artifact.getEffectivePath().getFileName().toString();<NEW_LINE>String... | , artifactFileName.indexOf(projectVersion)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.