idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
123,685 | private void applyMigrations(final LinkedHashMap<MigrationInfoImpl, Boolean> group, boolean skipExecutingMigrations) {<NEW_LINE>boolean executeGroupInTransaction = isExecuteGroupInTransaction(group);<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>if (executeGroupInTransaction) {<NEW_LINE>ExecutionTemplateFactory.createExecuti... | final StopWatch stopWatch = new StopWatch(); |
590,185 | public static void prepareTransactionalConnection(Connection connection) throws SQLException {<NEW_LINE>if (!isInAHttpRequest()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean mustCheck = !isCurrentlyInAPublicUrlRequest() && isLoggedUser() && !isPublic() && !isAdmin();<NEW_LINE>if (!mustCheck) {<NEW_LINE>return;<NEW_LI... | execute("set local alfio.currentUserOrgs = '" + formattedOrgIds + "'"); |
579,161 | public static DescribeSuspiciousEventsResponse unmarshall(DescribeSuspiciousEventsResponse describeSuspiciousEventsResponse, UnmarshallerContext context) {<NEW_LINE>describeSuspiciousEventsResponse.setRequestId(context.stringValue("DescribeSuspiciousEventsResponse.RequestId"));<NEW_LINE>describeSuspiciousEventsResponse... | (context.integerValue("DescribeSuspiciousEventsResponse.PageSize")); |
1,242,692 | public void apply(double[] x) {<NEW_LINE>int i;<NEW_LINE>double[] lpfOutTmp;<NEW_LINE>// lpfOutTmp = SignalProcUtils.filter(Hd.getDenumeratorCoefficients(), filterNumerator, x);<NEW_LINE>lpfOutTmp = Hd.apply(x);<NEW_LINE>lpfOutTmp = SignalProcUtils.decimate(lpfOutTmp, 2.0);<NEW_LINE>// lpfOutTmp = SignalProcUtils.filte... | Math.sqrt(enx / enxloi); |
1,572,534 | public SubjectAreaOMASAPIResponse<IsATypeOf> restoreIsATypeOf(String serverName, String userId, String guid) {<NEW_LINE>String restAPIName = "restoreIsATypeOf";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, restAPIName);<NEW_LINE>SubjectAreaOMASAPIResponse<IsATypeOf> response = new Subje... | exception, auditLog, className, restAPIName); |
421,958 | public okhttp3.Call readRuntimeClassCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}".replaceAll("\\{" + "name" + "\\}", l... | HashMap<String, Object>(); |
629,516 | public void processWrappedEvent(EventBean eventBean) {<NEW_LINE>if (InstrumentationHelper.ENABLED) {<NEW_LINE>InstrumentationHelper.get().qStimulantEvent(eventBean, services.getRuntimeURI());<NEW_LINE>}<NEW_LINE>EPEventServiceThreadLocalEntry tlEntry = threadLocals.get();<NEW_LINE>if (internalEventRouter.isHasPreproces... | .getMatchesArrayThreadLocal().clear(); |
59,162 | public void finishRecord() {<NEW_LINE>if (headers.isEmpty()) {<NEW_LINE>throw UserException.dataReadError().message("The file must define at least one header.").addContext("File Path", filePath.toString()).build(logger);<NEW_LINE>}<NEW_LINE>// Force headers to be unique.<NEW_LINE>final Set<String> idents = new HashSet<... | header = headers.get(i); |
1,332,474 | private List<HgLogMessageChangedPath> loadCachedChangePaths(File repository, String revision) {<NEW_LINE>Storage storage = StorageManager.getInstance().getStorage(repository.getAbsolutePath());<NEW_LINE>byte[] buff = storage.getRevisionInfo(revision);<NEW_LINE>if (buff == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LI... | char action = dis.readChar(); |
368,232 | private static URI rewriteUri(URI fsUri) {<NEW_LINE>final URI uri;<NEW_LINE>if (fsUri.getScheme() != null) {<NEW_LINE>uri = fsUri;<NEW_LINE>} else {<NEW_LINE>// Apply the default fs scheme<NEW_LINE>final URI defaultUri = org.apache.flink.core.fs.local.LocalFileSystem.getLocalFsURI();<NEW_LINE>URI rewrittenUri = null;<N... | fsUri + "' declares no scheme and cannot be interpreted relative to the default file system URI (" + defaultUri + ")."); |
93,197 | public static MetadataStore createInMemoryMetadataStore(Store<String, String, String> innerStore, int nodeId) {<NEW_LINE>StorageEngine<String, String, String> storesRepo = new InMemoryStorageEngine<String, String, String>("stores-repo");<NEW_LINE>List<Versioned<String>> versionedStoreList = <MASK><NEW_LINE>if (versione... | innerStore.get(STORES_KEY, ""); |
108,461 | public void manageModels() {<NEW_LINE>// BEGIN: readme-sample-manageModels<NEW_LINE>AtomicReference<String> modelId = new AtomicReference<>();<NEW_LINE>// First, we see how many models we have, and what our limit is<NEW_LINE>AccountProperties accountProperties = documentModelAdminClient.getAccountProperties();<NEW_LINE... | deleteModel(modelId.get()); |
1,105,709 | protected void exportLine(JRPrintLine line) throws IOException {<NEW_LINE>int x = line.getX() + getOffsetX();<NEW_LINE>int y = line.getY() + getOffsetY();<NEW_LINE>int height = line.getHeight();<NEW_LINE>int width = line.getWidth();<NEW_LINE>if (width <= 1 || height <= 1) {<NEW_LINE>if (width > 1) {<NEW_LINE>height = 0... | twip(x + width))); |
399,175 | private void downloadResource(String execLocalPath, Map<String, String> projectRes, Logger logger) {<NEW_LINE>if (MapUtils.isEmpty(projectRes)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Map.Entry<String, String>> resEntries = projectRes.entrySet();<NEW_LINE>for (Map.Entry<String, String> resource : resEntries) {<NEW_L... | = new File(execLocalPath, fullName); |
1,063,922 | private TagElement findTagElementToInsertAfter(List<TagElement> tags, String tagName) {<NEW_LINE>List<String> tagOrder = Arrays.asList(TagElement.TAG_AUTHOR, TagElement.TAG_VERSION, TagElement.TAG_PARAM, TagElement.TAG_RETURN, TagElement.TAG_THROWS, TagElement.TAG_EXCEPTION, TagElement.TAG_SEE, TagElement.TAG_SINCE, Ta... | tags.size() - 1); |
223,314 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>Context ctx = view.getContext();<NEW_LINE>mStatus = view.findViewById(R.id.status);<NEW_LINE>mHandler = new <MASK><NEW_LINE>mStatusIcon = view.findViewById(R.id.status_icon);<NEW_LINE>mConnectionsBtn = view.findViewById(R.id.s... | Handler(Looper.getMainLooper()); |
1,799,911 | public void run() {<NEW_LINE>// The TEE calls are asynchronous, and simulate a blocking call<NEW_LINE>// To avoid locking up the UI thread, a new one is started<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>List<HdKeyNode> nextAccounts = masterseedScanManager.getNextUnusedAccounts();<NEW_LINE>... | MbwManager.getInstance(LedgerAccountImportActivity.this); |
943,028 | public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>try {<NEW_LINE>final String datasetId = BigQueryUtils.getDatasetId(config);<NEW_LINE>final String datasetLocation = BigQueryUtils.getDatasetLocation(config);<NEW_LINE>final BigQuery bigquery = getBigQuery(config);<NEW_LINE>final UploadingMethod uplo... | ) : e.toString()); |
1,195,402 | public void start() throws Exception {<NEW_LINE>// 1. Do prepare work<NEW_LINE>// create an instance of state manager<NEW_LINE>String statemgrClass = Context.stateManagerClass(config);<NEW_LINE>LOG.info("Context.stateManagerClass " + statemgrClass);<NEW_LINE>IStateManager statemgr;<NEW_LINE>try {<NEW_LINE>statemgr = Re... | get(5000, TimeUnit.MILLISECONDS); |
419,840 | private static byte[] rsaPrivateKeyToBlob(RSAPrivateCrtKey rsaPrivCrtKey) throws CryptoException {<NEW_LINE>try {<NEW_LINE>// 2316 sufficient for a 4096 bit RSA key<NEW_LINE>ByteBuffer bb = ByteBuffer.wrap(new byte[4096]);<NEW_LINE>bb.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>// Write out the blob fields<NEW_LINE>// rsa... | .getString("NoConvertKeyToBlob.exception.message"), ex); |
442,556 | public void read(org.apache.thrift.protocol.TProtocol prot, getTopologyTasksToSupervisorIds_result struct) throws org.apache.thrift.TException {<NEW_LINE>TTupleProtocol iprot = (TTupleProtocol) prot;<NEW_LINE>BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>{<NEW_LINE>org.apache.thrift.protocol.TMap _map238 = new... | incoming = iprot.readBitSet(2); |
389,496 | private OutboundSecurityResponse sign(SecurityEnvironment outboundEnv, OutboundTarget target) {<NEW_LINE>SignatureTarget signatureTarget = target.customObject(SignatureTarget.class).orElseThrow(() -> new SecurityException("Failed to find signature configuration for target " + target.name()));<NEW_LINE>Map<String, List<... | OciSignatureData sigData = signatureData.get(); |
289,361 | public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String mode) throws FileNotFoundException {<NEW_LINE>Log.i(TAG, "openFile(" + <MASK><NEW_LINE>switch(uriMatcher.match(uri)) {<NEW_LINE>case SINGLE_ROW:<NEW_LINE>Log.i(TAG, "Fetching message body for a single row...");<NEW_LINE>File tmpFile = getFile(uri);<... | uri + ", " + mode + ")"); |
651,073 | public static DescriptorSupport mbeanDescriptor(final boolean immutable, final Class<?> intf, final boolean singleton, final boolean globalSingleton, final String group, final boolean supportsAdoption, final String[] subTypes) {<NEW_LINE>final DescriptorSupport desc = new DescriptorSupport();<NEW_LINE>if (intf == null ... | desc.setField(DESC_SUPPORTS_ADOPTION, supportsAdoption); |
102,522 | private LFCustoms findCustoms() {<NEW_LINE>// NOI18N<NEW_LINE>ResourceBundle b = bundle != null ? bundle : ResourceBundle.getBundle("org.netbeans.swing.plaf.Bundle");<NEW_LINE>// NOI18N<NEW_LINE>String <MASK><NEW_LINE>if ("default".equals(uiClassName)) {<NEW_LINE>// NOI18N<NEW_LINE>return findDefaultCustoms();<NEW_LINE... | uiClassName = b.getString("LookAndFeelCustomsClassName"); |
623,602 | public void removeExpireJobs(long expireTime) {<NEW_LINE>// remove finished tasks<NEW_LINE>List<KeyValueEntity> successEntityList = db.search(StateSearchKey.SUCCESS);<NEW_LINE>List<KeyValueEntity> failedEntityList = db.search(StateSearchKey.FAILED);<NEW_LINE>List<KeyValueEntity> entityList = new ArrayList<>(successEnti... | getKey(), storeTime, expireTime); |
1,087,453 | void store(WizardDescriptor settings) {<NEW_LINE>File srcRoot = null;<NEW_LINE>String srcPath = moduleLocationTextField.getText();<NEW_LINE>if (srcPath.length() > 0) {<NEW_LINE>srcRoot = FileUtil.normalizeFile(new File(srcPath));<NEW_LINE>}<NEW_LINE>if (srcRoot != null)<NEW_LINE>UserProjectSettings.getDefault().setLast... | librariesLocation.getText() : null); |
595,802 | protected T circularGet(final Provider<? extends T> provider, InternalContext context, final Dependency<?> dependency, @Nullable ProvisionListenerStackCallback<T> provisionCallback) throws InternalProvisionException {<NEW_LINE>final ConstructionContext<T> constructionContext = context.getConstructionContext(this);<NEW_... | provision(provider, dependency, constructionContext); |
1,017,707 | public void marshall(CreateFunctionRequest createFunctionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createFunctionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createFunctionRequest... | createFunctionRequest.getTracingConfig(), TRACINGCONFIG_BINDING); |
50,585 | public Object hash(DataCommandsParam dataCommandsParam) {<NEW_LINE>AutoCommandResult autoCommandResult = new AutoCommandResult();<NEW_LINE>String command = dataCommandsParam.getCommand();<NEW_LINE>String[] list = SignUtil.splitBySpace(command);<NEW_LINE>String cmd = command.toUpperCase();<NEW_LINE>String key = list[1];... | jedisCluster.hset(key, hash); |
121,567 | protected DBTraceInstruction doCreate(Range<Long> lifespan, Address address, InstructionPrototype prototype, ProcessorContextView context) throws CodeUnitInsertionException, AddressOverflowException {<NEW_LINE>Address endAddress = address.addNoWrap(prototype.getLength() - 1);<NEW_LINE>AddressRangeImpl createdRange = ne... | memSpace.getFirstChange(lifespan, createdRange); |
1,506,332 | public void onMapReady(@Nullable MapController mapController) {<NEW_LINE>if (mapController == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>map = mapController;<NEW_LINE>String sceneUrl = sceneSelector.getCurrentString();<NEW_LINE>map.setSceneLoadListener(this);<NEW_LINE>LngLat startPoint = new LngLat(-74.00976419448854... | Log.d(TAG, "On Region Is Changing"); |
1,487,163 | final PutAccountConfigurationResult executePutAccountConfiguration(PutAccountConfigurationRequest putAccountConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAccountConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutAccountConfiguration"); |
1,116,056 | public static String stringify(Thread thread, StackTraceElement[] elements) {<NEW_LINE>StringBuilder builder = new StringBuilder().append('"').append(thread.getName()).append('"').append(thread.isDaemon() ? " daemon" : "").append(" prio=").append(thread.getPriority()).append(" tid=").append(thread.getId()).append(' ').... | ()).append('\n'); |
1,324,771 | protected Action process() throws IOException {<NEW_LINE>cipherBuffer = byteBufferPool.acquire(connection.getOutputBufferSize(), connection.isUseOutputDirectByteBuffers());<NEW_LINE>int pos = BufferUtil.flipToFill(cipherBuffer);<NEW_LINE>int drained = quicheConnection.drainCipherBytes(cipherBuffer);<NEW_LINE>if (LOG.is... | "writing cipher bytes for {} on {}", remoteAddress, QuicSession.this); |
457,156 | static Properties buildJdbcProperties(DatabaseConfig config) {<NEW_LINE>Properties props = new Properties();<NEW_LINE>Optional<RemoteDatabaseConfig> rc = config.getRemoteDatabaseConfig();<NEW_LINE>// add default params<NEW_LINE>switch(config.getType()) {<NEW_LINE>case "h2":<NEW_LINE>// nothing<NEW_LINE>break;<NEW_LINE>... | props.setProperty("tcpKeepAlive", "true"); |
27,345 | private static void tryInKeywordPattern(RegressionEnvironment env, String field, SupportInKeywordBean prototype, AtomicInteger milestone) {<NEW_LINE>String epl = "@name('s0') select * from pattern[every a=SupportInKeywordBean -> SupportBean(intPrimitive in (a." + field + "))]";<NEW_LINE>env.compileDeployAddListenerMile... | (prototype), 1, true); |
1,044,920 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, String taskName, 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 nul... | registryName, apiVersion, taskName, context); |
1,433,741 | private static List<JvmInstallationMetadata> discoverLocalInstallations() {<NEW_LINE>ExecHandleFactory execHandleFactory = TestFiles.execHandleFactory();<NEW_LINE>TemporaryFileProvider temporaryFileProvider = TestFiles.tmpDirTemporaryFileProvider(new File(SystemProperties.getInstance().getJavaIoTmpDir()));<NEW_LINE>Def... | System.out.println("Found the following JVMs:"); |
732,895 | final DeregisterTargetsResult executeDeregisterTargets(DeregisterTargetsRequest deregisterTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Load Balancing v2"); |
1,150,808 | protected static void parseJSON(JSONObject json, MapObject o) {<NEW_LINE>if (json.has("name")) {<NEW_LINE>o.name = json.getString("name");<NEW_LINE>}<NEW_LINE>if (json.has("enName")) {<NEW_LINE>o.enName = json.getString("enName");<NEW_LINE>}<NEW_LINE>if (json.has("names")) {<NEW_LINE>JSONObject namesObj = json.getJSONO... | names.put(key, value); |
665,841 | public Optional<FileResource> resolveUri(final ResourceRequestContext resourceRequestContext) {<NEW_LINE>final String effectiveUri = resourceRequestContext.getUri();<NEW_LINE>final DomainConfig domainConfig = resourceRequestContext.getDomainConfig();<NEW_LINE>final String embedThemeUrl = ResourceFileServlet.RESOURCE_PA... | .DISPLAY_CSS_EMBED, domainConfig, effectiveUri)); |
732,834 | private Map<FieldDescriptor, FieldAccessDescriptor> resolveNestedFieldsAccessed(Schema schema) {<NEW_LINE>Map<FieldDescriptor, FieldAccessDescriptor> nestedFields = Maps.newLinkedHashMap();<NEW_LINE>for (Map.Entry<FieldDescriptor, FieldAccessDescriptor> entry : getNestedFieldsAccessed().entrySet()) {<NEW_LINE>FieldDesc... | of(d1, d2))); |
1,377,487 | public void testSimpleQuery(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>QueryClient client = builder.build(QueryClient.class);<NEW_LINE>Query query = new Query();<NEW_LINE>query.setOperationName("allWidgets");<NEW_LINE>query.setQuery("query allWidgets {" + System.lineSeparator() + " a... | .getData().getAllWidgets(); |
1,188,489 | private Menu createHistoryMenu(ToolItem toolItem, final String preferenceName, Menu menu) {<NEW_LINE>ToolBar toolbar = toolItem.getParent();<NEW_LINE>Rectangle bounds = toolItem.getBounds();<NEW_LINE>Point point = toolbar.toDisplay(new Point(bounds.x, bounds.y + bounds.height));<NEW_LINE>List<String> loadEntries = find... | (Integer.valueOf(i)); |
905,327 | public MethodWriter generateTagStart() throws JspCoreException {<NEW_LINE>tagStartWriter = new MethodWriter();<NEW_LINE>if (hasBody) {<NEW_LINE>// LIDB4147-24<NEW_LINE>if (!jspOptions.isDisableResourceInjection()) {<NEW_LINE>// PM06063<NEW_LINE>// have CDI create and inject the managed object<NEW_LINE>tagStartWriter.pr... | print(tagClassInfo.getTagClassName()); |
787,378 | public static <E extends @Nullable Object> Multiset<E> intersection(final Multiset<E> multiset1, final Multiset<?> multiset2) {<NEW_LINE>checkNotNull(multiset1);<NEW_LINE>checkNotNull(multiset2);<NEW_LINE>return new ViewMultiset<E>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int count(@CheckForNull Object element)... | count1 = multiset1.count(element); |
1,307,803 | private <N, E> OrthogonalRepresentation<N, E> computeOrthogonalRepresentation(FlowNetwork<N, E> network) {<NEW_LINE>OrthogonalRepresentation<N, E> or = OrthogonalRepresentation.createGraph(network.getOriginalGraph());<NEW_LINE>for (Arc<N> arc : network.getArcs()) {<NEW_LINE>if (arc.isVertexArc()) {<NEW_LINE>Vertex<N> v... | Dart d = arc.getDart(); |
1,192,379 | private void addField(QueryProfilesConfig.Queryprofile.Builder qpB, QueryProfile profile, Entry<String, Object> field, String namePrefix) {<NEW_LINE>String fullName = namePrefix + field.getKey();<NEW_LINE>if (field.getValue() instanceof QueryProfile) {<NEW_LINE>QueryProfile subProfile = (QueryProfile) field.getValue();... | getId().stringValue()); |
1,328,611 | public void onGetEditorContext(GetEditorContextEvent event) {<NEW_LINE>GetEditorContextEvent.<MASK><NEW_LINE>int type = data.getType();<NEW_LINE>if (type == GetEditorContextEvent.TYPE_ACTIVE_EDITOR) {<NEW_LINE>if (consoleEditorHadFocusLast() || !columnManager_.hasActiveEditor())<NEW_LINE>type = GetEditorContextEvent.TY... | Data data = event.getData(); |
1,204,614 | public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {<NEW_LINE>this.locale = ProtocolUtils.readString(buf, 16);<NEW_LINE>this.viewDistance = buf.readByte();<NEW_LINE>this.chatVisibility = ProtocolUtils.readVarInt(buf);<NEW_LINE>this.chatColors = buf.readBoolean();<NEW_LINE>if (ve... | .chatFilteringEnabled = buf.readBoolean(); |
449,175 | private void reduceLedgers(Staff staff, int index, List<LedgerInter> ledgers) {<NEW_LINE>final int interline = staff.getSpecificInterline();<NEW_LINE>int maxDx = largeScale.toPixels(constants.maxInterLedgerDx);<NEW_LINE>Set<Exclusion> exclusions = new LinkedHashSet<>();<NEW_LINE>Collections.sort(ledgers, Inters.byAbsci... | deletions.size(), deletions); |
1,833,191 | public static void test(DataSet set, PerceptronAmbiguityResolver resolver) {<NEW_LINE>int hit = 0, total = 0;<NEW_LINE>Stopwatch sw = Stopwatch.createStarted();<NEW_LINE>for (SentenceAnalysis sentence : set.sentences) {<NEW_LINE>DecodeResult result = resolver.getDecoder().bestPath(sentence.ambiguousAnalysis());<NEW_LIN... | , hit * 1.0 / total)); |
600,956 | public Tree normalizeWholeTree(Tree tree, TreeFactory tf) {<NEW_LINE>// add an extra root to non-unary roots<NEW_LINE>if (tree.value() == null)<NEW_LINE>tree = fixNonUnaryRoot(tree, tf);<NEW_LINE>else if (!tree.value().equals(tlp.startSymbol()))<NEW_LINE>tree = tf.newTreeNode(tlp.startSymbol(), Collections.singletonLis... | ).spliceOut(aOverAFilter, tf); |
666,297 | protected void writeClassTargets(TargetsTableAnnotationsImpl targetTable) throws IOException {<NEW_LINE>Map<String, String> i_annotatedClassNames = new IdentityHashMap<String, String>();<NEW_LINE>UtilImpl_BidirectionalMap classTargetMap = targetTable.i_getClassAnnotations();<NEW_LINE>UtilImpl_BidirectionalMap fieldTarg... | i_classAnnotations = classTargetMap.selectHeldOf(i_className); |
926,476 | public Mono<UserRole> updateRoleForMember(String orgId, UserRole userRole, String originHeader) {<NEW_LINE>if (userRole.getUsername() == null) {<NEW_LINE>return Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, "username"));<NEW_LINE>}<NEW_LINE>Mono<Organization> organizationMono = organizationRepositor... | User user = tuple.getT2(); |
1,392,744 | protected void loadTileLayer(TiledMap map, MapLayers parentLayers, Element element) {<NEW_LINE>if (element.getName().equals("layer")) {<NEW_LINE>int width = element.getIntAttribute("width", 0);<NEW_LINE>int height = element.getIntAttribute("height", 0);<NEW_LINE>int tileWidth = map.getProperties().get("tilewidth", Inte... | layer.getProperties(), properties); |
1,680,208 | public void deployBlueprint(World world, BlockPos pos, EnumFacing dir, Blueprint bpt) {<NEW_LINE>bpt.id = new LibraryId();<NEW_LINE>bpt.id.extension = "bpt";<NEW_LINE>BptContext context = bpt.getContext(world<MASK><NEW_LINE>if (bpt.rotate) {<NEW_LINE>if (dir == EnumFacing.EAST) {<NEW_LINE>// Do nothing<NEW_LINE>} else ... | , bpt.getBoxForPos(pos)); |
1,666,026 | public void initialize() {<NEW_LINE>addTitledGroupBg(root, gridRow, 3, Res.get("account.menu.walletInfo.balance.headLine"));<NEW_LINE>addMultilineLabel(root, gridRow, Res.get("account.menu.walletInfo.balance.info"), Layout.FIRST_ROW_DISTANCE, Double.MAX_VALUE);<NEW_LINE>btcTextField = addTopLabelTextField(root, ++gridR... | ("account.menu.walletInfo.path.headLine"), Layout.GROUP_DISTANCE); |
886,177 | private static String createWrapperContent(final CtElement element, final Factory f, final CtTypeReference returnType) {<NEW_LINE>CtClass<?> w = f.Class().create(WRAPPER_CLASS_NAME);<NEW_LINE>CtBlock body = f.Core().createBlock();<NEW_LINE>if (element instanceof CtStatement) {<NEW_LINE>body.addStatement((CtStatement) e... | getPackage().removeType(w); |
209,212 | final CreateJourneyResult executeCreateJourney(CreateJourneyRequest createJourneyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createJourneyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | invoke(request, responseHandler, executionContext); |
751,850 | public void addOrReplaceSegment(String segmentName, IndexLoadingConfig indexLoadingConfig, SegmentZKMetadata zkMetadata, @Nullable SegmentMetadata localMetadata) throws Exception {<NEW_LINE>if (localMetadata != null && hasSameCRC(zkMetadata, localMetadata)) {<NEW_LINE>LOGGER.info("Segment: {} of table: {} has crc: {} s... | _tableNameWithType, zkMetadata.getCrc()); |
1,733,348 | private void storeLiveIns(BasicBlock block, Instruction callInstruction, int[] updates) {<NEW_LINE>Program program = block.getProgram();<NEW_LINE>List<Instruction> <MASK><NEW_LINE>for (int slot = 0; slot < updates.length; ++slot) {<NEW_LINE>int var = updates[slot];<NEW_LINE>if (var == -2) {<NEW_LINE>continue;<NEW_LINE>... | instructionsToAdd = new ArrayList<>(); |
1,632,065 | private void tagFromXML() {<NEW_LINE>Reader reader = null;<NEW_LINE>Writer w = null;<NEW_LINE>try {<NEW_LINE>// todo [cdm dec 13]: change to use the IOUtils read-from-anywhere routines<NEW_LINE>reader = new BufferedReader(new InputStreamReader(new FileInputStream(config.getFile()), config.getEncoding()));<NEW_LINE>Stri... | , config.getEncoding())); |
752,624 | public static synchronized Map<String, String> classLabelNames() throws Exception {<NEW_LINE>if (classLabelNames != null) {<NEW_LINE>return classLabelNames;<NEW_LINE>}<NEW_LINE>if (dataLocalPath == null)<NEW_LINE>dataLocalPath <MASK><NEW_LINE>String s;<NEW_LINE>try {<NEW_LINE>s = FileUtils.readFileToString(new File(dat... | = DownloaderUtility.PATENTEXAMPLE.Download(); |
901,820 | public Request<ModifyCustomDBEngineVersionRequest> marshall(ModifyCustomDBEngineVersionRequest modifyCustomDBEngineVersionRequest) {<NEW_LINE>if (modifyCustomDBEngineVersionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyCustomDBEng... | (modifyCustomDBEngineVersionRequest.getEngine())); |
942,590 | ActionResult<List<NameValueCountPair>> execute(EffectivePerson effectivePerson, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<NameValueCountPair>> result = new ActionResult<>();<NEW_LINE>Business busi... | , application.getId())); |
134,493 | public Request<DescribeListenersRequest> marshall(DescribeListenersRequest describeListenersRequest) {<NEW_LINE>if (describeListenersRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeListenersRequest> request = new DefaultRequest<De... | (describeListenersRequest.getLoadBalancerArn())); |
1,557,760 | public Optional<ApplyCommitRequest> handlePublishResponse(DiscoveryNode sourceNode, PublishResponse publishResponse) {<NEW_LINE>if (electionWon == false) {<NEW_LINE>LOGGER.debug("handlePublishResponse: ignored response as election not won");<NEW_LINE>throw new CoordinationStateRejectedException("election not won");<NEW... | lastPublishedVersion, publishResponse.getVersion()); |
337,329 | public HttpResponse makeRequest(String path, Request.Builder requestBuilder) throws IOException {<NEW_LINE><MASK><NEW_LINE>long startRequestNanos = System.nanoTime();<NEW_LINE>ImmutableLoadBalancedServiceEventData.Builder data = ImmutableLoadBalancedServiceEventData.builder().setServer(server);<NEW_LINE>URL fullUrl = S... | URI server = slb.getBestServer(); |
126,762 | private void constructMap() {<NEW_LINE>Int2ObjectOpenHashMap<Int2IntOpenHashMap> rowPositionMap = new Int2ObjectOpenHashMap<>();<NEW_LINE>for (int rowIndex = 0; rowIndex < rowSize(); rowIndex++) {<NEW_LINE>SequentialSparseVector tempRowVector = row(rowIndex);<NEW_LINE>Int2IntOpenHashMap tempPositionMap = new Int2IntOpe... | ), vectorEntry.position()); |
1,752,629 | static SearchResult parseCache(final IConnector con, final String page, final DisposableHandler handler) {<NEW_LINE>final ImmutablePair<StatusCode, Geocache> parsed = parseCacheFromText(page, handler);<NEW_LINE>// attention: parseCacheFromText already stores implicitly through searchResult.addCache<NEW_LINE>if (parsed.... | handler, R.string.cache_dialog_loading_details_status_render); |
925,154 | public void testInjectPersistenceContext() throws Exception {<NEW_LINE>EntityManager em1 = (EntityManager) InitialContext.doLookup("java:comp/env/em1");<NEW_LINE>Assert.assertNotNull(em1);<NEW_LINE>EntityManager em2 = (EntityManager) InitialContext.doLookup("java:comp/env/em2");<NEW_LINE>Assert.assertNotNull(em2);<NEW_... | class, entA1.getId()); |
271,525 | protected void encodeOptions(FacesContext context, Chart chart) throws IOException {<NEW_LINE>super.encodeOptions(context, chart);<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>PieChartModel model = (PieChartModel) chart.getModel();<NEW_LINE>int diameter = model.getDiameter();<NEW_LINE>int slic... | boolean fill = model.isFill(); |
855,312 | public static void read(InputStream inputStream, FeedClient feedClient, AtomicInteger numSent) {<NEW_LINE>try (InputStreamJsonElementBuffer jsonElementBuffer = new InputStreamJsonElementBuffer(inputStream)) {<NEW_LINE>JsonFactory jfactory = new JsonFactoryBuilder().disable(JsonFactory.Feature.CANONICALIZE_FIELD_NAMES).... | feedClient.stream(docId, data); |
1,182,970 | private Mono<Application> addAnalyticsForGitOperation(String eventName, Application application, String errorType, String errorMessage, Boolean isRepoPrivate) {<NEW_LINE><MASK><NEW_LINE>String defaultApplicationId = gitData == null || StringUtils.isEmptyOrNull(gitData.getDefaultApplicationId()) ? "" : gitData.getDefaul... | GitApplicationMetadata gitData = application.getGitApplicationMetadata(); |
453,551 | protected String replaceAllProperties(String str, final Properties submittedProps, final Properties xmlProperties) {<NEW_LINE>int startIndex = 0;<NEW_LINE>NextProperty nextProp = this.findNextProperty(str, startIndex);<NEW_LINE>while (nextProp != null) {<NEW_LINE>// get the start index past this property for the next p... | nextProp.defaultValueExpression, submittedProps, xmlProperties); |
1,575,307 | private void updateNative(SootMethod method, Function fn, Value env, long flags, List<MarshaledArg> marshaledArgs) {<NEW_LINE>for (MarshaledArg value : marshaledArgs) {<NEW_LINE>MarshalerMethod marshalerMethod = config.getMarshalerLookup().findMarshalerMethod(new MarshalSite(method, value.paramIndex));<NEW_LINE>SootMet... | (), getDescriptor(afterMethod)); |
1,316,432 | private void createStreamWithMessageHeader(StoreKey key, ByteBuffer blobEncryptionKey, BlobProperties blobProperties, ByteBuffer userMetadata, InputStream blobStream, long streamSize, BlobType blobType, short lifeVersion) throws MessageFormatException {<NEW_LINE>int headerSize = MessageFormatRecord.getHeaderSizeForVers... | BlobProperties_Format_V1.serializeBlobPropertiesRecord(buffer, blobProperties); |
1,568,585 | public void start() {<NEW_LINE>proxy.setTrustAllServers(true);<NEW_LINE>if (outsideProxy != null) {<NEW_LINE>proxy.setChainedProxy(getProxyAddress(outsideProxy));<NEW_LINE><MASK><NEW_LINE>if (noProxy != null) {<NEW_LINE>List<String> noProxyHosts = Arrays.asList(noProxy.split(","));<NEW_LINE>proxy.setChainedProxyNonProx... | String noProxy = outsideProxy.getNoProxy(); |
723,573 | public synchronized byte[] exportCollection() {<NEW_LINE>// returns null if the collection is empty<NEW_LINE>// experimental; supervise CPU load<NEW_LINE>sort();<NEW_LINE>// uniq();<NEW_LINE>// trim();<NEW_LINE>// on case the collection is sorted<NEW_LINE>assert this.sortBound == this.chunkcount;<NEW_LINE>assert size()... | Entry entry = row.newEntry(); |
675,100 | private void readSub4x4(MBlock mBlock, int partNo, boolean tAvb, boolean lAvb, int blk8x8X, int blk8x8Y, int mbX, MBType leftMBType, MBType topMBType, MBType curMBType, PartPred leftPred, PartPred topPred, PartPred partPred, int list) {<NEW_LINE>mBlock.pb8x8.mvdX1[list][partNo] = readMVD(0, lAvb, tAvb, leftMBType, topM... | 1, 1, 1, list); |
111,323 | public static AsyncResult<Void> editToolSettings(final Project project, final InspectionProfile inspectionProfile, final boolean canChooseDifferentProfile, final String selectedToolShortName) {<NEW_LINE>final <MASK><NEW_LINE>final ErrorsConfigurable errorsConfigurable;<NEW_LINE>if (!canChooseDifferentProfile) {<NEW_LIN... | ShowSettingsUtil settingsUtil = ShowSettingsUtil.getInstance(); |
1,678,616 | private JComponent createProgressComponent() {<NEW_LINE>progressLabel = new JLabel(getDisplayName());<NEW_LINE>progressBar = super.getProgressComponent();<NEW_LINE>// NOI18N<NEW_LINE>stopButton = new JButton(NbBundle.getMessage(WizardStepProgressSupport.class, "BK2022"));<NEW_LINE>stopButton.addActionListener(new Actio... | stopButton.setAlignmentX(JComponent.CENTER_ALIGNMENT); |
1,480,985 | public void assertPasses(String pageName, String pageType, String suiteFilter, String excludeSuiteFilter) throws Exception {<NEW_LINE>FitNesseContext context = ContextConfigurator.systemDefaults().withRootPath(fitNesseRootPath).withPort(port).makeFitNesseContext();<NEW_LINE>JavaFormatter testFormatter = new JavaFormatt... | summary.getRight() > 0); |
497,555 | public void saveAsFile() {<NEW_LINE>JFileChooser fileChooser = new JFileChooser();<NEW_LINE>// Sets selected file in JFileChooser to current file<NEW_LINE>if (currentFile.getURL().getScheme().equals(LocalFile.SCHEMA)) {<NEW_LINE>fileChooser.setSelectedFile(new java.io.File(currentFile.getAbsolutePath()));<NEW_LINE>}<NE... | FileCollisionChecker.checkForCollision(null, destFile); |
528,067 | public static ArrayList<double[]> initParam(double[] data, double[] residual, int p, int q, int optOrder, double mean, int ifIntercept) {<NEW_LINE>// regression<NEW_LINE>OLSMultipleLinearRegression lm = new OLSMultipleLinearRegression();<NEW_LINE>// construct data set<NEW_LINE>int len = p + q;<NEW_LINE>int start = Math... | - start] = data[i]; |
1,661,577 | public ServiceLimit unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServiceLimit serviceLimit = new ServiceLimit();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | class).unmarshall(context)); |
1,191,012 | protected void handleListenerSetup(final AsyncResult<DatagramSocket> listenResult, final CompletableFuture<InetSocketAddress> addressFuture) {<NEW_LINE>if (listenResult.failed()) {<NEW_LINE>Throwable cause = listenResult.cause();<NEW_LINE>LOG.error("An exception occurred when starting the peer discovery agent", cause);... | .localAddress().port(); |
763,394 | private static byte[] objectToWireFormat(ColumnSchema col, Object value) {<NEW_LINE>switch(col.getType()) {<NEW_LINE>case BOOL:<NEW_LINE>return Bytes.fromBoolean((Boolean) value);<NEW_LINE>case INT8:<NEW_LINE>return new byte<MASK><NEW_LINE>case INT16:<NEW_LINE>return Bytes.fromShort((Short) value);<NEW_LINE>case INT32:... | [] { (Byte) value }; |
768,567 | public static DescribeWebsiteScanResultDetailResponse unmarshall(DescribeWebsiteScanResultDetailResponse describeWebsiteScanResultDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeWebsiteScanResultDetailResponse.setRequestId(_ctx.stringValue("DescribeWebsiteScanResultDetailResponse.RequestId"));<NEW_LINE>des... | (_ctx.stringValue("DescribeWebsiteScanResultDetailResponse.ResourceType")); |
173,569 | public I_C_Flatrate_Term createSubscriptionTerm(@NonNull final I_C_OrderLine ol, final boolean completeIt) {<NEW_LINE>final I_C_Order order = InterfaceWrapperHelper.create(ol.getC_Order(), I_C_Order.class);<NEW_LINE>final I_C_Flatrate_Conditions cond = ol.getC_Flatrate_Conditions();<NEW_LINE>final I_C_Flatrate_Term new... | X_C_Flatrate_Term.DOCACTION_Complete, X_C_Flatrate_Term.DOCSTATUS_Completed); |
1,269,244 | final DescribeJobTemplateResult executeDescribeJobTemplate(DescribeJobTemplateRequest describeJobTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,164,096 | protected Long extractOffsetIncrementedId(Schema schema, Struct record) {<NEW_LINE>final Long extractedId;<NEW_LINE>final Field field = schema.field(incrementingColumn.name());<NEW_LINE>if (field == null) {<NEW_LINE>throw new DataException("Incrementing column " + incrementingColumn.name() + " not found in " + schema.f... | "Null value for incrementing column of type: " + incrementingColumnSchema.type()); |
1,405,042 | public void doCommand(String[] args) {<NEW_LINE>Long address;<NEW_LINE>String param = args[0];<NEW_LINE>address = Utils.longFromStringWithPrefix(param);<NEW_LINE>if (null == address) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>out.print("\n");<NEW_LINE>boolean found = false;<NEW_LINE>for (int index = 0; inde... | out.println("invalid hex address specify; address must be specified as " + "\"0x<hex_address>\""); |
380,966 | public void sendRequest(String pathInfo, PrintWriter respWriter) {<NEW_LINE>try {<NEW_LINE>if (pathInfo.equals("/fail")) {<NEW_LINE>getNonPhoto();<NEW_LINE>} else {<NEW_LINE>if (pathInfo.startsWith("/album/")) {<NEW_LINE>getAlbum(respWriter, Long.parseLong(pathInfo.substring(<MASK><NEW_LINE>} else {<NEW_LINE>// this tr... | "/album/".length()))); |
1,388,625 | protected JPanel buildReplacementTable(MaliciousAttachmentTableModel tableModel) {<NEW_LINE>final JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>final JXTable table = JTableFactory.getInstance().makeJXTable(tableModel);<NEW_LINE>setupTable(table);<NEW_LINE>JScrollPane tableScrollPane = new JScrollPane(table);<... | add(toolbar, BorderLayout.PAGE_START); |
351,679 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer <MASK><NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>UnidbgPointer va_list = context.getPointerArg(3);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallVoidMeth... | object = context.getPointerArg(1); |
264,606 | public void addClientBehavior(String eventName, ClientBehavior behavior) {<NEW_LINE>Collection<MASK><NEW_LINE>if (eventNames == null) {<NEW_LINE>// component didn't implement getEventNames properly<NEW_LINE>// log an error and return<NEW_LINE>if (log.isLoggable(Level.SEVERE)) {<NEW_LINE>log.severe("attempted to add a b... | <String> eventNames = getEventNames(); |
1,319,619 | public static <T> T createLambda(Object instance, Method instanceMethod, Class<?> functionalIntfCls) {<NEW_LINE>try {<NEW_LINE>Method intfMethod = findAbstractMethod(functionalIntfCls);<NEW_LINE>MethodHandle methodHandle = LOOKUP.unreflect(instanceMethod);<NEW_LINE>MethodType intfMethodType = MethodType.methodType(intf... | ), intfMethod.getParameterTypes()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.