idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,156,005
public Row nextRecord(Row row) throws IOException {<NEW_LINE>try {<NEW_LINE>QueryResult result = conn.query(new Query(this.query + " LIMIT 1 OFFSET " + offset));<NEW_LINE>if (result == null) {<NEW_LINE>hasNext = false;<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<QueryResult.Result> results = result.getResults();<NEW...
e.getMessage(), e);
1,507,014
public OperationResult show(Screen screen) {<NEW_LINE>checkNotNullArgument(screen);<NEW_LINE>checkNotYetOpened(screen);<NEW_LINE>if (isMaxTabCountExceeded(screen)) {<NEW_LINE>showTooManyOpenTabsMessage();<NEW_LINE>return OperationResult.fail();<NEW_LINE>}<NEW_LINE>StopWatch uiPermissionsWatch = createStopWatch(ScreenLi...
UI_PERMISSIONS, screen.getId());
1,466,993
static protected DecoderInputs readDecoderInputs(final int nsymbols, final InputBitStream ibs, final StringBuilder sb) throws IOException {<NEW_LINE>final int min = ibs.readNibble();<NEW_LINE>final int max = ibs.readNibble();<NEW_LINE>if (sb != null)<NEW_LINE>sb.append("min=" + min + ", max=" + max + "\n");<NEW_LINE>fi...
final int shortestCodeWordLength = length[0];
1,311,159
public static int[] extractArcs(ASN1ObjectIdentifier oid) throws InvalidObjectIdException {<NEW_LINE><MASK><NEW_LINE>StringTokenizer strTokCnt = new StringTokenizer(oidStr, ".", false);<NEW_LINE>int arcCount = strTokCnt.countTokens();<NEW_LINE>StringTokenizer strTok = new StringTokenizer(oidStr, ".", true);<NEW_LINE>bo...
String oidStr = oid.getId();
240,770
public static List<String> check(ByteBuffer data) {<NEW_LINE>List<String> messages = new ArrayList<String>();<NEW_LINE>int frameSize = data.getInt();<NEW_LINE>if (!"icpf".equals(ProresDecoder.readSig(data))) {<NEW_LINE>messages.add("[ERROR] Missing ProRes signature (icpf).");<NEW_LINE>return messages;<NEW_LINE>}<NEW_LI...
short height = data.getShort();
724,265
private Notification create() {<NEW_LINE>Type type = this.type.getSettingValue();<NEW_LINE>Color foreground = HtmlColors.decode(foregroundColor.getSettingValue());<NEW_LINE>Color background = HtmlColors.decode(backgroundColor.getSettingValue());<NEW_LINE>Notification.Builder b = new Notification.Builder(type);<NEW_LINE...
setMatcher(matcher.getSettingValue());
1,444,264
private void gatherAllProvides(Node root) {<NEW_LINE>if (!processClosurePrimitives) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node externs = root.getFirstChild();<NEW_LINE>Node js = root.getSecondChild();<NEW_LINE>Map<String, ProvidedName> providedNames = new ProcessClosureProvidesAndRequires(compiler, /* preserveGoogProv...
name.getFirstProvideCall(), name);
532,763
public int onStartCommand(Intent intent, int flags, int startId) {<NEW_LINE>// Update widget<NEW_LINE>WidgetHelper.updateWidgets(getApplicationContext());<NEW_LINE>CharSequence tickerText = getText(R.string.notification_ticker);<NEW_LINE>Intent stopRecordingIntent = new Intent();<NEW_LINE>stopRecordingIntent.setAction(...
(R.string.notification_title));
1,511,654
public Block parseBlock(RawBlock rawBlock) throws BlockHashNotConnectingException, BlockHeightNotConnectingException {<NEW_LINE>long startTs = System.currentTimeMillis();<NEW_LINE>int blockHeight = rawBlock.getHeight();<NEW_LINE>log.trace("Parse block at height={} ", blockHeight);<NEW_LINE>validateIfBlockIsConnecting(r...
DevEnv.logErrorAndThrowIfDevMode("Block was already added. rawBlock=" + rawBlock);
1,507,610
public void end(InterpretationContext ec, String tagName) {<NEW_LINE>// pop the action data object pushed in isApplicable() method call<NEW_LINE>// we assume that each this begin<NEW_LINE>IADataForComplexProperty actionData = (IADataForComplexProperty) actionDataStack.pop();<NEW_LINE>if (actionData.inError) {<NEW_LINE>...
Object nestedComplexProperty = actionData.getNestedComplexProperty();
298,395
private float[][] swapResults(MatrixLocations srcData, MatrixLocations dstData, float[] times, float[] distances, float[] weights) {<NEW_LINE>boolean hasTimes = times != null;<NEW_LINE>boolean hasDistances = distances != null;<NEW_LINE>boolean hasWeights = weights != null;<NEW_LINE>float[] newTimes = new float[hasTimes...
hasDistances ? distances.length : 0];
934,752
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>youTubePlayerView = findViewById(R.id.youtube_player_view);<NEW_LINE>mediaRouteButtonRoot = findViewById(R.id.media_route_button_root);<NEW_LINE>chromeCastControlsRoot = findViewById(R.id.chromecas...
setContentView(R.layout.activity_chromecast_example);
1,186,121
public static GetExecutionDetailsOfPredictiveJobResponse unmarshall(GetExecutionDetailsOfPredictiveJobResponse getExecutionDetailsOfPredictiveJobResponse, UnmarshallerContext context) {<NEW_LINE>getExecutionDetailsOfPredictiveJobResponse.setRequestId(context.stringValue("GetExecutionDetailsOfPredictiveJobResponse.Reque...
(context.booleanValue("GetExecutionDetailsOfPredictiveJobResponse.Success"));
1,418,928
private void handleUpsert(ImmutableSegmentImpl immutableSegment) {<NEW_LINE>String segmentName = immutableSegment.getSegmentName();<NEW_LINE>int partitionGroupId = SegmentUtils.getRealtimeSegmentPartitionId(segmentName, _tableNameWithType, _helixManager, _primaryKeyColumns.get(0));<NEW_LINE>PartitionUpsertMetadataManag...
partitionUpsertMetadataManager = _tableUpsertMetadataManager.getOrCreatePartitionManager(partitionGroupId);
1,278,948
public void removeAccessToken(String tokenValue) {<NEW_LINE>byte[] accessKey = serializeKey(ACCESS + tokenValue);<NEW_LINE>byte[] authKey = serializeKey(AUTH + tokenValue);<NEW_LINE>byte[] accessToRefreshKey = serializeKey(ACCESS_TO_REFRESH + tokenValue);<NEW_LINE>RedisConnection conn = getConnection();<NEW_LINE>try {<...
getOAuth2Request().getClientId());
1,027,521
public void marshall(ContinuousExportDescription continuousExportDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (continuousExportDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(con...
continuousExportDescription.getStartTime(), STARTTIME_BINDING);
695,380
public synchronized WebRtcServiceState terminate(@NonNull WebRtcServiceState currentState, @Nullable RemotePeer remotePeer) {<NEW_LINE>Log.i(tag, "terminate():");<NEW_LINE>RemotePeer activePeer = currentState<MASK><NEW_LINE>if (activePeer == null && remotePeer == null) {<NEW_LINE>Log.i(tag, "skipping with no active pee...
.getCallInfoState().getActivePeer();
194,505
private void animate(int keyFrame) {<NEW_LINE>// get the next position from the mission data<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>Point position = (Point) datum.get("POSITION");<NEW_LINE>// update the HUD<NEW_LINE>runOnUiThread(() -> {<NEW_LINE>mCurrAltitude.setText(String.format("%.2f", position.getZ()));<NEW_...
datum = mMissionData.get(keyFrame);
962,122
public void process(@Element String input, MultiOutputReceiver output) {<NEW_LINE>FailsafeElement<String, String> element = FailsafeElement.of(input, input);<NEW_LINE>// Early Return if maxRetries is set to 0<NEW_LINE>if (maxRetries == 0) {<NEW_LINE>output.get(RETRYABLE_ERRORS).output(element);<NEW_LINE>return;<NEW_LIN...
get("_metadata_error").asText();
342,224
protected boolean processPluginStream(SFPluginDetailsImpl details, InputStream is) {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try {<NEW_LINE>properties.load(is);<NEW_LINE><MASK><NEW_LINE>String download_url = properties.getProperty(pid + ".dl_link", "");<NEW_LINE>if (download_url.length() == 0) {<NEW...
String pid = details.getId();
1,020,613
public boolean startKubernetesCluster(long kubernetesClusterId, boolean onCreate) throws CloudRuntimeException {<NEW_LINE>if (!KubernetesServiceEnabled.value()) {<NEW_LINE>logAndThrow(Level.ERROR, "Kubernetes Service plugin is disabled");<NEW_LINE>}<NEW_LINE>final KubernetesClusterVO kubernetesCluster = kubernetesClust...
[] keys = getServiceUserKeys(owner);
539,375
public RuleResult execute(final Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========IAMCertificateExpiryRule started=========");<NEW_LINE>Annotation annotation = null;<NEW_LINE>Date validTo = null;<NEW_LINE>String expiredDate = resourceAttributes.get("expirydate");<NE...
put(PacmanRuleConstants.SEVERITY, severity);
1,553,485
public static void splitDatafiles(Text midRow, double splitRatio, Map<TabletFile, FileUtil.FileInfo> firstAndLastRows, SortedMap<StoredTabletFile, DataFileValue> datafiles, SortedMap<StoredTabletFile, DataFileValue> lowDatafileSizes, SortedMap<StoredTabletFile, DataFileValue> highDatafileSizes, List<StoredTabletFile> h...
.getNumEntries() * splitRatio));
861,454
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (fakePlayer == null || !tracer.isChecked())<NEW_LINE>return;<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glEnable(GL11.GL_LINE_SMOOT...
GL11.glEnable(GL11.GL_DEPTH_TEST);
1,515,873
private void addBlocks(Marker marker) {<NEW_LINE>// Add block around the template section so that<NEW_LINE>// START<NEW_LINE>// BODY<NEW_LINE>// END<NEW_LINE>// is transformed to:<NEW_LINE>// BLOCK (synthetic)<NEW_LINE>// START<NEW_LINE>// BLOCK (synthetic)<NEW_LINE>// BODY<NEW_LINE>// END<NEW_LINE>// This prevents the...
).srcref(marker.startMarker);
1,765,468
public void reserve(NicProfile nic, Network config, VirtualMachineProfile vm, DeployDestination dest, ReservationContext context) throws InsufficientVirtualNetworkCapacityException, InsufficientAddressCapacityException {<NEW_LINE>assert nic.getTrafficType() == TrafficType.Control;<NEW_LINE>// we have to get management/...
config, vm, dest, context);
1,043,372
public void scroll(Coordinates where, int xOffset, int yOffset) {<NEW_LINE>long downTime = SystemClock.uptimeMillis();<NEW_LINE>List<MotionEvent> motionEvents = new ArrayList<MotionEvent>();<NEW_LINE>Point origin = where.getLocationOnScreen();<NEW_LINE>Point destination = new Point(origin.x + xOffset, origin.y + yOffse...
.DECELERATION_STEPS, Scroll.TIME_BETWEEN_EVENTS));
392,033
protected <T> CompletableFuture<ResponseMessage<T>> executeAsync(HttpRequest request, Object obj, TypeReference<T> ref) {<NEW_LINE>addAuthToReqIfKeyPresent(request);<NEW_LINE>try {<NEW_LINE>String jsonBody = objectMapper.writeValueAsString(obj);<NEW_LINE>final AsyncRequestProducer requestProducer = new BasicRequestProd...
log.error("Could not serialize to json object - {}", obj);
649,213
/*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>public void add(ResponseList<twitter4j.Status> statuses, AddUserCallback addUserCallback) {<NEW_LINE>TwitterStatus firstItem = size() > 0 ? get(0) : null;<NEW_LINE>int addCount = 0;<NEW_LINE>boolean stillMore = true;<NEW_LINE>TwitterStatus lastAddedStatus = null;<NEW_LINE>mGetNewStatu...
addUser(retweetedStatus.getUser());
194,466
public void initAccessibility() {<NEW_LINE>this.getAccessibleContext().setAccessibleDescription(Util.THIS.getString("ACSD_TreeEntityDeclCustomizer"));<NEW_LINE>nameField.getAccessibleContext().setAccessibleDescription(Util.THIS.getString("ACSD_nameField2"));<NEW_LINE>typeCombo.getAccessibleContext().setAccessibleDescri...
.THIS.getString("ACSD_externPublicField"));
1,670,474
private String toStringRepresentation(boolean withPassword) {<NEW_LINE>MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper("LedgerMetadata");<NEW_LINE>helper.add("formatVersion", metadataFormatVersion).add("ensembleSize", ensembleSize).add("writeQuorumSize", writeQuorumSize).add("ackQuorumSize", ackQuorumSiz...
helper.add("password", "OMITTED");
512,956
private void processGOT16Relocation(MIPS_ElfRelocationContext mipsRelocationContext, MIPS_DeferredRelocation got16reloc, int lo16Addend) {<NEW_LINE>long addend;<NEW_LINE>if (mipsRelocationContext.extractAddend()) {<NEW_LINE>addend = ((got16reloc.oldValue & 0xffff) << 16) + lo16Addend;<NEW_LINE>} else {<NEW_LINE>addend ...
symbolName, mipsRelocationContext.getLog());
272,086
public Affine3D deriveWithConcatenation(double Txx, double Tyx, double Txy, double Tyy, double Txt, double Tyt) {<NEW_LINE>double rxx = (mxx * Txx + mxy * Tyx);<NEW_LINE>double rxy = (<MASK><NEW_LINE>// double rxz = (mxz /* * 1.0 + mxx * 0.0 + mxy * 0.0 + mxt * 0.0 */);<NEW_LINE>double rxt = (mxx * Txt + mxy * Tyt + mx...
mxx * Txy + mxy * Tyy);
882,445
static void store8(byte[] out, int offset, long in) {<NEW_LINE>out[offset + 0] = (byte) ((in >> 0x00) & 0xFF);<NEW_LINE>out[offset + 1] = (byte) ((in >> 0x08) & 0xFF);<NEW_LINE>out[offset + 2] = (byte) ((in >> 0x10) & 0xFF);<NEW_LINE>out[offset + 3] = (byte) ((in >> 0x18) & 0xFF);<NEW_LINE>out[offset + 4] = (byte) ((in...
in >> 0x30) & 0xFF);
1,818,134
public VIF createVif(final Connection conn, final String vmName, final VM vm, final VirtualMachineTO vmSpec, final NicTO nic) throws XmlRpcException, XenAPIException {<NEW_LINE>assert nic.getUuid() != null : "Nic should have a uuid value";<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug(<MASK><NEW_LIN...
"Creating VIF for " + vmName + " on nic " + nic);
85,764
private void loadNode1170() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ProgramStateMachineType_LastTransition_Id, new QualifiedName(0, "Id"), new LocalizedText("en", "Id"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Ident...
this.nodeManager.addNode(node);
1,105,860
protected void registerFrontAppServlet(ServletContext servletContext) {<NEW_LINE>boolean hasFrontApp = false;<NEW_LINE>try {<NEW_LINE>hasFrontApp = servletContext.getResource("/" + FRONT_CONTEXT_NAME) != null;<NEW_LINE>} catch (MalformedURLException e) {<NEW_LINE>// Do nothing<NEW_LINE>}<NEW_LINE>if (hasFrontApp) {<NEW...
) ? path : contextPath + path);
1,346,994
private void loadNode165() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsArrayType_SessionDiagnostics_ClientConnectionTime, new QualifiedName(0, "ClientConnectionTime"), new LocalizedText("en", "ClientConnectionTime"), LocalizedText.NULL_VALUE, UInte...
.expanded(), true));
1,495,194
public boolean createQuery(final QueryPredicate predicate, final MemoryQuery query, final boolean isFirst) {<NEW_LINE>final boolean isString = predicate.getType().equals(String.class);<NEW_LINE>final Object value = getReadValue(predicate.getValue());<NEW_LINE>final String name = predicate.getName();<NEW_LINE>checkOccur...
new ValuePredicate(name, value));
641,657
public double transitionRegression(Person person, long time) {<NEW_LINE>GrowthChart bmiChart = growthChart.get(GrowthChart.ChartType.BMI);<NEW_LINE>PediatricGrowthTrajectory pgt = (PediatricGrowthTrajectory) person.attributes.get(Person.GROWTH_TRAJECTORY);<NEW_LINE>long start = (long) person.attributes.get(WEIGHT_MANAG...
= (startAgeInMonths / 12) + lossAndRegressionTotalYears;
1,656,724
public void marshall(ProvisionedProductAttribute provisionedProductAttribute, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (provisionedProductAttribute == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(pro...
e.getMessage(), e);
637,508
private static CTBackground createBackground(String rId) {<NEW_LINE>org.docx4j.wml.ObjectFactory wmlObjectFactory = new org.docx4j.wml.ObjectFactory();<NEW_LINE>CTBackground background = wmlObjectFactory.createCTBackground();<NEW_LINE>background.setColor("FFFFFF");<NEW_LINE>org.docx4j.vml.ObjectFactory vmlObjectFactory...
getAnyAndAny().add(backgroundWrapped);
1,627,046
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jface.dialogs.TitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite dialogArea = (Composite) super.createDialogArea(parent);<NEW_LINE>//...
, true).create());
974,096
private void workerDumpInfoOutput() {<NEW_LINE>RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();<NEW_LINE>String pid = runtimeMXBean.getName().split("@")[0];<NEW_LINE>LOG.debug("worker pid is " + pid);<NEW_LINE>String dumpOutFile = JStormUtils.getLogFileName();<NEW_LINE>if (dumpOutFile == null) {<NEW_...
File file = new File(dumpOutFile);
1,300,411
public int fill(Supplier<E> s, int limit) {<NEW_LINE>if (null == s)<NEW_LINE>throw new IllegalArgumentException("supplier is null");<NEW_LINE>if (limit < 0)<NEW_LINE>throw new IllegalArgumentException("limit is negative:" + limit);<NEW_LINE>if (limit == 0)<NEW_LINE>return 0;<NEW_LINE>LinkedQueueNode<E> tail = newNode(s...
<E> oldPNode = lpProducerNode();
621,856
public void createContents(Composite dialogArea) {<NEW_LINE>List<Disposable> disposables = new ArrayList<>();<NEW_LINE>dialogArea.addDisposeListener(de -> {<NEW_LINE>for (Disposable d : disposables) {<NEW_LINE>d.dispose();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>// Favourites pulldown composite<NEW_LINE>Composite sbComposite ...
= new GridLayout(2, false);
1,075,096
public void cancelFileUpload(String uploadId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'uploadId' is set<NEW_LINE>if (uploadId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'uploadId' when calling can...
= new String[] { "oauth2" };
1,661,026
private void addBackup() {<NEW_LINE>// move the current log file to the newly formatted backup name<NEW_LINE>String newname = this.fileinfo + this.myFormat.format(new Date(HttpDispatcher.getApproxTime())) + this.extensioninfo;<NEW_LINE>File newFile = new File(newname);<NEW_LINE>renameFile(getFile(), newFile);<NEW_LINE>...
this.backups.addFirst(newFile);
985,083
public ShortestPathDeltaStepping compute(long startNode) {<NEW_LINE>// reset<NEW_LINE>for (int i = 0; i < nodeCount; i++) {<NEW_LINE>distance.<MASK><NEW_LINE>}<NEW_LINE>buckets.reset();<NEW_LINE>// basically assign start node to bucket 0<NEW_LINE>relax(graph.toMappedNodeId(startNode), 0);<NEW_LINE>// as long as the buc...
set(i, Integer.MAX_VALUE);
1,832,984
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Player opponent = game.getPlayer(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (controller == null || opponent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Name a ...
controller.getHand(), game);
445,930
public void init() {<NEW_LINE>Map<String, String> metadata = nacosDiscoveryProperties.getMetadata();<NEW_LINE>Environment env = context.getEnvironment();<NEW_LINE>String endpointBasePath = env.getProperty(MANAGEMENT_ENDPOINT_BASE_PATH);<NEW_LINE>if (StringUtils.hasLength(endpointBasePath)) {<NEW_LINE>metadata.put(MANAG...
address = env.getProperty("management.server.address");
789,696
public void marshall(HlsAkamaiSettings hlsAkamaiSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (hlsAkamaiSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(hlsAkamaiSettings.getConnectionRe...
hlsAkamaiSettings.getSalt(), SALT_BINDING);
1,120,863
public GraphExtension init(GraphHopper graphhopper) throws Exception {<NEW_LINE>if (storage != null)<NEW_LINE>throw new Exception("GraphStorageBuilder has been already initialized.");<NEW_LINE>if (parameters.containsKey(ENABLED))<NEW_LINE>enabled = Boolean.parseBoolean(parameters.get(ENABLED));<NEW_LINE>if (enabled) {<...
logMissingConfigParameter(HereTrafficGraphStorageBuilder.class, PARAM_KEY_REFERENCE_PATTERN);
1,476,477
private void init() {<NEW_LINE>setUndecorated(true);<NEW_LINE>try {<NEW_LINE>if (GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isWindowTranslucencySupported(WindowTranslucency.TRANSLUCENT)) {<NEW_LINE>if (!Config.getInstance().isNoTransparency())<NEW_LINE>setOpacity(0.85f);<NEW_LINE>}<NEW_L...
panel.setBackground(Color.DARK_GRAY);
1,517,483
private void validateAllInsertsMatchTheirConditionalUrls(Map<IIdType, DaoMethodOutcome> theIdToPersistedOutcome, Map<String, IIdType> conditionalUrlToIdMap, RequestDetails theRequest) {<NEW_LINE>conditionalUrlToIdMap.entrySet().stream().filter(entry -> entry.getKey() != null).forEach(entry -> {<NEW_LINE><MASK><NEW_LINE...
String matchUrl = entry.getKey();
1,505,415
public Request<CreateInstanceProfileRequest> marshall(CreateInstanceProfileRequest createInstanceProfileRequest) {<NEW_LINE>if (createInstanceProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateInstanceProfileRequest> request = n...
(tagsListValue.getKey()));
639,796
public Object jmeClone() {<NEW_LINE>VehicleControl control = new VehicleControl(collisionShape, mass);<NEW_LINE>control.setAngularFactor(getAngularFactor());<NEW_LINE>control.setAngularSleepingThreshold(getAngularSleepingThreshold());<NEW_LINE>control.setAngularVelocity(getAngularVelocity());<NEW_LINE>control.setCcdMot...
setSuspensionStiffness(wheel.getSuspensionStiffness());
1,361,953
final DisassociateHealthCheckResult executeDisassociateHealthCheck(DisassociateHealthCheckRequest disassociateHealthCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateHealthCheckRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
937,951
private // region Parameters<NEW_LINE>void applyAllParameters(@NonNull CaptureRequest.Builder builder, @Nullable CaptureRequest.Builder oldBuilder) {<NEW_LINE>LOG.i("applyAllParameters:", "called for tag", builder.<MASK><NEW_LINE>builder.set(CaptureRequest.CONTROL_MODE, CaptureRequest.CONTROL_MODE_AUTO);<NEW_LINE>apply...
build().getTag());
963,780
final DeleteAccessPolicyResult executeDeleteAccessPolicy(DeleteAccessPolicyRequest deleteAccessPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAccessPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(deleteAccessPolicyRequest));
558,112
public GetDiscoveredResourceCountsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDiscoveredResourceCountsResult getDiscoveredResourceCountsResult = new GetDiscoveredResourceCountsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
class).unmarshall(context));
848,870
protected void paintBackground() {<NEW_LINE>super.paintBackground();<NEW_LINE>if (paintState == EdgeWidget.DISABLED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DependencyGraphScene scene = getDependencyGraphScene();<NEW_LINE><MASK><NEW_LINE>Rectangle bounds = getClientArea();<NEW_LINE>if (node.isRoot()) {<NEW_LINE>paintBot...
Graphics2D g = scene.getGraphics();
1,535,060
public static AbstractPointer BDWTOKEN(ByteDataWrapperPointer ptr, U8Pointer[] cacheHeader) throws CorruptDataException {<NEW_LINE>PointerPointer tokenOffset = ptr.tokenOffsetEA();<NEW_LINE>if (null == cacheHeader) {<NEW_LINE>I32 tokenOffsetI32 = I32Pointer.cast(tokenOffset).at(0);<NEW_LINE>if (!tokenOffsetI32.isZero()...
j9shrOffset = J9ShrOffsetPointer.cast(tokenOffset);
1,520,181
private boolean createPage(StackPane pane, int index) {<NEW_LINE>if (pagination.getPageFactory() != null && pane.getChildren().isEmpty()) {<NEW_LINE>Node content = pagination.<MASK><NEW_LINE>// If the content is null we don't want to switch pages.<NEW_LINE>if (content != null) {<NEW_LINE>pane.getChildren().setAll(conte...
getPageFactory().call(index);
1,610,578
final ListContainersResult executeListContainers(ListContainersRequest listContainersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listContainersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,307,968
public EvalQueryQuality evaluate(String taskId, SearchHit[] hits, List<RatedDocument> ratedDocs) {<NEW_LINE>List<RatedSearchHit> ratedSearchHits = joinHitsWithRatings(hits, ratedDocs);<NEW_LINE>int relevantRetrieved = 0;<NEW_LINE>for (RatedSearchHit hit : ratedSearchHits) {<NEW_LINE>OptionalInt rating = hit.getRating()...
= new EvalQueryQuality(taskId, recall);
968,773
public coprocess.CoprocessSessionState.SessionState buildPartial() {<NEW_LINE>coprocess.CoprocessSessionState.SessionState result = new coprocess.CoprocessSessionState.SessionState(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>result.lastCheck_ = lastCheck_;<NEW_LINE>result....
.jwtData_ = jwtDataBuilder_.build();
1,399,854
public <A> WeightedDiscreteUncertainObject newFeatureVector(Random rand, A array, NumberArrayAdapter<?, A> adapter) {<NEW_LINE>UncertainObject uo = inner.<MASK><NEW_LINE>final int distributionSize = rand.nextInt((maxQuant - minQuant) + 1) + minQuant;<NEW_LINE>DoubleVector[] samples = new DoubleVector[distributionSize];...
newFeatureVector(rand, array, adapter);
729,955
void renderMarker(Canvas canvas, Paint paint, float opacity, RNSVGMarkerPosition position, float strokeWidth) {<NEW_LINE>int count = saveAndSetupCanvas(canvas, mCTM);<NEW_LINE>markerTransform.reset();<NEW_LINE>Point origin = position.origin;<NEW_LINE>markerTransform.setTranslate((float) origin.x * mScale, (float) origi...
markerTransform.preScale(strokeWidth, strokeWidth);
1,037,343
public void save() {<NEW_LINE>FileOutputStream fw = null;<NEW_LINE>try {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (url == null)<NEW_LINE>throw new NullPointerException("url is null");<NEW_LINE>sb.append("type: " + getType() + "\n");<NEW_LINE>sb.append("url: " + url + "\n");<NEW_LINE>sb.append("size:...
HttpHeader header = headerIterator.next();
610,862
public CancelSpotInstanceRequestsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CancelSpotInstanceRequestsResult cancelSpotInstanceRequestsResult = new CancelSpotInstanceRequestsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1...
().unmarshall(context));
1,687,263
public static void publishPost(Activity activity, final PostModel post, SiteModel site, Dispatcher dispatcher, @Nullable OnPublishingCallback onPublishingCallback) {<NEW_LINE>// If the post is empty, don't publish<NEW_LINE>if (!PostUtils.isPublishable(post)) {<NEW_LINE>String message = activity.getString(post.isPage() ...
error_publish_empty_page : R.string.error_publish_empty_post);
1,618,682
public AddOnLibrary importFromFile(File file) throws IOException {<NEW_LINE>var diiBuilder = AddOnLibraryDto.newBuilder();<NEW_LINE>try (var zip = new ZipFile(file)) {<NEW_LINE>ZipEntry entry = zip.getEntry(LIBRARY_INFO_FILE);<NEW_LINE>if (entry == null) {<NEW_LINE>throw new IOException(I18N.getText("library.error.addO...
, file.getPath()));
658,005
public void process(WordprocessingMLPackage wordMLPackage) throws Docx4JException {<NEW_LINE>commentRangeStart = new HashMap<String, String>();<NEW_LINE>commentRangeEnd = new HashMap<String, String>();<NEW_LINE>commentReference = new HashMap<String, String>();<NEW_LINE>footnoteReference = new HashMap<String, String>();...
) rp.getPart(r));
1,683,998
private static List<String> readMetadata(Context context) throws IOException {<NEW_LINE>File resourcesDirectory = new File("/data/local/tmp/exopackage/" + context.getPackageName() + "/resources");<NEW_LINE>BufferedReader br = null;<NEW_LINE>try {<NEW_LINE>br = new BufferedReader(new FileReader(new File(resourcesDirecto...
RuntimeException("resources don't exist... (" + line + ")");
435,058
public void read(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(2);<NEW_LINE>if (incoming.get(0))...
thrift.protocol.TType.STRING);
1,022,692
public Sql[] generateSql(final AddDefaultValueStatement statement, final Database database, final SqlGeneratorChain sqlGeneratorChain) {<NEW_LINE>if (!(statement.getDefaultValue() instanceof SequenceNextValueFunction)) {<NEW_LINE>return super.generateSql(statement, database, sqlGeneratorChain);<NEW_LINE>}<NEW_LINE>List...
String sequenceName = sequenceFunction.getValue();
883,025
private static List<Step> createCucumberSteps(io.cucumber.messages.types.Pickle pickle, GherkinDialect dialect, CucumberQuery cucumberQuery) {<NEW_LINE>List<Step> list = new ArrayList<>();<NEW_LINE>String previousGivenWhenThen = dialect.getGivenKeywords().stream().filter(s -> !StepType.isAstrix(s)).findFirst().orElseTh...
gherkinStep = cucumberQuery.getGherkinStep(gherkinStepId);
1,011,419
public DateTime parseDateTime(String text) {<NEW_LINE>InternalParser parser = requireParser();<NEW_LINE>Chronology chrono = selectChronology(null);<NEW_LINE>DateTimeParserBucket bucket = new DateTimeParserBucket(0, chrono, iLocale, iPivotYear, iDefaultYear);<NEW_LINE>int newPos = parser.parseInto(bucket, text, 0);<NEW_...
dt = dt.withZone(iZone);
1,175,468
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see de.miethxml.kabeja.parser.entities.DXFEntityHandler#parseGroup(int,<NEW_LINE>* de.miethxml.kabeja.parser.DXFValue)<NEW_LINE>*/<NEW_LINE>public void parseGroup(int groupCode, DXFValue value) {<NEW_LINE>switch(groupCode) {<NEW_LINE>// point 1<NEW_LINE>case GROUP...
setX(value.getDoubleValue());
507,691
public UnifyResult apply(UnifyRuleCall call) {<NEW_LINE>// Child of projectTarget is equivalent to child of filterQuery.<NEW_LINE>try {<NEW_LINE>// TODO: make sure that constants are ok<NEW_LINE>final MutableProject target = (MutableProject) call.target;<NEW_LINE><MASK><NEW_LINE>final RexNode newCondition;<NEW_LINE>fin...
final RexShuttle shuttle = getRexShuttle(target);
1,184,234
public void onMessageReceived(final RemoteMessage remoteMessage) {<NEW_LINE>super.onMessageReceived(remoteMessage);<NEW_LINE>final Boolean isBrazeMessage = this.remotePushClientType.handleRemoteMessages(this, remoteMessage);<NEW_LINE>if (!isBrazeMessage) {<NEW_LINE>final String senderId = getString(R.string.gcm_default...
> data = remoteMessage.getData();
215,303
public void incLiveness(final String userId, final String field) {<NEW_LINE>Stopwatchs.start("Inc liveness");<NEW_LINE>final String date = DateFormatUtils.format(System.currentTimeMillis(), "yyyyMMdd");<NEW_LINE>try {<NEW_LINE>JSONObject liveness = livenessRepository.getByUserAndDate(userId, date);<NEW_LINE>if (null ==...
"] field [" + field + "] failed", e);
467,708
synchronized static Map<String, Throwable> loadAllLibraries() {<NEW_LINE>final String[] toLoad = { "avutil", "swresample", "swscale", "avcodec", "avformat", "avfilter", "avdevice", "faad", "ft2", "png", "jpegdroid", "mad", <MASK><NEW_LINE>HashMap<String, Throwable> exceptions = new HashMap<String, Throwable>();<NEW_LIN...
"openjpeg", "z", "gpac", "mp4box" };
403,160
private <T> Mono<T> updateControllerAndRetry(RxDocumentServiceRequest request, Mono<T> nextRequestMono) {<NEW_LINE>return this.shouldUpdateRequestController(request).flatMap(shouldUpdate -> {<NEW_LINE>if (shouldUpdate) {<NEW_LINE>this.refreshRequestController();<NEW_LINE>return this.resolveRequestController().flatMap(u...
-> this.handleException(throwable));
837,278
public GeoComplexPolygon createGeoComplexPolygon(final PlanetModel planetModel, final List<List<GeoPoint>> pointsList, final GeoPoint testPoint) {<NEW_LINE>// Is it inside or outside?<NEW_LINE>final Boolean isTestPointInside = isInsidePolygon(testPoint, points);<NEW_LINE>if (isTestPointInside != null) {<NEW_LINE>try {<...
testPoint.z), !isTestPointInside);
635,056
public ExportTaskExecutionInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportTaskExecutionInfo exportTaskExecutionInfo = new ExportTaskExecutionInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
36,755
// testargumentContainsExceptionInTwoCallbackClasses<NEW_LINE>public void testargumentContainsExceptionInTwoCallbackClasses(String BASE_URL, StringBuilder sb) throws Exception {<NEW_LINE>Client client = ClientBuilder.newClient();<NEW_LINE>invokeClear(client, BASE_URL);<NEW_LINE>invokeReset(client, BASE_URL);<NEW_LINE>F...
Response response3 = exception2.get();
1,500,351
private ImmutableList<String> argumentsInternal(@Nullable ArtifactExpander artifactExpander) throws CommandLineExpansionException, InterruptedException {<NEW_LINE>ImmutableList.Builder<String> builder = ImmutableList.builder();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < count; ) {<NEW_LINE>Object arg = arguments.get(...
int count = arguments.size();
1,830,095
public static void main(String[] args) {<NEW_LINE><MASK><NEW_LINE>TsunamiConfig tsunamiConfig = loadConfig();<NEW_LINE>try (ScanResult scanResult = new ClassGraph().enableAllInfo().blacklistPackages("com.google.tsunami.plugin.testing").scan()) {<NEW_LINE>logger.atInfo().log("Full classpath scan took %s", stopwatch);<NE...
Stopwatch stopwatch = Stopwatch.createStarted();
685,058
public static Constructor<?> findConstructorBestMatch(Class<?> clazz, Class<?>... parameterTypes) {<NEW_LINE>String fullConstructorName = clazz.getName() + getParametersString(parameterTypes) + "#bestmatch";<NEW_LINE>if (constructorCache.containsKey(fullConstructorName)) {<NEW_LINE>Constructor<?> constructor = construc...
NoSuchMethodError e = new NoSuchMethodError(fullConstructorName);
1,470,530
private void headerClicked(TableColumn column, MouseEvent event) {<NEW_LINE>TableViewSelectionModel<ObservableList<SpreadsheetCell>> sm = gridViewSkin.handle.getGridView().getSelectionModel();<NEW_LINE>int lastRow = gridViewSkin.getItemCount() - 1;<NEW_LINE>int indexColumn = column.getTableView().getColumns().indexOf(c...
indexColumn, focusedPosition.getColumn());
1,583,530
private static void appendWithIndent(TreeElement parent, TreeChild child) throws ReadOnlyException {<NEW_LINE>TreeParentNode doc = parent;<NEW_LINE>// will get <filesystem> then TreeDocument then null<NEW_LINE>int depth = -2;<NEW_LINE>while (doc != null) {<NEW_LINE>doc = ((TreeChild) doc).getParentNode();<NEW_LINE>dept...
parent.insertBefore(child, position);
533,165
private static List<String> separateAdditionsDeletions(String input) {<NEW_LINE>StringBuilder dels = new StringBuilder();<NEW_LINE>StringBuilder adds = new StringBuilder();<NEW_LINE>for (String str : input.split("\n")) {<NEW_LINE>if (str.length() > 0) {<NEW_LINE>if (str.charAt(0) == '-') {<NEW_LINE>dels.append(' ').app...
(str).append("\n");
1,576,528
public <V1, V2, V3, V4, V5> Promise<MultipleResultsN<V1, V2, V3, V4, V5>, OneReject<Throwable>, MasterProgress> when(Callable<V1> callableV1, Callable<V2> callableV2, Callable<V3> callableV3, Callable<V4> callableV4, Callable<V5> callableV5, Callable<?> callable6, Callable<?>... callables) {<NEW_LINE>assertNotNull(call...
= new Promise[callables.length];
1,159,829
static String nameDecode(String value) throws BadLdapGrammarException {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder decoded = new StringBuilder(value.length());<NEW_LINE>int i = 0;<NEW_LINE>while (i < value.length()) {<NEW_LINE>char currentChar = value.charAt(i);<NEW_LINE>if (c...
.parseInt(hexString, HEX));
585,731
public static PullActionDataResponse unmarshall(PullActionDataResponse pullActionDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>pullActionDataResponse.setRequestId(_ctx.stringValue("PullActionDataResponse.RequestId"));<NEW_LINE>pullActionDataResponse.setErrorCode(_ctx.stringValue("PullActionDataResponse.ErrorCode")...
("PullActionDataResponse.Actions[" + i + "].StoreId"));
1,160,082
private void initialize(Snapshot snapshot) {<NEW_LINE>// TODO: if some property cannot be loaded for current snapshot version, FAIL initializing the snapshot!<NEW_LINE>Storage storage = snapshot.getStorage();<NEW_LINE>String version = getProperty(storage, SNAPSHOT_VERSION);<NEW_LINE>chartCache = Integer.parseInt(getPro...
(getProperty(storage, PROP_SHARED_UNLOADED));
960,986
private void invokePeriodicOperations(long currentWorldTime) {<NEW_LINE>List<EntityRef> operationsToInvoke = new LinkedList<>();<NEW_LINE>Iterator<Long> scheduledOperationsIterator = periodicOperationsSortedByTime.keySet().iterator();<NEW_LINE>long processedTime;<NEW_LINE>while (scheduledOperationsIterator.hasNext()) {...
error("ERROR: This entity is missing a DelayedActionComponent: {}. " + "So skipping delayed actions for this entity", periodicEntity);
391,553
// Flood fill to count the number of components in an image<NEW_LINE>private int floodFill(int[][] image) {<NEW_LINE>Graph graph = new Graph(image.length * image[0].length);<NEW_LINE>int[] neighborRows = { -1, 1, 0, 0 };<NEW_LINE>int[] neighborColumns = { 0, 0, -1, 1 };<NEW_LINE>for (int row = 0; row < image.length; ro...
depthFirstSearch(graph, vertex, visited);