idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,156,252 | ImmutableList<String> condenseCompilerArguments(CoreArg kotlinArgs) {<NEW_LINE>ImmutableMap.Builder<String, Optional<String><MASK><NEW_LINE>LinkedHashMap<String, Optional<String>> freeArgs = Maps.newLinkedHashMap();<NEW_LINE>kotlinArgs.getFreeCompilerArgs().forEach(arg -> freeArgs.put(arg, Optional.empty()));<NEW_LINE>... | > optionBuilder = ImmutableMap.builder(); |
595,488 | public int compareSp(Slice str1, Slice str2) {<NEW_LINE>SliceInput sliceInput1 = str1.getInput();<NEW_LINE>SliceInput sliceInput2 = str2.getInput();<NEW_LINE>int minLen = Math.min(str1.length(), str2.length());<NEW_LINE>int len1 = str1.length();<NEW_LINE>int len2 = str2.length();<NEW_LINE>while (sliceInput1.isReadable(... | = sortOrder[codeOfSimpleFromUTF8(sliceInput1)]; |
1,785,758 | private boolean fitHomographAndPredict(List<Point2D_F64> detectedDots, LlahOperations.FoundDocument doc, Track track) {<NEW_LINE>// Fit a homography to points<NEW_LINE>if (!fitHomography(detectedDots, doc))<NEW_LINE>return false;<NEW_LINE>// Create a list of used landmarks from the inlier set<NEW_LINE>inlierPairs.clear... | .get(dotIdx), landmarkIdx); |
1,364,838 | protected MultiGetResult<K, V> do_GET_ALL(Set<? extends K> keys) {<NEW_LINE>RedisConnection con = null;<NEW_LINE>try {<NEW_LINE>con = connectionFactory.getConnection();<NEW_LINE>ArrayList<K> keyList = new ArrayList<>(keys);<NEW_LINE>byte[][] newKeys = keyList.stream().map((k) -> buildKey(k)).toArray(byte[][]::new);<NEW... | key = keyList.get(i); |
1,415,476 | public static void init() {<NEW_LINE>Panel canvasPanel = new Panel();<NEW_LINE>createCanvasPanel(canvasPanel);<NEW_LINE>if (frame != null) {<NEW_LINE>frame.setVisible(false);<NEW_LINE>}<NEW_LINE>frame = new JFrame();<NEW_LINE>frame.add(canvasPanel);<NEW_LINE>canvas.addKeyListener(stdDraw3D);<NEW_LINE>canvas.addMouseLis... | frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
730,350 | private void parsePy() {<NEW_LINE>try {<NEW_LINE>String args = Arrays.stream(argNames).collect(Collectors.joining(","));<NEW_LINE>String head = "import polyglot\n" + "@polyglot.export_value\n" + "def polyglot_enso_python_eval(" + args + "):\n";<NEW_LINE>String indentLines = code.getForeignSource().lines().map(l -> " ... | indentLines, "").build(); |
1,395,168 | public void initialize() {<NEW_LINE>final AtlonaPro3Config config = getAtlonaConfig();<NEW_LINE>if (config == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (config.getIpAddress() == null || config.getIpAddress().trim().length() == 0) {<NEW_LINE>updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, ... | updateStatus(status, detail, msg); |
22,312 | public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {<NEW_LINE>GroupResourceProcessForm form = (GroupResourceProcessForm) context.getProcessForm();<NEW_LINE>String groupId = form.getInlongGroupId();<NEW_LINE>String streamId = form.getInlongStreamId();<NEW_LINE>String applicant = conte... | TO_BE_ISSUED_ADD.getCode(), applicant); |
1,512,882 | private void stopTimerIfStillRunning(ExecuteContext ctx) {<NEW_LINE>Iterable<Tag> queryTags = queryTagsSupplier.get();<NEW_LINE>if (queryTags == null)<NEW_LINE>return;<NEW_LINE>Timer.Sample sample;<NEW_LINE>synchronized (sampleLock) {<NEW_LINE>sample = sampleByExecuteContext.remove(ctx);<NEW_LINE>}<NEW_LINE>if (sample ... | ).replace('_', ' '); |
1,759,940 | static void postEval(ScriptingContainer container, ScriptContext context) {<NEW_LINE>if (context == null)<NEW_LINE>return;<NEW_LINE>Object receiver = Utils.getReceiverObject(context);<NEW_LINE>Bindings engineMap = context.getBindings(ScriptContext.ENGINE_SCOPE);<NEW_LINE>Iterator<Map.Entry<String, Object>> iter = engin... | .adjustKey(key), value); |
1,023,827 | public // args is @Sensitive to avoid tracing parameters we don't care about<NEW_LINE>Object invoke(@Sensitive Object proxy, Method method, @Sensitive Object[] args) throws Throwable {<NEW_LINE>Object ret;<NEW_LINE>String methodName = method.getName();<NEW_LINE>if (method.getDeclaringClass() == Object.class) {<NEW_LINE... | proxyMethod.invoke(extendedBeanManager, listener); |
653,233 | public CreateSessionRequest decode(SerializationContext context, UaDecoder decoder) {<NEW_LINE>RequestHeader requestHeader = (RequestHeader) decoder.readStruct("RequestHeader", RequestHeader.TYPE_ID);<NEW_LINE>ApplicationDescription clientDescription = (ApplicationDescription) decoder.readStruct("ClientDescription", Ap... | endpointUrl = decoder.readString("EndpointUrl"); |
1,675,636 | public void start() {<NEW_LINE>// This needs to be at the begnning of the start method for Oauth2 to work<NEW_LINE>// correctly on the web. This handles the login when the Oauth2 login page<NEW_LINE>// redirects back tothe app<NEW_LINE>if (Oauth2.handleRedirect(e -> {<NEW_LINE>if (e.getSource() instanceof AccessToken)... | Log.p("Logged in: " + e); |
1,007,932 | // Converts an FpML 'StubValue' to a {@code IborRateStubCalculation}.<NEW_LINE>private IborRateStubCalculation parseStubCalculation(XmlElement baseEl, FpmlDocument document) {<NEW_LINE>Optional<XmlElement> rateOptEl = baseEl.findChild("stubRate");<NEW_LINE>if (rateOptEl.isPresent()) {<NEW_LINE>return IborRateStubCalcul... | document.validateNotPresent(indexEl, "capRateSchedule"); |
1,827,945 | public static List<URI> readDnsConf() {<NEW_LINE>final Logger logger = LoggerFactory.getLogger(DnsUtil.class);<NEW_LINE>final boolean debug = logger.isDebugEnabled();<NEW_LINE>final File file = new File(Sys.sysProp(QBIT_DNS_RESOLV_CONF, "/etc/resolv.conf"));<NEW_LINE>if (file.exists()) {<NEW_LINE>final List<String> <MA... | lines = IO.readLines(file); |
321,345 | protected String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String ls = System.getProperty("line.separator");<NEW_LINE>sb.append("[SSH2 KEX init Header (").append(length()).append(" bytes)]").append(ls);<NEW_LINE>sb.append(" Message Number: ").append(messageNumber).append(ls);<NEW_LINE>s... | (compressionAlgorithmsServerToClient).append(ls); |
431,968 | public static WriteRequest parseProto(WriteRequestPb proto) {<NEW_LINE>WriteTypePb writeTypePb = proto.getWriteType();<NEW_LINE>DataRecordPb dataRecordPb = proto.getDataRecord();<NEW_LINE>Map<String, Object> properties = Collections.<MASK><NEW_LINE>DataRecordPb.RecordKeyCase recordKeyCase = dataRecordPb.getRecordKeyCas... | unmodifiableMap(dataRecordPb.getPropertiesMap()); |
706,881 | public void showPopup(final Component popupContainer, final Component infoPane) throws InterruptedException {<NEW_LINE>final Component c = MageFrame.getUI(<MASK><NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>if (!popupTextWindowOpen || enlargedWindowState != EnlargedWindowState.CLOSED) {<NEW_LINE>return;<NEW_LIN... | ).getComponent(MageComponents.DESKTOP_PANE); |
80,980 | // read the particle information from a PacketBuffer after the client has received it from the server<NEW_LINE>@Override<NEW_LINE>public FlameParticleData read(@Nonnull ParticleType<FlameParticleData> type, PacketBuffer buf) {<NEW_LINE>// warning! never trust the data read in from a packet buffer.<NEW_LINE>final int MI... | readInt(), MIN_COLOUR, MAX_COLOUR); |
1,622,956 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String application, String infoId) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>List<Wo> wraps = null;<NEW_LINE>List<HotPictureInfo> hotPictureInfos = null;<NEW_LINE>Cache.CacheCategory cacheCategory = new Cach... | hotPictureInfoService.listByApplicationInfoId(application, infoId); |
1,726,279 | public void onMessage(Message inMessage) {<NEW_LINE>// disposable exchange, swapped with real Exchange on correlation<NEW_LINE>inMessage.setExchange(new ExchangeImpl());<NEW_LINE>inMessage.getExchange().<MASK><NEW_LINE>inMessage.put(Message.DECOUPLED_CHANNEL_MESSAGE, Boolean.TRUE);<NEW_LINE>// REVISIT: how to get respo... | put(Bus.class, bus); |
1,074,468 | public MarketDataBox<RatesCurveInputs> build(RatesCurveInputsId id, MarketDataConfig marketDataConfig, ScenarioMarketData marketData, ReferenceData refData) {<NEW_LINE>CurveGroupName groupName = id.getCurveGroupName();<NEW_LINE>CurveName curveName = id.getCurveName();<NEW_LINE>RatesCurveGroupDefinition groupDefn = mark... | (ImmutableList.of(filteredDefn)); |
1,192,278 | public boolean handleMessage(Message message) {<NEW_LINE>// #492 - NullPointerException when expanding item with auto-scroll<NEW_LINE>if (mRecyclerView == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int firstVisibleItem = getFlexibleLayoutManager().findFirstCompletelyVisibleItemPosition();<NEW_LINE>int lastVisib... | = getFlexibleLayoutManager().findLastCompletelyVisibleItemPosition(); |
35,919 | public Path copy(final Path source, final Path target, final TransferStatus status, final ConnectionCallback callback, final StreamListener listener) throws BackgroundException {<NEW_LINE>InputStream in;<NEW_LINE>StatusOutputStream out;<NEW_LINE>in = from.getFeature(Read.class).read(source, new TransferStatus(status), ... | to.getFeature(Write.class); |
1,277,129 | public Object show(String title, HelpCtx helpCtx, Object[] options, boolean setMaxNeededSize, String name) {<NEW_LINE>RepositoryDialogPanel corectPanel = new RepositoryDialogPanel();<NEW_LINE>corectPanel.panel.setLayout(new BorderLayout());<NEW_LINE>corectPanel.panel.add(getPanel(), BorderLayout.NORTH);<NEW_LINE>// NOI... | showDialog(dialogDescriptor, helpCtx, name); |
401,373 | protected void checkEmptyParcelPalletLines(LogisticalForm logisticalForm, List<String> errorMessageList) throws LogisticalFormError {<NEW_LINE>if (logisticalForm.getLogisticalFormLineList() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<LogisticalFormLine, BigDecimal> qtyMap = new HashMap<>();<NEW_LINE>LogisticalF... | put(currentLine, BigDecimal.ZERO); |
1,165,495 | public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent equipment = game.getPermanent(source.getSourceId());<NEW_LINE>if (equipment != null && equipment.getAttachedTo() != null) {<NEW_LINE>Permanent creature = game.getPermanent(equipment.getAttachedTo());<NEW_LINE>if (creature == null) {<NEW_LINE>return fa... | getName(), cards, game); |
1,120,151 | public void marshall(Layer layer, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (layer == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(layer.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(la... | layer.getEnableAutoHealing(), ENABLEAUTOHEALING_BINDING); |
930,828 | private static void printUnits(PatchingChain<Unit> u, String msg) {<NEW_LINE>System.out.println("\r\r*********** " + msg);<NEW_LINE>HashMap<Unit, Integer> numbers = new HashMap<>();<NEW_LINE>{<NEW_LINE>int i = 0;<NEW_LINE>for (Iterator<Unit> it = u.snapshotIterator(); it.hasNext(); ) {<NEW_LINE>numbers.put(it.next(), ... | .getTarget(idx++))); |
472,037 | public void onBindViewHolder(final BookmarksViewHolder holder, final int position) {<NEW_LINE>final AppBookmark item = getItem(position);<NEW_LINE>holder.page.setText(TxtUtils.percentFormatInt(item.getPercent()));<NEW_LINE>FileMeta m = AppDB.get().load(MyPath.toAbsolute(item.path));<NEW_LINE>if (m != null && m.getPages... | page.setVisibility(View.VISIBLE); |
1,587,257 | private void drawGraph(Canvas canvas) {<NEW_LINE>mPaint.setPathEffect(null);<NEW_LINE>mPaint.<MASK><NEW_LINE>mPaint.setColor(getResources().getColor(R.color.dk_color_4c00C9F4));<NEW_LINE>mPaint.setStrokeWidth(GRAPH_STROKE_WIDTH);<NEW_LINE>mPaint.setAntiAlias(true);<NEW_LINE>if (drawLeftLine) {<NEW_LINE>float middleValu... | setStyle(Paint.Style.FILL); |
422,192 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.s... | int) event.getY()); |
1,734,419 | private boolean startProcess() {<NEW_LINE>log.fine(processInstance.toString());<NEW_LINE>boolean started = false;<NEW_LINE>// hengsin, bug [ 1633995 ]<NEW_LINE>boolean clientOnly = false;<NEW_LINE>if (!processInstance.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {<NEW_LINE>try {<NEW_LINE>Class<?> proce... | SEVERE, " AppsServer error(1) - " + processInstance, ex); |
1,612,442 | private void initView(View rootView) {<NEW_LINE>if (isEditMode) {<NEW_LINE>initProgressDialog();<NEW_LINE>initLocationManager();<NEW_LINE>LL_diary_time_information = (LinearLayout) rootView.findViewById(R.id.LL_diary_time_information);<NEW_LINE>SP_diary_mood = (Spinner) rootView.findViewById(R.id.SP_diary_mood);<NEW_LI... | IV_diary_weather.setVisibility(View.VISIBLE); |
1,572,606 | public int toDiv(DivStructure div) {<NEW_LINE>int <MASK><NEW_LINE>int fracPart = roundUp(getFractions());<NEW_LINE>if (intPart > 2) {<NEW_LINE>div.setQuot(isNeg() ? DivStructure.MIN_QUOTIENT : DivStructure.MAX_QUOTIENT);<NEW_LINE>div.setRem(0L);<NEW_LINE>return E_DEC_OVERFLOW;<NEW_LINE>}<NEW_LINE>long quot, rem;<NEW_LI... | intPart = roundUp(getIntegers()); |
1,201,068 | private static JSONObject store(V8Frame frame) {<NEW_LINE>JSONObject obj = newJSONObject();<NEW_LINE>obj.put(TYPE, V8Value.Type.Frame.toString());<NEW_LINE>PropertyLong index = frame.getIndex();<NEW_LINE>obj.put(INDEX, getLongOrNull(index));<NEW_LINE>obj.put(FRAME_RECEIVER, store(frame.getReceiver(), true, false));<NEW... | FRAME_DEBUGGER, frame.isDebuggerFrame()); |
955,358 | public CancelCapacityReservationFleetsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CancelCapacityReservationFleetsResult cancelCapacityReservationFleetsResult = new CancelCapacityReservationFleetsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth... | new ArrayList<FailedCapacityReservationFleetCancellationResult>()); |
651,531 | public static void remove(Level world, ItemStack wand, Player player, BlockPos pos) {<NEW_LINE>BlockState air = Blocks.AIR.defaultBlockState();<NEW_LINE>BlockState ogBlock = world.getBlockState(pos);<NEW_LINE>checkNBT(wand);<NEW_LINE>if (!isEnabled(wand))<NEW_LINE>return;<NEW_LINE>Map<BlockPos, BlockState> blockSet = n... | setBlock(position, air, 3); |
997,239 | public void removeDecorator(@Nonnull String id, boolean dirtyMode) {<NEW_LINE><MASK><NEW_LINE>final WindowInfoImpl info = getDecoratorInfoById(id);<NEW_LINE>myDecorator2Info.remove(decorator);<NEW_LINE>myId2Decorator.remove(id);<NEW_LINE>WindowInfoImpl sideInfo = getDockedInfoAt(info.getAnchor(), !info.isSplit());<NEW_... | final ToolWindowInternalDecorator decorator = getDecoratorById(id); |
1,075,597 | private boolean appendEntry(final long index, final PersistedRaftRecord entry, final CompletableFuture<AppendResponse> future) {<NEW_LINE>try {<NEW_LINE>final IndexedRaftLogEntry indexed;<NEW_LINE>indexed = raft.getLog().append(entry);<NEW_LINE>log.trace("Appended {}", indexed);<NEW_LINE>raft.getReplicationMetrics().se... | failAppend(index - 1, future); |
1,771,973 | protected HistoryEntry addPage(final Page page) {<NEW_LINE>final Boolean ignoreNewPages = ignoreNewPages_.get();<NEW_LINE>if (ignoreNewPages != null && ignoreNewPages.booleanValue()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int sizeLimit = window_.getWebClient().getOptions().getHistorySizeLimit();<NEW_LINE>if ... | ).getHistoryPageCacheLimit(), 0); |
153,485 | private HuId aggregateTUsToLU(@NonNull final List<I_M_HU> tusOrVhus) {<NEW_LINE>Check.assumeNotEmpty(tusOrVhus, "at least one TU shall be received from manufacturing order");<NEW_LINE>I_M_HU lu = null;<NEW_LINE>I_M_HU_PI_Item luPIItem = null;<NEW_LINE>if (aggregateToLU.getExistingLU() != null) {<NEW_LINE>final JsonRend... | luId = loadingAndSavingSupportServices.getHuIdByQRCode(qrCode); |
1,185,797 | public void downloadURL(URL url, int index) {<NEW_LINE>try {<NEW_LINE>Document doc = Http.url(url).get();<NEW_LINE>Elements images = doc.select("article.ep-contents img");<NEW_LINE>// Find maximum # of images for optimal filename indexing<NEW_LINE>int epiLog = (int) (Math.floor(Math.log10(episodes.size())) + 1), imgLog... | error("[!] Exception while downloading " + url, e); |
1,305,983 | protected void generateEvidence(IndentWriter writer) {<NEW_LINE>writer.println("Tunnel Handler");<NEW_LINE>writer.indent();<NEW_LINE>writer.println("started=" + started + ", active=" + active);<NEW_LINE>if (init_fail != null) {<NEW_LINE>writer.println("Init fail: " + init_fail);<NEW_LINE>}<NEW_LINE>long now = SystemTim... | writer.println("total remote=" + total_servers); |
210,554 | public static ExchangeMetaData adaptToExchangeMetaData(GateioMarketDataServiceRaw marketDataService) throws IOException {<NEW_LINE>Map<CurrencyPair, CurrencyPairMetaData> currencyPairs = new HashMap<>();<NEW_LINE>Map<Currency, CurrencyMetaData> currencies = new HashMap<>();<NEW_LINE>for (Entry<CurrencyPair, GateioMarke... | > gateioFees = marketDataService.getGateioFees(); |
1,311,988 | private static List<KeyValuePair<String, Object>> flattenParamsValue(Object value, String keyPrefix) {<NEW_LINE>List<KeyValuePair<<MASK><NEW_LINE>// I wish Java had pattern matching :(<NEW_LINE>if (value == null) {<NEW_LINE>flatParams = singleParam(keyPrefix, "");<NEW_LINE>} else if (value instanceof Map<?, ?>) {<NEW_L... | String, Object>> flatParams = null; |
550,925 | public void run() {<NEW_LINE>try {<NEW_LINE>Document beforeReformat = null;<NEW_LINE>beforeReformat = collectChangesBeforeCurrentSettingsAppliance(project);<NEW_LINE>// important not mark as generated not to get the classes before setting language level<NEW_LINE>PsiFile psiFile = createFileFromText(project, myTextToRef... | ), formatted.getText()); |
381,236 | public Request<DeleteCollectionRequest> marshall(DeleteCollectionRequest deleteCollectionRequest) {<NEW_LINE>if (deleteCollectionRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteCollectionRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteCollectionRequest> request = new... | String collectionId = deleteCollectionRequest.getCollectionId(); |
1,315,422 | private void addStubsForUndeclaredProperties(Name n, String alias, Node parent, Node addAfter) {<NEW_LINE>checkState(n.canCollapseUnannotatedChildNames(), n);<NEW_LINE>checkArgument(NodeUtil<MASK><NEW_LINE>checkNotNull(addAfter);<NEW_LINE>if (n.props == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Name p : n.props... | .isStatementBlock(parent), parent); |
1,255,087 | void countBasedSlidingWindow_Failed_And_SlowCalls() {<NEW_LINE>CircuitBreakerConfig config = CircuitBreakerConfig.custom().slidingWindowType(SlidingWindowType.COUNT_BASED).slidingWindowSize(10).failureRateThreshold(70.0f).slowCallRateThreshold(70.0f).slowCallDurationThreshold(Duration.ofSeconds(2)).build();<NEW_LINE>Ci... | registry = CircuitBreakerRegistry.of(config); |
960,308 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,814,360 | protected void ExpandBuff(boolean wrapAround) {<NEW_LINE>char[] newbuffer = new char[bufsize + 2048];<NEW_LINE>int[] newbufline = new int[bufsize + 2048];<NEW_LINE>int[] newbufcolumn = new int[bufsize + 2048];<NEW_LINE>try {<NEW_LINE>if (wrapAround) {<NEW_LINE>System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize ... | newbufline, 0, bufsize - tokenBegin); |
93,633 | public Void visitAnnotation(AnnotationTree node, Void p) {<NEW_LINE>AnnotationMirror <MASK><NEW_LINE>// Warn if a @This annotation is in an illegal location.<NEW_LINE>if (AnnotationUtils.areSame(annot, getTypeFactory().THIS_ANNOTATION)) {<NEW_LINE>TreePath parentPath = getCurrentPath().getParentPath();<NEW_LINE>Tree pa... | annot = TreeUtils.annotationFromAnnotationTree(node); |
403,058 | public static void validateGofish(JReleaserContext context, Distribution distribution, Gofish packager, Errors errors) {<NEW_LINE>JReleaserModel model = context.getModel();<NEW_LINE>Gofish parentPackager = model.getPackagers().getGofish();<NEW_LINE>if (!packager.isActiveSet() && parentPackager.isActiveSet()) {<NEW_LINE... | packager.setActive(Active.NEVER); |
1,160,253 | public void transmit(AMQChannel channel) throws IOException {<NEW_LINE>int channelNumber = channel.getChannelNumber();<NEW_LINE>AMQConnection connection = channel.getConnection();<NEW_LINE>synchronized (assembler) {<NEW_LINE>Method m = this.assembler.getMethod();<NEW_LINE>if (m.hasContent()) {<NEW_LINE>byte[] body = th... | (m.toFrame(channelNumber)); |
874,819 | private byte[] createPubrelBytes(final int packetId, final boolean retained, @Nullable final Long expiry, @Nullable final Long publishTimestamp) {<NEW_LINE>final byte[] result;<NEW_LINE>if (expiry != null && publishTimestamp != null) {<NEW_LINE>result = new byte[Short.BYTES + 1 + Long.BYTES * 2];<NEW_LINE>} else {<NEW_... | serializeLong(publishTimestamp, result, cursor); |
1,428,533 | public View onCreateTextInputView(@NonNull LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle, CalendarConstraints constraints, @NonNull final OnSelectionChangedListener<Pair<Long, Long>> listener) {<NEW_LINE>View root = layoutInflater.inflate(R.layout.mtrl_picker_text_input_date_rang... | EditText startEditText = startTextInput.getEditText(); |
1,264,532 | private void doWork() {<NEW_LINE>if (url == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>FileObject fo;<NEW_LINE>if (url.getProtocol().equals("file")) {<NEW_LINE>// NOI18N<NEW_LINE>fo = FileUtil.toFileObject(new File(url.getPath()));<NEW_LINE>} else {<NEW_LINE>// NOI18N<NEW_LINE>fo = URLMapper.findFileOb... | dobj = DataObject.find(fo); |
1,243,367 | public synchronized boolean reschedule(Function<CclRuleInfo<RescheduleTask>, Boolean> function) {<NEW_LINE>final RescheduleTask currentRescheduleTask = this.rescheduleTask;<NEW_LINE>if (currentRescheduleTask == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>currentRescheduleTask.setWaitEndTs(System.currentTimeMilli... | , sql.length())); |
442,254 | public AutoScalingPolicyDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AutoScalingPolicyDescription autoScalingPolicyDescription = new AutoScalingPolicyDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | JsonToken token = context.getCurrentToken(); |
114,080 | final AssociateIdentityProviderConfigResult executeAssociateIdentityProviderConfig(AssociateIdentityProviderConfigRequest associateIdentityProviderConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateIdentityProviderConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
411,490 | public static double itakuraSaitoDist(double[] speechFrame1, double[] speechFrame2, int fftSize, int lpOrder) {<NEW_LINE>double[] preemphasizedFrame1 = SignalProcUtils.applyPreemphasis(speechFrame1, 0.97);<NEW_LINE>double[] preemphasizedFrame2 = SignalProcUtils.applyPreemphasis(speechFrame2, 0.97);<NEW_LINE>// Windowin... | w2.apply(windowedSpeechFrame2, 0); |
457,102 | public void marshall(IntentSummary intentSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (intentSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(intentSummary.getIntentId(), INTENTID_BINDING... | e.getMessage(), e); |
593,952 | public JsonObject toJson() {<NEW_LINE>JsonObject jsonObject = new JsonObject();<NEW_LINE>if (libraryPath != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>jsonObject.addProperty("kind", kind);<NEW_LINE>if (name != null) {<NEW_LINE>jsonObject.addProperty("name", name);<NEW_LINE>}<NEW_LINE>if (typeArguments != null) {<NEW_L... | jsonObject.addProperty("libraryPath", libraryPath); |
1,276,180 | public static GetTaskFileResultListResponse unmarshall(GetTaskFileResultListResponse getTaskFileResultListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTaskFileResultListResponse.setRequestId(_ctx.stringValue("GetTaskFileResultListResponse.RequestId"));<NEW_LINE>getTaskFileResultListResponse.setDataSize(_ctx.intege... | ("GetTaskFileResultListResponse.Data[" + i + "].IsHitRule")); |
1,082,720 | public PyTableFnBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>BatchOperator<<MASK><NEW_LINE>JsonObject fnSpec = new JsonObject();<NEW_LINE>fnSpec.add("classObject", JsonConverter.gson.toJsonTree(getClassObject()));<NEW_LINE>fnSpec.addProperty("classObjectType", getClassObjectType());<NEW_LINE>fnSpec.addProper... | ?> in = checkAndGetFirst(inputs); |
311,051 | public void initialize(OptionValues options, Iterable<DebugHandlersFactory> factories, HotSpotProviders providers, GraalHotSpotVMConfig config, HotSpotAllocationSnippets.Templates allocationSnippetTemplates) {<NEW_LINE>super.initialize(options, runtime, providers);<NEW_LINE>assert target == providers.getCodeCache().get... | HotSpotIsArraySnippets(), options, providers); |
1,343,622 | protected void writeInternal(BeltData d) {<NEW_LINE>super.writeInternal(d);<NEW_LINE>long addr = writePointer;<NEW_LINE>MemoryUtil.memPutFloat(addr + 26, d.qX);<NEW_LINE>MemoryUtil.memPutFloat(addr + 30, d.qY);<NEW_LINE>MemoryUtil.memPutFloat(addr + 34, d.qZ);<NEW_LINE>MemoryUtil.memPutFloat(addr + 38, d.qW);<NEW_LINE>... | addr + 54, d.minV); |
1,621,385 | protected Object convertEscaped(Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Matcher matcher = Pattern.compile("(.*)!\\{(.*)\\}").matcher((String) value);<NEW_LINE>if (matcher.matches()) {<NEW_LINE>String stringValue = matcher.group(1);<NEW_LINE>try {<NEW_LINE>Class<?> aClass ... | extends Enum>) aClass, stringValue); |
1,586,369 | public String emitFunction(BIRNode.BIRFunction func, int tabs) {<NEW_LINE>String funcString = "";<NEW_LINE>funcString += emitTabs(tabs);<NEW_LINE>funcString += emitFlags(func.flags);<NEW_LINE>if (!funcString.equals("")) {<NEW_LINE>funcString += emitSpaces(1);<NEW_LINE>}<NEW_LINE>funcString += emitName(func.name);<NEW_L... | func.errorTable, tabs + 1); |
928,268 | public static void convert(Frame input, ImageBase output, boolean swapRgb, DogArray_I8 work) {<NEW_LINE>if (work == null)<NEW_LINE>work = new DogArray_I8();<NEW_LINE>Buffer <MASK><NEW_LINE>if (!(data instanceof ByteBuffer)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ByteBuffer bb = (ByteBuffer) data;<NEW_LINE>output.reshap... | data = input.image[0]; |
1,789,006 | public SNewRevisionAdded convertToSObject(NewRevisionAdded input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SNewRevisionAdded result = new SNewRevisionAdded();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LI... | ().ordinal()]); |
15,424 | public static ListTakeStockOrderTasksResponse unmarshall(ListTakeStockOrderTasksResponse listTakeStockOrderTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTakeStockOrderTasksResponse.setRequestId(_ctx.stringValue("ListTakeStockOrderTasksResponse.RequestId"));<NEW_LINE>listTakeStockOrderTasksResponse.setPageSize... | (_ctx.booleanValue("ListTakeStockOrderTasksResponse.Success")); |
309,619 | public boolean removeLogrotateFile() {<NEW_LINE>boolean deleted = false;<NEW_LINE>try {<NEW_LINE>if (Files.exists(getLogrotateConfPath())) {<NEW_LINE>deleted = Files.deleteIfExists(getLogrotateConfPath());<NEW_LINE>log.debug("Deleted {} : {}", getLogrotateConfPath(), deleted);<NEW_LINE>} else {<NEW_LINE>deleted = true;... | "Deleted {} : {}", getLogrotateCronPath(), cronDeleted); |
1,611,402 | public void indexDrop(IndexDescriptor index) throws SchemaKernelException {<NEW_LINE>if (index == IndexDescriptor.NO_INDEX) {<NEW_LINE>throw new DropIndexFailureException("No index was specified.");<NEW_LINE>}<NEW_LINE>if (index.isTokenIndex()) {<NEW_LINE>assertTokenAndRelationshipPropertyIndexesSupported("Failed to dr... | IndexBelongsToConstraintException(index.schema()); |
13,997 | private List<ProfiledSpan> buildProfiledSpanList(SegmentObject segmentObject) {<NEW_LINE>List<ProfiledSpan> spans = new ArrayList<>();<NEW_LINE>segmentObject.getSpansList().forEach(spanObject -> {<NEW_LINE>ProfiledSpan span = new ProfiledSpan();<NEW_LINE>span.setSpanId(spanObject.getSpanId());<NEW_LINE>span.setParentSp... | setKey(data.getKey()); |
1,782,779 | public static ClusterInfo discoverClusterInfo(Settings settings, Log log) {<NEW_LINE>ClusterName remoteClusterName = null;<NEW_LINE>EsMajorVersion remoteVersion = null;<NEW_LINE>String clusterName = settings.getProperty(InternalConfigurationOptions.INTERNAL_ES_CLUSTER_NAME);<NEW_LINE>String clusterUUID = settings.getPr... | , ConfigurationOptions.ES_NODES_WAN_ONLY), ex); |
1,412,349 | final PutIntegrationResult executePutIntegration(PutIntegrationRequest putIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
331,717 | public void object(String type, int keyword, int offset, int length) {<NEW_LINE>AttributeSet aset;<NEW_LINE>switch(type) {<NEW_LINE>case "CLNumber":<NEW_LINE>aset = sc.addAttribute(SimpleAttributeSet.EMPTY, StyleConstants.Foreground, numberColor);<NEW_LINE>highlight(<MASK><NEW_LINE>break;<NEW_LINE>case "CLString":<NEW_... | mEditor, offset, length, aset); |
255,051 | private void collectTimeseriesSchema(List<String> prefixPaths, List<TimeseriesSchema> timeseriesSchemas) throws MetadataException {<NEW_LINE>// Due to add/remove node, some slots may in the state of PULLING, which will not contains the<NEW_LINE>// corresponding schemas.<NEW_LINE>// In this case, we need to pull series ... | pullTimeSeriesSchemas(partitionGroup, paths, timeseriesSchemas); |
660,519 | static MultiSearchResponse reduce(int numRequest, Map<String, List<Tuple<Integer, SearchRequest>>> itemsPerIndex, Map<String, Tuple<MultiSearchResponse, Exception>> shardResponses) {<NEW_LINE>MultiSearchResponse.Item[] items = new MultiSearchResponse.Item[numRequest];<NEW_LINE>for (Map.Entry<String, Tuple<MultiSearchRe... | shardResponse.getResponses()[i]; |
1,652,816 | public static void initFontLabelEdgeAttr(ST_Agedge_s e, ST_fontinfo fi, ST_fontinfo lfi) {<NEW_LINE>ENTERING("ak3pxrdrq900wymudwnjmbito", "initFontLabelEdgeAttr");<NEW_LINE>try {<NEW_LINE>if (N(fi.fontname))<NEW_LINE>initFontEdgeAttr(e, fi);<NEW_LINE>lfi.fontsize = late_double(e, Z.z().E_labelfontsize, fi.fontsize, MIN... | ).E_labelfontname, fi.fontname); |
1,035,630 | public LayoutAlgorithm.Builder<AttributedVertex, ?, ?> apply(String name) {<NEW_LINE>switch(name) {<NEW_LINE>case GEM:<NEW_LINE>return GEMLayoutAlgorithm.edgeAwareBuilder();<NEW_LINE>case FORCED_BALANCED:<NEW_LINE>return KKLayoutAlgorithm.<AttributedVertex>builder().preRelaxDuration(1000);<NEW_LINE>case FORCE_DIRECTED:... | ).layering(Layering.COFFMAN_GRAHAM); |
641,875 | public void onInputSizeChanged(final int width, final int height) {<NEW_LINE>super.onInputSizeChanged(width, height);<NEW_LINE>int size = filters.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>filters.get(i).onInputSizeChanged(width, height);<NEW_LINE>}<NEW_LINE>if (frameBuffers != null && (frameWidth != wi... | glGenFramebuffers(1, frameBuffers, i); |
1,286,801 | final PutEmailMonitoringConfigurationResult executePutEmailMonitoringConfiguration(PutEmailMonitoringConfigurationRequest putEmailMonitoringConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEmailMonitoringConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
721,279 | protected final void sendInternal() throws StatusException {<NEW_LINE>try (ParcelHolder parcel = ParcelHolder.obtain()) {<NEW_LINE>int flags = 0;<NEW_LINE>// Placeholder for flags. Will be filled in below.<NEW_LINE>parcel.<MASK><NEW_LINE>parcel.get().writeInt(transactionIndex++);<NEW_LINE>switch(outboundState) {<NEW_LI... | get().writeInt(0); |
59,834 | private Mono<PagedResponse<EventSubscriptionInner>> listGlobalByResourceGroupNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) ... | )).readOnly())); |
997,553 | private Color evalColor(String color) {<NEW_LINE>Color targetColor = Color.RED;<NEW_LINE>if (color == null) {<NEW_LINE>color = Settings.DefaultHighlightColor;<NEW_LINE>}<NEW_LINE>if (color.startsWith("#")) {<NEW_LINE>if (color.length() > 7) {<NEW_LINE>// might be the version #nnnnnnnnn<NEW_LINE>if (color.length() == 10... | .substring(4, 7)); |
630,815 | public void onArmorStandInteract(final PlayerInteractAtEntityEvent event) {<NEW_LINE>final User user = ess.getUser(event.getPlayer());<NEW_LINE>if (!(event.getRightClicked() instanceof ArmorStand)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (prot.getSettingBool(AntiBuildConfig.disable_build) && !user.canBuild() && !user... | .ARMOR_STAND.toString())); |
168,315 | public static ListApiMsgRecordsResponse unmarshall(ListApiMsgRecordsResponse listApiMsgRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApiMsgRecordsResponse.setRequestId(_ctx.stringValue("ListApiMsgRecordsResponse.RequestId"));<NEW_LINE>listApiMsgRecordsResponse.setPageIndex(_ctx.integerValue("ListApiMsgRecor... | (_ctx.longValue("ListApiMsgRecordsResponse.Cnt")); |
177,066 | public I_PP_Product_BOM createBOM(@NonNull final ProductBOMVersionsId bomVersionsId, @NonNull final BOMCreateRequest request) {<NEW_LINE>final OrgId orgId = request.getOrgId();<NEW_LINE>final I_PP_Product_BOM bomRecord = newInstance(I_PP_Product_BOM.class);<NEW_LINE>bomRecord.setAD_Org_ID(orgId.getRepoId());<NEW_LINE>b... | setName(request.getProductName()); |
1,215,951 | final AssociateBrowserSettingsResult executeAssociateBrowserSettings(AssociateBrowserSettingsRequest associateBrowserSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateBrowserSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
670,799 | protected int letterUnderCursor(float x) {<NEW_LINE>if (linesBreak.size > 0) {<NEW_LINE>if (cursorLine * 2 >= linesBreak.size) {<NEW_LINE>return text.length();<NEW_LINE>} else {<NEW_LINE>float[] glyphPositions = this.glyphPositions.items;<NEW_LINE>int start = linesBreak.items[cursorLine * 2];<NEW_LINE>x += glyphPositio... | items[cursorLine * 2 + 1]; |
264,662 | public OrcWriterOptions.Builder toOrcWriterOptionsBuilder() {<NEW_LINE>DefaultOrcWriterFlushPolicy flushPolicy = DefaultOrcWriterFlushPolicy.builder().withStripeMinSize(stripeMinSize).withStripeMaxSize(stripeMaxSize).withStripeMaxRowCount(stripeMaxRowCount).build();<NEW_LINE>OptionalInt resolvedCompressionLevel = Optio... | resolvedCompressionLevel = OptionalInt.of(compressionLevel); |
601,515 | public PrivateBinDataV1 encrypt(String strToEncrypt) throws Exception {<NEW_LINE>byte[] iv = randomInitializationVector();<NEW_LINE>byte[] salt = generateRandomSalt();<NEW_LINE>byte[] key = DeEncryptor.generateRandomKey(AES_KEY_LENGTH);<NEW_LINE>SecretKey <MASK><NEW_LINE>Cipher cipher = getCipher();<NEW_LINE>GCMParamet... | secretKey = generateDerivedkey(key, salt); |
626,571 | private Optional<File> downloadAndExtract(URL url, File targetFile) throws IOException {<NEW_LINE><MASK><NEW_LINE>File targetFolder = targetFile.getParentFile();<NEW_LINE>File tempDir = config.isAvoidTmpFolder() ? targetFolder : createTempDirectory("").toFile();<NEW_LINE>File temporaryFile = new File(tempDir, targetFil... | log.info("Downloading {}", url); |
1,023,088 | protected String doIt() {<NEW_LINE>final I_AD_Tab adTab = getRecord(I_AD_Tab.class);<NEW_LINE>if (adTab.getTemplate_Tab_ID() > 0) {<NEW_LINE>throw new AdempiereException("Not allowed when using a template tab");<NEW_LINE>}<NEW_LINE>//<NEW_LINE>int count = 0;<NEW_LINE>for (final I_AD_Column adColumn : retrieveColumns(ad... | warn("Failed to create field for {}", adColumn, e); |
693,785 | public String makeSortString(String value, String language) {<NEW_LINE>if (filters == null) {<NEW_LINE>// Log an error if the class is not configured correctly<NEW_LINE>log.error("No filters defined for " + this.getClass().getName());<NEW_LINE>} else {<NEW_LINE>// Normalize language into a two or three character code<N... | [idx].filter(value); |
1,450,327 | private void markAggregationRecordAsSubmitted(AggregationEntry aggregationEntry) {<NEW_LINE>// Update the attribute that marks an item as submitted<NEW_LINE>Map<String, AttributeValue> aggregationEntryKey = new HashMap<>();<NEW_LINE>AttributeValue tenantIDValue = AttributeValue.builder().s(aggregationEntry.getTenantID(... | error(e.getMessage()); |
20,309 | public boolean visualizationVarStatus(ModStatusVar pchkInput, Command cmd, Item item, EventPublisher eventPublisher) {<NEW_LINE>LcnDefs.Var var = this.regId == 0 ? LcnDefs.Var<MASK><NEW_LINE>if (pchkInput.getLogicalSourceAddr().equals(this.addr) && pchkInput.getVar() == var) {<NEW_LINE>if (item.getAcceptedDataTypes().c... | .R1VARSETPOINT : LcnDefs.Var.R2VARSETPOINT; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.