idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,449,319
public static DescribeOssObjectDetailResponse unmarshall(DescribeOssObjectDetailResponse describeOssObjectDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeOssObjectDetailResponse.setRequestId(context.stringValue("DescribeOssObjectDetailResponse.RequestId"));<NEW_LINE>OssObjectDetail ossObjectDetail = new...
= new ArrayList<Rule>();
1,282,212
public List<TypeInstanceReference> loadTypeInstanceReferences() throws CouldntLoadDataException {<NEW_LINE>final List<RawTypeInstanceReference> rawReferences = provider.loadTypeInstanceReferences(module);<NEW_LINE>final List<TypeInstanceReference> references = Lists.newArrayList();<NEW_LINE>for (final RawTypeInstanceRe...
int expressionId = rawReference.getExpressionId();
1,091,194
final UpdateAssessmentFrameworkResult executeUpdateAssessmentFramework(UpdateAssessmentFrameworkRequest updateAssessmentFrameworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssessmentFrameworkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,379,231
public ListProjectsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListProjectsResult listProjectsResult = new ListProjectsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
239,936
public DeclarationLocation run(final EditorFeatureContext context) {<NEW_LINE>final AtomicReference<DeclarationLocation> result = new AtomicReference<>();<NEW_LINE>context.getDocument().render(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final TokenSequence<CssTokenId> ts = LexerU...
, 0) : DeclarationLocation.NONE);
1,639,432
public PGPPrivateKey extractPrivateKey(PBESecretKeyDecryptor decryptorFactory) throws PGPException {<NEW_LINE>if (isPrivateKeyEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>PublicKeyPacket pubPk = secret.getPublicKeyPacket();<NEW_LINE>try {<NEW_LINE>byte[] data = extractKeyData(decryptorFactory);<NEW_LINE>BCPGInp...
RSASecretBCPGKey rsaPriv = new RSASecretBCPGKey(in);
1,444,486
private static void putTableSortProperties(final serverObjects prop, final SortDirection sortDir, final String sortColumn) {<NEW_LINE>boolean sortedByAsc = WorkTables.TABLE_API_COL_TYPE.equals(sortColumn) && sortDir == SortDirection.ASC;<NEW_LINE>prop.put("showtable_sortedByType", WorkTables.TABLE_API_COL_TYPE.equals(s...
prop.put("showtable_sortedByDateNextExec_asc", sortedByAsc);
1,639,444
protected StringBuilder runInServlet(LibertyServer server, String queryString) throws Exception {<NEW_LINE>URL url = new URL("http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/multiServer?" + queryString);<NEW_LINE>Log.info(getClass(), "runInServlet", "URL is " + url);<NEW_LINE>HttpURLConnection c...
sep = System.getProperty("line.separator");
1,345,932
private void loadNextPage() {<NEW_LINE>new Handler().postDelayed(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>List<MyMessage> list = new ArrayList<>();<NEW_LINE>Resources res = getResources();<NEW_LINE>String[] messages = res.getStringArray(R.array.conversation);<NEW_LINE>for (int...
MessageType.RECEIVE_TEXT.ordinal());
1,178,520
private void writeChunkToOutputStream(byte[] chunk, int offset, int length) {<NEW_LINE>if (compressor == null && !dwrfEncryptor.isPresent()) {<NEW_LINE>compressedOutputStream.write(chunk, offset, length);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkArgument(length <= maxBufferSize, "Write chunk length must be less than m...
throw new OrcEncryptionException("Encrypted data size %s exceeds limit of 2^23", length);
1,302,614
public void run() {<NEW_LINE>log.info("Running {}", getName());<NEW_LINE>try {<NEW_LINE>lockUniverseForUpdate(getUniverse().version);<NEW_LINE>XClusterConfig xClusterConfig = getXClusterConfig();<NEW_LINE>if (xClusterConfig.status != XClusterConfigStatusType.Init) {<NEW_LINE>throw new RuntimeException(String.format("XC...
setSubTaskGroupType(UserTaskDetails.SubTaskGroupType.ConfigureUniverse);
1,826,312
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>ReladomoConnectionManager.getInstance().createTables();<NEW_LINE>} catch (Exception e1) {<NEW_LINE>e1.printStackTrace();<NEW_LINE>}<NEW_LINE>MithraManager mithraManager = MithraManagerProvider.getMithraManager();<NEW_LINE>mithraManager.setTransactionTimeo...
getMithraManager().readConfiguration(is);
137,931
public void itemClick(int position) {<NEW_LINE>if (adapter.isMultipleSelect()) {<NEW_LINE>adapter.toggleSelection(position);<NEW_LINE>List<MegaNode> selectedNodes = adapter.getSelectedNodes();<NEW_LINE>if (selectedNodes.size() > 0) {<NEW_LINE>updateActionModeTitle();<NEW_LINE>}<NEW_LINE>} else if (nodes.get(position).i...
n = nodes.get(position);
948,783
public static Trades adaptTrades(List<YoBitTrade> ctrades, CurrencyPair currencyPair) {<NEW_LINE>List<Trade> trades = new ArrayList<>(ctrades.size());<NEW_LINE>int lastTrade = 0;<NEW_LINE>for (int i = 0; i < ctrades.size(); i++) {<NEW_LINE>YoBitTrade <MASK><NEW_LINE>OrderType type = trade.getType().equals("bid") ? Orde...
trade = ctrades.get(i);
1,624,176
static EnvoyServerProtoData.Listener parseServerSideListener(Listener proto, Set<String> rdsResources, TlsContextManager tlsContextManager, FilterRegistry filterRegistry, Set<String> certProviderInstances, boolean parseHttpFilter) throws ResourceInvalidException {<NEW_LINE>if (!proto.getTrafficDirection().equals(Traffi...
.getAddress().getSocketAddress();
1,213,277
public static List<TopicRequestTimeVO> convert2TopicRequestTimeMetricsVOList(List<TopicMetricsDO> metricsList) {<NEW_LINE>List<TopicRequestTimeVO> voList = new ArrayList<>();<NEW_LINE>for (TopicMetricsDO elem : metricsList) {<NEW_LINE>TopicRequestTimeVO vo = new TopicRequestTimeVO();<NEW_LINE>TopicMetrics metrics = Met...
(metrics.getSpecifiedMetrics("ProduceTotalTimeMs95thPercentile"));
909,503
public synchronized void changeInputScale() {<NEW_LINE>calib = new StereoParameters(origCalib);<NEW_LINE>double scale = control.inputScale / 100.0;<NEW_LINE>PerspectiveOps.scaleIntrinsic(calib.left, scale);<NEW_LINE>PerspectiveOps.scaleIntrinsic(calib.right, scale);<NEW_LINE>int w = (int) (origLeft.getWidth() * scale);...
convertFrom(colorLeft, inputLeft, true);
65,630
protected void presentResponse(ResponseContainer response, boolean verbose) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>boolean isFirst = true;<NEW_LINE>List<AspectCliPresenter> aspectPresenters = plugins.loadOrderedSpiInstances(AspectCliPresenter.class);<NEW_LINE>for (AspectCliPresenter presenter : aspe...
append(System.lineSeparator());
1,113,802
public static void toJSON(OutputWriter jsonOutputWriter, GoDashboardPipeline model, Username username) {<NEW_LINE>String usernameString = username.getUsername().toString();<NEW_LINE>jsonOutputWriter.addLinks(linksWriter -> addLinks(linksWriter, model)).add("name", model.name().toString()).add("last_updated_timestamp", ...
"link", trackingTool.getLink());
313,145
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException {<NEW_LINE>Remove remove = (Remove) ainfo.getAnnotation();<NEW_LINE>for (EjbContext next : ejbContexts) {<NEW_LINE>EjbSessionDescriptor sessionDescriptor = (EjbSessionDescriptor) next....
(Method) ainfo.getAnnotatedElement();
1,795,510
public Renderable createImage(JasperReportsContext jasperReportsContext, JRComponentElement componentElement, BarcodeGenerator barcode, String message) {<NEW_LINE>try {<NEW_LINE>ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>int resolution = JRPropertiesUtil.getInstance(jasperReportsContext).getInteg...
] imageData = out.toByteArray();
416,209
public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallStaticFloatMethod clazz=" + clazz + ", j...
buffer = ByteBuffer.allocate(4);
1,452,597
private void init() {<NEW_LINE>if (!Setup.appSettings().getDrawerShowIndicator())<NEW_LINE>_scrollBar.setVisibility(View.GONE);<NEW_LINE>_scrollBar.setIndicator(new AlphabetIndicator(getContext()), true);<NEW_LINE>_scrollBar.setClipToPadding(true);<NEW_LINE>_scrollBar.setDraggableFromAnywhere(true);<NEW_LINE>_scrollBar...
appSettings().getDrawerFastScrollColor());
333,101
public void init() throws DBException {<NEW_LINE>Properties props = getProperties();<NEW_LINE>String url = <MASK><NEW_LINE>String bucket = props.getProperty(BUCKET_PROPERTY, "default");<NEW_LINE>String password = props.getProperty(PASSWORD_PROPERTY, "");<NEW_LINE>checkFutures = props.getProperty(CHECKF_PROPERTY, "true"...
props.getProperty(URL_PROPERTY, "http://127.0.0.1:8091/pools");
1,725,272
public Router socketHandler(Handler<SockJSSocket> sockHandler) {<NEW_LINE>router.route("/").useNormalizedPath(false).handler(rc -> {<NEW_LINE>if (LOG.isTraceEnabled())<NEW_LINE>LOG.trace("Returning welcome response");<NEW_LINE>rc.response().putHeader(HttpHeaders.CONTENT_TYPE, "text/plain; charset=UTF-8").end("Welcome t...
).handler(createChunkingTestHandler());
469,577
static Op04StructuredStatement buildNestedBlocks(List<Op04StructuredStatement> containers) {<NEW_LINE>Stack<BlockIdentifier> blocksCurrentlyIn = StackFactory.newStack();<NEW_LINE>LinkedList<Op04StructuredStatement> outerBlock = ListFactory.newLinkedList();<NEW_LINE>Stack<StackedBlock> stackedBlocks = StackFactory.newSt...
, mutableProcessingBlockState.currentBlock, blockClaimer));
1,067,207
public okhttp3.Call deployAPIProductRevisionCall(String apiProductId, String revisionId, List<APIRevisionDeploymentDTO> apIRevisionDeploymentDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = apIRevisionDeploymentDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String loca...
HashMap<String, Object>();
632,878
public void marshall(TableDescription tableDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (tableDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(tableDescription.getAttributeDefinit...
tableDescription.getTableId(), TABLEID_BINDING);
1,841,111
public static void drawBlockOverlayArrow(Matrix4f transform, MultiBufferSource buffers, Vec3 directionVec, Direction side, AABB targetedBB) {<NEW_LINE>Vec3[] translatedPositions = new Vec3[arrowCoords.length];<NEW_LINE>Matrix4 mat = new Matrix4();<NEW_LINE>Vec3 defaultDir = side.getAxis() == Axis.Y ? new Vec3(0, 0, 1) ...
(defaultDir.dot(directionVec));
674,372
void doUpgrade(WalletAccount accountToUpgrade, InMemoryPrivateKey privateKey) {<NEW_LINE>final InMemoryPrivateKey key = privateKey;<NEW_LINE>final WalletAccount accToUpgrade = accountToUpgrade;<NEW_LINE>// scanned the private key of a watch only single address account<NEW_LINE>final String existingAccountName = _mbwMan...
walletManager = _mbwManager.getWalletManager(false);
31,467
private SettingsGroup makeDeobfuscationGroup() {<NEW_LINE>JCheckBox deobfOn = new JCheckBox();<NEW_LINE>deobfOn.setSelected(settings.isDeobfuscationOn());<NEW_LINE>deobfOn.addItemListener(e -> {<NEW_LINE>settings.setDeobfuscationOn(e.getStateChange() == ItemEvent.SELECTED);<NEW_LINE>needReload();<NEW_LINE>});<NEW_LINE>...
(DeobfuscationMapFileMode) deobfMapFileModeCB.getSelectedItem();
1,502,781
public Builder mergeFrom(io.kubernetes.client.proto.V1.ConfigMapProjection other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1.ConfigMapProjection.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasLocalObjectReference()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (itemsBuilder_ == null) {<NEW_LIN...
mergeLocalObjectReference(other.getLocalObjectReference());
953,831
private RefactoringStatus initialize(JavaRefactoringArguments arguments) {<NEW_LINE>final String selection = arguments.getAttribute(JavaRefactoringDescriptorUtil.ATTRIBUTE_SELECTION);<NEW_LINE>if (selection != null) {<NEW_LINE>int offset = -1;<NEW_LINE>int length = -1;<NEW_LINE>final StringTokenizer tokenizer = new Str...
selection, JavaRefactoringDescriptorUtil.ATTRIBUTE_SELECTION }));
1,431,983
public void fortunesHandler(final RoutingContext ctx) {<NEW_LINE>client.preparedQuery(SELECT_FORTUNE).execute(ar -> {<NEW_LINE>if (ar.succeeded()) {<NEW_LINE>final RowIterator<Row> resultSet = ar.result().iterator();<NEW_LINE>if (!resultSet.hasNext()) {<NEW_LINE>ctx.fail(404);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final...
fortunes = new ArrayList<>();
1,356,393
private JTextArea createLogPanel(JComboBox<Level> logFilter) {<NEW_LINE>JTextArea logTextArea = new JTextArea();<NEW_LINE>logTextArea.setEditable(false);<NEW_LINE>// Hook into live data from the circular log buffer and update the initial state.<NEW_LINE>Function<CircularLogBufferHandler.ImmutableLogRecord, String> form...
Objects.requireNonNull(LoggerFactory.circularBuffer);
1,356,488
public void init(ClassProperties properties) {<NEW_LINE>String platform = properties.getProperty("platform");<NEW_LINE>List<String> preloadpaths = properties.get("platform.preloadpath");<NEW_LINE>String ucrtsdkdir = System.getenv("UniversalCRTSdkDir");<NEW_LINE>String ucrtversion = System.getenv("UCRTVersion");<NEW_LIN...
add(0, vcredistdir + "\\x64\\Microsoft.VC142.CRT");
375,523
final GetMacieSessionResult executeGetMacieSession(GetMacieSessionRequest getMacieSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMacieSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,231,316
public long writeSeeds(Path sampleSeedPath) throws Exception {<NEW_LINE>int fileNo = 0;<NEW_LINE>// total number of samples<NEW_LINE>long numTotal = this.numSamples;<NEW_LINE>// number of initial centroids<NEW_LINE>int centriodNum = genParams.length;<NEW_LINE>long numPerCluster = (long) Math.ceil(numTotal / (double) ce...
IntWritable.class, Text.class);
1,673,001
private Map<String, LineageSpec> buildLineageSpecs(EntityRegistry entityRegistry) {<NEW_LINE>// 1. Flatten relationship annotations into a list of lineage edges (source, dest, type, isUpstream)<NEW_LINE>Collection<LineageEdge> lineageEdges = // If there are multiple edges with the same source, dest, edge type, get one ...
emptySet())))));
1,710,081
void resolveVersion(double timeout, VersionHandler handler) {<NEW_LINE>boolean hasVersion = false;<NEW_LINE>boolean shouldInvoke = false;<NEW_LINE>boolean shouldLog = log.isLoggable(Level.FINE);<NEW_LINE>synchronized (this) {<NEW_LINE>if (version != null) {<NEW_LINE>if (shouldLog) {<NEW_LINE>log.log(Level.FINE, "Versio...
invokeAsync(req, timeout, this);
1,604,438
private void innerMeasure(ConstraintWidget constraintWidget, BasicMeasure.Measure measure) {<NEW_LINE>Component component = (Component) constraintWidget.getCompanionWidget();<NEW_LINE>int measuredWidth = constraintWidget.getWidth();<NEW_LINE><MASK><NEW_LINE>if (DEBUG) {<NEW_LINE>Utils.log(" measure " + measuredWidth + ...
int measuredHeight = constraintWidget.getHeight();
1,157,057
public Object calculate(Context ctx) {<NEW_LINE>if (param == null || param.isLeaf() || param.getSubSize() < 3) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("Fnper:" <MASK><NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>Object[] result = new Object[size];<NEW_LINE>for (...
+ mm.getMessage("function.missingParam"));
1,514,364
Map<List<TableId>, Long> calculateUsage() {<NEW_LINE>// Bitset of tables that contain a file and total usage by all files that share that usage<NEW_LINE>Map<List<Integer>, Long> usage = new HashMap<>();<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("fileSizes {}", fileSizes);<NEW_LINE>}<NEW_LINE>// For each f...
(externalIds.get(i));
938,329
private List<Map<String, Object>> generateConfigReferencedPaths(String baseRef) {<NEW_LINE>List<Map<String, Object>> referencedPaths = new ArrayList<Map<String, Object>>();<NEW_LINE>for (String key : crawlJob.getConfigPaths().keySet()) {<NEW_LINE>ConfigPath cp = crawlJob.getConfigPaths().get(key);<NEW_LINE>Map<String, ...
+ configMap.get("path"));
1,323,176
public List<Node> nodes() {<NEW_LINE>try {<NEW_LINE>Map<String, String> params = new HashMap<>();<NEW_LINE>params.put("format", "json");<NEW_LINE>params.put("full_id", "true");<NEW_LINE>params.put("h", "id,ip,name,http_address,master");<NEW_LINE>Response res = withRetry(() -> client.performRequest("GET", "/_cat/nodes",...
LOG.fine("Nodes: " + nodes);
975,927
private void postProcess() {<NEW_LINE>if (myContext.hasDefaultTypeForProfile()) {<NEW_LINE>IBaseMetaType meta = myInstance.getMeta();<NEW_LINE>Class<? extends IBaseResource> wantedProfileType = null;<NEW_LINE>String usedProfile = null;<NEW_LINE>for (IPrimitiveType<String> next : meta.getProfile()) {<NEW_LINE>if (isNotB...
asString = parser.encodeResourceToString(myInstance);
1,224,464
public Object organizeImports(List<Object> arguments) throws CoreException {<NEW_LINE>WorkspaceEdit edit = new WorkspaceEdit();<NEW_LINE>if (arguments != null && !arguments.isEmpty() && arguments.get(0) instanceof String) {<NEW_LINE>final String fileUri = (String) arguments.get(0);<NEW_LINE>final IPath rootPath = Resou...
resource = wsroot.getFileForLocation(rootPath);
1,668,060
public final T doCheckValid(RuleComponentModel data) {<NEW_LINE>Map<String, ParameterModel<MASK><NEW_LINE>String key = null;<NEW_LINE>try {<NEW_LINE>for (Map.Entry<String, ParameterDefinition> entry : this.getParameterDefinitions().entrySet()) {<NEW_LINE>key = entry.getKey();<NEW_LINE>entry.getValue().checkValid(params...
> params = data.getParameters();
104,205
public static void endSocket(Object stat, Throwable thr) {<NEW_LINE>if (stat == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>LocalContext lctx = (LocalContext) stat;<NEW_LINE>TraceContext tctx = lctx.context;<NEW_LINE>SocketStep step = (SocketStep) lctx.stepSingle;<NEW_LINE>step.elapsed = (int) (System.c...
println("A142", "socket trace close error", t);
790,104
public Void visitNewClass(NewClassTree node, Void p) {<NEW_LINE>if (checker.shouldSkipUses(TreeUtils.constructor(node))) {<NEW_LINE>return super.visitNewClass(node, p);<NEW_LINE>}<NEW_LINE>ParameterizedExecutableType fromUse = atypeFactory.constructorFromUse(node);<NEW_LINE>AnnotatedExecutableType constructorType = fro...
dt = atypeFactory.getAnnotatedType(node);
718,198
public void registerEntityComponentFactories(EntityComponentFactoryRegistry registry) {<NEW_LINE>for (Class<? extends Monster> clz : SubTileLoonuim.VALID_MOBS) {<NEW_LINE>registry.registerFor(clz, LOONIUM_DROP, e -> new CCALooniumComponent());<NEW_LINE>}<NEW_LINE>registry.registerFor(PrimedTnt.class, TNT_ETHICAL, CCAEt...
, e -> new CCAItemFlagsComponent());
366,322
public void reduceByName(Merger merger) {<NEW_LINE>if (size > 0) {<NEW_LINE>int[] sortedIndices = SortUtil.argsort(featureNames, 0, size, true);<NEW_LINE>String[] newNames = new String[featureNames.length];<NEW_LINE>int[] newIDs = new int[featureIDs.length];<NEW_LINE>double[] newValues = new double[featureNames.length]...
[0] = newNames[0];
1,550,739
FlowDisposition computeDisposition(String hostname, String outgoingInterfaceName, Ip dstIp) {<NEW_LINE>IpSpaceContainsIp containsIp = _containsIp.computeIfAbsent(dstIp, ip -> new IpSpaceContainsIp(ip, ImmutableMap.of()));<NEW_LINE>String vrfName = _configurations.get(hostname).getAllInterfaces().get(outgoingInterfaceNa...
, hostname, outgoingInterfaceName, dstIp));
927,494
private void prune(final long maxAge) {<NEW_LINE>final long now = System.currentTimeMillis();<NEW_LINE>final long timestampBoundary = now - maxAge;<NEW_LINE>synchronized (mLock) {<NEW_LINE>final Iterator<Map.Entry<String, Entry>> iterator = mEntries.entrySet().iterator();<NEW_LINE>final SortedMap<Long, String> byTimest...
60L * 60L * 1000L)));
1,530,922
public static <CommitId> PermanentLinearGraphBuilder<CommitId> newInstance(@Nonnull List<? extends GraphCommit<CommitId>> graphCommits) {<NEW_LINE>graphCommits = fixDuplicateParentCommits(graphCommits);<NEW_LINE>Flags simpleNodes = new BitSetFlags(graphCommits.size());<NEW_LINE>int longEdgesCount = 0;<NEW_LINE>for (int...
nextCommitHashIndex = nextCommitHashIndex(graphCommits, nodeIndex);
645,396
public RDSDatabaseCredentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RDSDatabaseCredentials rDSDatabaseCredentials = new RDSDatabaseCredentials();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,776,294
public static IndexMetadata readFrom(StreamInput in) throws IOException {<NEW_LINE>Builder builder = new Builder(in.readString());<NEW_LINE>builder.version(in.readLong());<NEW_LINE>builder.mappingVersion(in.readVLong());<NEW_LINE>builder.settingsVersion(in.readVLong());<NEW_LINE>builder.setRoutingNumShards(in.readInt()...
builder.putCustom(key, custom);
398,848
private KafkaProducer createKafkaProducer() {<NEW_LINE>final Properties props = new Properties();<NEW_LINE>props.put(ProducerConfig.CLIENT_ID_CONFIG, "datahub-frontend");<NEW_LINE>props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, _config.getString("analytics.kafka.bootstrap.server"));<NEW_LINE>// Actor urn.<NEW_LINE>p...
, _config.getString(securityProtocolConfig));
1,249,705
private void installEPF(String epfString) {<NEW_LINE>try {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>properties.load(new ByteArrayInputStream(epfString.getBytes("ISO-8859-1")));<NEW_LINE>IJTPreset defaultPreset = JThemesCore.getDefault().getPresetManager().getDefaultPreset();<NEW_LINE>properties = Pro...
RewriteCustomTheme(true).rewrite();
1,827,962
// pakcage private for tests<NEW_LINE>static PluginPolicyInfo readPolicyInfo(Path pluginRoot) throws IOException {<NEW_LINE>Path policyFile = pluginRoot.resolve(PluginInfo.ES_PLUGIN_POLICY);<NEW_LINE>if (Files.exists(policyFile) == false) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// first get a list of URLs for the p...
(), getCodebaseJarMap(jars));
230,130
private static void doRawReceiveFile(File path, int size, InputStream clientInput) throws IOException {<NEW_LINE>// Create a temp file to receive the payload, so we don't need to worry about<NEW_LINE>// partially-received files. The host takes care of deleting temp files.<NEW_LINE>File tempfile = File.createTempFile(A...
write(buf, 0, got);
1,111,547
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (additionalProperties.containsKey(CURL_OPTIONS)) {<NEW_LINE>setCurlOptions(additionalProperties.get<MASK><NEW_LINE>additionalProperties.put("x-codegen-curl-options", this.curlOptions);<NEW_LINE>}<NEW_LINE>if (additionalProperties.containsKey(PROCESS_...
(CURL_OPTIONS).toString());
38,728
public ModelRepresentation duplicateModel(@PathVariable String modelId, @RequestBody ModelRepresentation modelRepresentation) {<NEW_LINE>String json = null;<NEW_LINE>Model model = null;<NEW_LINE>if (modelId != null) {<NEW_LINE>model = modelService.getModel(modelId);<NEW_LINE>json = model.getModelEditorJson();<NEW_LINE>...
newModel.getComment(), currentUserId);
1,099,664
private void emitLoopBegin(final LoopBeginNode loopBeginNode) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.SPIRV, "visiting emitLoopBegin %s", loopBeginNode);<NEW_LINE>final Block block = <MASK><NEW_LINE>final Block predBlock = block.getFirstPredecessor();<NEW_LINE>Block dependentPhiValueBlock = getPhiDependentBlock(...
(Block) gen.getCurrentBlock();
864,344
private ImmutableList<SuggestedFix> buildFixes(List<TreePath> removals) {<NEW_LINE>boolean encounteredSideEffects = false;<NEW_LINE>SuggestedFix.Builder withoutSideEffects = SuggestedFix.builder().setShortDescription("remove unused variable and any side effects");<NEW_LINE>SuggestedFix.Builder withSideEffects = Suggest...
collect(joining("")));
371,727
public Object apply(TypeSystem t, Record r) {<NEW_LINE>if (r.size() == 1) {<NEW_LINE>Value value = r.get(0);<NEW_LINE>if (value.hasType(t.LIST())) {<NEW_LINE>aggregated.compareAndSet(false, true);<NEW_LINE>return aggregateList(t, value);<NEW_LINE>} else if (value.hasType(t.PATH())) {<NEW_LINE>aggregated.compareAndSet(f...
target.apply(t, r);
566,333
public Channel openAuxChannel(String auxItemTag, DataAccessOption... options) throws IOException {<NEW_LINE>Path auxPath = getAuxObjectAsPath(auxItemTag);<NEW_LINE>if (isWriteAccessRequested(options)) {<NEW_LINE>if (dvObject instanceof Dataset && !this.canWrite()) {<NEW_LINE>// If this is a dataset-level auxilary file ...
FileInputStream(auxPath.toFile());
684,082
public JSONObject createRatingObject(String skill_stars) {<NEW_LINE>JSONObject skillName = new JSONObject();<NEW_LINE>skillName.put("positive", "0");<NEW_LINE>skillName.put("negative", "0");<NEW_LINE>skillName.put("feedback_count", 0);<NEW_LINE>skillName.put("bookmark_count", 0);<NEW_LINE>JSONObject skillStars = new JS...
skillStars.put("avg_star", 0);
1,484,020
public static DescribeLiveDomainFrameRateAndBitRateDataResponse unmarshall(DescribeLiveDomainFrameRateAndBitRateDataResponse describeLiveDomainFrameRateAndBitRateDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveDomainFrameRateAndBitRateDataResponse.setRequestId<MASK><NEW_LINE>List<FrameRateAndBitRateInfo>...
(_ctx.stringValue("DescribeLiveDomainFrameRateAndBitRateDataResponse.RequestId"));
1,145,169
public static Object fromBase16(BString str) {<NEW_LINE>if (str.length() % 2 != 0) {<NEW_LINE>return ErrorCreator.createError(StringUtils.fromString("Invalid base16 string"), StringUtils.fromString("Expected an even length string, but the length of the string" + " was: " + str.length()));<NEW_LINE>}<NEW_LINE>char[] cha...
invalidChars = new ArrayList<>();
1,400,098
private void importUserColors() throws IOException {<NEW_LINE>FileDialog dialog = new FileDialog(getShell(), SWT.OPEN);<NEW_LINE>dialog.setText(Messages.ColoursPreferencePage_22);<NEW_LINE>if (!PlatformUtils.isMac()) {<NEW_LINE>// Single file filtering in the Open dialog doesn't work on Mac<NEW_LINE>// $NON-NLS-1$ //$N...
, ColorFactory.convertStringToRGB(value));
1,802,795
private void maintainMachines(BrevityScheduleType scheduleType) {<NEW_LINE>List<Map<String, Object>> addList = shouldAddMachinesOfType(scheduleType.getType());<NEW_LINE>if (CollectionUtils.isNotEmpty(addList)) {<NEW_LINE>for (Map<String, Object> map : addList) {<NEW_LINE>BrevityScheduleTask task = BrevityScheduleTask.b...
MapUtils.getIntValue(map, "id");
328,919
private void editSelectedGeneralSubtree() {<NEW_LINE>int selectedRow = jtGeneralSubtrees.getSelectedRow();<NEW_LINE>if (selectedRow != -1) {<NEW_LINE>GeneralSubtree generalSubtree = (GeneralSubtree) jtGeneralSubtrees.getValueAt(selectedRow, 0);<NEW_LINE>Container container = getTopLevelAncestor();<NEW_LINE>DGeneralSubt...
getGeneralSubtrees().remove(generalSubtree);
1,792,432
private LogicalExpression handleDateTruncFunction(final List<LogicalExpression> args) {<NEW_LINE>// Assert that the first argument to extract is a QuotedString<NEW_LINE>assert args.get(0) instanceof ValueExpressions.QuotedString;<NEW_LINE>// Get the unit of time to be extracted<NEW_LINE>String timeUnitStr = ((ValueExpr...
timeUnit = TimeUnit.valueOf(timeUnitStr);
175,884
public void onBackPressed() {<NEW_LINE>// SketchFragment<NEW_LINE>Fragment f = checkFragmentInstance(R.<MASK><NEW_LINE>if (f != null) {<NEW_LINE>((SketchFragment) f).save();<NEW_LINE>// Removes forced portrait orientation for this fragment<NEW_LINE>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);<N...
id.fragment_container, SketchFragment.class);
846,325
public PointSensitivities presentValueSensitivityRatesStickyStrike(ResolvedFxVanillaOption option, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities) {<NEW_LINE>if (volatilities.relativeTime(option.getExpiry()) < 0d) {<NEW_LINE>return PointSensitivities.empty();<NEW_LINE>}<NEW_LINE>ResolvedFxSingle un...
multipliedBy(notional * discountFactor * fwdDelta);
702,412
private AppendMessageResult doAppendData(final LogSegment segment, final ByteBuffer data) {<NEW_LINE>int currentPos = segment.getWrotePosition();<NEW_LINE>final int freeSize = segment.getFileSize() - currentPos;<NEW_LINE>int remaining = data.remaining();<NEW_LINE>ByteBuf to = ByteBufAllocator.DEFAULT.ioBuffer(Math.min(...
) + segment.getFileSize());
1,387,595
public static <T extends EnumLite, CC extends ClientConnection, HS extends MessageLite, HR extends MessageLite> void prepareSaslHandshake(final RpcConnectionHandler<CC> connectionHandler, List<String> serverAuthMechanisms, CC connection, BitConnectionConfig config, DrillbitEndpoint endpoint, final BasicClient<T, CC, HS...
), connection.getMaxWrappedSize());
1,371,091
protected void awaitLatch(CountDownLatch countDownLatch, InternalCompletableFuture future) {<NEW_LINE>try {<NEW_LINE>long currentTimeoutMs = MAX_COMPLETION_LATCH_WAIT_TIME;<NEW_LINE>// Call latch await in small steps to be able to check if node is still active.<NEW_LINE>// If not active then throw HazelcastInstanceNotA...
cacheProxy.getPrefixedName() + ") is closed!");
1,211,316
void add(SegmentWithState segmentWithState) {<NEW_LINE>final <MASK><NEW_LINE>final Pair<SegmentWithState, List<SegmentWithState>> pair = intervalToSegments.get(identifier);<NEW_LINE>final List<SegmentWithState> appendFinishedSegments = pair == null || pair.rhs == null ? new ArrayList<>() : pair.rhs;<NEW_LINE>// always ...
SegmentIdWithShardSpec identifier = segmentWithState.getSegmentIdentifier();
533,816
private boolean applicationOverrideRuleValid(ApplicationOverrideRule rule) {<NEW_LINE>String ruleName = rule.getName();<NEW_LINE>boolean valid = true;<NEW_LINE>if (rule.getApplication() == null) {<NEW_LINE>_w.redFlag(String<MASK><NEW_LINE>valid = false;<NEW_LINE>}<NEW_LINE>if (rule.getDestination().isEmpty()) {<NEW_LIN...
.format("No application set for application-override rule %s", ruleName));
1,062,882
public WeightedPath findSinglePath(Node start, Node end) {<NEW_LINE>lastMetadata = new Metadata();<NEW_LINE>AStarIterator iterator = new AStarIterator(start, end);<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>Node node = iterator.next();<NEW_LINE>if (node.equals(end)) {<NEW_LINE>// Hit, return path<NEW_LINE>double we...
null : transaction.getRelationshipById(nextRelId);
1,751,698
final CreateEventDestinationResult executeCreateEventDestination(CreateEventDestinationRequest createEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createEventDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,663,919
public SetMultimap<PaymentId, InvoiceId> retrieveInvoiceIdsByPaymentIds(@NonNull final Collection<PaymentId> paymentIds) {<NEW_LINE>if (paymentIds.isEmpty()) {<NEW_LINE>return ImmutableSetMultimap.of();<NEW_LINE>}<NEW_LINE>final IQuery<I_C_AllocationHdr> completedAllocations = queryBL.createQueryBuilder(I_C_AllocationH...
DocStatus.Closed).create();
1,579,409
ElementValue createOrUpdate(@NonNull final ElementValueCreateOrUpdateRequest request) {<NEW_LINE>//<NEW_LINE>// Validate<NEW_LINE>if (request.getParentId() != null) {<NEW_LINE>final ElementValue parent = <MASK><NEW_LINE>if (!parent.isSummary()) {<NEW_LINE>throw new AdempiereException("Parent element value must be a sum...
getById(request.getParentId());
1,288,853
private Object splitDocument(Document document) throws ParserConfigurationException, TransformerException {<NEW_LINE>Object nodes = splitNode(document);<NEW_LINE>final Transformer transformer;<NEW_LINE>synchronized (this.transformerFactory) {<NEW_LINE>transformer <MASK><NEW_LINE>}<NEW_LINE>if (this.outputProperties != ...
= this.transformerFactory.newTransformer();
520,510
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String createEpl = namedWindow ? "@public create window MyInfraNWT#unique(theString) as (theString string, intPrimitive int)" : "@public create table MyInfraNWT(theString string primary key, intPrimitive int)";<NE...
, path).addListener("s0");
1,101,734
final CreateCustomMetricResult executeCreateCustomMetric(CreateCustomMetricRequest createCustomMetricRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCustomMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
525,502
private void incrementFastFail(String metric, Call call) {<NEW_LINE>final String name = metric + call.name();<NEW_LINE>Counter counter = counterMap.get(name);<NEW_LINE>if (counter == null) {<NEW_LINE>final List<Tag> tagList = new ArrayList<Tag>(tags.size() + 3);<NEW_LINE>tagList.addAll(tags);<NEW_LINE>if (call != null)...
(EVCacheMetricsFactory.CALL_TYPE_TAG, operationType));
949,997
private String validateUserName(String userName) {<NEW_LINE>// return error message or null on good name<NEW_LINE>if (userName.equals("Admin")) {<NEW_LINE>// virtual user for admin console<NEW_LINE>return "User name Admin already in use";<NEW_LINE>}<NEW_LINE>ConfigSettings config = managerFactory.configSettings();<NEW_...
+ config.getMaxUserNameLength() + " characters";
989,240
protected void updateTable(boolean pack) {<NEW_LINE>ServerStatus status = gitblit.getStatus();<NEW_LINE>header.setText(Translation.get("gb.status"));<NEW_LINE>version.setText(Constants.NAME + (status.isGO ? " GO v" : " WAR v") + status.version);<NEW_LINE>releaseDate.setText(status.releaseDate);<NEW_LINE>bootDate.setTex...
tableModel.setProperties(status.systemProperties);
537,543
public ImportModelResult importModel(ImportModelRequest importModelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>aws...
JsonUnmarshallerContext> unmarshaller = new ImportModelResultJsonUnmarshaller();
40,921
private void handle(final PingHostMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return "do-ping-host";<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>doPingHost(msg, new Return...
HOST_TRACK_PARALLELISM_DEGREE.value(Integer.class);
1,070,854
protected Object processField(Field f, Object o) {<NEW_LINE>if (o == null)<NEW_LINE>return null;<NEW_LINE>if (f.fieldImpl == null) {<NEW_LINE>try {<NEW_LINE>f.fieldImpl = o.getClass(<MASK><NEW_LINE>} catch (Exception ex) {<NEW_LINE>com.ibm.ws.ffdc.FFDCFilter.processException(ex, "com.ibm.ws.cache.config.CacheProcessor....
).getField(f.name);
387,715
public static void main(String[] args) throws IOException {<NEW_LINE>final TravelingSalesman tsm = new TravelingSalesman(districtCapitals().subSeq(0, 10));<NEW_LINE>final Engine<EnumGene<WayPoint>, Double> engine = Engine.builder(tsm).optimize(Optimize.MINIMUM).alterers(new SwapMutator<>(0.15), new PartiallyMatchedCros...
)))).build();
940,807
public boolean createTenantVDCPFRule(String tenantName, long ruleId, String policyIdentifier, String protocol, String publicIp, String startPort, String endPort) throws ExecutionException {<NEW_LINE>String xml = VnmcXml.CREATE_PF_RULE.getXml();<NEW_LINE>String service = VnmcXml.CREATE_PF_RULE.getService();<NEW_LINE>Str...
response = sendRequest(service, xml);
436,823
ArrayList<Object> new106() /* reduce AThrowStatement */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList3 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<MASK><NEW...
<Object> nodeArrayList2 = pop();
1,816,887
public ListNetworksResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListNetworksResult listNetworksResult = new ListNetworksResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
)).unmarshall(context));
511,181
public PathSet forward(boolean all) {<NEW_LINE>PathSet results = new PathSet();<NEW_LINE>long degree = this.skipDegree > 0L ? this.skipDegree : this.degree;<NEW_LINE>this.record.startOneLayer(true);<NEW_LINE>while (this.record.hasNextKey()) {<NEW_LINE>Id source = this.record.nextKey();<NEW_LINE>Iterator<Edge> edges = e...
direction, this.labels, degree);
1,127,739
public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>ContextMenuAwareRecyclerView.RecyclerContextMenuInfo info = (ContextMenuAwareRecyclerView.RecyclerContextMenuInfo) item.getMenuInfo();<NEW_LINE>if (info.position >= mAdapter.getItemCount()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Content contents = <MA...
mAdapter.getItemFromAdapterPosition(info.position);