idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
594,440
void positionPathAttributes(FloatRect start, FloatRect end, float x, float y, String[] attribute, float[] value) {<NEW_LINE><MASK><NEW_LINE>float startCenterY = start.centerY();<NEW_LINE>float endCenterX = end.centerX();<NEW_LINE>float endCenterY = end.centerY();<NEW_LINE>float pathVectorX = endCenterX - startCenterX;<...
float startCenterX = start.centerX();
1,142,357
public boolean onCreate() {<NEW_LINE>Context context = getContext();<NEW_LINE>DaemonService.startup(context);<NEW_LINE>if (!VirtualCore.get().isStartup()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>VPackageManagerService.systemReady();<NEW_LINE>addService(ServiceManagerNative.PACKAGE, VPackageManagerService.get());<NE...
JOB, VJobSchedulerService.get());
1,384,144
private void unNsfwSubmission(final Context mContext, final Submission submission, final SubmissionViewHolder holder) {<NEW_LINE>// todo update view with NSFW tag<NEW_LINE>new AsyncTask<Void, Void, Boolean>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onPostExecute(Boolean b) {<NEW_LINE>if (b) {<NEW_LINE>Snack...
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
249,943
private static void addBasicLands(Deck deck, String landName, int number) {<NEW_LINE>Set<String> landSets = TournamentUtil.getLandSetCodeForDeckSets(deck.getExpansionSetCodes());<NEW_LINE>CardCriteria criteria = new CardCriteria();<NEW_LINE>if (!landSets.isEmpty()) {<NEW_LINE>criteria.setCodes(landSets.toArray(new Stri...
landSets.size()]));
1,470,510
public void marshall(CreateAssociationBatchRequestEntry createAssociationBatchRequestEntry, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createAssociationBatchRequestEntry == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa...
createAssociationBatchRequestEntry.getCalendarNames(), CALENDARNAMES_BINDING);
1,586,796
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("fName", fName);<NEW_LINE>param.put("time", time);<NEW_LINE>MapPack out = (MapPack) tcp.getSingle(RequestCmd.OBJECT_CALL_CPU_PROFI...
(out.getText("msg"));
164,244
public final ObjectContext object() throws RecognitionException {<NEW_LINE>ObjectContext _localctx = new ObjectContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(98);<NEW_LINE>match(LBRACE);<NEW_LINE>setState(...
enterRule(_localctx, 10, RULE_object);
1,410,400
private void updatePanel() {<NEW_LINE>int selectedTab = tabbedPane.getSelectedIndex();<NEW_LINE>// set the number of files and the number of functions<NEW_LINE>numFunctionsField.setText(Integer.toString(patternReader.getNumFuncs()));<NEW_LINE>numFilesField.setText(Integer.toString(patternReader.getNumFiles()));<NEW_LIN...
(params.getNumFirstInstructions()));
1,423,030
private static TableScanNode createProjectableFilterable(Compiler compiler, TableScan rel, ImmutableList<RexNode> filters, ImmutableIntList projects, ProjectableFilterableTable pfTable) {<NEW_LINE>final DataContext root = compiler.getDataContext();<NEW_LINE>final ImmutableIntList originalProjects = projects;<NEW_LINE>f...
mutableFilters = Lists.newArrayList(filters);
1,529,621
protected void lowerLoadHubOrNullNode(LoadHubOrNullNode loadHubOrNullNode, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = loadHubOrNullNode.graph();<NEW_LINE>if (tool.getLoweringStage() != LoweringTool.StandardLoweringStage.LOW_TIER) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (graph.getGuardsStage().allowsFloatin...
ValueNode value = loadHubOrNullNode.getValue();
436,989
final ListSigningPlatformsResult executeListSigningPlatforms(ListSigningPlatformsRequest listSigningPlatformsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSigningPlatformsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,684,439
public void loadExtensions(ExtensionLoader loader) {<NEW_LINE>logger.info("ReindexPlugin reloadSPI called");<NEW_LINE>Iterable<RemoteReindexExtension> iterable = loader.loadExtensions(RemoteReindexExtension.class);<NEW_LINE>List<RemoteReindexExtension> remoteReindexExtensionList = new ArrayList<>();<NEW_LINE>iterable.f...
logger.warn("More than one implementation found: " + remoteReindexExtensionList);
1,320,876
final UpdateExperimentResult executeUpdateExperiment(UpdateExperimentRequest updateExperimentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateExperimentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
644,709
protected MessageHandler createHandler(Object bean, Method method, List<Annotation> annotations) {<NEW_LINE>String applySequence = MessagingAnnotationUtils.resolveAttribute(<MASK><NEW_LINE>AbstractMessageSplitter splitter;<NEW_LINE>if (AnnotatedElementUtils.isAnnotated(method, Bean.class.getName())) {<NEW_LINE>Object t...
annotations, "applySequence", String.class);
1,499,525
private <T> T instantiateClass(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {<NEW_LINE>try {<NEW_LINE>Constructor<T> constructor;<NEW_LINE>if (constructorArgTypes == null || constructorArgs == null) {<NEW_LINE>constructor = type.getDeclaredConstructor();<NEW_LINE>try {<NEW_LINE>retur...
(new Object[0]));
262,210
public void run() {<NEW_LINE>final long vmSize = readVmSize();<NEW_LINE>if (vmSize < 0) {<NEW_LINE>MatrixLog.e(TAG, "Fail to read vss size, skip checking this time.");<NEW_LINE>mSampleHandler.postDelayed(this, mVmSizeSampleInterval);<NEW_LINE>} else {<NEW_LINE>// (vmsize / 4G > ratio) => (vmsize > ratio * 4G)<NEW_LINE>...
MatrixLog.i(TAG, "nativeInstall triggered successfully.");
1,679,393
private int findAndRemoveHash(VirtualFrame frame, DictKey key, PyObjectRichCompareBool.EqNode eqNode) {<NEW_LINE>int hashIndex = getHashIndex(key);<NEW_LINE>int <MASK><NEW_LINE>if (index != -1) {<NEW_LINE>DictKey entryKey = getKey(index);<NEW_LINE>if (compareKeys(frame, key, entryKey, eqNode)) {<NEW_LINE>Object value =...
index = getHashArray(hashIndex) - 1;
513,132
private // parents have levels or handlers defined, make sure they are instantiated.<NEW_LINE>void processParentHandlers(final Logger logger, final String name) {<NEW_LINE>final LogManager owner = getOwner();<NEW_LINE>if (logger != owner.rootLogger) {<NEW_LINE>boolean useParent = owner.<MASK><NEW_LINE>if (!useParent) {...
getBooleanProperty(name + ".useParentHandlers", true);
682,771
private static RouterFunction<?> routingFunction() {<NEW_LINE>return route(GET("/test"), serverRequest -> ok().body(fromValue("helloworld"))).andRoute(POST("/login"), serverRequest -> serverRequest.body(toFormData()).map(MultiValueMap::toSingleValueMap).map(formData -> {<NEW_LINE>System.out.println(<MASK><NEW_LINE>if (...
"form data: " + formData.toString());
1,225,034
public Object call(Job<Object> job, Map<String, Object> parameters) {<NEW_LINE>this.checkAndCollectParameters(parameters);<NEW_LINE>// Read configuration<NEW_LINE>try {<NEW_LINE>this.initializeConfig((ComputerJob) job);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new HugeException("Failed to initialize computer con...
(this.checkAndCollectParameters(parameters));
1,059,003
public void updateSelectionAfterTrashAction() {<NEW_LINE>if (DisplayUtils.isLargeScreenLandscape(getActivity())) {<NEW_LINE>// Try to find the nearest note to the first deleted item<NEW_LINE>List<Integer> deletedNotesPositions = getSelectedNotesPositions();<NEW_LINE>int firstDeletedNote = deletedNotesPositions.get(0);<...
), noteToSelect.isPreviewEnabled());
370,773
public void emitSave(AMD64MacroAssembler asm, int frameSize) {<NEW_LINE>SubstrateTargetDescription target = ConfigurationValues.getTarget();<NEW_LINE>AMD64 arch = (AMD64) target.arch;<NEW_LINE>boolean hasAVX = arch.getFeatures().contains(AMD64.CPUFeature.AVX);<NEW_LINE>boolean hasAVX512 = arch.getFeatures().contains(AM...
asm.evmovdqu64(address, register);
1,380,106
public TimeseriesMetadata readTimeseriesMetadata(Path path, boolean ignoreNotExists) throws IOException {<NEW_LINE>readFileMetadata();<NEW_LINE>MetadataIndexNode deviceMetadataIndexNode = tsFileMetaData.getMetadataIndex();<NEW_LINE>Pair<MetadataIndexEntry, Long> metadataIndexPair = getMetadataAndEndOffset(deviceMetadat...
timeseriesMetadataList.get(searchResult) : null;
278,440
public void process() {<NEW_LINE>intro();<NEW_LINE>boolean gameOver = false;<NEW_LINE>do {<NEW_LINE>double carMph = (int) (25 * Math.random() + 40);<NEW_LINE>double hours = (int) (15 * <MASK><NEW_LINE>double train = (int) (19 * Math.random() + 20);<NEW_LINE>System.out.println(" A CAR TRAVELING " + (int) carMph + " MPH ...
Math.random() + 5);
792,661
public static void main(String[] args) {<NEW_LINE>if (args.length < 3) {<NEW_LINE>showUsage();<NEW_LINE>System.exit(2);<NEW_LINE>}<NEW_LINE>String file = "";<NEW_LINE>int align = 256;<NEW_LINE>byte fill = 0;<NEW_LINE>boolean checksum = false;<NEW_LINE>for (String arg : args) {<NEW_LINE>final String param = arg.toLowerC...
file, align, fill, checksum);
73,378
public int fileRead(long handle, byte[] buffer, int offset, int count) {<NEW_LINE>if ((offset | count) < 0 || offset > buffer.length || buffer.length - offset < count) {<NEW_LINE>throw new ArrayIndexOutOfBoundsException("length=" + buffer.length + "; regionStart=" + offset + "; regionLength=" + count);<NEW_LINE>}<NEW_L...
, data, count, bytesReadOut));
1,047,846
public int maximalRectangle(char[][] matrix) {<NEW_LINE>if (matrix == null || matrix.length == 0 || matrix[0].length == 0)<NEW_LINE>return 0;<NEW_LINE>int row = matrix.length;<NEW_LINE>int col = matrix[0].length;<NEW_LINE>int[][] diagram = new int[row][col];<NEW_LINE>for (int i = 0; i < row; ++i) for (int j = 0; j < co...
][j] + 1 : 0;
312,486
public void merge(EvaluationBinary other) {<NEW_LINE>if (other.countTruePositive == null) {<NEW_LINE>// Other is empty - no op<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (countTruePositive == null) {<NEW_LINE>// This evaluation is empty -> take results from other<NEW_LINE>this.countTruePositive = other.countTruePositive;<...
this.countFalsePositive, other.countFalsePositive);
232,200
MessageHandlerNode handlerNode(String nameArg, IntegrationConsumer consumer) {<NEW_LINE>String outputChannelName = channelToBeanName(consumer.getOutputChannel());<NEW_LINE>MessageHandler handler = consumer.getHandler();<NEW_LINE>MessageHandlerNode node;<NEW_LINE>String name = nameArg;<NEW_LINE>if (handler instanceof Na...
handler, outputChannelName, null, false);
814,847
public String encodeSubscribe(TopicContent topic, Long id) {<NEW_LINE>StompHeaderAccessor accessor = StompHeaderAccessor.create(StompCommand.SUBSCRIBE);<NEW_LINE>accessor.<MASK><NEW_LINE>accessor.setNativeHeader("eventId", topic.getOffset());<NEW_LINE>accessor.setNativeHeader(StompHeaderAccessor.STOMP_ID_HEADER, Long.t...
setDestination(topic.getTopicName());
942,754
private void reconnectSubscriber(KurentoSession kSession, KurentoParticipant kParticipant, String streamId, String sdpString, Integer transactionId, boolean initByServer, boolean forciblyReconnect) {<NEW_LINE>String senderPrivateId = kSession.getParticipantPrivateIdFromStreamId(streamId);<NEW_LINE>if (senderPrivateId !...
kSession, kParticipant, sdpOffer, false);
462,219
public final ActionInGroup addAction(@Nonnull AnAction action, @Nonnull Constraints constraint, @Nonnull ActionManager actionManager) {<NEW_LINE>if (action == this) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// check that action isn't already registered<NEW_LINE>if (!(action instanceof AnSeparator) && containsAction(action)...
throw new IllegalArgumentException(CANT_ADD_ITSELF + action);
150,531
private void disconnect_element_handle_(int element_handle) {<NEW_LINE>assert (element_handle != -1);<NEW_LINE>int quad_handle = get_quad_(element_handle);<NEW_LINE>int head_element_handle = get_first_element_(quad_handle);<NEW_LINE>int tail_element_handle = get_last_element_(quad_handle);<NEW_LINE>int prev_element_han...
(get_local_element_count_(quad_handle) >= 3);
114,599
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#find(java.lang.Class,<NEW_LINE>* java.lang.String[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public <E> List<E> findAll(Class<E> entityClazz, String[] columnsToSelect, Object... arg1) {<NEW_LINE>// TODO: Vivek correct it. unfortuna...
pKeys = getDataType(entityMetadata, arg1);
1,207,372
public DescribeStaleSecurityGroupsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeStaleSecurityGroupsResult describeStaleSecurityGroupsResult = new DescribeStaleSecurityGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth...
XMLEvent xmlEvent = context.nextEvent();
1,530,765
private boolean completeOnPackageVisibilityStatements(boolean contextAccepted, CompilationUnitDeclaration parsedUnit, PackageVisibilityStatement[] pvsStmts) {<NEW_LINE>try {<NEW_LINE>this.skipDefaultPackage = true;<NEW_LINE>for (int i = 0, l = pvsStmts.length; i < l; ++i) {<NEW_LINE>PackageVisibilityStatement pvs = pvs...
((CompletionOnModuleReference) target, skipSet);
1,591,423
public List<ValidateError> validate() {<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(this.userId, convLabelName("User Id"));<NEW_LINE>if (err...
ValidatorFactory.getInstance(Validator.INTEGER);
1,595,741
// snippet-start:[iam.java2.list_access_keys.main]<NEW_LINE>public static void listKeys(IamClient iam, String userName) {<NEW_LINE>try {<NEW_LINE>boolean done = false;<NEW_LINE>String newMarker = null;<NEW_LINE>while (!done) {<NEW_LINE>ListAccessKeysResponse response;<NEW_LINE>if (newMarker == null) {<NEW_LINE>ListAcce...
"Retrieved access key %s", metadata.accessKeyId());
1,608,318
public static String decryptUserSpecificSolution(String userNameKey, String encryptedSolution) throws GeneralSecurityException, Exception {<NEW_LINE>try {<NEW_LINE>String key = createUserSpecificEncryptionKey(userNameKey);<NEW_LINE>byte[] raw = key.getBytes(Charset.forName("US-ASCII"));<NEW_LINE>if (raw.length != 16) {...
, Charset.forName("US-ASCII"));
973,536
long prepareForNewLeadership(final long logPosition, final long nowNs) {<NEW_LINE>role(Cluster.Role.FOLLOWER);<NEW_LINE>CloseHelper.close(ctx.countedErrorHandler(), ingressAdapter);<NEW_LINE><MASK><NEW_LINE>if (null != catchupLogDestination) {<NEW_LINE>logAdapter.removeDestination(catchupLogDestination);<NEW_LINE>catch...
ClusterControl.ToggleState.deactivate(controlToggle);
704,951
public List<MappingField> resolveAndValidateFields(List<MappingField> userFields, Map<String, String> options, NodeEngine nodeEngine) {<NEW_LINE>InternalSerializationService ss = (InternalSerializationService) nodeEngine.getSerializationService();<NEW_LINE>// normalize and validate the names and external names<NEW_LINE...
String name = field.name();
1,773,455
private List<SocketAddress> resolveAddresses() {<NEW_LINE>List<SocketAddress> addresses = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>String address <MASK><NEW_LINE>if (address.startsWith("/")) {<NEW_LINE>address = address.substring(1);<NEW_LINE>}<NEW_LINE>DirContext ctx = new InitialDirContext(ENV);<NEW_LINE>Attributes...
= getTargetUri().getPath();
1,642,202
private void copyHU(@NonNull final I_M_HU oldHU) {<NEW_LINE>final HuItemId oldParentItemId = HuItemId.ofRepoIdOrNull(oldHU.getM_HU_Item_Parent_ID());<NEW_LINE>final HuItemId newParentItemId;<NEW_LINE>if (oldParentItemId != null) {<NEW_LINE>newParentItemId = old2new_M_HU_Item_ID.get(oldParentItemId);<NEW_LINE>if (newPar...
InterfaceWrapperHelper.newInstance(I_M_HU.class);
442,948
static Component2D create(Rectangle rectangle) {<NEW_LINE>// behavior of LatLonPoint.newBoxQuery()<NEW_LINE>double minLongitude = rectangle.minLon;<NEW_LINE>boolean crossesDateline = rectangle.minLon > rectangle.maxLon;<NEW_LINE>if (minLongitude == 180.0 && crossesDateline) {<NEW_LINE>minLongitude = -180;<NEW_LINE>cros...
= decodeLongitude(encodeLongitudeCeil(minLongitude));
830,720
private void init(int namedGroup) {<NEW_LINE>this.ecCurve = null;<NEW_LINE>this.ecGenSpec = null;<NEW_LINE>this.ecParameterSpec = null;<NEW_LINE>if (!NamedGroup.refersToASpecificCurve(namedGroup)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String curveName = NamedGroup.getName(namedGroup);<NEW_LINE>if (curveName == null) {...
ecDomain.getParameterSpec(ECParameterSpec.class);
581,935
private List<Prediction<T>> innerPredictThreadPool(Iterable<Example<T>> examples) {<NEW_LINE>List<Prediction<T>> predictions = new ArrayList<>();<NEW_LINE>ExecutorService pool = Executors.newFixedThreadPool(numThreads);<NEW_LINE>List<Future<Prediction<T>>> futures = new ArrayList<>();<NEW_LINE>NeighboursBruteForceFacto...
= new NeighboursBruteForceFactory(distType, numThreads);
1,747,396
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>// 1) Set debugger to track XDocReport process<NEW_LINE>XDocReportRegistry.getRegistry().setDebugger(SysOutDebugger.INSTANCE);<NEW_LINE>// 2) Load ODT file by filling Velocity template engine and cache it<NEW_LINE>// to the registry<NEW_LINE>IXDocReport r...
Options.getTo(ConverterTypeTo.FO);
226,219
public boolean intersectsBox(BoundingBox box, TempVars vars) {<NEW_LINE>if (this.spotRange > 0f) {<NEW_LINE>// Check spot range first.<NEW_LINE>// Sphere v. box collision<NEW_LINE>if (!Intersection.intersect(box, position, spotRange)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Vector3f otherCenter = box.ge...
float otherRadiusSquared = radVect.lengthSquared();
807,993
LocalWireNetwork merge(LocalWireNetwork other, Supplier<LocalWireNetwork> createNewNet) {<NEW_LINE>LocalWireNetwork result = createNewNet.get();<NEW_LINE>for (LocalWireNetwork net : new LocalWireNetwork[] { this, other }) {<NEW_LINE>result.<MASK><NEW_LINE>result.connections.putAll(net.connections);<NEW_LINE>}<NEW_LINE>...
connectors.putAll(net.connectors);
1,223,938
// </editor-fold>//GEN-END:initComponents<NEW_LINE>@Messages({ "CommandListIngestSettingsPanel_Report_Name_Msg=Please supply a report profile name (letters, digits, and underscore characters only):", "CommandLineIngestSettingPanel_empty_report_name_mgs=Report profile name was empty, no profile created.", "CommandLineIn...
.getPredefinedCursor(Cursor.WAIT_CURSOR));
1,539,376
protected InvoiceLine createIntercoInvoiceLine(InvoiceLine invoiceLine, boolean isPurchase) throws AxelorException {<NEW_LINE>AccountManagementAccountService accountManagementAccountService = Beans.get(AccountManagementAccountService.class);<NEW_LINE>InvoiceLineService invoiceLineService = Beans.get(InvoiceLineService....
getTaxLine(intercoInvoice, invoiceLine, isPurchase);
1,473,141
public Optional<byte[]> computeJoinDataSourceCacheKey(final DataSourceAnalysis dataSourceAnalysis) {<NEW_LINE>final List<PreJoinableClause> clauses = dataSourceAnalysis.getPreJoinableClauses();<NEW_LINE>if (clauses.isEmpty()) {<NEW_LINE>throw new IAE("No join clauses to build the cache key for data source [%s]", dataSo...
"skipping caching for join since [%s] does not support caching", clause.getDataSource());
845,112
final CreateWorldGenerationJobResult executeCreateWorldGenerationJob(CreateWorldGenerationJobRequest createWorldGenerationJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWorldGenerationJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
813,098
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String path = req.getRequestURI();<NEW_LINE>if (path.startsWith("/favicon.ico")) {<NEW_LINE>// ignore the request for favicon.ico<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// [START example]<NEW_LINE>AsyncMemc...
futureValue = asyncCache.get(key);
1,653,794
public CommonDbServerInfo deleteVisiblePerson(Integer id, String visiblePerson) {<NEW_LINE>String username = LoginUserUtils.getLoginUserDetail().getUserName();<NEW_LINE>LOGGER.info("user={}, delete visible group, id={}, visible group={}", username, id, visiblePerson);<NEW_LINE>CommonDbServerEntity entity = commonDbServ...
", please contact " + entity.getCreator());
1,481,024
public DescribeVpnGatewaysResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeVpnGatewaysResult describeVpnGatewaysResult = new DescribeVpnGatewaysResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += ...
int originalDepth = context.getCurrentDepth();
1,628,333
private static void verifyVrrpGroups(Configuration c, Warnings w) {<NEW_LINE>for (Interface i : c.getAllInterfaces().values()) {<NEW_LINE>boolean modified = false;<NEW_LINE>ImmutableSortedMap.Builder<Integer, VrrpGroup> groupsBuilder = ImmutableSortedMap.naturalOrder();<NEW_LINE>for (Entry<Integer, VrrpGroup> vrrpGroup...
referencedIface, addressesByInterface.getValue());
57,451
private void unboxIfNecessary(SourceWriter writer, ValueType type, Fragment fragment) throws IOException {<NEW_LINE>boolean boxed = false;<NEW_LINE>if (type instanceof ValueType.Primitive) {<NEW_LINE>switch(((ValueType.Primitive) type).getKind()) {<NEW_LINE>case BOOLEAN:<NEW_LINE>writer.appendMethodBody(new MethodRefer...
, "byteValue", byte.class));
1,556,518
public boolean offer(T value) {<NEW_LINE>Objects.requireNonNull(value);<NEW_LINE>final int m = maxOffset;<NEW_LINE>ARA2 array = producerArray.get();<NEW_LINE>final long index = producerIndex.getAndIncrement();<NEW_LINE>long start = array.start;<NEW_LINE>long end = array.end;<NEW_LINE>if (start - index > 0L) {<NEW_LINE>...
(int) (index - start);
157,830
void completeJob(@Nonnull MasterContext masterContext, @Nullable List<RawJobMetrics> terminalMetrics, @Nullable Throwable error, long completionTime) {<NEW_LINE>long jobId = masterContext.jobId();<NEW_LINE>JobConfig config = masterContext.jobRecord().getConfig();<NEW_LINE>long creationTime = masterContext.jobRecord().g...
jobResults.set(jobId, jobResult);
1,831,234
private void readFields(DataInput in) throws IOException {<NEW_LINE>id = in.readLong();<NEW_LINE>host = Text.readString(in);<NEW_LINE>heartbeatPort = in.readInt();<NEW_LINE>bePort = in.readInt();<NEW_LINE>httpPort = in.readInt();<NEW_LINE>beRpcPort = in.readInt();<NEW_LINE>isAlive.set(in.readBoolean());<NEW_LINE>isDeco...
int size = in.readInt();
147,711
private static byte[] convertVisualOrderedToIBM864(String str) throws ArabicShapingException, CharacterCodingException {<NEW_LINE>// We shape the characters to map it to Unicode in FExx range<NEW_LINE>// Note that the output of Bidi is VISUAL_LTR, so we need the flag: ArabicShaping.TEXT_DIRECTION_VISUAL_LTR)<NEW_LINE>A...
0, out, 0, length);
1,775,425
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>root = inflater.inflate(R.layout.fragment_ugc_editor, container, false);<NEW_LINE>mReviewEditText = root.findViewById(R.id.review);<NEW_LINE>RecyclerView rvRatingView = root.<MASK><NEW_LINE>r...
findViewById(R.id.ratings);
1,026,166
CDILiquibaseConfig fileLocked(final String id, Callable<CDILiquibaseConfig> action) throws Exception {<NEW_LINE>log.info(String.format("[id = %s] JVM lock acquired, acquiring file lock", id));<NEW_LINE>String lockPath = String.format("%s/schema.liquibase.lock", ROOT_PATH);<NEW_LINE>File lockFile = new File(lockPath);<N...
.format("[id = %s] Lock already acquired, waiting for the lock...", id));
938,733
protected void loadStorages() {<NEW_LINE>final OServerConfiguration configuration = serverCfg.getConfiguration();<NEW_LINE>if (configuration.storages == null)<NEW_LINE>return;<NEW_LINE>for (OServerStorageConfiguration stg : configuration.storages) {<NEW_LINE>if (stg.loadOnStartup) {<NEW_LINE>String url = stg.path;<NEW_...
Orient.URL_SYNTAX + ". URL was: " + url);
1,593,304
protected ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "flag:{}.", flag);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance(...
, generalFile.getName()));
775,950
private Vector4f mulGenericTranspose(Matrix4fc mat, Vector4f dest) {<NEW_LINE>float x = this.x, y = this.y, z = this.z, w = this.w;<NEW_LINE>dest.x = Math.fma(mat.m00(), x, Math.fma(mat.m01(), y, Math.fma(mat.m02(), z, mat.<MASK><NEW_LINE>dest.y = Math.fma(mat.m10(), x, Math.fma(mat.m11(), y, Math.fma(mat.m12(), z, mat...
m03() * w)));
34,521
final ListEventSourcesResult executeListEventSources(ListEventSourcesRequest listEventSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventSourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,373,438
public static void interleavedYuvToRGB565(InterleavedU8 input, byte[] output) {<NEW_LINE>final int width = input.width;<NEW_LINE>final int height = input.height;<NEW_LINE>int indexDst = 0;<NEW_LINE>for (int row = 0; row < height; row++) {<NEW_LINE>int indexSrc = input<MASK><NEW_LINE>for (int col = 0; col < width; col++...
.startIndex + input.stride * row;
645,984
private void runBuilder(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>try {<NEW_LINE>pw = appUtils.outputEntry(response, JWTBuilderConstants.JWT_BUILDER_SETAPIS_ENDPOINT);<NEW_LINE>String configId = request.getParameter(JWTBuilderConstants.JWT_BUILDER_PARAM_BUILDER_ID);<NEW_LIN...
appUtils.logIt(pw, "******************* End of JWTBuilderClient output ******************* ");
278,581
public HttpHeader unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HttpHeader httpHeader = new HttpHeader();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MA...
JsonToken token = context.getCurrentToken();
696,358
// note: we are not calling this method during the project startup - it is called anyway by f.e the GitRootTracker<NEW_LINE>private void checkAndUpdateRepositoriesCollection(@Nullable VirtualFile checkedRoot) {<NEW_LINE>Map<VirtualFile, Repository> repositories;<NEW_LINE>try {<NEW_LINE>MODIFY_LOCK.lock();<NEW_LINE>try ...
findInvalidRoots(repositories.keySet());
1,133,681
public void addComponentReplacement(github.tornaco.android.thanos.core.app.component.ComponentReplacement replacement) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>try {<NEW_LINE>_data.writeInt...
getDefaultImpl().addComponentReplacement(replacement);
241,295
protected CompletableFuture<Boolean> task() {<NEW_LINE>logger.debug("Processor [{}] will perform merge instruction for segment {}.", name, segmentId);<NEW_LINE>int[] segments = transactionManager.fetchInTransaction(() -> tokenStore.fetchSegments(name));<NEW_LINE>Segment thisSegment = Segment.computeSegment(segmentId, s...
int thatSegmentId = thisSegment.mergeableSegmentId();
87,662
// computes the sensitivity with respect to the curves<NEW_LINE>private <T> CurrencyParameterSensitivities sensitivity(ImmutableRatesProvider provider, Map<T, Curve> baseCurves, BiFunction<ImmutableRatesProvider, Map<T, Curve>, ImmutableRatesProvider> storeBumpedFn, Function<ImmutableRatesProvider, CurrencyAmount> valu...
CurrencyParameterSensitivities result = CurrencyParameterSensitivities.empty();
1,595,888
public String echoText(Session sess, String text) {<NEW_LINE>LOG.info("DEBUG: PathParamBasicServerEP$TestOnOpen.echoText Recieved data -> " + text);<NEW_LINE>String returnText = null;<NEW_LINE>if (onOpenParamValue != null) {<NEW_LINE>returnText = text + "," + onOpenParamValue;<NEW_LINE>}<NEW_LINE>// Only sent in test o...
LOG.info("DEBUG: PathParamBasicServerEP$TestOnOpen.echoText Sending data -> " + returnText);
1,594,906
final StopBuildBatchResult executeStopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopBuildBatchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
894,664
public boolean onStartJob(JobParameters params) {<NEW_LINE>AppLog.i(AppLog.T.READER, "reader post job service > started");<NEW_LINE>UpdateAction action;<NEW_LINE>if (params.getExtras() != null) {<NEW_LINE>if (params.getExtras().containsKey(ARG_ACTION)) {<NEW_LINE>action = UpdateAction.values()[(Integer) params.getExtra...
new ReaderEvents.UpdatePostsStarted(action));
653,157
public AugmentResult createProductionApplication() {<NEW_LINE>if (launchMode != LaunchMode.NORMAL) {<NEW_LINE>throw new IllegalStateException("Can only create a production application when using NORMAL launch mode");<NEW_LINE>}<NEW_LINE>ClassLoader classLoader = curatedApplication.createDeploymentClassLoader();<NEW_LIN...
result.consumeOptional(NativeImageBuildItem.class);
180,861
public S3Config unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Config s3Config = new S3Config();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LI...
int originalDepth = context.getCurrentDepth();
1,204,055
private static void populateSSE_C(Request<?> request, SSECustomerKey sseKey) {<NEW_LINE>if (sseKey == null)<NEW_LINE>return;<NEW_LINE>addHeaderIfNotNull(request, Headers.SERVER_SIDE_ENCRYPTION_CUSTOMER_ALGORITHM, sseKey.getAlgorithm());<NEW_LINE>addHeaderIfNotNull(request, Headers.SERVER_SIDE_ENCRYPTION_CUSTOMER_KEY, s...
SERVER_SIDE_ENCRYPTION_CUSTOMER_KEY_MD5, sseKey.getMd5());
378,808
private static Set<Flag> parseFlags(@Nullable Set<NodeFlag> source) {<NEW_LINE>Set<Flag> flags = new LinkedHashSet<>(source != null ? source.size() : 8, 1);<NEW_LINE>for (NodeFlag flag : source) {<NEW_LINE>switch(flag) {<NEW_LINE>case NOFLAGS:<NEW_LINE><MASK><NEW_LINE>break;<NEW_LINE>case EVENTUAL_FAIL:<NEW_LINE>flags....
flags.add(Flag.NOFLAGS);
770,150
public TsPayloadReader createPayloadReader(int streamType, EsInfo esInfo) {<NEW_LINE>switch(streamType) {<NEW_LINE>case TsExtractor.TS_STREAM_TYPE_MPA:<NEW_LINE>case TsExtractor.TS_STREAM_TYPE_MPA_LSF:<NEW_LINE>return new PesReader(new MpegAudioReader(esInfo.language));<NEW_LINE>case TsExtractor.TS_STREAM_TYPE_AAC_ADTS...
H265Reader(buildSeiReader(esInfo)));
831,298
Object lookup(String jndiName) throws NamingException {<NEW_LINE>Entity<LookupRequest> body = Entity.entity(<MASK><NEW_LINE>try (Response response = v1lookup.request(mediaType).buildPost(body).invoke()) {<NEW_LINE>if (response.getStatus() == Status.CREATED.getStatusCode()) {<NEW_LINE>String className = response.readEnt...
new LookupRequest(jndiName), mediaType);
602,523
private void visitLoop(CtExpression<Boolean> loopCondition, boolean isPrecondition, CtStatement... loopBody) {<NEW_LINE>BoolExpr oldBreakExpr = getBreakExpr();<NEW_LINE>BoolExpr oldContinueExpr = getContinueExpr();<NEW_LINE>BoolExpr iterationConditionExpr;<NEW_LINE>BranchData iterationBranchData;<NEW_LINE>if (isPrecond...
mkNot(iterationConditionExpr), currentBreakExpr));
771,560
public Request<SetIdentityFeedbackForwardingEnabledRequest> marshall(SetIdentityFeedbackForwardingEnabledRequest setIdentityFeedbackForwardingEnabledRequest) {<NEW_LINE>if (setIdentityFeedbackForwardingEnabledRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>...
(setIdentityFeedbackForwardingEnabledRequest.getForwardingEnabled()));
1,665,370
private void browsePressed() {<NEW_LINE>JFileChooser chooser = FileChooserFactory.getPkcs8FileChooser();<NEW_LINE>File currentExportFile = new File(jtfExportFile.getText().trim());<NEW_LINE>if ((currentExportFile.getParentFile() != null) && (currentExportFile.getParentFile().exists())) {<NEW_LINE>chooser.setCurrentDire...
setCurrentDirectory(CurrentDirectory.get());
409,181
public static DescribeScaleStrategysResponse unmarshall(DescribeScaleStrategysResponse describeScaleStrategysResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScaleStrategysResponse.setRequestId(_ctx.stringValue("DescribeScaleStrategysResponse.RequestId"));<NEW_LINE>describeScaleStrategysResponse.setNextToken(_ctx...
("DescribeScaleStrategysResponse.ScaleStrategys[" + i + "].ScaleStrategyId"));
712,118
// submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 5) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>int i;<NEW_LINE>edge_path = new Path(args[0] + "/pr_edge_block");<NEW_LINE>vector_path = new Path(args[0] + "/pr_iv_block");<NEW_LINE>tempmv_pa...
System.out.println("\n[PEGASUS] PageRank computed.");
479,886
public boolean speaksStartTls(Config config) {<NEW_LINE>WorkflowConfigurationFactory factory = new WorkflowConfigurationFactory(config);<NEW_LINE>WorkflowTrace trace = factory.createTlsEntryWorkflowTrace(config.getDefaultClientConnection());<NEW_LINE>State state = new State(config, trace);<NEW_LINE>WorkflowExecutor exe...
createWorkflowExecutor(WorkflowExecutorType.DEFAULT, state);
483,403
private void createTableViewer(Composite composite) {<NEW_LINE>viewer = new TableViewer(composite, SWT.FULL_SELECTION | SWT.BORDER);<NEW_LINE>tableColumnLayout = new TableColumnLayout();<NEW_LINE>composite.setLayout(tableColumnLayout);<NEW_LINE>createColumns();<NEW_LINE>final Table table = viewer.getTable();<NEW_LINE>t...
.setContentProvider(new ArrayContentProvider());
1,382,341
private org.nzbhydra.github.mavenreleaseplugin.Release createRelease(org.nzbhydra.github.mavenreleaseplugin.ReleaseRequest releaseRequest) throws IOException, MojoExecutionException {<NEW_LINE>getLog().info("Creating release in draft mode using base URL " + githubReleasesUrl);<NEW_LINE>String requestBody = objectMapper...
newCall(callBuilder.build());
1,653,278
public String validatePath(HttpRequest matcher) {<NEW_LINE>String error = "";<NEW_LINE>if (matcher.getPath() != null) {<NEW_LINE>if (matcher.getPathParameters() != null && !matcher.getPathParameters().isEmpty()) {<NEW_LINE>List<String> actualParameterNames = new ArrayList<>();<NEW_LINE>for (String matcherPathPart : mat...
(pathParameterName.group(1));
1,605,764
public void marshall(ConnectorSummary connectorSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (connectorSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(connectorSummary.getCapacity(), CAPA...
connectorSummary.getServiceExecutionRoleArn(), SERVICEEXECUTIONROLEARN_BINDING);
650,649
final DescribeConstraintResult executeDescribeConstraint(DescribeConstraintRequest describeConstraintRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConstraintRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeConstra...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
783,243
protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Axis2 artifacts");<NEW_LINE>XForm mainForm = builder.createForm("Basic");<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUTPUT, "root directory for generated fil...
advForm = builder.createForm("Advanced");
612,567
static public KeyStroke parseKeyStroke(String keyStroke) {<NEW_LINE>if (keyStroke == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int modifiers = 0;<NEW_LINE>int index = keyStroke.indexOf('+');<NEW_LINE>if (index != -1) {<NEW_LINE>for (int i = 0; i < index; i++) {<NEW_LINE>switch(Character.toUpperCase(keyStroke.ch...
err.println("Invalid key stroke: " + keyStroke);
48,238
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsFo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,451,713
public static Pipeline updateTransform(String urn, Pipeline originalPipeline, TransformReplacement compositeBuilder) {<NEW_LINE>Components.Builder resultComponents = originalPipeline<MASK><NEW_LINE>for (Map.Entry<String, PTransform> pt : originalPipeline.getComponents().getTransformsMap().entrySet()) {<NEW_LINE>if (pt....
.getComponents().toBuilder();
1,537,775
public void handle(Signal signal) {<NEW_LINE>LOG.info("Receive singal " + signal.getName() + " " + signal.getNumber());<NEW_LINE>Runnable runner = signalHandlers.get(signal.getNumber());<NEW_LINE>try {<NEW_LINE>if (runner == null) {<NEW_LINE>LOG.info("Skip JStorm register handler of signal: {}", signal.getName());<NEW_...
"Begin to handle signal of {}", signal.getName());