idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
493,794
private static void decode20(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>readLELongs(in, tmp, 0, 40);<NEW_LINE>shiftLongs(tmp, 40, longs, 0, 12, MASK32_20);<NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 40; iter < 8; ++iter, tmpIdx += 5, longsIdx += 3) {<NEW_LINE>long l0 = (tmp[tmpIdx + 0...
longs[longsIdx + 2] = l2;
1,779,880
private int execute(List<?> requests, int maxRequestsPerBulk) throws SQLException {<NEW_LINE>int result = 0;<NEW_LINE>BulkRequestBuilder bulkReq = client.prepareBulk();<NEW_LINE>for (Object req : requests) {<NEW_LINE>if (req instanceof IndexRequest)<NEW_LINE>bulkReq<MASK><NEW_LINE>else if (req instanceof UpdateRequest)...
.add((IndexRequest) req);
607,137
protected void postFormLoginProcess(HttpServletRequest req, HttpServletResponse res, Subject subject) throws IOException, RuntimeException {<NEW_LINE>String storedReq = null;<NEW_LINE>subjectManager.setCallerSubject(subject);<NEW_LINE>subjectManager.setInvocationSubject(subject);<NEW_LINE>boolean isPostLoginProcessDone...
storedReq = getStoredReq(req, referrerURLHandler);
687,511
private void extractLibs(Context ctx, PrintStream out, File path, boolean overwrite) {<NEW_LINE>if (path == null) {<NEW_LINE>// no path was specified so derive it from the startup parameters<NEW_LINE>boolean useCurrentDir = !DDRInteractive.getPath().contains(File.separator);<NEW_LINE>if (useCurrentDir) {<NEW_LINE>Strin...
path, dir).getCanonicalFile();
262,191
protected void match() throws Throwable {<NEW_LINE>if (!jo1.queue().isEmpty() && !jo2.queue().isEmpty() && !jo3.queue().isEmpty() && !jo4.queue().isEmpty() && !jo5.queue().isEmpty() && !jo6.queue().isEmpty()) {<NEW_LINE>Notification<T1> n1 = jo1.queue().peek();<NEW_LINE>Notification<T2> n2 = jo2.queue().peek();<NEW_LIN...
.queue().peek();
1,222,399
public static DescribeUserUsageDetailDataExportTaskResponse unmarshall(DescribeUserUsageDetailDataExportTaskResponse describeUserUsageDetailDataExportTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserUsageDetailDataExportTaskResponse.setRequestId(_ctx.stringValue("DescribeUserUsageDetailDataExportTaskRespo...
("DescribeUserUsageDetailDataExportTaskResponse.UsageDataPerPage.Data[" + i + "].TaskName"));
1,689,636
public int calcParallelism(FragmentProperties properties) {<NEW_LINE>if (lowConcurrencyQuery) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>ParamManager paramManager = session.getClientContext().getParamManager();<NEW_LINE>int parallelism = -1;<NEW_LINE>if (paramManager.getBoolean(ConnectionParams.MPP_PARALLELISM_AUTO_ENABL...
, ExecUtils.getMppMinParallelism(paramManager));
433,941
ImmutableList<String> stageReports(YearMonth yearMonth, String subdir, ReportType reportType) throws Exception {<NEW_LINE>QueryBuilder queryBuilder = (reportType == ReportType.ACTIVITY) ? activityQueryBuilder : transactionsQueryBuilder;<NEW_LINE>if (reportType == ReportType.ACTIVITY) {<NEW_LINE>// Prepare for the DNS c...
viewQueryMap = queryBuilder.getViewQueryMap(yearMonth);
1,080,177
Mono<Response<AppendBlobItem>> appendBlockFromUrlWithResponse(AppendBlobAppendBlockFromUrlOptions options, Context context) {<NEW_LINE>BlobRange sourceRange = (options.getSourceRange() == null) ? new BlobRange(0) : options.getSourceRange();<NEW_LINE>AppendBlobRequestConditions destRequestConditions = (options.getDestin...
SimpleResponse<>(rb, item);
1,681,636
private void loadNonVisuals(org.w3c.dom.Node node) throws PersistenceException {<NEW_LINE>org.w3c.dom.Node nonVisualsNode = findSubNode(node, XML_NON_VISUAL_COMPONENTS);<NEW_LINE>org.w3c.dom.NodeList childNodes = nonVisualsNode == null ? null : nonVisualsNode.getChildNodes();<NEW_LINE>List<RADComponent> list = new Arra...
comp = restoreComponent(subnode, null);
253,128
static void validateSettingsForPublishedTables(RelationName relationName, Settings settings, Map<String, Publication> publications, IndexScopedSettings indexScopedSettings) {<NEW_LINE>// Static settings changes must be prevented for tables included<NEW_LINE>// in logical replication publication. Static settings cannot ...
.toString(), publicationName));
1,312,756
final GetAssetResult executeGetAsset(GetAssetRequest getAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetAssetRequest> request = null;<NEW_LINE>Response<GetAssetResult...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
656,067
private static int compareVersions(String s, String t) {<NEW_LINE>final String[] sSplits = s.split("\\.");<NEW_LINE>final int sMajor = Integer.parseInt(sSplits[0]);<NEW_LINE>final int sMinor = Integer.parseInt(sSplits[1]);<NEW_LINE>final int sPatch = Integer.parseInt(sSplits[2]);<NEW_LINE>final String[] tSplits = t.spl...
Integer.compare(sMinor, tMinor);
535,498
public void onFinalImageSet(String id, ImageInfo imageInfo, Animatable animatable) {<NEW_LINE>if (mEnableResizing && imageInfo != null && mDraweeSpan.getDraweeHolder().getTopLevelDrawable() != null) {<NEW_LINE>Drawable topLevelDrawable = mDraweeSpan.getDraweeHolder().getTopLevelDrawable();<NEW_LINE>Rect topLevelDrawabl...
), imageInfo.getHeight());
139,478
public Iterable<FileSystem<?>> fromOptions(@Nonnull PipelineOptions options) {<NEW_LINE>final List<Configuration> configurations = options.as(HadoopFileSystemOptions.class).getHdfsConfiguration();<NEW_LINE>if (configurations == null) {<NEW_LINE>// nothing to register<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<...
new HadoopFileSystem(scheme, configuration));
1,648,699
static <T> NativeClosureFactory newClosureFactory(jnr.ffi.Runtime runtime, Class<T> closureClass, SignatureTypeMapper typeMapper, AsmClassLoader classLoader) {<NEW_LINE>Method callMethod = null;<NEW_LINE>for (Method m : closureClass.getMethods()) {<NEW_LINE>if (m.isAnnotationPresent(Delegate.class) && Modifier.isPublic...
] parameterTypes = callMethod.getParameterTypes();
333,155
private HttpResponse configureUpgrader(HttpRequest request) {<NEW_LINE>String upgradesPerMinuteField = "upgradesPerMinute";<NEW_LINE>String targetMajorVersionField = "targetMajorVersion";<NEW_LINE>byte[] jsonBytes = toJsonBytes(request.getData());<NEW_LINE>Inspector inspect = SlimeUtils.jsonToSlime(jsonBytes).get();<NE...
(upgradesPerMinuteField).asDouble());
1,361,432
private static List<List<Object>> parseExcelData(BridgeInfo info, List<CellRangeAddress> cellRangeAddresses) {<NEW_LINE>List<List<Object>> result = new ArrayList<>();<NEW_LINE>List<BridgeInfo.ClassInfo> classInfo = info.getClassInfo();<NEW_LINE>int clzLen = classInfo.size();<NEW_LINE>int firstRow = 1, lastRow = 1;<NEW_...
add(ci.getAllBridgeCount());
1,498,096
public void extractKeyPhrasesStringListWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.textanalytics.TextAnalyticsClient.extractKeyPhrasesBatch#Iterable-String-TextAnalyticsRequestOptions<NEW_LINE>List<String> documents = Arrays.asList("My cat might need to see a veterinarian.", "The pitot tube is used to measure airsp...
.printf("%s.%n", keyPhrase));
1,762,736
// note: we really should just rebuild the tree instead of using this method<NEW_LINE>private void trimUnusedTreeCategories() {<NEW_LINE>// note: turn String[] to List<String> to use hashing<NEW_LINE>Set<List<String>> categories = new HashSet<>();<NEW_LINE>for (ScriptInfo info : infoManager.getScriptInfoIterable()) {<N...
category = Arrays.asList(path);
914,453
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String jobName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.cli...
error(new IllegalArgumentException("Parameter jobName is required and cannot be null."));
45,551
public SparkStructuredStreamingPipelineResult run(final Pipeline pipeline) {<NEW_LINE>MetricsEnvironment.setMetricsSupported(true);<NEW_LINE>LOG.info("*** SparkStructuredStreamingRunner is based on spark structured streaming framework and is no more \n" + " based on RDD/DStream API. See\n" + " https://spark.apache.org/...
registerMetricsSource(options.getAppName());
577,099
private void init() {<NEW_LINE>dataBlockCount = table.getDataBlockCount();<NEW_LINE>if (fields == null) {<NEW_LINE>fields = table.getColNames();<NEW_LINE>}<NEW_LINE>rowReader = table.getRowReader(true);<NEW_LINE>rowDataReader = new ObjectReader(rowReader, table.groupTable.getBlockSize() - GroupTable.POS_SIZE);<NEW_LINE...
.getBlockSize() - GroupTable.POS_SIZE;
260,663
public void marshall(ListTransformJobsRequest listTransformJobsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listTransformJobsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listTransfor...
listTransformJobsRequest.getCreationTimeBefore(), CREATIONTIMEBEFORE_BINDING);
870,070
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) {<NEW_LINE>JSONObject json = new JSONObject(true);<NEW_LINE>// modify caching<NEW_LINE>json.put("$EXPIRES", 0);<NEW_LINE>json.put("accepted", false);<NEW_LINE>String userId = null;...
json.put("accepted", true);
935,604
private static void recreatePrimaryAndUniqueConstraints(Handle handle, Map<String, Map.Entry<String, Set<String>>> tableWisePrimarySet) {<NEW_LINE>for (Map.Entry<String, Map.Entry<String, Set<String>>> primaryKeyConstraint : tableWisePrimarySet.entrySet()) {<NEW_LINE>var constraintName = primaryKeyConstraint.getKey();<...
= "IF (OBJECT_ID('%s', '%s') IS NULL) " + "BEGIN " + "ALTER TABLE \"%s\" ADD CONSTRAINT %s PRIMARY KEY (%s) " + "END";
1,170,030
public void actionPerformed(ActionEvent e) {<NEW_LINE>Object source = e.getSource();<NEW_LINE>if (source == saveCallsToCheckBox) {<NEW_LINE>boolean selected = saveCallsToCheckBox.isSelected();<NEW_LINE>callDirTextField.setEnabled(selected);<NEW_LINE>callDirChooseButton.setEnabled(selected);<NEW_LINE>if (selected) {<NEW...
File(callDirTextField.getText());
670,089
private static QueryOptions createOptions(org.apache.cassandra.db.ConsistencyLevel consistencyLevel, List<ByteBuffer> values, List<String> boundNames, boolean skipMetadata, int pageSize, PagingState pagingState, org.apache.cassandra.db.ConsistencyLevel serialConsistency, org.apache.cassandra.transport.ProtocolVersion p...
pageSize, pagingState, serialConsistency, timestamp);
60,950
private void build(ClassExtensionDoc extensionDoc) {<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();<NEW_LINE>} catch (ParserConfigurationException e) {<NEW_LINE>throw UncheckedException.throwAsUncheckedException(e);<NEW_LINE>}<NEW_LINE>LinkR...
para = doc.createElement("para");
288,221
protected void consumeStatementTry(boolean withFinally, boolean hasResources) {<NEW_LINE>// TryStatement ::= 'try' Block Catches<NEW_LINE>// TryStatement ::= 'try' Block Catchesopt Finally<NEW_LINE>// TryStatementWithResources ::= 'try' ResourceSpecification TryBlock Catchesopt<NEW_LINE>// TryStatementWithResources :...
catchBlocks = new Block[length]);
182,327
public /* final */<NEW_LINE>void takePictureSnapshot(@NonNull final PictureResult.Stub stub) {<NEW_LINE>// Save boolean before scheduling! See how Camera2Engine calls this with a temp value.<NEW_LINE>final boolean metering = mPictureSnapshotMetering;<NEW_LINE>getOrchestrator().scheduleStateful("take picture snapshot", ...
(getPreviewSurfaceSize(Reference.OUTPUT));
817,906
private void removeCheckpointInternal(List<String> sourceNames, RegistrationId registrationId) {<NEW_LINE>LOG.info("Removing checkpoint for:" + sourceNames);<NEW_LINE>String streamId = calcStreamId(sourceNames);<NEW_LINE>String key = calculateIndexForCache(streamId, registrationId);<NEW_LINE>Lock writeLock = _cacheLock...
= getStaticConfig().getRootDirectory();
1,585,872
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>String verifier = params[0].getString(PARAM_VERIFIER);<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>try {<NEW_LINE>URL url = new URL(mTokenURLString);<NEW_LINE>HttpsURLConnection httpsURLConnection = (HttpsURLConnection) url.openConnection();<NEW_LINE>http...
JSONTokener(response).nextValue();
1,827,134
public boolean apply(Game game, Ability source) {<NEW_LINE>DesolationWatcher watcher = game.getState().getWatcher(DesolationWatcher.class);<NEW_LINE>if (watcher == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Permanent> permanents = new ArrayList<>();<NEW_LINE>for (UUID playerId : watcher.getPlayersTappedFor...
= new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_PERMANENT_LAND);
217,601
static public File allocateFile(File dir, String name) {<NEW_LINE>int q = name.indexOf('?');<NEW_LINE>if (q > 0) {<NEW_LINE>name = name.substring(0, q);<NEW_LINE>}<NEW_LINE>File file = new File(dir, name);<NEW_LINE>Path normalizedFile = file.toPath().normalize();<NEW_LINE>// For CVE-2018-19859, issue #1840<NEW_LINE>if ...
fileName.substring(0, dot);
1,826,746
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {<NEW_LINE>int <MASK><NEW_LINE>TargetDataLine line = null;<NEW_LINE>Info[] mixerInfo = AudioSystem.getMixerInfo();<NEW_LINE>for (int i = 0; i < mixerInfo.length; i++) {<NEW_LINE>Mixer mixer = AudioSystem.getMixer(mixerIn...
duration = request.getIntValue(TLV_TYPE_AUDIO_DURATION);
889,172
private BigInteger attackNormal() {<NEW_LINE>List<ICEPoint> points = ICEPointReader.readPoints(group);<NEW_LINE>List<BigInteger> congs = new LinkedList<>();<NEW_LINE>List<BigInteger> moduli = new LinkedList<>();<NEW_LINE>for (ICEPoint point : points) {<NEW_LINE>BigInteger cong = getCongruence(point);<NEW_LINE>if (cong ...
"No congruence found for point with order " + point.getOrder());
515,635
private DynamicBytes unzipBody() throws IOException {<NEW_LINE>String encoding = HttpUtils.getStringValue(headers, CONTENT_ENCODING);<NEW_LINE>if (encoding == null || body.length() == 0) {<NEW_LINE>return body;<NEW_LINE>}<NEW_LINE>encoding = encoding.toLowerCase();<NEW_LINE>BytesInputStream bis = new BytesInputStream(b...
] buffer = new byte[4096];
1,010,176
public UnconditionalFlowInfo unconditionalFieldLessCopy() {<NEW_LINE>// TODO (maxime) may consider leveraging null contribution verification as it is done in copy<NEW_LINE>UnconditionalFlowInfo copy = new UnconditionalFlowInfo();<NEW_LINE>copy.tagBits = this.tagBits;<NEW_LINE>copy.maxFieldCount = this.maxFieldCount;<NE...
.nullBit2 = this.nullBit2 & mask;
1,388,743
protected boolean createKeys(final List<SubResourceLocatorNode> list) {<NEW_LINE>try {<NEW_LINE>model.runReadAction(new MetadataModelAction<RestServicesMetadata, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void run(RestServicesMetadata metadata) throws IOException {<NEW_LINE>RestServices root = metadata.getR...
(project, className, locator));
831,547
private List<Range> binRanges(ClientContext context, List<Range> ranges, Map<String, Map<KeyExtent, List<Range>>> binnedRanges, boolean useCache, LockCheckerSession lcSession) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {<NEW_LINE>List<Range> failures = new ArrayList<>();<NEW_LINE>List<T...
tabletLocations = new ArrayList<>();
661,166
public void LAPACK_dtgsen(IntPointer arg0, IntPointer arg1, IntPointer arg2, IntPointer arg3, IntPointer arg4, DoublePointer arg5, IntPointer arg6, DoublePointer arg7, IntPointer arg8, DoublePointer arg9, DoublePointer arg10, DoublePointer arg11, DoublePointer arg12, IntPointer arg13, DoublePointer arg14, IntPointer ar...
arg21, arg22, arg23, arg24);
1,140,465
public AccessEndpoint unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AccessEndpoint accessEndpoint = new AccessEndpoint();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
277,749
public void marshall(EmailChannelResponse emailChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (emailChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(emailChannelResponse.get...
emailChannelResponse.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING);
506,944
public void updateTabTitleColor(int index) {<NEW_LINE>// Validate index input.<NEW_LINE>if (index < 0 || index >= tabs.size()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TiViewProxy tabProxy = tabs.get(index).getProxy();<NEW_LINE>if (tabProxy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!hasCustomTextColor(tabProxy)...
final LinearLayout tabLayout = getTabLinearLayoutForIndex(index);
167,596
final GetCurrentUserResult executeGetCurrentUser(GetCurrentUserRequest getCurrentUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCurrentUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
479,087
private void rebuildPassesProgress(@Nonnull TrafficLightRenderer.DaemonCodeAnalyzerStatus status) {<NEW_LINE>myPassStatuses.removeAll();<NEW_LINE>myPassStatuses<MASK><NEW_LINE>GridBagConstraints c = new GridBagConstraints();<NEW_LINE>c.gridy = 0;<NEW_LINE>c.fill = GridBagConstraints.HORIZONTAL;<NEW_LINE>for (Progressab...
.setLayout(new GridBagLayout());
117,078
public void traverse(ASTVisitor visitor, BlockScope blockScope) {<NEW_LINE>try {<NEW_LINE>if (visitor.visit(this, blockScope)) {<NEW_LINE>if (this.javadoc != null) {<NEW_LINE>this.javadoc.traverse(visitor, this.scope);<NEW_LINE>}<NEW_LINE>if (this.annotations != null) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < anno...
int annotationsLength = this.annotations.length;
256,131
private Mono<Response<Void>> deleteFunctionWithResponseAsync(String resourceGroupName, String name, String functionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<N...
this.client.mergeContext(context);
1,727,237
public DefaultModelCriteria<M> or(DefaultModelCriteria<M>... mcbs) {<NEW_LINE>if (mcbs.length == 1) {<NEW_LINE>return compare(mcbs[0].node);<NEW_LINE>}<NEW_LINE>final ModelCriteriaNode<M> targetNode = new ModelCriteriaNode<>(ExtOperator.OR);<NEW_LINE>AtomicBoolean hasTrueNode = new AtomicBoolean(false);<NEW_LINE>for (D...
<>(ExtOperator.__TRUE__));
252,495
public void build(BuildNamedValue... namedValues) {<NEW_LINE>Build build = new Build();<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>asList(namedValues).stream().filter(kvp -> kvp != null).filter(kvp -> !(kvp instanceof BuildComplexTypeNamedValue)).forEach(kvp -> map.put(kvp.name(), kvp.value()));<NEW_L...
) namedvalue).getResources());
896,568
private void createNutchUrls() throws IOException, URISyntaxException {<NEW_LINE>log.info("Creating nutch urls ...");<NEW_LINE>JobConf job <MASK><NEW_LINE>Path urls = new Path(options.getWorkPath(), URLS_DIR_NAME);<NEW_LINE>Utils.checkHdfsPath(urls);<NEW_LINE>String jobname = "Create nutch urls";<NEW_LINE>job.setJobNam...
= new JobConf(NutchData.class);
1,474,751
public void collapse() {<NEW_LINE>if (!_isShowing)<NEW_LINE>return;<NEW_LINE>if (_folderAnimator == null || _folderAnimator.isRunning())<NEW_LINE>return;<NEW_LINE>long animDuration = Setup.appSettings().getAnimationSpeed() * 10;<NEW_LINE>Tool.invisibleViews(animDuration, _cellContainer);<NEW_LINE>int startRadius = Tool...
_cx, _cy, finalRadius, startRadius);
1,271,474
public void updateWorklogWithNewRemainingEstimate(java.lang.String in0, com.atlassian.jira.rpc.soap.beans.RemoteWorklog in1, java.lang.String in2) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemotePermissionException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.r...
.exception.RemoteException) axisFaultException.detail;
158,806
public ListReportsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListReportsResult listReportsResult = new ListReportsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
722,704
private String unprotectPayload(String payload) throws IOException {<NEW_LINE>try {<NEW_LINE>JWEObject jweObject = JWEObject.deserialize(MessageSecurityHelper.base64UrltoString(payload));<NEW_LINE>JWEHeader jweHeader = jweObject.jweHeader();<NEW_LINE>if (!clientEncryptionKey.kid().equals(jweHeader.kid()) || !jweHeader....
base64UrltoByteArray(jweObject.encryptedKey());
219,895
public void addFormForAddAccount() {<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>InputTextField holderNameInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.account.owner"));<NEW_LINE>holderNameInputTextField.setValidator(inputValidator);<NEW_LINE>holderNameInputTextField.textProperty...
setHolderName(newValue.trim());
698,322
private static GrpcClientConfiguration testConfig(GrpcServerConfiguration serverConfiguration) {<NEW_LINE>GrpcClientConfiguration config = new GrpcClientConfiguration();<NEW_LINE>config.port = serverConfiguration.testPort;<NEW_LINE>config.host = serverConfiguration.host;<NEW_LINE>config.plainText = Optional.of(serverCo...
.trustStore = Optional.empty();
31,066
void attemptStateChange(StateChangeAction action) {<NEW_LINE>if (_tc.isEventEnabled()) {<NEW_LINE>Tr.event(_tc, asmLabel() + "attemptStateChange: interruptible=" + isInterruptible());<NEW_LINE>}<NEW_LINE>final boolean callPerformAction;<NEW_LINE>final boolean callQueueAction;<NEW_LINE>synchronized (_interruptibleLock) ...
&& action == StateChangeAction.START));
457,579
public DescribeClustersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeClustersResult describeClustersResult = new DescribeClustersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
696,469
private void parseTruncatedFileLog(History history, Reader fileLog) throws IOException {<NEW_LINE>// Index history by revision.<NEW_LINE>HashMap<String, HistoryEntry> <MASK><NEW_LINE>for (HistoryEntry entry : history.getHistoryEntries()) {<NEW_LINE>byRevision.put(entry.getRevision(), entry);<NEW_LINE>}<NEW_LINE>try (Bu...
byRevision = new HashMap<>();
1,704,190
public void register(User user, HttpServletRequest request) {<NEW_LINE>validator.validate(user);<NEW_LINE>if (validator.hasErrors()) {<NEW_LINE>result.include("errors", validator.getErrors());<NEW_LINE>}<NEW_LINE>validator.onErrorRedirectTo(this).registrationForm();<NEW_LINE>if (!user.getPassword().equals(request.getPa...
result.include("status", "Registration Successful! Now Login");
1,750,156
public void topologicalSort() {<NEW_LINE>log("================ SORTING");<NEW_LINE>m_strictlySortedNodes = Lists.newArrayList();<NEW_LINE>initializeIndependentNodes();<NEW_LINE>//<NEW_LINE>// Clone the list of nodes but only keep those that are<NEW_LINE>// not independent.<NEW_LINE>//<NEW_LINE>List<Node<T>> nodes2 = ge...
collect(Collectors.toList());
546,288
private void determineTurnsToMerge(boolean leftside, List<RouteSegmentResult> result) {<NEW_LINE>RouteSegmentResult nextSegment = null;<NEW_LINE>double dist = 0;<NEW_LINE>for (int i = result.size() - 1; i >= 0; i--) {<NEW_LINE>RouteSegmentResult currentSegment = result.get(i);<NEW_LINE>TurnType currentTurn = currentSeg...
tt, tt.getValue());
35,658
// see note on `dealWithReferences()` for information on this suppression<NEW_LINE>@SuppressWarnings("squid:RedundantThrowsDeclarationCheck")<NEW_LINE>private void checkForFailure(Dependency[] dependencies) throws BuildException {<NEW_LINE>final StringBuilder ids = new StringBuilder();<NEW_LINE>for (Dependency d : depe...
failBuildOnCVSS, ids.toString());
1,657,724
private int parseLine(int startOff, int endOff, Pattern ptn) throws BadLocationException {<NEW_LINE>if (endOff <= startOff) {<NEW_LINE>return endOff;<NEW_LINE>}<NEW_LINE>Document doc = getDocument();<NEW_LINE>while (true) {<NEW_LINE>String line = doc.getText(startOff, endOff - startOff);<NEW_LINE>Matcher m = ptn.matche...
+= m.end() + 1;
1,655,036
public UpdateStudioResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateStudioResult updateStudioResult = new UpdateStudioResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
713,814
public String discoverIdentityProvider(@RequestParam String email, @RequestParam(required = false) String skipDiscovery, @RequestParam(required = false, name = "login_hint") String loginHint, @RequestParam(required = false, name = "username") String username, Model model, HttpSession session, HttpServletRequest request...
matchedIdp = identityProviders.get(0);
1,138,918
private boolean copyDependencies() throws IOException {<NEW_LINE>boolean result = true;<NEW_LINE>projectCopy.setResourceRoot("${projectDir}");<NEW_LINE>List<ExternalDependency> dependencies = projectCopy.getExternalDependencies();<NEW_LINE>for (ExternalDependency dependency : dependencies) {<NEW_LINE>switch(dependency....
File(dependency.getPath());
1,819,948
final DescribeEgressOnlyInternetGatewaysResult executeDescribeEgressOnlyInternetGateways(DescribeEgressOnlyInternetGatewaysRequest describeEgressOnlyInternetGatewaysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEgressOnlyInternetGatewaysRequest);<NEW_LINE>AWSRequestMetrics awsRe...
DescribeEgressOnlyInternetGatewaysResult>(new DescribeEgressOnlyInternetGatewaysResultStaxUnmarshaller());
1,626,507
private PO fetchPO(final boolean createIfNotExists, final String trxName) {<NEW_LINE>final I_AD_MigrationStep step = getAD_MigrationStep();<NEW_LINE>final I_AD_Table table = getAD_Table(trxName);<NEW_LINE>final MTable tablePO = (MTable) InterfaceWrapperHelper.getPO(table);<NEW_LINE>final StringBuffer whereClause = new ...
toArray()).firstOnly();
1,625,203
private String wsImport(URL wsdlLocation) throws IOException {<NEW_LINE>File classesDir = new File(System.getProperty("java.io.tmpdir"));<NEW_LINE>// create a dumy file to have a unique temporary name for a directory<NEW_LINE>classesDir = File.createTempFile("jax-ws", "tester", classesDir);<NEW_LINE>if (!classesDir.del...
SEVERE, LogUtils.CREATE_DIR_FAILED, classesDir);
1,851,746
final ListCompatibleImagesResult executeListCompatibleImages(ListCompatibleImagesRequest listCompatibleImagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCompatibleImagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Snowball");
299,959
public static void addNormalizerToModel(File f, Normalizer<?> normalizer) {<NEW_LINE>File tempFile = null;<NEW_LINE>try {<NEW_LINE>// copy existing model to temporary file<NEW_LINE>tempFile = ND4JFileUtils.createTempFile("dl4jModelSerializerTemp", "bin");<NEW_LINE>tempFile.deleteOnExit();<NEW_LINE>Files.copy(f, tempFil...
ZipEntry(entry.getName());
1,657,932
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Log.trace(Log.l1_User, "WWorkflow.doGet");<NEW_LINE>// WUtil.debug(new String("In do get"),"");<NEW_LINE>// Get Session attributes<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>Web...
WebUtil.getParameterAsInt(request, "AD_Menu_ID");
1,019,742
private void replaceCell(String readerId) {<NEW_LINE>synchronized (lock) {<NEW_LINE>Preconditions.checkState(this.isRunning(), this.state().name());<NEW_LINE>// add a replacement reader and then shutdown existing reader<NEW_LINE>log.info("Found overloaded reader: {}", readerId);<NEW_LINE>String newReaderId;<NEW_LINE>tr...
get(newReaderId).startAsync();
481,074
protected static void load(String path, String name) {<NEW_LINE>String libroot = "/META-INF/lib";<NEW_LINE>String libpath = null;<NEW_LINE>String libfile = null;<NEW_LINE>boolean arch64 = System.getProperty("os.arch").indexOf("64") != -1;<NEW_LINE>boolean linux = System.getProperty("os.name").toLowerCase().indexOf("lin...
+ (arch64 ? "/win64/" : "/win32/");
1,137,863
void swap_index(int i, int j) {<NEW_LINE>if (i == j)<NEW_LINE>return;<NEW_LINE>if (head[i].len > 0)<NEW_LINE>lru_delete(head[i]);<NEW_LINE>if (head[j].len > 0)<NEW_LINE>lru_delete(head[j]);<NEW_LINE>do {<NEW_LINE>float[] tmp = head[i].data;<NEW_LINE>head[i].data = head[j].data;<NEW_LINE>head[j].data = tmp;<NEW_LINE>} w...
h.data, i, j);
1,149,874
public static void main(String[] args) {<NEW_LINE>SchedulerFactory schedFact = new StdSchedulerFactory();<NEW_LINE>try {<NEW_LINE>Scheduler sched = schedFact.getScheduler();<NEW_LINE>JobDetail job = JobBuilder.newJob(SimpleJob.class).withIdentity("myJob", "group1").usingJobData("jobSays", "Hello World!").usingJobData("...
sched.scheduleJob(job, trigger);
1,166,460
public void dump(Appendable out, String indent) throws IOException {<NEW_LINE>List<String> keys;<NEW_LINE>List<SelectorUpdate> updates;<NEW_LINE>Selector selector = _selector;<NEW_LINE>if (selector != null && selector.isOpen()) {<NEW_LINE>DumpKeys dump = new DumpKeys();<NEW_LINE>String updatesAt = DateTimeFormatter.ISO...
LOG.debug("wakeup on dump {}", this);
741,243
public Connection connect(String url, Properties info) throws SQLException {<NEW_LINE>if (!acceptsURL(url)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (info != null) {<NEW_LINE>Object val = info.get("connectSleep");<NEW_LINE>if (val != null) {<NEW_LINE>long millis = Long.parseLong(val.toString());<NEW_LINE>try {<NE...
", id " + conn.getId());
628,114
// We will do this all in one thread to emphasize the getSequence of events<NEW_LINE>public static void main(String[] args) {<NEW_LINE>try (ZContext context = new ZContext()) {<NEW_LINE>Socket client = context.createSocket(SocketType.ROUTER);<NEW_LINE>client.bind("ipc://routing.ipc");<NEW_LINE>Socket worker = context.c...
send("A", ZMQ.SNDMORE);
59,085
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE>if (!controller.getHand().isEmpty()) {<NEW_LINE>ne...
" +1/+1 counters from " + sourcePermanent.getLogName());
1,433,197
private List<JavaMethodHost> buildSelectMethodHosts(List<JavaParameterHost> allColumns, List<GenTaskBySqlBuilder> currentTableBuilders) throws Exception {<NEW_LINE>List<JavaMethodHost> methods = new ArrayList<>();<NEW_LINE>for (GenTaskBySqlBuilder builder : currentTableBuilders) {<NEW_LINE>if (!builder.getCrud_type().e...
setScalarType(builder.getScalarType());
399,971
public VirtualMachineScaleSetImpl withVirtualMachinePublicIp(String leafDomainLabel) {<NEW_LINE>initVMProfileIfNecessary();<NEW_LINE>VirtualMachineScaleSetIpConfiguration nicIpConfig = this.primaryNicDefaultIpConfiguration();<NEW_LINE>if (nicIpConfig.publicIpAddressConfiguration() != null) {<NEW_LINE>if (nicIpConfig.pu...
.withDnsSettings(new VirtualMachineScaleSetPublicIpAddressConfigurationDnsSettings());
1,316,570
protected Set<BlockCoverage> mapToData(XMLEventReader doc) throws XMLStreamException {<NEW_LINE>final Set<BlockCoverage> data = new HashSet<>();<NEW_LINE>List<String> tests = new ArrayList<>();<NEW_LINE>StartElement enclosingNode = null;<NEW_LINE>BlockLocation block = null;<NEW_LINE>while (doc.hasNext()) {<NEW_LINE>XML...
.getName().getLocalPart();
437,761
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public JSONArray configureQuestionTemplate(@FormDataParam(CoordConsts.SVC_KEY_API_KEY) String apiKey, @FormDataParam(CoordConsts.SVC_KEY_VERSION) String clientVersion, @FormDataParam(CoordConsts.SVC_KEY_QUESTION) String questionTemplate, @Nullable @FormDataParam(CoordConst...
failureResponse(e.getMessage());
307,954
protected void loadPreferences(DBPPreferenceStore store) {<NEW_LINE>try {<NEW_LINE>gridShowOddRows.setSelection(store.getBoolean(ResultSetPreferences.RESULT_SET_SHOW_ODD_ROWS));<NEW_LINE>gridHighlightRowsWithSelectedCells.setSelection(store.getBoolean(ResultSetPreferences.RESULT_SET_HIGHLIGHT_SELECTED_ROWS));<NEW_LINE>...
.getBoolean(ResultSetPreferences.RESULT_SET_SHOW_WHITESPACE_CHARACTERS));
304,028
public void emitCompareBranch(PlatformKind cmpKind, Value left, Value right, Condition cond, boolean unorderedIsTrue, LabelRef trueLabel, LabelRef falseLabel, double trueLabelProbability) {<NEW_LINE>if (cmpKind == AMD64Kind.SINGLE || cmpKind == AMD64Kind.DOUBLE) {<NEW_LINE>boolean isSelfEqualsCheck = cond == Condition....
unorderedIsTrue && left.equals(right);
478,939
public AddressBookData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AddressBookData addressBookData = new AddressBookData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
234,938
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(INDEX_FIELD.getPreferredName(), index);<NEW_LINE>builder.field(MANAGED_BY_ILM_FIELD.getPreferredName(), managedByILM);<NEW_LINE>if (managedByILM) {<NEW_LINE>builder.field...
STEP_FIELD.getPreferredName(), step);
834,716
public static byte[] serializeBtcAddressWithVersion(ActivationConfig.ForBlock activations, Address btcAddress) {<NEW_LINE>byte[] hash160 = btcAddress.getHash160();<NEW_LINE>byte[] version = BigInteger.valueOf(btcAddress.getVersion()).toByteArray();<NEW_LINE>if (activations.isActive(RSKIP284)) {<NEW_LINE>// BigInteger a...
: new byte[] { 0 };
559,444
public void onBindViewHolder(ViewHolder holder, Feed feed) {<NEW_LINE>String title = feed.getTitle();<NEW_LINE>holder.tvTitle.setText(title);<NEW_LINE>holder.tvTitle.setVisibility(title != null ? View.VISIBLE : View.GONE);<NEW_LINE>holder.tvDesc.setText(feed.getPreview());<NEW_LINE>holder.tvDesc.setGravity(mShowExtra ?...
).format(date) : "";
1,064,537
public void traverse(ASTVisitor visitor, BlockScope scope) {<NEW_LINE>if (visitor.visit(this, scope)) {<NEW_LINE>if (this.annotations != null) {<NEW_LINE>Annotation[] typeAnnotations = this.annotations[0];<NEW_LINE>for (int i = 0, length = typeAnnotations == null ? 0 : typeAnnotations.length; i < length; i++) {<NEW_LIN...
annotation.traverse(visitor, scope);
324,453
public boolean deleteUser(String userId, String replacingUserId) throws DotHibernateException, DotDataException, DotStateException, DotSecurityException, PortalException, SystemException {<NEW_LINE>String date = DateUtil.getCurrentDate();<NEW_LINE>// Validate if this logged in user has the required permissions to acces...
UserAPI uAPI = APILocator.getUserAPI();
1,626,507
private PO fetchPO(final boolean createIfNotExists, final String trxName) {<NEW_LINE>final I_AD_MigrationStep step = getAD_MigrationStep();<NEW_LINE><MASK><NEW_LINE>final MTable tablePO = (MTable) InterfaceWrapperHelper.getPO(table);<NEW_LINE>final StringBuffer whereClause = new StringBuffer();<NEW_LINE>final LinkedHas...
final I_AD_Table table = getAD_Table(trxName);
722,251
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>Activity activity = getActivity();<NEW_LINE>if (activity == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final ComponentContext c = new ComponentContext(activity);<NEW_LINE>final View vi...
, ViewGroup.LayoutParams.WRAP_CONTENT));
486,151
public void addSmtpPluginPlugin(MongockTemplate mongoTemplate) {<NEW_LINE>Plugin plugin = new Plugin();<NEW_LINE>plugin.setName("SMTP");<NEW_LINE>plugin.setType(PluginType.DB);<NEW_LINE>plugin.setPackageName("smtp-plugin");<NEW_LINE>plugin.setUiComponent("UQIDbEditorForm");<NEW_LINE>plugin.setDatasourceComponent("AutoF...
mongoTemplate, plugin.getId());
984,422
// setAmt<NEW_LINE>private final AccountDimension createAccountDimension(final I_GL_DistributionLine line) {<NEW_LINE>final AccountDimension.Builder builder = AccountDimension.builder().applyOverrides(getAccountDimension());<NEW_LINE>if (line.isOverwriteOrg() && line.getOrg_ID() > 0) {<NEW_LINE>builder.setAD_Org_ID(lin...
setC_ElementValue_ID(line.getAccount_ID());
562,512
public INDArray backprop(INDArray output, int miniBatchSize, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>// Need to reshape RNN epsilons (3d) to 2d (for use in FF layer backprop calculations)<NEW_LINE>if (output.rank() != 3)<NEW_LINE>throw new IllegalArgumentException("Invalid input: expect NDArray with rank 3 (i.e., ep...
leverageTo(ArrayType.ACTIVATION_GRAD, ret);