idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
336,314 | protected void adjustListeners(int type) {<NEW_LINE>switch(type) {<NEW_LINE>case LAYOUT_PROPOSAL_SELECTOR:<NEW_LINE>if (fContextType == LAYOUT_CONTEXT_SELECTOR && Helper.okToUse(fShells[LAYOUT_CONTEXT_SELECTOR])) {<NEW_LINE>// Disable event notification to the tip selector.<NEW_LINE>removeContentAssistListener((IConten... | ) fPopups[LAYOUT_CONTEXT_SELECTOR], CONTEXT_SELECTOR); |
806,088 | public void marshall(JobOutput jobOutput, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (jobOutput == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(jobOutput.getId(), ID_BINDING);<NEW_LINE>protocolMarshall... | jobOutput.getCaptions(), CAPTIONS_BINDING); |
585,366 | final UpdateChannelReadMarkerResult executeUpdateChannelReadMarker(UpdateChannelReadMarkerRequest updateChannelReadMarkerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateChannelReadMarkerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
1,653,420 | public void saveGroup(@NonNull final Group group, final OrderLinesStorage orderLinesStorage) {<NEW_LINE>final GroupId groupId = group.getGroupId();<NEW_LINE><MASK><NEW_LINE>final I_C_Order order = orderDAO.getById(orderId);<NEW_LINE>assertOrderNotProcessed(order);<NEW_LINE>// Save compensation lines<NEW_LINE>final Set<... | final OrderId orderId = extractOrderIdFromGroupId(groupId); |
1,589,383 | public static <K> int bulkRemove(Iterable<K> objectKeys, final String tableName, final Connection connection) {<NEW_LINE>final String sql = String.format("DELETE FROM cqtbl_%s WHERE objectKey = ?;", tableName);<NEW_LINE>PreparedStatement statement = null;<NEW_LINE>Boolean previousAutocommit = null;<NEW_LINE>int totalRo... | tableName + ". Rolled back: " + rolledBack, e); |
101,540 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select irstream " + "avg(distinct volume) as avgVolume, count(distinct symbol) as countDistinctSymbol " + "from SupportMarketDataBean";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.milestone(0);<NEW_LINE>env.sendEventBean... | , { "countDistinctSymbol", 0L } }); |
1,619,594 | public static List<IdentityProviderModel> filterIdentityProviders(Stream<IdentityProviderModel> providers, KeycloakSession session, AuthenticationFlowContext context) {<NEW_LINE>if (context != null) {<NEW_LINE>AuthenticationSessionModel authSession = context.getAuthenticationSession();<NEW_LINE>SerializedBrokeredIdenti... | readFromAuthenticationSession(authSession, AbstractIdpAuthenticator.BROKERED_CONTEXT_NOTE); |
409,198 | protected void initScene() {<NEW_LINE>mLight = new DirectionalLight(.3f, -.3f, 1);<NEW_LINE>mLight.setPower(.6f);<NEW_LINE>getCurrentScene().addLight(mLight);<NEW_LINE>getCurrentCamera().<MASK><NEW_LINE>try {<NEW_LINE>final LoaderAWD parser = new LoaderAWD(mContext.getResources(), mTextureManager, R.raw.awd_suzanne);<N... | setPosition(0, 0, 9); |
1,818,841 | public Prediction<ClusterID> predict(Example<ClusterID> example) {<NEW_LINE>SGDVector vector;<NEW_LINE>if (example.size() == featureIDMap.size()) {<NEW_LINE>vector = DenseVector.createDenseVector(example, featureIDMap, false);<NEW_LINE>} else {<NEW_LINE>vector = SparseVector.<MASK><NEW_LINE>}<NEW_LINE>if (vector.numAct... | createSparseVector(example, featureIDMap, false); |
1,040,697 | private Optional<JsonResponseUpsert> persistForBPartnerWithinTrx(@Nullable final String orgCode, @NonNull final ExternalIdentifier bpartnerIdentifier, @NonNull final JsonRequestContactUpsert jsonContactUpsert, @NonNull final SyncAdvise parentSyncAdvise) {<NEW_LINE><MASK><NEW_LINE>final Optional<BPartnerComposite> optBP... | final OrgId orgId = retrieveOrgIdOrDefault(orgCode); |
1,821,004 | final DeleteAttributesResult executeDeleteAttributes(DeleteAttributesRequest deleteAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
464,435 | protected void encodeData(FacesContext context, Chart chart) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>BubbleChartModel model = (BubbleChartModel) chart.getModel();<NEW_LINE>List<BubbleChartSeries<MASK><NEW_LINE>writer.write(",data:[[");<NEW_LINE>for (Iterator<BubbleCha... | > data = model.getData(); |
1,840,052 | private void createUpperMenu(Composite composite) {<NEW_LINE>headerComp = new Composite(composite, SWT.NONE);<NEW_LINE>headerComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));<NEW_LINE>headerComp.setLayout(UIUtil<MASK><NEW_LINE>Button manualBtn = new Button(headerComp, SWT.PUSH);<NEW_LINE>manualBtn.setI... | .formLayout(0, 0)); |
894,157 | String fillMessageMutation(MutationBatch mb, Message message) throws MessageQueueException {<NEW_LINE>// Get the execution time from the message or set to current time so it runs immediately<NEW_LINE>long curTimeMicros;<NEW_LINE>if (!message.hasTrigger()) {<NEW_LINE>curTimeMicros = TimeUnit.MICROSECONDS.convert(System.... | counter.incrementAndGet() % 1000); |
921,845 | public static DescribeClientVersionResponse unmarshall(DescribeClientVersionResponse describeClientVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClientVersionResponse.setRequestId(_ctx.stringValue("DescribeClientVersionResponse.RequestId"));<NEW_LINE>describeClientVersionResponse.setSuccess(_ctx.boolean... | (_ctx.stringValue("DescribeClientVersionResponse.MaxVersion")); |
1,230,567 | final ListVirtualNodesResult executeListVirtualNodes(ListVirtualNodesRequest listVirtualNodesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVirtualNodesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,455,823 | private void doMultiCheck(ImmutableMap<RuleKey, ClaimedFetchRequest> ruleKeyToRequest) {<NEW_LINE>try {<NEW_LINE>ImmutableMap<RuleKey, CacheResult> ruleKeyToResult = multiContainsImpl(ruleKeyToRequest.keySet()).getCacheResults();<NEW_LINE>for (Map.Entry<RuleKey, CacheResult> result : ruleKeyToResult.entrySet()) {<NEW_L... | get(result.getKey()); |
629,695 | public static void updateOnOpen(final Project project, final PropertyEvaluator eval) throws IOException {<NEW_LINE>final EditableProperties ep = new EditableProperties(true);<NEW_LINE>final FileObject projPropsFO = project.getProjectDirectory().getFileObject(AntProjectHelper.PROJECT_PROPERTIES_PATH);<NEW_LINE>try {<NEW... | os = projPropsFO.getOutputStream(lock); |
122,624 | /* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.analysis.analyzer.ClassModelAnalyzer.ClassAnalyzer#analyze(javax.lang.model.element.TypeElement, javax.lang.model.element.TypeElement, org.netbeans.modules.web.beans.api.model.WebBeansModel, java.util.List, org.netbeans.api.java.source.CompilationInfo, jav... | checkAbstract(element, model, result); |
777,090 | protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_TX_DIGEST, new ColumnMeta(COLUMN_TX_DIGEST, "varchar(1024)", false));<NEW_LINE>columnsType.put(COLUMN_TX_DIGEST, Fields.FIELD_TYPE_VAR_STRING);<NEW_LINE>columns.put(COLUMN_EXEC, new ColumnMeta<MASK><NEW_LINE>columnsType.put(COLUMN_EXEC, Fields.FIELD_TYPE_... | (COLUMN_EXEC, "int(11)", false)); |
1,395,811 | public HtmlResponse upload(final UploadForm form) {<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asListHtml);<NEW_LINE>verifyToken(this::asListHtml);<NEW_LINE>final String fileName = form.bulkFile.getFileName();<NEW_LINE>final File tempFile = ComponentUtil.getSystemHelper().createTempFile("fess_restore_", ".... | , fileName), this::asListHtml); |
948,541 | public Document createComponentXML() throws ParserConfigurationException {<NEW_LINE><MASK><NEW_LINE>fact.setNamespaceAware(true);<NEW_LINE>Document doc = fact.newDocumentBuilder().newDocument();<NEW_LINE>Element root = (Element) doc.appendChild(doc.createElementNS(installerNamespaceURI, "marytts-install"));<NEW_LINE>El... | DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); |
106,973 | public KrollDict generateScrollPayload() {<NEW_LINE>final KrollDict payload = new KrollDict();<NEW_LINE>final LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();<NEW_LINE>// Obtain index for first visible row.<NEW_LINE>final View firstVisibleView = layoutManager.findViewByPosition... | put(TiC.PROPERTY_CONTENT_SIZE, contentSize); |
606,669 | public List<String> showGrants(PolarPrivilegeData accountPrivilegeData) {<NEW_LINE>List<String> result = new ArrayList<>(getTbPrivMap().size() + getDbPrivMap().size() + 2);<NEW_LINE>getInstPriv().showGrantsResult(getAccount()).ifPresent(result::add);<NEW_LINE>getDbPrivMap().values().stream().filter(db -> !StringUtils.e... | ).forEach(result::add); |
1,639,776 | protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor) {<NEW_LINE>typeCheckingContext.pushEnclosingMethod(node);<NEW_LINE>if (!isSkipMode(node) && !shouldSkipMethodNode(node)) {<NEW_LINE>// GRECLIPSE add -- GROOVY-6603<NEW_LINE>for (Parameter parameter : node.getParameters()) {<NEW_LINE>for (An... | , varX(parameter), parameter); |
939,653 | public double updateiWeightPlus(final double[] gradients, final double[] lastGradient, final int index) {<NEW_LINE>// multiply the current and previous gradient, and take the<NEW_LINE>// sign. We want to see if the gradient has changed its sign.<NEW_LINE>final int change = EncogMath.sign(gradients[index] * lastGradient... | min(delta, this.maxStep); |
124,381 | public ArrayList<FloatBuffer> readFloatBufferArrayList(String name, ArrayList<FloatBuffer> defVal) throws IOException {<NEW_LINE>try {<NEW_LINE>Element tmpEl = findChildElement(currentElem, name);<NEW_LINE>if (tmpEl == null) {<NEW_LINE>return defVal;<NEW_LINE>}<NEW_LINE>String sizeString = tmpEl.getAttribute("size");<N... | tmp = new ArrayList<>(); |
399,879 | public DocumentData parse(JsonReader reader, float scale) throws IOException {<NEW_LINE>String text = null;<NEW_LINE>String fontName = null;<NEW_LINE>float size = 0f;<NEW_LINE>Justification justification = Justification.CENTER;<NEW_LINE>int tracking = 0;<NEW_LINE>float lineHeight = 0f;<NEW_LINE>float baselineShift = 0f... | (float) reader.nextDouble(); |
175,689 | private Timestamp handleDateTime(final Object value, final I_AD_Column column, final I_EXP_FormatLine formatLine) {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String valueString = value.toString();<NEW_LINE>if (Check.isEmpty(valueString, true)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_L... | importProcessorBL.getAD_Reference_ID(column, formatLine); |
715,938 | private static BN128Pair decodePair(byte[] in, int offset) {<NEW_LINE>byte[] x = parseWord(in, offset, 0);<NEW_LINE>byte[] y = parseWord(in, offset, 1);<NEW_LINE>BN128G1 p1 = BN128G1.create(x, y);<NEW_LINE>// fail if point is invalid<NEW_LINE>if (p1 == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// (b, a)<NEW_LIN... | parseWord(in, offset, 4); |
155,959 | public void parentImplotion(int PP_Product_BOMLine_ID) throws Exception {<NEW_LINE>int PP_Product_BOM_ID = 0;<NEW_LINE>int M_Product_ID = 0;<NEW_LINE>X_T_BOMLine tboml = new X_T_BOMLine(ctx, 0, null);<NEW_LINE>PP_Product_BOM_ID = DB.getSQLValue(null, "SELECT PP_Product_BOM_ID FROM PP_Product_BOMLine WHERE PP_Product_BO... | DB.close(rs, stmt); |
775,972 | private BLangInvocation desugarStreamTypeInit(BLangTypeInit typeInitExpr) {<NEW_LINE>BInvokableSymbol symbol = (BInvokableSymbol) symTable.langInternalModuleSymbol.scope.lookup(Names.CONSTRUCT_STREAM).symbol;<NEW_LINE>BType constraintType = ((BStreamType) typeInitExpr.getBType()).constraint;<NEW_LINE>BType constraintTd... | completionType, symTable.typeDesc.tsymbol); |
610,432 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Card sourceCard = game.getCard(source.getSourceId());<NEW_LINE>if (controller == null || sourceCard == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent targetEnchantment = game.g... | targetEnchantment.getId(), game); |
942,786 | final PutProfileObjectResult executePutProfileObject(PutProfileObjectRequest putProfileObjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putProfileObjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | endClientExecution(awsRequestMetrics, request, response); |
1,627,236 | public QueryOptions build() {<NEW_LINE>byte flags = this.flagsSet != null ? FlagUtils.toByte(<MASK><NEW_LINE>if (this.options == null) {<NEW_LINE>if (this.mode == QueryMode.NON_CONTEXTUAL) {<NEW_LINE>if (FlagUtils.ALL_FLAGS == flags) {<NEW_LINE>// mode same, contexts null, flags same, options null<NEW_LINE>// so theref... | this.flagsSet) : this.flags; |
653,911 | private Object transformImpl(final GraphQLSchema schema, GraphQLSchemaElement schemaElement, GraphQLTypeVisitor visitor, Consumer<GraphQLSchema.Builder> postTransformation) {<NEW_LINE>DummyRoot dummyRoot;<NEW_LINE>GraphQLCodeRegistry.Builder codeRegistry = null;<NEW_LINE>if (schema != null) {<NEW_LINE>dummyRoot = new D... | graphQLSchema = dummyRoot.rebuildSchema(codeRegistry); |
1,405,749 | public IStatus clone(String sourceURI, IPath dest, boolean shallow, IProgressMonitor monitor) {<NEW_LINE>SubMonitor subMonitor = SubMonitor.convert(monitor, 1000);<NEW_LINE>try {<NEW_LINE>Version version = version();<NEW_LINE>boolean includeProgress = version.compareTo(new Version(1, 7, 0)) >= 0;<NEW_LINE>Map<String, S... | e.getMessage(), e); |
474,242 | public void visitLdcInsn(Object value) {<NEW_LINE>super.visitLdcInsn(value);<NEW_LINE>Context.InsnContext insnContext = context.withInsn(last(), lastPos());<NEW_LINE>if (value instanceof String) {<NEW_LINE>collector.queries(StringQuery.class).forEach(q -> {<NEW_LINE>q.match((String) value);<NEW_LINE>collector.addMatche... | collector.addMatched(insnContext, q); |
1,852,175 | final DeleteFolderContentsResult executeDeleteFolderContents(DeleteFolderContentsRequest deleteFolderContentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFolderContentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | (super.beforeMarshalling(deleteFolderContentsRequest)); |
1,382,690 | private void checkIsAssignableFrom(final InsnList insns, Extension extraStack) {<NEW_LINE>LabelNode objectIsNull = new LabelNode();<NEW_LINE>LabelNode checkComplete = new LabelNode();<NEW_LINE>// Swap the values (we duped the ref above) and check for null. If<NEW_LINE>// the reference is null, load FALSE per the contra... | .CLASS_DESC + ")Z", false)); |
1,606,791 | public void run(String... args) throws Exception {<NEW_LINE>{<NEW_LINE>System.out.println("refresh index");<NEW_LINE>repository.deleteAll();<NEW_LINE>operations.indexOps(Conference.class).delete();<NEW_LINE>operations.indexOps(Conference.class).create();<NEW_LINE>}<NEW_LINE>{<NEW_LINE><MASK><NEW_LINE>// Save data sampl... | System.out.println("\n--- REPOSITORY ---"); |
333,797 | protected String doIt() throws Exception {<NEW_LINE>int tableId = getTable_ID();<NEW_LINE>int recordId = getRecord_ID();<NEW_LINE>if (m_matchers == null || m_matchers.length == 0)<NEW_LINE>throw new IllegalStateException("No Matchers found");<NEW_LINE>//<NEW_LINE>log.info("doIt - Table_ID=" + tableId + ", Record_ID=" +... | , recordId, get_TrxName())); |
544,993 | private HashMap determineOpenablesInRegion(IProgressMonitor monitor) {<NEW_LINE>try {<NEW_LINE>HashMap allOpenables = new HashMap();<NEW_LINE>IJavaElement[] roots = ((RegionBasedTypeHierarchy) this.hierarchy).region.getElements();<NEW_LINE>int length = roots.length;<NEW_LINE>// $NON-NLS-1$<NEW_LINE>if (monitor != null)... | add(type.getClassFile()); |
744,431 | // -----------------------------------------------------<NEW_LINE>// Actually Crud<NEW_LINE>// -------------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE })<NEW_LINE>public HtmlResponse create(final CreateForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.CREATE);<NEW_LINE>validate(form, messages -> {<NEW_LINE>... | e)), this::asEditHtml); |
1,407,214 | private void scanArea() {<NEW_LINE>// initialize area<NEW_LINE>if (area == null) {<NEW_LINE>area = new Area(Step.START_POS.pos, Step.END_POS.pos);<NEW_LINE>Step.START_POS.pos = null;<NEW_LINE>Step.END_POS.pos = null;<NEW_LINE>}<NEW_LINE>// scan area<NEW_LINE>for (int i = 0; i < area.scanSpeed && area.iterator.hasNext()... | = area.iterator.next(); |
1,378,986 | private static Map<BudSize, SoundType> makeClusterSounds(float pitch) {<NEW_LINE>Map<BudSize, SoundType> map = new EnumMap<>(BudSize.class);<NEW_LINE>map.put(BudSize.CLUSTER, new SoundType(1.0f, pitch, SoundEvents.AMETHYST_CLUSTER_BREAK, SoundEvents.AMETHYST_CLUSTER_STEP, SoundEvents.AMETHYST_CLUSTER_PLACE, SoundEvents... | .AMETHYST_CLUSTER_HIT, SoundEvents.AMETHYST_CLUSTER_FALL)); |
254,700 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.key_t, NativeType.SINT); |
1,195,044 | private static Contentlet createNewVersionInDifferentLang(final Contentlet contentlet, final Language language, final Map<String, String> fieldValues) throws DotDataException, DotSecurityException {<NEW_LINE>final Contentlet contentletCheckout = APILocator.getContentletAPI().checkout(contentlet.getInode(), <MASK><NEW_L... | APILocator.systemUser(), false); |
1,756,373 | final PutOutcomeResult executePutOutcome(PutOutcomeRequest putOutcomeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putOutcomeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | false), new PutOutcomeResultJsonUnmarshaller()); |
826,012 | public void updateStepReferences(String stepId, String replacementStepId) throws DotDataException, DotSecurityException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>try {<NEW_LINE>// Replace references and clear cache for workflow actions<NEW_LINE>dc.setSQL("select step_id from workflow_action where next_step_... | id = val.get("id"); |
871,179 | private static void checkOffsetBoundaries(AnalyticWindow.Boundary b1, AnalyticWindow.Boundary b2) {<NEW_LINE>Preconditions.checkState(b1.getType().isOffset());<NEW_LINE>Preconditions.checkState(b2.getType().isOffset());<NEW_LINE>Expr e1 = b1.getExpr();<NEW_LINE>Preconditions.checkState(e1 != null && e1.isConstant() && ... | getType().isNumericType()); |
425,446 | public void bindViewHolder(FlexibleAdapter<IFlexible> adapter, SimpleViewHolder holder, int position, List<Object> payloads) {<NEW_LINE>Context context = holder.itemView.getContext();<NEW_LINE>// Background, when bound the first time<NEW_LINE>if (payloads.size() == 0) {<NEW_LINE>Drawable drawable = // Same color of div... | setBackgroundCompat(holder.frontView, drawable); |
113,126 | private NetbeansActionMapping findMapAction(Map<String, String> replaceMap, Project project, String actionName) throws XmlPullParserException, IOException {<NEW_LINE>// TODO need some caching really badly here..<NEW_LINE>Reader read = performDynamicSubstitutions(replaceMap, getRawMappingsAsString());<NEW_LINE>ActionToG... | mapping = reader.read(read); |
294,508 | public VoidResponse deleteSecurityGroup(String serverName, String userId, String securityGroupGUID, NullRequestBody requestBody) {<NEW_LINE>final String methodName = "deleteSecurityGroup";<NEW_LINE>final String guidParameterName = "securityGroupGUID";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName... | response, error, methodName, auditLog); |
298,937 | private Node compileModel() {<NEW_LINE>Node model = new Node(meshName + "-ogremesh");<NEW_LINE>for (int i = 0; i < geoms.size(); i++) {<NEW_LINE>Geometry g = geoms.get(i);<NEW_LINE>Mesh m = g.getMesh();<NEW_LINE>// New code for buffer extract<NEW_LINE>if (sharedMesh != null && usesSharedMesh.get(i)) {<NEW_LINE>m.extrac... | anim = animList.get(i); |
1,674,069 | static CompletableFuture<Map<String, Object>> refreshOidcToken(HttpClient client, String clientId, String refreshToken, String clientSecret, String tokenURL) {<NEW_LINE>HttpRequest request = getTokenRefreshHttpRequest(client, tokenURL, clientId, refreshToken, clientSecret);<NEW_LINE>CompletableFuture<HttpResponse<Strin... | LOGGER.warn("Failure in fetching refresh token: ", e); |
1,256,400 | void encode(DB2Encoder encoder) {<NEW_LINE>super.encode(encoder);<NEW_LINE>encoder.socketConnection.connMetadata.databaseName = cmd.database();<NEW_LINE>encoder.socketConnection.closeHandler(h -> {<NEW_LINE>if (status == ConnectionState.CONNECTING) {<NEW_LINE>// Sometimes DB2 closes the connection when sending an inval... | connMetadata.correlationToken, DRDAConstants.SYSTEM_ASC); |
1,657,725 | public FormatterStep newFormatterStep(FormatterStepConfig stepConfig) {<NEW_LINE>// check if config is only setup in one way<NEW_LINE>if (moreThanOneNonNull(this.prettierVersion, this.devDependencies, this.devDependencyProperties)) {<NEW_LINE>throw onlyOneConfig();<NEW_LINE>}<NEW_LINE>if (devDependencies == null) {<NEW... | .getFileLocator().getBuildDir(); |
914,195 | public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>System.out.println("Just got into server side app");<NEW_LINE>try {<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.<MASK><NEW_LINE>StringReader respMsg = null;<NEW_LINE>if (com.ibm.ws.wss... | out.println("Incoming SOAP Header:" + hdrText); |
878,372 | final DeleteCorsPolicyResult executeDeleteCorsPolicy(DeleteCorsPolicyRequest deleteCorsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCorsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<D... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
188,790 | private void convertConceptMapToCsv(ConceptMap theConceptMap) {<NEW_LINE>Path path = Paths.get(file);<NEW_LINE>ourLog.info("Exporting ConceptMap to CSV: {}", path);<NEW_LINE>try (Writer writer = Files.newBufferedWriter(path)) {<NEW_LINE>CSVFormat format = CSVFormat.DEFAULT.withRecordSeparator("\n").withHeader(Header.cl... | (group.getSourceVersion())); |
445,769 | public static long[] hexRing(long origin) {<NEW_LINE>final long[] out = H3Index.H3_is_pentagon(origin) ? new long[5] : new long[6];<NEW_LINE>int idx = 0;<NEW_LINE>long previous = -1;<NEW_LINE>for (int i = 0; i < 6; i++) {<NEW_LINE>int[] rotations <MASK><NEW_LINE>long[] nextNeighbor = new long[] { 0 };<NEW_LINE>int neig... | = new int[] { 0 }; |
463,714 | public CompletableFuture<List<TransactionInfo>> listCompletedTransactions(final Stream stream) {<NEW_LINE>Exceptions.checkNotClosed(closed.get(), this);<NEW_LINE>Preconditions.checkNotNull(stream, "stream");<NEW_LINE>final long requestId = requestIdGenerator.get();<NEW_LINE>long traceId = LoggerHelpers.traceEnter(log, ... | traceLeave(log, LIST_COMPLETED_TRANSACTIONS, traceId); |
1,163,202 | protected void removeOrderItemFromFullfillmentGroup(Order order, OrderItem orderItem) {<NEW_LINE>List<FulfillmentGroup<MASK><NEW_LINE>for (FulfillmentGroup fulfillmentGroup : fulfillmentGroups) {<NEW_LINE>Iterator<FulfillmentGroupItem> itr = fulfillmentGroup.getFulfillmentGroupItems().iterator();<NEW_LINE>while (itr.ha... | > fulfillmentGroups = order.getFulfillmentGroups(); |
381,878 | private void ensureArrayCreated(CtReference reference) {<NEW_LINE>// Create memory array for the reference if it does not exist<NEW_LINE>if (memoryMap.get(reference) == null) {<NEW_LINE>ArrayExpr memoryArray;<NEW_LINE>ArraySort sort;<NEW_LINE>if (reference instanceof CtArrayTypeReference) {<NEW_LINE>ArraySort arraySort... | mkFreshConst(reference + "_memo_array_", sort); |
216,005 | public static boolean isParallel(Line2D line1, Line2D line2) {<NEW_LINE>float x1 = (float) line1.getX1();<NEW_LINE>float y1 = <MASK><NEW_LINE>float x2 = (float) line1.getX2();<NEW_LINE>float y2 = (float) line1.getY2();<NEW_LINE>float dx = x2 - x1;<NEW_LINE>float dy = y1 - y2;<NEW_LINE>float d = (float) Math.sqrt((doubl... | (float) line1.getY1(); |
141,648 | private static void testContainers() {<NEW_LINE>TestContainers testContainers = new TestContainers();<NEW_LINE>Foo[] sv = testContainers.getStructVec();<NEW_LINE>assert sv.length == 2;<NEW_LINE>assert sv[0].getName().equals("1");<NEW_LINE>assert sv[0].calcF(0, 0) == 1;<NEW_LINE>assert sv[1].getName().equals("2");<NEW_L... | [2].equals("a"); |
607,404 | public static void main(final String[] args) throws IOException {<NEW_LINE>final String base = "/home/fwilhelm/Workspace/Development/Projects/" + "Jenetics/jenetics.tool/src/main/resources/io/jenetics/tool/constraint";<NEW_LINE>final Path data = <MASK><NEW_LINE>final Path output = Paths.get(base, "circle_points_encodin... | Paths.get(base, "circle_points_encoding.dat"); |
1,003,184 | final GetSessionTokenResult executeGetSessionToken(GetSessionTokenRequest getSessionTokenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionTokenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,798,017 | private void handle(APICreateL3NetworkMsg msg) {<NEW_LINE>SimpleQuery<L2NetworkVO> query = dbf.createQuery(L2NetworkVO.class);<NEW_LINE>query.select(L2NetworkVO_.zoneUuid);<NEW_LINE>query.add(L2NetworkVO_.uuid, Op.EQ, msg.getL2NetworkUuid());<NEW_LINE><MASK><NEW_LINE>assert zoneUuid != null;<NEW_LINE>L3NetworkVO vo = n... | String zoneUuid = query.findValue(); |
77,511 | final DescribeEnvironmentMembershipsResult executeDescribeEnvironmentMemberships(DescribeEnvironmentMembershipsRequest describeEnvironmentMembershipsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEnvironmentMembershipsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
868,438 | public void customize(ServiceInstance serviceInstance, ApplicationModel applicationModel) {<NEW_LINE>MetadataInfo metadataInfo = serviceInstance.getServiceMetadata();<NEW_LINE>if (metadataInfo == null || CollectionUtils.isEmptyMap(metadataInfo.getExportedServiceURLs())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String... | ), url.getPort()); |
1,674,371 | private Item createItem(MediaFile song) {<NEW_LINE>MediaFile parent = mediaFileService.getParentOf(song);<NEW_LINE>MusicTrack item = new MusicTrack();<NEW_LINE>item.setId(String.valueOf(song.getId()));<NEW_LINE>item.setParentID(String.valueOf(parent.getId()));<NEW_LINE>item.setTitle(song.getTitle());<NEW_LINE>item.setA... | item.setDate(year + "-01-01"); |
777,672 | public OutputStream writeResponseStatusAndHeaders(final long contentLength, final ContainerResponse context) throws ContainerException {<NEW_LINE>final javax.ws.rs.core.Response.StatusType statusInfo = context.getStatusInfo();<NEW_LINE>final int code = statusInfo.getStatusCode();<NEW_LINE>final String reason = statusIn... | code) : statusInfo.getReasonPhrase(); |
1,261,903 | public void testGetSetAsync(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>if (!isMPRestClient12OrAbove()) {<NEW_LINE>// assumeX doesn't work in FAT servlets, so just return here<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CollectionsClient client = builder.build(CollectionsClient.class);<NEW_LI... | || "Red Pen".equals(name)); |
9,233 | static Response toStandardResponse(WebTestClientResponse response) {<NEW_LINE>if (!(response instanceof WebTestClientRestAssuredResponseImpl)) {<NEW_LINE>throw new IllegalArgumentException(WebTestClientResponse.class.getName() + " must be an instance of " + WebTestClientRestAssuredResponseImpl.class.getName());<NEW_LIN... | setHasExpectations(webTestClientRestAssuredResponse.getHasExpectations()); |
927,951 | public void handleMetacatException(final HttpServletResponse response, final MetacatException e) throws IOException {<NEW_LINE>final int status;<NEW_LINE>if (e instanceof MetacatAlreadyExistsException) {<NEW_LINE>status = HttpStatus.CONFLICT.value();<NEW_LINE>} else if (e instanceof MetacatBadRequestException) {<NEW_LI... | = HttpStatus.SEE_OTHER.value(); |
341,536 | public Query rangeQuery(String field, Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, boolean hasDocValues, QueryShardContext context) {<NEW_LINE>float l = Float.NEGATIVE_INFINITY;<NEW_LINE>float u = Float.POSITIVE_INFINITY;<NEW_LINE>if (lowerTerm != null) {<NEW_LINE>l = parse(lowerTerm,... | , NumericUtils.floatToSortableInt(u)); |
581,687 | public int read(char[] cbuf, int off, int len) throws IOException {<NEW_LINE>int readBytes = 0;<NEW_LINE>// First feed the pending characters that were already decoded.<NEW_LINE>if (outputBuffer != null && outputBuffer.hasRemaining()) {<NEW_LINE>int toTransfer = Math.min(len, outputBuffer.remaining());<NEW_LINE>outputB... | .averageCharsPerByte()), 10); |
1,707,923 | public void run() {<NEW_LINE>if (!canvas.isDisposed() && images != null) {<NEW_LINE>currentImage++;<NEW_LINE>if (currentImage >= images.length) {<NEW_LINE>currentImage = 0;<NEW_LINE>}<NEW_LINE>if (currentImage < images.length) {<NEW_LINE>Image image = images[currentImage];<NEW_LINE>if (image != null && !image.isDispose... | Rectangle imageBounds = image.getBounds(); |
710,218 | public void outAFullMethodBody(AFullMethodBody node) {<NEW_LINE>JimpleBody jBody = Jimple<MASK><NEW_LINE>if (node.getCatchClause() != null) {<NEW_LINE>int size = node.getCatchClause().size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>jBody.getTraps().addFirst((Trap) mProductions.removeLast());<NEW_LINE>}<NEW_L... | .v().newBody(); |
1,715,400 | protected void handle(final DeleteBitsOnPrimaryStorageMsg msg) {<NEW_LINE>final DeleteVolumeBitsOnPrimaryStorageReply reply = new DeleteVolumeBitsOnPrimaryStorageReply();<NEW_LINE>String hostUuid = getAvailableHostUuidForOperation();<NEW_LINE>if (hostUuid == null) {<NEW_LINE>bus.reply(msg, reply);<NEW_LINE>return;<NEW_... | bus.reply(msg, reply); |
1,137,190 | final TestCustomDataIdentifierResult executeTestCustomDataIdentifier(TestCustomDataIdentifierRequest testCustomDataIdentifierRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testCustomDataIdentifierRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,573,439 | public static void showSummary(String projectName, Dependency[] dependencies) {<NEW_LINE>final StringBuilder summary = new StringBuilder();<NEW_LINE>for (Dependency d : dependencies) {<NEW_LINE>final String ids = d.getVulnerabilities(true).stream().map(v -> v.getName()).collect(Collectors.joining(", "));<NEW_LINE>if (i... | (ids).append(NEW_LINE); |
272,355 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Intent intent = getIntent();<NEW_LINE>String action = intent.getAction();<NEW_LINE>Log.d(TAG, "onCreate: action=" + action);<NEW_LINE>if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) {<NEW_LINE>Log.d(TAG, "NDEF ... | = (NdefMessage) raw[i]; |
1,010,524 | private <T extends Provider<JedisPoolConfig>> void processJedisPoolConfigProviderInjectionPoint(@Observes final ProcessInjectionPoint<?, T> e) {<NEW_LINE>if (e != null) {<NEW_LINE>final InjectionPoint injectionPoint = e.getInjectionPoint();<NEW_LINE>if (injectionPoint != null) {<NEW_LINE>final Type type = injectionPoin... | (Class<?>) type); |
223,182 | public static Archive create(final File archiveFile) throws IOException {<NEW_LINE>if (!archiveFile.isAbsolute())<NEW_LINE>throw new IllegalArgumentException(archiveFile.getPath());<NEW_LINE>String className;<NEW_LINE>if (archiveFile.getName().endsWith(".pax")) {<NEW_LINE>className = PAX_ARCHIVE_CLASS_NAME;<NEW_LINE>} ... | >) loader.loadClass(className); |
1,620,857 | public void callbackOnContext(TraverserContext context, DataSchemaTraverse.Order order) {<NEW_LINE>if (context.getEnclosingField() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (DataSchemaTraverse.Order.PRE_ORDER.equals(order)) {<NEW_LINE>final DataSchema currentSchema = context<MASK><NEW_LINE>final PathSpec path ... | .getCurrentSchema().getDereferencedDataSchema(); |
1,280,145 | public void testGetNextTimeoutExpiredSingleActionTimer() {<NEW_LINE>final String info = "testGetNextTimeoutExpiredSingleActionTimer";<NEW_LINE>Date expectedTimeout = ivBean.createTimer(info);<NEW_LINE>// wait to ensure timer expires:<NEW_LINE>try {<NEW_LINE>svLogger.info("Waiting on latch for timer to expire for " + XM... | XMLTxLocal.df.parse(nextTimeoutStr); |
306,657 | private boolean findSpeaker(int utterNum, int sentNum, List<CoreMap> sentences, int startIndex, int endIndex, Dictionaries dict) {<NEW_LINE>List<CoreLabel> sent = sentences.get(sentNum).get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>for (int i = startIndex; i < endIndex; i++) {<NEW_LINE>if (sent.get(i).get(CoreA... | get(SemanticGraphCoreAnnotations.EnhancedDependenciesAnnotation.class); |
1,700,586 | private BPartnerId assertValidAndExtractVendorId(@NonNull final List<PurchaseCandidate> purchaseCandidates) {<NEW_LINE>if (purchaseCandidates.isEmpty()) {<NEW_LINE>throw new AdempiereException("The given purchaseCandidates list needs to be non-empty");<NEW_LINE>}<NEW_LINE>final ImmutableSet<PurchaseCandidateId> distinc... | vendorId2purchaseCandidate.keySet(), purchaseCandidates); |
27,247 | private Mono<Response<Flux<ByteBuffer>>> triggerWithResponseAsync(String resourceGroupName, String vaultName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,034,599 | protected JComponent createTestTreeView() {<NEW_LINE>myTreeView = new SMTRunnerTestTreeView();<NEW_LINE>myTreeView.setLargeModel(true);<NEW_LINE>myTreeView.attachToModel(this);<NEW_LINE>myTreeView.setTestResultsViewer(this);<NEW_LINE>if (Registry.is("tests.view.old.statistics.panel")) {<NEW_LINE>addTestsTreeSelectionLi... | firstChild = children.get(0); |
1,851,184 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see javax.swing.text.DefaultCaret#paint(java.awt.Graphics)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void paint(Graphics g) {<NEW_LINE>JTextComponent comp = getComponent();<NEW_LINE>if (comp == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int dot = getDot();<NEW_LINE>Rectang... | setXORMode(comp.getBackground()); |
792,204 | private static void addPreconfLibs(String libs) {<NEW_LINE>URL u = Main.class.getClassLoader().getResource(Main.class.getName().replace<MASK><NEW_LINE>if (u != null) {<NEW_LINE>String path = u.toString();<NEW_LINE>int delimiterPos = path.lastIndexOf('!');<NEW_LINE>if (delimiterPos > -1) {<NEW_LINE>String jar = path.sub... | ('.', '/') + ".class"); |
526,212 | public void initFreeStreamer(double tL, double tV, double tH) {<NEW_LINE>double tx = getFacing().getAxis() == Axis.X ? tL : tH;<NEW_LINE>double ty = getFacing().getAxis() == Axis.Y ? tL : tV;<NEW_LINE>double tz = getFacing().getAxis() == Axis.Y ? tV : getFacing().getAxis() == Axis.X ? tH : tL;<NEW_LINE>Direction f = nu... | Vec3.atCenterOf(getBlockPos()); |
196,676 | private static // can't find a good import tool framework, may ref mysqlimport<NEW_LINE>void insertImportByRange(int X, List<CSVRecord> rows, SqlExecutor router, String dbName, String tableName) {<NEW_LINE>int quotient = rows.size() / X;<NEW_LINE>int remainder = rows.size() % X;<NEW_LINE>// range is [left, right)<NEW_L... | 1, rows.size()); |
731,346 | private static int extractErrorPositionForInformix(Connection con, Statement stmt, Throwable ex, String sql) {<NEW_LINE>// try to get exact position from exception message<NEW_LINE>if (ex == null) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>Class connectionClass = con.getClass();<NEW_LINE>if (connectionClass.getName().st... | Integer) getSQLStatementOffset.invoke(con); |
755,187 | SSLEngineResult unwrap(SslHandler handler, ByteBuf in, int len, ByteBuf out) throws SSLException {<NEW_LINE>int nioBufferCount = in.nioBufferCount();<NEW_LINE>int writerIndex = out.writerIndex();<NEW_LINE>final SSLEngineResult result;<NEW_LINE>if (nioBufferCount > 1) {<NEW_LINE>try {<NEW_LINE>handler.singleBuffer[0] = ... | , len), handler.singleBuffer); |
1,460,878 | public static Query<NavigableMap<Long, Integer>> hourlyUniquePlayerCounts(long after, long before, long timeZoneOffset, ServerUUID serverUUID) {<NEW_LINE>return database -> {<NEW_LINE>Sql sql = database.getSql();<NEW_LINE>String selectUniquePlayersPerDay = SELECT + sql.dateToEpochSecond(sql.dateToHourStamp(sql.epochSec... | statement.setLong(3, after); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.