idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,179,899 | @Produces({ "application/rdf+xml", "text/plain", "text/turtle", "text/n3", "application/trig", "application/ld+json", "application/n-quads", "text/x-turtlestar", "application/x-trigstar" })<NEW_LINE>public Response exportOnto(@Context DatabaseManagementService gds, @PathParam("dbname") String dbNameParam, @QueryParam("... | ).forEach(writer::handleStatement); |
1,801,260 | private boolean isElegibleAccessorMethod(Element element) {<NEW_LINE>if (element.getKind() != ElementKind.METHOD) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (element.getModifiers().contains(Modifier.STATIC)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (NonAttributeMirror.isPresent(element)) {<NEW_LINE>return f... | definitionType.equals(Proto.PARCELABLE_INTERFACE_TYPE); |
1,030,296 | private void addTitleAndDescriptionForSnippet(SnippetElement snippet, Composite itemComposite, MouseListener mouseListener) {<NEW_LINE>imageLabel = new Label(itemComposite, SWT.NONE);<NEW_LINE>imageLabel.setLayoutData(GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).create());<NEW_LINE>imageLabel.setImage(g... | , false).create()); |
1,110,729 | private TableUpdateDetails unsafeAssignTableToWriterThread(int tudKeyIndex, CharSequence tableNameUtf16) {<NEW_LINE>unsafeCalcThreadLoad();<NEW_LINE>long leastLoad = Long.MAX_VALUE;<NEW_LINE>int threadId = 0;<NEW_LINE>for (int i = 0, n = loadByWriterThread.length; i < n; i++) {<NEW_LINE>if (loadByWriterThread[i] < leas... | , "tcpIlp"), threadId, netIoJobs); |
1,802,851 | private void checkNewShortcut(int a, int b) {<NEW_LINE>checkNodeId(a);<NEW_LINE>checkNodeId(b);<NEW_LINE>if (getLevel(a) >= storage.getNodes() || getLevel(a) < 0)<NEW_LINE>throw new IllegalArgumentException("Invalid level for node " + a + ": " + getLevel<MASK><NEW_LINE>if (a != b && getLevel(a) == getLevel(b))<NEW_LINE... | (a) + ". Node a must" + " be assigned a valid level before we add shortcuts a->b or a<-b"); |
1,515,367 | /*<NEW_LINE>* Generate artificial tangent for un-textured face<NEW_LINE>*/<NEW_LINE>static void generateTB(Vec3f v0, Vec3f v1, Vec3f v2, Vec3f[] ntb) {<NEW_LINE>MeshTempState instance = MeshTempState.getInstance();<NEW_LINE>Vec3f a = instance.vec3f1;<NEW_LINE>a.sub(v1, v0);<NEW_LINE>Vec3f b = instance.vec3f2;<NEW_LINE>... | [2].set(b); |
1,362,524 | public Response withSynchronization(final EntitlementCallCompletionCallback<T> callback, final long timeoutSec, final boolean callCompletion, final CallContext callContext) throws SubscriptionApiException, AccountApiException, EntitlementApiException {<NEW_LINE>final CompletionUserRequestEntitlement waiter;<NEW_LINE>if... | operationValue = callback.doOperation(callContext); |
685,037 | public static ListConfigItemsResponse unmarshall(ListConfigItemsResponse listConfigItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listConfigItemsResponse.setRequestId(_ctx.stringValue("ListConfigItemsResponse.RequestId"));<NEW_LINE>listConfigItemsResponse.setCode(_ctx.stringValue("ListConfigItemsResponse.Code"));<... | ("ListConfigItemsResponse.Data[" + i + "].Value")); |
605,846 | protected void addDecorators(CustomResourceInfo config, TypeDef def, Optional<String> specReplicasPath, Optional<String> statusReplicasPath, Optional<String> labelSelectorPath) {<NEW_LINE>final String name = config.crdName();<NEW_LINE>final String version = config.version();<NEW_LINE>resources.decorate(new AddCustomRes... | decorate(new PromoteSingleVersionAttributesDecorator(name)); |
287,799 | public Map<Integer, Double> labelCounts() {<NEW_LINE>Map<Integer, Double> ret = new HashMap<>();<NEW_LINE>if (labels == null)<NEW_LINE>return ret;<NEW_LINE>long nTensors = labels.tensorsAlongDimension(1);<NEW_LINE>for (int i = 0; i < nTensors; i++) {<NEW_LINE>INDArray row = labels.tensorAlongDimension(i, 1);<NEW_LINE>I... | getBlasWrapper().iamax(row); |
1,251,878 | protected Object doWork() {<NEW_LINE>validateArguments();<NEW_LINE>resolveIntervals();<NEW_LINE>// read in count files, validate they contain specified subset of intervals, and output<NEW_LINE>// count files for these intervals to temporary files<NEW_LINE>final List<File> intervalSubsetReadCountFiles = writeIntervalSub... | RunMode.COHORT) ? COHORT_DENOISING_CALLING_PYTHON_SCRIPT : CASE_SAMPLE_CALLING_PYTHON_SCRIPT; |
1,452,774 | private void testHashSTint() {<NEW_LINE>StdOut.println("HashSTint test");<NEW_LINE>HashSETint hashSTint = new HashSETint(5);<NEW_LINE>hashSTint.add(5);<NEW_LINE>hashSTint.add(1);<NEW_LINE>hashSTint.add(9);<NEW_LINE>hashSTint.add(2);<NEW_LINE>hashSTint.add(0);<NEW_LINE>hashSTint.add(99);<NEW_LINE>hashSTint.add(-1);<NEW_... | StdOut.println("\ntoString() test: " + hashSTint); |
1,028,204 | void createToolWindowContent(ToolWindow toolWindow) {<NEW_LINE>// Create runner UI layout<NEW_LINE>RunnerLayoutUi.Factory factory = <MASK><NEW_LINE>RunnerLayoutUi layoutUi = factory.create("", "", "session", project);<NEW_LINE>layoutUi.getOptions().setMoveToGridActionEnabled(false).setMinimizeActionEnabled(false);<NEW_... | RunnerLayoutUi.Factory.getInstance(project); |
111,160 | private RelatedTerm createRelatedTerm(Term term1, Term term2) throws GlossaryAuthorFVTCheckedException, InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>RelatedTerm relatedterm = new RelatedTerm();<NEW_LINE>relatedterm.setDescription("ddd");<NEW_LINE>relatedterm.setExpression("E... | getSystemAttributes().getGUID()); |
1,319,595 | List<Future<?>> store(List<String> agentRollupIds, String fullTextSha1, String fullText) throws Exception {<NEW_LINE>// relying on agent side to rate limit (re-)sending the same full text<NEW_LINE>List<Future<?>> futures = new ArrayList<>();<NEW_LINE>for (String agentRollupId : agentRollupIds) {<NEW_LINE>BoundStatement... | .setString(i++, fullTextSha1); |
202,861 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
221,350 | public void symlink(Object from, Object to, StarlarkThread thread) throws RepositoryFunctionException, EvalException, InterruptedException {<NEW_LINE>StarlarkPath fromPath = getPath("symlink()", from);<NEW_LINE>StarlarkPath toPath = getPath("symlink()", to);<NEW_LINE>WorkspaceRuleEvent w = WorkspaceRuleEvent.newSymlink... | ()), Transience.PERSISTENT); |
129,117 | protected String load(final Session<?> session, final Path directory) throws BackgroundException {<NEW_LINE>final Path parent = this.toEncrypted(session, directory.getParent().attributes().getDirectoryId(), directory.getParent());<NEW_LINE>final <MASK><NEW_LINE>final String ciphertextName = this.toEncrypted(session, pa... | String cleartextName = directory.getName(); |
1,750,455 | public okhttp3.Call fakeOuterCompositeSerializeCall(OuterComposite body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {... | HashMap<String, String>(); |
46,738 | public void run(RegressionEnvironment env) {<NEW_LINE>String text = "module test.test1;\n" + "create schema MyTypeOne(col1 string, col2 int);" + "create window MyWindowOne#keepall as select * from MyTypeOne;" + "insert into MyWindowOne select * from MyTypeOne;";<NEW_LINE>env.compileDeploy(text).undeployAll();<NEW_LINE>... | compileDeploy(text).undeployAll(); |
1,036,672 | final GetInvitationsCountResult executeGetInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInvitationsCountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
7,848 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>SharedPreferences themePrefs = getSharedPreferences("THEME", 0);<NEW_LINE>Boolean isDark = themePrefs.getBoolean("isDark", false);<NEW_LINE>if (isDark)<NEW_LINE>setTheme(R.style.DarkTheme);<NEW_LINE>else<NEW_LINE>setTheme(R.style.AppTheme);<NEW_LINE>super.onCre... | getCurrentTarget().getDeviceType()); |
1,390,437 | public void toHashTree(HashTree tree, List<MsTestElement> hashTree, MsParameter msParameter) {<NEW_LINE>ParameterConfig config = (ParameterConfig) msParameter;<NEW_LINE>final HashTree groupTree = tree.add(getThreadGroup());<NEW_LINE>if ((config != null && config.isEnableCookieShare()) || enableCookieShare) {<NEW_LINE>C... | , SaveService.aliasToClass("CookiePanel")); |
246,594 | public InputIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputIdentifier inputIdentifier = new InputIdentifier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken... | String currentParentElement = context.getCurrentParentElement(); |
1,640,557 | public MappeableContainer xor(MappeableBitmapContainer value2) {<NEW_LINE>int newCardinality = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(this.bitmap) && BufferUtil.isBackedBySimpleArray(value2.bitmap)) {<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>long[] v2 = value2.bitmap.array();<NEW_LINE>int len = this.... | = answer.bitmap.array(); |
1,062,868 | public void run() {<NEW_LINE>if (mLocatorTask.getLoadStatus() == LoadStatus.LOADED) {<NEW_LINE>// Call geocodeAsync passing in an address<NEW_LINE>final ListenableFuture<List<GeocodeResult>> geocodeResultListenableFuture = mLocatorTask.geocodeAsync(address, mAddressGeocodeParameters);<NEW_LINE>geocodeResultListenableFu... | Log.i(TAG, "Trying to reload locator task"); |
873,561 | public Mono<Void> filter(@NonNull final ServerWebExchange exchange, @NonNull final WebFilterChain chain) {<NEW_LINE>MediaType mediaType = exchange.getRequest().getHeaders().getContentType();<NEW_LINE>if (MediaType.MULTIPART_FORM_DATA.isCompatibleWith(mediaType)) {<NEW_LINE>ServerRequest serverRequest = ServerRequest.cr... | headers.remove(HttpHeaders.CONTENT_LENGTH); |
1,012,766 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String queueName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
36,216 | final AssociateRepositoryResult executeAssociateRepository(AssociateRepositoryRequest associateRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | false), new AssociateRepositoryResultJsonUnmarshaller()); |
1,489,810 | void process(Content dataSource, DataSourceIngestModuleProgress progressBar) {<NEW_LINE>this.dataSource = dataSource;<NEW_LINE>progressBar.progress(Bundle.ExtractZone_progress_Msg());<NEW_LINE>List<AbstractFile> zoneFiles = null;<NEW_LINE>try {<NEW_LINE>zoneFiles = currentCase.getServices().getFileManager().findFiles(d... | zoneFile, associatedObjectArtifacts, downloadArtifacts, knownPathIDs); |
1,508,162 | public char[][] read(IProgressMonitor monitor) {<NEW_LINE>// If there is currently a write in progress, return the contents that are about to be written to disk.<NEW_LINE>char[][] newContents;<NEW_LINE>synchronized (this.queueMutex) {<NEW_LINE>newContents = this.pendingWrite;<NEW_LINE>}<NEW_LINE>if (newContents != null... | + this.javaPluginWorkingLocation.toOSString(); |
975,913 | public void testSkipLastExecutionNoAutoPurge(PrintWriter out) throws Exception {<NEW_LINE>DBIncrementTask task = new DBIncrementTask("testSkipLastExecutionNoAutoPurge");<NEW_LINE>task.getExecutionProperties().put(AutoPurge.PROPERTY_NAME, AutoPurge.NEVER.toString());<NEW_LINE>Trigger trigger = new FixedRepeatTrigger(2, ... | boolean done = status.isDone(); |
1,541,085 | private void startServer(MonoSink<String> sink) {<NEW_LINE>server.createContext("/", ex -> {<NEW_LINE><MASK><NEW_LINE>rHeaders.set("Content-Type", "text/plain");<NEW_LINE>ex.sendResponseHeaders(200, 0);<NEW_LINE>if ("GET".equalsIgnoreCase(ex.getRequestMethod())) {<NEW_LINE>var params = splitQuery(ex.getRequestURI());<N... | Headers rHeaders = ex.getResponseHeaders(); |
95,000 | protected GraphQLOutputType toGraphQLUnion(String name, String description, AnnotatedType javaType, List<AnnotatedType> possibleJavaTypes, TypeMappingEnvironment env) {<NEW_LINE>BuildContext buildContext = env.buildContext;<NEW_LINE>OperationMapper operationMapper = env.operationMapper;<NEW_LINE>if (buildContext.typeCa... | buildContext.typeCache.register(name); |
1,363,745 | protected void storeConsumerMetadataTask(MetadataIdentifier consumerMetadataIdentifier, Map<String, String> serviceParameterMap) {<NEW_LINE>try {<NEW_LINE>if (logger.isInfoEnabled()) {<NEW_LINE>logger.info("store consumer metadata. Identifier : " + consumerMetadataIdentifier + "; definition: " + serviceParameterMap);<N... | e.getMessage(), e); |
1,677,473 | public Redirect remove(String key) {<NEW_LINE>Redirect r = null;<NEW_LINE>try {<NEW_LINE>r = getJdbcTemplate().queryForObject("SELECT str_group_id, int_type, str_destination_id, str_name, lng_creation_time " + "FROM redirect " + "WHERE pk_proc = ? " + "FOR UPDATE", new RowMapper<Redirect>() {<NEW_LINE><NEW_LINE>@Overri... | ).update("DELETE FROM redirect WHERE pk_proc = ?", key); |
1,338,442 | public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String contextExpr = "@public create context MyContext " + "initiated by @Now and pattern [every timer:interval(10)] terminated after 10 sec";<NEW_LINE>env.compileDeploy(contextExpr, p... | env.eplToModelCompileDeploy(streamExpr, path); |
1,659,724 | private static final void readConfig(InputStream in, PxAll all) throws IOException, JSONException {<NEW_LINE>String str = IOUtils.<MASK><NEW_LINE>JSONArray ja = new JSONArray(str);<NEW_LINE>for (int i = 0; i < ja.length(); i++) {<NEW_LINE>JSONObject jo = ja.getJSONObject(i);<NEW_LINE>if (jo == null) {<NEW_LINE>continue... | toString(in, Charsets.UTF_8); |
318,305 | public ActionAcceptance actionAcceptance(BalancingAction action, ClusterModel clusterModel) {<NEW_LINE>Broker sourceBroker = clusterModel.<MASK><NEW_LINE>Broker destinationBroker = clusterModel.broker(action.destinationBrokerId());<NEW_LINE>String sourceTopic = action.topic();<NEW_LINE>switch(action.balancingAction()) ... | broker(action.sourceBrokerId()); |
1,029,212 | public void plus(final Pair<String, AbstractVcs> pair) {<NEW_LINE>// does not support<NEW_LINE>if (pair.getSecond().getDiffProvider() == null)<NEW_LINE>return;<NEW_LINE>final <MASK><NEW_LINE>final AbstractVcs newVcs = pair.getSecond();<NEW_LINE>final VirtualFile root = getRootForPath(key);<NEW_LINE>if (root == null)<NE... | String key = pair.getFirst(); |
1,393,150 | protected void encode(ChannelHandlerContext ctx, BaseModelRequest msg, ByteBuf out) {<NEW_LINE>if (msg instanceof ModelLoadModelRequest) {<NEW_LINE>out.writeByte('L');<NEW_LINE>ModelLoadModelRequest request = (ModelLoadModelRequest) msg;<NEW_LINE>byte[] buf = msg.getModelName().getBytes(StandardCharsets.UTF_8);<NEW_LIN... | out.writeInt(buf.length); |
543,367 | // restoreEntity<NEW_LINE>@Override<NEW_LINE>public EntityDetail restoreEntity(String userId, String deletedEntityGUID) throws InvalidParameterException, RepositoryErrorException, EntityNotKnownException, EntityNotDeletedException, UserNotAuthorizedException {<NEW_LINE>final String methodName = "restoreEntity";<NEW_LIN... | incrementVersion(userId, entity, restoredEntity); |
1,400,083 | public Stream<VirtualGraph> fromCypher(@Name("kernelTransaction") String statement, @Name("params") Map<String, Object> params, @Name("name") String name, @Name("properties") Map<String, Object> properties) {<NEW_LINE>params = params == null ? Collections.emptyMap() : params;<NEW_LINE>Set<Node> nodes = new HashSet<>(10... | = new HashMap<>(properties); |
469,652 | public DescribeUserPoolResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeUserPoolResult describeUserPoolResult = new DescribeUserPoolResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
223,039 | static void write(Manifest manifest, OutputStream out) throws IOException {<NEW_LINE>CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder();<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(LINE_LENGTH_LIMIT);<NEW_LINE>Attributes.Name versionName = Attributes.Name.MANIFEST_VERSION;<NEW_LINE>String version = manif... | versionName, version, encoder, buffer); |
725,565 | public byte[] toMessageOrchid(boolean isSecure) {<NEW_LINE>Uint24 lvalue = this.valueLength;<NEW_LINE>int lshared = this.sharedPath.length();<NEW_LINE>int lencoded = PathEncoder.calculateEncodedLength(lshared);<NEW_LINE>boolean hasLongVal = this.hasLongValue();<NEW_LINE>Optional<Keccak256> leftHashOpt = this.left.getHa... | .put((byte) ARITY); |
1,567,359 | public static void main(String[] args) {<NEW_LINE>CreateFiducialSquareBinary generator = new CreateFiducialSquareBinary();<NEW_LINE>CmdLineParser parser = new CmdLineParser(generator);<NEW_LINE>if (args.length == 0) {<NEW_LINE>generator.printHelp(parser);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>parser.parseArgument(args);<N... | System.err.println("Must specify at least one number"); |
1,683,114 | public static void doPartitionTableCutOver(final String schemaName, final String sourceTableName, final String targetTableName, final TableInfoManager tableInfoManager, final GsiMetaManager.TableType primaryTableType) {<NEW_LINE>String random = UUID.randomUUID().toString();<NEW_LINE>List<TablePartitionRecord> sourceTab... | PartitionTableType.SINGLE_TABLE.getTableTypeIntValue()); |
1,783,697 | public void apply(Element element, boolean sortable) {<NEW_LINE>String horizontalScroll = element.attributeValue("horizontalScroll");<NEW_LINE>if (!StringUtils.isBlank(horizontalScroll)) {<NEW_LINE>table.setHorizontalScrollEnabled(Boolean.valueOf(horizontalScroll));<NEW_LINE>}<NEW_LINE>loadFontPreferences(element);<NEW... | loadedIds = new LinkedList<>(); |
1,165,149 | public Void visitInheritDoc(InheritDocTree inheritDocTree, Void unused) {<NEW_LINE>new SimpleTreeVisitor<Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void visitVariable(VariableTree variableTree, Void unused) {<NEW_LINE>state.reportMatch(buildDescription(diagnosticPosition(getCurrentPath(), state)).setM... | ).getLeaf(), null); |
666,933 | public static Image respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {<NEW_LINE>final Switchboard sb = (Switchboard) env;<NEW_LINE>final MultiProtocolURL referer = header.referer();<NEW_LINE>// harvest request information<NEW_LINE>StringBuilder connect = new StringBuilder();<NEW_LIN... | .get("User-Agent", "")); |
468,970 | private Identity checkIdentity(Business business, PullResult result, Person person, Unit unit, User user) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>EntityManager em = emc.get(Identity.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Crite... | unit, identity, user, order); |
564,770 | public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE>TreeNodeLabelManager labelManager = contextManager.getTreeNodeLabelManager();<NEW_LINE>VertexIdManager vertexIdManager = contextManager.getVertexIdManager();<NEW_LINE>QueryFlowOuterClass.OperatorType operatorType = getUseKeyOpera... | , sumVertex, new LogicalEdge()); |
185,879 | public boolean sendMessage(String email, String subject, String text) {<NEW_LINE>if (email.isEmpty()) {<NEW_LINE>logger.info("Email is not sent because the address is empty");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Properties properties = System.getProperties();<NEW_LINE>properties.setProperty("mail.smtps.host", co... | , properties.getProperty("mail.password")); |
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... | prepareStatement(sql, get_TrxName()); |
715,949 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>langDevModeCheckBox = new javax.swing.JCheckBox();<NEW_LINE>langDevModeDescriptionLabel = new javax.swing.JLabel();<NEW_LINE>// NOI18N<NEW_LINE>langDevModeCheckBox.setText(org.open... | 260, Short.MAX_VALUE))); |
1,434,891 | private JPanel createGraphColumnPane() {<NEW_LINE>JPanel colPanel = new JPanel();<NEW_LINE>colPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>JLabel label = new JLabel(JMeterUtils.getResString("aggregate_graph_columns_to_display"));<NEW_LINE>colPanel.add(label);<NEW_LINE>for (Ba... | optionsPanel.add(createGraphFontValuePane()); |
601,887 | @POST<NEW_LINE>public Response add(User entity) throws StorageException {<NEW_LINE>if (!Context.getPermissionsManager().getUserAdmin(getUserId())) {<NEW_LINE>Context.getPermissionsManager().checkUserUpdate(getUserId(), new User(), entity);<NEW_LINE>if (Context.getPermissionsManager().getUserManager(getUserId())) {<NEW_... | create(getUserId(), entity); |
6,048 | public SuggestModel unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SuggestModel suggestModel = new SuggestModel();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren... | int originalDepth = context.getCurrentDepth(); |
426,879 | private List<ShipmentScheduleWithHU> createShipmentSchedulesWithHUForQtyToDeliver(@NonNull final I_M_ShipmentSchedule scheduleRecord, @Nullable final Quantity quantityToDeliverOverride, @NonNull final M_ShipmentSchedule_QuantityTypeToUse quantityTypeToUse, final boolean pickAccordingToPackingInstruction, @NonNull final... | -> shipmentScheduleBL.getQtyToDeliver(scheduleRecord)); |
1,497,891 | public static QueryLoRaJoinPermissionsResponse unmarshall(QueryLoRaJoinPermissionsResponse queryLoRaJoinPermissionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryLoRaJoinPermissionsResponse.setRequestId(_ctx.stringValue("QueryLoRaJoinPermissionsResponse.RequestId"));<NEW_LINE>queryLoRaJoinPermissionsResponse.setSu... | ("QueryLoRaJoinPermissionsResponse.JoinPermissions[" + i + "].ClassMode")); |
546,598 | private // Note that the keys stored in the BatchHolders are not moved around.<NEW_LINE>void resizeAndRehashIfNeeded() {<NEW_LINE>if (numEntries < threshold) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (EXTRA_DEBUG) {<NEW_LINE>logger.debug("Hash table numEntries = {}, threshold = {}; resizing the table...", numEntries, t... | >>> 16) & BATCH_MASK); |
1,610,866 | private OrderLineInputValidatorResults evaluateSalesPrescriptionPermission(@NonNull final BPartnerId bpartnerId, @NonNull final ProductId productId) {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final OrderLineInputValidatorResultsBuilder resultBuilder = OrderLineInputValidatorResults.builder();<... | bPartner = pharmaBPartnerRepo.getById(bpartnerId); |
565,671 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("to" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object o = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (o instanc... | MessageManager mm = EngineMessage.get(); |
124,871 | private void writeList(VirtualObject virtualObject, ByteBuffer buffer, PackageMetaData packageMetaData, EStructuralFeature feature) throws BimserverDatabaseException {<NEW_LINE>if (feature.getEType() instanceof EEnum) {<NEW_LINE>// Aggregate relations to enums never occur... at this<NEW_LINE>// moment<NEW_LINE>} else i... | writeReference(listObjectOid, buffer, feature); |
214,608 | protected MutablePropertyValues parseCommonContainerProperties(Element containerEle, ParserContext parserContext) {<NEW_LINE>MutablePropertyValues properties = new MutablePropertyValues();<NEW_LINE>String destinationType = containerEle.getAttribute(DESTINATION_TYPE_ATTRIBUTE);<NEW_LINE>boolean pubSubDomain = false;<NEW... | properties.add("clientId", clientId); |
101,116 | private AllDependenciesMaps createAllDependencies() throws IOException {<NEW_LINE>Collection<? extends IndexResult> results = filterDeletedFiles(querySupport.query(CssIndexer.IMPORTS_KEY, "", QuerySupport.Kind.PREFIX, CssIndexer.IMPORTS_KEY));<NEW_LINE>Map<FileObject, Collection<FileReference>> source2dests = new HashM... | resolvedReference.target(), sources); |
331,133 | private void adjustRectangularSelectionMouseX(int x, int y) {<NEW_LINE>if (!rectangularSelection) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JTextComponent c = component;<NEW_LINE>int offset = c.viewToModel(new Point(x, y));<NEW_LINE>Rectangle r = null;<NEW_LINE>;<NEW_LINE>if (offset >= 0) {<NEW_LINE>try {<NEW_LINE>r = c.m... | r.width = (int) charWidth; |
1,317,807 | private void buildCells(YearMonth yearMonth, int colIndex) {<NEW_LINE>List<Node> cells = new ArrayList<>();<NEW_LINE>Node header = buildHeaderCell(yearMonth);<NEW_LINE>header.<MASK><NEW_LINE>cells.add(header);<NEW_LINE>LocalDate start = yearMonth.atDay(1);<NEW_LINE>LocalDate end = yearMonth.atEndOfMonth();<NEW_LINE>if ... | getStyleClass().add("month-header"); |
937,828 | protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>// NOSONAR complexity<NEW_LINE>if (!NamespaceUtils.isAttributeDefined(element, NAME_ATTRIBUTE) && !NamespaceUtils.isAttributeDefined(element, ID_ATTRIBUTE)) {<NEW_LINE>parserContext.getReaderContext().error("Q... | builder, element, DURABLE_ATTRIBUTE, false); |
1,462,753 | public static void main(String[] args) throws Exception {<NEW_LINE>AmazonRekognition amazonRekognition = AmazonRekognitionClientBuilder.defaultClient();<NEW_LINE>System.out.println("Listing collections");<NEW_LINE>int limit = 10;<NEW_LINE>ListCollectionsResult listCollectionsResult = null;<NEW_LINE>String paginationTok... | System.out.println(resultId); |
266,062 | // snippet-start:[s3.java2.s3_bucket_ops.delete_bucket]<NEW_LINE>public static void listAllObjects(S3Client s3, String bucket) {<NEW_LINE>try {<NEW_LINE>// To delete a bucket, all the objects in the bucket must be deleted first<NEW_LINE>ListObjectsV2Request listObjectsV2Request = ListObjectsV2Request.builder().bucket(b... | awsErrorDetails().errorMessage()); |
834,164 | public void prep2RollbackCancel(String txType) {<NEW_LINE>TimerService ts = ivContext.getTimerService();<NEW_LINE>Timer timer = null;<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "", "prep2RollbackCancel(" + txType + ")");<NEW_LINE>svLogger.logp(Level.INFO, CLASSNAME, "", "Verify the cancelled timer cannot be found in... | INFO, CLASSNAME, "", "Timer cancellation transaction rolled back successfully."); |
870,203 | public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {<NEW_LINE>if (key.equals(getString(R.string.pref_key_notification_pending_drafts))) {<NEW_LINE>if (getActivity() != null) {<NEW_LINE>SharedPreferences prefs = androidx.preference.PreferenceManager.getDefaultSharedPreferences(getActi... | Context context = WordPress.getContext(); |
1,750,209 | private static void printHelpExit(CmdLineParser parser) {<NEW_LINE>parser.getProperties().withUsageWidth(120);<NEW_LINE>parser.printUsage(System.out);<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("Document Types");<NEW_LINE>for (PaperSize p : PaperSize.values()) {<NEW_LINE>System.out.printf(" %12s %5.0f... | " %12s %3s\n", u, u.abbreviation); |
1,528,655 | private static void throwForGettersWithInconsistentAnnotation(List<InconsistentlyAnnotatedGetters> getters, Class<? extends Annotation> annotationClass) {<NEW_LINE>if (getters.size() == 1) {<NEW_LINE>InconsistentlyAnnotatedGetters getter = getters.get(0);<NEW_LINE>throw new IllegalArgumentException(String.format("Expec... | IllegalArgumentException(errorBuilder.toString()); |
1,241,322 | AttributeMap createMapBackedAttributeMap(Map<String, Object> directMap) {<NEW_LINE>AggregatingAttributeMapper owner = this;<NEW_LINE>return new DelegatingAttributeMapper(owner) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Nullable<NEW_LINE>public <T> T get(String attributeName, Type<T> type) {<NEW_LINE>owner.checkType(attr... | addAll(nonConfigurableAttributes).build(); |
844,489 | static void invokeTarget(@NonNull final JavaActionProvider.ScriptAction scriptAction, @NonNull final Context ctx) {<NEW_LINE><MASK><NEW_LINE>final JavaModelWork action = new JavaModelWork(scriptAction, ctx, userPropertiesFile);<NEW_LINE>final Set<ActionFlag> flags = scriptAction.getActionFlags();<NEW_LINE>if (flags.con... | final String userPropertiesFile = verifyUserPropertiesFile(ctx); |
106,961 | public void onForwardPass(Model model, Map<String, INDArray> activations) {<NEW_LINE>int iterCount = getModelInfo(model).iterCount;<NEW_LINE>if (calcFromActivations() && updateConfig.reportingFrequency() > 0 && (iterCount == 0 || iterCount % updateConfig.reportingFrequency() == 0)) {<NEW_LINE>if (updateConfig.collectHi... | .numHistogramBins(StatsType.Activations)); |
1,160,863 | public static int calcColumnNumber(@Nullable Editor editor, @Nonnull CharSequence text, final int start, final int offset, final int tabSize) {<NEW_LINE>if (editor instanceof TextComponentEditor) {<NEW_LINE>return offset - start;<NEW_LINE>}<NEW_LINE>boolean useOptimization = true;<NEW_LINE>if (editor != null) {<NEW_LIN... | shift - start, tabSize) - 1; |
267,916 | public void marshall(CreateModelPackageRequest createModelPackageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createModelPackageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createMod... | createModelPackageRequest.getSamplePayloadUrl(), SAMPLEPAYLOADURL_BINDING); |
1,255,675 | public void store() {<NEW_LINE>BrandingModel branding = getBranding();<NEW_LINE>SplashUISupport.setValue(branding.getSplashRunningTextFontSize(), SplashUISupport.numberToString((Number) fontSize.getValue()));<NEW_LINE>SplashUISupport.setValue(branding.getSplashRunningTextBounds(), SplashUISupport.boundsToString((Rectan... | BrandedFile splash = branding.getSplash(); |
1,265,607 | public void reloadSubList() {<NEW_LINE>changedSubs.clear();<NEW_LINE>List<String> allSubs = UserSubscriptions.sort(UserSubscriptions.getAllUserSubreddits(this));<NEW_LINE>// Check which subreddits are different<NEW_LINE>ColorPreferences colorPrefs = new ColorPreferences(SettingsSubreddit.this);<NEW_LINE>int defaultFont... | .getFontStyle().getColor(); |
153,616 | private Rect findPositionForNewNodeBottomLeft(int width, int height, int rotatedWidth, int rotatedHeight, boolean rotate) {<NEW_LINE>Rect bestNode = new Rect();<NEW_LINE>// best y, score2 is best x<NEW_LINE>bestNode.score1 = Integer.MAX_VALUE;<NEW_LINE>for (int i = 0; i < freeRectangles.size; i++) {<NEW_LINE>// Try to ... | freeRectangles.get(i).y; |
251,946 | // BEGIN: NEVER INVOKED BY WEBSPHERE APPLICATION SERVER (Common Component Specific)<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public void addWebApplication(DeployedModule deployedModule, List extensionFactories) throws Throwable {<NEW_LINE>WebAppConfiguration wConfig = deployedModule.getWebAppConfig();<NEW_LINE>... | CLASS_NAME, "addWebApplication", "Failed.to.initialize.webapp.{0}", arg); |
62,511 | private void removingDupesAndSort() {<NEW_LINE>// duplicated ids can be present for some index due to cancellation of indexing for next index<NEW_LINE>final int[] currentChanges = changes;<NEW_LINE>final int intLength = length;<NEW_LINE>if (intLength < 250) {<NEW_LINE>// Plain sorting in Arrays works without allocation... | (short) (ptr + 1); |
355,174 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>LayoutInflater inflater = UiUtilities.getInflater(getContext(), nightMode);<NEW_LINE>View itemView = inflater.inflate(R.<MASK><NEW_LINE>items.add(new BaseBottomSheetItem.Builder().setCustomView(itemView).create());<NEW_LINE>statusContainer = itemView.fin... | layout.trip_recording_fragment, null, false); |
733,583 | final CreateAlgorithmResult executeCreateAlgorithm(CreateAlgorithmRequest createAlgorithmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAlgorithmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | invoke(request, responseHandler, executionContext); |
487,595 | public void call(String url) throws Exception {<NEW_LINE>int idx = url.indexOf("fulltext/");<NEW_LINE>String year = url.substring(idx + 9, idx + 9 + 4);<NEW_LINE>String filename = FilenameUtils.getName(url);<NEW_LINE>URI outUri = new URI(rootDir + year + "/" + filename);<NEW_LINE>FileSystem fs = FileSystem.get(outUri, ... | fs.delete(p, false); |
566,177 | // @formatter:on<NEW_LINE>@Inject(method = "checkIfExtend", cancellable = true, locals = LocalCapture.CAPTURE_FAILHARD, at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/Level;blockEvent(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/Block;II)V"))<NEW_LINE>public void arclight$pistonRetract... | getPluginManager().callEvent(event); |
802,736 | private static CefLoadHandlerAdapter createLoadHandler(BrowserPanel p) {<NEW_LINE>final WeakReference<BrowserPanel> selfRef = new WeakReference<BrowserPanel>(p);<NEW_LINE>return new CefLoadHandlerAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onLoadingStateChange(CefBrowser browser, boolean isLoading, bo... | .errorMsg_ += "<h3>Failed to load " + failedUrl + "</h3>"; |
993,843 | private void startScanOrphanJobs() {<NEW_LINE>if (scanOrphanJobsTask != null) {<NEW_LINE>scanOrphanJobsTask.cancel(true);<NEW_LINE>}<NEW_LINE>scanOrphanJobsTask = thdf.submitPeriodicTask(new PeriodicTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public TimeUnit getTimeUnit() {<NEW_LINE>return TimeUnit.SECONDS;<NEW_LINE... | SCAN_ORPHAN_JOB_INTERVAL.value(Long.class); |
96,380 | private void listConfigs(String domain, Model model) {<NEW_LINE>BusinessReportConfig config = m_configManager.queryConfigByDomain(domain);<NEW_LINE>Map<String, Set<String>> <MASK><NEW_LINE>List<BusinessItemConfig> configs = new ArrayList<BusinessItemConfig>(config.getBusinessItemConfigs().values());<NEW_LINE>Collection... | tags = m_tagConfigManger.findTagByDomain(domain); |
813,207 | public static InstructionSequence fromXml(Element element) {<NEW_LINE>if (element == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<String> instructionsList = new ArrayList<>();<NEW_LINE>Element instructionsListEle = element.getChild("instructions");<NEW_LINE>if (instructionsListEle != null) {<NEW_LINE>for (Ele... | val = instEle.getAttributeValue("value"); |
439,427 | public SdkFileEntry[] generateSourceFiles(ServiceModel serviceModel) throws Exception {<NEW_LINE>Shape shape = new Shape();<NEW_LINE>shape.setName("ResponseMetadata");<NEW_LINE>shape.setReferenced(true);<NEW_LINE>shape.setType("structure");<NEW_LINE>Shape stringShape = new Shape();<NEW_LINE>stringShape.setName("Request... | operation.getName() + "Request"); |
629,753 | public List<ExpressInfo> query(ExpressCompany company, String num) {<NEW_LINE>String appId = JPressOptions.get("express_api_appid");<NEW_LINE>String appSecret = JPressOptions.get("express_api_appsecret");<NEW_LINE>String param = "{\"com\":\"" + company.getCode() + "\",\"num\":\"" + num + "\"}";<NEW_LINE>String sign = H... | params.put("customer", appId); |
673,726 | public void run() {<NEW_LINE>while (!shutdown) {<NEW_LINE>maxOutstanding.acquireUninterruptibly();<NEW_LINE>final AtomicReference<StreamObserver<Messages.SimpleRequest>> requestObserver = new AtomicReference<>();<NEW_LINE>requestObserver.set(stub.streamingCall(new StreamObserver<Messages.SimpleResponse>() {<NEW_LINE><N... | log(level, "Error in Async Ping-Pong call", t); |
661,582 | final GetConfigResult executeGetConfig(GetConfigRequest getConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,734,983 | protected void run() throws GitException {<NEW_LINE>Repository repository = getRepository();<NEW_LINE>org.eclipse.jgit.api.RebaseCommand command = new Git(repository).rebase();<NEW_LINE>if (operation == GitClient.RebaseOperationType.BEGIN) {<NEW_LINE>Ref ref = null;<NEW_LINE>try {<NEW_LINE>ref = repository.findRef(revi... | RebaseResult res = command.call(); |
1,357,883 | public <G extends FulfillmentGroup> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException {<NEW_LINE>CreateResponse<G> createResponse = context.createOrRetrieveCopyInstance(this);<NEW_LINE>if (createResponse.isAlreadyPopulated()) {<NEW_LINE>return createRespons... | (context).getClone()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.