idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
848,695 | private void sendMessage(APIMessage msg, Api api, HttpServletResponse rsp) throws IOException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {<NEW_LINE>if (msg instanceof APISyncCallMessage) {<NEW_LINE>MessageReply reply = bus.call(msg);<NEW_LINE>sendReplyResponse(reply, api, rsp);<NEW_LINE>}... | headers.get(RestConstants.HEADER_WEBHOOK); |
384,254 | private String checkDefaultBinding(String action, SoapMessage message, RequestData data) throws WSSecurityException {<NEW_LINE>action = addToAction(action, "Signature", true);<NEW_LINE>action = <MASK><NEW_LINE>Object s = SecurityUtils.getSecurityPropertyValue(SecurityConstants.SIGNATURE_CRYPTO, message);<NEW_LINE>if (s... | addToAction(action, "Encrypt", true); |
1,597,742 | public void saveGraph() {<NEW_LINE>gasSensorActivity.csvLogger.prepareLogFile();<NEW_LINE>gasSensorActivity.csvLogger.writeMetaData(getResources().getString(R.string.gas_sensor));<NEW_LINE>gasSensorActivity.csvLogger.writeCSVFile(CSV_HEADER);<NEW_LINE>for (GasSensorData baroData : gasSensorActivity.recordedGasSensorDat... | Bitmap b = view.getDrawingCache(); |
881,283 | public void marshall(ContainerRecipeSummary containerRecipeSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (containerRecipeSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(containerRecipeSum... | containerRecipeSummary.getPlatform(), PLATFORM_BINDING); |
497,569 | public CreateBlueprintResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateBlueprintResult createBlueprintResult = new CreateBlueprintResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | class).unmarshall(context)); |
342,748 | private static //<NEW_LINE>//<NEW_LINE>void //<NEW_LINE>applyForMethod(//<NEW_LINE>JSweetContext context, //<NEW_LINE>MethodTree method, TreePath methodTreePath, List<String> commentLines) {<NEW_LINE>ExecutableElement methodElement = context.util.getElementForTreePath(methodTreePath);<NEW_LINE>Set<String> params = new ... | methodTreePath, parameter.getType()); |
516,704 | public GetDeviceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDeviceResult getDeviceResult = new GetDeviceResult();<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,084,106 | public MultiplexMediaConnectOutputDestinationSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MultiplexMediaConnectOutputDestinationSettings multiplexMediaConnectOutputDestinationSettings = new MultiplexMediaConnectOutputDestinationSettings();<NEW_LINE>int originalDepth = context.getCurr... | class).unmarshall(context)); |
1,289,926 | private static void joinPermissions(PermissionsContainer resultPermissionsContainer, PermissionsContainer permissionsContainer1, PermissionsContainer permissionsContainer2) {<NEW_LINE>Map<String, Integer> permissionsMap1 = permissionsContainer1.getExplicitPermissions();<NEW_LINE>Map<String, Integer> permissionsMap2 = p... | value2 = permissionsMap2.get(target); |
1,760,149 | final CreateParticipantConnectionResult executeCreateParticipantConnection(CreateParticipantConnectionRequest createParticipantConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createParticipantConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,323,458 | final public void initialiseOWLView() throws Exception {<NEW_LINE>registeredActions = new HashSet<>();<NEW_LINE>listener = () -> {<NEW_LINE>final OWLObject owlObject = getOWLWorkspace().getOWLSelectionModel().getSelectedObject();<NEW_LINE>if (owlObject instanceof OWLEntity) {<NEW_LINE>if (canShowEntity((OWLEntity) owlO... | getOWLEntityRenderer().addListener(entityRendererListener); |
335,047 | private void handle(String key) throws Exception {<NEW_LINE>String table = key.substring(0, key.indexOf(KEY_MIN_NAME));<NEW_LINE>InterProcessSemaphoreMutex interProcessSemaphoreMutex = interProcessSemaphoreMutexThreadLocal.get();<NEW_LINE>if (interProcessSemaphoreMutex == null) {<NEW_LINE>interProcessSemaphoreMutex = n... | paraValMap = tableParaValMap.get(table); |
731,324 | public Resource export(Model model) {<NEW_LINE>Resource implNode = super.export(model);<NEW_LINE>ValueFactoryImpl vf = ValueFactoryImpl.getInstance();<NEW_LINE>if (hostlist != null) {<NEW_LINE>model.add(implNode, HOSTLIST, vf.createLiteral(hostlist));<NEW_LINE>}<NEW_LINE>if (username != null) {<NEW_LINE>model.add(implN... | , vf.createLiteral(username)); |
1,643,673 | public CreateInstancesFromSnapshotResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateInstancesFromSnapshotResult createInstancesFromSnapshotResult = new CreateInstancesFromSnapshotResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c... | )).unmarshall(context)); |
1,478,089 | private static Map<String, List<TaggedWord>> loadMapping(InputStream inputStream, boolean internTags) throws IOException {<NEW_LINE>Map<String, List<TaggedWord>> map = new HashMap<>();<NEW_LINE>Map<String, String> interned = new HashMap<>();<NEW_LINE>try (InputStreamReader reader = new InputStreamReader(inputStream, St... | new TaggedWord(lemma, internedTag)); |
797,487 | public static TaskDefinition updateTaskProperties(TaskDefinition taskDefinition, DataSourceProperties dataSourceProperties, boolean setDatabaseCredentials) {<NEW_LINE>Assert.notNull(taskDefinition, "taskDefinition must not be null");<NEW_LINE>Assert.notNull(dataSourceProperties, "dataSourceProperties must not be null")... | setDslText(taskDefinition.getDslText()); |
552,276 | public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception {<NEW_LINE>FixBuckConfig config = params.getBuckConfig().getView(FixBuckConfig.class);<NEW_LINE>Optional<ImmutableList<String>> legacyFixScript = config.getLegacyFixScript();<NEW_LINE>if (config.shouldUseLegacyFixScript()) {<NEW_LINE>if (!legac... | new BuildId(buildId), true); |
67,642 | private Module readModuleFromFile(File file, String codename, boolean create) {<NEW_LINE>org.w3c.dom.Document document;<NEW_LINE>InputStream is;<NEW_LINE>try {<NEW_LINE>is = new FileInputStream(file);<NEW_LINE><MASK><NEW_LINE>document = XMLUtil.parse(xmlInputSource, false, false, DUMMY_ERROR_HANDLER, XMLUtil.createAURe... | InputSource xmlInputSource = new InputSource(is); |
1,117,322 | public Object calculate(Context ctx) {<NEW_LINE>if (left == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("\"\\=\"" + mm.getMessage("operator.missingLeftOperation"));<NEW_LINE>}<NEW_LINE>if (right == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new ... | Sequence s2 = new Sequence(1); |
182,722 | public void visitType(JavacNode typeNode, JCClassDecl type) {<NEW_LINE>AnnotationValues<FieldDefaults> fieldDefaults = null;<NEW_LINE>JavacNode source = typeNode;<NEW_LINE>boolean levelIsExplicit = false;<NEW_LINE>boolean makeFinalIsExplicit = false;<NEW_LINE>FieldDefaults fd = null;<NEW_LINE>for (JavacNode jn : typeNo... | .readConfiguration(ConfigurationKeys.FIELD_DEFAULTS_PRIVATE_EVERYWHERE)); |
407,228 | public JsonRpcResponse response(final Map<JsonRpcResponseKey, String> values, final List<TransactionResult> transactions) {<NEW_LINE>final Hash mixHash = hash(values.get(MIX_HASH));<NEW_LINE>final Hash parentHash = hash(values.get(PARENT_HASH));<NEW_LINE>final Hash ommersHash = hash(values.get(OMMERS_HASH));<NEW_LINE>f... | (values.get(NONCE)); |
1,371,882 | public Map<String, Object> buildHBaseWriter() {<NEW_LINE>DataxHbasePojo dataxHbasePojo = new DataxHbasePojo();<NEW_LINE>dataxHbasePojo.setJdbcDatasource(writerDatasource);<NEW_LINE>List<Map<String, Object>> columns = Lists.newArrayList();<NEW_LINE>for (int i = 0; i < writerColumns.size(); i++) {<NEW_LINE>Map<String, Ob... | put("index", i + 1); |
1,854,000 | private void checkNameVisibility(Scope scope, Node name) {<NEW_LINE>if (!name.isName()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Var var = scope.getVar(name.getString());<NEW_LINE>if (var == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Visibility v = AccessControlUtils.<MASK><NEW_LINE>switch(v) {<NEW_LINE>case PACKAGE:<N... | getEffectiveNameVisibility(name, var, defaultVisibilityForFiles); |
1,286,116 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.dialogs.WizardNewProjectCreationPage#validatePage()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected boolean validatePage() {<NEW_LINE>// Check whether the given location already contains files<NEW_LINE>boolean isValid = super.validatePage();<NEW_LINE>if (warn... | ] files = locationFile.list(); |
423,475 | public void marshall(Fleet fleet, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fleet == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fleet.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshall(fl... | fleet.getImageName(), IMAGENAME_BINDING); |
1,266,948 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>setContentView(R.layout.activity_crop_result);<NEW_LINE>imageView = ((ImageView) findViewById(R.id.resultImageView));<NEW_LINE>imageView.setBackgroundResourc... | imageUri = intent.getParcelableExtra("URI"); |
926,040 | public void listIncidentRootCausesWithIncident() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.listIncidentRootCauses#AnomalyIncident<NEW_LINE>final String detectionConfigurationId = "c0f2539f-b804-4ab9-a70f-0da0c89c76d8";<NEW_LINE>final OffsetDateTime startTime = OffsetDateTime.parse("2020-01-0... | "Description: %s%n", incidentRootCause.getDescription()); |
1,604,438 | private void innerMeasure(ConstraintWidget constraintWidget, BasicMeasure.Measure measure) {<NEW_LINE>Component component = (Component) constraintWidget.getCompanionWidget();<NEW_LINE>int measuredWidth = constraintWidget.getWidth();<NEW_LINE>int measuredHeight = constraintWidget.getHeight();<NEW_LINE>if (DEBUG) {<NEW_L... | " measure " + measuredWidth + " " + measuredHeight); |
644,829 | // TODO: remove this method, logic moved to createInstantiateMethod, see #23012<NEW_LINE>private void createRecordInitWrapper(ClassWriter cw, String className, BIRNode.BIRTypeDefinition typeDef) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC + ACC_STATIC, RECORD_INIT_WRAPPER_NAME, RECORD_INIT_WRAPPER, null, nu... | valueClassName, initFuncName, VALUE_CLASS_INIT, false); |
811,086 | public AbstractBlockProcessor.Result processBlock(final Blockchain blockchain, final MutableWorldState worldState, final BlockHeader blockHeader, final List<Transaction> transactions, final List<BlockHeader> ommers) {<NEW_LINE>long gasUsed = 0;<NEW_LINE>final List<TransactionReceipt> receipts = new ArrayList<>();<NEW_L... | true, TransactionValidationParams.processingBlock()); |
1,607,650 | private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String clusterName, ClusterUpdate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and canno... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,004,956 | public void restoreXml(XmlPullParser parser, AddressFactory factory) {<NEW_LINE>XmlElement el = parser.start("const_tpl");<NEW_LINE>String typestr = el.getAttribute("type");<NEW_LINE>if (typestr.equals("real")) {<NEW_LINE>type = REAL;<NEW_LINE>value_real = SpecXmlUtils.decodeLong(el.getAttribute("val"));<NEW_LINE>} els... | (el.getAttribute("val")); |
81,557 | public boolean contains(@CheckForNull Object obj) {<NEW_LINE>if (!(obj instanceof EndpointPair)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>EndpointPair<?> endpointPair = (EndpointPair<?>) obj;<NEW_LINE>if (graph.isDirected()) {<NEW_LINE>if (!endpointPair.isOrdered()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Obje... | node).contains(source)); |
1,374,676 | 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.off_t, NativeType.SLONGLONG); |
1,299,981 | final DBInstance executeDeleteDBInstance(DeleteDBInstanceRequest deleteDBInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDBInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Cl... | (super.beforeMarshalling(deleteDBInstanceRequest)); |
641,999 | private void handleEndpointResourceUpdate() {<NEW_LINE>List<EquivalentAddressGroup> addresses = new ArrayList<>();<NEW_LINE>Map<String, PriorityChildConfig> priorityChildConfigs = new HashMap<>();<NEW_LINE>// totally ordered priority list<NEW_LINE>List<String> priorities = new ArrayList<>();<NEW_LINE>Status endpointNot... | addAll(state.result.priorities); |
1,026,280 | private BaseBottomSheetItem createAddNewCategoryItem() {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>View container = UiUtilities.getInflater(app, nightMode).inflate(R.layout.bottom_sheet_item_with_descr_64dp, null);<NEW_LINE>container.setMinimumHeight(getResources().getDimensionPixelSize(R.dimen... | setCustomView(container).create(); |
575,970 | final RebuildWorkspacesResult executeRebuildWorkspaces(RebuildWorkspacesRequest rebuildWorkspacesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rebuildWorkspacesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,328,367 | public GraphQLInterfaceType onInterface(GraphQLInterfaceType interfaceType, Parameters params) {<NEW_LINE>List<GraphQLFieldDefinition> startingFields = interfaceType.getFieldDefinitions();<NEW_LINE>List<GraphQLFieldDefinition> newFields = wireFields(interfaceType, interfaceType.getDefinition(), params);<NEW_LINE>GraphQ... | , newParams), SchemaDirectiveWiring::onInterface); |
281,541 | public static void init(String[] args) {<NEW_LINE>magiskVersionCode = Integer.parseInt(args[0]);<NEW_LINE>magiskTmpfsPath = args[1];<NEW_LINE>if (args.length > 2) {<NEW_LINE>originalNativeBridge = args[2];<NEW_LINE>} else {<NEW_LINE>originalNativeBridge = "0";<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>isSELinuxEnforcing = has... | new File(magiskDir, "lib")); |
11,071 | public void onChildViewAttachedToWindow(View view) {<NEW_LINE>JzvdStdTinyWindow jzvd = view.findViewById(R.id.videoplayer);<NEW_LINE>JzvdStdTinyWindow currentJzvd = (JzvdStdTinyWindow) Jzvd.CURRENT_JZVD;<NEW_LINE>if (jzvd != null && currentJzvd != null && jzvd.jzDataSource.containsTheUrl(Jzvd.CURRENT_JZVD.jzDataSource.... | ()).removeView(currentJzvd); |
531,198 | private Position decodePosition(DeviceSession deviceSession, ByteBuf buf, int length, Date time) {<NEW_LINE>final Position position = new Position();<NEW_LINE>position.setProtocol(getProtocolName());<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>position.setTime(time);<NEW_LINE>int readBytes = 0;... | setLatitude(buf.readFloatLE()); |
670,369 | public int findShortestSubArray(int[] nums) {<NEW_LINE>Map<Integer, Integer> <MASK><NEW_LINE>Map<Integer, Integer> left = new HashMap<>();<NEW_LINE>Map<Integer, Integer> right = new HashMap<>();<NEW_LINE>for (int i = 0; i < nums.length; i++) {<NEW_LINE>count.put(nums[i], count.getOrDefault(nums[i], 0) + 1);<NEW_LINE>if... | count = new HashMap<>(); |
40,164 | public static void premain(String arg, Instrumentation instrumentation) throws Exception {<NEW_LINE>// Setup logging<NEW_LINE>final List<Object> resources = parseResourceList(arg);<NEW_LINE>Config config = loadConfig(resources);<NEW_LINE>LOGGER.debug("loaded configuration: {}", config.root().render());<NEW_LINE>createD... | LOGGER.info("detected updated config files: {}", updatedConfigs); |
384,236 | public void update() {<NEW_LINE>boolean value = getValue() && false;<NEW_LINE>showButtonCheck.setChecked(getValue());<NEW_LINE>if (doNotTranslateCellAnimation != null) {<NEW_LINE>doNotTranslateCellAnimation.cancel();<NEW_LINE>}<NEW_LINE>showButtonCheck.setDivider(value);<NEW_LINE>ArrayList<String> langCodes = getRestri... | getRestrictedLanguages().size()); |
1,663,885 | final CreateAppMonitorResult executeCreateAppMonitor(CreateAppMonitorRequest createAppMonitorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppMonitorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | (super.beforeMarshalling(createAppMonitorRequest)); |
1,617,629 | public static BufferedImage createShadowImage(@NotNull final Rectangle bounds, final int width, final float opacity, @NotNull final Color color, @NotNull final Shape shape) {<NEW_LINE>// Creating template image<NEW_LINE>final BufferedImage bi = ImageUtils.createCompatibleImage(bounds.width, bounds.height, Transparency.... | ig.setPaint(Color.BLACK); |
1,143,755 | void printEdgeData(Edge edge, Node source, Node target, Graph graph) throws IOException {<NEW_LINE>// from<NEW_LINE>writer.append(printParameter(source.getId()));<NEW_LINE>// to<NEW_LINE>writer.append(" ").append(printParameter(target.getId()));<NEW_LINE>if (exportEdgeWeight) {<NEW_LINE>Double weight;<NEW_LINE>if (expo... | getWeight(graph.getView()); |
1,343,931 | public static void vertical5(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3]... | indexDst++] = (short) total; |
686,558 | final VoteOnProposalResult executeVoteOnProposal(VoteOnProposalRequest voteOnProposalRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(voteOnProposalRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | (super.beforeMarshalling(voteOnProposalRequest)); |
1,759,140 | public // Deprecated<NEW_LINE>ResultSet runQuery(String metricName) {<NEW_LINE>java.sql.PreparedStatement genorm_statement = null;<NEW_LINE>try {<NEW_LINE>String genorm_query = QUERY;<NEW_LINE>genorm_statement = org.kairosdb.datastore.h2.orm.GenOrmDataSource.prepareStatement(genorm_query);<NEW_LINE>genorm_statement.set... | = System.currentTimeMillis() - genorm_queryTimeStart; |
1,679,738 | private void checkForeignKeys(DBTable newTable) {<NEW_LINE>// get the foreing keys<NEW_LINE>Map<String, DBForeignKey> foreignKeys = getForeignKeys(newTable);<NEW_LINE>if (foreignKeys != null && !foreignKeys.isEmpty()) {<NEW_LINE>newTable.setForeignKeyMap(foreignKeys);<NEW_LINE>// create a hash set of the keys<NEW_LINE>... | foreignKeysSet = new HashSet<>(); |
478,482 | public void clearProperties(OAtomicOperation atomicOperation) {<NEW_LINE>lock.acquireWriteLock();<NEW_LINE>try {<NEW_LINE>final List<String> keysToRemove;<NEW_LINE>final List<ORID> ridsToRemove;<NEW_LINE>try (Stream<ORawPair<String, ORID>> stream = btree.iterateEntriesMajor(PROPERTY_PREFIX_PROPERTY, false, true)) {<NEW... | = new ArrayList<>(8); |
56,756 | private void populateSecondaryTableData(Object rowId, Object entity, MetamodelImpl metaModel, EntityMetadata metadata) {<NEW_LINE>AbstractManagedType managedType = (AbstractManagedType) metaModel.entity(metadata.getEntityClazz());<NEW_LINE>List<String> secondaryTables = ((DefaultEntityAnnotationProcessor) managedType.g... | Row row = rowIter.next(); |
794,012 | // @AroundInvoke, defined in xml<NEW_LINE>Object aroundInvoke(InvocationContext invCtx) throws Exception {<NEW_LINE>CheckInvocation.getInstance().recordCallInfo("AroundInvoke", "Interceptor03.aroundInvoke", this);<NEW_LINE>svLogger.info("Interceptor03.aroundInvoke: this=" + this);<NEW_LINE>for (Iterator<Entry<String, O... | ).toString(), this); |
1,591,471 | private static int readSimpleHuffmanCode(int alphabetSizeMax, int alphabetSizeLimit, int[] tableGroup, int tableIdx, State s) {<NEW_LINE>// TODO(eustas): Avoid allocation?<NEW_LINE>int[] codeLengths = new int[alphabetSizeLimit];<NEW_LINE>int[<MASK><NEW_LINE>int maxBits = 1 + log2floor(alphabetSizeMax - 1);<NEW_LINE>int... | ] symbols = new int[4]; |
672,858 | private static ITranslatableString buildMessage(@Nullable final IPricingContext pricingCtx, final int documentLineNo, final ProductId productId) {<NEW_LINE>final TranslatableStringBuilder sb = TranslatableStrings.builder();<NEW_LINE>if (documentLineNo > 0) {<NEW_LINE>if (!sb.isEmpty()) {<NEW_LINE>sb.append(", ");<NEW_L... | .class).getProductValueAndName(productIdEffective); |
759,653 | public void marshall(OTAUpdateInfo oTAUpdateInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (oTAUpdateInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(oTAUpdateInfo.getOtaUpdateId(), OTAUPDATEID_B... | oTAUpdateInfo.getOtaUpdateStatus(), OTAUPDATESTATUS_BINDING); |
790,404 | public CodeResult echo(@RequestParam("applicationName") String applicationName, @RequestParam("agentId") String agentId, @RequestParam("startTimeStamp") long startTimeStamp, @RequestParam("message") String message) throws TException {<NEW_LINE>AgentInfo agentInfo = agentService.getAgentInfo(applicationName, agentId, st... | ) result).getMessage()); |
751,433 | private static LocaleUtils createInstance(SelectionProperty localeProp, ConfigurationProperty prop, ConfigurationProperty queryParamProp, ConfigurationProperty cookieProp) {<NEW_LINE>GwtLocale compileLocale = null;<NEW_LINE>Set<GwtLocale> allLocales = new HashSet<GwtLocale>();<NEW_LINE>Set<GwtLocale> allCompileLocales ... | newCompileLocale = factoryInstance.fromString(localeName); |
868,360 | private void handleDetermineSize(boolean detected) {<NEW_LINE>String message = "Determine Scale: Hold target in view and center";<NEW_LINE>if (detected) {<NEW_LINE>double stationaryTime = actions.getStationaryTime();<NEW_LINE>CalibrationObservation points;<NEW_LINE>synchronized (detectorLock) {<NEW_LINE>points = detect... | view.getQuadFocus(points, focusQuad); |
1,404,293 | public static //<NEW_LINE>int loadProgramFromAsset(Context context, String vertexShaderFileName, String fragShaderFileName) {<NEW_LINE>int vertexShader;<NEW_LINE>int fragmentShader;<NEW_LINE>int programObject;<NEW_LINE>int[] linked = new int[1];<NEW_LINE>String vertShaderSrc = null;<NEW_LINE>String fragShaderSrc = null... | GLES30.GL_LINK_STATUS, linked, 0); |
1,724,017 | /* Read block sizes from cached area on disk */<NEW_LINE>private void read_block_sizes_from_cache(long cache_end) throws IOException {<NEW_LINE>int block_size;<NEW_LINE>long block_address;<NEW_LINE>ByteArrayInputStream bis;<NEW_LINE>byte[] buf;<NEW_LINE>long cache_cursor;<NEW_LINE>DataInputStream dis;<NEW_LINE>int list... | int) (cache_end - tail_ptr)]; |
1,016,005 | public DisruptorAutobatcher<I, O> build() {<NEW_LINE>Preconditions.checkArgument(purpose != null, "purpose must be provided");<NEW_LINE>ImmutableEventHandlerParameters.Builder parametersBuilder = ImmutableEventHandlerParameters.builder();<NEW_LINE>bufferSize.ifPresent(parametersBuilder::batchSize);<NEW_LINE>parametersB... | handler, parameters.batchSize()); |
1,801,398 | private DrillIndexDescriptor buildIndexDescriptor(String tableName, IndexDesc desc) throws InvalidIndexDefinitionException {<NEW_LINE>if (desc.isExternal()) {<NEW_LINE>// External index is not currently supported<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>IndexDescriptor.IndexType idxType = IndexDescriptor.IndexType.NAT... | field2SchemaPath(desc.getIndexedFields()); |
1,034,553 | public static String encodeRealNumberRange(float number, int maxDigitsLeft, int maxDigitsRight, int offsetValue) {<NEW_LINE>int shiftMultiplier = (int) Math.pow(10, maxDigitsRight);<NEW_LINE>long shiftedNumber = (long) Math.round((double) number * shiftMultiplier);<NEW_LINE>long shiftedOffset = offsetValue * shiftMulti... | numZeroes + longString.length()); |
746,134 | public // / <param name="level"></param><NEW_LINE>void IncrementCounter(String level) {<NEW_LINE>int otherLevelInt;<NEW_LINE>String otherLevelStr;<NEW_LINE>if (!this.levels.get(level).getCounter().isEncounteredAlready()) {<NEW_LINE>// We haven't encountered this level before,<NEW_LINE>// so check that the lower levels ... | log.debug("Reset level " + otherLevelInt); |
206,520 | private void validateNonPrimitiveArray(TomlNode tomlValue, String variableName, ArrayType arrayType, Type elementType) {<NEW_LINE>switch(elementType.getTag()) {<NEW_LINE>case TypeTags.ARRAY_TAG:<NEW_LINE>case TypeTags.XML_ATTRIBUTES_TAG:<NEW_LINE>case TypeTags.XML_COMMENT_TAG:<NEW_LINE>case TypeTags.XML_ELEMENT_TAG:<NE... | tomlValue, variableName, arrayType, effectiveType); |
219,719 | public static void runSample() {<NEW_LINE>System.out.println("\n================================================================");<NEW_LINE>System.out.println(" Starting Event Hubs Sender Sample");<NEW_LINE>System.out.println("================================================================");<NEW_LINE>if (AZURE_EVENT... | System.out.println("================================================================"); |
1,325,495 | private void createDefaultNamespaces() throws Exception {<NEW_LINE>String serviceUri = String.format("bk://%s/", getRpcEndpoints().stream().map(endpoint -> NetUtils.endpointToString(endpoint)).collect(Collectors.joining(",")));<NEW_LINE>StorageClientSettings settings = StorageClientSettings.newBuilder().serviceUri(serv... | log.info("Creating namespace '{}' ...", namespaceName); |
343,270 | private DefaultMutableTreeNode buildNodes() {<NEW_LINE>DefaultMutableTreeNode root = new DefaultMutableTreeNode(new Descriptor());<NEW_LINE>RunManager runManager = RunManager.getInstance(myProject);<NEW_LINE>final List<ConfigurationType> configTypes = runManager.getConfigurationFactories();<NEW_LINE>for (final Configur... | String configurationName = configuration.getName(); |
1,566,395 | public static String[] splitKeep(String str, String separatorStr) {<NEW_LINE>if (str == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (str.length() == 0) {<NEW_LINE>return ArrayUtils.EMPTY_STRING_ARRAY;<NEW_LINE>}<NEW_LINE>int CHARS = separatorStr.length();<NEW_LINE>if (CHARS == 0) {<NEW_LINE>throw new IllegalAr... | substring = str.substring(lastIndex); |
1,652,414 | public void readMessage(ConsumerRecord<?, ?> record) {<NEW_LINE>RowSetLoader rowWriter = loader.writer();<NEW_LINE>byte[] recordArray = (byte[]) record.value();<NEW_LINE>GenericRecord genericRecord = (GenericRecord) deserializer.deserialize(null, recordArray);<NEW_LINE>Schema schema = genericRecord.getSchema();<NEW_LIN... | KAFKA_TIMESTAMP, record.timestamp()); |
1,004,129 | public void messagingEngineStarting(final JsMessagingEngine messagingEngine) {<NEW_LINE>final String methodName = "messagingEngineStarting";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, messagingEngine);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>a... | exit(this, TRACE, methodName); |
420,480 | private IVendorReceipt<Object> createVendorReceipt(final IQualityInspectionOrder qiOrder) {<NEW_LINE>final <MASK><NEW_LINE>final IProductionMaterial rawProductionMaterial = qiOrder.getRawProductionMaterial();<NEW_LINE>final I_C_UOM qtyReceivedFromVendorUOM = rawProductionMaterial.getC_UOM();<NEW_LINE>//<NEW_LINE>// Fin... | I_M_Material_Tracking materialTracking = qiOrder.getM_Material_Tracking(); |
1,571,942 | private void linkOperationsToInputOutputShapes(IntermediateModel model) {<NEW_LINE>for (Map.Entry<String, OperationModel> entry : model.getOperations().entrySet()) {<NEW_LINE>Operation operation = service.getOperations().<MASK><NEW_LINE>if (entry.getValue().getInput() != null) {<NEW_LINE>entry.getValue().setInputShape(... | get(entry.getKey()); |
427,822 | public static String normalizeCommand(String command, GcodeState state) throws GcodeParserException {<NEW_LINE>List<String> args = GcodePreprocessorUtils.splitCommand(command);<NEW_LINE>Set<Code> gCodes = getGCodes(args);<NEW_LINE>Code code = null;<NEW_LINE>for (Code c : gCodes) {<NEW_LINE>if (c.getType() == Motion) {<... | split = extractMotion(code, command); |
27,772 | public void unlockSettingsCodeSnippet() {<NEW_LINE>ConfigurationAsyncClient client = getAsyncClient();<NEW_LINE>// BEGIN: com.azure.data.appconfiguration.configurationasyncclient.setReadOnly#string-string-boolean-clearReadOnly<NEW_LINE>client.setReadOnly("prodDBConnection", "westUS", false).subscriberContext(Context.of... | , response.getValue())); |
720,072 | void initializeIndexGauges(String storeId, final PersistentIndex index, final long capacityInBytes, BlobStoreStats blobStoreStats, boolean enableStoreCurrentInvalidSize) {<NEW_LINE>String prefix = storeId + SEPARATOR;<NEW_LINE>Gauge<Long> currentCapacityUsed = index::getLogUsedCapacity;<NEW_LINE>registry.register(Metri... | , prefix + "PercentageUsedCapacity"), percentageUsedCapacity); |
412,699 | public void load() {<NEW_LINE>Timber.d("load()");<NEW_LINE>try (Cursor cursor = mCol.getDb().query("SELECT guid, mid, mod, usn, tags, flds, flags, data FROM notes WHERE id = ?", mId)) {<NEW_LINE>if (!cursor.moveToFirst()) {<NEW_LINE>throw new WrongId(mId, "note");<NEW_LINE>}<NEW_LINE>mGuId = cursor.getString(0);<NEW_LI... | mFMap = Models.fieldMap(mModel); |
1,051,139 | public RepositoryData removeSnapshot(final SnapshotId snapshotId) {<NEW_LINE>Map<String, SnapshotId> newSnapshotIds = snapshotIds.values().stream().filter(id -> !snapshotId.equals(id)).collect(Collectors.toMap(SnapshotId::getUUID, Function.identity()));<NEW_LINE>if (newSnapshotIds.size() == snapshotIds.size()) {<NEW_LI... | throw new ResourceNotFoundException("Attempting to remove non-existent snapshot [{}] from repository data", snapshotId); |
1,810,613 | public void deleteOrder(String orderId) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'orderId' is set<NEW_LINE>if (orderId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'orderId' when calling deleteOrder");<NEW_LINE>}<NEW_LINE... | localVarAccept, localVarContentType, localVarAuthNames, null); |
669,704 | public Result apply(TableScanNode tableScanNode, Captures captures, Context context) {<NEW_LINE><MASK><NEW_LINE>Session session = context.getSession();<NEW_LINE>if (tableHandle.getLayout().isPresent() || !metadata.isLegacyGetLayoutSupported(session, tableHandle)) {<NEW_LINE>return Result.empty();<NEW_LINE>}<NEW_LINE>Ta... | TableHandle tableHandle = tableScanNode.getTable(); |
915,266 | float evaluate(int indexA, int indexB, float t) {<NEW_LINE>m_sweepA.getTransform(xfa, t);<NEW_LINE>m_sweepB.getTransform(xfb, t);<NEW_LINE>switch(m_type) {<NEW_LINE>case POINTS:<NEW_LINE>{<NEW_LINE>Rotation.mulTransUnsafe(xfa.q, m_axis, axisA);<NEW_LINE>Rotation.mulTransUnsafe(xfb.q, m_axis.negateLocal(), axisB);<NEW_L... | (m_proxyA.getVertex(indexA)); |
1,231,894 | public JsonElement serialize(Object src, Type typeOfSrc, JsonSerializationContext context) {<NEW_LINE>JsonObject object = new JsonObject();<NEW_LINE>if (typeOfSrc.equals(AuditWrapper.class)) {<NEW_LINE>AuditWrapper auditWrapper = (AuditWrapper) src;<NEW_LINE>object.addProperty("user_id", auditWrapper.getUser().getId())... | getUser().getUserType()); |
66,064 | protected void doGet(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>TwitterOAuthResponse twitterOAuthResponse = getTwitterOAuthResponse(request);<NEW_LINE>ConfigurationBuilder cb = new ConfigurationBuilder();<NEW_LINE>cb.setDebugEnabled(true).setOAuthCons... | throw new RuntimeException("Could not load social profile.", e); |
596,070 | public SDVariable defineLayer(SameDiff sameDiff, SDVariable layerInput, Map<String, SDVariable> paramTable, SDVariable mask) {<NEW_LINE>final val W = paramTable.get(WEIGHT_KEY);<NEW_LINE>final val R = paramTable.get(RECURRENT_WEIGHT_KEY);<NEW_LINE>final val b = paramTable.get(BIAS_KEY);<NEW_LINE>long[] shape = layerInp... | Wo = paramTable.get(WEIGHT_KEY_OUT_PROJECTION); |
1,806,161 | private void logCommandUsageNoHeader(BaseCommand theCommand) {<NEW_LINE>// This is passed in from the launch script<NEW_LINE>String <MASK><NEW_LINE>int columns;<NEW_LINE>try {<NEW_LINE>columns = Integer.parseInt(columnsString);<NEW_LINE>columns = Math.max(columns, 40);<NEW_LINE>columns = Math.min(columns, 180);<NEW_LIN... | columnsString = System.getProperty("columns"); |
800,263 | public final DTypeContext dType() throws RecognitionException {<NEW_LINE>DTypeContext _localctx = new DTypeContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 36, RULE_dType);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>{<NEW_LINE>setState(310);<NEW_LINE>_localctx.bas... | .ty.createArrayType(-1); |
1,334,608 | protected final View makeContentView() {<NEW_LINE>LinearLayout rootLayout = new LinearLayout(activity);<NEW_LINE>rootLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));<NEW_LINE>rootLayout.setBackgroundColor(backgroundColor);<NEW_LINE>rootLayout.setOrientation(LinearLayout.VERTICAL);<NEW_... | .LayoutParams(MATCH_PARENT, topLineHeightPixels)); |
683,776 | boolean searchCompleted(final boolean success) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE>setWarning(null);<NEW_LINE>boolean res;<NEW_LINE>if (success) {<NEW_LINE>res = true;<NEW_LINE>String msg = null;<NEW_LINE>if (resultList.getModel().getSize() == 0) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LI... | ), pse.getIndex()); |
332,633 | private int onScrollPageDown(boolean isFocusDriven) {<NEW_LINE>ListCell<T> lastVisibleCell = flow.getLastVisibleCellWithinViewport();<NEW_LINE>if (lastVisibleCell == null)<NEW_LINE>return -1;<NEW_LINE>final SelectionModel<T> sm = getSkinnable().getSelectionModel();<NEW_LINE>final FocusModel<T> fm = getSkinnable().getFo... | int newSelectionIndex = lastVisibleCell.getIndex(); |
825,066 | public void execute() throws BuildException {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.fine("JPDAAppReloaded.execute()");<NEW_LINE>}<NEW_LINE>// check debugger state<NEW_LINE>DebuggerEngine debuggerEngine = DebuggerManager.getDebuggerManager().getCurrentEngine();<NEW_LINE>if (debuggerEngine == null... | , new Object[] {}); |
1,850,725 | final PutScalingPolicyResult executePutScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putScalingPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,007,727 | public BiFunction<JsonInput, PropertySetting, T> apply(Type type) {<NEW_LINE>Type keyType;<NEW_LINE>Type valueType;<NEW_LINE>if (type instanceof ParameterizedType) {<NEW_LINE>ParameterizedType pt = (ParameterizedType) type;<NEW_LINE>keyType = pt.getActualTypeArguments()[0];<NEW_LINE>valueType = pt.getActualTypeArgument... | SimpleImmutableEntry<>(key, value); |
716,149 | private KeyPair readDecodedKeyPair(final PlainBuffer keyBuffer) throws IOException, GeneralSecurityException {<NEW_LINE>byte[] bytes = new byte[AUTH_MAGIC.length];<NEW_LINE>// byte[] AUTH_MAGIC<NEW_LINE>keyBuffer.readRawBytes(bytes);<NEW_LINE>if (!ByteArrayUtils.equals(bytes, 0, AUTH_MAGIC, 0, AUTH_MAGIC.length)) {<NEW... | + Arrays.toString(kdfOptions)); |
1,618,316 | private ImmutableList<AnnotationMirror> propertyFieldAnnotations(TypeElement type, ExecutableElement method) {<NEW_LINE>if (!hasAnnotationMirror(method, COPY_ANNOTATIONS_NAME)) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>ImmutableSet<String> excludedAnnotations = ImmutableSet.<String>builder().addAll(getE... | getCanonicalName()).build(); |
136,831 | public void reduce(final IntWritable key, final Iterator<Text> values, OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>String bitmask = "";<NEW_LINE>Set<Integer> src_nodes_set = new HashSet<Integer>();<NEW_LINE>boolean self_contained = false;<NEW_LINE>String cur_value =... | .next().toString(); |
580,129 | public PointSensitivityBuilder presentValueSensitivityRates(ResolvedSwaption swaption, RatesProvider ratesProvider, HullWhiteOneFactorPiecewiseConstantParametersProvider hwProvider) {<NEW_LINE>validate(swaption, ratesProvider, hwProvider);<NEW_LINE>ResolvedSwap swap = swaption.getUnderlying();<NEW_LINE>LocalDate expiry... | paymentPricer.presentValueAmount(payment, ratesProvider); |
1,140,130 | public static GetFeeResponse unmarshall(GetFeeResponse getFeeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getFeeResponse.setRequestId(_ctx.stringValue("GetFeeResponse.RequestId"));<NEW_LINE>getFeeResponse.setCanUpdate(_ctx.booleanValue("GetFeeResponse.CanUpdate"));<NEW_LINE>getFeeResponse.setPayer(_ctx.stringValue("G... | (_ctx.longValue("GetFeeResponse.CreatedStamp")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.