idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,753,855 | protected void processControllerKeyData(String commandType) {<NEW_LINE>switch(commandType) {<NEW_LINE>case Constants.CMD_DRIVE:<NEW_LINE>handleDriveCommand();<NEW_LINE>break;<NEW_LINE>case Constants.CMD_INDICATOR_LEFT:<NEW_LINE>toggleIndicator(Enums.VehicleIndicator.LEFT.getValue());<NEW_LINE>break;<NEW_LINE>case Const... | preferencesManager.getSpeedMode()))); |
1,604,554 | public static ValueSetAutocompleteOptions validateAndParseOptions(DaoConfig theDaoConfig, IPrimitiveType<String> theContext, IPrimitiveType<String> theFilter, IPrimitiveType<Integer> theCount, IIdType theId, IPrimitiveType<String> theUrl, IBaseResource theValueSet) {<NEW_LINE>boolean haveId = theId != null && theId.has... | isNotBlank(theUrl.getValue()); |
226,970 | private Mono<PagedResponse<ConfigurationProfileInner>> listChildResourcesSinglePageAsync(String configurationProfileName, String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require... | error(new IllegalArgumentException("Parameter configurationProfileName is required and cannot be null.")); |
508,422 | public String updateResourceContent(String repositoryUrl, String commitMessage, String commitComment, ResourceContent content) throws SourceConnectorException {<NEW_LINE>try {<NEW_LINE>String b64Content = Base64.encodeBase64String(content.getContent().getBytes(StandardCharsets.UTF_8));<NEW_LINE>GitHubResource resource ... | throw new SourceConnectorException("Error updating Github resource content.", e); |
29,620 | public void testStatefulPassivationMixServlet_test23() throws Exception {<NEW_LINE>StatefulCLInterceptorLocal localBean = null;<NEW_LINE>StatefulCLInterceptorRemote bean = null;<NEW_LINE>// Create an instance of the bean by looking up the business interface<NEW_LINE>// and insure the bean contains the default state.<NE... | lookupDefaultBindingEJBJavaApp(StatefulCLInterceptorLocal, Module, StatefulNonSerCL2InterceptorBean); |
618,535 | @SaCheckPermission("wx.conf.menu")<NEW_LINE>public Object sort(@Param("wxid") String wxid, HttpServletRequest req) {<NEW_LINE>try {<NEW_LINE>List<Wx_menu> list = wxMenuService.query(Cnd.where("wxid", "=", wxid).asc("location").asc("path"));<NEW_LINE>NutMap menuMap = NutMap.NEW();<NEW_LINE>for (Wx_menu unit : list) {<NE... | getParentId(), Wx_menu.class); |
317,357 | public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>readCommonProcessorOptions();<NEW_LINE>readOptionCrashWhenMethodIsNotPackageProtected();<NEW_LINE>mapTypeElementToFieldInjectorTargetList = new LinkedHashMap<>();<NEW_LINE><MASK><NEW_LINE>mapTypeElementToSuperTypeElemen... | mapTypeElementToMethodInjectorTargetList = new LinkedHashMap<>(); |
1,041,904 | public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>final HttpServletRequest httpRequest = (HttpServletRequest) request;<NEW_LINE>final String <MASK><NEW_LINE>if (StringUtil.isBlank(origin)) {<NEW_LINE>chain.doFilter... | origin = httpRequest.getHeader("Origin"); |
295,203 | synchronized public void load(LineNumberReader reader) throws Exception {<NEW_LINE>String line;<NEW_LINE>while ((line = reader.readLine()) != null && !"/e/".equals(line)) {<NEW_LINE>int equal = line.indexOf('=');<NEW_LINE>CharSequence field = line.subSequence(0, equal);<NEW_LINE>String value = line.substring(equal + 1)... | _maxCellIndex = Integer.parseInt(value); |
1,423,110 | public Void execute(CommandContext commandContext) {<NEW_LINE>if (planItemInstanceId == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("Plan item instance id is null");<NEW_LINE>}<NEW_LINE>CmmnEngineConfiguration <MASK><NEW_LINE>PlanItemInstanceEntity planItemInstanceEntity = cmmnEngineConfiguration.getPla... | cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(commandContext); |
83,958 | private PreparedStatement createQueryStatement(Connection conn, OracleTriggerMonitoredSourceInfo source, long sinceScn, int currentFetchSize, boolean useChunking) throws SQLException {<NEW_LINE>boolean debugEnabled = _log.isDebugEnabled();<NEW_LINE>String eventQuery = null;<NEW_LINE>ChunkingType type = _chunkingType;<N... | .setLong(i++, _txnsPerChunk); |
256,662 | public static final boolean[] readThisBooleanArrayXml(XmlPullParser parser, String endTag, String[] name) throws XmlPullParserException, java.io.IOException {<NEW_LINE>int num;<NEW_LINE>try {<NEW_LINE>num = Integer.parseInt(parser.getAttributeValue(null, "num"));<NEW_LINE>} catch (NullPointerException e) {<NEW_LINE>thr... | "Expected item tag at: " + parser.getName()); |
1,588,590 | private static TableScanNode createProjectableFilterable(Interpreter interpreter, TableScan rel, ImmutableList<RexNode> filters, ImmutableIntList projects, ProjectableFilterableTable pfTable) {<NEW_LINE>final DataContext root = interpreter.getDataContext();<NEW_LINE>final ImmutableIntList originalProjects = projects;<N... | toString()).ex(); |
578,233 | public static ImmutableMap<Payment, PointSensitivityBuilder> cashFlowEquivalentAndSensitivityFixedLeg(ResolvedSwapLeg fixedLeg, RatesProvider ratesProvider) {<NEW_LINE>ArgChecker.isTrue(fixedLeg.getType().equals(SwapLegType.FIXED), "Leg type should be FIXED");<NEW_LINE>ArgChecker.isTrue(fixedLeg.getPaymentEvents().isEm... | Payment.of(notional, paymentDate); |
1,245,596 | private ObjectRef callNormalFunction(FunctionDescriptor functionDescriptor, Object[] args, Optional<Class<?>> returnType, CallOptions options) {<NEW_LINE>int numReturns = returnType.isPresent() ? 1 : 0;<NEW_LINE>List<FunctionArg> functionArgs = ArgumentsBuilder.wrap(args, functionDescriptor.getLanguage());<NEW_LINE>if ... | .get(0), impl); |
1,797,538 | public void run(HttpServletRequest req, HttpServletResponse res) throws ActionException {<NEW_LINE>try {<NEW_LINE>HttpSession ses = req.getSession();<NEW_LINE>User user = null;<NEW_LINE>user = PortalUtil.getUser(req);<NEW_LINE>boolean signedIn = false;<NEW_LINE>if (user == null) {<NEW_LINE>user = PortalUtil.getCompany(... | setAttribute(WebKeys.LAYOUT, layout); |
760,118 | public static TtlDB open(final DBOptions options, final String db_path, final List<ColumnFamilyDescriptor> columnFamilyDescriptors, final List<ColumnFamilyHandle> columnFamilyHandles, final List<Integer> ttlValues, final boolean readOnly) throws RocksDBException {<NEW_LINE>if (columnFamilyDescriptors.size() != ttlValue... | int[ttlValues.size()]; |
1,140,887 | public void map(final LongWritable key, final Text value, final OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>if (// ignore comments line<NEW_LINE>value.toString().startsWith("#"))<NEW_LINE>return;<NEW_LINE>final String[] line = value.toString().split("\t");<NEW_LINE>... | .find_least_zero_pos(bitmask[i]); |
1,539,608 | public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) {<NEW_LINE>this.delegate.replaceAll(function);<NEW_LINE>inverse.delegate.clear();<NEW_LINE>Entry<K, V> broken = null;<NEW_LINE>Iterator<Entry<K, V>> itr = this.delegate.entrySet().iterator();<NEW_LINE>while (itr.hasNext()) {<NEW_LINE>Entry<K... | delegate.putIfAbsent(v, k); |
1,487,079 | public void load() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack out = null;<NEW_LINE>final List<HeapHistoData> datas = new ArrayList<HeapHistoData>();<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW... | = removeNotDigit(tokens[0]); |
561,274 | protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>if (getArguments() == null) {<NEW_LINE>throw new NullPointerException("Bundle is null, username is required");<NEW_LINE>}<NEW_LINE>switch(getPresenter().getType()) {<NEW_LINE>case RepoMiscMVp.FORKS:<NEW_LINE>toolbar.set... | recycler.addOnScrollListener(getLoadMore()); |
1,164,170 | private static void fillFixedSizeData(byte[] buf, ZipFileEntry entry, int nameLength, int extraLength, int commentLength, boolean allowZip64) throws ZipException {<NEW_LINE>if (!allowZip64 && entry.getFeatureSet().contains(Feature.ZIP64_CSIZE)) {<NEW_LINE>throw new ZipException(String.format("Writing an entry with comp... | 1 : entry.getSize()); |
1,666,157 | public static void sendLogEmail(Context context) {<NEW_LINE>File f = com.newsblur.util.Log.getLogfile();<NEW_LINE>if (f == null)<NEW_LINE>return;<NEW_LINE>String debugInfo = "Tell us a bit about your problem:\n\n\n\n" + getDebugInfo(context);<NEW_LINE>android.net.Uri localPath = FileProvider.getUriForFile(context, "com... | putExtra(Intent.EXTRA_TEXT, debugInfo); |
734,786 | protected void saveBannedIPs() {<NEW_LINE>if (COConfigurationManager.getBooleanParameter("Ip Filter Banning Persistent")) {<NEW_LINE>try {<NEW_LINE>class_mon.enter();<NEW_LINE>Map map = new HashMap();<NEW_LINE>List ips = new ArrayList();<NEW_LINE>List<Iterator<BannedIpImpl>> its = Arrays.asList(bannedIps_v4.values().it... | ().getBytes("UTF-8")); |
747,833 | private void createBrowserSection(Composite parent) {<NEW_LINE>Group group = new Group(parent, SWT.FLAT | SWT.SHADOW_IN);<NEW_LINE>group.setText(Messages.LaunchBrowserSettingsTab_WebBrowser);<NEW_LINE>group.setFont(parent.getFont());<NEW_LINE>group.setLayoutData(GridDataFactory.fillDefaults().grab(true, false).hint(500... | , 3).create()); |
954,888 | public void visitCode() {<NEW_LINE>int sidx = isStatic ? 0 : 1;<NEW_LINE>int arrVarIdx = newLocal(Type.getType("[Ljava/lang/Object;"));<NEW_LINE>AsmUtil.PUSH(mv, paramTypes.length);<NEW_LINE>mv.visitTypeInsn(Opcodes.ANEWARRAY, "java/lang/Object");<NEW_LINE>mv.visitVarInsn(Opcodes.ASTORE, arrVarIdx);<NEW_LINE>for (int i... | "java/lang/Boolean", "valueOf", "(Z)Ljava/lang/Boolean;", false); |
610,077 | protected void handleCandidateUsers(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, ExpressionManager expressionManager, TaskEntity taskEntity, CreateHumanTaskBeforeContext beforeContext) {<NEW_LINE>CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfigura... | userIdExpr = expressionManager.createExpression(candidateUser); |
653,127 | public static KafkaTopic toTopicResource(Topic topic, Labels labels) {<NEW_LINE>ResourceName resourceName = topic.getOrAsKubeName();<NEW_LINE>ObjectMeta om = topic.getMetadata();<NEW_LINE>Map<String, String> lbls = new HashMap<>();<NEW_LINE>lbls.putAll(labels.labels());<NEW_LINE>if (om != null) {<NEW_LINE>om.setName(re... | getMetadata().getAnnotations()); |
399,149 | protected void clicked() {<NEW_LINE>icon.setSize(button.getWidth(), button.getHeight());<NEW_LINE>IFieldDefineDialog iDialog;<NEW_LINE>Dialog dialog = null;<NEW_LINE>if (defineType == EtlConsts.INPUT_FIELDDEFINE_NORMAL) {<NEW_LINE>dialog = new FieldDefineDialog(owner);<NEW_LINE>} else if (defineType == EtlConsts.INPUT_... | y + button.getHeight()); |
493,137 | final GetQueryLoggingConfigResult executeGetQueryLoggingConfig(GetQueryLoggingConfigRequest getQueryLoggingConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQueryLoggingConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
516,794 | private Map<String, double[]> buildGraphData(BusinessReport report, BusinessReportConfig config) {<NEW_LINE>Map<String, double[]> values = new LinkedHashMap<<MASK><NEW_LINE>Map<String, double[]> datas = m_dataFetcher.buildGraphData(report);<NEW_LINE>Map<String, BusinessItemConfig> businessItemConfigs = config.getBusine... | String, double[]>(); |
1,731,182 | public Result apply(AggregationNode aggregation, Captures captures, Context context) {<NEW_LINE>Lookup lookup = context.getLookup();<NEW_LINE>PlanNodeIdAllocator idAllocator = context.getIdAllocator();<NEW_LINE>Session session = context.getSession();<NEW_LINE>TypeProvider types = context.getVariableAllocator().getTypes... | getNextId(), LOCAL, source); |
1,064,256 | public ListJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListJobsResult listJobsResult = new ListJobsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g... | int originalDepth = context.getCurrentDepth(); |
811,322 | public void generateProjectBuildScript(String projectName, InitSettings settings, BuildScriptBuilder buildScriptBuilder) {<NEW_LINE>buildScriptBuilder.repositories().mavenCentral("Use Maven Central for resolving dependencies.");<NEW_LINE>String pluginId = settings.getPackageName() + ".greeting";<NEW_LINE>String pluginC... | "check", "Task", "dependsOn", functionalTest); |
1,428,406 | public void wordBreaksBackwards(int n, SelectionPolicy selectionPolicy) {<NEW_LINE>if (getLength() == 0)<NEW_LINE>return;<NEW_LINE>CaretSelectionBind<?, ?, ?> csb = getCaretSelectionBind();<NEW_LINE>int paragraph = csb.getParagraphIndex();<NEW_LINE>int position = csb.getColumnPosition();<NEW_LINE>int prevWord = 0;<NEW_... | moveTo(paragraph, prevWord, selectionPolicy); |
1,038,728 | private ISMgr findInstanceStateManager(Object instance) {<NEW_LINE>Class<?> clazz = typeDescriptor.getReloadableType().getClazz();<NEW_LINE>try {<NEW_LINE>Field fieldAccessorField = <MASK><NEW_LINE>if (fieldAccessorField == null) {<NEW_LINE>throw new IllegalStateException("Cant find field accessor for type " + clazz.ge... | clazz.getField(Constants.fInstanceFieldsName); |
1,045,975 | private void addComponents() {<NEW_LINE>Components incomingComponents = OAInProgress.getComponents();<NEW_LINE>if (incomingComponents == null)<NEW_LINE>return;<NEW_LINE>Map m = null;<NEW_LINE>m = handleMapRename(incomingComponents.getExamples(), OA_COMPONENTS_EXAMPLES);<NEW_LINE>incomingComponents.setExamples(m);<NEW_L... | incomingComponents.getCallbacks(), OA_COMPONENTS_CALLBACKS); |
400,459 | public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case IArchimatePackage.ARCHIMATE_MODEL__FOLDERS:<NEW_LINE>return folders != null && !folders.isEmpty();<NEW_LINE>case IArchimatePackage.ARCHIMATE_MODEL__NAME:<NEW_LINE>return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);<... | : !VERSION_EDEFAULT.equals(version); |
1,758,988 | private static CharSequence rebalance(CharSequence s, char open, char close) {<NEW_LINE>int n = s.length();<NEW_LINE>if (n == 0) {<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>StringBuilder sb = null;<NEW_LINE>// position past last character in s written to sb<NEW_LINE>int pos = 0;<NEW_LINE>// index of unclosed open element ... | + sb.length() - pos; |
312,546 | public Flowable<ResultSet> execute(BoundQuery query, int pageSize, boolean exponentPageSize, ByteBuffer pagingState) {<NEW_LINE>// An empty paging state means the query was exhausted during previous execution<NEW_LINE>if (pagingState != null && pagingState.remaining() == 0) {<NEW_LINE>return Flowable.empty();<NEW_LINE>... | .getMaxStoragePageSize())) : pageSize; |
945,042 | /*<NEW_LINE>* Get the set of modules for the current project. This include old-style (using application.conf)<NEW_LINE>* and new style, with dependencies starting at 1.2 (load everything from the modules/ dir)<NEW_LINE>*/<NEW_LINE>private Set<File> modules() {<NEW_LINE>Set<File> modules = new HashSet<>();<NEW_LINE>// O... | = new File(applicationDir, "modules"); |
927,498 | public DbusKeyCompositeFilterConfig createServerSideFilter(DbusClusterInfo cluster, DbusPartitionInfo partition) throws InvalidConfigException {<NEW_LINE>DbusKeyCompositeFilterConfig.Config compositeConfig = new DbusKeyCompositeFilterConfig.Config();<NEW_LINE>for (DatabusSubscription s : _subscriptions) {<NEW_LINE>KeyF... | ") of cluster (" + cluster + ") is :" + c); |
138,224 | void addAllTemplatesFoundInDirectory(File dir) throws UMAException {<NEW_LINE>String rootDir = UMA.getUma().getRootDirectory();<NEW_LINE>File[] dirListing = dir.listFiles();<NEW_LINE>Vector<File> directories = new Vector<File>();<NEW_LINE>for (File file : dirListing) {<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>direct... | templates.put(templateName, url); |
1,445,640 | protected void prepareTransforms(CLBuffer H1Buffer, CLBuffer H2Buffer, CLBuffer XBuffer, int pyramidLevel, ImageTransformer.Parameters[] parameters) {<NEW_LINE>FloatBuffer floatH1 = surfaceTransformer == null ? null : (FloatBuffer) H1Buffer.getBuffer().rewind();<NEW_LINE>FloatBuffer floatH2 = (FloatBuffer) H2Buffer.get... | .Parameters) parameters[i]); |
1,768,797 | private void createFileNameBrowseButtons(Composite parent) {<NEW_LINE>new Label(parent, SWT.NONE);<NEW_LINE>Composite buttonComposite = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayout layout = new GridLayout(2, false);<NEW_LINE>layout.marginHeight = 0;<NEW_LINE>layout.marginWidth = 0;<NEW_LINE>buttonComposite.setL... | btnBrowseWorkplace.setText(Messages.FILE_PICKER_BROWSE_WORKSPACE); |
541,151 | public static void generateJLCGMODS(ClassWriter cw, String classname) {<NEW_LINE>FieldVisitor fv = cw.visitField(ACC_PUBLIC + ACC_STATIC, "__sljlcgmods", "Ljava/lang/reflect/Method;", null, null);<NEW_LINE>fv.visitEnd();<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_STATIC, "__sljlcgmods", "(Ljava/lang/C... | "java/lang/Exception", "printStackTrace", "()V", false); |
1,812,542 | private void updateJournalTotal(final I_GL_JournalLine glJournalLine) {<NEW_LINE>final <MASK><NEW_LINE>//<NEW_LINE>// Update Journal Total<NEW_LINE>{<NEW_LINE>final String sql = DB.convertSqlToNative(// croo Bug# 1789935<NEW_LINE>"UPDATE GL_Journal j" + " SET (TotalDr, TotalCr) = (SELECT COALESCE(SUM(AmtAcctDr),0), COA... | int glJournalId = glJournalLine.getGL_Journal_ID(); |
788,516 | public void apply(CompletionItem completion) throws Exception {<NEW_LINE>completion = harness.resolveCompletionItem(completion);<NEW_LINE>Either<TextEdit, InsertReplaceEdit> edit = completion.getTextEdit();<NEW_LINE>String docText = doc.getText();<NEW_LINE>if (edit != null) {<NEW_LINE>if (edit.isLeft()) {<NEW_LINE>Stri... | .getStart().getCharacter(); |
1,388,044 | private void initCards() {<NEW_LINE>ArrayList<Card> cards = new ArrayList<Card>();<NEW_LINE>for (int i = 0; i < 200; i++) {<NEW_LINE>GplayGridCard card = new GplayGridCard(getActivity());<NEW_LINE>card.headerTitle = "App example " + i;<NEW_LINE>card.secondaryTitle = "Some text here " + i;<NEW_LINE>card.rating = (float)... | .resourceIdThumbnail = R.drawable.ic_smile; |
130,357 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
764,492 | boolean tryAcquire() {<NEW_LINE>while (true) {<NEW_LINE>long encoded = state.get();<NEW_LINE>int usageCount = AtomicBiInteger.getHi(encoded);<NEW_LINE>int <MASK><NEW_LINE>boolean closed = usageCount < 0;<NEW_LINE>if (closed)<NEW_LINE>return false;<NEW_LINE>T pooled = getPooled();<NEW_LINE>int maxUsageCount = getMaxUsag... | multiplexCount = AtomicBiInteger.getLo(encoded); |
854,033 | public QuarkusClassLoader createRuntimeClassLoader(ClassLoader base, Map<String, byte[]> resources, Map<String, byte[]> transformedClasses) {<NEW_LINE>QuarkusClassLoader.Builder builder = QuarkusClassLoader.builder("Quarkus Runtime ClassLoader: " + quarkusBootstrap.getMode() + " restart no:" + runtimeClassLoaderCount.g... | new MemoryClassPathElement(resources, true)); |
752,531 | final DescribeCustomRoutingListenerResult executeDescribeCustomRoutingListener(DescribeCustomRoutingListenerRequest describeCustomRoutingListenerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCustomRoutingListenerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | false), new DescribeCustomRoutingListenerResultJsonUnmarshaller()); |
1,851,494 | private ArchiveResult createArchive(@NonNull final DocumentReportResult report) {<NEW_LINE>if (report.isNoData()) {<NEW_LINE>throw new AdempiereException("Cannot create PDF data for " + this);<NEW_LINE>}<NEW_LINE>final String documentNo = documentNoBL.asDocumentNoAware(getRecord()).map(IDocumentNoAware::getDocumentNo).... | archive, report.getCopies()); |
1,613,206 | public void call(ClientSide clientSide, String data) {<NEW_LINE>Room room = new Room(ServerContains.getServerId());<NEW_LINE>room.setStatus(RoomStatus.WAIT);<NEW_LINE>room.setType(RoomType.PVP);<NEW_LINE>room.setRoomOwner(clientSide.getNickname());<NEW_LINE>room.getClientSideMap().put(clientSide.getId(), clientSide);<N... | , Noson.reversal(room)); |
1,309,963 | static void printRequest(HttpServletRequest req) {<NEW_LINE>if (!LOG.isLoggable(Level.FINE))<NEW_LINE>return;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>Enumeration<String> headerNames = req.getHeaderNames();<NEW_LINE>while (headerNames.hasMoreElements()) {<NEW_LINE>String headerName = headerNames.nextEl... | "\n\t" + headerName + " = " + headerValue); |
601,512 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>ServletOutputStream sos = response.getOutputStream();<NEW_LINE>if (request.getParameter("getSessionFirst") == null) {<NEW_LINE>HttpSession session = request.getSession(false);<NEW_LINE>if (sess... | sos.println("INCORRECT RETURN VALUE: sessionId is " + sessionId); |
1,230,584 | private void printFunction(String name, boolean singleBand, boolean border) {<NEW_LINE>totalFunctions++;<NEW_LINE>String dimen = name.equals("convolve") ? "2D" : "1D";<NEW_LINE>String docName = name.equals("convolve") ? "" : " " + name;<NEW_LINE><MASK><NEW_LINE>// String suffice2 = singleBand ? "" : "B";<NEW_LINE>Strin... | String suffice = singleBand ? "SB" : "IL"; |
1,580,052 | private String contrast() {<NEW_LINE>final ResourceDO before = (ResourceDO) getBefore();<NEW_LINE>Objects.requireNonNull(before);<NEW_LINE>final ResourceDO after = (ResourceDO) getAfter();<NEW_LINE>Objects.requireNonNull(after);<NEW_LINE>if (Objects.equals(before, after)) {<NEW_LINE>return "it no change";<NEW_LINE>}<NE... | , after.getSort())); |
1,352,193 | public static FileIterator findDirectory(String directory, FileFilter filter) {<NEW_LINE>FileIterator iterator = null;<NEW_LINE>// Try to load from containing JAR file<NEW_LINE>File jarFile = JarUtil.getCurrentJarFile();<NEW_LINE>if (jarFile != null) {<NEW_LINE>try {<NEW_LINE>iterator = new ZipDirectoryIterator(jarFile... | (directory), filter, true); |
19,340 | public InputStream asInputStream() {<NEW_LINE>return new InputStream() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int available() {<NEW_LINE>return AbstractIoBuffer.this.remaining();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public synchronized void mark(int readlimit) {<NEW_LINE>AbstractIoBuffer.this.mark()... | AbstractIoBuffer.this.skip(bytes); |
596,810 | protected static void exportHTTPSeeds(DownloadManager[] dms) {<NEW_LINE>final String NL = "\r\n";<NEW_LINE>String data = "";<NEW_LINE>boolean http_enable = COConfigurationManager.getBooleanParameter("HTTP.Data.Listen.Port.Enable");<NEW_LINE>String port;<NEW_LINE>if (http_enable) {<NEW_LINE>int p = COConfigurationManage... | port = String.valueOf(o); |
1,450,962 | public com.amazonaws.services.codecommit.model.TargetsRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.TargetsRequiredException targetsRequiredException = new com.amazonaws.services.codecommit.model.TargetsRequiredException(null... | int originalDepth = context.getCurrentDepth(); |
912,620 | private int consumeItems(IFlexibleCrafter crafter, CraftingResult<T> result, IStackFilter filter, int amount) {<NEW_LINE>int expected = amount;<NEW_LINE>for (int slotid = 0; slotid < crafter.getCraftingItemStackSize(); ++slotid) {<NEW_LINE>ItemStack stack = crafter.getCraftingItemStack(slotid);<NEW_LINE>if (stack != nu... | result.usedItems.add(removed); |
1,553,888 | public static ListActionDataResponse unmarshall(ListActionDataResponse listActionDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>listActionDataResponse.setRequestId(_ctx.stringValue("ListActionDataResponse.RequestId"));<NEW_LINE>listActionDataResponse.setSuccess(_ctx.booleanValue("ListActionDataResponse.Success"));<... | ("ListActionDataResponse.Actions[" + i + "].GmtCreate")); |
569,779 | public static byte[] calculateKdf(KdfCalculatorArguments kdfCalculatorArguments, byte[] pin) {<NEW_LINE>Digest digester;<NEW_LINE>switch(kdfCalculatorArguments.digestAlgorithm) {<NEW_LINE>case SHA256:<NEW_LINE>digester = new SHA256Digest();<NEW_LINE>break;<NEW_LINE>case SHA512:<NEW_LINE>digester = new SHA512Digest();<N... | data, 0, data.length); |
555,577 | // complete<NEW_LINE>private static void appendExcludeElement(StringBuilder sb, PostgresGlobalState globalState, List<PostgresColumn> columns) {<NEW_LINE>if (Randomly.getBoolean()) {<NEW_LINE>// append column name<NEW_LINE>sb.append(Randomly.fromList(columns).getName());<NEW_LINE>} else {<NEW_LINE>// append expression<... | generateExpression(globalState, columns))); |
1,530,073 | public void playInternal(Path file, float volume, String id, int delay) throws Exception {<NEW_LINE>if (lastPlayed.containsKey(id)) {<NEW_LINE>long timePassed = (System.currentTimeMillis() - lastPlayed.get(id)) / 1000;<NEW_LINE>if (timePassed < delay) {<NEW_LINE>// LOGGER.info("Not playing sound "+id+" ("+timePassed+"/... | volumeInfo = setVolume(clip, volume); |
974,240 | private static void initializeMetrics(boolean enabled, boolean jvmMetricsEnabled, String factoryClass, String appName, HostAndPort address) throws Exception {<NEW_LINE>LOG.info("initializing metrics, enabled:{}, class:{}", enabled, factoryClass);<NEW_LINE>if (enabled && factoryClass != null && !factoryClass.isEmpty()) ... | gc.bindTo(Metrics.globalRegistry); |
1,576,623 | private boolean upgradeOldNamespaceAddresses(TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>ReferenceDBManager refMgr = <MASK><NEW_LINE>Address nextExtAddr = getNextExternalSymbolAddress();<NEW_LINE>Symbol[] syms = getSymbols(Address.NO_ADDRESS);<NEW_LINE>for (Symbol sym : syms) {<NEW_LINE>Symbo... | (ReferenceDBManager) program.getReferenceManager(); |
1,016,670 | private void toggleRestrictions() {<NEW_LINE>holder.imgCbRestricted.setVisibility(View.GONE);<NEW_LINE>holder.pbRunning.setVisibility(View.VISIBLE);<NEW_LINE>new AsyncTask<Object, Object, Object>() {<NEW_LINE><NEW_LINE>private List<Boolean> oldState;<NEW_LINE><NEW_LINE>private List<Boolean> newState;<NEW_LINE><NEW_LINE... | Toast.LENGTH_LONG).show(); |
1,465,726 | protected void configure(HttpSecurity http) throws Exception {<NEW_LINE>// @formatter:off<NEW_LINE>http.cors().and().csrf().disable().exceptionHandling().authenticationEntryPoint(problemSupport).accessDeniedHandler(problemSupport).and().headers().contentSecurityPolicy(jHipsterProperties.getSecurity().getContentSecurity... | ).apply(securityConfigurerAdapter()); |
341,849 | public void attachApplication(IShizukuApplication application, String requestPackageName) {<NEW_LINE>if (application == null || requestPackageName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int callingPid = Binder.getCallingPid();<NEW_LINE>int callingUid = Binder.getCallingUid();<NEW_LINE>boolean isManager;<NEW_LI... | putInt(ATTACH_REPLY_SERVER_VERSION, ShizukuApiConstants.SERVER_VERSION); |
725,564 | private void init(Context context, AttributeSet attrs) {<NEW_LINE>LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>inflater.inflate(R.layout.layout_slidebar, this, true);<NEW_LINE>backgroundView = findViewById(R.id.slidebar_root_bg);<NEW_LINE>mText = findVie... | getDimensionPixelSize(R.dimen.slidebar_thumb_width); |
381,015 | public ParameterMapping unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterMapping parameterMapping = new ParameterMapping();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT... | String currentParentElement = context.getCurrentParentElement(); |
1,675,458 | protected ArrayList<Message> doInBackground(String... subredditPaginators) {<NEW_LINE>try {<NEW_LINE>if (reset || paginator == null) {<NEW_LINE>paginator = new InboxPaginator(Authentication.reddit, where);<NEW_LINE>paginator.setLimit(25);<NEW_LINE>nomore = false;<NEW_LINE>}<NEW_LINE>if (paginator.hasNext()) {<NEW_LINE>... | done = new ArrayList<>(); |
762,784 | private void scheduleNextNotificationIfRepeating(Bundle bundle) {<NEW_LINE>String repeatType = bundle.getString("repeatType");<NEW_LINE>long repeatTime = (long) bundle.getDouble("repeatTime");<NEW_LINE>if (repeatType != null) {<NEW_LINE>long fireDate = (long) bundle.getDouble("fireDate");<NEW_LINE>boolean validRepeatTy... | Calendar nextEvent = Calendar.getInstance(); |
916,837 | /*<NEW_LINE>private static AWTComponentInfo[] retrieveComponents(ThreadReference tawt, VirtualMachine vm,<NEW_LINE>ClassType containerClass, ObjectReference window,<NEW_LINE>Method getBounds)<NEW_LINE>throws InvalidTypeException, ClassNotLoadedException,<NEW_LINE>IncompatibleThreadStateException, InvocationException,<N... | fx = rectangleClass.fieldByName("x"); |
1,738,924 | protected void sortImpl(final boolean useKeys, final boolean reverse, final boolean stable) {<NEW_LINE>Sort s = new Sort() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int size() {<NEW_LINE>return count;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(int a, int b) {<NEW_LINE>int diff = 0;<NEW_LIN... | [a] - values[b]; |
1,518,743 | public void shift(int from, int by) throws OverflowException {<NEW_LINE><MASK><NEW_LINE>assert by >= 0;<NEW_LINE>int newLength = PythonUtils.addExact(length, by);<NEW_LINE>int itemsize = format.bytesize;<NEW_LINE>if (buffer.length / itemsize < newLength) {<NEW_LINE>byte[] newBuffer = new byte[computeNewSize(newLength, ... | assert from >= 0 && from <= length; |
760,454 | public static void fcBiFlatAttractor(Node N1, Node N2, double c) {<NEW_LINE>// distance en x entre les deux noeuds<NEW_LINE>double xDist = N1.x() - N2.x();<NEW_LINE>double yDist = N1.y() - N2.y();<NEW_LINE>// distance tout court<NEW_LINE>double dist = (float) Math.sqrt(xDist * xDist + yDist * yDist);<NEW_LINE>if (dist ... | ForceVectorNodeLayoutData N1L = N1.getLayoutData(); |
1,734,928 | public void record(Tunnel tunnel) {<NEW_LINE>StringBuilder sb = new StringBuilder(tunnel.identity().toString());<NEW_LINE>sb.append(RedisProtocol.CRLF);<NEW_LINE>sb.append(tunnel.getTunnelMonitor().getTunnelStats().getTunnelStatsResult().toString()).append(RedisProtocol.CRLF);<NEW_LINE>sb.append(SESSION_TYPE.FRONTEND.n... | ).append(RedisProtocol.CRLF); |
1,044,875 | protected ComplexEventChunk<StateEvent> constructMatchingStateEventChunk(ComplexEventChunk matchingComplexEventChunk, boolean convertToStreamEvent, StateEventFactory stateEventFactory, int matchingStreamIndex, StreamEventFactory streamEventFactory, StreamEventConverter streamEventConverter) {<NEW_LINE>ComplexEventChunk... | stateEvent.addEvent(matchingStreamIndex, borrowEvent); |
334,421 | public List<Contentlet> findWorkflowTaskFilesAsContent(WorkflowTask task, User user) throws DotDataException {<NEW_LINE>final HibernateUtil hu <MASK><NEW_LINE>hu.setQuery("from workflow_task_files in class com.dotmarketing.portlets.workflows.model.WorkFlowTaskFiles where workflowtask_id = ?");<NEW_LINE>hu.setParam(task... | = new HibernateUtil(WorkFlowTaskFiles.class); |
684,306 | private static void addTrack(Activity activity, ArrayAdapter<String> listAdapter, ContextMenuAdapter contextMenuAdapter, List<GPXInfo> allGpxFiles) {<NEW_LINE>if (activity instanceof MapActivity) {<NEW_LINE>final MapActivity mapActivity = (MapActivity) activity;<NEW_LINE>OnActivityResultListener listener = (resultCode,... | (OsmandApplication) activity.getApplication(); |
258,527 | static Options parse(String[] args) throws ReflectiveOperationException {<NEW_LINE>Options options = new Options();<NEW_LINE>int index = 0;<NEW_LINE>while (index < args.length) {<NEW_LINE>if (!args[index].startsWith("-")) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>if (args[index] == "--") {<NEW_LINE>break;<NEW_LINE>}<NEW_LI... | = new String[numPaths - 1]; |
1,127,084 | public static ImageTypeSpecifier createPackedGrayscale(final ColorSpace colorSpace, final int bits, final int dataType) {<NEW_LINE>notNull(colorSpace, "colorSpace");<NEW_LINE>isTrue(colorSpace.getType() == ColorSpace.TYPE_GRAY, colorSpace, "ColorSpace must be TYPE_GRAY");<NEW_LINE>isTrue(bits == 1 || bits == 2 || bits ... | ] b = new byte[numEntries]; |
277,720 | private void visitAnnotations(AnnotatedNode node, List<AnnotationNode> annotations, int target) {<NEW_LINE>if (annotations.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.currentClass.setAnnotated(true);<NEW_LINE>Map<String, List<AnnotationNode>> <MASK><NEW_LINE>for (AnnotationNode unvisited : annotations) {<NEW... | nonSourceAnnotations = new LinkedHashMap<>(); |
696,065 | private void submitTask(long beId, TRoutineLoadTask tTask) throws LoadException {<NEW_LINE>Backend backend = Catalog.getCurrentSystemInfo().getBackend(beId);<NEW_LINE>if (backend == null) {<NEW_LINE>throw new LoadException("failed to send tasks to backend " + beId + " because not exist");<NEW_LINE>}<NEW_LINE>TNetworkAd... | (tTask.id), beId); |
975,456 | final DiscoverInputSchemaResult executeDiscoverInputSchema(DiscoverInputSchemaRequest discoverInputSchemaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(discoverInputSchemaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Kinesis Analytics V2"); |
1,721,853 | List<Tag> readTags(Tag[] tagsArray, byte numberOfTags) {<NEW_LINE>List<Tag> tags = new ArrayList<>();<NEW_LINE>tagIds.clear();<NEW_LINE>int maxTag = tagsArray.length;<NEW_LINE>for (byte tagIndex = numberOfTags; tagIndex != 0; --tagIndex) {<NEW_LINE>int tagId = readUnsignedInt();<NEW_LINE>if (tagId < 0 || tagId >= maxTa... | Tag(tag.key, value); |
202,660 | public static Version maintain(GameRepository repository, Version version) {<NEW_LINE>if (version.getInheritsFrom() != null)<NEW_LINE>throw new IllegalArgumentException("MaintainTask requires independent game version");<NEW_LINE>String mainClass = version.<MASK><NEW_LINE>if (mainClass != null && mainClass.equals(Librar... | resolve(null).getMainClass(); |
150,850 | public List<ResourcePersistentId> resolveResourcePersistentIdsWithCache(RequestPartitionId theRequestPartitionId, List<IIdType> theIds, boolean theOnlyForcedIds) {<NEW_LINE>assert myDontCheckActiveTransactionForUnitTest || TransactionSynchronizationManager.isSynchronizationActive();<NEW_LINE>List<ResourcePersistentId> ... | .code(1101) + "Parameter value missing in request"); |
1,312,908 | public void addBlacklistedVersion(String version) {<NEW_LINE>Set<String> versionsForRetry = new HashSet<String>(preferences.getStringSet("versionsForRetry", Collections.EMPTY_SET));<NEW_LINE>Set<String> blacklistedVersions = new HashSet<String>(getBlacklistedVersions());<NEW_LINE>Log.d("BLACKLIST", "versionsForRetry: "... | "versionsForRetry", versionsForRetry).commit(); |
787,549 | private void addToMap(Map<FileSystem, Set<FileObject>> map, FileObject fo, boolean removeFromCache) {<NEW_LINE>if (fo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileSystem fs;<NEW_LINE>try {<NEW_LINE>fs = fo.getFileSystem();<NEW_LINE>} catch (FileStateInvalidException e) {<NEW_LINE>// ignore files in invalid files... | new Object[] { fo }); |
1,334,741 | private static void readRows(Table table, String uuidPrefix) throws IOException {<NEW_LINE>try (Scope ss = tracer.spanBuilder("ReadRows").startScopedSpan()) {<NEW_LINE>// [START getting_a_row]<NEW_LINE>// Get the first greeting by row key<NEW_LINE>String rowKey = uuidPrefix + "#greeting0";<NEW_LINE>Result getResult = t... | uuidPrefix + "#greeting3").getBytes(); |
846,382 | private void configuraLoader() {<NEW_LINE>boolean usandoTemaDark = Configuracoes.getInstancia().isTemaDark();<NEW_LINE>String caminhoIcone = String.format("/br/univali/ps/ui/icones/%s/grande/load.gif", usandoTemaDark ? "Dark" : "Portugol");<NEW_LINE>Icon icone = new ImageIcon(getClass().getResource(caminhoIcone));<NEW_... | javax.swing.SwingConstants.CENTER); |
36,387 | public TrackedActionLastAccessed unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TrackedActionLastAccessed trackedActionLastAccessed = new TrackedActionLastAccessed();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta... | ().unmarshall(context)); |
661,240 | final GetTimeSeriesServiceStatisticsResult executeGetTimeSeriesServiceStatistics(GetTimeSeriesServiceStatisticsRequest getTimeSeriesServiceStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTimeSeriesServiceStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | endClientExecution(awsRequestMetrics, request, response); |
458,246 | private static void init() {<NEW_LINE>try {<NEW_LINE>// TODO is this initialize needed?<NEW_LINE>// PythonInterpreter.initialize(System.getProperties(), null, new String[0]);<NEW_LINE>Class.forName("org.python.util.PythonInterpreter");<NEW_LINE>} catch (Exception ex) {<NEW_LINE>Debug.log("Jython: not found on classpath... | "reflection problem: %s", ex.getMessage()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.