idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
280,632 | public void marshall(Image image, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (image == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(image.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(im... | image.getSourcePipelineName(), SOURCEPIPELINENAME_BINDING); |
905,029 | private Component components() {<NEW_LINE>VerticalLayout layout = VerticalLayout.create();<NEW_LINE>FileChooserTextBoxBuilder builder = FileChooserTextBoxBuilder.create(null);<NEW_LINE>layout.<MASK><NEW_LINE>ToggleSwitch toggleSwitch = ToggleSwitch.create(true);<NEW_LINE>toggleSwitch.addValueListener(event -> Alerts.ok... | add(builder.build()); |
484,177 | public static void addAdminRole(RealmModel realm, String roleName) {<NEW_LINE>ClientModel client = realm.getMasterAdminClient();<NEW_LINE>if (client != null && client.getRole(roleName) == null) {<NEW_LINE>RoleModel role = client.addRole(roleName);<NEW_LINE>role.setDescription("${role_" + roleName + "}");<NEW_LINE>clien... | role = client.addRole(roleName); |
1,491,891 | private ClassPoolVisitor createOptimizationMarker(Configuration configuration) {<NEW_LINE>ProcessingFlagSetter marker = new ProcessingFlagSetter(ProcessingFlags.DONT_OPTIMIZE);<NEW_LINE>// We'll also mark classes referenced from descriptors of class members<NEW_LINE>// that can't be obfuscated. We're excluding enum cla... | , AccessConstants.ENUM, marker)); |
1,781,345 | final GetAddressBookResult executeGetAddressBook(GetAddressBookRequest getAddressBookRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAddressBookRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetAddressBookRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,730,983 | protected void expectMessage(DTLSMessage message) throws HandshakeException {<NEW_LINE>if (expectedStates == null) {<NEW_LINE>LOGGER.warn("Cannot process {} message from peer [{}], not expected!", HandshakeState.toString(message), peerToLog);<NEW_LINE>AlertMessage alert = new AlertMessage(AlertLevel.FATAL, AlertDescrip... | (message) + " handshake message, no more expected!", alert); |
1,241,547 | public void read(FieldBase field, LongFieldValue value) {<NEW_LINE>try {<NEW_LINE>String dataParsed = reader.getElementText();<NEW_LINE>BigInteger val;<NEW_LINE>try {<NEW_LINE>if (dataParsed.startsWith("0x")) {<NEW_LINE>val = new BigInteger(dataParsed<MASK><NEW_LINE>} else if (dataParsed.startsWith("0") && dataParsed.l... | .substring(2), 16); |
1,677,964 | final GetCorsPolicyResult executeGetCorsPolicy(GetCorsPolicyRequest getCorsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCorsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,343,045 | protected void doRegister() throws Exception {<NEW_LINE>// Just in case the previous EventLoop was shutdown abruptly, or an event is still pending on the old EventLoop<NEW_LINE>// make sure the readReadyRunnablePending variable is reset so we will be able to execute the Runnable on the<NEW_LINE>// new EventLoop.<NEW_LI... | Native.EVFILT_WRITE, Native.EV_ADD_CLEAR_ENABLE); |
287,567 | public void marshall(ContainerDetail containerDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (containerDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(containerDetail.getImage(), IMAGE_BINDI... | containerDetail.getReason(), REASON_BINDING); |
38,989 | public FrameGrabber createFrameGrabber() throws FrameGrabber.Exception {<NEW_LINE>try {<NEW_LINE>settings.getFrameGrabber().getMethod("tryLoad").invoke(null);<NEW_LINE>FrameGrabber f;<NEW_LINE>if (settings.getDeviceFile() != null) {<NEW_LINE>f = settings.getFrameGrabber().getConstructor(File.class).newInstance(settings... | setDeinterlace(settings.isDeinterlace()); |
698,868 | public String update(HttpServletRequest request) throws Exception {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>String serviceName = WebUtils.required(request, CommonParams.SERVICE_NAME);<NEW_LINE>String clusterName = WebUtils.optional(re... | valid = BooleanUtils.toBoolean(healthyString); |
1,238,841 | private JsonRequestBPartnerUpsertItem mapCareGiver(@NonNull final CareGiver careGiver) {<NEW_LINE>final String careGiverId = Optional.ofNullable(careGiver.getId()).map(UUID::toString).orElseThrow(() -> new RuntimeException("Missing careGiver._id!"));<NEW_LINE>final String careGiverExternalIdentifier = formatExternalId(... | put(careGiverExternalIdentifier, JsonBPRelationRole.Caregiver); |
1,486,023 | protected void validateServerConfig(EndpointType type, ServerConfig config) {<NEW_LINE>String endpointPrefixVariable = "flowable.admin.app.server-config." + type.name().toLowerCase();<NEW_LINE>Assert.hasText(config.getName(), endpointPrefixVariable + ".name must be set");<NEW_LINE>Assert.hasText(config.getDescription()... | getRestRoot(), endpointPrefixVariable + ".rest-root must be set"); |
665,505 | protected RouteDefinition loadRouteDefinition(Element screenElement) {<NEW_LINE>String screenId = screenElement.attributeValue("id");<NEW_LINE>String route = screenElement.attributeValue("route");<NEW_LINE>String parentPrefix = screenElement.attributeValue("routeParentPrefix");<NEW_LINE>boolean rootRoute = Boolean.pars... | (screenElement.attributeValue("rootRoute")); |
1,675,772 | public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>select.setWhereClause(null);<NEW_LINE>String originalQueryString = TiDBVisitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsString(originalQueryString, errors, state);<NEW_LINE>boolean orderBy = R... | combinedString = new ArrayList<>(); |
1,532,036 | public void dump(MotionScene scene, int... ids) {<NEW_LINE>Set<Integer> keys = mConstraints.keySet();<NEW_LINE>HashSet<Integer> set;<NEW_LINE>if (ids.length != 0) {<NEW_LINE>set = new HashSet<Integer>();<NEW_LINE>for (int id : ids) {<NEW_LINE>set.add(id);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>set = new HashSet<>(keys);... | set.size() + " constraints"); |
1,763,125 | public static float computeLodEntropy(Mesh terrainBlock, Buffer lodIndices) {<NEW_LINE>// Bounding box for the terrain block<NEW_LINE>BoundingBox bbox = (BoundingBox) terrainBlock.getBound();<NEW_LINE>// Vertex positions for the block<NEW_LINE>FloatBuffer positions = terrainBlock.getFloatBuffer(Type.Position);<NEW_LINE... | .getClosestCollision().getContactPoint(); |
1,478,258 | public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>if (0L == status.getLength()) {<NEW_LINE>return new NullInputStream(0L);<NEW_LINE>}<NEW_LINE>final Storage.Objects.Get request = session.getClient().objects().get... | ("Add range header %s for file %s", header, file)); |
1,371,307 | protected void initChannel(Channel channel) {<NEW_LINE>QuicClientCodecBuilder quicClientCodecBuilder = new QuicClientCodecBuilder();<NEW_LINE>quicClientCodecBuilder.ackDelayExponent(ackDelayExponent).activeMigration(activeMigration).congestionControlAlgorithm(congestionControlAlgorithm).grease(grease).hystart(hystart).... | toMillis(), TimeUnit.MILLISECONDS); |
1,806,363 | public BufferGeometry toBufferGeometry() {<NEW_LINE>BufferGeometry geo = super.toBufferGeometry();<NEW_LINE>int count = getFaces().size();<NEW_LINE>float[] ao = new float[count * 3];<NEW_LINE>float[] blockLight = new float[count * 3];<NEW_LINE>float[] sunLight = new float[count * 3];<NEW_LINE>for (int itemIndex = 0; it... | 1] = f.getBl2(); |
1,410,312 | final BaseBytes basebytes_zfill(int width) {<NEW_LINE>// How many zeros will I need?<NEW_LINE>int fill = width - size;<NEW_LINE>Builder builder = new Builder((fill > 0) ? width : size);<NEW_LINE>if (fill <= 0) {<NEW_LINE>// width <= size so result is just a copy of this array<NEW_LINE>builder.append(this);<NEW_LINE>} e... | append(this, p, size); |
385,414 | final DeleteNamespaceResult executeDeleteNamespace(DeleteNamespaceRequest deleteNamespaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNamespaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
277,468 | public void alarm(final Object alarmContext) {<NEW_LINE>final String methodName = "alarm()";<NEW_LINE>synchronized (this) {<NEW_LINE>if (!stopping && !this.htod.invalidationBuffer.isDiskClearInProgress()) {<NEW_LINE>this.htod.invalidationBuffer.invokeBackgroundInvalidation(HTODInvalidationBuffer.SCAN);<NEW_LINE>} else ... | this.cacheName + " disk clear is in progress - skip disk scan and set alarm sleepTime=" + sleepTime); |
380,872 | // Source: https://stackoverflow.com/questions/7222382/get-lat-long-given-current-point-distance-and-bearing<NEW_LINE>static GeoPoint findTarget(double theLatitudeDegrees, double theLongitudeDegrees, double theBearingDegrees, double theDistanceKm) {<NEW_LINE>double latitudeRadians = Math.toRadians(normalizeLatitude(the... | longitude = Math.toDegrees(targetLongitude); |
613,912 | public Map<String, Object> toMap() {<NEW_LINE>HashMap<String, Object> map = new HashMap<>();<NEW_LINE>map.put("appName", appName);<NEW_LINE>map.put("appVersion", appVersion);<NEW_LINE><MASK><NEW_LINE>map.put("deviceHeight", deviceHeight);<NEW_LINE>map.put("deviceModel", deviceModel);<NEW_LINE>map.put("deviceWidth", dev... | map.put("cacheDir", cacheDir); |
414,974 | public boolean apply(Game game, Ability source) {<NEW_LINE>if (source.getTargets().get(1) != null) {<NEW_LINE>Permanent targetPermanent = game.getPermanent(source.getTargets().get(1).getFirstTarget());<NEW_LINE>if (targetPermanent != null) {<NEW_LINE>targetPermanent.addCounters(CounterType.GLYPH.createInstance(targetPe... | getControllerId(), source, game); |
35,414 | private void printPackageListRecursively(Appendable out, StringBuilder sb, int depth, PrintOptions opts) throws IOException {<NEW_LINE>if (depth >= opts.getMaxTreeDepth()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isPrintable(opts)) {<NEW_LINE>// Should be guaranteed by `getChildren()`<NEW_LINE>throw new IllegalState... | sb, depth + 1, opts); |
1,704,752 | private void replacePrototypeMemberDeclaration(PrototypeMemberDeclaration declar, String alias) {<NEW_LINE>// x.prototype.y = ... -> t.y = ...<NEW_LINE>Node assignment = declar.node.getFirstChild();<NEW_LINE>Node lhs = assignment.getFirstChild();<NEW_LINE>Node name = NodeUtil.newQName(compiler, alias + "." + declar.m... | String originalName = accessNode.getOriginalName(); |
1,773,505 | // prepare<NEW_LINE>@Override<NEW_LINE>protected String doIt() throws Exception {<NEW_LINE>log.info("R_RequestType_ID=" + p_R_RequestType_ID + ", R_Group_ID=" + p_R_Group_ID + ", R_Category_ID=" + p_R_Category_ID + <MASK><NEW_LINE>MRequestType type = MRequestType.get(getCtx(), p_R_RequestType_ID);<NEW_LINE>if (type.get... | ", C_BPartner_ID=" + p_C_BPartner_ID + ", p_M_Product_ID=" + p_M_Product_ID); |
1,288,767 | public final // JPA2.g:542:1: entity_type_literal : WORD ;<NEW_LINE>JPA2Parser.entity_type_literal_return entity_type_literal() throws RecognitionException {<NEW_LINE>JPA2Parser.entity_type_literal_return retval = new JPA2Parser.entity_type_literal_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 =... | adaptor.addChild(root_0, WORD628_tree); |
1,330,187 | public void onDrawFrame(GL10 glUnused) {<NEW_LINE>synchronized (this) {<NEW_LINE>if (updateSurface) {<NEW_LINE>mSurface.updateTexImage();<NEW_LINE>mSurface.getTransformMatrix(mSTMatrix);<NEW_LINE>updateSurface = false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Ignore the passed-in GL10 interface, and use the GLES20<NEW_LINE>//... | GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID); |
1,359,851 | public void load(InputStream from) {<NEW_LINE>try {<NEW_LINE>DataInputStream dis = from instanceof BufferedInputStream ? new DataInputStream(from) : new DataInputStream(new BufferedInputStream(from));<NEW_LINE>byte included = dis.readByte();<NEW_LINE>boolean hasFeatures = (included & BITMASK_FEATURES_PRESENT) != 0;<NEW... | ObjectInputStream ois = new ObjectInputStream(dis); |
1,128,886 | public Search unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Search search = new Search();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
169,348 | public static void changeFields(TileMap tileMap, Stage primaryStage) {<NEW_LINE>Optional<ChangeNBTDialog.Result> result = new ChangeNBTDialog(<MASK><NEW_LINE>result.ifPresent(r -> {<NEW_LINE>Optional<ButtonType> confRes = new ChangeFieldsConfirmationDialog(null, primaryStage).showAndWait();<NEW_LINE>confRes.ifPresent(c... | tileMap, primaryStage).showAndWait(); |
1,534,821 | private Socket createSslSocketWithProxy(HttpContext context) throws IOException {<NEW_LINE>Settings settings = SoapUI.getSettings();<NEW_LINE>if (ProxyUtils.isProxyEnabled() && !ProxyUtils.isAutoProxy() && ProxyUtils.getProxyType(settings) == Proxy.Type.SOCKS) {<NEW_LINE>Proxy proxy = ProxyUtils.getProxy(settings);<NEW... | HttpHost) context.getAttribute("http.target_host"); |
1,079,589 | public void marshall(CreateWorkloadRequest createWorkloadRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createWorkloadRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createWorkloadRequest... | createWorkloadRequest.getClientRequestToken(), CLIENTREQUESTTOKEN_BINDING); |
710,160 | private void processLabel(DIEAggregate diea) {<NEW_LINE>if (!shouldProcess(diea)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = prog.getEntryName(diea);<NEW_LINE>if (name != null && diea.hasAttribute(DW_AT_low_pc)) {<NEW_LINE>Address address = toAddr(diea.getLowPC(0));<NEW_LINE>if (address.getOffset() != 0) {<NE... | getGlobalNamespace(), SourceType.IMPORTED); |
746,508 | public void handle(HttpExchange t) throws IOException {<NEW_LINE>String query = t.getRequestURI().getRawQuery();<NEW_LINE>String contextPath = t.getHttpContext().getPath();<NEW_LINE>ByteArrayOutputStream response = this.response.get();<NEW_LINE>response.reset();<NEW_LINE>OutputStreamWriter osw = new OutputStreamWriter(... | ).set("Content-Encoding", "gzip"); |
71,081 | public static DescribeCheckWarningsResponse unmarshall(DescribeCheckWarningsResponse describeCheckWarningsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCheckWarningsResponse.setRequestId(_ctx.stringValue("DescribeCheckWarningsResponse.RequestId"));<NEW_LINE>describeCheckWarningsResponse.setCount(_ctx.integerVa... | ("DescribeCheckWarningsResponse.CheckWarnings[" + i + "].Status")); |
450,921 | public void apply(Project project) {<NEW_LINE>TaskProvider<Task> precommit = project.getTasks().register(PrecommitPlugin.PRECOMMIT_TASK_NAME, t -> {<NEW_LINE><MASK><NEW_LINE>t.setDescription("Runs all non-test checks");<NEW_LINE>});<NEW_LINE>project.getPluginManager().withPlugin("lifecycle-base", p -> project.getTasks(... | t.setGroup(JavaBasePlugin.VERIFICATION_GROUP); |
53,444 | public Response send(Request request) throws Throwable {<NEW_LINE>okhttp3.Request.Builder requestBuilder = new okhttp3.Request.Builder().url(request.getUrl());<NEW_LINE>for (Map.Entry<String, String> requestHeader : request.getRequestHeaders().entrySet()) {<NEW_LINE>requestBuilder.addHeader(requestHeader.getKey(), requ... | requestBuilder.method(methodValue, body); |
1,167,469 | private void validate(MaintenanceWindow window, MaintenanceWindow before) {<NEW_LINE>beanValidator.validate(window);<NEW_LINE>if (!window.getStartTime().before(window.getEndTime())) {<NEW_LINE>beanValidator.error().forField("endTime", "should be after startTime").throwError();<NEW_LINE>}<NEW_LINE>if (before != null) {<... | ) + "'").throwError(); |
973,200 | private void handleSendEvent(TellstickBindingConfig config, TellstickDevice dev, Command command) throws TellstickException {<NEW_LINE>int resend = config.getResend();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < resend; i++) {<NEW_LINE>checkLastAndWait(resendInterval);<NEW_LINE>logger.info("Send {} to {} time={} conf:... | long resendInterval = config.getResendInterval(); |
1,362,047 | public Pair<String, SqlType> visitFunctionCall(final FunctionCall node, final Context context) {<NEW_LINE>final FunctionName functionName = node.getName();<NEW_LINE>final String instanceName = funNameToCodeName.apply(functionName);<NEW_LINE>final UdfFactory udfFactory = functionRegistry.getUdfFactory(node.getName());<N... | KsqlScalarFunction function = argumentsAndContext.getFunction(); |
1,632,477 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("roleId"), convLabe... | ValidatorFactory.getInstance(Validator.MAX_LENGTH); |
7,483 | final UpdateAccountResult executeUpdateAccount(UpdateAccountRequest updateAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,753,954 | public static Geometry makeAtlasBatch(Spatial spat, AssetManager mgr, int atlasSize) {<NEW_LINE>List<Geometry> <MASK><NEW_LINE>GeometryBatchFactory.gatherGeoms(spat, geometries);<NEW_LINE>TextureAtlas atlas = createAtlas(spat, atlasSize);<NEW_LINE>if (atlas == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Geometry ... | geometries = new ArrayList<>(); |
1,022,197 | private HttpURLConnection initHttpConnection(URL url, HttpRequest request) throws ClientException, IOException {<NEW_LINE>HttpURLConnection httpConn = null;<NEW_LINE>Proxy <MASK><NEW_LINE>if ("https".equalsIgnoreCase(url.getProtocol())) {<NEW_LINE>SSLSocketFactory sslSocketFactory = createSSLSocketFactory(request);<NEW... | proxy = calcProxy(url, request); |
801,853 | public void read(org.apache.thrift.protocol.TProtocol prot, applyUpdates_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(4);<NEW_LINE>if (incoming.get(0))... | struct.keyExtent.read(iprot); |
875,964 | public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>SkillQuery skillQuery = SkillQuery.getParser().parse(call).requireOrThrow();<NEW_LINE>String model_name = skillQuery.getModel();<NEW_LINE>String grou... | result.put("message", "Country wise skill usage fetched"); |
991,035 | public ArrayList<Byte> retreiveBuffer() throws IOException {<NEW_LINE>int totalIntSamples = totalBytes / 2;<NEW_LINE>Log.v(TAG, "Fetching samples : " + totalIntSamples + ", split : " + commandsProto.DATA_SPLITTING);<NEW_LINE>ArrayList<Byte> listData = new ArrayList<>();<NEW_LINE>for (int i = 0; i < (totalIntSamples / c... | packetHandler.read(data, remaining); |
364,369 | public void toObjectAsyncTypeReferenceObjectSerializer() throws InterruptedException {<NEW_LINE>// BEGIN: com.azure.core.util.BinaryData.toObjectAsync#TypeReference-ObjectSerializer<NEW_LINE>class Person {<NEW_LINE><NEW_LINE>@JsonProperty<NEW_LINE>private String name;<NEW_LINE><NEW_LINE>@JsonSetter<NEW_LINE>public Pers... | Person().setName("John"); |
1,645,392 | private void handleStorageMetadataValue(StringBuilder builder, StorageMetadata metadata) {<NEW_LINE>if (metadata instanceof ChunkMetadata) {<NEW_LINE>appendField(builder, METADATA_TYPE, CHUNK_METADATA);<NEW_LINE>ChunkMetadata chunkMetadata = (ChunkMetadata) metadata;<NEW_LINE>CHUNK_METADATA_FIELD_MAP.forEach((name, f) ... | .apply(segmentMetadata)))); |
299,709 | protected void writeRDFProperties(boolean useOntProperty) {<NEW_LINE>String template = m_options.hasPropTemplateOption() ? m_options.getPropTemplateOption() : DEFAULT_TEMPLATE;<NEW_LINE>String propType = useOntProperty ? "OntProperty" : "Property";<NEW_LINE>// select the appropriate properties based on the language cho... | nextStatement().getSubject()); |
1,625,428 | public void contextInitialized(final ServletContextEvent event) {<NEW_LINE>LOGGER.info("Initializing asynchronous event subsystem");<NEW_LINE>if (RequirementsVerifier.failedValidation()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EVENT_SERVICE.subscribe(BomUploadEvent.class, BomUploadProcessingTask.class);<NEW_LINE>EVENT_S... | PortfolioVulnerabilityAnalysisEvent.class, VulnerabilityAnalysisTask.class); |
923,057 | final DescribeOrganizationHealthResult executeDescribeOrganizationHealth(DescribeOrganizationHealthRequest describeOrganizationHealthRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationHealthRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,783,806 | private void initKeys(String json) {<NEW_LINE>try {<NEW_LINE>org.jose4j.jwk.JsonWebKeySet jwkSet = new org.jose4j.jwk.JsonWebKeySet(json);<NEW_LINE>for (JsonWebKey jwkKey : jwkSet.getJsonWebKeys()) {<NEW_LINE>if (isSupportedJwkKey(jwkKey)) {<NEW_LINE>if (jwkKey.getKeyId() != null) {<NEW_LINE>keysWithKeyId.put(jwkKey.ge... | ), jwkKey.getKey()); |
1,117,386 | @Authenticate(AccessType.UPDATE)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Reload a segment", notes = "Reload a segment")<NEW_LINE>public SuccessResponse reloadSegment(@ApiParam(value = "Name of the table", required = true) @PathParam("tableName") String tableName, @ApiParam(value =... | SuccessResponse("Sent " + numMessagesSent + " reload messages"); |
1,558,949 | public Message newMessage(int type, Thread thread) {<NEW_LINE>Message message = ChatSDK.db().createEntity(Message.class);<NEW_LINE>message.<MASK><NEW_LINE>message.setDate(new Date());<NEW_LINE>message.setEntityID(UUID.randomUUID().toString());<NEW_LINE>message.setType(type);<NEW_LINE>message.setMessageStatus(MessageSen... | setSender(ChatSDK.currentUser()); |
1,657,828 | protected File unpack() throws GradleException {<NEW_LINE>final Artifact artifact = resolveArtifact("com.mobidevelop.robovm:robovm-dist:tar.gz:nocompiler:" + RoboVMPlugin.getRoboVMVersion());<NEW_LINE>final File distTarFile = artifact.getFile();<NEW_LINE>final File unpackedDirectory = new File(<MASK><NEW_LINE>final Fil... | distTarFile.getParent(), "unpacked"); |
1,084,689 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>buttonGroup1 = new javax.swing.ButtonGroup();<NEW_LINE>panelLaF = new javax.swing.JPanel();<NEW_LINE>checkMaximizeNativeLaF... | java.awt.BorderLayout.CENTER); |
1,824,476 | public static String createErrorPageDataURI(Context context, @Nullable String uri, int errorType) {<NEW_LINE>String html = ErrorPages.INSTANCE.createErrorPage(context, fromGeckoErrorToErrorType(errorType), uri, R.raw.error_pages, R.raw.error_style);<NEW_LINE>boolean showSSLAdvanced;<NEW_LINE>switch(errorType) {<NEW_LIN... | html.replace("%url%", uri); |
1,137,940 | public int shortestPathBinaryMatrix(int[][] grid) {<NEW_LINE>if (grid[0][0] != 0 || grid[grid.length - 1][grid[0].length - 1] != 0)<NEW_LINE>return -1;<NEW_LINE>Queue<int[]> q = new LinkedList<>();<NEW_LINE>q.add(new int[] { 0, 0 });<NEW_LINE>int[][] dir = { { 0, 1 }, { 0, -1 }, { 1, 0 }, { -1, 0 }, { 1, 1 }, { -1, -1 ... | x1 = x + dat[0]; |
1,550,454 | public ListTagsOfResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsOfResourceResult listTagsOfResourceResult = new ListTagsOfResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | )).unmarshall(context)); |
1,103,295 | protected void defineObjects(HttpServletRequest req, HttpServletResponse res, Portlet portlet) throws PortalException, PortletException, SystemException {<NEW_LINE>String portletId = portlet.getPortletId();<NEW_LINE>ConcretePortletWrapper concretePortletWrapper = (ConcretePortletWrapper) APILocator.<MASK><NEW_LINE>Port... | getPortletAPI().getImplementingInstance(portlet); |
312,743 | public static void errorsHomographySymm(List<AssociatedPair> observations, DMatrixRMaj H, @Nullable DMatrixRMaj H_inv, DogArray_F64 storage) {<NEW_LINE>storage.reset();<NEW_LINE>if (H_inv == null)<NEW_LINE>H_inv = new DMatrixRMaj(3, 3);<NEW_LINE>CommonOps_DDRM.invert(H, H_inv);<NEW_LINE>Point3D_F64 tmp = new Point3D_F6... | - tmp.y / tmp.z; |
1,495,066 | private void processPeersDaoStateHashes(List<DaoStateHash> stateHashes, Optional<NodeAddress> peersNodeAddress) {<NEW_LINE>boolean useDaoMonitor = preferences.isUseFullModeDaoMonitor();<NEW_LINE>stateHashes.forEach(peersHash -> {<NEW_LINE>Optional<DaoStateBlock> optionalDaoStateBlock;<NEW_LINE>// If we do not add own h... | peersHash.getHash(), false); |
1,433,685 | public static String format(Text text, FormatToExpression format) {<NEW_LINE>if (text instanceof Simple) {<NEW_LINE>return ((Simple) text).getText();<NEW_LINE>} else if (text instanceof Blank) {<NEW_LINE>return " ";<NEW_LINE>} else if (text instanceof Character) {<NEW_LINE>return "" + ((Character) text).getChar();<NEW_... | d.getContent(), format); |
1,052,213 | private ConfigDataEnvironmentContributors createContributors(Binder binder) {<NEW_LINE>this.logger.trace("Building config data environment contributors");<NEW_LINE>MutablePropertySources propertySources <MASK><NEW_LINE>List<ConfigDataEnvironmentContributor> contributors = new ArrayList<>(propertySources.size() + 10);<N... | = this.environment.getPropertySources(); |
1,623,419 | public void map(final LongWritable key, final Text value, final OutputCollector<Text, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>String line_text = value.toString();<NEW_LINE>if (// ignore comments in edge file<NEW_LINE>line_text.startsWith("#"))<NEW_LINE>return;<NEW_LINE>final String[] line =... | + in_block_col + " " + in_block_row)); |
66,405 | public Optional<TypeSymbol> transform(AnnotationNode node) {<NEW_LINE>Node annotationRef = node.annotReference();<NEW_LINE>Optional<Symbol> annotationSymbol;<NEW_LINE>Predicate<Symbol> predicate = symbol -> symbol.getName().isPresent() && symbol.kind() == SymbolKind.ANNOTATION;<NEW_LINE>if (annotationRef.kind() == Synt... | this.getTypeFromQNameReference(qNameRef, qNamePredicate); |
1,730,743 | final UpdateDeviceResult executeUpdateDevice(UpdateDeviceRequest updateDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDeviceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateDeviceRequest> request = null;<NEW_LINE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
732,007 | public void marshall(SubmitContainerStateChangeRequest submitContainerStateChangeRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (submitContainerStateChangeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | submitContainerStateChangeRequest.getStatus(), STATUS_BINDING); |
702,860 | public void init(SerializationConfig serializationConfig, JavaType javaType) {<NEW_LINE>this.javaType = javaType;<NEW_LINE>BeanDescription beanDescription = serializationConfig.introspect(javaType);<NEW_LINE>for (BeanPropertyDefinition propertyDefinition : beanDescription.findProperties()) {<NEW_LINE>PropertyDescriptor... | .setGetter(initGetter(propertyDefinition)); |
296,241 | public void sendA() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(<MASK><NEW_LINE>if (previousState == SRV_PEND && currentState == A_PEND && haveSRVResponses()) {<NEW_LINE>for (int i = 0; i < _SRVResponses.length; i++) {<NEW_LINE>Vector vector2 = _SRVResponses[i];<NEW_LINE>for (Enumera... | this, "StateMachine: sendA: entry: id=" + hashCode()); |
192,276 | public void configure(Binder binder) {<NEW_LINE>binder.bind(ZkDataMigrationRunner.class).in(Scopes.SINGLETON);<NEW_LINE>Multibinder<ZkDataMigration> dataMigrations = Multibinder.newSetBinder(binder, ZkDataMigration.class);<NEW_LINE>dataMigrations.addBinding().to(LastTaskStatusMigration.class);<NEW_LINE>dataMigrations.a... | ).to(CleanOldNodesMigration.class); |
1,715,582 | private void generateUnionMemberAccessors(JDefinedClass unionClass, UnionTemplateSpec.Member member, JClass memberClass, JClass dataClass, JVar schemaField, JVar memberVar) {<NEW_LINE>final DataSchema memberType = member.getSchema();<NEW_LINE>final String memberKey = member.getUnionMemberKey();<NEW_LINE>final String ca... | "getTypeByMemberKey").arg(memberKey)); |
442,256 | /* (non-Javadoc)<NEW_LINE>* @see com.ibm.wsspi.sib.core.BrowserSession#reset()<NEW_LINE>*/<NEW_LINE>public void reset() throws SISessionUnavailableException, SISessionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserS... | { "com.ibm.ws.sib.processor.impl.BrowserSessionImpl", "1:532:1.78.1.7", e }); |
135,824 | private void validateSalesPartnerAssignment(@NonNull final I_C_Order orderRecord) {<NEW_LINE>final BPartnerId salesRepId = BPartnerId.<MASK><NEW_LINE>if (salesRepId == null || Check.isBlank(orderRecord.getSalesPartnerCode())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final OrgId orderOrgId = OrgId.ofRepoId(orderRecord.get... | ofRepoIdOrNull(orderRecord.getC_BPartner_SalesRep_ID()); |
134,858 | public static void addLinkButtons(ManualEntry entry, ManualInstance manual, ManualScreen gui, List<List<Token>> text, int x, int y, List<Button> pageButtons) {<NEW_LINE>final Map<Link, List<GuiButtonManualLink>> partButtons = new IdentityHashMap<>();<NEW_LINE>MutableInt lineId = new MutableInt(0);<NEW_LINE>for (List<To... | width(textUpToHere.getValue()); |
1,422,392 | private int findSalesRep(MRequest request) {<NEW_LINE>String QText = request.getSummary();<NEW_LINE>if (QText == null)<NEW_LINE>QText = "";<NEW_LINE>else<NEW_LINE>QText = QText.toUpperCase();<NEW_LINE>//<NEW_LINE>MRequestProcessorRoute[] <MASK><NEW_LINE>for (int i = 0; i < routes.length; i++) {<NEW_LINE>MRequestProcess... | routes = m_model.getRoutes(false); |
1,024,446 | protected void handleSecurityPermissions(Node node) {<NEW_LINE>String onJoinOp = getAttribute(node, "on-join-operation");<NEW_LINE>if (onJoinOp != null) {<NEW_LINE>OnJoinPermissionOperationName onJoinPermissionOperation = OnJoinPermissionOperationName.valueOf(upperCaseInternal(onJoinOp));<NEW_LINE>config.<MASK><NEW_LIN... | getSecurityConfig().setOnJoinPermissionOperation(onJoinPermissionOperation); |
207,204 | private void writeMetadata() {<NEW_LINE>for (IMPLICIT_STRING_COLUMN column : IMPLICIT_STRING_COLUMN.values()) {<NEW_LINE>String value = stringMetadata.get(column.getFieldName());<NEW_LINE>int index = column.ordinal();<NEW_LINE>if (value == null) {<NEW_LINE>metadataColumnWriters.get(index).setNull();<NEW_LINE>} else {<N... | sheetNames = listMetadata.get(sheetColumnName); |
1,193,048 | public void processConfigEntryProperties() {<NEW_LINE>super.processConfigEntryProperties();<NEW_LINE>if (configEntry.processorData[SLOT_EDGEABLE] != null) {<NEW_LINE>edgeable = ((Boolean) configEntry.processorData[SLOT_EDGEABLE]).booleanValue();<NEW_LINE>}<NEW_LINE>if (configEntry.processorData[SLOT_CONSUME_SUBFRAGMENT... | [SLOT_IGNORE_GET_POST]).booleanValue(); |
777,524 | public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>app = getMyApplication();<NEW_LINE>if (savedInstanceState != null && filesSize == null) {<NEW_LINE><MASK><NEW_LINE>remainingSize = savedInstanceState.getLong(REMAINING_SIZE_KEY);<NEW_LINE>remainingCount = s... | filesCount = savedInstanceState.getInt(FILES_COUNT_KEY); |
570,250 | public static QueryOfficialFileCustomListResponse unmarshall(QueryOfficialFileCustomListResponse queryOfficialFileCustomListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOfficialFileCustomListResponse.setRequestId(_ctx.stringValue("QueryOfficialFileCustomListResponse.RequestId"));<NEW_LINE>queryOfficialFileCustom... | ("QueryOfficialFileCustomListResponse.Data[" + i + "].CreateTime")); |
1,384,743 | public void operationComplete(int rc, Long result) {<NEW_LINE>if (rc == BKException.Code.OK) {<NEW_LINE>assert ((highBits & 0xFFFFFFFF00000000L) == 0);<NEW_LINE>assert ((result & 0xFFFFFFFF00000000L) == 0);<NEW_LINE>cb.operationComplete(rc, <MASK><NEW_LINE>} else if (rc == BKException.Code.LedgerIdOverflowException) {<... | (highBits << 32) | result); |
241,711 | private boolean matchAnnotationMethod(Field f, String propertyName, String propertyValue) {<NEW_LINE>Annotation[] annotations = fieldAndAnnotationsMap.get(f);<NEW_LINE>if (annotations == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (Annotation annotation : annotations) {<NEW_LINE>Class<?> annotationType = ann... | rule = annotationMethod.invoke(annotation); |
589,274 | private String createInsertSqlStatement(@NonNull final TypedSqlQuery<I_MD_Stock_WarehouseAndProduct_v> sqlQuery, @NonNull final String uuid) {<NEW_LINE>final StringBuilder insertClause = new StringBuilder("INSERT INTO " + I_T_MD_Stock_WarehouseAndProduct.Table_Name);<NEW_LINE>final StringBuilder selectClause = new Stri... | .COLUMNNAME_UUID).append("\n"); |
1,396,486 | public byte[] decrypt(ByteBuffer ciphertext, final byte[] nonce, final byte[] associatedData) throws GeneralSecurityException {<NEW_LINE>if (ciphertext.remaining() < MAC_TAG_SIZE_IN_BYTES) {<NEW_LINE>throw new GeneralSecurityException("ciphertext too short");<NEW_LINE>}<NEW_LINE>int firstPosition = ciphertext.position(... | (aad, ciphertext), tag); |
1,337,777 | protected void showSuggestions(SuggestBox suggestBox, Collection<? extends Suggestion> suggestions, boolean isDisplayStringHTML, boolean isAutoSelectEnabled, SuggestionCallback callback) {<NEW_LINE>super.showSuggestions(suggestBox, suggestions, isDisplayStringHTML, isAutoSelectEnabled, callback);<NEW_LINE>getPopupPanel... | Unit.PX.getType()); |
1,850,349 | protected void resolveData(String response) {<NEW_LINE>JsonElement iammeterDataElement = JsonParser.parseString(response);<NEW_LINE>JsonObject iammeterData = iammeterDataElement.getAsJsonObject();<NEW_LINE>String keyWord = "Datas";<NEW_LINE>if (iammeterData.has("Datas") && iammeterData.has("SN")) {<NEW_LINE>String[] gr... | ), channelConfig.getUnit()); |
378,624 | public Page<Instance> findInstancesByNamespaceAndInstanceAppId(String instanceAppId, String appId, String clusterName, String namespaceName, Pageable pageable) {<NEW_LINE>Page<Object> instanceIdResult = instanceConfigRepository.findInstanceIdsByNamespaceAndInstanceAppId(instanceAppId, appId, clusterName, namespaceName,... | > instances = Collections.emptyList(); |
289,733 | protected ChannelTypeXmlResult unmarshalType(HierarchicalStreamReader reader, UnmarshallingContext context, Map<String, String> attributes, NodeIterator nodeIterator) throws ConversionException {<NEW_LINE>boolean advanced = readBoolean(attributes, "advanced", false);<NEW_LINE>boolean system = readBoolean(attributes, "s... | label = super.readLabel(nodeIterator); |
683,656 | public TablePartitionRecord fill(ResultSet rs) throws SQLException {<NEW_LINE>this.id = rs.getLong("id");<NEW_LINE>this.parentId = rs.getLong("parent_id");<NEW_LINE>this.createTime = rs.getTimestamp("create_time");<NEW_LINE>this.updateTime = rs.getTimestamp("update_time");<NEW_LINE>this.tableSchema = rs.getString("tabl... | phyTable = rs.getString("phy_table"); |
1,436,600 | public void createMainThread(Meta meta) {<NEW_LINE>StaticObject systemThreadGroup = meta.java_lang_ThreadGroup.allocateInstance();<NEW_LINE>// private<NEW_LINE>// ThreadGroup()<NEW_LINE>meta.java_lang_ThreadGroup.lookupDeclaredMethod(Symbol.Name._init_, Symbol.Signature<MASK><NEW_LINE>Thread hostThread = Thread.current... | ._void).invokeDirect(systemThreadGroup); |
1,704,393 | private void drawOneColorGlobalStatus(Graphics g, Color color) {<NEW_LINE>g.setColor(color);<NEW_LINE>int x = (THICKNESS - STATUS_BOX_SIZE) / 2;<NEW_LINE>int y = (topOffset() - STATUS_BOX_SIZE) / 2;<NEW_LINE>g.fillRect(x, y, STATUS_BOX_SIZE, STATUS_BOX_SIZE);<NEW_LINE>g.setColor(STATUS_DOWN_PART_COLOR);<NEW_LINE>g.draw... | x + STATUS_BOX_SIZE, y - 1); |
672,380 | private CompiledQuery alterTableDropOrAttachPartition(TableReader reader, int action, SqlExecutionContext executionContext) throws SqlException {<NEW_LINE>final int pos = lexer.lastTokenPosition();<NEW_LINE>TableReaderMetadata readerMetadata = reader.getMetadata();<NEW_LINE>if (readerMetadata.getPartitionBy() == Partit... | getMetadata().getId()); |
1,303,230 | public RES transform(FetchableQuery<?, ?> query) {<NEW_LINE>// create groups<NEW_LINE>FactoryExpression<Tuple> expr = FactoryExpressionUtils.wrap(Projections.tuple(expressions));<NEW_LINE>boolean hasGroups = false;<NEW_LINE>for (Expression<?> e : expr.getArgs()) {<NEW_LINE>hasGroups |= e instanceof GroupExpression;<NEW... | select(expr).iterate(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.