idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
710,569 | private boolean buildCycleGraph(TimeLineRowData row) {<NEW_LINE>MTag[] keyFrames = row.mKeyFrames.toArray(new MTag[0]);<NEW_LINE>if (row.mKeyProp.contains(",")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Arrays.sort(keyFrames, new Comparator<MTag>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(MTag t1, ... | amp, offset, curveType, row); |
528,705 | private void animateToolbar(final float toY) {<NEW_LINE>float layoutTranslationY = ViewCompat.getTranslationY(mInterceptionLayout);<NEW_LINE>if (layoutTranslationY != toY) {<NEW_LINE>ValueAnimator animator = ValueAnimator.ofFloat(ViewCompat.getTranslationY(mInterceptionLayout), toY).setDuration(200);<NEW_LINE>animator.... | .LayoutParams) mInterceptionLayout.getLayoutParams(); |
856,404 | protected ListPopup createPopup(DataContext context) {<NEW_LINE>WidgetState state = getWidgetState(context<MASK><NEW_LINE>Editor editor = getEditor();<NEW_LINE>PsiFile psiFile = getPsiFile();<NEW_LINE>if (state instanceof MyWidgetState && editor != null && psiFile != null) {<NEW_LINE>final CodeStyleStatusBarUIContribut... | .getData(CommonDataKeys.VIRTUAL_FILE)); |
407,971 | private void renderSlices(RenderContext ctx, ProcessSummaryTrack.Data data, double h) {<NEW_LINE>// TODO: dedupe with CpuRenderer<NEW_LINE>TimeSpan visible = state.getVisibleTime();<NEW_LINE>Selection<Long> selected = state.getSelection(Selection.Kind.Cpu);<NEW_LINE>List<Highlight> visibleSelected = Lists.newArrayList(... | (h / 2) - 4); |
1,503,318 | public static StatementExecutorResponse execute(final ConfiguredStatement<ListProperties> statement, final SessionProperties sessionProperties, final KsqlExecutionContext executionContext, final ServiceContext serviceContext) {<NEW_LINE>final KsqlConfigResolver resolver = new KsqlConfigResolver();<NEW_LINE>final Map<St... | getConfig(false).getAllConfigPropsWithSecretsObfuscated(); |
852,757 | public ActivityController<? extends Activity> startActivitySyncInternal(Intent intent, @Nullable Bundle activityOptions) {<NEW_LINE>ActivityInfo ai = intent.resolveActivityInfo(getTargetContext().getPackageManager(), 0);<NEW_LINE>if (ai == null) {<NEW_LINE>throw new RuntimeException("Unable to resolve activity for " + ... | visible().windowFocusChanged(true); |
763,263 | protected boolean createMarkup() throws CancelledException, InvalidDataTypeException {<NEW_LINE>monitor.checkCanceled();<NEW_LINE>Program program = model.getProgram();<NEW_LINE><MASK><NEW_LINE>if (rtti0Model == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>monitor.checkCanceled();<NEW_LINE>// Label<NEW_LINE>boolean... | TypeDescriptorModel rtti0Model = model.getRtti0Model(); |
1,077,299 | public Expr apply(Expr expr, Analyzer analyzer) {<NEW_LINE>if (!(expr instanceof FunctionCallExpr)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>FunctionCallExpr fn = ((FunctionCallExpr) expr);<NEW_LINE>if (fn.getFnName().getFunction().equalsIgnoreCase("from_unixtime") || fn.getFnName().getFunction().equalsIgnoreCase("d... | (FunctionCallExpr) fn.clone(); |
739,728 | public TransferResult<CFValue, CFStore> visitAssignment(AssignmentNode node, TransferInput<CFValue, CFStore> in) {<NEW_LINE>TransferResult<CFValue, CFStore> result = super.visitAssignment(node, in);<NEW_LINE>Node expNode = node.getExpression();<NEW_LINE>// strip off typecast if any<NEW_LINE>Node expNodeSansCast = (expN... | dim = acNode.getDimension(0); |
1,369,872 | public void testSetGetJMSReplyTo_B_SecOn(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean exceptionFlag = false;<NEW_LINE>JMSContext jmsContext = QCFBindings.createContext();<NEW_LINE>JMSProducer jmsProducer = jmsContext.createProducer();<NEW_LINE>jmsProducer.setJMSReplyTo(r... | qr = jmsContRec.createConsumer(queue2); |
1,598,250 | private List<NameValueCountPair> listCreatorUnitPair(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Task.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.clas... | creatorUnit)).where(p); |
524,987 | private void processOne(String cmd, String taskName, HttpServletResponse response) {<NEW_LINE>LOG.info("start to processOne admin task:{},sort task:{}", cmd, taskName);<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>try {<NEW_LINE>String beanName = JMX_DOMAIN + DOMAIN_SEPARATOR + JMX_TYPE + PROPERTY_EQUA... | mbean = mbs.getObjectInstance(objName); |
1,819,077 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "symbol", "price", "sumVol" };<NEW_LINE>String stmtText = "@name('s0') select symbol, price, sum(volume) as sumVol " + "from SupportMarketDataBean#length(5) " + "group by symbol having sum(volume) > 20";<NEW_LINE>env.compileDeploy(st... | , "TAC", -6, 2); |
710,179 | public void DASTORE(Object conc_array, int conc_index, String className, String methodName) {<NEW_LINE>// get symbolic arguments<NEW_LINE>RealValue symb_value = env.topFrame().operandStack.popFp64();<NEW_LINE>IntegerValue symb_index = env.topFrame<MASK><NEW_LINE>ReferenceExpression array_ref = env.topFrame().operandSta... | ().operandStack.popBv32(); |
1,389,347 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see javax.swing.JComponent#paint(java.awt.Graphics)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void paintComponent(final Graphics g) {<NEW_LINE>if (getMainView() == null)<NEW_LINE>return;<NEW_LINE>final PaintingMode paintingMode = map.getPaintingMode();<NEW_LINE>if (paintingM... | setRenderingHint(RenderingHints.KEY_ANTIALIASING, renderingHint); |
544,203 | private void initExporter(DBRProgressMonitor monitor) throws DBException {<NEW_LINE>DBSObject targetDB = checkTargetContainer(monitor);<NEW_LINE>DBPDataSourceContainer dataSourceContainer = targetDB<MASK><NEW_LINE>if (!dataSourceContainer.hasModifyPermission(DBPDataSourcePermission.PERMISSION_IMPORT_DATA)) {<NEW_LINE>t... | .getDataSource().getContainer(); |
1,543,069 | private void workProcessorOperatorStateMonitor(WorkProcessor.ProcessState<Page> state, int operatorIndex) {<NEW_LINE>// report timing for current operator<NEW_LINE>WorkProcessorOperatorContext context = workProcessorOperatorContexts.get(operatorIndex);<NEW_LINE>timer.recordOperationComplete(context.operatorTiming);<NEW... | getPhysicalInputDataSize().toBytes()); |
456,703 | private void init() {<NEW_LINE>exceptionUnmarshallers.add(new MissingCustomsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidVersionExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new MultipleRegionsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new CreateJobQuotaExc... | .add(new InvalidParameterExceptionUnmarshaller()); |
1,232,705 | protected void processDragFinish(MouseEvent event, boolean willDragOutStart) {<NEW_LINE>super.processDragFinish(event, willDragOutStart);<NEW_LINE>endDrag(willDragOutStart);<NEW_LINE>final JBTabsPosition position = myTabs.getTabsPosition();<NEW_LINE>if (!willDragOutStart && myTabs.isAlphabeticalMode() && position != JB... | myTabs.relayout(true, false); |
582,360 | protected ValidationInfo doValidate() {<NEW_LINE>VirtualFile selectedFile = fileTextField.getSelectedFile();<NEW_LINE>if (selectedFile == null || !selectedFile.exists()) {<NEW_LINE>return new ValidationInfo(<MASK><NEW_LINE>} else if (!selectedFile.isDirectory()) {<NEW_LINE>return new ValidationInfo("File is not a direc... | "File does not exist", fileTextField.getField()); |
1,414,396 | protected JComponent createNorthPanel() {<NEW_LINE>JPanel panel = new JPanel(<MASK><NEW_LINE>if (myImage != null) {<NEW_LINE>JLabel iconLabel = new JBLabel(myImage);<NEW_LINE>Container container = new Container();<NEW_LINE>container.setLayout(new BorderLayout());<NEW_LINE>container.add(iconLabel, BorderLayout.NORTH);<N... | new BorderLayout(15, 0)); |
1,373,335 | private Set<String> checkActions(final Set<String> schemeIds, final List<WorkflowAction> actions, final User user) throws AlreadyExistException {<NEW_LINE>final ImmutableSet.Builder<String> setBuilder = new ImmutableSet.Builder<>();<NEW_LINE>for (final WorkflowAction action : actions) {<NEW_LINE>WorkflowAction repeatAc... | action.getId(), user); |
1,232,943 | public void initXPath(Compiler compiler, String expression, PrefixResolver namespaceContext) throws javax.xml.transform.TransformerException {<NEW_LINE>m_ops = compiler;<NEW_LINE>m_namespaceContext = namespaceContext;<NEW_LINE>m_functionTable = compiler.getFunctionTable();<NEW_LINE>Lexer lexer = new <MASK><NEW_LINE>lex... | Lexer(compiler, namespaceContext, this); |
1,434,937 | public Pose2d updateWithTime(double currentTimeSeconds, Rotation2d gyroAngle, SwerveModuleState... moduleStates) {<NEW_LINE>double period = m_prevTimeSeconds >= 0 ? currentTimeSeconds - m_prevTimeSeconds : 0.0;<NEW_LINE>m_prevTimeSeconds = currentTimeSeconds;<NEW_LINE>var angle = gyroAngle.plus(m_gyroOffset);<NEW_LINE>... | m_previousAngle).getRadians())); |
1,588,771 | public ApiResponse<File> favoritesUpdateWithHttpInfo(String id, UpdateFavoriteRequest updateFavoriteRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = updateFavoriteRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the ... | = new String[] { "oauth2" }; |
998,526 | public Project createProjectRefsAndExprs(RelNode projChild, boolean adjust, boolean rightSide, RelNode origProj) {<NEW_LINE>List<RexNode> preserveExprs;<NEW_LINE>int nInputRefs;<NEW_LINE>int offset;<NEW_LINE>if (rightSide) {<NEW_LINE>preserveExprs = rightPreserveExprs;<NEW_LINE>nInputRefs = nRightProject;<NEW_LINE>offs... | ().getName())); |
1,024,215 | public APIGatewayProxyResponseEvent enableTenant(Map<String, Object> event, Context context) {<NEW_LINE>if (Utils.warmup(event)) {<NEW_LINE>// LOGGER.info("Warming up");<NEW_LINE>return new APIGatewayProxyResponseEvent().withHeaders(CORS).withStatusCode(200);<NEW_LINE>}<NEW_LINE>long startTimeMillis = System.currentTim... | = System.currentTimeMillis() - startTimeMillis; |
1,694,944 | private static void synthesizeClinitMethod(Type type) {<NEW_LINE>SourcePosition sourcePosition = type.getSourcePosition();<NEW_LINE>FieldDescriptor isInitializedFieldDescriptor = <MASK><NEW_LINE>// Add the $isInitialized static field to the type.<NEW_LINE>type.addMember(Field.Builder.from(isInitializedFieldDescriptor).... | getInitializedField(type.getTypeDescriptor()); |
1,838,254 | public static Uri storeImage(Context context, File srcFile, String mime) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {<NEW_LINE>File dstFile = new File(context.getExternalFilesDir(Environment.DIRECTORY_PICTURES), srcFile.getName());<NEW_LINE>boolean succeed = FileUtils.copyFile(srcFile, dstFile);<NEW_... | Images.Media.EXTERNAL_CONTENT_URI, values); |
207,005 | public ConsumeQueue findConsumeQueue(String topic, int queueId) {<NEW_LINE>ConcurrentMap<Integer, ConsumeQueue> map = consumeQueueTable.get(topic);<NEW_LINE>if (null == map) {<NEW_LINE>ConcurrentMap<Integer, ConsumeQueue> newMap = new ConcurrentHashMap<Integer, ConsumeQueue>(128);<NEW_LINE>ConcurrentMap<Integer, Consum... | ).getMappedFileSizeConsumeQueue(), this); |
701,341 | public MessageCommentReactionEntity postMessageCommentReactions(MessageCommentReactionsBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_L... | throw new ApiException(400, "Missing the required parameter 'body' when calling postMessageCommentReactions"); |
566,182 | public static void main(String[] args) {<NEW_LINE>Exercise34_HashCost hashCost = new Exercise34_HashCost();<NEW_LINE>StdOut.println("Hash table with Separate Chaining\n");<NEW_LINE>StdOut.println("Integer keys");<NEW_LINE>HashTable<Integer, Integer> separateChainingHashTableIntegerHashCost = hashCost.new SeparateChaini... | .new LinearProbingHashTableHashCost<>(10000); |
1,384,453 | // Network<NEW_LINE>@Override<NEW_LINE>public void readPayload(int id, PacketBuffer bufIn, Side msgSide) throws IOException {<NEW_LINE>PacketBufferBC buffer = PacketBufferBC.asPacketBufferBc(bufIn);<NEW_LINE>if (msgSide == Side.CLIENT) {<NEW_LINE>if (id == NET_CREATE_ITEM) {<NEW_LINE>int stackId = buffer.readInt();<NEW... | int count = buffer.readUnsignedShort(); |
65,435 | private static URI toURI(File f) {<NEW_LINE>if (fileToPath != null) {<NEW_LINE>try {<NEW_LINE>URI u = (URI) pathToUri.invoke(fileToPath.invoke(f));<NEW_LINE>if (u.toString().startsWith("file:///")) {<NEW_LINE>// #214131 workaround<NEW_LINE>u = new URI(/* "file" */<NEW_LINE>u.getScheme(), /* null */<NEW_LINE>u.getUserIn... | "could not convert " + f + " to URI", x); |
499,223 | public void train(RegressionDataSet dataSet, boolean parallel) {<NEW_LINE>if (dataSet.getNumCategoricalVars() > 0)<NEW_LINE>throw new RuntimeException("Multiple Linear Regression only works with numerical values");<NEW_LINE>int sda = dataSet.size();<NEW_LINE>DenseMatrix X = new DenseMatrix(dataSet.size(), dataSet.getNu... | Matrix.diagMult(weights, X); |
914,124 | final ListCommandInvocationsResult executeListCommandInvocations(ListCommandInvocationsRequest listCommandInvocationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCommandInvocationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | false), new ListCommandInvocationsResultJsonUnmarshaller()); |
815,622 | final public Expression ListExpression2(Env env) throws ParseException {<NEW_LINE>List<Expression> exprs = new ArrayList<Expression>();<NEW_LINE>Expression expr;<NEW_LINE>jj_consume_token(31);<NEW_LINE>expr = Expression(env);<NEW_LINE>exprs.add(expr);<NEW_LINE>label_9: while (true) {<NEW_LINE>switch((jj_ntk == -1) ? jj... | ListExpression(Expressions.TYPE_LIST, exprs); |
971,075 | public Map.Entry<StubConfiguration, File> downloadAndUnpackStubJar(StubConfiguration stubConfiguration) {<NEW_LINE>String version = stubConfiguration.version;<NEW_LINE>final FromPropsThenFromSysEnv resolver = new FromPropsThenFromSysEnv(this.stubRunnerOptions);<NEW_LINE>List<String> tags = tags(version, resolver);<NEW_... | providerName, pacts, contractsFolder, mappingsFolder); |
426,994 | private Exercise21_ComparableTransactions[] generateRandomTransactions(int numberOfObjects) {<NEW_LINE>Exercise21_ComparableTransactions[] transactions = new Exercise21_ComparableTransactions[numberOfObjects];<NEW_LINE>for (int i = 0; i < numberOfObjects; i++) {<NEW_LINE>String who = "Client " + (i + 1);<NEW_LINE>int m... | StdRandom.uniform(12) + 1; |
1,148,490 | public static void populateCopyObjectHeaders(CopyObjectRequest copyObjectRequest, Map<String, String> headers) {<NEW_LINE>String copySourceHeader = "/" + copyObjectRequest.getSourceBucketName() + "/" + HttpUtil.urlEncode(copyObjectRequest.<MASK><NEW_LINE>headers.put(OSSHeaders.COPY_OBJECT_SOURCE, copySourceHeader);<NEW... | getSourceKey(), OSSConstants.DEFAULT_CHARSET_NAME); |
673,093 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | Utils.getValueFromIdByName(id, "operations"); |
1,226,048 | final ListOfferingsResult executeListOfferings(ListOfferingsRequest listOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOfferingsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListOfferingsRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
395,988 | private void importExtension() {<NEW_LINE>if (!program.hasExclusiveAccess()) {<NEW_LINE>Msg.showError(this, this, "Import Failure", "Must have an exclusive checkout to import a new extension");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = getFileFromUser(null);<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE... | tableElements.set(pos, newEl); |
1,254,449 | public boolean contains(java.awt.Point p) {<NEW_LINE>// other relations which are selected are prioritized<NEW_LINE>for (GridElement other : HandlerElementMap.getHandlerForElement(this).getDrawPanel().getGridElements()) {<NEW_LINE>Selector s = HandlerElementMap.getHandlerForElement(other).getDrawPanel().getSelector();<... | (Converter.convert(p)); |
617,749 | private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String virtualClusterName, VirtualClusterUpdate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requ... | ), apiVersion, parameters, context); |
252,745 | public void addNoteTextPara(String noteText, String lang) {<NEW_LINE>// eg "en-AU"<NEW_LINE>org.docx4j.dml.ObjectFactory dmlObjectFactory = new org.docx4j.dml.ObjectFactory();<NEW_LINE>CTTextParagraph textparagraph = dmlObjectFactory.createCTTextParagraph();<NEW_LINE>// Create object for endParaRPr<NEW_LINE>CTRegularT... | getSpOrGrpSpOrGraphicFrame().get(0); |
1,401,911 | public URL[] stabilize(@NotNull final List<URL> pUrls) {<NEW_LINE>URL[] result = null;<NEW_LINE>try {<NEW_LINE>final Optional<MASK><NEW_LINE>if (projectDir.isPresent()) {<NEW_LINE>final List<URL> stabilizedList = new ArrayList<>(pUrls.size() + 1);<NEW_LINE>for (final URL url : pUrls) {<NEW_LINE>URL stabilizedUrl = url;... | <Path> projectDir = getProjectDir(); |
872,329 | final DescribeManagedJobTemplateResult executeDescribeManagedJobTemplate(DescribeManagedJobTemplateRequest describeManagedJobTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeManagedJobTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT"); |
282,667 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>binding = EventDetailBinding.inflate(inflater, container, false);<NEW_LINE>binding.ticketAnalytics.btnChartFullScreen.setOnClickListener(v -> {<NEW_LINE>Intent openChart = new Intent(<MASK><NEW_LINE>openChart.pu... | getActivity(), ChartActivity.class); |
322,986 | private static AccessibilityMap calculateTimeDependentAccessibilityMap(IsochroneSearchParameters parameters, FlagEncoder encoder, GraphHopperStorage graph, EdgeFilter edgeFilter, QueryGraph queryGraph, GHPoint3D snappedPosition, int fromId, Weighting weighting) {<NEW_LINE>// Time-dependent means traffic dependent for i... | () ? Integer.MIN_VALUE : fromId; |
961,236 | public static void main(String[] args) {<NEW_LINE>String a = "923456789";<NEW_LINE>String b = "12345";<NEW_LINE>EditDistanceRecursive solver = new EditDistanceRecursive(a, b, 100, 4, 2);<NEW_LINE>System.out.println(solver.editDistance());<NEW_LINE>a = "12345";<NEW_LINE>b = "923456789";<NEW_LINE>solver = new EditDistanc... | b, 10, 2, 3); |
1,189,066 | public static double[][] lsfAnalyzeWavFile(String wavFile, LsfFileHeader params) throws UnsupportedAudioFileException, IOException {<NEW_LINE>AudioInputStream inputAudio = AudioSystem.getAudioInputStream(new File(wavFile));<NEW_LINE>params.samplingRate = (int) inputAudio.getFormat().getSampleRate();<NEW_LINE>int ws = (... | ] frm = new double[ws]; |
274,411 | public void handleMultiMap(Node node) {<NEW_LINE>BeanDefinitionBuilder multiMapConfigBuilder = createBeanBuilder(MultiMapConfig.class);<NEW_LINE>Node attName = node.getAttributes().getNamedItem("name");<NEW_LINE>String name = getTextContent(attName);<NEW_LINE>fillAttributeValues(node, multiMapConfigBuilder);<NEW_LINE>f... | ("splitBrainProtectionName", getTextContent(childNode)); |
1,342,533 | public Polygon createEllipse() {<NEW_LINE>Envelope env = dim.getEnvelope();<NEW_LINE>double xRadius = env.getWidth() / 2.0;<NEW_LINE>double yRadius = env.getHeight() / 2.0;<NEW_LINE>double centreX = env.getMinX() + xRadius;<NEW_LINE>double centreY = env.getMinY() + yRadius;<NEW_LINE>Coordinate[] pts = new Coordinate[nP... | ] = coord(x, y); |
817,027 | public void sendReservationCompleteEmailToOrganizer(PurchaseContext purchaseContext, TicketReservation ticketReservation, Locale language, String username) {<NEW_LINE>Organization organization = organizationRepository.getById(purchaseContext.getOrganizationId());<NEW_LINE>List<String> cc = notificationManager.getCCForE... | summary = orderSummaryForReservationId(reservationId, purchaseContext); |
1,509,059 | protected final void parseAuthorization(RoutingContext ctx, boolean optional, Handler<AsyncResult<String>> handler) {<NEW_LINE>final <MASK><NEW_LINE>final String authorization = request.headers().get(HttpHeaders.AUTHORIZATION);<NEW_LINE>if (authorization == null) {<NEW_LINE>if (optional) {<NEW_LINE>// this is allowed<N... | HttpServerRequest request = ctx.request(); |
723,147 | public void mergeChunks(CompoundTag source, CompoundTag destination, List<Range> ranges, int yOffset) {<NEW_LINE>Integer dataVersion = Helper.intFromCompound(source, "DataVersion");<NEW_LINE>if (dataVersion == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (dataVersion < 2844) {<NEW_LINE>mergeCompoundTagListsFromLevel... | destination, ranges, yOffset, "LiquidsToBeTicked"); |
174,318 | protected boolean addNELAT(JCas jcas, Focus focus, Collection<NamedEntity> NEs) throws AnalysisEngineProcessException {<NEW_LINE>boolean ne_found = false;<NEW_LINE>for (NamedEntity ne : NEs) {<NEW_LINE>ne_found = true;<NEW_LINE>long synset = OpenNlpNamedEntities.neValueToSynset(ne.getValue());<NEW_LINE>POS pos = null;<... | addLATFeature(jcas, AF.LATNE); |
1,488,413 | final CreatePushTemplateResult executeCreatePushTemplate(CreatePushTemplateRequest createPushTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPushTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,421,637 | private boolean performSecondaryAction() {<NEW_LINE>if (UploadService.hasInProgressMediaUploadsForPost(mEditPostRepository.getPost())) {<NEW_LINE>ToastUtils.showToast(EditPostActivity.this, getString(R.string.editor_toast_uploading_please_wait), Duration.SHORT);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (isDiscarda... | mAnalyticsTrackerWrapper.track(Stat.EDITOR_POST_PUBLISH_TAPPED); |
1,645,553 | final GetContextKeysForCustomPolicyResult executeGetContextKeysForCustomPolicy(GetContextKeysForCustomPolicyRequest getContextKeysForCustomPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContextKeysForCustomPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetContextKeysForCustomPolicy"); |
818,663 | private static PsiFile createOrMergeInjectedFile(@Nonnull PsiFile hostPsiFile, @Nonnull PsiDocumentManagerBase documentManager, @Nonnull Place place, @Nonnull DocumentWindowImpl documentWindow, @Nonnull PsiFile psiFile, @Nonnull InjectedFileViewProvider viewProvider) {<NEW_LINE>cacheEverything(place, documentWindow, vi... | (DocumentWindowImpl) viewProvider.getDocument(); |
231,012 | private boolean parseCurrentDNSServersAndRoutes(String line, ArrayList<String> dnscrypt_servers, ArrayList<DNSServerRelays> routes, boolean lockRoutes) {<NEW_LINE>if (line.matches("server_names .+")) {<NEW_LINE>String temp = line.substring(line.indexOf("[") + 1, line.indexOf("]")).trim();<NEW_LINE>temp = temp.replace("... | "'", "").trim(); |
594,024 | public CorsConfigurationSource corsConfigurationSource() {<NEW_LINE>final CorsConfiguration configuration = new CorsConfiguration();<NEW_LINE>configuration.setAllowedOrigins(asList("*"));<NEW_LINE>configuration.setAllowedMethods(asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH"));<NEW_LINE>// setAllowCredentials(t... | final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); |
1,062,786 | final UpdateTableResult executeUpdateTable(UpdateTableRequest updateTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | false), new UpdateTableResultJsonUnmarshaller()); |
458,956 | public UpdateEmailChannelResult updateEmailChannel(UpdateEmailChannelRequest updateEmailChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEmailChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g... | invoke(request, responseHandler, executionContext); |
318,001 | public Object configure(String json) throws IOException {<NEW_LINE>IDHCPService dhcpService = (IDHCPService) getContext().getAttributes().get(IDHCPService.class.getCanonicalName());<NEW_LINE>if (json == null) {<NEW_LINE>setStatus(org.restlet.data.Status.CLIENT_ERROR_BAD_REQUEST, "One or more required fields missing.");... | enableNode = jsonNode.get("enable"); |
1,030,817 | public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>if (isPackagingSupported()) {<NEW_LINE>if (skip) {<NEW_LINE>getLog().info("Skipping Jetty start: jetty.skip==true");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isExcludedGoal(execution.getMojoDescriptor().getGoal())) {<NEW_LINE>getLog().... | project, artifactResolver, remoteRepositories, session); |
1,286,386 | private void loadNode0() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_RedundantServerDataType, new QualifiedName(0, "RedundantServerDataType"), new LocalizedText("en", "RedundantServerDataType"), LocalizedText... | DataValue(new Variant(o)); |
421,074 | private static final String description(Document d, String tagname) {<NEW_LINE>if (tagname == null || tagname.isEmpty()) {<NEW_LINE>tagname <MASK><NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder(60);<NEW_LINE>sb.append(d.dc_title());<NEW_LINE>if (d.dc_description().length > 0) {<NEW_LINE>if (!d.dc_description(... | = d.source.toTokens(); |
1,053,128 | private String buildHelpMessageForFailedDelete(long startTime, File file, Handling handling, Collection<String> failedPaths, boolean more) {<NEW_LINE><MASK><NEW_LINE>if (isSymlink.test(file)) {<NEW_LINE>help.append("symlink to ");<NEW_LINE>}<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>help.append("directory ");<NEW_LIN... | StringBuilder help = new StringBuilder("Unable to delete "); |
451,076 | void writeDependencyPackageRJavaFiles(List<DependencyAndroidData> dependencyData, String customPackageForR, Path androidManifest, Path sourceOut) throws IOException {<NEW_LINE>List<SymbolFileProvider> libraries = new ArrayList<>();<NEW_LINE>for (DependencyAndroidData dataDep : dependencyData) {<NEW_LINE><MASK><NEW_LINE... | SymbolFileProvider library = dataDep.asSymbolFileProvider(); |
1,572,804 | private List<CalendarState.Action> createActionsList(Map<CalendarDateRange, Set<Action>> actionMap) {<NEW_LINE>if (actionMap.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<CalendarState.Action> calendarActions = new ArrayList<CalendarState.Action>();<NEW_LINE>SimpleDateFormat formatter = new SimpleDateForm... | formatter.setTimeZone(getTimeZone()); |
528,459 | public void createHook() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationAsyncClient.createHook#NotificationHook<NEW_LINE>NotificationHook emailNotificationHook = new EmailNotificationHook("email hook").setDescription("my email hook").setEmailsToAlert(new ArrayList<String>() ... | "NotificationHook Description: %s%n", createdEmailHook.getDescription()); |
484,634 | public static void main(String[] args) {<NEW_LINE>LOGGER.info("Program started");<NEW_LINE>// Create a list of tasks to be executed<NEW_LINE>var tasks = List.of(new PotatoPeelingTask(3), new PotatoPeelingTask(6), new CoffeeMakingTask(2), new CoffeeMakingTask(6), new PotatoPeelingTask(4), new CoffeeMakingTask(2), new Po... | ), new PotatoPeelingTask(5)); |
108,881 | static QuadTreeImpl buildQuadTree(MultiPathImpl multipathImpl, Envelope2D extentOfInterest) {<NEW_LINE>Envelope2D extent = new Envelope2D();<NEW_LINE>multipathImpl.queryLooseEnvelope2D(extent);<NEW_LINE>QuadTreeImpl quad_tree_impl = new QuadTreeImpl(extent, 8);<NEW_LINE>int hint_index = -1;<NEW_LINE>Envelope2D bounding... | insert(index, boundingbox, hint_index); |
1,843,321 | protected TimeoutCollection parseTimeoutCollection(Properties properties) {<NEW_LINE>TimeoutCollection collection = new TimeoutCollection();<NEW_LINE>if (properties.containsKey(MAXWAIT))<NEW_LINE>collection.setConnectionPoolBorrowTimeout(parseLong(properties.getProperty(MAXWAIT)));<NEW_LINE>Map<String, Long> <MASK><NEW... | customTimeout = new HashMap<>(); |
691,827 | public Map<Shape, String> drawObject(Element e, double x, double y, double width, double height, OutputDevice outputDevice, RenderingContext ctx, int dotsPerPixel) {<NEW_LINE>if (!(outputDevice instanceof PdfBoxOutputDevice))<NEW_LINE>return null;<NEW_LINE>PdfBoxOutputDevice pdfBoxOutputDevice = (PdfBoxOutputDevice) ou... | .getBytes(StandardCharsets.US_ASCII)); |
841,225 | public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>MapPack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("class", className);<NEW_LINE>p = (MapPack) tcp.getSingle(RequestCmd.OBJECT_LOAD_CLASS_BY_STREAM, param... | errorSafe(e.getMessage()); |
427,138 | private RoaringBitmap oNeilCompare(BitmapSliceIndex.Operation operation, int predicate, RoaringBitmap foundSet) {<NEW_LINE>RoaringBitmap fixedFoundSet = foundSet == null ? this.ebM : foundSet;<NEW_LINE>RoaringBitmap GT = new RoaringBitmap();<NEW_LINE>RoaringBitmap LT = new RoaringBitmap();<NEW_LINE>RoaringBitmap EQ = t... | RoaringBitmap.or(GT, EQ); |
693,948 | private void computeBounds(Canvas c) {<NEW_LINE>final int left = 0;<NEW_LINE>final int top = 0;<NEW_LINE>final int right = getWidth();<NEW_LINE>final int middle = right / 2;<NEW_LINE>final int bottom = getHeight();<NEW_LINE>final int cornerOffset = (int) getCloseOffset();<NEW_LINE>switch(mPosition) {<NEW_LINE>case RIGH... | right, top + cornerOffset + mDrawableIntrinsicHeight); |
72,776 | public void run() {<NEW_LINE>Project[] prjs = OpenProjects.getDefault().getOpenProjects();<NEW_LINE>final List<Node> toRet = new ArrayList<>();<NEW_LINE>for (Project p : prjs) {<NEW_LINE>if (p == curProject) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>NbMavenProject mav = p.getLookup().lookup(NbMavenProject.class);<NEW_LI... | new Node[] { first }); |
657,476 | private Component initMoreFields() {<NEW_LINE>JPanel morePanel = new TransparentPanel(new BorderLayout());<NEW_LINE>morePanel.setOpaque(false);<NEW_LINE>morePanel.setBorder(BorderFactory.createEmptyBorder(0, 15, 5, 15));<NEW_LINE>moreFieldsPannel.setBorder(BorderFactory.createEmptyBorder(10, 30, 0, 0));<NEW_LINE>moreFi... | ().getImage("service.gui.icons.RIGHT_ARROW_ICON")); |
772,383 | public boolean edit(Consumer<String> logConsumer) {<NEW_LINE>List<String> lines = supplier.get();<NEW_LINE>List<String> newLines = new LinkedList<>();<NEW_LINE>StringBuilder diff = new StringBuilder();<NEW_LINE>boolean modified = false;<NEW_LINE>for (String line : lines) {<NEW_LINE>LineEdit edit = editor.edit(line);<NE... | diff, edit.appendLines()); |
82,737 | final GetArtifactUrlResult executeGetArtifactUrl(GetArtifactUrlRequest getArtifactUrlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getArtifactUrlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetArtifact... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,176,519 | private Wo list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Person> os = business.person().pick(wi.getPersonList());<NEW_LINE>List<String> personIds = ListTools.extractProperty(os, JpaObject.id_FIELDNAME, String.class, true, true);<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Identit... | Identity_.major), true)); |
828,873 | protected void runGroupSynchronization(MapMarkersGroup group) {<NEW_LINE>List<MapMarker> existingMarkers = new ArrayList<>();<NEW_LINE>List<MapMarker> groupMarkers = new ArrayList<>(group.getMarkers());<NEW_LINE>if (group.getType() == ItineraryType.FAVOURITES) {<NEW_LINE>syncFavouriteGroup(group, existingMarkers);<NEW_... | addAll(markersDbHelper.getActiveMarkers()); |
1,820,307 | private void generateCheckCastToUnsigned32(MethodVisitor mv, BType sourceType) {<NEW_LINE>if (TypeTags.isIntegerTypeTag(sourceType.tag)) {<NEW_LINE>mv.visitMethodInsn(INVOKESTATIC, TYPE_CONVERTER, "intToUnsigned32", "(J)J", false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(sourceType.tag) {<NEW_LINE>case TypeTags.BYT... | "Casting is not supported from '" + sourceType + "' to " + "'int:Unsigned32'"); |
1,219,359 | // enableNew<NEW_LINE>private void loadWarehouseInfo(int M_Warehouse_ID) {<NEW_LINE>if (M_Warehouse_ID == m_M_Warehouse_ID.getRepoId()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Defaults<NEW_LINE>m_M_Warehouse_ID = null;<NEW_LINE>// m_M_WarehouseName = "";<NEW_LINE>m_M_WarehouseValue = "";<NEW_LINE>m_Separator = ".";<N... | pstmt.setInt(1, M_Warehouse_ID); |
631,869 | private void shutdownQueryCheck(long endTimeMs) {<NEW_LINE>LOGGER.info("Starting shutdown query check");<NEW_LINE>long startTimeMs = System.currentTimeMillis();<NEW_LINE>long maxQueryTimeMs = _serverConf.getProperty(Server.CONFIG_OF_QUERY_EXECUTOR_TIMEOUT, Server.DEFAULT_QUERY_EXECUTOR_TIMEOUT_MS);<NEW_LINE>long noQuer... | System.currentTimeMillis() - startTimeMs); |
989,600 | private Component createContactListComponent() {<NEW_LINE>contactList = GuiActivator.getUIService().createContactListComponent(this);<NEW_LINE>contactList.setContactButtonsVisible(false);<NEW_LINE>contactList.setRightButtonMenuEnabled(false);<NEW_LINE>contactList.addContactListListener(new ContactListListener() {<NEW_L... | int clickCount = evt.getClickCount(); |
414,450 | public static ListInstancesResponse unmarshall(ListInstancesResponse listInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listInstancesResponse.setRequestId(_ctx.stringValue("ListInstancesResponse.RequestId"));<NEW_LINE>listInstancesResponse.setTotalCount(_ctx.integerValue("ListInstancesResponse.TotalCount"));<N... | = new ArrayList<Instance>(); |
1,775,462 | private void coloredStairs(Map<?, ? extends BlockRegistryObject<? extends BlockPlasticStairs, ?>> stairs, String existingPrefix) {<NEW_LINE>ModelFile stairsModel = models().getExistingFile(modLoc("block/plastic/" + existingPrefix + "stairs"));<NEW_LINE>ModelFile stairsInner = models().getExistingFile(modLoc("block/plas... | state.getValue(StairBlock.FACING); |
199,115 | private XField resolveXField(FieldDescriptor originalDescriptor) {<NEW_LINE>FieldDescriptor desc = originalDescriptor;<NEW_LINE>LinkedList<ClassDescriptor> worklist = new LinkedList<ClassDescriptor>();<NEW_LINE>ClassDescriptor originalClassDescriptor = desc.getClassDescriptor();<NEW_LINE>worklist.add(originalClassDescr... | logError("Error resolving " + originalDescriptor, e); |
756,338 | public void finalizeReference(Concrete.BinOpSequenceElem elem, MetaBinOpParser.ResolvedReference resolvedReference) {<NEW_LINE>if (resolvedReference == null) {<NEW_LINE>elem.expression = elem.expression.accept(this, null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resolvedReference.originalReference == null) {<NEW_LINE>... | refExpr, resolvedReference.resolvedList, myScope); |
1,759,351 | final ListDomainsResult executeListDomains(ListDomainsRequest listDomainsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDomainsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
702,625 | private static boolean mssqlObjectExist(String allInOneName, String objectType, String objectName) throws Exception {<NEW_LINE>String sql = "select Name from sysobjects where xtype = ? and status>=0 and Name=?";<NEW_LINE>StatementParameters parameters = new StatementParameters();<NEW_LINE>int i = 1;<NEW_LINE>parameters... | connection = DataSourceUtil.getConnection(allInOneName); |
731,622 | public static byte[] writeTime(Date date, Calendar cal) {<NEW_LINE>if (date == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>byte[] buf = new byte[5];<NEW_LINE>if (cal == null) {<NEW_LINE>cal = Calendar.getInstance();<NEW_LINE>}<NEW_LINE>cal.setTime(date);<NEW_LINE>int year = cal.get(Calendar.YEAR);<NEW_LINE>// Fil... | >> 2) & 0x00000003)); |
1,746,442 | public ListInstanceStorageConfigsResult listInstanceStorageConfigs(ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInstanceStorageConfigsRequest);<NEW_LINE>AWSRequestMetric... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,557,184 | private ClassPath remapClasses(File genericClassesDir, RemappingScriptSource source) {<NEW_LINE>ScriptSource origin = source.getSource();<NEW_LINE><MASK><NEW_LINE>return classpathTransformer.transform(DefaultClassPath.of(genericClassesDir), BuildLogic, new CachedClasspathTransformer.Transform() {<NEW_LINE><NEW_LINE>@Ov... | String className = origin.getClassName(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.