idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
266,908 | protected boolean isCommonTableSettingsChanged(Element columnsElem) {<NEW_LINE>if (columnsElem == null) {<NEW_LINE>if (defaultSettings != null) {<NEW_LINE>columnsElem = defaultSettings.getRootElement().element("columns");<NEW_LINE>if (columnsElem == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>re... | settingsColumnWidth = settingsColumn.attributeValue("width"); |
317,463 | private Mono<Response<FeatureResultInner>> registerWithResponseAsync(String resourceProviderNamespace, String featureName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
800,465 | public void execute(DelegateExecution execution) throws Exception {<NEW_LINE>Date now = new Date();<NEW_LINE>List<String> serializable = new ArrayList<String>();<NEW_LINE>serializable.add("seven");<NEW_LINE>serializable.add("eight");<NEW_LINE>serializable.add("nine");<NEW_LINE>List<Date> dateList = new ArrayList<Date>(... | variables.put("dateList", dateList); |
183,190 | void deprioritizeJob(AutoIngestJob job) throws AutoIngestMonitorException {<NEW_LINE>synchronized (jobsLock) {<NEW_LINE>AutoIngestJob jobToDeprioritize = null;<NEW_LINE>for (AutoIngestJob pendingJob : getPendingJobs()) {<NEW_LINE>if (pendingJob.equals(job)) {<NEW_LINE>jobToDeprioritize = job;<NEW_LINE>break;<NEW_LINE>}... | job.toString(), ex); |
1,374,404 | public void LAPACK_zhegvx(IntBuffer arg0, String arg1, String arg2, String arg3, IntBuffer arg4, DoubleBuffer arg5, IntBuffer arg6, DoubleBuffer arg7, IntBuffer arg8, DoubleBuffer arg9, DoubleBuffer arg10, IntBuffer arg11, IntBuffer arg12, DoubleBuffer arg13, IntBuffer arg14, DoubleBuffer arg15, DoubleBuffer arg16, Int... | arg20, arg21, arg22, arg23); |
909,353 | private void decorate(Element el, Component cmp) {<NEW_LINE>String classAttr = el.getAttribute("class");<NEW_LINE>if (classAttr != null && classAttr.length() > 0) {<NEW_LINE>String[] tags = Util.split(classAttr, " ");<NEW_LINE>$(cmp).addTags(tags);<NEW_LINE>}<NEW_LINE>String uiid = el.getAttribute("uiid");<NEW_LINE>if ... | ) cmp).setSafeArea(true); |
870,792 | final ListClustersResult executeListClusters(ListClustersRequest listClustersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClustersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | (super.beforeMarshalling(listClustersRequest)); |
110,489 | private void preProcessClass(ClassNode cls) {<NEW_LINE>ClassInfo classInfo = cls.getClassInfo();<NEW_LINE>String pkgFullName = classInfo.getPackage();<NEW_LINE>PackageNode pkg = getPackageNode(pkgFullName, true);<NEW_LINE>processPackageFull(pkg, pkgFullName);<NEW_LINE>String alias = deobfPresets.getForCls(classInfo);<N... | String clsShortName = classInfo.getShortName(); |
434,711 | protected List<FunctionSymbol> filterLangLibMethods(List<FunctionSymbol> functions, BType internalType) {<NEW_LINE>Types types = Types.getInstance(this.context);<NEW_LINE>List<FunctionSymbol> filteredFunctions = new ArrayList<>();<NEW_LINE>for (FunctionSymbol function : functions) {<NEW_LINE>List<ParameterSymbol> funct... | .params().get(); |
1,629,034 | public void execute(CachedClassLoader cachedClassLoader) {<NEW_LINE>ClassLoader classLoader = cachedClassLoader.getClassLoader();<NEW_LINE>Object antBuilder = newInstanceOf("org.gradle.api.internal.project.ant.BasicAntBuilder");<NEW_LINE>Object antLogger = newInstanceOf("org.gradle.api.internal.project.ant.AntLoggingAd... | currentThread().setContextClassLoader(classLoader); |
1,220,863 | final CreateFlowDefinitionResult executeCreateFlowDefinition(CreateFlowDefinitionRequest createFlowDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFlowDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | false), new CreateFlowDefinitionResultJsonUnmarshaller()); |
339,340 | private boolean writeDictionaryRowGroup(Block dictionary, int valueCount, IntBigArray dictionaryIndexes, int maxDirectBytes) {<NEW_LINE>int[][] segments = dictionaryIndexes.getSegments();<NEW_LINE>for (int i = 0; valueCount > 0 && i < segments.length; i++) {<NEW_LINE>int[] segment = segments[i];<NEW_LINE>int positionCo... | block.getRegion(0, chunkPositionCount); |
1,809,739 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.<MASK><NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 3));<NEW_LINE>if (cards.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetCard ta... | getPlayer(source.getControllerId()); |
1,396,844 | private static PyObject loadBuiltin(String name) {<NEW_LINE>final String MSG = "import {0} # builtin";<NEW_LINE>if (name == "sys") {<NEW_LINE>logger.log(Level.CONFIG, MSG, name);<NEW_LINE>return Py.<MASK><NEW_LINE>}<NEW_LINE>if (name == "__builtin__") {<NEW_LINE>logger.log(Level.CONFIG, MSG, new Object[] { name, name }... | java2py(Py.getSystemState()); |
1,099,211 | public void start(String[] args) {<NEW_LINE>int exitCode = 0;<NEW_LINE>try {<NEW_LINE>suppressIllegalAccessWarning();<NEW_LINE>if (Main.isTesting) {<NEW_LINE>System.out.println("Process ID: " + this.getProcessId());<NEW_LINE>}<NEW_LINE>ProcessState.getInstance(this).addState(ProcessState.PROCESS_STATE.INIT, null);<NEW_... | CLIOptions.load(this, args); |
565,491 | public CreateApplicationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateApplicationResult createApplicationResult = new CreateApplicationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | ().unmarshall(context)); |
1,792,996 | private static void compareValueCollection(Collection<Object> expected, Collection<Object> actual) {<NEW_LINE>assertEquals(expected.size(), actual.size());<NEW_LINE>assertEquals(expected.isEmpty(), actual.isEmpty());<NEW_LINE>EPAssertionUtil.assertEqualsExactOrder(expected.toArray(), actual.toArray());<NEW_LINE>EPAsser... | (new Object[100])); |
1,459,507 | private static void addAvailableFixesForGroups(@Nonnull HighlightInfo info, @Nonnull Editor editor, @Nonnull PsiFile file, @Nonnull List<? super HighlightInfo.IntentionActionDescriptor> outList, int group, int offset) {<NEW_LINE>if (info.quickFixActionMarkers == null)<NEW_LINE>return;<NEW_LINE>if (group != -1 && group ... | .getFixTextRange().isEmpty(); |
1,326,514 | private static Option createOption(String type, Character shortName, String longName, String displayName, String description) {<NEW_LINE>Option o = null;<NEW_LINE>if (shortName == null) {<NEW_LINE>shortName = Option.NO_SHORT_NAME;<NEW_LINE>}<NEW_LINE>switch(Type.valueOf(type)) {<NEW_LINE>case withoutArgument:<NEW_LINE>... | Option.optionalArgument(shortName, longName); |
1,035,758 | private ExecutableNode planExecution(ExpressionContext expression) {<NEW_LINE>switch(expression.getType()) {<NEW_LINE>case LITERAL:<NEW_LINE>return new ConstantExecutionNode(expression.getLiteral());<NEW_LINE>case IDENTIFIER:<NEW_LINE>String columnName = expression.getIdentifier();<NEW_LINE>ColumnExecutionNode columnEx... | (arguments.get(i)); |
493,569 | /*<NEW_LINE>* Sensor side<NEW_LINE>*/<NEW_LINE>public void onStart() {<NEW_LINE>// create thread<NEW_LINE>monitorSessionThread = new MonitorSessionThread(this, host, port, passwd);<NEW_LINE>// start first bus scan 30 secs later<NEW_LINE>m_last_bus_scan = new Date((new Date()).getTime() - (1000 * m_bus_scan_interval_sec... | / 1000), m_heating_zones, m_shutter_run_msecs); |
1,373,845 | public Request<UpdateChannelReadMarkerRequest> marshall(UpdateChannelReadMarkerRequest updateChannelReadMarkerRequest) {<NEW_LINE>if (updateChannelReadMarkerRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateChannelReadMarkerRequest)");<NEW_LINE>}<NEW_LINE>Request<Upd... | updateChannelReadMarkerRequest.getChannelArn()))); |
1,580,443 | public void actionPerformed(ActionEvent event) {<NEW_LINE>Queue<PageFlowSceneElement> deleteNodesList = new LinkedList<PageFlowSceneElement>();<NEW_LINE>// Workaround: Temporarily Wrapping Collection because of Issue: 100127<NEW_LINE>Set<Object> selectedObjects = new HashSet<Object>(scene.getSelectedObjects());<NEW_LIN... | = new HashSet<Object>(); |
957,782 | public List<Map<String, Object>> read(String segmentId, String sqlTmpl, Object[] values) throws IOException {<NEW_LINE>String readUrl = readUrl(segmentId);<NEW_LINE>String[] sqlValues <MASK><NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>sqlValues[i] = sqlValue(values[i]);<NEW_LINE>}<NEW_LINE>String sql = ... | = new String[values.length]; |
590,152 | protected Ternary visitFunctionCall(FunctionCall fc, TranslationContext context) {<NEW_LINE>if (!ignoreWindows && fc.getWindow().isPresent())<NEW_LINE>throw new TranslationException("Window functions not allowed in aggregates", fc);<NEW_LINE>if (this.isGroupedBy(fc)) {<NEW_LINE>this.decomposition.addNode(fc);<NEW_LINE>... | convertQualifiedName(fc.getName()); |
69,408 | public EdgeLabel readEdgeLabel(HugeGraph graph, BackendEntry backendEntry) {<NEW_LINE>if (backendEntry == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TableBackendEntry entry = this.convertEntry(backendEntry);<NEW_LINE>Number id = schemaColumn(entry, HugeKeys.ID);<NEW_LINE>String name = schemaColumn(entry, HugeKey... | HugeKeys.FREQUENCY, Frequency.class); |
363,386 | public final DeleteResponse<T> delete(String updatedBy, String id, boolean recursive, boolean internal) throws IOException {<NEW_LINE>// Validate entity<NEW_LINE>String json = dao.findJsonById(id, Include.NON_DELETED);<NEW_LINE>if (json == null) {<NEW_LINE>if (!internal) {<NEW_LINE>throw EntityNotFoundException.byMessa... | .entityNotFound(entityType, id)); |
1,412,192 | protected Folder _editWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKey) throws Exception {<NEW_LINE>// wraps request to get session object<NEW_LINE>ActionRequestImpl reqImpl = (ActionRequestImpl) req;<NEW_LINE>HttpServletRequest httpReq = reqImpl.getHttpSer... | _checkUserPermissions(webAsset, user, PERMISSION_READ); |
264,177 | public void updateCompass(boolean isNight) {<NEW_LINE>float mapRotate = mapView.getRotate();<NEW_LINE>if (mapRotate != cachedRotate) {<NEW_LINE>cachedRotate = mapRotate;<NEW_LINE>// Apply animation to image view<NEW_LINE>compassHud.iv.invalidate();<NEW_LINE>}<NEW_LINE>boolean showCompass = shouldShowCompass();<NEW_LINE... | ic_compass_white : R.drawable.ic_compass); |
1,790,443 | public final void onNext(@Nullable final T t) {<NEW_LINE>final Subscriber<? super T> subscriber = subscriber();<NEW_LINE>if (subscriber == null) {<NEW_LINE>getOrCreateSignalQueue(8).add(wrapNull(t));<NEW_LINE>drainSignalQueueSupplier(null, this::subscriber);<NEW_LINE>} else if (hasSignalsQueued()) {<NEW_LINE>getOrCreat... | .add(wrapNull(t)); |
1,813,352 | private RtAppInstanceDOExample buildExample(RtAppInstanceQueryCondition condition) {<NEW_LINE>RtAppInstanceDOExample example = new RtAppInstanceDOExample();<NEW_LINE>RtAppInstanceDOExample.Criteria criteria = example.createCriteria();<NEW_LINE>if (StringUtils.isNotBlank(condition.getAppInstanceId())) {<NEW_LINE>criteri... | example.setOrderByClause(DefaultConstant.ORDER_BY_ID_DESC); |
1,530,102 | public static DescribeBackupPlansResponse unmarshall(DescribeBackupPlansResponse describeBackupPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupPlansResponse.setRequestId(_ctx.stringValue("DescribeBackupPlansResponse.RequestId"));<NEW_LINE>describeBackupPlansResponse.setSuccess(_ctx.booleanValue("Descr... | (_ctx.integerValue("DescribeBackupPlansResponse.PageNumber")); |
568,291 | private static XmlElement parse(XMLStreamReader reader, String refAttr, Map<String, XmlElement> refs) {<NEW_LINE>try {<NEW_LINE>// parse start element<NEW_LINE>String elementName = parseElementName(reader);<NEW_LINE>ImmutableMap<String, String> attrs = parseAttributes(reader);<NEW_LINE>// parse children or content<NEW_... | int event = reader.next(); |
1,713,680 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String applicationDefinitionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,472,925 | private EventBus createEventBus(@NonNull final Topic topic, @NonNull final MeterRegistry meterRegistry) {<NEW_LINE>final MicrometerEventBusStatsCollector statsCollector = createMicrometerEventBusStatsCollector(topic, meterRegistry);<NEW_LINE>// Create the event bus<NEW_LINE>final EventBus eventBus = new EventBus(topic.... | logger.warn("Remote events are disabled via EventBusConstants. Creating local-only eventBus for topic={}", topic); |
1,638,990 | public static ErrorPropertiesDialog newInstance(final RRError error) {<NEW_LINE>final ErrorPropertiesDialog dialog = new ErrorPropertiesDialog(error);<NEW_LINE>final Bundle args = new Bundle();<NEW_LINE>args.putString("title", error.title);<NEW_LINE>args.putString("message", error.message);<NEW_LINE>if (error.t != null... | error.response.toString()); |
1,554,879 | private void apply() {<NEW_LINE>this._trace = getBoolean("_trace", false);<NEW_LINE>this.net_collector_ip_port_id_pws = getValue("net_collector_ip_port_id_pws", "127.0.0.1:6100:admin:admin");<NEW_LINE>this.net_webapp_tcp_client_pool_size = getInt("net_webapp_tcp_client_pool_size", 100);<NEW_LINE>this.net_webapp_tcp_cli... | net_http_api_allow_ips = getValue("net_http_api_allow_ips", "localhost,127.0.0.1,0:0:0:0:0:0:0:1,::1"); |
776,614 | private static void addGstreamerPathsToEnv() {<NEW_LINE>if (System.getProperty("jna.nosys") == null) {<NEW_LINE>System.setProperty("jna.nosys", "true");<NEW_LINE>}<NEW_LINE>Path gstreamerPath = InstalledFileLocator.getDefault().locate("gstreamer", Installer.class.getPackage().getName(), false).toPath();<NEW_LINE>if (gs... | toString(), "1.0", arch); |
1,265,776 | public long handle(Emulator<?> emulator) {<NEW_LINE>EditableArm32RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer object = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>UnidbgPointer va_list = context.getPointerArg(3);<NEW_LINE>if (log.isDebugEnab... | ret, context.getLRPointer()); |
1,394,203 | ConfidenceInterval computeConfidenceInterval(double alpha, double alphaNum) {<NEW_LINE>// Setting alphaDen such that (1 - alpha) = (1 - alphaNum) * (1 - alphaDen).<NEW_LINE>double alphaDen = (alpha - alphaNum) / (1 - alphaNum);<NEW_LINE>ConfidenceInterval confIntNum = normalizedSum.computeConfidenceInterval(alphaNum);<... | meanUpperBound = clamp(meanUpperBound + midpoint); |
159,908 | final CreateStateMachineResult executeCreateStateMachine(CreateStateMachineRequest createStateMachineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStateMachineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new CreateStateMachineResultJsonUnmarshaller()); |
1,296,898 | public OMixedIndexRIDContainer deserializeFromByteBufferObject(ByteBuffer buffer) {<NEW_LINE>buffer.position(buffer.position() + OIntegerSerializer.INT_SIZE);<NEW_LINE>final long fileId = buffer.getLong();<NEW_LINE>final int embeddedSize = buffer.getInt();<NEW_LINE>final Set<ORID> hashSet = new HashSet<>();<NEW_LINE>fo... | int offset = buffer.getInt(); |
73,445 | protected boolean initialize(Object element) {<NEW_LINE>if (!(element instanceof IFile)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>origFile = (IFile) element;<NEW_LINE>if (!origFile.exists()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IJavaProject javaProject = UmletPluginUtils.getJavaProject(origFile.getProject()... | )).lastSegment())); |
1,767,120 | private void createServerSection(Composite parent) {<NEW_LINE>Font font = parent.getFont();<NEW_LINE>Group group = new Group(parent, SWT.FLAT);<NEW_LINE>group.setText(Messages.LaunchBrowserSettingsTab_Server);<NEW_LINE>group.setFont(font);<NEW_LINE>// CHECKSTYLE:OFF<NEW_LINE>GridData gd = new GridData(SWT.FILL, 20, tru... | = new FormAttachment(100, 0); |
1,108,269 | public static boolean validateSignature(Transaction transaction, byte[] hash, AccountStore accountStore, DynamicPropertiesStore dynamicPropertiesStore) throws PermissionException, SignatureException, SignatureFormatException {<NEW_LINE>Transaction.Contract contract = transaction.getRawData().getContractList().get(0);<N... | [] owner = getOwner(contract); |
1,773,486 | public void log(TraceComponent tc) {<NEW_LINE>Tr.debug(tc, MessageFormat.format("Delayed Class [ {0} ]", getHashText()));<NEW_LINE>Tr.debug(tc, MessageFormat.format(" classInfo [ {0} ]", ((classInfo != null) ? classInfo.getHashText() : null)));<NEW_LINE>Tr.debug(tc, MessageFormat.format(" isArtificial [ {0} ]", Boole... | .format(" isAnnotationPresent [ {0} ]", isAnnotationPresent)); |
873,017 | private void handleStubDefinition(NodeTraversal t, Node exprResult) {<NEW_LINE>if (!t.inGlobalHoistScope()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean isExternStub = exprResult.isFromExterns();<NEW_LINE>boolean isTypedefStub = isTypedefStubDeclaration(exprResult);<NEW_LINE>// recognize @typedefs only if using this ... | pn = providedNames.get(name); |
1,380,566 | public void execute(Collection<Change> changes, String commitMessage) {<NEW_LINE>if (changes.size() > 0 && !ChangesUtil.hasFileChanges(changes)) {<NEW_LINE>WaitForProgressToShow.runOrInvokeLaterAboveProgress(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Messages.showErrorDialog(myProject, VcsBundle.m... | , VcsBundle.message("shelve.changes.action")); |
1,531,631 | private void processParseTag(Tag parseTag) {<NEW_LINE>for (Tag child : parseTag.getChildren()) {<NEW_LINE>String tagName = child.getName();<NEW_LINE>Map<String, String<MASK><NEW_LINE>switch(tagName) {<NEW_LINE>case TAG_INLINE_FAIL:<NEW_LINE>{<NEW_LINE>String reason = attrs.get(ATTR_REASON);<NEW_LINE>reason = StringUtil... | > attrs = child.getAttributes(); |
738,010 | public void run() {<NEW_LINE>long taskExecuteTime = System.currentTimeMillis();<NEW_LINE>Package res = new Package();<NEW_LINE>try {<NEW_LINE>if (!eventMeshTCPServer.getEventMeshTCPConfiguration().eventMeshServerRegistryEnable) {<NEW_LINE>throw new Exception("registry enable config is false, not support");<NEW_LINE>}<N... | (UserAgent) pkg.getBody(); |
721,839 | // already requested in calling method<NEW_LINE>@SuppressWarnings("MissingPermission")<NEW_LINE>public void deleteCalendar(String calendarName) {<NEW_LINE>try {<NEW_LINE>Uri evuri = CalendarContract.Calendars.CONTENT_URI;<NEW_LINE>final ContentResolver contentResolver = cordova.getActivity().getContentResolver();<NEW_L... | }, null, null, null); |
793,752 | public void marshall(CreateEnvironmentRequest createEnvironmentRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createEnvironmentRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createEnviro... | createEnvironmentRequest.getDeploymentConfiguration(), DEPLOYMENTCONFIGURATION_BINDING); |
444,598 | public Request<ListAttachedUserPoliciesRequest> marshall(ListAttachedUserPoliciesRequest listAttachedUserPoliciesRequest) {<NEW_LINE>if (listAttachedUserPoliciesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ListAttachedUserPoliciesReque... | <ListAttachedUserPoliciesRequest>(listAttachedUserPoliciesRequest, "AmazonIdentityManagement"); |
743,940 | public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>Bone bone = skeleton.bones.get(boneIndex);<NEW_LINE>if (!bone.active)<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>if (time < frames[0]) {<NEW_LINE>// Time is before f... | float[] frames = this.frames; |
181,981 | public T visitObjectKeyValue(ObjectKeyValueContext ctx) {<NEW_LINE>TerminalNode fieldKeyTerm = ctx.STRING();<NEW_LINE>String fieldKey = fixString(fieldKeyTerm);<NEW_LINE>StringToken fieldKeyToken = code(new StringToken(fieldKey), fieldKeyTerm);<NEW_LINE>//<NEW_LINE>ObjectVariable objectVariable = (ObjectVariable) this.... | ) this.instStack.pop(); |
237,955 | private void destroyUnusedInvokers(Map<String, Invoker<T>> oldUrlInvokerMap, Map<String, Invoker<T>> newUrlInvokerMap) {<NEW_LINE>if (newUrlInvokerMap == null || newUrlInvokerMap.size() == 0) {<NEW_LINE>destroyAllInvokers();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (oldUrlInvokerMap == null || oldUrlInvokerMap.size() ==... | oldUrlInvokerMap.size() + " deprecated invokers deleted."); |
947,954 | public Expression visitGstringPath(final GstringPathContext ctx) {<NEW_LINE>VariableExpression variableExpression = new VariableExpression(this.visitIdentifier(ctx.identifier()));<NEW_LINE>if (asBoolean(ctx.GStringPathPart())) {<NEW_LINE>Expression propertyExpression = // GRECLIPSE add<NEW_LINE>ctx.GStringPathPart().st... | .setLineNumber(row_col[0]); |
657,817 | private static void copyToRemoteFolder(String fileName, String localFolder, File remoteFolder, boolean missingFileOk) throws SharedConfigurationException {<NEW_LINE>logger.log(Level.INFO, "Uploading {0} to {1}", new Object[] { fileName, remoteFolder.getAbsolutePath() });<NEW_LINE>File localFile = new File(localFolder, ... | Level.SEVERE, "Shared configuration {0} does not exist on local node, but unable to remove remote copy", fileName); |
751,695 | public void fileSessionDataStore() {<NEW_LINE>// tag::filesessiondatastore[]<NEW_LINE>// create a context<NEW_LINE>WebAppContext app1 = new WebAppContext();<NEW_LINE>app1.setContextPath("/app1");<NEW_LINE>// First, we create a DefaultSessionCache<NEW_LINE>DefaultSessionCache cache = new <MASK><NEW_LINE>cache.setEvictio... | DefaultSessionCache(app1.getSessionHandler()); |
56,319 | public SendChannelMessageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SendChannelMessageResult sendChannelMessageResult = new SendChannelMessageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | class).unmarshall(context)); |
1,808,812 | public Table history(@ShellOption(value = { "", "--name" }, help = "the name of the stream", valueProvider = StreamNameValueProvider.class) String name) {<NEW_LINE>Collection<Release> releases = streamOperations().history(name);<NEW_LINE>LinkedHashMap<String, Object> <MASK><NEW_LINE>headers.put("version", "Version");<N... | headers = new LinkedHashMap<>(); |
1,014,630 | private void forwardResults(BatchIterator<Row> it, boolean isLast) {<NEW_LINE>multiBucketBuilder.build(buckets);<NEW_LINE>AtomicInteger numActiveRequests = new <MASK><NEW_LINE>for (int i = 0; i < downstreams.size(); i++) {<NEW_LINE>Downstream downstream = downstreams.get(i);<NEW_LINE>if (downstream.needsMoreData == fal... | AtomicInteger(downstreams.size()); |
73,357 | public void execute() {<NEW_LINE>CallContext.current().setEventDetails("Vm Id: " + this._uuidMgr.getUuid(VirtualMachine.class, getVmId()) + " Nic Id: " + this._uuidMgr.getUuid(Nic.class, getNicId()));<NEW_LINE>UserVm result = _userVmService.updateDefaultNicForVirtualMachine(this);<NEW_LINE>ArrayList<VMDetails> dc = new... | , result).get(0); |
1,512,237 | protected boolean canUseGlyphRendering(FontKey fontKey, boolean awtIgnoreMissingFont) {<NEW_LINE>Map<Attribute, Object> fontAttributes = new HashMap<>();<NEW_LINE>fontKey.fontAttribute.putAttributes(fontAttributes);<NEW_LINE>fontAttributes.put(TextAttribute.SIZE, 10f);<NEW_LINE>int style = 0;<NEW_LINE>if (fontKey.itali... | getFont(fontAttributes, fontKey.locale); |
1,476,683 | public com.alibaba.otter.node.etl.model.protobuf.BatchProto.RowBatch buildPartial() {<NEW_LINE>com.alibaba.otter.node.etl.model.protobuf.BatchProto.RowBatch result = new com.alibaba.otter.node.etl.model.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x... | protobuf.BatchProto.RowBatch(this); |
165,173 | final DeleteTapeArchiveResult executeDeleteTapeArchive(DeleteTapeArchiveRequest deleteTapeArchiveRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTapeArchiveRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
591,602 | public int write(float[] buffer, int offset, int numSamples) {<NEW_LINE>if (numSamples > mData.length) {<NEW_LINE>throw new IllegalArgumentException("Tried to write more than maxSamples.");<NEW_LINE>}<NEW_LINE>if ((mCursor + numSamples) > mData.length) {<NEW_LINE>// Wraps so write in two parts.<NEW_LINE><MASK><NEW_LINE... | int numWrite1 = mData.length - mCursor; |
414,987 | public ListTemplatesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTemplatesResult listTemplatesResult = new ListTemplatesResult();<NEW_LINE>listTemplatesResult.setStatus(context.getHttpResponse().getStatusCode());<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCur... | int originalDepth = context.getCurrentDepth(); |
1,269,241 | public ScanningMode enter(CtElement element) {<NEW_LINE>final CtTypeReference<?> typeRef = (CtTypeReference<?>) element;<NEW_LINE><MASK><NEW_LINE>if (targetSuperTypes.contains(qName)) {<NEW_LINE>while (!currentSubTypes.isEmpty()) {<NEW_LINE>final CtTypeReference<?> currentTypeRef = currentSubTypes.pop();<NEW_LINE>Strin... | String qName = typeRef.getQualifiedName(); |
1,764,090 | public static ListProductByTagsResponse unmarshall(ListProductByTagsResponse listProductByTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProductByTagsResponse.setRequestId(_ctx.stringValue("ListProductByTagsResponse.RequestId"));<NEW_LINE>listProductByTagsResponse.setSuccess<MASK><NEW_LINE>listProductByTagsResp... | (_ctx.booleanValue("ListProductByTagsResponse.Success")); |
910,629 | private void runJITWatch() throws IOException {<NEW_LINE>JITWatchConfig config = logParser.getConfig();<NEW_LINE>List<String> sourceLocations = new ArrayList<>(config.getSourceLocations());<NEW_LINE>List<String> classLocations = new ArrayList<>(config.getConfiguredClassLocations());<NEW_LINE>String sandboxSourceDirStri... | String sandboxClassDirString = SANDBOX_CLASS_DIR.toString(); |
954,382 | public static Trades adaptBleutradeMarketHistory(List<BleutradeTrade> bleutradeTrades, CurrencyPair currencyPair) {<NEW_LINE>List<Trade> trades = new ArrayList<>();<NEW_LINE>for (BleutradeTrade bleutradeTrade : bleutradeTrades) {<NEW_LINE>Trade.Builder builder = new Trade.Builder();<NEW_LINE>builder.currencyPair(curren... | price(bleutradeTrade.getPrice()); |
1,161,730 | public void connect(IGenericType type, IType typeHandle, IType superclassHandle, IType[] superinterfaceHandles) {<NEW_LINE>if (typeHandle == null)<NEW_LINE>return;<NEW_LINE>if (TypeHierarchy.DEBUG) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.// $NON-NLS-1$<NEW_LINE>println("Connecting: " + ((JavaElement) typeHandle).... | this.hierarchy.addRootClass(typeHandle); |
503,183 | private PaymentMethodCreateParams extractPaymentMethodCreateParams(final ReadableMap options) {<NEW_LINE>ReadableMap cardParams = getMapOrNull(options, "card");<NEW_LINE>ReadableMap billingDetailsParams = getMapOrNull(options, "billingDetails");<NEW_LINE>ReadableMap metadataParams = getMapOrNull(options, "metadata");<N... | , metadataParams.getString(key)); |
1,583,731 | public boolean upload(Sketch data, Uploader uploader, String suggestedClassName, boolean usingProgrammer, boolean noUploadPort, List<String> warningsAccumulator) throws Exception {<NEW_LINE>if (uploader == null)<NEW_LINE>uploader = getUploaderByPreferences(noUploadPort);<NEW_LINE>boolean success = false;<NEW_LINE>if (u... | warningsAccumulator = new LinkedList<>(); |
1,849,836 | private DataSource createDataSource() {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>String message = String.format("Datasource[name=%s, Driver=%s] created,connection url:%s", name, dataSourceConfigure.getDriverClass(), dataSourceConfigure.getConnectionUrl());<NEW_LINE>PoolProperties poolProperties = poolPropertiesHelper.co... | long startTime = System.currentTimeMillis(); |
1,010,024 | private static void tryOperator(RegressionEnvironment env, RegressionPath path, AtomicInteger milestone, String operator, Object[][] testdata) {<NEW_LINE>env.compileDeploy("@name('s0') context EverySupportBean " + "select theString as c0,intPrimitive as c1,context.sb.p00 as c2 " + "from SupportBean(" + operator + ")", ... | ) testdata[i][1]; |
540,149 | protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) {<NEW_LINE>if (isStartEditingEvent(e, false)) {<NEW_LINE>// It is an action which is supposed to start cell editing, but it is not<NEW_LINE>// typing any character. Such actions are F2, Insert and Ctrl+T in the Gantt chart.<NE... | ), e, condition, pressed); |
1,204,485 | public void delete(OAtomicOperation atomicOperation) {<NEW_LINE>executeInsideComponentOperation(atomicOperation, operation -> {<NEW_LINE>final Lock lock = FILE_LOCK_MANAGER.acquireExclusiveLock(fileId);<NEW_LINE>try {<NEW_LINE>final long size = size();<NEW_LINE>if (size > 0) {<NEW_LINE>throw new NotEmptyComponentCanNot... | getPageOffset() + " can not be removed, because it is not empty. Its size is " + size); |
515,389 | private Map<String, ViewWidgetPosition> migrateWidgetPositions(Dashboard dashboard, Map<String, Set<String>> migratedWidgetIds, Set<ViewWidget> viewWidgets) {<NEW_LINE>return dashboard.widgetPositions().entrySet().stream().flatMap(entry -> {<NEW_LINE>final WidgetPosition widgetPosition = entry.getValue();<NEW_LINE>fina... | get(entry.getKey()); |
1,068,988 | private void handleMultiBlobRemove(HttpServletResponse response, InputStream is, BlobStore blobStore, String containerName) throws IOException, S3Exception {<NEW_LINE>DeleteMultipleObjectsRequest dmor = mapper.<MASK><NEW_LINE>if (dmor.objects == null) {<NEW_LINE>throw new S3Exception(S3ErrorCode.MALFORMED_X_M_L);<NEW_L... | readValue(is, DeleteMultipleObjectsRequest.class); |
166,140 | public String buildAddressString(final I_C_Location location, final boolean isLocalAddress, @Nullable final String bPartnerBlock, @Nullable final String userBlock) {<NEW_LINE>final CountryId countryId = CountryId.ofRepoId(location.getC_Country_ID());<NEW_LINE>final I_C_Country country = countriesRepo.getById(countryId)... | .startsWith("\\("), "Expected brackets or escaped brackets!"); |
1,561,456 | public final ZqlsContext zqls() throws RecognitionException {<NEW_LINE>ZqlsContext _localctx = new ZqlsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 0, RULE_zqls);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(98);<NEW_LINE>zql();<NEW_LINE>setState(103);<... | _la = _input.LA(1); |
78,390 | protected Object doNativeAOT(LLVMFunctionDescriptor descriptor, Object[] arguments, @Cached("createToNativeNodes()") LLVMNativeConvertNode[] toNative, @Cached("createFromNativeNode()") LLVMNativeConvertNode fromNative, @Cached("isPointerReturnType()") boolean isPointerReturnType, @CachedLibrary(limit = "1") SignatureLi... | getFunctionCode().getNativeFunction(resolve); |
239,267 | public void enterFileNameWithPathWhichExists() throws IOException {<NEW_LINE>ViewInteraction radioButton = onView(allOf(withId(R.id.radioNewFile), withText("Select new file"), withParent(withId(R.id.radioGroup)), isDisplayed()));<NEW_LINE>radioButton.perform(click());<NEW_LINE>ViewInteraction checkBox = onView(allOf(wi... | .perform(replaceText("B-dir/file-3.txt")); |
1,814,782 | private Mono<PagedResponse<RestorableDroppedSqlPoolInner>> listByWorkspaceSinglePageAsync(String resourceGroupName, String workspaceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,596,610 | public static boolean hasJsr330(Project project) {<NEW_LINE>SourceGroup[] sourceGroups = ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA);<NEW_LINE>if (sourceGroups.length == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean hasInject = false;<NEW_LINE>boolean hasQualifier ... | ClassPath.SOURCE, AnnotationUtil.INJECT_FQN); |
1,023,047 | protected void processPskSecretResult(PskSecretResult pskSecretResult) throws HandshakeException {<NEW_LINE>if (!pskRequestPending) {<NEW_LINE>throw new IllegalStateException("psk secret not pending!");<NEW_LINE>}<NEW_LINE>pskRequestPending = false;<NEW_LINE>try {<NEW_LINE>ensureUndestroyed();<NEW_LINE>DTLSSession sess... | SecretKey newPskSecret = pskSecretResult.getSecret(); |
758,159 | public boolean applyPFRules(Network network, List<PortForwardingRule> rules) throws ResourceUnavailableException {<NEW_LINE>if (!canHandle(network, Service.PortForwarding)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<NiciraNvpDeviceVO> devices = niciraNvpDao.listByPhysicalNetwork(network.getPhysicalNetworkId());<... | findByNetworkId(network.getId()); |
425,056 | private Map<String, DataSource> mergeEffectiveDataSources(final Map<String, DataSourceProperties> persistedDataSourcePropsMap, final Map<String, DataSource> localConfiguredDataSources) {<NEW_LINE>Map<String, DataSource> result = new LinkedHashMap<>(<MASK><NEW_LINE>for (Entry<String, DataSourceProperties> entry : persis... | persistedDataSourcePropsMap.size(), 1); |
992,238 | public static void main(String[] args) {<NEW_LINE>for (int i = 0; i < 1000; i++) {<NEW_LINE>int size = AssortedMethods.randomIntInRange(5, 20);<NEW_LINE>int[] array = getSortedArray(size);<NEW_LINE>int v2 = magicFast(array);<NEW_LINE>if (v2 == -1 && magicSlow(array) != -1) {<NEW_LINE>int v1 = magicSlow(array);<NEW_LINE... | + ", value " + array[v2]); |
1,851,098 | protected List<SendingMessage> splitEmail(EmailInfo info, @Nullable Integer attemptsCount, @Nullable Date deadline) {<NEW_LINE>List<SendingMessage> sendingMessageList = new ArrayList<>();<NEW_LINE>if (info.isSendInOneMessage()) {<NEW_LINE>if (StringUtils.isNotBlank(info.getAddresses())) {<NEW_LINE>SendingMessage sendin... | getAddresses().split("[,;]"); |
494,830 | protected void taskOperation(ForecastJobAction.Request request, JobTask task, ActionListener<ForecastJobAction.Response> listener) {<NEW_LINE>jobManager.getJob(task.getJobId(), ActionListener.wrap(job -> {<NEW_LINE>validate(job, request);<NEW_LINE>ForecastParams.Builder paramsBuilder = ForecastParams.builder();<NEW_LIN... | expiresIn(request.getExpiresIn()); |
180,400 | public void updateUI(int page) {<NEW_LINE>if (dc == null || viewPager == null || viewPager.getAdapter() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (page <= viewPager.getAdapter().getCount() - 1) {<NEW_LINE>viewPager.setCurrentItem(page, false);<NEW_LINE>}<NEW_LINE>Info info = OutlineHelper.getForamtingInfo(dc, ... | pagesCountIndicator.setText(info.chText); |
1,208,203 | public JobSummary 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>JobSummary jobSummary = new JobSummary();<NEW_LINE>reader.beginObject();<NEW_... | ().unmarshall(context)); |
1,176,182 | public CompletableFuture<Hover> hover(HoverParams params) {<NEW_LINE>// shortcut: if the projects are not yet initialized, return empty:<NEW_LINE>if (server.openedProjects().getNow(null) == null) {<NEW_LINE>return CompletableFuture.completedFuture(null);<NEW_LINE>}<NEW_LINE>String uri = params<MASK><NEW_LINE>FileObject... | .getTextDocument().getUri(); |
861,954 | public void toNewVersionForTableGroup(String tableName, boolean allowTwoVersion) {<NEW_LINE>boolean isPartDb = DbInfoManager.<MASK><NEW_LINE>GmsTableMetaManager gtm = (GmsTableMetaManager) OptimizerContext.getContext(schemaName).getLatestSchemaManager();<NEW_LINE>if (!isPartDb) {<NEW_LINE>tonewversion(tableName);<NEW_L... | getInstance().isNewPartitionDb(schemaName); |
546,869 | public Decision canAllocate(ShardRouting shardRouting, RoutingAllocation allocation) {<NEW_LINE>if (allocation.ignoreDisable()) {<NEW_LINE>return allocation.decision(Decision.YES, NAME, "explicitly ignoring any disabling of allocation due to manual allocation commands via the reroute API");<NEW_LINE>}<NEW_LINE>final In... | Decision.YES, NAME, "new primary allocations are allowed"); |
1,045,018 | private void loadNode36() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_EndpointConfiguration, new QualifiedName(0, "EndpointConfiguration"), new LocalizedText("en", "EndpointConfiguration"), LocalizedText.NULL_VA... | (1), 0.0, false); |
30,347 | // Process HeronDataTuple and insert it into cache<NEW_LINE>protected void copyDataOutBound(int sourceTaskId, boolean isLocalSpout, TopologyAPI.StreamId streamId, HeronTuples.HeronDataTuple tuple, List<Integer> outTasks) {<NEW_LINE>boolean firstIteration = true;<NEW_LINE>boolean isAnchored = tuple.getRootsCount() > 0;<... | outTask, streamId, tuple, isAnchored); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.