idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,606,027
void refineCamerasAlgebraic(List<ElevateViewInfo> views, List<DMatrixRMaj> cameraMatrices, int numCameras) {<NEW_LINE>// Refiner can't handle non-zero skew yet<NEW_LINE>if (!selfCalib.zeroSkew) {<NEW_LINE>if (verbose != null)<NEW_LINE>verbose.println("Skipping refine since skew is not zero");<NEW_LINE>return;<NEW_LINE>...
).get(info.cameraID);
521,009
public void handleMessage(BrowserMessage message) {<NEW_LINE>String opid = message.getOperationId();<NEW_LINE>if (OP_LOAD_VUZE_FILE.equals(opid)) {<NEW_LINE>Map decodedMap = message.getDecodedMap();<NEW_LINE>String content = MapUtils.<MASK><NEW_LINE>if (content == null) {<NEW_LINE>throw new IllegalArgumentException("co...
getMapString(decodedMap, "content", null);
1,589,092
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.RunAsUserStrategyOptions other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Extensions.RunAsUserStrategyOptions.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasRule()) {<NEW_LINE>bitField0_ |= 0x00000001;<NEW_LINE>rule...
bitField0_ = (bitField0_ & ~0x00000002);
559,062
protected PointsToSet computeRefinedReachingObjects(VarNode v) {<NEW_LINE>// must reset the refinement heuristic for each query<NEW_LINE>this.fieldCheckHeuristic = HeuristicType.getHeuristic(heuristicType, pag.getTypeManager(), getMaxPasses());<NEW_LINE>doPointsTo = true;<NEW_LINE>numPasses = 0;<NEW_LINE>PointsToSet co...
logger.debug("PASS " + numPasses);
1,495,598
static String injectSecurityWhereClauses(@Nullable final String sql, @Nullable final String securityWhereClause) {<NEW_LINE>if (sql == null) {<NEW_LINE>logger.debug("injectSecurityWhereClauses - sql=null; -> return null");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (securityWhereClause == null) {<NEW_LINE>logger.debu...
logger.debug("injectSecurityWhereClauses - found a semicolon at idx={}; -> will omit it", idxSemicolon);
895,926
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.processor.impl.interfaces.UpstreamControl#sendNackMessage(com.ibm.ws.sib.trm.topology.Cellule, long, long, boolean, int, com.ibm.websphere.sib.Reliability, com.ibm.ws.sib.utils.SIBUuid12)<NEW_LINE>*/<NEW_LINE>public void sendNackMessage(SIBUuid8 meUuid, SIBUuid12 destUuid...
SibTr.exception(tc, e);
813,867
public void registerMap() {<NEW_LINE>map(Type.VAR_INT);<NEW_LINE>handler(new PacketHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>int type = wrapper.get(Type.VAR_INT, 0);<NEW_LINE>if (type == 0) {<NEW_LINE>wrapper.passthrough(Type.STRING);<NEW_LIN...
wrapper.passthrough(Type.BOOLEAN);
1,482,001
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>Coolbar coolbar = findViewById(R.id.coolbar_backup_manage_app);<NEW_LINE>findViewById(R.id.ib_close).setOnClickListener(v -> dismiss());<NEW_LINE>ImageButton moreOptionsB...
findViewById(R.id.rv_backup_app_details);
674,971
protected RealVector newWeights(SLMState state) {<NEW_LINE>if (state.last) {<NEW_LINE>return super.newWeights(state);<NEW_LINE>}<NEW_LINE>RealVector deltapi = SLMTrainer.ordinaryLeastSquares(state.xpi, state.r);<NEW_LINE>if (deltapi == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>RealVector delta = state.unpack(de...
X, state.xpi, wa);
86,537
public int romanToInt(String s) {<NEW_LINE>HashMap<Character, Integer> map = new HashMap<Character, Integer>();<NEW_LINE>map.put('I', 1);<NEW_LINE><MASK><NEW_LINE>map.put('X', 10);<NEW_LINE>map.put('L', 50);<NEW_LINE>map.put('C', 100);<NEW_LINE>map.put('D', 500);<NEW_LINE>map.put('M', 1000);<NEW_LINE>int total = 0;<NEW...
map.put('V', 5);
599,146
public void init(final DaemonContext context) {<NEW_LINE>final File confFile = PropertiesUtil.findConfigFile("server.properties");<NEW_LINE>if (confFile == null) {<NEW_LINE>LOG.warn(String.format("Server configuration file not found. Initializing server daemon on %s, with http.enable=%s, http.port=%s, https.enable=%s, ...
, httpsEnable, httpsPort, contextPath));
1,411,232
public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3Location s3Location = new S3Location();<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();
1,019,112
public List<byte[]> readBytes(long startByte, long endByte) throws IOException {<NEW_LINE>if (raf == null) {<NEW_LINE>return Collections.<byte[]>emptyList();<NEW_LINE>}<NEW_LINE>// The list to return.<NEW_LINE>List<byte[]> byteArrayList = new ArrayList<>();<NEW_LINE>// Move the file pointer to the start.<NEW_LINE>raf.s...
new byte[(int) bytesToRead];
1,080,695
public Response theme(@FormParam("color") String color, @FormParam("name") String name, @FormParam("css") String css) {<NEW_LINE>if (!authenticate()) {<NEW_LINE>throw new ForbiddenClientException();<NEW_LINE>}<NEW_LINE>checkBaseFunction(BaseFunction.ADMIN);<NEW_LINE>// Validate input data<NEW_LINE>ValidationUtil.valida...
json.add("color", color);
242,371
public void DeleteAsset(final Context ctx) {<NEW_LINE>ChaincodeStub stub = ctx.getStub();<NEW_LINE>Map<String, byte[]> transientMap = ctx.getStub().getTransient();<NEW_LINE>if (!transientMap.containsKey("asset_delete")) {<NEW_LINE>String errorMessage = String.format("DeleteAsset call must specify 'asset_delete' in Tran...
System.err.println(errorMessage);
441,690
public void init(IBatchConfig batchConfig) throws BatchContainerServiceException {<NEW_LINE>logger.log(Level.CONFIG, "Entering CLASSNAME.init(), batchConfig ={0}", batchConfig);<NEW_LINE>this.batchConfig = batchConfig;<NEW_LINE>schema = batchConfig<MASK><NEW_LINE>jndiName = batchConfig.getDatabaseConfigurationBean().ge...
.getDatabaseConfigurationBean().getSchema();
720,218
public ListPhoneNumbersOptedOutResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListPhoneNumbersOptedOutResult listPhoneNumbersOptedOutResult = new ListPhoneNumbersOptedOutResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
().unmarshall(context));
936,332
public void initialize(CmdLineOpts configuration) {<NEW_LINE>// Setup the local spark master, with the desired parallelism.<NEW_LINE>SparkConf conf = new SparkConf().setAppName("yb.kvcopy").setMaster("local[" + appConfig.numWriterThreads + "]").set("spark.cassandra.connection.localDC", "datacenter1").set("spark.cassand...
CommandLine commandLine = configuration.getCommandLine();
553,879
public void printAll() {<NEW_LINE>AutoTypeImage[] types = AutoTypeImage.getSpecificTypes();<NEW_LINE>for (AutoTypeImage t : types) {<NEW_LINE>input = t;<NEW_LINE>printBoundImage();<NEW_LINE>printDiffAbs();<NEW_LINE>}<NEW_LINE>AutoTypeImage[] outputsAdd = new AutoTypeImage[] { U16, S16, S32, S32, S32, S64, F32, F64 };<N...
), AutoTypeImage.getFloatingTypes());
110,988
protected void allocateThenInsertThenRehash(int slot, int pendingKey, int pendingValue) {<NEW_LINE>assert assigned == resizeAt && ((keys[slot]) == 0) && !((pendingKey) == 0);<NEW_LINE>// Try to allocate new buffers first. If we OOM, we leave in a consistent state.<NEW_LINE>final int[] prevKeys = this.keys;<NEW_LINE>fin...
, size(), loadFactor));
1,573,742
private void computeTstring(int fc, String text) {<NEW_LINE>// measure the LST<NEW_LINE>int i = text.length();<NEW_LINE>int len = 0;<NEW_LINE>for (int c = fc; c >= 0; ) {<NEW_LINE>int <MASK><NEW_LINE>len += this.confTstrings[piece];<NEW_LINE>if (i == 0)<NEW_LINE>break;<NEW_LINE>int bas = this.confLinks.base[c];<NEW_LIN...
piece = this.confPiece[c];
712,593
public void clean(String executorName) {<NEW_LINE>List<JobConfigInfo> jobConfigInfos = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>String cleanNodePath = SaturnExecutorsNode.getExecutorCleanNodePath(executorName);<NEW_LINE>byte[] cleanNodeBytes = curatorFramework.getData().forPath(cleanNodePath);<NEW_LINE>if (cleanNodeB...
preferList = updateJobConfigPreferListContentToRemoveDeletedExecutor(jobName, executorName);
912,750
public boolean updateRecord(@NonNull LockConfiguration lockConfiguration) {<NEW_LINE>Collection collection = bucket.defaultCollection();<NEW_LINE>GetResult result = collection.<MASK><NEW_LINE>JsonObject document = result.contentAsObject();<NEW_LINE>Instant lockUntil = parse(document.get(LOCK_UNTIL));<NEW_LINE>Instant n...
get(lockConfiguration.getName());
1,327,227
public <N extends Node> List<NodeEntry<UUID, N>> searchUserNodes(ConstraintNodeMatcher<N> constraint) throws SQLException {<NEW_LINE>PreparedStatementBuilder builder = new PreparedStatementBuilder().append(USER_PERMISSIONS_SELECT_PERMISSION);<NEW_LINE>constraint.getConstraint().appendSql(builder, "permission");<NEW_LIN...
(rs.getString("uuid"));
999,738
public void deleteFileIfExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileIfExists#String<NEW_LINE>client.deleteFileIfExists(fileName).subscribe(deleted -> {<NEW_LINE>if (deleted) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>System.out.println("Does not exi...
System.out.println("successfully deleted.");
1,089,763
public boolean rearrangeAtleastkDistanceAway(Map<Character, Integer> charCount, char[] output, int pos, int k) {<NEW_LINE>if (pos == output.length && charCount.size() == 0) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Set<Character> allChars = new HashSet<Character>();<NEW_LINE>for (char ch : charCount.keySet()) {<NEW_L...
output, pos + 1, k);
1,696,174
private void fillTypeCandidates(SSAVar ssaVar) {<NEW_LINE>TypeSearchVarInfo varInfo = state.getVarInfo(ssaVar);<NEW_LINE>ArgType immutableType = ssaVar.getImmutableType();<NEW_LINE>if (immutableType != null) {<NEW_LINE>varInfo.markResolved(immutableType);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArgType currentType = ssaVa...
, candidateTypes, getWiderTypes(assignType));
1,469,006
public void startup() throws Exception {<NEW_LINE>// !! where should that be decided?<NEW_LINE>setWarnClient(true);<NEW_LINE>if (stylesheet == null) {<NEW_LINE>TransformerFactory tFactory = TransformerFactory.newInstance();<NEW_LINE>tFactory.setURIResolver(new URIResolver() {<NEW_LINE><NEW_LINE>public Source resolve(St...
().getResourceAsStream("emotion-to-mary.xsl"));
583,833
public void deleteModelSnapshots(List<ModelSnapshot> modelSnapshots, ActionListener<BulkByScrollResponse> listener) {<NEW_LINE>if (modelSnapshots.isEmpty()) {<NEW_LINE>listener.onResponse(new BulkByScrollResponse(TimeValue.ZERO, new BulkByScrollTask.Status(Collections.emptyList(), null), Collections.emptyList(), Collec...
idsToDelete = new ArrayList<>();
1,759,629
private void startMFSession(final Login loginService) {<NEW_LINE>final HttpServletRequest httpRequest = ((ServletRequestAttributes) RequestContextHolder.<MASK><NEW_LINE>final HttpSession httpSess = httpRequest.getSession();<NEW_LINE>final String webSessionId = httpSess.getId();<NEW_LINE>//<NEW_LINE>// final WebBrowser ...
currentRequestAttributes()).getRequest();
764,686
private synchronized void target(UUID playerId, final String question, final Cards cards, final List<Permanent> perms, final Set<UUID> targets, final boolean required, final Map<String, Serializable> options) throws MageException {<NEW_LINE>perform(playerId, playerId1 -> {<NEW_LINE>if (cards != null) {<NEW_LINE>// Zone...
)), playerId1, game));
1,559,895
public void update(EncodedMB mb) {<NEW_LINE>if (mb.getType() != MBType.I_NxN) {<NEW_LINE>topLeft[0] = topLine[0][(mb.mbX << 4) + 15];<NEW_LINE>arraycopy(mb.pixels.getPlaneData(0), 240, topLine[0], mb.mbX << 4, 16);<NEW_LINE>copyCol(mb.pixels.getPlaneData(0), 15, 16, leftRow[0]);<NEW_LINE>}<NEW_LINE>topLeft[1] = topLine...
mvTopR[mb.mbX << 2];
235,000
public void start(BundleContext context) throws Exception {<NEW_LINE>super.start(context);<NEW_LINE>Version.<MASK><NEW_LINE>// configure debugging<NEW_LINE>configurePluginDebugOptions();<NEW_LINE>// initialize resource strings<NEW_LINE>try {<NEW_LINE>// this is correct //$NON-NLS-1$<NEW_LINE>resourceBundle = ResourceBu...
registerApplication("FindBugs-Eclipse", Version.RELEASE);
1,139,777
private static BitfinexWebSocketAuthOrder createOrderObject(JsonNode order) {<NEW_LINE>if (order.size() < 32) {<NEW_LINE>LOG.error("createOrderObject unexpected record size={}, record={}", order.size(<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long id = order.get(0).longValue();<NEW_LINE>long groupId = order.get(1...
), order.toString());
889,025
public void showAnnotation(PDAnnotation annotation) throws IOException {<NEW_LINE>lastClip = null;<NEW_LINE>// Device checks shouldn't be needed<NEW_LINE>if (annotation.isNoView()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (annotation.isHidden()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (annotation.isInvisible() && an...
PDRectangle rect = annotation.getRectangle();
392,258
private double calculate(SessionsMutator sessionsMutator) {<NEW_LINE>if (sessionsMutator.all().isEmpty()) {<NEW_LINE>return 0.0;<NEW_LINE>}<NEW_LINE>long week = TimeUnit.DAYS.toMillis(7L);<NEW_LINE>long weekAgo = date - week;<NEW_LINE>long twoWeeksAgo = date - 2L * week;<NEW_LINE>long threeWeeksAgo = date - 3L * week;<...
double playtime3 = weekThree.toActivePlaytime();
1,148,751
private static Vector apply(LongIntVector v1, Unary op) {<NEW_LINE>LongIntVector res;<NEW_LINE>if (op.isOrigin() || v1.isDense()) {<NEW_LINE>if (!op.isInplace()) {<NEW_LINE>res = v1.copy();<NEW_LINE>} else {<NEW_LINE>res = v1;<NEW_LINE>}<NEW_LINE>if (v1.isDense()) {<NEW_LINE>int[] values = res.getStorage().getValues();...
.getStorage().entryIterator();
273,503
final DeleteApiResult executeDeleteApi(DeleteApiRequest deleteApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
endClientExecution(awsRequestMetrics, request, response);
866,796
private void writeMetrics(List<MetricTuple> currentMetrics) {<NEW_LINE>SocketOutputStream out = null;<NEW_LINE>try {<NEW_LINE>out = socketOutputStreamPool.borrowObject(socketConnectionInfos);<NEW_LINE>// pw is not closed as it would close the underlying pooled out<NEW_LINE>PrintWriter pw = new PrintWriter(new OutputStr...
socketConnectionInfos.getPort(), e1);
947,911
final DeleteDatasetResult executeDeleteDataset(DeleteDatasetRequest deleteDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(deleteDatasetRequest));
121,862
protected JComponent createNorthPanel() {<NEW_LINE>myInformationLabel = JBLabelDecorator.createJBLabelDecorator().setBold(true);<NEW_LINE>final FormBuilder formBuilder = FormBuilder.createFormBuilder().addComponent(myInformationLabel).addVerticalGap(UIUtil.LARGE_VGAP - UIUtil.DEFAULT_VGAP);<NEW_LINE>DocumentListener do...
getDocument().addDocumentListener(documentListener);
1,494,259
public static void main(String[] args) {<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraph = new EdgeWeightedDigraph(9);<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(0, 1, 1));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(0, 2, 2));<NEW_LINE>edgeWeightedDigraph.addEdge(new DirectedEdge(1, 3, 3));<NEW_L...
longestDistance = acyclicLP.distTo(vertex);
1,286,348
public void transform(Direction direction, State state, PacketWrapper packetWrapper) throws Exception {<NEW_LINE>Packet statePacket = new Packet(state, packetWrapper.getId());<NEW_LINE>Map<Packet, ProtocolPacket> packetMap = direction == Direction.CLIENTBOUND ? clientbound : serverbound;<NEW_LINE>ProtocolPacket protoco...
packetWrapper.getId(), e);
1,205,080
void handleSetNode(Node node, final SetConfig sConfig) {<NEW_LINE>for (Node n : childElements(node)) {<NEW_LINE>String nodeName = cleanNodeName(n);<NEW_LINE>if (matches("max-size", nodeName)) {<NEW_LINE>sConfig.setMaxSize(getIntegerValue("max-size", getTextContent(n)));<NEW_LINE>} else if (matches("backup-count", nodeN...
n, sConfig.getMergePolicyConfig());
525,631
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>Display display = ((Activity) context).getWindowManager().getDefaultDisplay();<NEW_LINE>DisplayMetrics metrics = new DisplayMetrics();<NEW_LINE>display.getMetrics(metrics);<NEW_LINE>View v = inflater.inflate(R.l...
findViewById(R.id.not_now_button_2);
1,484,496
public void remap(CustomRemapper remapper) {<NEW_LINE>Set<String> mappedNames = new HashSet<>();<NEW_LINE>remapper.setIgnorePackages(true);<NEW_LINE>classNodes().forEach(classNode -> {<NEW_LINE>int matches = StringUtils.countMatches(classNode.name, "/");<NEW_LINE>if (matches > getConfig().getPackageLayers()) {<NEW_LINE...
classNode.name.length());
1,373,731
public static QueryMigrateRegionListResponse unmarshall(QueryMigrateRegionListResponse queryMigrateRegionListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMigrateRegionListResponse.setRequestId<MASK><NEW_LINE>queryMigrateRegionListResponse.setCode(_ctx.integerValue("QueryMigrateRegionListResponse.Code"));<NEW_LIN...
(_ctx.stringValue("QueryMigrateRegionListResponse.RequestId"));
842,929
public BaseHttpClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException {<NEW_LINE>IIdType id = null;<NEW_LINE>String resourceName = myResourceName;<NEW_LINE>if (myIdParamIndex != null) {<NEW_LINE>id <MASK><NEW_LINE>if (id == null || isBlank(id.getValue())) {<NEW_LINE>throw new NullPointerException...
= (IIdType) theArgs[myIdParamIndex];
826,453
protected ITranslatableString buildMessage() {<NEW_LINE>final TranslatableStringBuilder message = TranslatableStrings.builder();<NEW_LINE>message.appendADMessage(MSG_TaxNotFound);<NEW_LINE>//<NEW_LINE>if (productId != null) {<NEW_LINE>final String productName = Services.get(IProductBL.class).getProductValueAndName(prod...
(": ").append(isSOTrx);
1,739,459
public List<MetadataVO> listTaskToolDimension(Long taskId) {<NEW_LINE>TaskInfoEntity taskInfo = taskRepository.findByTaskId(taskId);<NEW_LINE>Map<String, MetadataVO> resultMap = new HashMap<>();<NEW_LINE>taskInfo.getToolConfigInfoList().forEach(it -> {<NEW_LINE>try {<NEW_LINE>BaseDataEntity toolTypeBaseData = toolTypeB...
get(it.getToolName());
123,060
protected CompletableFuture<PaymentProtocol.Ack> sendPayment(final URL url, final Protos.Payment payment) {<NEW_LINE>return CompletableFuture.supplyAsync((FutureUtils.ThrowingSupplier<PaymentProtocol.Ack>) () -> {<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) url.openConnection();<NEW_LINE>connection.setR...
parseFrom(connection.getInputStream());
1,231,923
protected void initUi(View rootView) {<NEW_LINE>getDialog().setCanceledOnTouchOutside(true);<NEW_LINE>boolean isQuickSnoozeEnabled = userManager.isSnoozeQuickEnabledBlocking();<NEW_LINE>if (isQuickSnoozeEnabled) {<NEW_LINE>int notificationsResumeInMinutes = (int) ((userManager.getSnoozeSettings().getSnoozeQuickEndTime(...
(R.array.quick_snooze_values));
256,676
public int compare(final SteeringResult result1, final SteeringResult result2) {<NEW_LINE>final Geolocation originGeo1 = result1.getSteeringTarget().getGeolocation();<NEW_LINE>final Geolocation originGeo2 = result2<MASK><NEW_LINE>final Geolocation cacheGeo1 = result1.getCache().getGeolocation();<NEW_LINE>final Geolocat...
.getSteeringTarget().getGeolocation();
1,524,604
private boolean commandAvailable(final InetAddress remoteAddress, final String commandName, final User user) {<NEW_LINE>try {<NEW_LINE>checkCommandAvailable(user, commandName, remoteAddress);<NEW_LINE>} catch (final RequestLimitException ex) {<NEW_LINE>s_logger.<MASK><NEW_LINE>throw new ServerApiException(ApiErrorCode....
debug(ex.getMessage());
1,811,421
private void pushEntryToBack(final Entry<CacheFileRegion> entry) {<NEW_LINE>assert Thread.holdsLock(this);<NEW_LINE>assert invariant(entry, false);<NEW_LINE>assert entry.prev == null;<NEW_LINE>assert entry.next == null;<NEW_LINE>final Entry<CacheFileRegion> currFront = freqs[entry.freq];<NEW_LINE>if (currFront == null)...
entry.freq].prev == entry;
425,919
public void onEvents(Player player, Events events) {<NEW_LINE>if (events.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>maybeAddSessions(events);<NEW_LINE>for (String session : playbackStatsTrackers.keySet()) {<NEW_LINE>Pair<EventTime, Boolean> eventTimeAndBelongsToPlayback = findBestEventTime(events, session);<NE...
hasEvent(events, session, EVENT_LOAD_STARTED);
1,257,654
public com.alibaba.alink.operator.batch.dl.ctr.protos.Deepfm.DeepFM buildPartial() {<NEW_LINE>com.alibaba.alink.operator.batch.dl.ctr.protos.Deepfm.DeepFM result = new com.alibaba.alink.operator.batch.dl.ctr.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_...
protos.Deepfm.DeepFM(this);
1,067,456
static <T, R, R1, R2, R4> Function<T, R4> forEach3(Function<? super T, ? extends R> fn, Function<? super R, Function<? super T, ? extends R1>> value2, BiFunction<? super R, ? super R1, Function<? super T, ? extends R2>> value3, Function3<? super R, ? super R1, ? super R2, ? extends R4> yieldingFunction) {<NEW_LINE>Func...
apply(in, ina)));
180,545
public static void addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders, HttpVersion httpVersion, boolean isTrailer, boolean isRequest) throws Http2Exception {<NEW_LINE>Http2ToHttpHeaderTranslator translator = new Http2ToHttpHeaderTranslator(streamId, outputHeaders, isRequest);<NEW_L...
outputHeaders.remove(HttpHeaderNames.TRAILER);
364,214
protected void onRun() throws Exception {<NEW_LINE>SignalServiceAccountManager accountManager = ApplicationDependencies.getSignalServiceAccountManager();<NEW_LINE>StorageKey storageServiceKey = SignalStore.storageService().getOrCreateStorageKey();<NEW_LINE>Log.i(TAG, "Retrieving manifest...");<NEW_LINE>Optional<SignalS...
Log.i(TAG, "Retrieving account record...");
1,600,700
void serialize(TransformerHandler handler, File outputFile) throws SAXException, IOException, ExportException {<NEW_LINE>String filenameWithoutExtension = getFilenameWithoutExtension(outputFile);<NEW_LINE>handler.startDocument();<NEW_LINE>AttributesImpl attrs = new AttributesImpl();<NEW_LINE>writeViews(getUIFacade(), h...
startElement("links", attrs, handler);
917,739
protected void updateShaderTransform(Shader shader, BaseTransform xform) {<NEW_LINE>if (xform == null) {<NEW_LINE>xform = BaseTransform.IDENTITY_TRANSFORM;<NEW_LINE>}<NEW_LINE>scratchTx.set(projViewTx);<NEW_LINE>final GeneralTransform3D perspectiveTransform = getPerspectiveTransformNoClone();<NEW_LINE>if (perspectiveTr...
float xoff = currentTarget.getContentX();
1,485,381
public FloatBuffer filter(float sx, float sy, float base, FloatBuffer data, int workSize) {<NEW_LINE>float[] arr = data.array();<NEW_LINE>int origSize = (int) Math.ceil(workSize / (2 * this.magnitude + 1));<NEW_LINE>int offset = (workSize - origSize) / 2;<NEW_LINE>Logger.getLogger(PerturbFilter.class.getCanonicalName()...
perturbY[y * workSize + x];
416,890
public void initialize() {<NEW_LINE>ExtendableMap map = new ExtendableMap();<NEW_LINE>env = new MapEnvironment(map);<NEW_LINE>String agentLoc = null;<NEW_LINE>switch(taskPaneCtrl.getParamValueIndex(PARAM_SCENARIO)) {<NEW_LINE>case 0:<NEW_LINE>SimplifiedRoadMapOfRomania.initMap(map);<NEW_LINE>agentLoc = SimplifiedRoadMa...
.getParamValueIndex(PARAM_Q_SEARCH_IMPL), heuristic);
247,275
FileObject validateResource(String resource, Element originatingElement, Annotation annotation, String annotationMethod, boolean searchClasspath) throws LayerGenerationException {<NEW_LINE>if (resource.startsWith("/")) {<NEW_LINE>throw new LayerGenerationException("do not use leading slashes on resource paths", origina...
StandardLocation.SOURCE_PATH, "", resource);
340,421
private Position decodeObd(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_OBD, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());<NEW_L...
, ' ').trim());
1,047,657
public void read(org.apache.thrift.protocol.TProtocol iprot, KeyedVersions struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.a...
skip(iprot, schemeField.type);
1,285,824
final CreateUploadResult executeCreateUpload(CreateUploadRequest createUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Device Farm");
232,046
protected int bind_ipv4(Pointer addr, int addrlen) {<NEW_LINE>int sa_family = addr.getShort(0);<NEW_LINE>if (sa_family != AF_INET) {<NEW_LINE>throw new AbstractMethodError("sa_family=" + sa_family);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int port = Short.reverseBytes(addr.getShort(2)) & 0xffff;<NEW_LINE>InetSocketAddress a...
inspect(data, "address=" + address);
495,548
public void run() {<NEW_LINE>TokenHierarchy th = TokenHierarchy.get(doc);<NEW_LINE>if (th != null && th.isActive()) {<NEW_LINE>FoldHierarchy hierarchy = getOperation().getHierarchy();<NEW_LINE>hierarchy.lock();<NEW_LINE>try {<NEW_LINE>if (operation.isReleased()) {<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>LOG...
, System.identityHashCode(this));
1,109,335
public static void main(String[] args) {<NEW_LINE>Options options = PipelineOptionsFactory.fromArgs(args).withValidation().as(Options.class);<NEW_LINE>Pipeline p = Pipeline.create(options);<NEW_LINE><MASK><NEW_LINE>String databaseId = options.getDatabaseId();<NEW_LINE>String usersIdFile = options.getSuspiciousUsersFile...
String instanceId = options.getInstanceId();
1,503,731
public void addFormForAddAccount() {<NEW_LINE>// this payment method is only for India/INR<NEW_LINE>paymentAccount.setSingleTradeCurrency(new FiatCurrency("INR"));<NEW_LINE>CountryUtil.findCountryByCode("IN").ifPresent(c -> ifscBasedAccountPayload.setCountryCode(c.code));<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>In...
, Res.get("payment.ifsc"));
1,078,363
private String generateTemporaryS3UploadUrl(String key, Date expiration) throws IOException {<NEW_LINE>GeneratePresignedUrlRequest generatePresignedUrlRequest = new GeneratePresignedUrlRequest(bucketName, key).withMethod(HttpMethod.PUT).withExpiration(expiration);<NEW_LINE>// Require user to add this header to indicate...
protocolEnd = endpoint.indexOf("://");
568,920
public void registerFlags() {<NEW_LINE>try {<NEW_LINE>FlagRegistry registry = WorldGuard.getInstance().getFlagRegistry();<NEW_LINE>try {<NEW_LINE>// register our flag with the registry<NEW_LINE><MASK><NEW_LINE>registry.register(WorldGuardFlags.MCMMO_XP_WG_FLAG);<NEW_LINE>registry.register(WorldGuardFlags.MCMMO_HARDCORE...
registry.register(WorldGuardFlags.MCMMO_ENABLE_WG_FLAG);
1,412,192
protected Folder _editWebAsset(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user, String webKey) throws Exception {<NEW_LINE>// wraps request to get session object<NEW_LINE>ActionRequestImpl reqImpl = (ActionRequestImpl) req;<NEW_LINE>HttpServletRequest httpReq = reqImpl.getHttpSer...
+ userMod.getEmailAddress() + ")";
1,367,754
public void paintInstance(InstancePainter painter) {<NEW_LINE>final var segmentWidth = 10;<NEW_LINE>var state = (State) painter.getData();<NEW_LINE>if (state == null || state.size != painter.getAttributeValue(ATTR_SIZE).getWidth()) {<NEW_LINE>final var val = (state == null) ? 0 : state.Value;<NEW_LINE>state = new State...
var y = loc.getY();
1,073,078
private List<CToolchain.Builder> createMipsToolchains() {<NEW_LINE>ImmutableList.Builder<CToolchain.Builder> toolchainsListBuilder = ImmutableList.builder();<NEW_LINE>// The gcc-4.9 mips toolchain doesn't have the dwp tool.<NEW_LINE>toolchainsListBuilder.add(createMipsToolchain());<NEW_LINE>CToolchain.Builder mipsClang...
(ndkPaths.createBuiltinSysroot("mips"));
1,744,458
static SVG scaleSVG(SVG s, int w, int h) {<NEW_LINE>try {<NEW_LINE>SVG dest = new SVG();<NEW_LINE>dest.setBaseURL(s.getBaseURL());<NEW_LINE>dest.setSvgData(s.getSvgData());<NEW_LINE>org.apache.batik.transcoder.image.PNGTranscoder t = new org.apache.batik.transcoder.image.PNGTranscoder();<NEW_LINE>org.apache.batik.trans...
(s.getSvgData()));
645,098
Future<ReconciliationState> zkScalingUp() {<NEW_LINE>int desired = zkCluster.getReplicas();<NEW_LINE>if (zkCurrentReplicas != null && zkCurrentReplicas < desired) {<NEW_LINE>LOGGER.infoCr(reconciliation, "Scaling Zookeeper up from {} to {} replicas", zkCurrentReplicas, desired);<NEW_LINE>return zkScaler(zkCurrentReplic...
"Failed to scale Zookeeper", res.cause());
554,196
// Return number of new derivations added<NEW_LINE>private int applyRule(int start, int end, Rule rule, List<Derivation> children) {<NEW_LINE>if (Parser.opts.verbose >= 5)<NEW_LINE>LogInfo.logs("applyRule %s %s %s %s", start, end, rule, children);<NEW_LINE>try {<NEW_LINE>if (mode == Mode.full) {<NEW_LINE>StopWatchSet.b...
Formula.nullFormula).createDerivation();
9,586
protected static BaseInjection showDefaultInjectionUI(final Project project, BaseInjection injection) {<NEW_LINE>final BaseInjectionPanel panel <MASK><NEW_LINE>panel.reset();<NEW_LINE>final DialogBuilder builder = new DialogBuilder(project);<NEW_LINE>LanguageInjectionSupport support = InjectorUtils.findInjectionSupport...
= new BaseInjectionPanel(injection, project);
22,363
public static String lookupTag(List<LanguageRange> priorityList, Collection<String> tags) {<NEW_LINE>if (priorityList.isEmpty() || tags.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>for (LanguageRange lr : priorityList) {<NEW_LINE>String range = lr.getRange();<NEW_LINE>// Special language range ("*") is ignore...
range.replace("*", "\\p{Alnum}*");
24,767
private Mono<Response<Flux<ByteBuffer>>> restoreCheckpointWithResponseAsync(String resourceGroupName, String virtualMachineName, VirtualMachineRestoreCheckpoint body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEn...
error(new IllegalArgumentException("Parameter virtualMachineName is required and cannot be null."));
785,769
public static boolean areSameQName(JSFConfigQNames jsfqname, Element element) {<NEW_LINE>QName qname = AbstractDocumentComponent.getQName(element);<NEW_LINE>if (JSFConfigQNames.JSF_1_2_NS.equals(element.getNamespaceURI())) {<NEW_LINE>return jsfqname.getQName(JSFVersion.JSF_1_2).equals(qname);<NEW_LINE>} else if (JSFCon...
.JSF_2_0).equals(qname);
1,809,665
public void onInit() {<NEW_LINE>super.onInit();<NEW_LINE>this<MASK><NEW_LINE>if (this.maxSubscribers == null) {<NEW_LINE>this.maxSubscribers = this.getIntegrationProperty(this.isPubSub ? IntegrationProperties.CHANNELS_MAX_BROADCAST_SUBSCRIBERS : IntegrationProperties.CHANNELS_MAX_UNICAST_SUBSCRIBERS, Integer.class);<NE...
.dispatcher = this.createDispatcher();
1,067,334
protected void launchGroovy(final IType runType, final IJavaProject javaProject, final String mode) {<NEW_LINE>try {<NEW_LINE>boolean excludeTestCode = (runType != null && !hasTestAttribute(runType));<NEW_LINE>Map<String, String> launchProperties = createLaunchProperties(runType, javaProject);<NEW_LINE>String launchNam...
))).getMemento());
956,916
public void initialize(WizardDescriptor wizard) {<NEW_LINE>wiz = wizard;<NEW_LINE><MASK><NEW_LINE>SourceGroup[] sourceGroups = SourceGroups.getJavaSourceGroups(project);<NEW_LINE>// create the Java Project chooser<NEW_LINE>if (sourceGroups.length == 0) {<NEW_LINE>SourceGroup[] genericSourceGroups = ProjectUtils.getSour...
project = Templates.getProject(wiz);
366,326
public void checkUpdateCompat() {<NEW_LINE>if (this.compatFile.exists()) {<NEW_LINE>long lastUpdate = this.compatFile.lastModified();<NEW_LINE>if (lastUpdate <= System.currentTimeMillis() && lastUpdate + 600_000L > System.currentTimeMillis()) {<NEW_LINE>// Skip update<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try...
).getBytes(StandardCharsets.UTF_8);
1,826,460
public com.didiglobal.booster.aapt2.Resources.Style buildPartial() {<NEW_LINE>com.didiglobal.booster.aapt2.Resources.Style result = new com.didiglobal.booster.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>if (parentBuilder_ == null) {<NEW_LINE>result.parent_ = parent_;<NEW_LINE>} else {<NEW_LINE>result.par...
aapt2.Resources.Style(this);
762,073
public Long extractTemplate(VMTemplateVO template, String url, TemplateDataStoreVO vmTemplateHost, Long dataCenterId, long eventId, long asyncJobId, AsyncJobManager asyncMgr) {<NEW_LINE>Type type = (template.getFormat() == ImageFormat.ISO) ? Type.ISO : Type.TEMPLATE;<NEW_LINE>DataStore secStore = storeMgr.getImageStore...
ul.scheduleStatusCheck(RequestType.GET_OR_RESTART);
618,208
static void markupClassHeaderData(Program program, Symbol oatDataSymbol, Address address, OatHeader oatHeader, OatClass oatClassHeader, MessageLog log, TaskMonitor monitor) throws Exception {<NEW_LINE>SymbolTable symbolTable = program.getSymbolTable();<NEW_LINE>ReferenceManager referenceManager = program.getReferenceMa...
address, oatClassHeader.toDataType());
401,075
public void bindViewHolder(FlexibleAdapter adapter, ViewHolder viewHolder, int position, List<Object> payloads) {<NEW_LINE>Context context = viewHolder.itemView.getContext();<NEW_LINE>viewHolder.accountColorIndicator.setBackgroundColor(getAccountColorIndicator());<NEW_LINE>viewHolder.accountColorIndicatorBack.setBackgr...
viewHolder.tvStatus.setText(statusText);
5,080
public void animatePadding(final int toLeft, final int toTop, final int toRight, final int toBottom) {<NEW_LINE>final Handler handler = new Handler();<NEW_LINE>final long start = SystemClock.uptimeMillis();<NEW_LINE>final long duration = 1000;<NEW_LINE>final Interpolator interpolator = new OvershootInterpolator();<NEW_...
toRight - startRight) * t));
1,332,066
private void partialUpdatePhoto(PrintWriter respWriter, long photoId) throws RemoteInvocationException {<NEW_LINE>final Request<Photo> getReq = _photoBuilders.get().id(photoId).build();<NEW_LINE>final ResponseFuture<Photo> <MASK><NEW_LINE>final Response<Photo> getResp = getFuture.getResponse();<NEW_LINE>final Photo ori...
getFuture = _restClient.sendRequest(getReq);
1,495,203
public void doRollback(final Collection<Change> changes, final boolean deleteLocallyAddedFiles, @javax.annotation.Nullable final Runnable afterVcsRefreshInAwt, @javax.annotation.Nullable final String localHistoryActionName) {<NEW_LINE>final ChangeListManager changeListManager = ChangeListManager.getInstance(myProject);...
changes, deleteLocallyAddedFiles, afterRefresh, localHistoryActionName);
772,273
private String _getRenderFlashMapTokenFromPreviousRequest(FacesContext facesContext) {<NEW_LINE>ExternalContext externalContext = facesContext.getExternalContext();<NEW_LINE>String tokenValue = null;<NEW_LINE>ClientWindow clientWindow = externalContext.getClientWindow();<NEW_LINE>if (clientWindow != null) {<NEW_LINE>if...
> sessionMap = externalContext.getSessionMap();
712,804
final RecordHandlerProgressResult executeRecordHandlerProgress(RecordHandlerProgressRequest recordHandlerProgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(recordHandlerProgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,193,471
public static Map<String, ModuleDoc> generateModuleDocMap(io.ballerina.projects.Project project) throws IOException {<NEW_LINE>Map<String, ModuleDoc> moduleDocMap = new HashMap<>();<NEW_LINE>for (io.ballerina.projects.Module module : project.currentPackage().modules()) {<NEW_LINE>String moduleName;<NEW_LINE>String modu...
()).orElse("");
542,946
public void onNext(T value) {<NEW_LINE>if (upstream == DisposableHelper.DISPOSED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Iterator<? extends R> it;<NEW_LINE>try {<NEW_LINE>it = mapper.<MASK><NEW_LINE>} catch (Throwable ex) {<NEW_LINE>Exceptions.throwIfFatal(ex);<NEW_LINE>upstream.dispose();<NEW_LINE>onError(ex);<NEW_LIN...
apply(value).iterator();
535,448
private synchronized boolean isInGuardedSection(final Position startPos, final Position endPos) {<NEW_LINE>EditorCookie editor = <MASK><NEW_LINE>StyledDocument doc = null;<NEW_LINE>GuardedSectionManager guards = null;<NEW_LINE>if (editor != null) {<NEW_LINE>try {<NEW_LINE>doc = editor.openDocument();<NEW_LINE>} catch (...
sourceDataObject.getCookie(EditorCookie.class);