idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,595,268 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.eclipse.text.edits.TextEditVisitor#visit(org.eclipse.text.edits.<NEW_LINE>* CopyTargetEdit)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean visit(CopyTargetEdit edit) {<NEW_LINE>try {<NEW_LINE>if (edit.getSourceEdit() != null) {<NEW_LINE>org.eclipse.lsp4... | getSourceEdit().getSourceModifier()); |
1,648,587 | public static void main(String[] args) throws Exception {<NEW_LINE>// Process the command-line options<NEW_LINE>CommandOption.<MASK><NEW_LINE>CommandOption.process(Replacer.class, args);<NEW_LINE>NGramPreprocessor preprocessor = new NGramPreprocessor();<NEW_LINE>if (replacementFiles.value != null) {<NEW_LINE>for (Strin... | setSummary(Replacer.class, "Tool for modifying text with n-gram preprocessing"); |
644,623 | public synchronized DeviceInfo[] listDeviceInfos(DeviceInfo keys) throws ConfigurationException {<NEW_LINE>if (!configurationExists())<NEW_LINE>return new DeviceInfo[0];<NEW_LINE>ArrayList<DeviceInfo> results = new ArrayList<DeviceInfo>();<NEW_LINE>NamingEnumeration<SearchResult> ne = null;<NEW_LINE>try {<NEW_LINE>ne =... | "dicomInstitutionDepartmentName", "dicomPrimaryDeviceType", "dicomInstalled", "objectClass"); |
897,543 | private final void decodeModifiersForModuleRequires(StringBuffer buffer, int accessFlags) {<NEW_LINE>int[] checkBits = new int[] { <MASK><NEW_LINE>boolean firstModifier = true;<NEW_LINE>for (int i = 0, max = checkBits.length; i < max; i++) {<NEW_LINE>switch(checkBits[i]) {<NEW_LINE>case IModifierConstants.ACC_TRANSITIV... | IModifierConstants.ACC_TRANSITIVE, IModifierConstants.ACC_STATIC_PHASE }; |
981,499 | private static Fix finishFix(SuggestedFix baseFix, Type exceptionType, List<String> newAsserts, List<StatementTree> throwingStatements, VisitorState state) {<NEW_LINE>if (throwingStatements.isEmpty()) {<NEW_LINE>return baseFix;<NEW_LINE>}<NEW_LINE>SuggestedFix.Builder fix = SuggestedFix.builder().merge(baseFix);<NEW_LI... | .format("%s thrown = ", exceptionTypeName)); |
483,694 | final AssociateMemberToGroupResult executeAssociateMemberToGroup(AssociateMemberToGroupRequest associateMemberToGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateMemberToGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,076,579 | public void main() {<NEW_LINE>RVec4 color = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RFloat intensity = new RFloat("intensity");<NEW_LINE>RVec3 normal = (<MASK><NEW_LINE>RFloat power = new RFloat("power");<NEW_LINE>power.assign(0.0f);<NEW_LINE>intensity.assign(0.0f);<NEW_LINE>for (int i = 0; i < mLights.si... | RVec3) getGlobal(DefaultShaderVar.G_NORMAL); |
1,265,269 | public static List<Record> fromReader(DatagramReader reader, ConnectionIdGenerator cidGenerator, long receiveNanos) {<NEW_LINE>if (reader == null) {<NEW_LINE>throw new NullPointerException("Reader must not be null");<NEW_LINE>}<NEW_LINE>int datagramLength = reader.bitsLeft() / Byte.SIZE;<NEW_LINE>List<Record> records =... | length = reader.read(LENGTH_BITS); |
982,398 | private Set<TransferFile> prepareUpload(FileObject sources, FileObject[] filesToUpload, FileObject[] preselectedFiles, RemoteClient remoteClient) {<NEW_LINE>Set<TransferFile<MASK><NEW_LINE>ProgressHandle progressHandle = ProgressHandle.createHandle(NbBundle.getMessage(UploadCommand.class, "MSG_UploadingFiles", getProje... | > forUpload = Collections.emptySet(); |
685,859 | private void initMainPane() {<NEW_LINE>// Displays Quick Start pane initially and KeyStore tabbed pane when at<NEW_LINE>// least one KeyStore is open<NEW_LINE>jQuickStart = new JQuickStartPane(this);<NEW_LINE>jkstpKeyStores = new JKeyStoreTabbedPane(this);<NEW_LINE>int tabLayout = applicationSettings.getTabLayout();<NE... | , 3, 3, 3)); |
582,089 | private ContextMenu buildContextMenu() {<NEW_LINE>ArrayList<MenuItem> menuItems = new ArrayList<>();<NEW_LINE>menuItems.add(CategorizeAction.getCategoriesMenu(controller));<NEW_LINE>try {<NEW_LINE>menuItems.add(AddTagAction.getTagMenu(controller));<NEW_LINE>} catch (TskCoreException ex) {<NEW_LINE>logger.log(<MASK><NEW... | Level.SEVERE, "Error building tagging context menu.", ex); |
1,430,164 | private void handle(Message msg) {<NEW_LINE>setThreadLoggingContext(msg);<NEW_LINE>if (logger.isTraceEnabled() && wire.logMessage(msg)) {<NEW_LINE>logger.trace(String.format("[msg received]: %s", wire.dumpMessage(msg)));<NEW_LINE>}<NEW_LINE>if (msg instanceof MessageReply) {<NEW_LINE>beforeDeliverMessage(msg);<NEW_LINE... | r.getHeaderEntry(CloudBus.HEADER_CORRELATION_ID); |
752,194 | private static void initializeClasses() {<NEW_LINE>try {<NEW_LINE>Class.forName(CoroutineExitException.class.getName());<NEW_LINE>Class.forName(WispThreadWrapper.class.getName());<NEW_LINE>Class.forName(TaskDispatcher.class.getName());<NEW_LINE>Class.forName(StartShutdown.class.getName());<NEW_LINE>Class.forName(Corout... | ShutdownControlGroup.class.getName()); |
1,362,505 | private static void emitBackEnd(StructuredGraph graph, Object stub, ResolvedJavaMethod installedCodeOwner, SPIRVBackend backend, SPIRVCompilationResult compilationResult, CompilationResultBuilderFactory factory, RegisterConfig registerConfig, TornadoLIRSuites lirSuites, boolean isKernel, boolean isParallel) {<NEW_LINE>... | ? 0 : graph.getBytecodeSize(); |
1,657,136 | final DescribeAlarmsForMetricResult executeDescribeAlarmsForMetric(DescribeAlarmsForMetricRequest describeAlarmsForMetricRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAlarmsForMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
348,070 | private boolean checkClass(TypeElement element) {<NEW_LINE>if (element.getKind() != ElementKind.CLASS) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<Modifier> modifiers = element.getModifiers();<NEW_LINE>Element enclosing = element.getEnclosingElement();<NEW_LINE>if (!(enclosing instanceof PackageElement)) {<NEW_LIN... | = constructors.size() == 0; |
536,582 | private SecurityContext oauth2SecurityContext(Oauth2 oauth2) {<NEW_LINE>List<AuthorizationScope> scopes = new ArrayList<>();<NEW_LINE>List<AuthorizationScope<MASK><NEW_LINE>for (AuthorizationScope oauth2Scope : oauth2Scopes) {<NEW_LINE>scopes.add(new AuthorizationScope(oauth2Scope.getScope(), oauth2Scope.getDescription... | > oauth2Scopes = oauth2.getScopes(); |
28,682 | public void memcpy(DataBuffer dstBuffer, DataBuffer srcBuffer) {<NEW_LINE>val context = AtomicAllocator.getInstance().getDeviceContext();<NEW_LINE>if (dstBuffer instanceof CompressedDataBuffer && !(srcBuffer instanceof CompressedDataBuffer)) {<NEW_LINE>// destination is compressed, source isn't<NEW_LINE>AllocationPoint... | ).memcpy(dstBuffer, srcBuffer); |
424,832 | default <T2, R1, R2, R3, R> MonadicValue<R> forEach4(final Function<? super T, ? extends MonadicValue<R1>> value1, final BiFunction<? super T, ? super R1, ? extends MonadicValue<R2>> value2, final Function3<? super T, ? super R1, ? super R2, ? extends MonadicValue<R3>> value3, final Function4<? super T, ? super R1, ? s... | apply(in, ina, inb); |
546,314 | private void generateVBO(ChunkMesh.RenderType type) {<NEW_LINE>VertexElements elements = vertexElements[type.ordinal()];<NEW_LINE>int id = type.getIndex();<NEW_LINE>if (!disposed && elements.buffer.elements() > 0) {<NEW_LINE>vertexBuffers[id] = GL30.glGenBuffers();<NEW_LINE>idxBuffers[id] = GL30.glGenBuffers();<NEW_LIN... | , buffer, GL30.GL_STATIC_DRAW)); |
1,053,826 | private void applyBrand() {<NEW_LINE>if (switchView != null) {<NEW_LINE>final int finalMainColor = getSecondaryForegroundColorDependingOnTheme(getContext(), mainColor);<NEW_LINE>// int trackColor = Color.argb(77, Color.red(finalMainColor), Color.green(finalMainColor), Color.blue(finalMainColor));<NEW_LINE>DrawableCompa... | .color.fg_default_low) })); |
1,406,571 | private Mono<PagedResponse<ContainerAppInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Param... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
273,461 | protected Optional<PlanNode> pushDownProjectOff(Context context, ValuesNode valuesNode, Set<Symbol> referencedOutputs) {<NEW_LINE>// no symbols to prune<NEW_LINE>if (valuesNode.getOutputSymbols().isEmpty()) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>List<Symbol> newOutputs = filteredCopy(valuesNode.getOutp... | > rowsBuilder = ImmutableList.builder(); |
187,356 | public void addEntries(@Nonnull ItemStack itemstack, @Nonnull List<String> list, @Nullable String withGrindingMultiplier) {<NEW_LINE>IGrindingMultiplier ball = SagMillRecipeManager.getInstance().getGrindballFromStack(itemstack);<NEW_LINE>list.add(Lang.GRINDING_BALL_1.get(TextFormatting.BLUE));<NEW_LINE>if (withGrinding... | ball.getPowerMultiplier()))); |
502,304 | private final void _restoreStatePersistentlyLocked(AbstractItemLink link, LinkOwner stream, long lockID) throws SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "_restoreStatePersistentlyLocked", new Object[] { link, stream, Long.valu... | exit(this, tc, "_restoreStatePersistentlyLocked"); |
33,708 | public void showToolbar(boolean showToolbar) {<NEW_LINE>toolbarVisible_ = showToolbar;<NEW_LINE>outerPanel_.clear();<NEW_LINE>if (showToolbar) {<NEW_LINE>if (!hostedMode_) {<NEW_LINE>logoAnchor_.getElement().removeAllChildren();<NEW_LINE>logoAnchor_.getElement().appendChild(logoLarge_.getElement());<NEW_LINE>outerPanel... | overlay_.setGlobalToolbarVisible(this, showToolbar); |
864,808 | public void execute() throws BuildException {<NEW_LINE>try {<NEW_LINE>run();<NEW_LINE>log("OUTPUT: " + supersFile, Project.MSG_INFO);<NEW_LINE>log("OUTPUT: " + suspendablesFile, Project.MSG_INFO);<NEW_LINE>// output results<NEW_LINE>final ArrayList<String> suspendables = suspendablesFile != null ? new ArrayList<String>... | ArrayList<String>() : null; |
1,408,835 | public static List<ErrorDescription> systemArrayCopy(HintContext ctx) {<NEW_LINE>List<ErrorDescription> result = new LinkedList<ErrorDescription>();<NEW_LINE>for (String objName : Arrays.asList("$src", "$dest")) {<NEW_LINE>TreePath obj = ctx.getVariables().get(objName);<NEW_LINE>TypeMirror type = ctx.getInfo().getTrees... | getVariables().get(countName); |
1,694,119 | private static void formatInlineCodeTag(StringBuilder builder, DetailNode inlineTag) throws CheckstyleException {<NEW_LINE>boolean wrapWithCodeTag = false;<NEW_LINE>for (DetailNode node : inlineTag.getChildren()) {<NEW_LINE>switch(node.getType()) {<NEW_LINE>case JavadocTokenTypes.CODE_LITERAL:<NEW_LINE>wrapWithCodeTag ... | append(node.getText()); |
556,143 | public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Rbac.RoleBinding other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1alpha1Rbac.RoleBinding.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (subjectsBuilder_ == null) {<NEW_LINE>if ... | mergeMetadata(other.getMetadata()); |
185,721 | private void processAddByHostname(final List<String> requestedHostnames, List<JSONObject> foundHosts, boolean allowOneTimeHosts) {<NEW_LINE>List<String> oneTimeHostnames = findOneTimeHosts(requestedHostnames, foundHosts);<NEW_LINE>if (!allowOneTimeHosts && !oneTimeHostnames.isEmpty()) {<NEW_LINE>NotifyManager.getInstan... | .joinStrings(", ", oneTimeHostnames)); |
1,724,575 | public void read(org.apache.thrift.protocol.TProtocol prot, getTabletStats_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(2);<NEW_LINE>if (incoming.get... | thrift.protocol.TType.STRUCT); |
167,496 | protected void execute(Terminal terminal, OptionSet options, Environment env) throws Exception {<NEW_LINE>terminal.println(Verbosity.VERBOSE, "Running with configuration path: " + env.configFile());<NEW_LINE>setupOptions(terminal, options, env);<NEW_LINE>checkElasticKeystorePasswordValid(terminal, env);<NEW_LINE>checkC... | , user, password), terminal); |
1,576,465 | private boolean isNewBinary() {<NEW_LINE>String versionCode = "";<NEW_LINE>String versionName = "";<NEW_LINE>SharedPreferences prefs = getContext().getSharedPreferences(com.getcapacitor.plugin.WebView.WEBVIEW_PREFS_NAME, Activity.MODE_PRIVATE);<NEW_LINE>String lastVersionCode = prefs.getString(LAST_BINARY_VERSION_CODE,... | Logger.error("Unable to get package info", ex); |
603,842 | public void marshall(CopyPackageVersionsRequest copyPackageVersionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (copyPackageVersionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(copyPa... | e.getMessage(), e); |
1,104,201 | private String browseQueueDetails(Queue queue, SampleResult res) {<NEW_LINE>String queueName = null;<NEW_LINE>try {<NEW_LINE>queueName = queue.getQueueName();<NEW_LINE>StringBuilder messageBodies = new StringBuilder(150);<NEW_LINE>messageBodies.append("==== Browsing Messages ===\n");<NEW_LINE>// get some queue details<... | (TextMessage) e.nextElement(); |
1,715,582 | private void generateUnionMemberAccessors(JDefinedClass unionClass, UnionTemplateSpec.Member member, JClass memberClass, JClass dataClass, JVar schemaField, JVar memberVar) {<NEW_LINE>final DataSchema memberType = member.getSchema();<NEW_LINE>final String memberKey = member.getUnionMemberKey();<NEW_LINE>final String ca... | JMod.PUBLIC, memberClass, getterName); |
127,068 | public void testDSOverride008() throws Throwable {<NEW_LINE>final long id = atomicID.incrementAndGet();<NEW_LINE>System.out.println("Start executing DSOverrideTestServlet.testDSOverride008");<NEW_LINE>try {<NEW_LINE>// Create a new Entity using the persistence unit's default datasource<NEW_LINE>DSOverrideEntity newEnti... | System.out.println("End executing DSOverrideTestServlet.testDSOverride008"); |
1,542,744 | static boolean isExternalViewConverged(String tableNameWithType, Map<String, Map<String, String>> externalViewSegmentStates, Map<String, Map<String, String>> idealStateSegmentStates, boolean bestEfforts) {<NEW_LINE>for (Map.Entry<String, Map<String, String>> entry : idealStateSegmentStates.entrySet()) {<NEW_LINE>String... | externalViewInstanceState = externalViewInstanceStateMap.get(instanceName); |
457,991 | private void fixSyncForDifferingDataTypes() {<NEW_LINE>boolean fixedSync = false;<NEW_LINE>List<DataType> dataTypes = dataTypeManager.getDataTypes(sourceArchive);<NEW_LINE>for (DataType dataType : dataTypes) {<NEW_LINE>DataTypeSyncInfo dataTypeSyncInfo = new DataTypeSyncInfo(dataType, sourceDTM);<NEW_LINE>DataType sour... | sourceDataType.getPathName() + "' and is being changed to not be in-sync!"); |
702,570 | public void passive(final Supplier<Context> context, final PassiveHandler<Config> handler, final Config config) {<NEW_LINE>if (config instanceof EtcdPassiveConfig) {<NEW_LINE>EtcdPassiveConfig etcdPassiveConfig = (EtcdPassiveConfig) config;<NEW_LINE>String value = etcdPassiveConfig.getValue();<NEW_LINE>if (StringUtils.... | , x.getValue(t)); |
1,328,615 | public static Saml20Token createSamlTokenFromAssertion(Assertion assertion) throws Exception {<NEW_LINE>Saml20Token token = null;<NEW_LINE>SsoService saml20Service = getCommonSsoService(SsoService.TYPE_SAML20);<NEW_LINE>if (saml20Service != null) {<NEW_LINE>Map<String, Object> requestContext = new HashMap<String, Objec... | tc, "Can not find SAML20 SsoService=" + SsoService.TYPE_SAML20); |
1,795,819 | public void init(DataBlock<LabeledData> dataSet) throws IOException {<NEW_LINE>numRow = dataSet.size();<NEW_LINE>numCol = param.numFeature;<NEW_LINE>numNonzero = param.numNonzero;<NEW_LINE>instances = new IntFloatVector[numRow];<NEW_LINE>labels = new float[numRow];<NEW_LINE>preds = new float[numRow];<NEW_LINE>weights =... | setAll(minFeatures, i -> 0.0f); |
557,300 | public static GetVideoListResponse unmarshall(GetVideoListResponse getVideoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getVideoListResponse.setRequestId(_ctx.stringValue("GetVideoListResponse.RequestId"));<NEW_LINE>getVideoListResponse.setTotal(_ctx.integerValue("GetVideoListResponse.Total"));<NEW_LINE>List<Vide... | ("GetVideoListResponse.VideoList[" + i + "].CreationTime")); |
479,490 | private static int findAttributePage(int fileId, @Nonnull FileAttribute attr, boolean toWrite) throws IOException {<NEW_LINE>checkFileIsValid(fileId);<NEW_LINE>int recordId = getAttributeRecordId(fileId);<NEW_LINE>int encodedAttrId = DbConnection.getAttributeId(attr.getId());<NEW_LINE>boolean directoryRecord = false;<N... | attrAddressOrSize = DataInputOutputUtil.readINT(attrRefs); |
686,282 | private void normalizeCollectionParameters(Map<String, String[]> queryParameters) {<NEW_LINE>class OrderValue {<NEW_LINE><NEW_LINE>int index;<NEW_LINE><NEW_LINE>String value;<NEW_LINE><NEW_LINE>public OrderValue(int index, String value) {<NEW_LINE>this.index = index;<NEW_LINE>this.value = value;<NEW_LINE>}<NEW_LINE>}<N... | ] vals = ie.getValue(); |
818,047 | private static RelationshipGroupRecord readRelationshipGroupRecord(long id, ReadableChannel channel) throws IOException {<NEW_LINE>byte flags = channel.get();<NEW_LINE>boolean inUse = bitFlag(flags, Record.IN_USE.byteValue());<NEW_LINE>boolean requireSecondaryUnit = <MASK><NEW_LINE>boolean hasSecondaryUnit = bitFlag(fl... | bitFlag(flags, Record.REQUIRE_SECONDARY_UNIT); |
842,535 | public void close(HippyMap param) {<NEW_LINE>if (param == null) {<NEW_LINE>LogUtils.d(TAG, "close: ERROR: request is null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!param.containsKey(PARAM_KEY_SOCKET_ID)) {<NEW_LINE>LogUtils.d(TAG, "close: ERROR: no socket id specified");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int sock... | reason == null ? "" : reason); |
994,857 | final PutInsightRuleResult executePutInsightRule(PutInsightRuleRequest putInsightRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putInsightRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,395,281 | public void deserialize(InLongMsgMixedSerializedRecord inLongMsgRecord, Collector<Record> collector) throws Exception {<NEW_LINE>preDeserializer.flatMap(inLongMsgRecord.getData(), new CallbackCollector<>(mixedRow -> {<NEW_LINE>final String tid = InLongMsgUtils.getTidFromMixedRow(mixedRow);<NEW_LINE>final Set<Long> data... | deserializer = deserializers.get(tid); |
665,253 | public void log(LogRecord record) {<NEW_LINE>Level level = record.getLevel();<NEW_LINE>if (level.intValue() >= Level.SEVERE.intValue()) {<NEW_LINE>if (slf4jLogger.isErrorEnabled()) {<NEW_LINE>slf4jLogger.error(getMessage(record<MASK><NEW_LINE>}<NEW_LINE>} else if (level.intValue() >= Level.WARNING.intValue()) {<NEW_LIN... | ), record.getThrown()); |
427,711 | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>ModelAndView model = new ModelAndView();<NEW_LINE>PageDTO page = (PageDTO) request.getAttribute(PageHandlerMapping.PAGE_ATTRIBUTE_NAME);<NEW_LINE>assert page != null;<NEW_LINE>model.addObject(MODEL_AT... | model.addObject("BLC_PAGE_TYPE", "page"); |
775,719 | public IRubyObject call(ThreadContext context, IRubyObject[] largs, Block blk) {<NEW_LINE>IRubyObject value;<NEW_LINE>if (largs.length == 0) {<NEW_LINE>value = context.nil;<NEW_LINE>} else if (largs.length == 1) {<NEW_LINE>value = largs[0];<NEW_LINE>} else {<NEW_LINE>value = RubyArray.newArrayNoCopy(context.runtime, la... | context.runtime.getBignum()); |
1,631,259 | final CreateAgentResult executeCreateAgent(CreateAgentRequest createAgentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAgentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateAgentRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,489,969 | protected void encodeDropDown(FacesContext context, AutoComplete ac) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String dropdownClass = AutoComplete.DROPDOWN_CLASS;<NEW_LINE>boolean disabled = ac.isDisabled() || ac.isReadonly();<NEW_LINE>if (disabled) {<NEW_LINE>dropdownC... | ac.getDropdownAriaLabel(), null); |
1,448,738 | public void updateFilters() {<NEW_LINE>updateList(R.id.domainlist, SettingValues.domainFilters, SettingValues.domainFilters::remove);<NEW_LINE>updateList(R.id.subredditlist, SettingValues.subredditFilters, SettingValues.subredditFilters::remove);<NEW_LINE>updateList(R.id.userlist, SettingValues.userFilters, SettingValu... | length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); |
460,240 | public static ArrayList<IntegerGeoPoint> integerGeoPoints(String locationName, int limit) throws LocationNotFoundException, ClientProtocolException, IOException, URISyntaxException {<NEW_LINE>ArrayList<IntegerGeoPoint> ret = new ArrayList<>();<NEW_LINE>String rawJson = NominatimService.getRawJsonResponse(NominatimServi... | JSONArray places = new JSONArray(rawJson); |
1,428,329 | public ValueInstantiator constructValueInstantiator(DeserializationContext ctxt) throws JsonMappingException {<NEW_LINE>final DeserializationConfig config = ctxt.getConfig();<NEW_LINE>final JavaType delegateType = _computeDelegateType(ctxt, _creators[C_DELEGATE], _delegateArgs);<NEW_LINE>final JavaType arrayDelegateTyp... | , _creators[C_ARRAY_DELEGATE], _arrayDelegateArgs); |
1,595,369 | protected void loadLookup(TokenList component, Element element) {<NEW_LINE>Element lookupElement = element.element("lookup");<NEW_LINE>if (lookupElement == null) {<NEW_LINE>throw new GuiDevelopmentException("'tokenList' must contain 'lookup' element", context, "TokenList ID", element.attributeValue("id"));<NEW_LINE>}<N... | lookupScreen = lookupElement.attributeValue("lookupScreen"); |
317,357 | public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>readCommonProcessorOptions();<NEW_LINE>readOptionCrashWhenMethodIsNotPackageProtected();<NEW_LINE><MASK><NEW_LINE>mapTypeElementToMethodInjectorTargetList = new LinkedHashMap<>();<NEW_LINE>mapTypeElementToSuperTypeEleme... | mapTypeElementToFieldInjectorTargetList = new LinkedHashMap<>(); |
1,019,873 | private WebResponse makeWebResponseForFileUrl(final WebRequest webRequest) throws IOException {<NEW_LINE>URL cleanUrl = webRequest.getUrl();<NEW_LINE>if (cleanUrl.getQuery() != null) {<NEW_LINE>// Get rid of the query portion before trying to load the file.<NEW_LINE>cleanUrl = UrlUtils.getUrlWithNewQuery(cleanUrl, null... | (HttpHeader.CONTENT_TYPE, contentType)); |
1,169,010 | public static void logCurrentDeploymentStatus(Deployment deployment, String namespaceName) {<NEW_LINE>if (deployment != null) {<NEW_LINE>String kind = deployment.getKind();<NEW_LINE>String name = deployment<MASK><NEW_LINE>List<String> log = new ArrayList<>(asList("\n", kind, " status:\n", "\nConditions:\n"));<NEW_LINE>... | .getMetadata().getName(); |
765,468 | private RowExpression toRowExpression(Subfield subfield, List<Type> types) {<NEW_LINE>List<Subfield.PathElement> path = subfield.getPath();<NEW_LINE>if (path.isEmpty()) {<NEW_LINE>return new VariableReferenceExpression(Optional.empty(), subfield.getRootName(), types.get(0));<NEW_LINE>}<NEW_LINE>RowExpression base = toR... | verify(false, "Unexpected path element: " + pathElement); |
1,736,257 | private static void trySelectWhereJoined4CoercionBack(RegressionEnvironment env, AtomicInteger milestone, String stmtText) {<NEW_LINE>env.compileDeployAddListenerMile(stmtText, "s0", milestone.getAndIncrement());<NEW_LINE>// intPrimitive, intBoxed, longBoxed, doubleBoxed<NEW_LINE>sendBean(env, "A", 1, 10, 200, 3000);<N... | 2, 0, 0, 201); |
95,669 | private Object decodeV2(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {<NEW_LINE>buffer.resetReaderIndex();<NEW_LINE>if (buffer.readableBytes() < 21) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>buffer.skipBytes(2);<NEW_LINE>boolean isRequest = isV2Request(buffer.readByte());<NEW_LIN... | int metasize = buffer.readInt(); |
834,541 | public ListenableCompletableFuture<PaymentProtocol.Ack> sendPayment(List<Transaction> txns, @Nullable Address refundAddr, @Nullable String memo) {<NEW_LINE>Protos.Payment payment = null;<NEW_LINE>try {<NEW_LINE>payment = getPayment(txns, refundAddr, memo);<NEW_LINE>} catch (IOException | PaymentProtocolException.Invali... | (sendPayment(url, payment)); |
213,344 | public void showError(String title, String message, Throwable ex) {<NEW_LINE>final Alert alert = new Alert(Alert.AlertType.ERROR);<NEW_LINE>final Scene scene = alert.getDialogPane().getScene();<NEW_LINE>BrandUtil.applyBrand(injector, stage, scene);<NEW_LINE>alert.setHeaderText(title);<NEW_LINE>alert.setContentText(mess... | final GridPane expContent = new GridPane(); |
12,703 | private static <T extends FunctionSignature> String formatAvailableSignatures(final T function) {<NEW_LINE>final boolean variadicFunction = function.isVariadic();<NEW_LINE>final List<ParameterInfo> parameters = function.parameterInfo();<NEW_LINE>final StringBuilder result = new StringBuilder();<NEW_LINE>result.append(f... | ))).append("("); |
513,965 | private void newLine(MRequisitionLine requisitionLine) throws Exception {<NEW_LINE>if (purcaseOrderLine != null) {<NEW_LINE>purcaseOrderLine.saveEx();<NEW_LINE>}<NEW_LINE>purcaseOrderLine = null;<NEW_LINE>MProduct product = MProduct.get(getCtx(), requisitionLine.getM_Product_ID());<NEW_LINE>// Get Business Partner<NEW_... | setDatePromised(requisitionLine.getDateRequired()); |
1,329,708 | public static final String encode(String message) {<NEW_LINE>boolean encoded = false;<NEW_LINE>StringBuffer buf = new StringBuffer(message.length() + 32);<NEW_LINE>for (int i = 0; i < message.length(); i++) {<NEW_LINE>char c = message.charAt(i);<NEW_LINE>switch(c) {<NEW_LINE>case '\\':<NEW_LINE>case '\'':<NEW_LINE>buf.... | (Integer.toHexString(c)); |
107,253 | public String buildJson(String type, List<String> descriptions, Response.Status status, GrobidExceptionStatus grobidExceptionStatus, String requestUri) {<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>ObjectNode root = mapper.createObjectNode();<NEW_LINE>root.put("type", type);<NEW_LINE>root.put("descripti... | root.put("correlationId", correlationId); |
1,776,531 | public static boolean saveProfilerConfig(final Project project, final String profileTarget, final String profileSingleTarget) {<NEW_LINE>// not yet modified for profiler => create profiler-build-impl & modify build.xml and project.xml<NEW_LINE>final // NOI18N<NEW_LINE>Element // NOI18N<NEW_LINE>profilerFragment = // NO... | profilerFragment.setAttribute(PROFILE_SINGLE_TARGET_ATTRIBUTE, profileSingleTarget); |
1,576,555 | private CommitableFieldPanel createOutputPathPanel(String title, ContentFolderTypeProvider provider, Disposable parentUIDisposable, Consumer<String> commitPathRunnable) {<NEW_LINE>FileChooserTextBoxBuilder builder = FileChooserTextBoxBuilder.create(myProject);<NEW_LINE>builder.dialogTitle(title);<NEW_LINE>builder.<MASK... | fileChooserDescriptor(FileChooserDescriptorFactory.createSingleFolderDescriptor()); |
916,184 | private static EventLine parseEventLine(String line, CalDavEvent event, String defaultItemOnBegin) {<NEW_LINE>final Matcher <MASK><NEW_LINE>if (matcher.matches()) {<NEW_LINE>final String scope = matcher.group(1);<NEW_LINE>final String itemName = matcher.group(3);<NEW_LINE>final String stateString = matcher.group(4);<NE... | matcher = LINE_PATTERN.matcher(line); |
564,435 | public static void init() {<NEW_LINE>// register farmland texture<NEW_LINE>ClocheRecipe.registerSoilTexture(Ingredient.of(new ItemStack(Items.DIRT), new ItemStack(Items.COARSE_DIRT), new ItemStack(Items.GRASS_BLOCK), new ItemStack(Items.GRASS_PATH)), new ResourceLocation("block/farmland_moist"));<NEW_LINE>// register d... | put("generic", RenderFunctionGeneric::new); |
1,755,804 | public void configure(Context context) {<NEW_LINE>this.context = context;<NEW_LINE>port = context.getInteger(ConfigConstants.CONFIG_PORT);<NEW_LINE>host = context.<MASK><NEW_LINE>Configurables.ensureRequiredNonNull(context, ConfigConstants.CONFIG_PORT);<NEW_LINE>Preconditions.checkArgument(ConfStringUtils.isValidIp(hos... | getString(ConfigConstants.CONFIG_HOST, "0.0.0.0"); |
474,208 | final DescribePageResult executeDescribePage(DescribePageRequest describePageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DescribePageRequest> ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
867,284 | public void init() {<NEW_LINE>// Cache color palette<NEW_LINE>try (InputStream stream = client.getResourceManager().getResource(paletteIdentifier).getInputStream()) {<NEW_LINE><MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>paletteAsBufferedImage = null;<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>TextRenderer... | paletteAsBufferedImage = ImageIO.read(stream); |
27,049 | final EnableOrganizationAdminAccountResult executeEnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableOrganizationAdminAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | endClientExecution(awsRequestMetrics, request, response); |
221,762 | private void findFieldsAndMethodsFromFavorites(char[] token, Scope scope, InvocationSite invocationSite, Scope invocationScope, ObjectVector localsFound, ObjectVector fieldsFound, ObjectVector methodsFound) {<NEW_LINE>ObjectVector methodsFoundFromFavorites = new ObjectVector();<NEW_LINE>ImportBinding[] favoriteBindings... | methodBinding = (MethodBinding) favoriteBinding.resolvedImport; |
587,959 | private void downloadRecordingImageToLocal(LocalDockerManager dockMng) {<NEW_LINE>log.info("Recording module required: Downloading openvidu/openvidu-recording:" + openviduConfig.getOpenViduRecordingVersion() + " Docker image (350MB aprox)");<NEW_LINE>if (dockMng.dockerImageExistsLocally(openviduConfig.getOpenviduRecord... | System.out.print("."); |
1,443,378 | private void processFields(CtClass clazz) throws CannotCompileException, NotFoundException {<NEW_LINE>CtField[<MASK><NEW_LINE>for (int i = 0; i < fs.length; ++i) {<NEW_LINE>CtField f = fs[i];<NEW_LINE>int mod = f.getModifiers();<NEW_LINE>if ((mod & Modifier.PUBLIC) != 0 && (mod & Modifier.FINAL) == 0) {<NEW_LINE>mod |=... | ] fs = clazz.getDeclaredFields(); |
1,452,336 | private ServerPlugin load(File pluginFile) {<NEW_LINE>LogManager.LOGGER.info("Loading plugin file " + pluginFile.getName());<NEW_LINE>ZipFile zipFile = null;<NEW_LINE>try {<NEW_LINE>// Get the plugin config file from the archive<NEW_LINE>zipFile = new ZipFile(pluginFile);<NEW_LINE>ZipEntry configEntry = zipFile.getEntr... | (pluginConfig.getProperty("version")); |
1,671,184 | public Object[] prepareArgs(RootCallTarget callTarget, ParserContext parserContext, DeclarationContext declarationContext, MaterializedFrame parentFrame, Object self, LexicalScope lexicalScope, Object[] arguments) {<NEW_LINE>final RubyRootNode rootNode = RubyRootNode.of(callTarget);<NEW_LINE>final InternalMethod parent... | SharedMethodInfo sharedMethodInfo = rootNode.getSharedMethodInfo(); |
1,329,913 | final GetDomainResult executeGetDomain(GetDomainRequest getDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
13,427 | private String processTargetTypeCreation(final CreateUpdateTargetTypeDetailsRequest targetTypeRequest, final String userId) throws PacManException {<NEW_LINE>String targetName = targetTypeRequest.getName().toLowerCase().trim().replaceAll(" ", "-");<NEW_LINE>targetTypeRequest.setName(targetName);<NEW_LINE>boolean isTarg... | setTargetDesc(targetTypeRequest.getDesc()); |
146,481 | private Observable<Observable<MantisServerSentEvent>> sinksToObservable(final Observable<SinkClient<MantisServerSentEvent>> sinkClients) {<NEW_LINE>final ConditionalRetry retryObject = new ConditionalRetry(null, "SinkClient_" + builder.name);<NEW_LINE>return sinkClients.switchMap((SinkClient<MantisServerSentEvent> serv... | "Error getting sink Observable: " + throwable.getMessage()); |
886,050 | public void execute(String[] args) throws Exception {<NEW_LINE>LinkedList<String> aa = new LinkedList<String>(Arrays.asList(args));<NEW_LINE>final List<MP4Edit> commands = new LinkedList<MP4Edit>();<NEW_LINE>while (aa.size() > 0) {<NEW_LINE>int i;<NEW_LINE>for (i = 0; i < factories.length; i++) {<NEW_LINE>if (aa.get(0)... | input, new CompoundMP4Edit(commands)); |
735,750 | private Mono<PagedResponse<JitNetworkAccessPolicyInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
304,546 | public Collection<Identifier> findResources(ResourceType type, String namespace, String path, int depth, Predicate<String> predicate) {<NEW_LINE>if (!namespaces.getOrDefault(type, Collections.emptySet()).contains(namespace)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<Identifier> ids = new Array... | , separator)).normalize(); |
66,203 | private void addProgressListener(ProgressMode mode, int direction, ProgressListener listener) {<NEW_LINE>checkProgressListenerArguments(mode, listener);<NEW_LINE>boolean isStreaming = (mode == ProgressMode.INDEFINITELY);<NEW_LINE>long listenerId = progressListenerId.incrementAndGet();<NEW_LINE>// A listener might be tr... | ), listenerId, direction, isStreaming); |
160,949 | public Request<ListMetricsRequest> marshall(ListMetricsRequest listMetricsRequest) {<NEW_LINE>if (listMetricsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListMetricsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListMetricsRequest> request = new DefaultRequest<ListMetricsReq... | > dimensions = listMetricsRequest.getDimensions(); |
1,150,297 | public void onInstanceConfigChange(List<InstanceConfig> instanceConfigs, NotificationContext context) {<NEW_LINE>logger.info("Instance config change notification received with instanceConfigs: {}", instanceConfigs);<NEW_LINE>Set<CloudDataNode> newVcrNodes = new HashSet<>();<NEW_LINE>ConcurrentHashMap<String, CloudDataN... | newInstanceNameToCloudDataNode = new ConcurrentHashMap<>(); |
394,111 | final TestFunctionResult executeTestFunction(TestFunctionRequest testFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,339,528 | protected void addHighlights(@Nonnull Map<TextRange, TextAttributes> ranges, @Nonnull Editor editor, @Nonnull Collection<RangeHighlighter> highlighters, @Nonnull HighlightManager highlightManager) {<NEW_LINE>final TextAttributes attributes = EditorColorsManager.getInstance().getGlobalScheme().getAttributes(EditorColors... | = getExprMarker().getStartOffset(); |
435,180 | public static Map<String, List<SSLCertificateVH>> fetchACMCertficateInfo(BasicSessionCredentials temporaryCredentials, String skipRegions, String account, String accountName) {<NEW_LINE>log.info("ACM cert method Entry");<NEW_LINE>Map<String, List<SSLCertificateVH>> sslVH = new LinkedHashMap<>();<NEW_LINE>List<Certifica... | describeCertificateResult = awsCertifcateManagerClient.describeCertificate(describeCertificateRequest); |
402,170 | public void gbmv(char order, char TransA, int KL, int KU, double alpha, INDArray A, INDArray X, double beta, INDArray Y) {<NEW_LINE>if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)<NEW_LINE>OpProfiler.getInstance().processBlasCall(<MASK><NEW_LINE>if (A.data().dataType() == DataType.DOUBL... | false, A, X, Y); |
345,467 | private static Map<TaggedWord, List<String>> loadMapping(InputStream inputStream, Set<String> outTags) throws IOException {<NEW_LINE>Map<String, String> internedStrings = new HashMap<>();<NEW_LINE>Map<TaggedWord, List<String>> mapping = new HashMap<>();<NEW_LINE>Map<String, String> interned = new HashMap<>();<NEW_LINE>... | parts = line.split(separator); |
555,653 | public static ListApplicationsResponse unmarshall(ListApplicationsResponse listApplicationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApplicationsResponse.setRequestId(_ctx.stringValue("ListApplicationsResponse.RequestId"));<NEW_LINE>listApplicationsResponse.setMessage(_ctx.stringValue("ListApplicationsResponse... | (_ctx.integerValue("ListApplicationsResponse.TotalSize")); |
195,348 | public boolean reactivateTask(SingularityTaskId taskId, ExtendedTaskState taskState, SingularityTaskStatusHolder newUpdate, Optional<String> statusMessage, Optional<String> statusReason) {<NEW_LINE>if (!leaderCache.active()) {<NEW_LINE>LOG.error("reactivateTask can only be called on the leading Singularity instance");<... | LOG.error("No valid previous task state to return to for task {}", taskId); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.