idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
66,191
protected void updateCheckBoxes(BasicPermissionTarget item) {<NEW_LINE>itemChanging = true;<NEW_LINE>if (item != null) {<NEW_LINE>boolean visible = !item.getId().startsWith("root:") && !item.getId().startsWith("category:all:");<NEW_LINE>allowCheckBox.setVisible(visible);<NEW_LINE>disallowCheckBox.setVisible(<MASK><NEW_...
visible && (rolesPolicyVersion == 1));
1,110,476
public static Iterable<TextRange> excludeRanges(@Nonnull TextRange original, @Nonnull List<? extends TextRange> excludedRanges) {<NEW_LINE>if (!excludedRanges.isEmpty()) {<NEW_LINE>if (excludedRanges.size() > 1) {<NEW_LINE>excludedRanges.sort(RANGE_COMPARATOR);<NEW_LINE>}<NEW_LINE>int enabledRangeStart = original.getSt...
new TextRange(enabledRangeStart, excludedRangeStart));
1,359,685
public static List<OrderByElement> extraOrderBy(SelectBody selectBody) {<NEW_LINE>if (selectBody != null) {<NEW_LINE>if (selectBody instanceof PlainSelect) {<NEW_LINE>List<OrderByElement> orderByElements = ((PlainSelect) selectBody).getOrderByElements();<NEW_LINE>((PlainSelect) selectBody).setOrderByElements(null);<NEW...
> plainSelects = operationList.getSelects();
491,670
private void initFilters(List<String> listStringPreference) {<NEW_LINE>if (listStringPreference == null) {<NEW_LINE>scriptPatterns = CharOperation.NO_CHAR_CHAR;<NEW_LINE>doCopy = new boolean[0];<NEW_LINE>}<NEW_LINE>int size = listStringPreference.size();<NEW_LINE>if (size % 2 == 0) {<NEW_LINE>scriptPatterns = new char[...
= new boolean[size / 2];
984,467
private String executeCreateScript(DownloadJob dnld, TemplateDownloader td, String resourcePath, String finalResourcePath, ResourceType resourceType, String templateFilename) {<NEW_LINE>String result;<NEW_LINE>int imgSizeGigs = (int) Math.ceil(_storage.getSize(td.getDownloadLocalPath()) * 1.0d / (1024 * 1024 * 1024));<...
Script(script, timeout, LOGGER);
423,555
static void close(ScanState scanState) {<NEW_LINE>if (!scanState.finished && scanState.scanID != null && scanState.prevLoc != null) {<NEW_LINE>TInfo tinfo = TraceUtil.traceInfo();<NEW_LINE>log.debug("Closing active scan {} {}", scanState.prevLoc, scanState.scanID);<NEW_LINE>HostAndPort parsedLocation = HostAndPort.from...
" " + scanState.scanID, e);
198,670
static byte[] make2ByteMsgBuff(byte msgID, byte channel, byte[] param_a, boolean useRunningStatus) {<NEW_LINE>int numMsgs = param_a.length;<NEW_LINE>byte[] msgBuff;<NEW_LINE>if (useRunningStatus) {<NEW_LINE>msgBuff = new byte[1 + numMsgs];<NEW_LINE>int byteOffset = 0;<NEW_LINE>msgBuff[byteOffset++] = MidiSpec.makeChanM...
MidiSpec.makeChanMessageCode(msgID, channel);
1,215,073
public void draw(ZoneRenderer renderer, Graphics2D g, Rectangle bounds) {<NEW_LINE>createShape(renderer.getScale());<NEW_LINE>int offU = getOffU(renderer);<NEW_LINE>int offV = getOffV(renderer);<NEW_LINE>int count = 0;<NEW_LINE>Object oldAntiAlias = SwingUtil.useAntiAliasing(g);<NEW_LINE>g.setColor(new Color(getZone<MA...
().getGridColor()));
1,586,879
static void merge(int[] a, int num1, int[] b, int num2) {<NEW_LINE>int[] c <MASK><NEW_LINE>int k = 0;<NEW_LINE>int j = 0;<NEW_LINE>int i = 0;<NEW_LINE>// Traverse both array<NEW_LINE>while (i < num1 && j < num2) {<NEW_LINE>if (a[i] > b[j])<NEW_LINE>c[k++] = b[j++];<NEW_LINE>else<NEW_LINE>c[k++] = a[i++];<NEW_LINE>}<NEW...
= new int[num1 + num2];
659,052
void reloadRows() {<NEW_LINE>editRowsPanel.removeAll();<NEW_LINE>addEditorRow(new NumericPanel(pixelsPerMeter, "Pixels per meter", ""));<NEW_LINE>addEditorRow(new NumericPanel(zoomLevel, "Zoom level", ""));<NEW_LINE>addEditorRow(new NumericPanel(deltaMultiplier, "Delta multiplier", ""));<NEW_LINE>addEditorRow(new Gradi...
new JPanel(new GridLayout());
1,684,733
public void initializeTaskDetails(TaskInfo taskInfo) {<NEW_LINE>this.id = taskInfo.getId();<NEW_LINE>this.name = taskInfo.getName();<NEW_LINE>this<MASK><NEW_LINE>this.category = taskInfo.getCategory();<NEW_LINE>this.created = taskInfo.getCreateTime();<NEW_LINE>this.dueDate = taskInfo.getDueDate();<NEW_LINE>this.priorit...
.description = taskInfo.getDescription();
790,159
public boolean bind(int port) {<NEW_LINE>if (port == server.getPort() || port == -1) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (channelRegistrar == null) {<NEW_LINE>Disposer.register(server, this);<NEW_LINE>channelRegistrar = new ChannelRegistrar();<NEW_LINE>}<NEW_LINE>ServerBootstrap bootstrap = serverBootstrap(s...
: NetUtils.loopbackSocketAddress(port));
469,357
public KrakenPublicTrades deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException {<NEW_LINE>List<KrakenPublicTrade> krakenTrades = new ArrayList<>();<NEW_LINE>long last = 0;<NEW_LINE>ObjectCodec oc = jsonParser.getCodec();<NEW_LINE>JsonNode node = oc.readTree(jsonPar...
(1).asText());
1,713,322
private static void listFromProvider(ConfiguredProperty property, Map<String, ConfiguredType> typesMap, int nesting, String spaces) {<NEW_LINE>// let's find all supported providers<NEW_LINE>List<ConfiguredType> providers = new LinkedList<>();<NEW_LINE>for (ConfiguredType value : typesMap.values()) {<NEW_LINE>if (value....
"- # There are no modules on classpath providing " + property.type());
525,890
static String toHeaderName(String name) {<NEW_LINE>requireNonNull(name, "name");<NEW_LINE>checkArgument(!name.isEmpty(), "name is empty.");<NEW_LINE>final String <MASK><NEW_LINE>if (name.equals(upperCased)) {<NEW_LINE>return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_HYPHEN, name);<NEW_LINE>}<NEW_LINE>final String...
upperCased = Ascii.toUpperCase(name);
705,646
private void grahamScan() {<NEW_LINE>if (points.size() < 3) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Iterator<double[]> iter = points.iterator();<NEW_LINE>Stack<double[]> stack = new Stack<>();<NEW_LINE>// Start with the first two points on the stack<NEW_LINE>final double[] first = iter.next();<NEW_LINE>stack.add(first);...
] curr = stack.pop();
1,378,519
private boolean isSLAStale(ResourceFile slaFile) {<NEW_LINE>String slafilename = slaFile.getName();<NEW_LINE>int index = slafilename.lastIndexOf('.');<NEW_LINE>String slabase = slafilename.substring(0, index);<NEW_LINE>String slaspecfilename = slabase + ".slaspec";<NEW_LINE>ResourceFile slaspecFile = new ResourceFile(<...
slaFile.getParentFile(), slaspecfilename);
359,547
public void createDefaultAcl(final SecurableModel securableModel, final List<PermissionName> permissionNames) {<NEW_LINE>log.debug("createDefaultAcl() - securableModel: {}, permissionNames: {}", securableModel, permissionNames);<NEW_LINE>final AclClass aclClass = aclClassService.find(AclClassName.getByName(securableMod...
().getCanonicalName()));
1,031,820
public void write(Encoder encoder, AnnotationProcessingData value) throws Exception {<NEW_LINE>HierarchicalNameSerializer hierarchicalNameSerializer = classNameSerializerSupplier.get();<NEW_LINE>SetSerializer<String> typesSerializer = new SetSerializer<>(hierarchicalNameSerializer);<NEW_LINE>MapSerializer<String, Set<S...
MapSerializer<>(hierarchicalNameSerializer, resourcesSerializer);
301,346
void validateData() {<NEW_LINE>assert EventQueue.isDispatchThread();<NEW_LINE>for (BuildTask buildTask : buildTasks) {<NEW_LINE>String text = buildTask.getText();<NEW_LINE>if (text != null && text.isEmpty()) {<NEW_LINE>category.setErrorMessage(Bundle.CustomizerPanel_error_field_empty());<NEW_LINE>category.setValid(fals...
: "Non-null error message must be returned for invalid panel of " + category.getDisplayName();
1,766,496
public void showModal(boolean restoreFocus) {<NEW_LINE>if (mainWidget_ == null) {<NEW_LINE>mainWidget_ = createMainWidget();<NEW_LINE>// get the main widget to line up with the right edge of the buttons.<NEW_LINE>mainWidget_.getElement().getStyle().setMarginRight(2, Unit.PX);<NEW_LINE>mainPanel_.insert(mainWidget_, 0);...
, () -> onDialogShown());
873,746
private void toggleWatchingState() {<NEW_LINE>WatchingService service = ServiceFactory.get(WatchingService.class, false);<NEW_LINE>final Single<Boolean> responseSingle;<NEW_LINE>if (mIsWatching) {<NEW_LINE>responseSingle = service.deleteRepositorySubscription(mRepoOwner, mRepoName).map(ApiHelpers::mapToBooleanOrThrowOn...
sub -> sub.subscribed());
1,653,422
protected boolean shouldDroppedTagBeRemovedOnUpdate(RequestDetails theRequest, ResourceTag theTag) {<NEW_LINE>Set<TagTypeEnum> metaSnapshotModeTokens = null;<NEW_LINE>if (theRequest != null) {<NEW_LINE>List<String> metaSnapshotMode = <MASK><NEW_LINE>if (metaSnapshotMode != null && !metaSnapshotMode.isEmpty()) {<NEW_LIN...
theRequest.getHeaders(JpaConstants.HEADER_META_SNAPSHOT_MODE);
588,874
private List<Wo> list(Business business, EffectivePerson effectivePesron, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>List<String> personIds = business.expendGroupRoleToPerson(wi.getGroupList(), wi.getRole...
+ "%", StringTools.SQL_ESCAPE_CHAR));
197,179
private void doLoadMaps() {<NEW_LINE>Connection c = null;<NEW_LINE>boolean err = false;<NEW_LINE>mapKey.clear();<NEW_LINE>// Read the maps table - cache results<NEW_LINE>try {<NEW_LINE>c = getConnection();<NEW_LINE>Statement stmt = c.createStatement();<NEW_LINE>ResultSet rs = stmt.<MASK><NEW_LINE>while (rs.next()) {<NE...
executeQuery("SELECT * from " + tableMaps + ";");
1,850,129
public static ListRepositoryTagsResponse unmarshall(ListRepositoryTagsResponse listRepositoryTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRepositoryTagsResponse.setRequestId(_ctx.stringValue("ListRepositoryTagsResponse.RequestId"));<NEW_LINE>listRepositoryTagsResponse.setErrorCode(_ctx.stringValue("ListReposi...
= new ArrayList<String>();
834,779
public SizeConstraintSetUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SizeConstraintSetUpdate sizeConstraintSetUpdate = new SizeConstraintSetUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
class).unmarshall(context));
649,377
protected void startTag(String name, Object text, boolean closed, java.util.Map<String, String> dynamicAttributes, Object... nameValues) {<NEW_LINE>indent();<NEW_LINE>sb.append<MASK><NEW_LINE>int len = nameValues.length;<NEW_LINE>for (int i = 0; i + 1 < len; i += 2) {<NEW_LINE>Object attrName = nameValues[i];<NEW_LINE>...
('<').append(name);
390,651
public StartQueryResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartQueryResult startQueryResult = new StartQueryResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
1,028,304
/*<NEW_LINE>* Download an image from a HTTP URL.<NEW_LINE>*<NEW_LINE>* @param String HTTP URL to download from.<NEW_LINE>* @param String The filename to save the remote image as.<NEW_LINE>* @return String Returns 'true' or 'false'. As Rhino does not like boolean, this is a String.<NEW_LINE>*/<NEW_LINE>public s...
URL url = new URL(urlString);
621,021
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.eclipse.paho.mqttv5.client.IMqttAsyncClient#subscribe(org.eclipse.paho.<NEW_LINE>* mqttv5.common.MqttSubscription[], java.lang.Object,<NEW_LINE>* org.eclipse.paho.mqttv5.client.MqttActionListener,<NEW_LINE>* org.eclipse.paho.mqttv5.client.IMqttMessag...
[i].getTopic());
408,824
private JsonObject generateRecordType(BRecordType effectiveType) {<NEW_LINE>JsonObject typeNode;<NEW_LINE>LinkedHashMap<String, BField> fieldLinkedHashMap = effectiveType.getFields();<NEW_LINE>JsonObject effectiveTypeNode = new JsonObject();<NEW_LINE>JsonArray requiredFields = new JsonArray();<NEW_LINE>for (Map.Entry<S...
getName().getValue());
192,508
private Mono<Response<RemediationInner>> cancelAtResourceGroupWithResponseAsync(String resourceGroupName, String remediationName, 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 nu...
error(new IllegalArgumentException("Parameter remediationName is required and cannot be null."));
40,497
public void onClick(final View v) {<NEW_LINE>if (mBiv != null) {<NEW_LINE>mRootLayout.removeView(mBiv);<NEW_LINE>}<NEW_LINE>ImageViewFactory imageViewFactory;<NEW_LINE>switch(mImageLoader) {<NEW_LINE>case IMAGE_LOADER_FRESCO:<NEW_LINE>BigImageViewer.initialize(FrescoImageLoader.with(getApplicationContext()));<NEW_LINE>...
.setProgressIndicator(new ProgressPieIndicator());
1,828,411
synchronized public void save(Writer writer, Properties options) throws IOException {<NEW_LINE>writer.write("maxCellIndex=");<NEW_LINE>writer.write(Integer.toString(_maxCellIndex));<NEW_LINE>writer.write('\n');<NEW_LINE>writer.write("keyColumnIndex=");<NEW_LINE>writer.write(Integer.toString(_keyColumnIndex));<NEW_LINE>...
(columns.size()));
46,621
private static PathStrategy parsePathStrategy(Context context, String authority) throws IOException, XmlPullParserException {<NEW_LINE>final SimplePathStrategy strat = new SimplePathStrategy(authority);<NEW_LINE>final ProviderInfo info = context.getPackageManager().resolveContentProvider(authority, PackageManager.GET_M...
String tag = in.getName();
494,713
private void createProfileForSelectedAuthType(XFormDialog dialog) {<NEW_LINE>String authType = dialog.getValue(AuthorizationTypeForm.AUTHORIZATION_TYPE);<NEW_LINE>CredentialsConfig.AuthType.Enum authTypeEnum;<NEW_LINE>String profileName;<NEW_LINE>if (CredentialsConfig.AuthType.O_AUTH_2_0.toString().equals(authType)) {<...
getOAuth1ProfileContainer().addNewOAuth1Profile(profileName);
1,728,088
public CoverageReportActionsWrapper createCoverageActionsWrapper(EventHandler reporter, BlazeDirectories directories, Collection<ConfiguredTarget> targetsToTest, NestedSet<Artifact> baselineCoverageArtifacts, ArtifactFactory factory, ActionKeyContext actionKeyContext, ArtifactOwner artifactOwner, String workspaceName, ...
CoverageReportActionsWrapper(lcovFileAction, coverageReportAction, actionKeyContext);
1,424,212
public void mapPartition(Iterable<Tuple2<Integer, Integer>> values, Collector<Tuple3<Integer, Integer, Integer>> out) throws Exception {<NEW_LINE>int numPartitions = getRuntimeContext().getNumberOfParallelSubtasks();<NEW_LINE>List<Tuple2<Integer, Integer>> itemCounts = new ArrayList<>();<NEW_LINE>for (Tuple2<Integer, I...
f0, o2.f0) : cmp;
1,456,399
public List<String> listResourcesOfApp(String app) {<NEW_LINE>List<String> results = new ArrayList<>();<NEW_LINE>if (StringUtil.isBlank(app)) {<NEW_LINE>return results;<NEW_LINE>}<NEW_LINE>// resource -> timestamp -> metric<NEW_LINE>Map<String, LinkedHashMap<Long, MetricEntity>> resourceMap = allMetrics.get(app);<NEW_L...
addPassQps(newEntity.getPassQps());
743,800
private void fixOrRemovePatternsWhichReferenceNoneExistingTrips() {<NEW_LINE>int orgSize = tripPatterns.size();<NEW_LINE>List<Map.Entry<StopPattern, TripPattern>> <MASK><NEW_LINE>for (Map.Entry<StopPattern, TripPattern> e : tripPatterns.entries()) {<NEW_LINE>TripPattern ptn = e.getValue();<NEW_LINE>ptn.removeTrips(t ->...
removePatterns = new ArrayList<>();
1,417,113
public ASTNode visitCreateDefaultShardingStrategy(final CreateDefaultShardingStrategyContext ctx) {<NEW_LINE>ShardingStrategyContext shardingStrategyContext = ctx.shardingStrategy();<NEW_LINE>String shardingAlgorithmName = null;<NEW_LINE>if (null != shardingStrategyContext.shardingAlgorithm().existingAlgorithm()) {<NEW...
getText()).getValue();
1,671,322
final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Device Farm");
1,559,716
public void exitOgs_service_object(Ogs_service_objectContext ctx) {<NEW_LINE>if (ctx.predef != null) {<NEW_LINE>String name = ctx.predef.getText();<NEW_LINE>_currentServiceObjectGroup.getLines().add(new ServiceObjectReferenceServiceObjectGroupLine(name));<NEW_LINE>_configuration.getServiceObjects().computeIfAbsent(name...
= ctx.name.getText();
1,803,577
final DeleteInvitationsResult executeDeleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInvitationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteInvitations");
816,933
public static DescribeNotificationSettingResponse unmarshall(DescribeNotificationSettingResponse describeNotificationSettingResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNotificationSettingResponse.setRequestId(_ctx.stringValue("DescribeNotificationSettingResponse.RequestId"));<NEW_LINE>describeNotificationSet...
("DescribeNotificationSettingResponse.ReminderModeList[" + i + "]"));
518,429
public PCollection<T> expand(PBegin input) {<NEW_LINE>checkArgument(getConnectionFactory() != null, "withConnectionFactory() is required");<NEW_LINE>checkArgument(getQueue() != null || <MASK><NEW_LINE>checkArgument(getQueue() == null || getTopic() == null, "withQueue() and withTopic() are exclusive");<NEW_LINE>checkArg...
getTopic() != null, "Either withQueue() or withTopic() is required");
1,376,004
public static void process(GrayU8 orig, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final byte[] data = orig.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final int width = orig.getWidth();<NEW_LINE>final int height = orig.getHeight() - 1;<NEW_LINE>// CONCURRENT_BEL...
= width * y + width - 1;
570,330
final UpdateMaintenanceWindowResult executeUpdateMaintenanceWindow(UpdateMaintenanceWindowRequest updateMaintenanceWindowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMaintenanceWindowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
747,485
public static MutationReport checkAllMutations(Browser browser, String specPath, List<String> includedTags, List<String> excludedTags, MutationOptions mutationOptions, Properties properties, ValidationListener validationListener) throws IOException {<NEW_LINE>SectionFilter sectionFilter <MASK><NEW_LINE>PageSpec pageSpe...
= new SectionFilter(includedTags, excludedTags);
413,635
private void generateModelsToDir(File countDir, File modelDir, String[] languages, boolean compressed) throws IOException {<NEW_LINE>LanguageIdentifier identifier = LanguageIdentifier.generateFromCounts(countDir, languages);<NEW_LINE>List<CharNgramLanguageModel> models = identifier.getModels();<NEW_LINE>mkDir(modelDir)...
model.getId() + ".lm");
78,183
public static FAFProvider queryMethod(EPCompiled compiled, EPServicesContext services) {<NEW_LINE>ClassLoader classLoader = ClassProvidedImportClassLoaderFactory.getClassLoader(compiled.getClasses(), services.getClassLoaderParent(), services.getClassProvidedPathRegistry());<NEW_LINE>try {<NEW_LINE>RuntimeVersion.checkV...
getManifest().getCompilerVersion());
1,520,440
static boolean sendArguments(String[] args) {<NEW_LINE>// , long timeout) {<NEW_LINE>try {<NEW_LINE>Messages.log("Checking to see if Processing is already running");<NEW_LINE>int <MASK><NEW_LINE>String key = Preferences.get(SERVER_KEY);<NEW_LINE>Socket socket = null;<NEW_LINE>try {<NEW_LINE>socket = new Socket(InetAddr...
port = Preferences.getInteger(SERVER_PORT);
1,528,766
private static void tryAssertion18(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "sum(price)" };<NEW_LINE>ResultAssertTestResult expected =...
, { "YAH", 112d } });
772,562
public static ReplicaMetadataRequestInfo readFrom(DataInputStream stream, ClusterMap clusterMap, FindTokenHelper findTokenHelper, short requestVersion) throws IOException {<NEW_LINE>String hostName = Utils.readIntString(stream);<NEW_LINE>String replicaPath = Utils.readIntString(stream);<NEW_LINE>ReplicaType replicaType...
hostName, replicaPath, replicaType, requestVersion);
496,595
private void emitPerBaseCoverageIfRequested() {<NEW_LINE>if (this.perBaseOutput == null)<NEW_LINE>return;<NEW_LINE>final PrintWriter out = new PrintWriter(IOUtil.openFileForBufferedWriting(this.perBaseOutput));<NEW_LINE>out.println("chrom\tpos\ttarget\tcoverage");<NEW_LINE>for (final Map.Entry<Interval, Coverage> entry...
.getValue().getDepths();
1,716,188
// //////////////////////////////////////////////////////////////////<NEW_LINE>// Count<NEW_LINE>@Override<NEW_LINE>public long countData(@NotNull DBCExecutionSource source, @NotNull DBCSession session, @Nullable DBDDataFilter dataFilter, long flags) throws DBCException {<NEW_LINE>DBRProgressMonitor monitor = session.g...
(getFullyQualifiedName(DBPEvaluationContext.DML));
1,441,415
public Tuple2<CharSeq, CharSeq> partition(Predicate<? super Character> predicate) {<NEW_LINE>Objects.requireNonNull(predicate, "predicate is null");<NEW_LINE>if (isEmpty()) {<NEW_LINE>return Tuple.of(EMPTY, EMPTY);<NEW_LINE>}<NEW_LINE>final StringBuilder left = new StringBuilder();<NEW_LINE>final StringBuilder right = ...
.toString()), EMPTY);
631,308
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.<MASK><NEW_LINE>if (sourcePermanent != null && controller != null) {<NEW_LINE>TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(new FilterInst...
getPermanentEntering(source.getSourceId());
1,172,842
private void addResourcesFileReference(PBXGroup targetGroup, ImmutableSet<Path> resourceFiles, ImmutableSet<Path> resourceDirs, ImmutableSet<Path> variantResourceFiles, Consumer<? super PBXFileReference> resourceCallback, Consumer<? super PBXVariantGroup> variantGroupCallback) {<NEW_LINE>if (resourceFiles.isEmpty() && ...
HumanReadableException("Variant files have to be in a directory with name ending in '.lproj', " + "but '%s' is not.", variantFilePath);
479,964
protected List fetch() {<NEW_LINE>HazelcastClientInstanceImpl client = (HazelcastClientInstanceImpl) context.getHazelcastInstance();<NEW_LINE>String name = cacheProxy.getPrefixedName();<NEW_LINE>if (prefetchValues) {<NEW_LINE>ClientMessage request = CacheIterateEntriesCodec.encodeRequest(name, encodePointers(pointers),...
ClientInvocationFuture future = clientInvocation.invoke();
1,733,198
public CloudWatchLogsLogDeliveryDescription unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CloudWatchLogsLogDeliveryDescription cloudWatchLogsLogDeliveryDescription = new CloudWatchLogsLogDeliveryDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int...
String currentParentElement = context.getCurrentParentElement();
832,252
final ListLoggingConfigurationsResult executeListLoggingConfigurations(ListLoggingConfigurationsRequest listLoggingConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLoggingConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
410,457
final GetContainerServiceDeploymentsResult executeGetContainerServiceDeployments(GetContainerServiceDeploymentsRequest getContainerServiceDeploymentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getContainerServiceDeploymentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Lightsail");
1,296,320
static void c_5() throws Exception {<NEW_LINE>BatchOperator.setParallelism(4);<NEW_LINE>if (!new File(DATA_DIR + TABLE_TRAIN_FILE).exists()) {<NEW_LINE>AkSourceBatchOp train_sparse = new AkSourceBatchOp().setFilePath(DATA_DIR + SPARSE_TRAIN_FILE);<NEW_LINE>AkSourceBatchOp test_sparse = new AkSourceBatchOp().setFilePath...
println(sw.getElapsedTimeSpan());
1,258,417
private float drawLine(TokenPainter painter, Token token, Graphics2D g, float x, float y, int line) {<NEW_LINE>// The x-value at the end of our text.<NEW_LINE>float nextX = x;<NEW_LINE>boolean paintBG = host.getPaintTokenBackgrounds(line, y);<NEW_LINE>while (token != null && token.isPaintable() && nextX < clipEnd) {<NE...
.getForegroundForTokenType(Token.WHITESPACE));
1,419,494
public static void log(Throwable th) {<NEW_LINE>if (th == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String msg = Log.getStackTraceString(th);<NEW_LINE>Log.e("QNdump", msg);<NEW_LINE>try {<NEW_LINE>XposedBridge.log(th);<NEW_LINE>} catch (NoClassDefFoundError e) {<NEW_LINE>Log.e("Xposed", msg);<NEW_LINE><MASK><NEW_LIN...
Log.e("EdXposed-Bridge", msg);
600,280
final CreateTrafficPolicyVersionResult executeCreateTrafficPolicyVersion(CreateTrafficPolicyVersionRequest createTrafficPolicyVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTrafficPolicyVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(createTrafficPolicyVersionRequest));
1,642,778
public void marshall(ReplicationConfigurationTemplate replicationConfigurationTemplate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (replicationConfigurationTemplate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall...
replicationConfigurationTemplate.getEbsEncryptionKeyArn(), EBSENCRYPTIONKEYARN_BINDING);
1,653,744
static int compare(long this_long0, long this_long1, long this_long2, long[] this_long0Array, int this_coordinates_offset, long that_long0, long that_long1, long that_long2, long[] that_long0Array, int that_coordinates_offset) {<NEW_LINE>int tableIdComparison = Integer.compare((int<MASK><NEW_LINE>if (tableIdComparison ...
) this_long0, (int) that_long0);
1,820,478
private List<VulnerableSoftware> parseCpes(DefCveItem cve) throws CpeValidationException {<NEW_LINE>final List<VulnerableSoftware> software = new ArrayList<>();<NEW_LINE>final List<DefCpeMatch> cpeEntries = // this single CPE entry causes nearly 100% FP - so filtering it at the source.<NEW_LINE>cve.getConfigurations()....
(CpeValidationException) ex.getCause();
19,280
public static Bitmap createAvatarWithStatus(Bitmap avatar, StatusType statusType, String icon, Context context) {<NEW_LINE>float avatarRadius = getResources().getDimension(R.dimen.list_item_avatar_icon_radius);<NEW_LINE>int width = DisplayUtils.<MASK><NEW_LINE>Bitmap output = Bitmap.createBitmap(width, width, Bitmap.Co...
convertDpToPixel(2 * avatarRadius, context);
938,928
private InvoiceItem generateFixedPriceItem(final UUID invoiceId, final UUID accountId, final BillingEvent thisEvent, final LocalDate targetDate, final Currency currency, final InvoiceItemGeneratorLogger invoiceItemGeneratorLogger, final InternalCallContext internalCallContext) throws InvoiceApiException {<NEW_LINE>fina...
invoiceItemGeneratorLogger.append(thisEvent, fixedPriceInvoiceItem);
1,229,034
public CreateDataSourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDataSourceResult createDataSourceResult = new CreateDataSourceResult();<NEW_LINE>createDataSourceResult.setStatus(context.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentPare...
getHttpResponse().getStatusCode());
1,693,822
public String applyTokens(@Key("descriptors") List<String> tokens, @Key("extraStyles") List<String> extraStyles) throws QuickFixException {<NEW_LINE>checkNotNull(tokens, "The 'tokens' argument cannot be null");<NEW_LINE>// get the token descriptors<NEW_LINE>List<DefDescriptor<TokensDef>> tokenDescs = new ArrayList<>(to...
(desc, TokensDef.class));
158,999
void collect(int droppedFrames) {<NEW_LINE>float frameIntervalCost = 1f * FrameTracer.this.frameIntervalNs / Constants.TIME_MILLIS_TO_NANO;<NEW_LINE>sumFrameCost += (droppedFrames + 1) * frameIntervalCost;<NEW_LINE>sumDroppedFrames += droppedFrames;<NEW_LINE>sumFrame++;<NEW_LINE>if (droppedFrames >= frozenThreshold) {<...
DropStatus.DROPPED_MIDDLE.index] += droppedFrames;
1,217,399
private void grabCPUTimesAfterTest() {<NEW_LINE>long totalCPUTime = 0;<NEW_LINE>long totalUserTime = 0;<NEW_LINE>for (Thread thread : _parseqThreads) {<NEW_LINE>long threadId = thread.getId();<NEW_LINE>long cpuTime = threadBean.getThreadCpuTime(threadId);<NEW_LINE>long <MASK><NEW_LINE>if (!threadCPU.containsKey(threadI...
cpuUserTime = threadBean.getThreadUserTime(threadId);
224,383
void addShipmentLinesToCustomsInvoice(@NonNull ProductId productId, @NonNull final ImmutableSet<InOutAndLineId> shipmentLinesForProduct, @NonNull final CustomsInvoiceId customsInvoiceId) {<NEW_LINE>CustomsInvoice customsInvoice = customsInvoiceRepo.retrieveById(customsInvoiceId);<NEW_LINE>final ImmutableList<CustomsInv...
(customsInvoiceRecord.getC_Currency_ID()));
53,418
private List<Object> createInsightDependencyChildren(RenderableDependency dependency, final Set<Object> visited, final Configuration configuration) {<NEW_LINE>Iterable<? extends RenderableDependency> children = dependency.getChildren();<NEW_LINE>return CollectionUtils.collect(children, (Transformer<Object, RenderableDe...
add(childDependency.getId());
1,156,449
private boolean isWebAddress(String word) {<NEW_LINE>if (startWord + 2 >= sentence.length()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final char <MASK><NEW_LINE>final char char1 = sentence.charAt(startWord + 1);<NEW_LINE>if (char0 == '@' && (Character.isLetter(char1) || Character.isDigit(char1)) || startWord + 3 < ...
char0 = sentence.charAt(startWord);
946,433
final DeleteReportResult executeDeleteReport(DeleteReportRequest deleteReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteReportRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
777,443
public NettyOutbound sendObject(Object message) {<NEW_LINE>if (!channel().isActive()) {<NEW_LINE>ReactorNetty.safeRelease(message);<NEW_LINE>return then(Mono.error(AbortedException.beforeSend()));<NEW_LINE>}<NEW_LINE>if (!(message instanceof ByteBuf)) {<NEW_LINE>return super.sendObject(message);<NEW_LINE>}<NEW_LINE>Byt...
"since response has Content-Length: 0 {}"), toPrettyHexDump(b));
813,848
final ListGroupsOlderThanOrderingIdResult executeListGroupsOlderThanOrderingId(ListGroupsOlderThanOrderingIdRequest listGroupsOlderThanOrderingIdRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGroupsOlderThanOrderingIdRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
695,751
private void zip(ZipOutputStream out, File root, File file, TransferStatus status, HttpRange range) throws IOException {<NEW_LINE>// Exclude all hidden files starting with a "."<NEW_LINE>if (file.getName().startsWith(".")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String zipName = file.getCanonicalPath().substring(root.ge...
= new ZipEntry(zipName + '/');
458,670
public static CsvLoaderConfig from(Map<String, Object> config) {<NEW_LINE>Builder builder = builder();<NEW_LINE>if (config.get(DELIMITER) != null)<NEW_LINE>builder.delimiter(getCharacterOrString(config, DELIMITER));<NEW_LINE>if (config.get(ARRAY_DELIMITER) != null)<NEW_LINE>builder.arrayDelimiter(getCharacterOrString(c...
) config.get(IGNORE_DUPLICATE_NODES));
1,650,214
public MethodVisitor visitClassConstructor(MethodDeclInfo methodDeclInfo, ClassVisitor cv) {<NEW_LINE>ClassName nestCompanion = nestDigest.nestCompanion(methodDeclInfo.owner());<NEW_LINE>MethodDeclInfo constructorBridge = methodDeclInfo.bridgeOfConstructor(nestCompanion);<NEW_LINE>MethodVisitor mv = constructorBridge.a...
visitVarInsn(Opcodes.ALOAD, 0);
436,876
private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void onSaveNewAccount(PaymentAccount paymentAccount) {<NEW_LINE><MASK><NEW_LINE>if (selectedTradeCurrency != null) {<NEW_LINE>if (selectedTradeCurrency instanceof CryptoCurrency && ((CryptoCurrency) selectedTra...
TradeCurrency selectedTradeCurrency = paymentAccount.getSelectedTradeCurrency();
1,773,146
private static Predicate generateRangePredicate(InternalIndex index, Map<String, EqualPredicate> prefixes, int prefixLength, boolean fast) {<NEW_LINE>// see CompositeValue docs for more details on what is going on here<NEW_LINE>String[<MASK><NEW_LINE>Comparable[] from = new Comparable[components.length];<NEW_LINE>Compa...
] components = index.getComponents();
992,761
private void invokeSimpleImplProviderService(String msg, String warName, String serviceName, PrintWriter writer) {<NEW_LINE>StringBuilder sBuilder = new StringBuilder("http://").append(hostname).append(":").append(port).append("/").append(warName).append("/").append(serviceName).append("?wsdl");<NEW_LINE>// System.out....
message.writeTo(System.out);
1,398,956
public void onCustomPacketRegistration(CustomPacketRegistrationEvent<?> event) {<NEW_LINE>final Set<String> channels = ((INetPlayHandlerBridge_Forge) event.getHandler()).forgeBridge$getRegisteredChannels();<NEW_LINE>final EntityPlayer player;<NEW_LINE>if (event.getSide().isClient()) {<NEW_LINE>player = null;<NEW_LINE>}...
.createChannelRegistrationEventUnregister(currentCause, channel));
200,053
final CreateRuleGroupResult executeCreateRuleGroup(CreateRuleGroupRequest createRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
246,054
private void initComponents() {<NEW_LINE>consoleTextArea.setEditable(false);<NEW_LINE>consoleTextArea.setColumns(20);<NEW_LINE>consoleTextArea.setDocument(new LengthLimitedDocument(CONSOLE_SIZE));<NEW_LINE>consoleTextArea.setRows(5);<NEW_LINE>consoleTextArea.setMaximumSize(new java.awt.Dimension(32767, 32767));<NEW_LIN...
addActionListener(e -> checkScrollWindow());
936,163
final ListDevicesResult executeListDevices(ListDevicesRequest listDevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
43,169
private void initRuntime(ClassNode cn, MethodNode clinit) {<NEW_LINE>addRuntimeNode(cn);<NEW_LINE>InsnList l = new InsnList();<NEW_LINE>l.add(new LdcInsnNode(Type.getObjectType(cn.name)));<NEW_LINE>l.add(loadTimerHandlers(cn));<NEW_LINE>l.add(loadEventHandlers(cn));<NEW_LINE>l.add(loadErrorHandlers(cn));<NEW_LINE>l.add...
.add(getRuntimeImpl(cn));
1,261,467
public static ListAppInfoResponse unmarshall(ListAppInfoResponse listAppInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppInfoResponse.setRequestId(_ctx.stringValue("ListAppInfoResponse.RequestId"));<NEW_LINE>listAppInfoResponse.setTotal(_ctx.integerValue("ListAppInfoResponse.Total"));<NEW_LINE>List<AppInfo> ap...
("ListAppInfoResponse.AppInfoList[" + i + "].AppId"));
1,283,227
public Builder addLayer(Layer layer) {<NEW_LINE>if (!prepDone) {<NEW_LINE>doPrep();<NEW_LINE>}<NEW_LINE>// Use the fineTune config to create the required NeuralNetConfiguration + Layer instances<NEW_LINE>// instantiate dummy layer to get the params<NEW_LINE>// Build a nn config builder with settings from finetune. Set ...
initializer().numParams(layerConf);
342,827
private static FundingRecord adaptAdjustment(PoloniexAdjustment a) {<NEW_LINE>FundingRecord.Type type = OTHER_INFLOW;<NEW_LINE>// There seems to be a spelling error in the returning reason. In case that ever gets<NEW_LINE>// corrected, this will still pick it up.<NEW_LINE>if (a.getReason().toLowerCase().contains("aidro...
"\n" + a.getAdjustmentHelp());
1,340,369
private static int parsePolygon(SvgContainer container, char[] ca, int start, int end) {<NEW_LINE>end = findClosingTag(ca, start, end);<NEW_LINE>if (end != -1) {<NEW_LINE>int endAttrs = closer(ca, start, end);<NEW_LINE>SvgShape element = new SvgShape(container, getAttrValue(ca, start, endAttrs, ATTR_ID));<NEW_LINE>floa...
int i = 2, j = 1;
17,752
protected void dump(FileDescriptor fd, PrintWriter pw, String[] rawArgs) {<NEW_LINE>if (rawArgs.length > 0 && Utilities.IS_DEBUG_DEVICE) {<NEW_LINE>LinkedList<String> args = new LinkedList(Arrays.asList(rawArgs));<NEW_LINE>switch(args.pollFirst()) {<NEW_LINE>case "cmd":<NEW_LINE>if (args.peekFirst() == null) {<NEW_LINE...
INSTANCE.dump("", pw);
1,064,169
public static void reset(boolean finalCall) {<NEW_LINE>s_log.info("finalCall=" + finalCall);<NEW_LINE>if (Ini.isClient()) {<NEW_LINE>closeWindows();<NEW_LINE>// Dismantle windows<NEW_LINE>// bug [ 1574630 ]<NEW_LINE>if (s_windows.size() > 0) {<NEW_LINE>if (!finalCall) {<NEW_LINE>Container c = s_windows.get(0);<NEW_LINE...
.keySet().toArray();