idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
960,221 | public RDD<Row> buildScan(final String[] requiredColumns, final Filter[] filters) {<NEW_LINE>LOGGER.info("Building scan with required columns {} and {} filters ({})", StringUtils.join(requiredColumns, ','), filters.length, StringUtils.join(filters, ','));<NEW_LINE>Output<RDD<Element>> operation = new FiltersToOperation... | LOGGER.error("OperationException while executing operation {}", e); |
664,882 | final GlobalReplicationGroup executeDisassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest disassociateGlobalReplicationGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateGlobalReplicationGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe... | (super.beforeMarshalling(disassociateGlobalReplicationGroupRequest)); |
90,995 | public CategoryProperties unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CategoryProperties categoryProperties = new CategoryProperties();<NEW... | String name = reader.nextName(); |
1,816,297 | public GetContextKeysForCustomPolicyResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetContextKeysForCustomPolicyResult getContextKeysForCustomPolicyResult = new GetContextKeysForCustomPolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = origi... | XMLEvent xmlEvent = context.nextEvent(); |
1,595,472 | protected static Multimap<String, BlockPartWrapper> readElements(@Nonnull JsonDeserializationContext ctx, @Nonnull JsonObject modelContents) {<NEW_LINE>Multimap<String, BlockPartWrapper> multimap = HashMultimap.create();<NEW_LINE>if (modelContents.has("elements")) {<NEW_LINE>for (JsonElement element : GsonHelper.getAsJ... | JsonObject obj = element.getAsJsonObject(); |
101,675 | private static String generateParameterDetailRow(Parameter param) {<NEW_LINE>String type = param.getDataType().getName();<NEW_LINE><MASK><NEW_LINE>int length = type.length() + 1 + name.length();<NEW_LINE>//<NEW_LINE>// Bound the max width of the tooltip<NEW_LINE>//<NEW_LINE>if (length > PARAM_MAX_CHAR_LENGTH) {<NEW_LIN... | String name = param.getName(); |
565,852 | final ModifyAquaConfigurationResult executeModifyAquaConfiguration(ModifyAquaConfigurationRequest modifyAquaConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyAquaConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
722,184 | // This is related to b/158085463.<NEW_LINE>public static <U, V> void testIntersectionTyping() {<NEW_LINE>// Shows the case where the types in the intersection declare type variables with the same name;<NEW_LINE>// these type variables are actually different variables and should be unaliased.<NEW_LINE>Object o = (Gener... | JustADefaultS<V>) x -> x; |
1,784,054 | public GameProperty unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GameProperty gameProperty = new GameProperty();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | class).unmarshall(context)); |
572,295 | private static ClasspathContainerInitializer computeClasspathContainerInitializer(String containerID) {<NEW_LINE>Plugin jdtCorePlugin = JavaCore.getPlugin();<NEW_LINE>if (jdtCorePlugin == null)<NEW_LINE>return null;<NEW_LINE>IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(<MASK><NEW_LINE>i... | JavaCore.PLUGIN_ID, JavaModelManager.CPCONTAINER_INITIALIZER_EXTPOINT_ID); |
614,210 | protected void generateClassSection(ValidateJspResult validatorResult) {<NEW_LINE>writer.println();<NEW_LINE>writer.print("public final class " + jspClassName + " extends ");<NEW_LINE>String extendsClass = validatorResult.getExtendsClass();<NEW_LINE>writer.print(extendsClass == null ? jspServletBase : extendsClass);<NE... | boolean singleThreaded = validatorResult.isSingleThreaded(); |
1,288,183 | public void actionPerformed(ActionEvent e) {<NEW_LINE>name = this.getValue(Action.NAME).toString();<NEW_LINE>executePane = mainUI.getMainPane().getExecutePane();<NEW_LINE>boolean done = false;<NEW_LINE>if (!FileStatus.isAssembled()) {<NEW_LINE>// note: this should never occur since backstepping is only enabled after su... | JOptionPane.showMessageDialog(mainUI, "The program must be assembled before it can be run."); |
713,898 | private static SdtBlock createSdt(String tagVal, RPr rPr) {<NEW_LINE>// .. so create content control!<NEW_LINE>SdtBlock sdtBlock = Context.getWmlObjectFactory().createSdtBlock();<NEW_LINE>SdtPr sdtPr = Context<MASK><NEW_LINE>sdtBlock.setSdtPr(sdtPr);<NEW_LINE>SdtContentBlock sdtContent = Context.getWmlObjectFactory().c... | .getWmlObjectFactory().createSdtPr(); |
1,253,964 | public ApiResponse<Server> publicGetWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/public/version";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>Map<String, ... | = new String[] { "oauth2" }; |
1,249,060 | private void addReference(MInOut inout, String createFromType, int referenceId) {<NEW_LINE>// Valid Reference<NEW_LINE>if (referenceId == 0)<NEW_LINE>return;<NEW_LINE>if (createFromType.equals(ORDER)) {<NEW_LINE>MOrder order = new MOrder(getCtx(), referenceId, get_TrxName());<NEW_LINE>inout.setC_Order_ID(order.getC_Ord... | setUser2_ID(originalIO.getUser2_ID()); |
489,980 | private void run(String[] args) throws UnsupportedAudioFileException, IOException, IllegalArgumentException, LineUnavailableException {<NEW_LINE>PitchEstimationAlgorithm algo = PitchEstimationAlgorithm.FFT_YIN;<NEW_LINE>String inputFile = args[0];<NEW_LINE>String outputFile = null;<NEW_LINE>String combinedFile = null;<... | System.err.println("Current error:"); |
1,536,786 | protected void visitDiscrepancies(DiscrepancyCallback discrepancy) {<NEW_LINE>try {<NEW_LINE>Deque<ResourceFile> stack = new ArrayDeque<>();<NEW_LINE>ResourceFile sourceDir = getSourceDirectory();<NEW_LINE>// start in the source directory root<NEW_LINE>stack.add(sourceDir);<NEW_LINE>while (!stack.isEmpty()) {<NEW_LINE>... | null, mapper.extraClassFiles()); |
1,682,180 | public InProcessNeo4j build() {<NEW_LINE>Path userLogFile = serverFolder.resolve("neo4j.log");<NEW_LINE>Path internalLogFile = serverFolder.resolve("debug.log");<NEW_LINE>config.set(ServerSettings.third_party_packages, unmanagedExtentions.toList());<NEW_LINE>config.set(GraphDatabaseSettings.store_internal_log_path, int... | (db_timezone)).build(); |
1,787,324 | void dispose() {<NEW_LINE>if (Controller.LOG) {<NEW_LINE>// NOI18N<NEW_LINE>Controller.log(this + <MASK><NEW_LINE>}<NEW_LINE>OutWriter currentOut = null;<NEW_LINE>IOReader currentIn = null;<NEW_LINE>synchronized (this) {<NEW_LINE>if (out != null) {<NEW_LINE>if (Controller.LOG) {<NEW_LINE>// NOI18N<NEW_LINE>Controller.l... | ": IO " + getName() + " is being disposed"); |
183,428 | public Node visitPatternRecognition(SqlBaseParser.PatternRecognitionContext context) {<NEW_LINE>Relation child = (Relation) visit(context.aliasedRelation());<NEW_LINE>if (context.MATCH_RECOGNIZE() == null) {<NEW_LINE>return child;<NEW_LINE>}<NEW_LINE>Optional<OrderBy> orderBy = Optional.empty();<NEW_LINE>if (context.OR... | ), SortItem.class))); |
1,649,095 | public void handleEvent(Event e) {<NEW_LINE>int index = lstLanguage.getSelectionIndex();<NEW_LINE>if (index >= 0 && index < locales.length) {<NEW_LINE>COConfigurationManager.setParameter("locale", locales[index].toString());<NEW_LINE>MessageText.loadBundle();<NEW_LINE>DisplayFormatters.setUnits();<NEW_LINE>DisplayForma... | shell.layout(true, true); |
634,498 | public static boolean isSymbolicLink(File file) throws IOException {<NEW_LINE>// first try using Java 7<NEW_LINE>try {<NEW_LINE>// use reflection here<NEW_LINE>Class<?> filesClass = Class.forName("java.nio.file.Files");<NEW_LINE>Class<?> pathClass = Class.forName("java.nio.file.Path");<NEW_LINE>Object path = File.class... | propagateIfPossible(cause, IOException.class); |
1,479,570 | private RelNode convertToDataStreamScan(DataStreamQueryOperation<?> operation) {<NEW_LINE>List<String> names;<NEW_LINE>ObjectIdentifier identifier = operation.getIdentifier();<NEW_LINE>if (identifier != null) {<NEW_LINE>names = Arrays.asList(identifier.getCatalogName(), identifier.getDatabaseName(), identifier.getObjec... | (operation.getFieldNullables())); |
1,472,062 | public Message deleteExternalNode(HttpServletRequest req, @RequestBody UpdateExternalNodeRequest updateExternalNodeRequest) throws IllegalAccessException, ExternalOperationFailedException, InstantiationException {<NEW_LINE>String userName = SecurityFilter.getLoginUsername(req);<NEW_LINE>Workspace workspace = SSOHelper.... | "result", node.getJobContent()); |
1,143,226 | private Set<String> parseBeanMethods(TypeElement entity, CompilationController controller) {<NEW_LINE>List<ExecutableElement> methods = ElementFilter.methodsIn(controller.getElements<MASK><NEW_LINE>Set<String> result = new HashSet<String>();<NEW_LINE>Map<String, TypeMirror> getAttrs = new HashMap<String, TypeMirror>();... | ().getAllMembers(entity)); |
965,302 | public ParameterizedExecutableType methodFromUse(ExpressionTree tree, ExecutableElement methodElt, AnnotatedTypeMirror receiverType) {<NEW_LINE>// get unsubstituted type<NEW_LINE>AnnotatedExecutableType // get unsubstituted type<NEW_LINE>memberTypeWithoutOverrides = getAnnotatedType(methodElt);<NEW_LINE>AnnotatedExecut... | this, receiverType, methodElt, memberTypeWithOverrides); |
590,680 | public static ArtifactDestinationProvider beamFilesystemArtifactDestinationProvider(String root) {<NEW_LINE>return new ArtifactDestinationProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ArtifactDestination getDestination(String stagingToken, String name) throws IOException {<NEW_LINE>ResourceId path = staging... | name, ResolveOptions.StandardResolveOptions.RESOLVE_FILE); |
934,792 | private void updatePlatformUser(User user) {<NEW_LINE>final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();<NEW_LINE>PlatformUser currentPlatformUser = null;<NEW_LINE>if (authentication != null && !(authentication instanceof AnonymousAuthenticationToken)) {<NEW_LINE>currentPlatfo... | getContext().setAuthentication(newAuthentication); |
262,200 | private void loadIfNeeded() {<NEW_LINE>if (loaded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sql = "SELECT * FROM AD_Menu WHERE AD_Menu_ID=?";<NEW_LINE>if (!m_isMenu) {<NEW_LINE>sql = "SELECT * FROM AD_WF_Node WHERE AD_WF_Node_ID=?";<NEW_LINE>}<NEW_LINE>final Object[] sqlParams <MASK><NEW_LINE>PreparedStatement pst... | = new Object[] { m_ID }; |
1,500,055 | public static void main(String[] args) throws IOException, GitAPIException {<NEW_LINE>// prepare a new test-repository<NEW_LINE>try (Repository repository = Helper.createNewRepository()) {<NEW_LINE>try (Git git = new Git(repository)) {<NEW_LINE>// create the file<NEW_LINE>File myfile = new File(repository.getDirectory(... | addFilepattern(".").call(); |
868,350 | public Future<Result> resolve() {<NEW_LINE>FutureTask<Result> toRet = new FutureTask<Result>(new Callable<Result>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Result call() throws Exception {<NEW_LINE>NotifyDescriptor.Confirmation action = new NotifyDescriptor.Confirmation("You can either define netbeans.installati... | Result.create(Status.UNRESOLVED); |
391,006 | public static ImmutableSet<TypeElement> referencedTypes(TypeMirror type) {<NEW_LINE>checkNotNull(type);<NEW_LINE>ImmutableSet.Builder<TypeElement<MASK><NEW_LINE>type.accept(new SimpleTypeVisitor6<Void, ImmutableSet.Builder<TypeElement>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void visitArray(ArrayType t, Immut... | > elements = ImmutableSet.builder(); |
1,006,766 | private static synchronized void loadGroup() {<NEW_LINE>logger.info("[loadGroup] begin loading group.");<NEW_LINE>Set<Entry<String, Web3j>> entrySet = WEB3J_MAP.entrySet();<NEW_LINE>for (Entry<String, Web3j> entry : entrySet) {<NEW_LINE><MASK><NEW_LINE>Web3j web3j = entry.getValue();<NEW_LINE>logger.info("[loadGroup] t... | String node = entry.getKey(); |
499,458 | public Scte20SourceSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Scte20SourceSettings scte20SourceSettings = new Scte20SourceSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
840,872 | private boolean annotationHandlerSourceTargetMatch(String[] msources, String[] mtargets, Annotation methodAnnotation, State<S, E> sourceState, State<S, E> targetState) {<NEW_LINE>Map<String, Object> annotationAttributes = AnnotationUtils.getAnnotationAttributes(methodAnnotation);<NEW_LINE>Object <MASK><NEW_LINE>Object ... | source = annotationAttributes.get("source"); |
217,934 | public <R> R commit(Callable<R> callable) {<NEW_LINE>this.groups.autoCommit(false);<NEW_LINE>this.access.autoCommit(false);<NEW_LINE>this.targets.autoCommit(false);<NEW_LINE><MASK><NEW_LINE>this.belong.autoCommit(false);<NEW_LINE>this.users.autoCommit(false);<NEW_LINE>try {<NEW_LINE>R result = callable.call();<NEW_LINE... | this.project.autoCommit(false); |
559,850 | public static void partialReduceLongMinCarrierValue(long[] inputArray, long[] outputArray, int gidx, long extra) {<NEW_LINE>int <MASK><NEW_LINE>int localGroupSize = OpenCLIntrinsics.get_local_size(0);<NEW_LINE>int groupID = OpenCLIntrinsics.get_group_id(0);<NEW_LINE>long[] localArray = (long[]) NewArrayNode.newUninitia... | localIdx = OpenCLIntrinsics.get_local_id(0); |
524,721 | public void updateSubTasksStatusByJobIdAndObjName(Long jobId, String schemaName, String objectName, int oldStatus, int newStatus) {<NEW_LINE>try {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>();<NEW_LINE>MetaDbUtil.setParameter(1, <MASK><NEW_LINE>MetaDbUtil.setParameter(2, params, ParameterMethod.setI... | params, ParameterMethod.setInt, newStatus); |
1,093,634 | public void persistLocalMetadata() {<NEW_LINE>local.setClusterName(DatabaseDescriptor.getClusterName());<NEW_LINE>local.setReleaseVersion(ProductVersion.getReleaseVersion().toString());<NEW_LINE>local.setCqlVersion(QueryProcessor.CQL_VERSION);<NEW_LINE>local.setNativeProtocolVersion(String.valueOf(ProtocolVersion.CURRE... | setRack(DatabaseDescriptor.getLocalRack()); |
309,981 | public void detach() throws SIResourceException, SINotPossibleInCurrentConfigurationException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "detach");<NEW_LINE>// Make sure we are not ready<NEW_LINE>notReady();<NEW_LINE>// Remove us from any group we are a member o... | consumerKeyFilter[i].detach(); |
1,534,517 | private InputStream openResource(Context context) throws IOException {<NEW_LINE>if (BuildConfig.DEBUG)<NEW_LINE>Log.v(TAG, "Trying to open resources in a package");<NEW_LINE>PackageInfo pi = getPackageInfo(context);<NEW_LINE>if (pi == null) {<NEW_LINE>if (BuildConfig.DEBUG)<NEW_LINE>Log.v(TAG, "No package found");<NEW_... | "data", "raw", pi.packageName); |
418,508 | private void altReleased() {<NEW_LINE>if (menuCanceledOnPress) {<NEW_LINE>WebLookAndFeel.setMnemonicHidden(true);<NEW_LINE>repaintMnemonicsInWindow(winAncestor);<NEW_LINE>} else {<NEW_LINE>final MenuSelectionManager msm = MenuSelectionManager.defaultManager();<NEW_LINE>if (msm.getSelectedPath().length == 0) {<NEW_LINE>... | JFrame) winAncestor).getJMenuBar(); |
229,867 | protected boolean isInScope(final PsiElement baseClass, final PsiElement srcElement, final String scopeType) {<NEW_LINE>if (HierarchyBrowserBaseEx.SCOPE_CLASS.equals(scopeType)) {<NEW_LINE>if (!PsiTreeUtil.isAncestor(baseClass, srcElement, true)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>} else if (HierarchyBrowserB... | NamedScopesHolder.getScope(myProject, scopeType); |
230,521 | public RetMessage removeSentinelMonitor(String clusterName) {<NEW_LINE>ClusterTbl clusterTbl = clusterService.find(clusterName);<NEW_LINE>ClusterType clusterType = ClusterType.lookup(clusterTbl.getClusterType());<NEW_LINE>if (null != clusterType && clusterType.supportMultiActiveDC()) {<NEW_LINE>return RetMessage.create... | dcClusterShardService.findAllByDcCluster(dcName, clusterName); |
1,558,812 | protected boolean secondaryCheck(final Element elm) {<NEW_LINE>if (Entity.class.isInstance(elm)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final Edge edge = (Edge) elm;<NEW_LINE>final Object source = edge.getSource();<NEW_LINE>final Object destination = edge.getDestination();<NEW_LINE>final boolean sourceIsInCurrent ... | elementConverter.serialiseVertex(destination))); |
1,750,961 | public void init() {<NEW_LINE>root = new DefaultTreeNode("Files", null);<NEW_LINE>TreeNode node0 <MASK><NEW_LINE>TreeNode node1 = new DefaultTreeNode("Events", root);<NEW_LINE>TreeNode node2 = new DefaultTreeNode("Movies", root);<NEW_LINE>TreeNode node00 = new DefaultTreeNode("Work", node0);<NEW_LINE>TreeNode node01 = ... | = new DefaultTreeNode("Documents", root); |
523,897 | public UpdateFirewallDeleteProtectionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateFirewallDeleteProtectionResult updateFirewallDeleteProtectionResult = new UpdateFirewallDeleteProtectionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen... | class).unmarshall(context)); |
75,459 | public Optional<DocumentSymbol> transform(ModuleVariableDeclarationNode moduleVariableDeclarationNode) {<NEW_LINE>BindingPatternNode bindingPatternNode = moduleVariableDeclarationNode.typedBindingPattern().bindingPattern();<NEW_LINE>// Only capture binding pattern is considered. Wildcard and other binding patterns are ... | , Collections.emptyList())); |
810,921 | private void provisionConfig(Message msg, final Completion completion) {<NEW_LINE>ApplianceVmStatus oldStatus = getSelf().getStatus();<NEW_LINE>refreshVO();<NEW_LINE>ErrorCode allowed = validateOperationByState(msg, self.getState(), SysErrors.OPERATION_ERROR);<NEW_LINE>if (allowed != null) {<NEW_LINE>completion.fail(al... | ), self.getUuid()); |
587,140 | protected void encodeHiddenInput(FacesContext context, InputNumber inputNumber, String clientId, String valueToRender) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String inputId = clientId + "_hinput";<NEW_LINE>writer.startElement("input", null);<NEW_LINE>writer.<MASK><NE... | writeAttribute("id", inputId, null); |
1,387,305 | protected void updateUI() {<NEW_LINE>super.updateUI();<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getContext());<NEW_LINE>// Inflate this data binding layout<NEW_LINE>mBinding = DataBindingUtil.inflate(inflater, R.<MASK><NEW_LINE>// Header<NEW_LINE>mBinding.headerLayout.setBackClickListener(view -> mDelegat... | layout.options_logins, this, true); |
897,297 | public void initNearbyFilter() {<NEW_LINE>nearbyFilterList.setVisibility(View.GONE);<NEW_LINE>searchView.setOnQueryTextFocusChangeListener((v, hasFocus) -> {<NEW_LINE>if (hasFocus) {<NEW_LINE>presenter.searchViewGainedFocus();<NEW_LINE>nearbyFilterList.setVisibility(View.VISIBLE);<NEW_LINE>} else {<NEW_LINE>nearbyFilte... | LayoutUtils.setLayoutHeightAllignedToWidth(1.25, nearbyFilterList); |
660,330 | private Runnable asRunnableHealthCheck(Node node) {<NEW_LINE>HealthCheck healthCheck = node.getHealthCheck();<NEW_LINE>NodeId id = node.getId();<NEW_LINE>return () -> {<NEW_LINE>boolean checkFailed = false;<NEW_LINE>Exception failedCheckException = null;<NEW_LINE>LOG.log(getDebugLogLevel(), <MASK><NEW_LINE>HealthCheck.... | "Running health check for " + node.getUri()); |
847,206 | public static Common.Envelope createSeekInfoEnvelope(TransactionContext transactionContext, Ab.SeekInfo seekInfo, byte[] tlsCertHash) throws CryptoException, InvalidArgumentException {<NEW_LINE>Common.ChannelHeader seekInfoHeader = createChannelHeader(Common.HeaderType.DELIVER_SEEK_INFO, transactionContext.getTxID(), t... | toByteString()).build(); |
233,151 | private InterEditor createEditor(Point location) {<NEW_LINE>// Inter is determined my latest history information<NEW_LINE>final List<Shape> history = shapeBoard.getHistory();<NEW_LINE>if (history.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Shape shape = history.get(0);<NEW_LINE>if (!shape.isDraggable()... | InterFactory.createManual(shape, sheet); |
1,108,383 | public void checkOk(HealthCheckTaskV2 task, Service service, String msg) {<NEW_LINE>try {<NEW_LINE>HealthCheckInstancePublishInfo instance = (HealthCheckInstancePublishInfo) task.getClient().getInstancePublishInfo(service);<NEW_LINE>if (instance == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!instan... | getClient(), service, instance); |
1,396,381 | public void checkForUpdates() throws IOException {<NEW_LINE>if (status != Status.INITIAL || Options.USE_XDG)<NEW_LINE>return;<NEW_LINE>status = Status.CHECKING;<NEW_LINE>// get current version<NEW_LINE>if (currentVersion == null) {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.load(ResourceLoader.getReso... | updateURL = props.getProperty("file"); |
657,032 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>PetOwner owner = entityManager.find(PetOwner.class, 1);<NEW_LINE>expectEquals("Stuart", owner.getName());<NEW_LINE>expectEquals("Generic pet noises", owner.getPet().makeNoise());<NEW_LINE>expectFalse(o... | owner.getPet() instanceof DogProxy); |
1,499,073 | public void processGremlinQuery(Client client, HashMap<String, String> singleParameter, boolean printResult, boolean printQuery) {<NEW_LINE>try {<NEW_LINE>String <MASK><NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>ResultSet resultSet = client.submit(gremlinQuery);<NEW_LINE>Pair<Integer, String> result... | gremlinQuery = generateGremlinQuery(singleParameter, queryPattern); |
312,105 | public static ClientMessage encodeRequest(java.lang.String eTag, int clientBwListMode, java.util.Collection<com.hazelcast.internal.management.dto.ClientBwListEntryDTO> clientBwListEntries) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clie... | StringCodec.encode(clientMessage, eTag); |
927,302 | public com.amazonaws.services.pricing.model.InternalErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.pricing.model.InternalErrorException internalErrorException = new com.amazonaws.services.pricing.model.InternalErrorException(null);<NEW_LINE><MASK... | int originalDepth = context.getCurrentDepth(); |
160,074 | public void selected(MenuItem menu, Object target) {<NEW_LINE>Utils.execSWTThread(() -> {<NEW_LINE>FileDialog dialog = new FileDialog(Utils.findAnyShell(), SWT.SYSTEM_MODAL | SWT.OPEN | SWT.MULTI);<NEW_LINE>String filter_path = TorrentOpener.getFilterPathData();<NEW_LINE>dialog.setFilterPath(filter_path);<NEW_LINE>dial... | (MessageText.getString("wizard.maketorrent.choosefile")); |
123,856 | public void drawU(UGraphic ug) {<NEW_LINE>final int xWing = 8;<NEW_LINE>final int yAperture = 8;<NEW_LINE>final AffineTransform rotate = AffineTransform.getRotateInstance(this.angle);<NEW_LINE>Point2D middle = new <MASK><NEW_LINE>Point2D left = new Point2D.Double(0, -yAperture);<NEW_LINE>Point2D base = new Point2D.Doub... | Point2D.Double(0, 0); |
1,317,708 | public void close(SocketStateCode toState) {<NEW_LINE>logger.info("close() will be started. ( remoteAddress:{}, agentInfo:{}, closeState:{}", remoteAddress, agentInfo.getAgentKey(), toState);<NEW_LINE>if (onCloseHandler != null) {<NEW_LINE>onCloseHandler.run();<NEW_LINE>}<NEW_LINE>synchronized (this) {<NEW_LINE>try {<N... | logger.warn("stop(). Socket has closed state({}).", currentStateCode); |
1,730,604 | public OutCiphertext encryptToOurselves(byte[] ovk, byte[] cv, byte[] cm, OutPlaintext message) throws ZksnarkException {<NEW_LINE>if (alreadyEncryptedOut) {<NEW_LINE>throw new ZksnarkException("already encrypted to the recipient using this key");<NEW_LINE>}<NEW_LINE>byte[] ock = new byte[NOTEENCRYPTION_CIPHER_KEYSIZE]... | ] cipherNonce = new byte[CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES]; |
920,417 | private void subtractComponentQtyOnHand(@NonNull final ProductId componentId, @NonNull final Quantity qtyToRemove) {<NEW_LINE>if (qtyToRemove.isZero()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ImmutableList<ShipmentScheduleAvailableStockDetail> stockDetails = componentStockDetails.get(componentId);<NEW_LINE>if (sto... | qtyToRemoveRemaining = qtyToRemoveRemaining.subtract(componentQtyToRemoveEffective); |
605,846 | protected void addDecorators(CustomResourceInfo config, TypeDef def, Optional<String> specReplicasPath, Optional<String> statusReplicasPath, Optional<String> labelSelectorPath) {<NEW_LINE>final String name = config.crdName();<NEW_LINE>final String version = config.version();<NEW_LINE>resources.decorate(new AddCustomRes... | new AddCustomResourceDefinitionVersionDecorator(name, version)); |
254,767 | public void writeObject(ObjectOutput output, UserSessionEntity session) throws IOException {<NEW_LINE>output.writeByte(VERSION_1);<NEW_LINE>MarshallUtil.marshallString(<MASK><NEW_LINE>MarshallUtil.marshallString(session.getBrokerSessionId(), output);<NEW_LINE>MarshallUtil.marshallString(session.getBrokerUserId(), outpu... | session.getAuthMethod(), output); |
490,661 | final BatchWriteResult executeBatchWrite(BatchWriteRequest batchWriteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchWriteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | false), new BatchWriteResultJsonUnmarshaller()); |
88,288 | public static DescribeWatchItemsResponse unmarshall(DescribeWatchItemsResponse describeWatchItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeWatchItemsResponse.setRequestId<MASK><NEW_LINE>describeWatchItemsResponse.setSuccess(_ctx.booleanValue("DescribeWatchItemsResponse.Success"));<NEW_LINE>describeWatchIte... | (_ctx.stringValue("DescribeWatchItemsResponse.RequestId")); |
1,377,085 | public FieldBinding addSyntheticFieldForEnumValues() {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>this.synthetics = new HashMap[MAX_SYNTHETICS];<NEW_LINE>if (this.synthetics[SourceTypeBinding.FIELD_EMUL] == null)<NEW_LINE>this.synthetics[Sourc... | .FIELD_EMUL].size()); |
851,364 | public void process(HttpRequest request, HttpContext context) throws IOException {<NEW_LINE>String logId = (String) context.getAttribute(LOG_ID_ATTRIBUTE);<NEW_LINE>if (logId == null) {<NEW_LINE>logId = ClientLogger.newLogId();<NEW_LINE>context.setAttribute(LOG_ID_ATTRIBUTE, logId);<NEW_LINE>}<NEW_LINE>String headers =... | (buffer.toByteArray())); |
13,570 | private String chooseFileName(boolean ownXmlFormat, FileFilter filefilter, JFileChooser fileChooser) {<NEW_LINE>String fileName = null;<NEW_LINE>setAvailableFileFilters(ownXmlFormat, fileChooser);<NEW_LINE>fileChooser.setFileFilter(filefilter);<NEW_LINE>int returnVal = fileChooser.showSaveDialog(CurrentGui.getInstance(... | chooseFileName(ownXmlFormat, filefilter, fileChooser); |
1,463,252 | public Coordinate invRotate(Coordinate coord) {<NEW_LINE>double a, b, c, d;<NEW_LINE>assert (Math.abs(norm2() - 1) < 0.00001) : "Quaternion not unit length: " + this;<NEW_LINE>// (a,b,c,d) = (this)^-1 * coord = (w,-x,-y,-z) * (0,cx,cy,cz)<NEW_LINE>a = +x * coord.x + y * coord.y + z * coord.z;<NEW_LINE>b = w * coord.x -... | .z - z * coord.x; |
637,110 | public void testHungRequestDisable() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "Setting hung threshold as 0");<NEW_LINE>server.setServerConfigurationFile("server_hungRequestThreshold0.xml");<NEW_LINE>String srvConfigCompletedMsg = <MASK><NEW_LINE>assertNotNull("The server configuration was success... | server.waitForStringInLog("CWWKG0017I", 90000); |
979,662 | public List<Configuration> toVendorIndependentConfigurations() throws VendorConversionException {<NEW_LINE>String hostname = getHostname();<NEW_LINE>_c = new Configuration(hostname, _vendor);<NEW_LINE>_c.setHumanName(_rawHostname);<NEW_LINE>_c.setDeviceModel(DeviceModel.A10);<NEW_LINE>_c.setDefaultCrossZoneAction(LineA... | _ifaceNametoIface = new HashMap<>(); |
903,520 | DefinitionProtos.Definition writeDefinition(Definition definition) {<NEW_LINE>final ExpressionSerialization defSerializer = new ExpressionSerialization(myCallTargetIndexProvider);<NEW_LINE>final DefinitionProtos.Definition.Builder out = DefinitionProtos.Definition.newBuilder();<NEW_LINE>out.setUniverseKind(defSerialize... | (definition.getUniverseKind())); |
213,544 | private void buildRouterOperation(List<RouterOperation> routerOperationList, DataRestRepository dataRestRepository, OpenAPI openAPI, MethodResourceMapping methodResourceMapping, HandlerMethod handlerMethod, RequestMethod requestMethod, ResourceMetadata resourceMetadata, String operationPath, ControllerType controllerTy... | calculateConsumesProduces(handlerMethod.getMethod()); |
1,124,211 | private JApiClassFileFormatVersion extractClassFileFormatVersion(Optional<CtClass> oldClassOptional, Optional<CtClass> newClassOptional) {<NEW_LINE>if (oldClassOptional.isPresent() && newClassOptional.isPresent()) {<NEW_LINE>CtClass oldClass = oldClassOptional.get();<NEW_LINE><MASK><NEW_LINE>ClassFile classFileOld = ol... | CtClass newClass = newClassOptional.get(); |
692,745 | public void parseStatementNode() {<NEW_LINE>String id = context.getStringAttribute("id");<NEW_LINE>String databaseId = context.getStringAttribute("databaseId");<NEW_LINE>if (!databaseIdMatchesCurrent(id, databaseId, this.requiredDatabaseId)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String nodeName = context.getNode().get... | context.getBooleanAttribute("useCache", isSelect); |
921,198 | public synchronized static void loadAgent() throws RuntimeException {<NEW_LINE>if (alreadyLoaded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("dynamically loading javaagent");<NEW_LINE>String nameOfRunningVM = ManagementFactory.getRuntimeMXBean().getName();<NEW_LINE>int p = nameOfRunningVM.indexOf('@');<NEW_LINE... | logger.info("Using JavaAgent in " + jarFilePath); |
841,915 | public V remove(Object key) {<NEW_LINE>int hash = this.hash(key);<NEW_LINE>Object[] currentArray = this.table;<NEW_LINE>int length = currentArray.length;<NEW_LINE>int index = ConcurrentHashMapUnsafe.indexFor(hash, length);<NEW_LINE>Object o = ConcurrentHashMapUnsafe.arrayAt(currentArray, index);<NEW_LINE>if (o == RESIZ... | , V>) o, e); |
13,597 | public static void main2(String[] argv) {<NEW_LINE>double[] awc = { 1.0, 0.1077, -0.0424, 0.1737, -0.0278, 0.1759, -0.1990, -0.0333, -0.1904, 0.0759, 0.0278, -0.0568, -0.1325, 0.001, -0.001, 0.001, -0.001, 0.001, -0.0005, 0.001, -0.001, 0.001, -0.001, 0.001, 0.0002 };<NEW_LINE>double[<MASK><NEW_LINE>double[] lsp = new ... | ] a = new double[25]; |
337,339 | public void checkHoldRequest() {<NEW_LINE>for (String key : pullRequestTable.keySet()) {<NEW_LINE>int idx = key.lastIndexOf(TOPIC_QUEUEID_SEPARATOR);<NEW_LINE>if (idx <= 0 || idx >= key.length() - 1) {<NEW_LINE>pullRequestTable.remove(key);<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>String topic = key.substring(0, idx);<NE... | notifyMessageArriving(topic, queueId, offset); |
58,591 | private int nonFirstLevel(int docID, long ordinal, long position) {<NEW_LINE>int level = level(position);<NEW_LINE>long offset = offset(position, level);<NEW_LINE>assert offset != 0L;<NEW_LINE>if (((offset + 1) & slotsMask(level)) == 0L) {<NEW_LINE>// reached the end of the slice, allocate a new one on the next level<N... | set(offset, ordinal + 1); |
476,883 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>Card card = controller.getLibrary().getFromTop(game);<NEW_LINE>if ... | source, game, false, true); |
1,050,193 | protected void deploy(DeploymentInfo deploymentInfo) {<NEW_LINE>LOG.info("Deploying JAX-RS deployment for protocol instance : " + this);<NEW_LINE>DeploymentManager manager = Servlets.defaultContainer().addDeployment(deploymentInfo);<NEW_LINE>manager.deploy();<NEW_LINE>HttpHandler httpHandler;<NEW_LINE>// Get realm from... | (Constants.REALM_PARAM_NAME), agentRealm); |
1,254,529 | final RejectInvitationResult executeRejectInvitation(RejectInvitationRequest rejectInvitationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectInvitationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | (super.beforeMarshalling(rejectInvitationRequest)); |
1,118,552 | public String execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException, ServerException {<NEW_LINE>BimDatabaseAction<User> action = new GetUserByUserTokenDatabaseAction(getDatabaseSession(), getAccessMethod(), userToken);<NEW_LINE>User user = action.execute();<NEW_LINE>if (user != null... | getSessionTimeOutSeconds(), TimeUnit.SECONDS); |
270,958 | public static Map<Integer, String> computeExportInstructions(Map<String, Boolean> items, Project project) {<NEW_LINE>Map<Integer, String> instructionsMap = new HashMap<Integer, String>(2);<NEW_LINE>StringBuilder exportIns = new StringBuilder();<NEW_LINE>boolean isFirst = true;<NEW_LINE>for (Entry<String, Boolean> entry... | getBasePackageNames(project).iterator(); |
1,405,178 | public <A> int choose(A options, ArrayAdapter<? extends SpatialComparable, A> getter, SpatialComparable obj, int height, int depth) {<NEW_LINE>final int size = getter.size(options);<NEW_LINE>assert (size > 0) : "Choose from empty set?";<NEW_LINE>// R*-Tree: overlap increase for leaves.<NEW_LINE>int best = -1;<NEW_LINE>... | getter.get(options, k); |
636,480 | static boolean isOverlapPreventedInOtherDimension(LayoutInterval addingInterval, LayoutInterval existingInterval, int dimension) {<NEW_LINE>int otherDim = dimension ^ 1;<NEW_LINE>Iterator<<MASK><NEW_LINE>do {<NEW_LINE>LayoutInterval otherDimAdd = addIt.next().getComponent().getLayoutInterval(otherDim);<NEW_LINE>Iterato... | LayoutInterval> addIt = getComponentIterator(addingInterval); |
370,810 | protected void validate(boolean validateHome) {<NEW_LINE>clearError();<NEW_LINE>try {<NEW_LINE>if (urlText.getText() == null || urlText.getText().equals("")) {<NEW_LINE>setError("Select a Boot home directory or zip file");<NEW_LINE>return;<NEW_LINE>} else if (validateHome) {<NEW_LINE>IBootInstall install = installFacto... | IStatus status = install.validate(); |
1,794,059 | private static PackageBufINf showLogSum(ManagerConnection c, ByteBuffer buffer, byte packetId) {<NEW_LINE>PackageBufINf bufINf = new PackageBufINf();<NEW_LINE>File[] logFiles = new File(SystemConfig.getHomePath(), "logs").listFiles();<NEW_LINE>String fileNames = "";<NEW_LINE>for (File f : logFiles) {<NEW_LINE>if (f.isF... | = queue.size() - 1; |
434,831 | public static CheckDeviceResponse unmarshall(CheckDeviceResponse checkDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>checkDeviceResponse.setRequestId(_ctx.stringValue("CheckDeviceResponse.RequestId"));<NEW_LINE>checkDeviceResponse.setStatus(_ctx.booleanValue("CheckDeviceResponse.Status"));<NEW_LINE>checkDeviceRes... | ("CheckDeviceResponse.Plans[" + i + "].Id")); |
775,328 | static void postOrderWalk(Expansion node, TreeWalkerOp opObj) {<NEW_LINE>if (opObj.goDeeper(node)) {<NEW_LINE>if (node instanceof Choice) {<NEW_LINE>for (Iterator it = ((Choice) node).getChoices().iterator(); it.hasNext(); ) {<NEW_LINE>postOrderWalk((Expansion) it.next(), opObj);<NEW_LINE>}<NEW_LINE>} else if (node ins... | Lookahead) node).getLaExpansion(); |
1,851,828 | final GetUpgradeStatusResult executeGetUpgradeStatus(GetUpgradeStatusRequest getUpgradeStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUpgradeStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
890,143 | public void afterRun(TestCaseRunner testRunner, TestCaseRunContext runContext) {<NEW_LINE>if (SoapUI.getTestMonitor().hasRunningLoadTest(getModelItem()) || SoapUI.getTestMonitor().hasRunningSecurityTest(getModelItem())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AbstractTestCaseRunner<TestRunnable, WsdlTestRunContext> wsdl... | "], time taken = " + wsdlRunner.getTimeTaken()); |
876,217 | final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,498,260 | private static void tryAssertionSnapshotColumn(RegressionEnvironment env, String[] fields) {<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.sendEventBean(new SupportBean("E1", 1));<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, new Object[][] { { "E1", 1 } });<NEW_LINE>env.assertListen... | new SupportBean("E2", 2)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.